Repository navigation
Phase driver: run-phase.py runs each phase; implement-in-phases uses it (0.13.0) - #11
Merged
Merged
Conversation
Stage: 04.2 Plan: docs/plans/phase-driver/04-driver-contracts.md Tier: middle+ Tool: claude-code Model: fable Effort: low Attempt: 1 Tokens: 593553 Cost: 1.89 Tool-Calls: unknown Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 04.1 Plan: docs/plans/phase-driver/04-driver-contracts.md Tier: middle+ Tool: claude-code Model: fable Effort: low Attempt: 1 Tokens: 249278 Cost: 0.62 Tool-Calls: unknown Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 04.3 Plan: docs/plans/phase-driver/04-driver-contracts.md Tier: middle+ Tool: claude-code Model: fable Effort: low Attempt: 1 Tokens: 683598 Cost: 1.71 Tool-Calls: unknown Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes-Stage: 04.2 Plan: docs/plans/phase-driver/04-driver-contracts.md Tier: middle+ Tool: claude-code Model: opus Effort: high Attempt: 1 Tokens: 317203 Cost: 0.33 Tool-Calls: unknown Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes-Stage: 04.1 Plan: docs/plans/phase-driver/04-driver-contracts.md Tier: middle+ Tool: claude-code Model: opus Effort: high Attempt: 1 Tokens: 103541 Cost: 0.18 Tool-Calls: unknown Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 05.1 Plan: docs/plans/phase-driver/05-driver-internals.md Tier: middle+ Tool: claude-code Model: fable Effort: low Attempt: 1 Tokens: 600562 Cost: 2.19 Tool-Calls: unknown Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 05.2 Plan: docs/plans/phase-driver/05-driver-internals.md Tier: middle+ Tool: claude-code Model: fable Effort: low Attempt: 1 Tokens: 444750 Cost: 1.74 Tool-Calls: unknown Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes-Stage: 05.1 Plan: docs/plans/phase-driver/05-driver-internals.md Tier: middle+ Tool: claude-code Model: opus Effort: high Attempt: 1 Tokens: 546893 Cost: 0.54 Tool-Calls: unknown Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes-Stage: 05.2 Plan: docs/plans/phase-driver/05-driver-internals.md Tier: middle+ Tool: claude-code Model: opus Effort: high Attempt: 1 Tokens: 170708 Cost: 0.29 Tool-Calls: unknown Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 06.1 Plan: docs/plans/phase-driver/06-cutover.md Tier: middle+ Tool: claude-code Model: fable Effort: low Attempt: 1 Tokens: 532945 Cost: 1.52 Tool-Calls: unknown Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 06.2 Plan: docs/plans/phase-driver/06-cutover.md Tier: middle+ Tool: claude-code Model: orchestrator Effort: default Attempt: 1 Tokens: unknown Cost: unknown Tool-Calls: unknown Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Built by run-phase.py in the 06.3 trial run: one stage on Opus high, two fix builds (a review finding, then revision 3 after a plan-gap halt), revise and two reviews on Fable low. Adds a guide test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 06.3 Plan: docs/plans/phase-driver/06-cutover.md Tier: middle+ Tool: claude-code Model: orchestrator Effort: default Attempt: 1 Tokens: unknown Cost: unknown Tool-Calls: unknown Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude-build.sh stops a call that writes no stream line for CLAUDE_BUILD_STALL seconds (default 900; the longest silence in 39 recorded runs was 130 s) and exits 7. run-phase.py undoes the stalled call's edits and runs it once more; a second stall halts `stalled`. SKILL.md: the session clears a build-error's cause itself and asks the user only when it cannot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bryanwieg
force-pushed
the
phase-driver
branch
from
November 24, 2026 15:05
ca2cce1 to
7d59fc7
Compare
bryanwieg
force-pushed
the
phase-driver-run
branch
from
November 24, 2026 15:05
fa7ae02 to
3945881
Compare
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second of two pull requests for the phase-driver plan (phases 04–06). Stacked on #10: the base is
phase-driver; merge #10 first, then this one retargets tomain.What changes
scripts/run-phase.py, the phase driver. It runs one phase end to end: revise (when the phase has not started),start, each stage throughroute,can-try,claude-build.sh,recordandcommitwith the retry ladder, the reviser when a ladder is used up or a builder stops, the phase review, a fix build for eachfix/removefinding,finish, and a report with the stage-stats table. It exits 0 when the phase is built, 10 on a halt and 2 on bad usage. A halt is written intophase.json's record as{step, stage, reason, detail, next}, from 14 reasons, each with a fixednext. A rerun clears the halt and resumes from the records.plan-check.py PLAN_DIR --packet NN.nrenders one stage's brief, plus the phase's role, why, how, before, after and test budget, into the builder's prompt. A fix build gets its finding as text. The reviser and the reviewer still write JSON, checked against the schemas.record.halt,record.built, the run records, the attempt usage fields and the revision hashes are now typed.validateaccepts type lists and a schema asadditionalProperties.implement-in-phases/SKILL.mdruns it and answers each halt from a table;build-guide.mddescribes what the driver does;stage-builder.mdends with aResult:line and has a fix section;model-selection.mddescribes the driver's loop. Version 0.13.0.Validation
tests/test_run_phase.pydrives the real script with a fakeclaude(tests/fake-claude.sh). It covers a full build, revise then halt, resume after a halt, a refused commit, files added to the plan, and a rerun on a built phase. The suite has 140 tests and passes.model-selection.md. It exercised premium routing, the reviser, a review finding fixed by the driver itself, twoplan-gaphalts answered as SKILL.md says, and a reopened stage rebuilt on a new revision. Its output is commit1ef34a1.claude-build.shstops a call afterCLAUDE_BUILD_STALLseconds (default 900) without output and exits 7; the driver undoes the call's edits and runs it once more, and a second stall haltsstalled. The session clears abuild-erroritself when it can.structured-implementation-notes.md.Open question
SKILL.mdlets the session clear abuild-errorhalt itself when the detail shows how, such as a transient service error. The 06.1 brief had listedbuild-erroramong the halts that ask the user. It is left as built, pending a decision.🤖 Generated with Claude Code