History
6 decisions · 4 assumptions to check
- 488f055feat(cli): pull request, task, CI and repository commands like gh · Aman Kumar ·
refs pr merge merges only in a terminal, after the person confirms. An agent that runs the refs CLI through its shell cannot merge as its person.
Why
- An agent that runs a command in its shell acts with the sign-in of its person.
- In refs only people merge, and the web and the MCP tools already keep agents out.
- A person can still merge from a terminal or from the pull request page.
If this changes later
Remove the terminal check. Then any agent with a shell can merge its own work as its person, and the owner must accept that risk.
Paths considered
- Chosen
- Merge with no confirmation, as gh does
- Leave merge out of the CLI
- unconfirmedAny agent with a shell could merge its own pull request.
- omittedPeople merge from the terminal often, and the check keeps agents out today.
Assumes
- Agents run shell commands without a terminal
Touches
refs CLI
Evidence · 1
- apps/cli/refs.mjs
488f055feat(cli): pull request, task, CI and repository commands like gh · Aman Kumar ·
refs pr merge merges only in a terminal, after the person confirms. An agent that runs the refs CLI through its shell cannot merge as its person.
Why
- An agent that runs a command in its shell acts with the sign-in of its person.
- In refs only people merge, and the web and the MCP tools already keep agents out.
- A person can still merge from a terminal or from the pull request page.
If this changes later
Remove the terminal check. Then any agent with a shell can merge its own work as its person, and the owner must accept that risk.
Paths considered
- Chosen
- Merge with no confirmation, as gh does
- Leave merge out of the CLI
- unconfirmedAny agent with a shell could merge its own pull request.
- omittedPeople merge from the terminal often, and the check keeps agents out today.
Assumes
- Agents run shell commands without a terminal
Touches
refs CLI
Evidence · 1
- apps/cli/refs.mjs