dev-loops · mfittko/dev-loops · simplified lifecycle model
One issue, from startup to merge
A dev-loops run on one GitHub issue, step by step, on the lifecycle only. The Detailed view opens every sub-loop. Pick a scenario or set the conditions yourself, then step. Each step names the loop-engineering idea it shows and the slide in the Finding the flow deck that covers it.
Scenario
What this is
What to watch for
→ next · ← back · R reset · F full window
Step 0
Ready
Starting conditions
The record: what the loop knows
Right column: the step that set the value. Amber: what the guard read for its decision.
Trace
Where the loops are
- Before the first push. Refine reads the code graph and adds the size forecast (planned: issue 2756) and work-order context (planned: issue 2588). The developer self-check compares the diff with the AC, ADRs and non-goals. Defects caught here cost a local edit.
- Pre-PR review. A reviewer reads the change before the first push. Findings go back to the developer while the work is still local.
- The gate round. Review lenses fan out over one head, fan-in checks that every lens reported, and the judge decides per finding: act, defer or reject. Only the act list reaches the fixer.
- Fix and re-gate. Every fix is a new head. Evidence for the old head is stale, so the round runs again. A fix window bounds how often.
- The outer loop. Startup re-reads GitHub and the local artifacts every time. A new unit starts only after the previous merge has its retro checkpoint.
What the record holds
The state lives outside any one chat: the issue and its AC / DoD matrix, the pull request and its head SHA, CI, the gate verdicts per head, and the gate artifacts under tmp/ in the worktree.
Each guard reads that record. A verdict counts only for the head it names. A changed spec makes every clearance from the old spec stale, even when the code did not change.
A session can end and a new one can resume. Startup reads the same record and computes the same next step.
Who decides what
Agents write code, review it and judge findings. Scripts decide whether a step may advance: coverage, validation, head identity, tripwires and merge preconditions. The operator decides intent, acceptance criteria, waivers and, by default, the merge.
- Agents never write a waiver or an operator marker.
- Scripts fail closed: an unknown result blocks, and a config load error never relaxes a gate.
- The operator can grant a standing authorization to merge on a clean full gate.
Where defects are caught
Measured on 2026-10-17: the draft_gate findings of the last 40 merged PRs (2693 to 2803). The sample holds 123 findings across 18 PRs. The counts are lower bounds.
What the findings were
- Correctness: 30%
- Docs and contract drift: 24%
- Test gap: 13%
- Missing context: 10%
- Architecture or contract violation: 9%
- PR-body or evidence format: 8%
- Spec or AC gap: 6%
About 63% were catchable earlier, at
- Pre-PR review with a stale-surface sweep: 33%
- Work-order and refiner context: 11%
- Developer self-check against the AC, ADRs and non-goals: 11%
- Deterministic PR-body lint at
pr create: 8%
Step through the five early-detection scenarios to see each catching stage and the one gap.
Known gaps
Each row below is a stage that is planned or catches defects only in part, with the issue that owns it or no home.