Skip to content

Stop the agent from persisting its own shell grants in the project permissions file - #904

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-7634-stop-the-agent-from-persisting-its-own-shell-grants-in-the
Sep 11, 2026
Merged

Stop the agent from persisting its own shell grants in the project permissions file#904
TheGreatAxios merged 1 commit into
mainfrom
cl-7634-stop-the-agent-from-persisting-its-own-shell-grants-in-the

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Auto-mode write_file / edit_file / apply_patch of .corbits/permissions.json is now denied the same way .corbits/settings.json is, so an agent-written grant can never become a standing auto-approval.

Verification: secret-guard-plugin suite 115 pass; lint + build pass; typecheck/full-suite gaps pre-existing and environmental (vendor semver, sandbox FS/git timeouts).

Fixes CL-7634

@linear-code

linear-code Bot commented Sep 11, 2026

Copy link
Copy Markdown

CL-7634

@TheGreatAxios
TheGreatAxios force-pushed the cl-7634-stop-the-agent-from-persisting-its-own-shell-grants-in-the branch from 6315cc7 to 59ea7a7 Compare September 11, 2026 05:05
@TheGreatAxios TheGreatAxios changed the title CL-7634: Stop the agent from persisting its own shell grants in the project permissions file Stop the agent from persisting its own shell grants in the project permissions file Sep 11, 2026

@TheGreatAxios TheGreatAxios left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to merge. .corbits/permissions.json is on the same secret-guard denylist as settings, with write/edit/apply_patch coverage and an auto-mode integration check that the denied write cannot become a standing bash -c approval. Docs match the code after the conflict rebase. CI is green on the rebased branch.

@TheGreatAxios
TheGreatAxios merged commit 88325d6 into main Sep 11, 2026
9 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-7634-stop-the-agent-from-persisting-its-own-shell-grants-in-the branch September 11, 2026 05:10
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.

1 participant