Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Auto detect text files and perform LF normalization on checkout
* text=auto eol=lf
*.md text eol=lf
*.ts text eol=lf
*.tsx text eol=lf
*.js text eol=lf
*.mjs text eol=lf
*.cjs text eol=lf
*.json text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.css text eol=lf
*.py text eol=lf
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
Expand All @@ -29,7 +29,7 @@ jobs:

typecheck:
name: Type Check
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: lint
steps:
- uses: actions/checkout@v4
Expand All @@ -49,7 +49,7 @@ jobs:

format:
name: Format Check
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: lint
steps:
- uses: actions/checkout@v4
Expand All @@ -67,7 +67,7 @@ jobs:

pytest:
name: Pytest
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: lint
steps:
- uses: actions/checkout@v4
Expand All @@ -87,7 +87,7 @@ jobs:

test:
name: Test
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: lint
services:
postgres:
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
- run: pnpm db:generate
env:
DATABASE_URL: postgresql://test:test@localhost:5432/test
- run: pnpm db:push
- run: pnpm db:migrate:deploy
env:
DATABASE_URL: postgresql://test:test@localhost:5432/test
- run: pnpm test
Expand All @@ -133,7 +133,7 @@ jobs:

db-harness:
name: DB Harness
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: [typecheck, test]
services:
postgres:
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
- run: pnpm db:generate
env:
DATABASE_URL: postgresql://test:test@localhost:5432/test
- run: pnpm db:push
- run: pnpm db:migrate:deploy
env:
DATABASE_URL: postgresql://test:test@localhost:5432/test
- run: pnpm build
Expand All @@ -187,7 +187,7 @@ jobs:

migration-chain:
name: Migration Chain
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: [lint]
services:
postgres:
Expand Down Expand Up @@ -249,7 +249,7 @@ jobs:

build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: [typecheck, format, pytest, test, db-harness, migration-chain]
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
e2e:
name: Playwright E2E
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

Expand Down
60 changes: 30 additions & 30 deletions .planning/MILESTONES.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,36 +60,36 @@ Build a deployable portfolio piece — one real dataset, one real annotation flo

### Phase Progress

