Skip to content

feat(permission): add harness-owned worker grant envelope - #1222

Open
TheGreatAxios wants to merge 3 commits into
mainfrom
cl-9475-worker-grant
Open

TheGreatAxios wants to merge 3 commits into
mainfrom
cl-9475-worker-grant

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Sep 29, 2026 •

Copy link
Copy Markdown
Collaborator

Phase 1 of CL-9475: worker deny-on-ask registers a harness-owned denied-call envelope (src/permission/worker-grant.ts) keyed by worker session with single-parent-turn expiry. The deny reason names only the envelope requestId; the parent observes the envelope on the ask record and retries via the existing resume_agent with exact args.

No dedicated grant verb in this phase — single-use and exactness are enforced by the envelope sidecar, not tool plumbing.

Phase 2 (by design, not here): a broad parent session grant can cover more than the exact denied subject, and the atomic grant-and-retry verb will bind the grant to envelope args.

Warden review requested.

Fixes CL-9475

A worker deny-on-ask registers a denied-call envelope keyed by worker session with single-parent-turn expiry. The deny reason names only the envelope requestId and the parent retries via resume_agent with exact args.
@linear-code

linear-code Bot commented Sep 29, 2026

Copy link
Copy Markdown

CL-9475

Ask names its denial via grant_request_id; unnamed keeps first-pending. Expiry yields a fresh gate round that mints a fresh envelope. Precheck-to-consume serializes per fingerprint.
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