Add API Q1 CAPA: root cause, corrective action gate, effectiveness verification #1
Reference in New Issue
Block a user
Delete Branch "feature/api-q1-capa"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements the tester feedback against API Q1 §5.9.1.2 / §6.4.2.
What's included
Design notes
POST /ncrs/{ref}/capa, editable by QC Inspectors / Disposition Authorities / Admins before closure) rather than a new workflow stage — partial saves by different roles are fine; the gate is enforced once, at the costing action that closes the NCR.vw_ncr_fullPower BI view (migration 0004), seed data, README.app.seed.Testing
cd backend && pytest— 41/41 pass, including newtest_capa.py(gate blocking/unblocking, justification rule, verification stamping, link validation, role enforcement, metrics, CSV columns)npm run build— cleanHeads-up for testers
Any NCR already sitting in Costing when this deploys will be blocked from closing until someone answers the CA question — that's the Q1 gate working as intended, not a bug.
🤖 Generated with Claude Code