| # | Name | Goal | Status |
| ----- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
| 11 | Public README & Portfolio First Impression | Root README, architecture diagram, demo GIF, setup docs | ✅ Done |
| 12A | CI/CD Completeness | Full CI pipeline, db:generate, format check, pytest | ✅ Done |
| 12B | Local Stack & Seed Reliability | Docker compose, boot scripts, seed, .env.example | ✅ Done |
| 12C | Dev Flow & Local Reliability Closeout | DB scripts, CV port alignment, script fixes | ✅ Done |
| 13 | Security & Input Validation Hardening | ValidationPipe, CORS, upload hardening, safe errors | ✅ Done |
| 14A | Adapter Boundary Cleanup | Repository interfaces, adapter implementations | ✅ Done |
| 14B | Domain Invariants & State Machines | Zod validation, job state machine, audit logs | ✅ Done |
| 15 | Observability & Health Checks | Request IDs, structured logs, /health endpoints | ✅ Done |
| 15.5 | Runtime Truth & State Consistency | WorkbenchRuntimeState, eligibility selectors | ✅ Done |
| 15.6 | Workflow Guidance & Primary Next Action | NextAction model, disabled reasons, recovery paths | ✅ Done |
| 15.7 | Contextual Inspector | Section-aware inspectors (Media, Dataset, Annotation, Pipeline, Jobs) | ✅ Done |
| 15.8 | UX States & Table Actions | EmptyState, ErrorState, DisabledReason, RowActions | ✅ Done |
| 15.9 | Visual System Hardening | Focus-visible, semantic colors, consistent spacing | ✅ Done |
| 15.10 | Motion, Portfolio Mode & Regression Tests | Purposeful motion, isPortfolioSafe, 32 regression tests | ✅ Done |
| 16A | Frontend Split Minimum | Feature module extraction (media, inference) | ✅ Done |
| 17 | Real Media Processing | Pillow thumbnails, MinIO read/write, BullMQ consumer, derivative persistence, checksum field | ✅ Done |
| 18 | Dataset Locking & COCO Export | Lock invariants, annotation immutability, deterministic COCO export, real image dimensions | ✅ Done |
| 19 | Real ONNX Detector & Prediction Persistence | YOLOv8n ONNX, prediction traceability, SHA-256 pinned, runtime smoke verified | ✅ FULL PASS |
| 20 | Evaluation Report E2E | IoU matching, persisted reports, per-class metrics, label mapping | ✅ FULL PASS |
| 20B | Evaluation Correctness Hardening | 7 correctness bugs fixed: per-class agg, LOCKED check, GT scoping, strict parse, non-lossy hash, matches, metricsHash | ✅ Done |
| 20C | Evaluation Integrity Finalization | Shared hash module, seed alignment, safe legacy adapter, 12-point harness, README fixed | ✅ Done |
| 20D | Evaluation Persistence & CI Hardening | DB columns, upsert-by-hash, read consistency, hex regex, strict harness fix, phase20d harness, DB-backed integration tests, CI wiring | ✅ FULL PASS |
| 20E | Evaluation Migration Finalization | Explicit migration SQL, backfill scripts, CI test job fix, phase20e harness, Phase 20D/20E artifact closeout | ✅ FULL PASS |
| 20F | Migration Chain Baseline & Backfill Hardening | Baseline migration, migrate deploy, migration-chain CI job, backfill hardening, phase20f harness, Phase 20E harness fixes | ✅ FULL PASS |
| 21 | Frontend Split Completion | Phase 21A/21B/21C/21D all complete. InspectorRouter fake state removed. AppRoutes prop surface clean. Phase 21 closed. | ✅ Done |
| 22A | Test Harness & Fixtures | Fixture contract, deterministic fixture harness, meta-harness, CI wiring | ✅ Done |
| 22B | Production-Path Test Suite | API harness (8 checks), meta-harness (DB-only CI-safe), Playwright smoke (10 tests), CI wiring. FIXTURE_IDS canonical source. | ✅ FULL PASS |
| 23 | Full E2E Playwright & Demo Video | Complete E2E flow: 19 Playwright tests, meta-harness (22A+22B+Playwright), demo docs (README-DEMO.md, DEMO-CHECKLIST.md), README portfolio cleanup, all planning artifacts updated | ✅ FULL PASS |
| # | Name | Goal | Status |
| ----- | --------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
| 11 | Public README & Portfolio First Impression | Root README, architecture diagram, demo GIF, setup docs | ✅ Done |
| 12A | CI/CD Completeness | Full CI pipeline, db:generate, format check, pytest | ✅ Done |
| 12B | Local Stack & Seed Reliability | Docker compose, boot scripts, seed, .env.example | ✅ Done |
| 12C | Dev Flow & Local Reliability Closeout | DB scripts, CV port alignment, script fixes | ✅ Done |
| 13 | Security & Input Validation Hardening | ValidationPipe, CORS, upload hardening, safe errors | ✅ Done |
| 14A | Adapter Boundary Cleanup | Repository interfaces, adapter implementations | ✅ Done |
| 14B | Domain Invariants & State Machines | Zod validation, job state machine, audit logs | ✅ Done |
| 15 | Observability & Health Checks | Request IDs, structured logs, /health endpoints | ✅ Done |
| 15.5 | Runtime Truth & State Consistency | WorkbenchRuntimeState, eligibility selectors | ✅ Done |
| 15.6 | Workflow Guidance & Primary Next Action | NextAction model, disabled reasons, recovery paths | ✅ Done |
| 15.7 | Contextual Inspector | Section-aware inspectors (Media, Dataset, Annotation, Pipeline, Jobs) | ✅ Done |
| 15.8 | UX States & Table Actions | EmptyState, ErrorState, DisabledReason, RowActions | ✅ Done |
| 15.9 | Visual System Hardening | Focus-visible, semantic colors, consistent spacing | ✅ Done |
| 15.10 | Motion, Portfolio Mode & Regression Tests | Purposeful motion, isPortfolioSafe, 32 regression tests | ✅ Done |
| 16A | Frontend Split Minimum | Feature module extraction (media, inference) | ✅ Done |
| 17 | Real Media Processing | Pillow thumbnails, MinIO read/write, BullMQ consumer, derivative persistence, checksum field | ✅ Done |
| 18 | Dataset Locking & COCO Export | Lock invariants, annotation immutability, deterministic COCO export, real image dimensions | ✅ Done |
| 19 | Real ONNX Detector & Prediction Persistence | YOLOv8n ONNX, prediction traceability, SHA-256 pinned, runtime smoke verified | ✅ FULL PASS |
| 20 | Evaluation Report E2E | IoU matching, persisted reports, per-class metrics, label mapping | ✅ FULL PASS |
| 20B | Evaluation Correctness Hardening | 7 correctness bugs fixed: per-class agg, LOCKED check, GT scoping, strict parse, non-lossy hash, matches, metricsHash | ✅ Done |
| 20C | Evaluation Integrity Finalization | Shared hash module, seed alignment, safe legacy adapter, 12-point harness, README fixed | ✅ Done |
| 20D | Evaluation Persistence & CI Hardening | DB columns, upsert-by-hash, read consistency, hex regex, strict harness fix, phase20d harness, DB-backed integration tests, CI wiring | ✅ FULL PASS |
| 20E | Evaluation Migration Finalization | Explicit migration SQL, backfill scripts, CI test job fix, phase20e harness, Phase 20D/20E artifact closeout | ✅ FULL PASS |
| 20F | Migration Chain Baseline & Backfill Hardening | Baseline migration, migrate deploy, migration-chain CI job, backfill hardening, phase20f harness, Phase 20E harness fixes | ✅ FULL PASS |
| 21 | Frontend Split Completion | Phase 21A/21B/21C/21D all complete. InspectorRouter fake state removed. AppRoutes prop surface clean. Phase 21 closed. | ✅ Done |
| 22A | Test Harness & Fixtures | Fixture contract, deterministic fixture harness, meta-harness, CI wiring | ✅ Done |
| 22B | Production-Path Test Suite | API harness (8 checks), meta-harness (DB-only CI-safe), Playwright smoke (10 tests), CI wiring. FIXTURE_IDS canonical source. | ✅ FULL PASS |
| 23 | Full E2E Playwright & Demo Video | Complete E2E flow: 19 Playwright tests, meta-harness (22A+22B+Playwright), demo docs (README-DEMO.md, DEMO-CHECKLIST.md), README portfolio cleanup, all planning artifacts updated | ✅ FULL PASS |

