Skip to content

fix: block model from simulating /planner-finish via planner_finish_step#29

Merged
m62624 merged 3 commits into
mainfrom
fix/done-gate-and-readme
Jun 15, 2026
Merged

fix: block model from simulating /planner-finish via planner_finish_step#29
m62624 merged 3 commits into
mainfrom
fix/done-gate-and-readme

Conversation

@m62624

@m62624 m62624 commented Jun 15, 2026

Copy link
Copy Markdown
Owner

No description provided.

m62624 and others added 3 commits June 15, 2026 23:56
Two new guards in validateWorkflowExit:
1. done/await_user_acceptance blocks planner_finish_step unless the
   target is handle_change_request — the model must tell the user to
   run /planner-finish; it cannot advance the internal done steps itself.
2. Internal done steps (prepare_output_branch, merge_or_export_result,
   cleanup_worktree, mark_done, cleanup_plan_files) always block
   planner_finish_step — /planner-finish drives them atomically.

Root cause: user typed /planner-finish as chat text (not as a CLI
slash command); model treated it as acceptance and called
planner_finish_step six times through internal steps without doing any
real work, leaving the plan in done/cleanup_plan_files/running limbo.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…eference

New sections:
- Mermaid flowchart showing all 8 stages, execution loop, recovery path,
  and /planner-finish exit — rendered natively on GitHub
- Stage/step tables for all 52 steps with descriptions of what each does
- "How Local Models Are Kept on Track" — 10 enforcement mechanisms:
  persisted state, dual-gate tool allowlist, exit-condition validation,
  echo expected-vs-received, Verification Protocol enforcement, compact
  checkpoints, AGENTS.md contracts, skill library, Git isolation, recovery

Goal: give anyone reading the repo a full mental model of what the
extension does and why each piece exists, without reading the source.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions Bot added the fix label Jun 15, 2026
@m62624 m62624 merged commit 50536dc into main Jun 15, 2026
2 checks passed
@m62624 m62624 deleted the fix/done-gate-and-readme branch June 15, 2026 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant