name: factory-purple-gate description: Perform Factory Purple Gate adjudication against evidence. Use when Codex is asked to review Stage D or Stage I2, decide PASS, CONDITIONAL PASS, or FAIL, evaluate PACK_CHECKLIST.md, resolve Red/Blue disputes, assess whether scope expansion remains unapproved, or produce PACK_AUDIT_REPORT.md from completed Factory artifacts.
Factory Purple Gate
Workflow
- Read
docs/Factory/Spec/STAGE_CONTRACTS.md,docs/Factory/Spec/PURPLE_GATE_CHECKLIST.md, and the stage inputs markedLOAD. - Verify every required input exists before judging substance.
- Evaluate evidence, not intent or confidence. Cite artifact paths for each conclusion.
- Record unresolved scope expansion, missing verification, weak recall, or unapproved assumptions as blockers.
- Issue one verdict only:
PASS,CONDITIONAL PASS, orFAIL. - If reviewing I2, ensure
PACK_CHECKLIST.mdandPACK_MANIFEST.mdare complete and aligned before producingPACK_AUDIT_REPORT.md.
Verdict Rules
PASS: all critical checklist items are satisfied, no unapproved scope expansion remains, and evidence is complete.CONDITIONAL PASS: critical items pass, but bounded deferrals or non-critical quality gaps remain with explicit follow-up hooks.FAIL: any critical item fails, evidence is missing, scope expansion is unapproved, or the pack cannot be executed/reviewed safely.
Outputs
Return:
- verdict
- critical findings
- conditional findings
- evidence paths
- required fixes before retry, if any
- handoff update path