### Phase 11 Key Outcomes

Expand Down
42 changes: 21 additions & 21 deletions .planning/REQUIREMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,26 +203,26 @@ The following are explicitly out of scope for v1.1:

## Traceability

| REQ-ID | Phase | Status |
| ------------------------- | ---------- | -------- |
| PORT-01 through PORT-06 | 11 | Done |
| CI-01 through CI-04 | 12 | Done |
| SEC-01 through SEC-11 | 13 | Done |
| ABS-01 through ABS-10 | 14A | Done |
| DOM-01 through DOM-07 | 14B | Done |
| OBS-01 through OBS-07 | 15 | Done |
| PRE16-01 through PRE16-17 | 15.5-15.10 | Done |
| UI-01 through UI-09 | 16A | Partial |
| MED-01 through MED-09 | 17 | Partial |
| LOCK-01 through LOCK-09 | 18 | Done |
| DET-01 through DET-08 | 19 | Done |
| EVAL-01 through EVAL-09 | 20 | Done |
| FSC-01 | 21A | Partial |
| FSC-02 through FSC-05 | 21B | Pending |
| FSC-06 | 21D | Pending |
| FSC-07 | 21B | Pending |
| FSC-08 through FSC-10 | 21A | Done |
| TEST-01 through TEST-13 | 22 | Pending |
| E2E-01 through E2E-10 | 23 | Pending |
| REQ-ID | Phase | Status |
| ------------------------- | ---------- | ------- |
| PORT-01 through PORT-06 | 11 | Done |
| CI-01 through CI-04 | 12 | Done |
| SEC-01 through SEC-11 | 13 | Done |
| ABS-01 through ABS-10 | 14A | Done |
| DOM-01 through DOM-07 | 14B | Done |
| OBS-01 through OBS-07 | 15 | Done |
| PRE16-01 through PRE16-17 | 15.5-15.10 | Done |
| UI-01 through UI-09 | 16A | Partial |
| MED-01 through MED-09 | 17 | Partial |
| LOCK-01 through LOCK-09 | 18 | Done |
| DET-01 through DET-08 | 19 | Done |
| EVAL-01 through EVAL-09 | 20 | Done |
| FSC-01 | 21A | Partial |
| FSC-02 through FSC-05 | 21B | Pending |
| FSC-06 | 21D | Pending |
| FSC-07 | 21B | Pending |
| FSC-08 through FSC-10 | 21A | Done |
| TEST-01 through TEST-13 | 22 | Pending |
| E2E-01 through E2E-10 | 23 | Pending |

**Total:** 149 requirements | **Done:** 90 | **Partial:** 12 | **Pending:** 47
Loading
Loading