Skip to content

Use p1 instead of plan for the final approval gate item in /autoplan - #4189

Closed
ElNeMeR70 wants to merge 1 commit into
garrytan:mainfrom
ElNeMeR70:fix/autoplan-gate-item-id-p1
Closed

ElNeMeR70 wants to merge 1 commit into
garrytan:mainfrom
ElNeMeR70:fix/autoplan-gate-item-id-p1

Conversation

@ElNeMeR70

Copy link
Copy Markdown
Contributor

Phase 4 of /autoplan instructed the agent to write the final approval gate item with id plan and reply tokens plana, planc, pland, and plane, which gstack-gate rejects because gate item ids require a trailing number. Updating the template and generated skill doc to use p1 and p1a/p1c/p1d/p1e matches lib/autoplan-gate.ts and passes gstack-gate validation.

Summary

  • Replace and \plan` (approval: ...)withand `p1` (approval: ...)and replaceplana/planc/pland/planewithp1a/p1c/p1d/p1einautoplan/SKILL.md.tmplandautoplan/SKILL.md`.
  • Add a regression test in test/gate-list.test.ts verifying that autoplan/SKILL.md.tmpl and autoplan/SKILL.md specify p1 and p1a/p1c/p1d/p1e and that validateGateList and parseReply accept them.

Fixes #4181

Phase 4 of /autoplan told the agent to write the final approval gate item
with id `plan` and reply tokens `plana`, `planc`, `pland`, and `plane`,
which `gstack-gate` rejects because `ID_RE` requires a trailing number.
Update `autoplan/SKILL.md.tmpl` and `autoplan/SKILL.md` to use `p1` and
`p1a`/`p1c`/`p1d`/`p1e` matching `lib/autoplan-gate.ts`.

Fixes garrytan#4181
@trunk-io

trunk-io Bot commented Nov 9, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@capy-ai

capy-ai Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Thanks. This idea landed in #4219 (merged as 1b96d9f), rewritten on current main with you credited as co-author. Closing this one as superseded.

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.

/autoplan tells the agent to write a gate item with id plan, which gstack-gate rejects

1 participant