Codex Diagnose and Review
Diagnose Flow
Use for bugs, instability, and unclear failures.
- •Collect evidence from logs, tests, and reproducible steps.
- •Build hypotheses and rank by likelihood and impact.
- •Validate top hypotheses with minimal reproducible checks.
- •Identify root cause using 5 Whys where applicable.
- •Propose fix options with trade-offs and risk.
- •Implement selected fix with tests.
- •Re-run quality gates and summarize residual risk.
Use ai-development-guide for debugging methods and anti-pattern detection.
Review Flow
Use for post-implementation design compliance checks.
- •Select target Design Doc or acceptance criteria source.
- •Evaluate implementation coverage against requirements.
- •Classify gaps:
- •auto-fixable in current scope
- •requires design or requirement decision
- •Apply safe fixes directly when approved.
- •Run full quality checks and re-validate compliance.
- •Report initial score, final score, and remaining issues.
Decision Thresholds
- •Prototype: allow lower compliance with clear risk notes.
- •Production: high compliance expected, critical items mandatory.
- •Security and data integrity gaps are always blocking.
Hard Rules
- •Do not treat symptom suppression as a fix.
- •Do not bypass type/validation safety to silence errors.
- •Do not skip regression tests when fixing defects.