Repository navigation
Conversation
|
Warning Review limit reached
This review includes 14 billable files and costs up to $3.50.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 3 minutes for your next included review. View limit details
|
tee8z
force-pushed
the
feat/shared-agent-budget
branch
from
November 4, 2026 00:37
a6aa635 to
17fad34
Compare
tee8z
force-pushed
the
feat/shared-agent-budget
branch
from
November 4, 2026 00:48
17fad34 to
4ae2675
Compare
tee8z
force-pushed
the
feat/shared-agent-budget
branch
from
November 4, 2026 00:57
4ae2675 to
e92d933
Compare
tee8z
force-pushed
the
feat/shared-agent-budget
branch
from
November 4, 2026 01:04
e92d933 to
3107344
Compare
Signed-off-by: Tee8z <tee8z@protonmail.com>
This was referenced Nov 4, 2026
tee8z
force-pushed
the
feat/shared-agent-budget
branch
from
November 4, 2026 01:29
3107344 to
34d2984
Compare
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.
Shared-agent handoffs need a durable limit across retries, concurrent managers, and Spot recovery. This layer adds atomic admission before a shared task can run.
The agent-signed, encrypted
admitrequest verifies its saved launch identity, current channel grant, original signed messages, and current membership. It cannot change configuration, start or stop a provider, or return launch credentials.A Kubernetes Secret in the initial agent owner's existing namespace records admissions with resourceVersion compare-and-swap. Each human-to-initial-agent task permits four handoffs and two admissions per agent. Identical retries are free. Records expire after seven days; expired signed requests cannot regain budget after cleanup. Each owner/community journal is bounded to 512 tasks and 900 KiB.
Depends on #110, above #101 and #108. Running delivery and shared wakeup are implemented in #113 and #114. This layer alone does not enable teammate tasks.
Validation: SDK and manager suites passed, as did all-target Clippy. Production-path tests cover concurrent reservations, replay, lost write acknowledgements, failed writes, expiry, parent forgery, budget exhaustion, namespace confinement, and attempts to use admission as lifecycle control. The complete two-owner workflow passed in #114 using the real relay, harness and CLI with a simulated model and Kubernetes API. Human acceptance and staging rollout remain pending. Existing session quotas and Spot capacity remain in use.