Skip to content

Commit 6b14dfa

Browse files
committed
up
1 parent aecd324 commit 6b14dfa

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

  • specs/002-harden-checkout-tenancy

specs/002-harden-checkout-tenancy/tasks.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Generated from `specs/002-harden-checkout-tenancy/spec.md` and `plan.md`.
44

5-
Total tasks: 36 (grouped by phase and user story)
5+
Total tasks: 42 (grouped by phase and user story)
66

77
## Phase 1: Setup
88
- [ ] T001 Initialize feature workspace and artifacts (create `specs/002-harden-checkout-tenancy/artifacts/`)
@@ -56,6 +56,14 @@ Total tasks: 36 (grouped by phase and user story)
5656
- [ ] T035 [P] Add accessibility checks to E2E flows for checkout and newsletter (axe assertions in `tests/e2e/*`)
5757
- [ ] T036 [P] Final audit: run grep for hardcoded `storeId`, run coverage, Lighthouse, and axe and store artifacts in `specs/002-harden-checkout-tenancy/artifacts/`
5858

59+
## Remediation & Constitution Tasks (critical follow-ups)
60+
- [ ] T037 Add integration tests for every modified API route under `src/app/api/**/route.ts`; ensure each modified route has a corresponding integration test in `tests/integration/` and fail pre-merge when missing (map to FR-013, constitution MUST)
61+
- [ ] T038 Schema audit: scan `prisma/schema.prisma` and codebase for CSV/string[] inconsistencies (images, tags, other arrays); create per-field migration tasks and tests under `tests/integration/migrations/`
62+
- [ ] T039 Add k6 load test scripts for checkout and orders export and add Lighthouse CI job to feature CI pipeline; document thresholds and integrate into `.github/workflows/` (map to constitution performance requirements)
63+
- [ ] T040 Background job infra validation: confirm existing job processing infra (worker/queue); if missing, add lightweight dev stub and update `src/services/export-service.ts` to support stub in dev/test
64+
- [ ] T041 Payment pre-validation robustness: add idempotency key handling, retry/backoff policy, and tests for provider outages (update `src/services/payments/intent-validator.ts` and tests)
65+
- [ ] T042 REST audit: scan `src/app/api/**/route.ts` for REST violations (PUT/PATCH misuse, stray `success` flags) and create remediation subtasks to fix each violating endpoint
66+
5967
---
6068

6169
## Dependencies

0 commit comments

Comments
 (0)