feat(permission): add harness-owned worker grant envelope - #1222
Open
TheGreatAxios wants to merge 3 commits into
Open
TheGreatAxios wants to merge 3 commits into
TheGreatAxios wants to merge 3 commits into
Conversation
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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