2.4 KiB
2.4 KiB
Quality Mode
When to Use
Use --quality when:
- Post-mortem findings are accumulating faster than they're consumed
- All GOALS pass but
next-work.jsonlhas unconsumed high-severity items - You want to resolve context-hot findings from a just-completed epic
- Running immediately after
/post-mortemto action its findings
Do NOT use --quality when:
- GOALS have critical failures (build broken, tests failing)
- No
next-work.jsonlexists or is empty - You want standard fitness-driven improvement
Quality Score
Simple severity-weighted score:
score = 100 - (high_count * 10) - (medium_count * 3)
Where counts are unconsumed findings remaining in next-work.jsonl.
| Score | Meaning |
|---|---|
| 90-100 | Excellent — few or no findings remaining |
| 70-89 | Good — medium-severity items remain |
| 50-69 | Attention needed — high-severity items remain |
| <50 | Quality debt — many high-severity findings |
Priority Cascade (Quality Mode)
- High-severity unconsumed findings → /rpi
- Medium-severity unconsumed findings → /rpi
- Open ready beads → prefer /rpi with bead context
- Failing GOALS.yaml goals and directive gaps → /rpi
- Testing improvements → /rpi
- Validation tightening / bug-hunt / drift mining → /rpi
- Feature suggestions → durable work + /rpi
- Nothing after repeated generator passes → dormancy fallback
Marking Findings Consumed
When evolve picks a finding from next-work.jsonl, claim it first:
- Set
claim_status: "in_progress" - Set
claimed_by: "evolve-quality:cycle-N" - Set
claimed_at: "<timestamp>" - Keep
consumed: falseuntil the /rpi cycle and regression gate both succeed
If the /rpi cycle fails (regression), clear the claim and leave the finding available.
Artifacts
| File | Purpose |
|---|---|
cycle-history.jsonl |
Same as standard mode + quality_score field |
fitness-latest.json |
Same as standard mode (goals measurement) |
quality-trajectory.md |
Quality score over time (written at teardown) |
Interaction with Standard Mode
Quality mode and standard mode share:
- The same cycle-history.jsonl
- The same fitness measurement (goals are still checked)
- The same dormancy guard (repeated empty queue + generator passes)
- The same circuit breaker (60 minutes)
They differ in work selection priority at the top of the ladder: quality mode picks findings first, then still falls through to the same producer layers before dormancy is allowed.