Require a human-approved plan before implementing an issue - #3
Merged
Conversation
Every issue now gets a plan posted as a comment before any code is written; work only starts once a human replies exactly "implement". Any other reply is treated as feedback and triggers a revised plan. - models.json gains a "plan" role alongside "implement" and "triage", with its own model ladder - decidePhase reads an issue's comment history (tagging the harness's own comments with a marker) to choose plan / wait / implement - the plan run is read-only (claude.plan_permission_mode) and never commits, verifies, pushes, or opens a PR - new agent-planned label and a plans table in the store track the latest approved/pending plan - retry ladder demotion now keys off failure count rather than attempt count, since a successful plan run no longer demotes the implement run that follows it Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
Summary
implementon that comment. Any other reply is treated as feedback and triggers a revised plan.models.jsongains aplanrole alongsideimplementandtriage, each with its own model ladder (internal/models/registry.go).internal/orchestrator/phase.goreads an issue's comment history — tagging the harness's own comments with an invisible marker — to decideplan/wait/implementbefore anything is claimed.claude.plan_permission_mode, defaultplan) and never commits, verifies, pushes, or opens a PR; it just saves the plan and comments it back.agent-plannedlabel and aplanstable in SQLite track the latest pending/approved plan per issue.Test plan
go build ./...go vet ./...go test ./...(all packages pass, including newphase_test.go/prompt_test.go/ store plan tests)go run ./cmd -config config.example.json -check— boot log shows bothplan_ladderandimplement_ladderimplementreply runs the change and opens the draft PR)🤖 Generated with Claude Code