f7eb7eec23
.planning/ documentava in dettaglio cio che era vecchio e per niente cio
che e in produzione: le fasi 11-22 (v2.1 e v2.2, chiuse a giugno) erano
ancora in phases/ mentre v1.0 e v2.0 stavano gia in milestones/, e il
lavoro degli ultimi due mesi - gate OTP e ciclo di vita dei retainer, cioe
quello che gira su hub.iamcavalli.net - non aveva nessuna cartella.
- phases/{11,12,14} -> milestones/v2.1-phases/, phases/{18..22} ->
milestones/v2.2-phases/. Ora phases/ contiene solo la milestone in
corso, che e quello che state.cjs conta per il progresso
- v2.1-ROADMAP.md ricostruito: era l'unica milestone senza archivio,
interrotta dal reset del 19/06 e mai chiusa formalmente
- v2.3-ROADMAP.md + v2.3-REQUIREMENTS.md: v2.3 e stata eseguita fuori dal
ciclo GSD, non esistono PLAN/SUMMARY per fase. L'archivio E la doc
- REQUIREMENTS.md riscritto per v2.4 con il backlog reale
- phases/13 e phases/26: SUMMARY ricostruiti da commit, migration e
STATUS.md. 26 e il primo numero libero
- research/: cancellate 4 varianti dello stesso PITFALLS e FEATURES/
SUMMARY, superati da PROJECT.md. Diverse anti-feature erano ormai
contraddette dai fatti (il Kanban e stato costruito in Phase 19,
l'email in v2.3, il time tracking esiste)
- cancellati UI-RULES.md e DESIGN-SYSTEM.md (CLAUDE.md li dichiara
superseded: impongono l'inverso della regola attuale) e HANDOFF.md,
fermo al 13/06
- SECURITY-*.md -> security/: audit chiuso, ma i report restano la doc di
cosa e stato ruotato e perche
- PROJECT.md/MILESTONES.md/ROADMAP.md allineati: milestone corrente v2.4,
sessione OTP 90gg non 30, migrazioni fino alla 0016
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
7.7 KiB
7.7 KiB
Deferred Items — Phase 11
Items discovered during execution that are out of scope for the current plan/task but logged for future cleanup.
From Plan 11-01
1. drizzle-kit generate non-functional (migration tooling drift)
- Found during: 11-01, Task 1, step 5
- Issue:
src/db/migrations/meta/_journal.jsonand snapshot files are out of sync withschema.ts. Onlymeta/0000_snapshot.jsonexists; the journal has entries through0001only; SQL files0003,0004,0005(and now0006, added in 11-01) were hand-written without corresponding journal entries or snapshots. Runningnpx drizzle-kit generatefails immediately withError: Interactive prompts require a TTY terminalbecause drizzle-kit computes a huge diff against the stale0000snapshot. - Origin: Pre-existing since Phase 8 (commit
f727954, "feat(08-02): create Phase 8 migration and validation script" — hand-wrote0003_offer_phases_quote_templates.sqlwithout updating journal/snapshots). - Impact: Every future migration in this repo must be hand-written following Drizzle's SQL output conventions (as 11-01 did for
0006_add_tags_table.sql) until snapshots are reconciled. Low risk as long as the convention is followed consistently, but increases manual effort and risk of SQL syntax drift from what Drizzle would generate. - Recommended fix: Architectural-scope task (Rule 4 — requires user decision): either (a) regenerate
meta/*_snapshot.jsonfiles for0001-0006by introspecting the current live schema withdrizzle-kit pullor manual reconstruction, or (b) accept hand-written migrations as the permanent convention and document it explicitly inCLAUDE.md/project docs so future agents don't attemptdrizzle-kit generateand waste a turn on the TTY error. - Status: Not fixed. Logged only.
2. Stale quote_items ↔ service_catalog JOIN in admin-queries.ts
- Found during: 11-01 Task 2 (carried over from
11-CONTEXT.md"Claude's Discretion") - Issue:
src/lib/admin-queries.ts(lines ~335/343 and ~531/539) doesleftJoin(service_catalog, eq(quote_items.service_id, service_catalog.id)), butquote_items.service_idis typed asreferences(() => services.id, ...)(post-Phase-8). Forquote_itemsrows created after Phase 8, this JOIN won't match and the label falls back toCOALESCE(..., quote_items.custom_label), which may benull. - Impact: Low — admin-only label display in client/project workspace quote_items list. Non-blocking per
11-CONTEXT.md. - Recommended fix: 4-line change — replace
leftJoin(service_catalog, ...)withleftJoin(services, eq(quote_items.service_id, services.id))andservice_catalog.namewithservices.namein bothCOALESCEexpressions, at both line ranges. - Status: Not fixed. Candidate for Phase 12 cleanup or standalone hotfix.
3. .planning/ROADMAP.md is an empty placeholder for v2.1
- Found during: 11-01 state-update step (
gsd-sdk roadmap update-plan-progress 11) - Issue:
.planning/ROADMAP.mdcontains only the literal textPLACEHOLDER(11 bytes).roadmap update-plan-progress 11ran without error ("updated": true) but there is no "Phase 11" section to update, so the file content did not change. The real v2.1 roadmap content (referenced throughout11-CONTEXT.md/STATE.mdas "ROADMAP.md") does not exist in this file — onlymilestones/v1.0-ROADMAP.mdandmilestones/v2.0-ROADMAP.mdexist. - Impact: Low for this plan (doesn't block 11-01 deliverables), but
roadmap update-plan-progressis a no-op for the rest of v2.1 until this is fixed, and any future agent reading@.planning/ROADMAP.mdfor phase goals/success-criteria (as referenced in11-CONTEXT.mdcanonical_refs) will find nothing. - Recommended fix: Populate
.planning/ROADMAP.mdwith the v2.1 roadmap content (Phases 11-17), likely should have been written during/gsd-plan-phasev2.1 setup (commit03898f2"docs(planning): v2.1 milestone setup + Phase 11 context/patterns" added11-CONTEXT.md/11-PATTERNS.mdbut apparently notROADMAP.mdbody content). - Status: Not fixed — pre-existing planning-artifact gap, out of scope for this execution plan.
4. gsd-sdk CLI not available in 11-03 execution environment
- Found during: 11-03, state-update step (
init.execute-phase,state.advance-plan,roadmap.update-plan-progress, etc.) - Issue:
gsd-sdkwas not found onPATH, and nonode_modules-installed copy or local CLI was discoverable. All state updates (STATE.mdposition/progress/metrics/decisions/session) for this plan were applied via directEditto.planning/STATE.mdinstead of via SDK query handlers.ROADMAP.md/REQUIREMENTS.mdupdates were skipped:ROADMAP.mdis still thePLACEHOLDER(item #3 above, no Phase 11 section to update), andREQUIREMENTS.mdalready shows OFFER-07/OFFER-08 as "Complete" (marked during 11-02's execution, before this plan's UI work existed — see item #5). - Impact: Low for this plan —
STATE.mdwas updated manually with equivalent content. No data loss. Future plans (11-04) should checkgsd-sdkavailability early and fall back to manualSTATE.mdedits if still missing. - Status: Not fixed — environment/tooling gap, out of scope for this execution plan.
5. OFFER-07/OFFER-08 marked "Complete" in REQUIREMENTS.md before their UI was built
- Found during: 11-03, requirements-check step
- Issue:
.planning/REQUIREMENTS.mdshows OFFER-07 ("L'utente vede ed edita il catalogoservicescome tabella con inline editing") and OFFER-08 (tag multi-select) asComplete, attributed to Phase 11 — but as of 11-02's completion, only the query layer + server actions existed (no UI). 11-03 (this plan) built theEditableCell/TagMultiSelectprimitives, and 11-04 (not yet executed) is the plan that wires them intoServiceTableto deliver the actual user-facing inline-edit/tag UX described by OFFER-07/08. - Impact: Low — both requirements legitimately complete once 11-04 lands (this plan is a direct, immediate prerequisite, same wave sequence, no risk of the milestone closing prematurely mid-phase). However the "Complete" status in REQUIREMENTS.md was technically premature at the time 11-02 marked it.
- Recommended fix: No action needed if 11-04 executes next as planned. If 11-04 is ever skipped/deferred, re-open OFFER-07/08 status in REQUIREMENTS.md to "In Progress" until the UI wiring lands.
- Status: Not fixed — pre-existing from 11-02, informational only, expected to self-resolve when 11-04 completes.
From Plan 11-04
6. createService server action now unused after ServiceForm.tsx deletion
- Found during: 11-04, Task 2
- Issue:
src/app/admin/catalog/actions.tsexportscreateService(formData: FormData), whose only consumer wassrc/components/admin/catalog/ServiceForm.tsx. This plan deletesServiceForm.tsx(its create-service UX is replaced byServiceTable'sQuickAddRow+quickAddService), leavingcreateService(and itsserviceSchemazod validator, also used byupdateService) as dead/unused exported code. - Impact: Low —
npx tsc --noEmitandeslintboth pass cleanly (unused exported functions are not flagged by this project's lint config). No runtime impact;createServicesimply has zero callers. - Recommended fix: Remove
createService(andserviceSchemaifupdateServiceno longer needs it —updateServicestill uses it, so keep the schema) fromsrc/app/admin/catalog/actions.tsin a follow-up cleanup pass.src/app/admin/catalog/actions.tswas not in this plan'sfiles_modifiedlist, so removing it here would be out of scope (Rule 1/3 do not apply — not a bug, not blocking). - Status: Not fixed. Logged for future cleanup (Phase 12 or a standalone hygiene pass).