Repository navigation
feat(sharing): judge a live delegated gateway as its owner - #191
Merged
tee8z merged 1 commit intoNov 13, 2026
Merged
Conversation
|
Warning Review limit reached
This review includes 15 billable files and costs up to $3.75.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 31 minutes for your next included review. View limit details
|
tee8z
force-pushed
the
tee8z/gateway-acts-as-owner
branch
from
November 13, 2026 17:48
dbdb720 to
3842087
Compare
Shared-task admission refused every handoff that a Paseo gateway prompt started. The policy followed the ancestry to the gateway-signed root, found no kind:0 profile and returned Unavailable, so the target agent posted "shared task admission unavailable; retry or recover this task" and the manager answered shared_task_retry forever. With a profile, the manager's managed-key check (#150) denied the task instead. The sharing policy now maps a requester or original-request author that one owner currently delegates as a gateway to that owner, and runs every check on the owner: profile, workspace and channel membership, sharing grants, ancestry and the handoff budget. The gateway must also remain a posting channel member, and a gateway workflow counts only as a literal scheduled prompt. Task records the gateway beside the owner human, so the budget belongs to the owner and receipts keep the actual signer. buzz_sdk::gateway gains lookup(), the owner-window delegation read that buzz-acp's GatewayAccess now shares, and delegator(), which finds the one owner that names a key and confirms it with lookup(). A key named by more than one live owner is refused. check_shared_human now admits a managed daemon key only as the verified live gateway and refuses one that is no longer delegated. A missing profile is a permanent denial, not a retry. The manager logs the failing admission stage and reason for every refusal. This intentionally reverses #150's rule that managed Paseo gateways never use sharing permissions, as approved by Taylor. Signed-off-by: Tee8z <tee8z@protonmail.com>
tee8z
force-pushed
the
tee8z/gateway-acts-as-owner
branch
from
November 13, 2026 18:19
3842087 to
fc2ccc6
Compare
tee8z
changed the base branch from
main
to
tee8z/mention-recovers-ended-session
November 13, 2026 18:20
This was referenced Nov 13, 2026
tee8z
marked this pull request as ready for review
November 13, 2026 18:21
thebrandonlucas
approved these changes
Nov 13, 2026
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.
Application stack block#197: #179 → #182 → #187 → #191 → #180 → #186 → #189 → #188 → #194 → #196. Merge from the bottom upward.
Problem and behavior
Paseo prompts use a delegated gateway key. Shared-task admission previously rejected handoffs rooted in those prompts.
A managed daemon gateway now receives its owner's sharing verdict while that owner's grant remains live. This includes teammates' agents shared in the channel. Unshared agents remain denied. The gateway must retain posting membership.
Authority requires two records: the manager's configured developer Secret binds the gateway to an owner, and that owner's current delegation grants access. Relay claims from other members cannot reclassify a human key, claim a gateway, or make it ambiguous. Generic gateways retain their independent permissions.
Task budgets use the owner identity. Receipts preserve the actual signer. Revoked, expired, displaced, or mismatched managed gateways receive permanent denials. Infrastructure failures remain retryable. Admission logs identify the failing stage without logging content or secrets.
This intentionally extends #150's sharing restriction, as requested: the managed Paseo gateway can invoke the same shared agents as its owner.
Validation
cargo fmt --all -- --checkandgit diff --check: passed.cargo clippy -p buzz-sdk -p buzz-sandbox-reaper -p buzz-acp --all-targets -- -D warnings: passed.cargo test --no-fail-fast -p buzz-sdk -p buzz-sandbox-reaper -p buzz-acp: passed; SDK 355, manager 161, harness library 1,135, plus executable tests.Remaining verification
No live local-relay or staging handoff has been exercised with this revision. Live staging confirmation remains part of the rollout checklist.
Stacked on #187, which owns ended-thread checkpoint recovery. Deploy the manager image before testing delegated handoffs.
Combined stack check
The current combined source passed CLI (569), SDK (359), manager (166), and Kubernetes backend (226) library tests, executable tests, and scoped Clippy. The full
just ciattempt passed workspace Rust lint and stopped at missing desktopgio-2.0dependencies. Live staging checks remain for rollout.