Skip to content

Stage-file plans: plan-in-phases and implement-in-phases on the new layout (0.12.0) - #10

Merged
bryanwieg merged 15 commits into
mainfrom
phase-driver
Nov 24, 2026
Merged

bryanwieg merged 15 commits into
mainfrom
phase-driver

Conversation

@bryanwieg

@bryanwieg bryanwieg commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

First of two pull requests for the phase-driver plan (phases 01–03; the plan stays out of the repository). It moves phased-delivery to stage-file plans; the scripted phase driver (phases 04–06) comes in the second PR.

What changes

  • Plan layout: a plan is plan.json plus one folder per phase (phase.json and one NN.n.json per stage, each {brief, record}). plan.md and every phase.md are rendered from the JSON and never edited by hand. The JSON is kept for the plan's life; .plan/ is gone.
  • Revisions are checked: each stage records a hash of the brief per revision. A brief changed without a higher revision is an error in plan-check.py and build-check.py (exit 5). The model ladder starts fresh on each revision, and a committed stage can be reopened and rebuilt as a fix commit.
  • plan-check.py reads, checks and renders the new layout. --phase NN limits the repository checks to one phase.
  • build-check.py takes a phase folder and gates, records and commits from stage files; .build/NN-revision.json, the ledger and revision.schema.json are gone. Commit trailers are unchanged, so stage-stats.sh works as before. Orchestrator builds are refused unless a stage is marked session_only.
  • Rescore and the session hook (plan-mode.py rescore, hooks/session-start.sh) read the new layout.
  • The plan-in-phases and implement-in-phases guides and the README describe the layout. Version 0.12.0.

How it was built

Built with implement-in-phases from main's plugin (0.11.0), copied outside the repository so the stages could not change the tools building them. Each stage commit carries model and token trailers.

  • All 9 stages were accepted on the first try.
  • The three phase reviews (Fable medium) found 7 should-fix issues, all fixed in Fixes-Stage commits.
  • Premium spend: $5.72, $4.41 and $5.06 for the three phases.

Testing

  • python -m pytest -q -p no:cacheprovider plugins/phased-delivery/tests: 133 passed locally.

🤖 Generated with Claude Code

bryanwieg and others added 14 commits November 24, 2026 05:40
Stage: 01.1
Plan: docs/plans/phase-driver/01-plan-layout.md
Tier: middle+
Tool: claude-code
Model: fable
Effort: low
Attempt: 1
Tokens: 318828
Cost: 1.25
Tool-Calls: unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 01.2
Plan: docs/plans/phase-driver/01-plan-layout.md
Tier: middle+
Tool: claude-code
Model: fable
Effort: low
Attempt: 1
Tokens: 490297
Cost: 2.16
Tool-Calls: unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 01.3
Plan: docs/plans/phase-driver/01-plan-layout.md
Tier: middle
Tool: claude-code
Model: opus
Effort: high
Attempt: 1
Tokens: 456092
Cost: 0.84
Tool-Calls: unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 01.4
Plan: docs/plans/phase-driver/01-plan-layout.md
Tier: middle
Tool: claude-code
Model: opus
Effort: high
Attempt: 1
Tokens: 702083
Cost: 0.66
Tool-Calls: unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes-Stage: 01.2
Plan: docs/plans/phase-driver/01-plan-layout.md
Tier: middle+
Tool: claude-code
Model: opus
Effort: high
Attempt: 1
Tokens: 314231
Cost: 0.35
Tool-Calls: unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes-Stage: 01.4
Plan: docs/plans/phase-driver/01-plan-layout.md
Tier: middle
Tool: claude-code
Model: opus
Effort: high
Attempt: 1
Tokens: 195199
Cost: 0.25
Tool-Calls: unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 02.1
Plan: docs/plans/phase-driver/02-planning-skill.md
Tier: middle+
Tool: claude-code
Model: fable
Effort: low
Attempt: 1
Tokens: 507926
Cost: 1.45
Tool-Calls: unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 02.2
Plan: docs/plans/phase-driver/02-planning-skill.md
Tier: middle+
Tool: claude-code
Model: fable
Effort: low
Attempt: 1
Tokens: 318251
Cost: 1.26
Tool-Calls: unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes-Stage: 02.2
Plan: docs/plans/phase-driver/02-planning-skill.md
Tier: middle+
Tool: claude-code
Model: opus
Effort: high
Attempt: 1
Tokens: 71158
Cost: 0.14
Tool-Calls: unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 03.1
Plan: docs/plans/phase-driver/03-build-on-stage-files.md
Tier: middle+
Tool: claude-code
Model: fable
Effort: low
Attempt: 1
Tokens: 684721
Cost: 1.75
Tool-Calls: unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 03.2
Plan: docs/plans/phase-driver/03-build-on-stage-files.md
Tier: middle
Tool: claude-code
Model: opus
Effort: high
Attempt: 1
Tokens: 845729
Cost: 0.96
Tool-Calls: unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 03.3
Plan: docs/plans/phase-driver/03-build-on-stage-files.md
Tier: middle+
Tool: claude-code
Model: fable
Effort: low
Attempt: 1
Tokens: 467236
Cost: 1.50
Tool-Calls: unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes-Stage: 03.1
Plan: docs/plans/phase-driver/03-build-on-stage-files.md
Tier: middle+
Tool: claude-code
Model: opus
Effort: high
Attempt: 1
Tokens: 561953
Cost: 0.64
Tool-Calls: unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes-Stage: 03.2
Plan: docs/plans/phase-driver/03-build-on-stage-files.md
Tier: middle
Tool: claude-code
Model: opus
Effort: high
Attempt: 1
Tokens: 248847
Cost: 0.36
Tool-Calls: unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bryanwieg
bryanwieg merged commit aef4d0d into main Nov 24, 2026
1 check passed
@bryanwieg
bryanwieg deleted the phase-driver branch November 24, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant