53 lines
3.0 KiB
Markdown
53 lines
3.0 KiB
Markdown
# Phase 0 SDD Progress Ledger
|
|
|
|
Plan: docs/superpowers/plans/2026-07-09-phase-0-foundation.md
|
|
Started: 2026-07-09
|
|
|
|
## Tasks
|
|
|
|
- [x] Task 1: Scaffold Next.js + Supabase clients (commit f83686f, review clean)
|
|
- [x] Task 2: Role types + middleware (commit 6939a21, review clean)
|
|
- [x] Task 3: Database migrations (commit 05daf70, review clean — 2 advisories: concurrent ref_no race, evidence soft-delete needs SECURITY DEFINER fn)
|
|
- [x] Task 4: Apply migrations to Supabase cloud (user ran supabase login + link + db push)
|
|
- [x] Task 5: Auth flow (commit 5598594, review clean — LOW: open redirect in callback/route.ts:8 fix before prod)
|
|
- [x] Task 6: Protected dashboard pages (commit c3ba543, review clean)
|
|
- [x] Task 7: QR code generation (commit 152a660, review clean)
|
|
|
|
---
|
|
|
|
# Phase 2 SDD Progress Ledger
|
|
|
|
Plan: docs/superpowers/plans/2026-07-11-phase-2-investigation-capa.md
|
|
Started: 2026-07-11
|
|
Base commit (Phase 2 start): 1fe646d82d23c3d0f493cc4ce8844f5c19c8b699
|
|
|
|
## Tasks
|
|
|
|
- [x] Task 1: DB Migration — triage fields, RCA structured data, write_audit_log RPC (commits dbbb663..a718a2d, review clean — MINOR: DROP CASCADE without explicit signature, no ON DELETE on triaged_by FK)
|
|
- [x] Task 2: DOSH obligation pure function + tests (commit 8b00c72, review clean)
|
|
- [x] Task 3: Triage panel — component, API route, page (commit e55c528, review pending)
|
|
- [x] Task 4: Investigation workspace — component, API route, page (commit 63cb28f, review pending)
|
|
- [x] Task 5: CAPA board + form + detail (commit 1780586, review pending)
|
|
- [x] Task 6: Verification flow (commit 804b1fb, review pending)
|
|
- [x] Task 7: CAPA overdue escalation cron (commit 75fa260, review pending)
|
|
- [x] Task 8: JKKP 6/7 PDF generation (commit 54332d0, review pending)
|
|
|
|
---
|
|
|
|
# Phase 3 SDD Progress Ledger
|
|
|
|
Plan: docs/superpowers/plans/2026-07-11-phase-3-ai-dashboard.md
|
|
Started: 2026-07-11
|
|
Base commit: 0e53d5c
|
|
|
|
## Tasks
|
|
|
|
- [x] Task 1: Claude client + Voyage AI embed helper (commit ebaa98d, review clean — MINOR: module cache isolation in embed test; client.ts uses ?? '' instead of throw on missing key)
|
|
- [x] Task 2: pgvector migration + match_incidents RPC (commit ab6299f, review clean)
|
|
- [x] Task 3: Report quality check (commits 3bec95a..a5933d2, review clean — MINOR: 400/500 fix branches untested; stale qualityCheck state on description edit)
|
|
- [x] Task 4: Triage AI suggestion (commit f10fa07, review clean — MINOR: 500 path untested; return toolBlock.input instead of narrowed input; submit not disabled during aiLoading)
|
|
- [x] Task 5: Similar incident retrieval (commit 547cc6e, review clean — MINOR: cast drops extra columns; error/empty indistinguishable in panel; <a> instead of <Link>)
|
|
- [x] Task 6: RCA/CAPA draft assistant (commit 10e7196, review clean — MINOR: as never cast on p_new_value; implementer added runtime validation beyond spec — positive deviation)
|
|
- [x] Task 7: Dashboard enhancement (commit 3473cf8, review clean — MINOR: by_site sort added beyond spec; verified_at/completed_at casts match brief verbatim)
|
|
- [x] Task 8: Final verification (build clean, 61/61 tests pass)
|