Skip to content

feat(permissions): replace global grants with a process file - #1470

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-10749-accept-a-permissions-file-on-corbits-exec-that-replaces-the
Oct 17, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-10749-accept-a-permissions-file-on-corbits-exec-that-replaces-the

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • corbits exec --permissions <path> loads that file's approvals as the grant list for the process.
  • The file replaces ~/.corbits/permissions.json and provider-model grants. It does not merge with them.
  • Allow Always and revoke update that file. Project grants stay on the project file. Session grants stay in memory.
  • --config does not gain an approvals field.

A headless run cannot confirm a project grant file, and it must not inherit the user's global allows. The sandbox and Yolo settings stay in --config.

Verification

  • bun run typecheck and bun run build pass (pre-commit)
  • bun run check:projects-dir-guard passed on this diff (9143 tests, 0 fail)
  • A grant in the file is seeded; a grant that exists only in the user global file is not
  • Revoke and Allow Always with the flag do not write ~/.corbits/permissions.json

Fixes CL-10749

A headless caller cannot confirm a project grant file and must not
inherit the user global list. A separate file replaces that list for
one process.
@linear-code

linear-code Bot commented Oct 16, 2026

Copy link
Copy Markdown

CL-10749

@TheGreatAxios
TheGreatAxios marked this pull request as ready for review October 16, 2026 23:48
@corbits-triage

Copy link
Copy Markdown
Contributor

Triage: Pass

No changes needed from you. A maintainer will review this pull request.

@TheGreatAxios
TheGreatAxios merged commit c63783c into main Oct 17, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant