feat(delegation): delegate claimed ticket work - #790
Merged
Conversation
added 10 commits
July 29, 2026 05:48
Implement the Agent Scripts v2 delegated-execution boundary for one active claimed assignment. Prepare hash-bound invocations, service fresh-state authority checkpoints, validate ready, blocked, and requires-epic terminal results, and record immutable mailbox receipts without absorbing the dependency workflow. Update the production skill contract, host pin, policy documentation, and end-to-end contract coverage.
Persist the canonical invocation digest before handing work to a fresh worker and verify it at every checkpoint and terminal transition. Fence sequence, token, candidate identity, effective acceptance policy, tracker state, and normalized review evidence with adversarial contract coverage.
Provide a probed one-shot checkpoint adapter that captures fresh native state before every delegated decision and fences policy or canonical-base drift. Recover an exact remotely verified pushed candidate in the blocked receipt when publication acknowledgement fails, while preserving append-only claim history and fresh-clone reconstruction. Add installed-protocol, drift, and handoff contract coverage and update the delegation doctrine.
Persist each candidate-bearing authorization's exact remote ref alongside its head and require publication, downstream mutation, and blocked recovery to match both. Reject same-head substitutions onto an unauthorized ref with or without an older acknowledged candidate, while preserving the verified acknowledgement-failure recovery path.
Document candidate_remote_ref in the complete authorization shape so the contract matches the frozen schema and writer.
Honor the pinned Agent Scripts v2 blocked and requires_epic result shapes, preserve current candidate handoffs, and cover exact installed-protocol finalization.
Reject dependency review evidence that cannot be represented truthfully as review-code-change, with exact installed-protocol and no-mutation coverage.
Keep repository-owned delegation assertions active in clean CI environments while validating exact Agent Scripts v2 result shapes whenever the independent installed bundle is available.
Require the terminal pull request topology to identify the exact acknowledged candidate ref, head, and base. Cover each mismatched field and preserve mailbox state on rejection.
Require the live pull request head repository to match the acknowledged managed candidate. Reject foreign fork topology without advancing the mailbox.
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.
TL;DR
Delegates one claimed Atelier assignment through the pinned Agent Scripts v2 protocol with executable checkpoints, exact authority fencing, durable delivery receipts, and recoverable handoffs.
Summary
Tickets
Fixes #779