Skip to content

fix(github): bind /builder to the plan the approver selected - #259

Open
islahuddinn wants to merge 1 commit into
theam:mainfrom
islahuddinn:fix/github-builder-plan-binding-233
Open

fix(github): bind /builder to the plan the approver selected#259
islahuddinn wants to merge 1 commit into
theam:mainfrom
islahuddinn:fix/github-builder-plan-binding-233

Conversation

@islahuddinn

Copy link
Copy Markdown

Summary

  • Supersedes older open plan_acceptance proposals when a newer Architect run opens on the same issue, so only one live plan remains in the common case.
  • Refuses bare /builder when multiple live plans exist on an issue (builder_plan_ambiguous).
  • Accepts /builder <proposal-id> (and /codex-builder <proposal-id>) to bind Gate 1 approval to the plan the human actually reviewed.
  • Updates Architect plan publication comments to show the explicit approval command.

Fixes #233

Test plan

  • vitest run test/plan-acceptance.test.ts test/builder-plan-policy.test.ts test/github.test.ts test/github-run-progress.test.ts
  • vitest run test/builder-plan-policy.integration.test.ts (requires Postgres at DATABASE_URL)
  • Manual: run /architect twice on one issue, verify bare /builder is blocked and /builder prop_… approves the intended plan

Made with Cursor

Supersede older open plan_acceptance proposals when a newer Architect run
opens on the same issue, refuse bare /builder when multiple live plans exist,
and accept `/builder <proposal-id>` for explicit Gate 1 binding.

Fixes theam#233

Co-authored-by: Cursor <cursoragent@cursor.com>
@islahuddinn
islahuddinn force-pushed the fix/github-builder-plan-binding-233 branch from 7717db4 to 3dac681 Compare September 2, 2026 07:13
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.

GitHub /builder approves the newest plan on the issue, not the one the approver read

1 participant