Skip to content

implement-in-phases: revision JSON, build-check.py gate and closed review types - #8

Merged
bryanwieg merged 20 commits into
mainfrom
implement-structured
Nov 24, 2026
Merged

bryanwieg merged 20 commits into
mainfrom
implement-structured

Conversation

@bryanwieg

@bryanwieg bryanwieg commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Brings implement-in-phases to the architecture plan-in-phases now has (plugin 0.11.0).

What changes

  • Short SKILL.md (231 → 109 lines) that sends each step to its own guide: revise-guide.md (check the phase against the repo, write .build/NN-revision.json) and build-guide.md (route, dispatch, gate, commit, Codex). The rules keep their meaning; they moved.
  • scripts/build-check.py decides what needs no judgment:
    • record gates each build: no changed file outside the stage's files, and every check command passes. The orchestrator may reject a passing build, never accept a failing one.
    • can-try refuses a model and thinking level already tried for the stage; build errors that never reached a verdict don't count.
    • spend sums premium spend for route --premium-spent.
    • commit / finish make the stage, fix and phase commits with the trailers stage-stats.sh already reads, and keep the phase file's table and status line.
    • A ledger in .build/ keeps every attempt, so a session can resume.
  • revision.schema.json, review.schema.json: JSON written against schemas, checked with plan-check.py's validator.
  • Phase reviewer with closed finding types (untraced change, internal check, bug, not done, test, assumption, rule, unneeded code), written as JSON. The open "a simpler structure exists" check is dropped.
  • Driver script recorded as a todo in structured-implementation-notes.md ("Later"), pointing at the plan-phase-driver branch, with what to measure first.
  • CI: new Tests workflow runs the plugin's pytest suite on pull requests.

Plan and review

Plan in docs/plans/implement-structured/ (3 phases; plan review clean after 3 rounds). Phases 01–02 were reviewed together after the build: 0 blocking and 12 should-fix, 11 of them fixed in the two Fixes-Stage commits. Check-command timeouts are left open until the validation run shows whether they matter.

Testing

  • python3 -m pytest plugins/phased-delivery/tests: 122 passed; test_build_check.py drives the script in temporary git repos (10 tests, about 2 s).
  • One paid end-to-end run of the new skill: a headless Opus medium session built the p2-multistep eval task as a one-phase plan, through start, record, commit, review and finish. The hidden check passes; total cost $0.84. Details and what it didn't exercise are in structured-implementation-notes.md, "Measured".
  • Phase 03 review (the new reviewer, JSON output): 0 blocking findings and 2 should-fix, both fixed.

🤖 Generated with Claude Code

bryanwieg and others added 20 commits November 24, 2026 00:19
…uides)

Three phases, reviewed in three rounds (last round: ready, no findings).
The paid validation run has a ceiling of about $8, agreed 2026-11-24.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 01.1
Plan: docs/plans/implement-structured/01-contracts.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>
Stage: 01.2
Plan: docs/plans/implement-structured/01-contracts.md
Tier: top
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>
Stage: 01.3
Plan: docs/plans/implement-structured/01-contracts.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>
Phase: docs/plans/implement-structured/01-contracts.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 02.1
Plan: docs/plans/implement-structured/02-internals.md
Tier: top
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>
Stage: 02.2
Plan: docs/plans/implement-structured/02-internals.md
Tier: top
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>
Stage: 03.1
Plan: docs/plans/implement-structured/03-cutover.md
Tier: top
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>
Stage: 03.3
Plan: docs/plans/implement-structured/03-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>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes-Stage: 02.1
Tool: claude-code
Model: orchestrator
Effort: default
Tokens: unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…h rows and last commit

Fixes-Stage: 02.2
Tool: claude-code
Model: orchestrator
Effort: default
Tokens: unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phase: docs/plans/implement-structured/02-internals.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stage: 03.2
Plan: docs/plans/implement-structured/03-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>
Stage: 03.4
Plan: docs/plans/implement-structured/03-cutover.md
Tier: small
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>
…re traced

Fixes-Stage: 03.2
Tool: claude-code
Model: orchestrator
Effort: default
Tokens: unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hey change

Fixes-Stage: 03.1
Tool: claude-code
Model: orchestrator
Effort: default
Tokens: unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fixes-Stage: 03.4
Tool: claude-code
Model: orchestrator
Effort: default
Tokens: unknown
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phase: docs/plans/implement-structured/03-cutover.md
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Phase: docs/plans/implement-structured
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bryanwieg
bryanwieg merged commit f626497 into main Nov 24, 2026
1 check passed
@bryanwieg
bryanwieg deleted the implement-structured branch November 24, 2026 01:38
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