Repository navigation
fix(agents): use live capability for delegated PR watches - #913
Merged
lastobelus merged 3 commits intoNov 30, 2026
Merged
Conversation
The Phase 4 rollout gate left capable environments relying on parent-owned watches after a checkpoint upgrade. Require the destination to advertise watch continuation support and the parent to assign ownership in its brief. Keep existing owners, the parent fallback, and separate merge permission. Update live instruction copies and replay cases while retaining the frozen Action baseline. Implemented with Codex GPT-6.2 Sol in T3 Code. Guidance written with Claude Opus 5.5. Carry-Group: incubator Carry-Fix: #482 Carry-Evidence: #611
lastobelus
marked this pull request as ready for review
November 30, 2026 07:32
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Keep the destination check, explicit brief, and ownership fallback while shortening the repeated injected text and tool description. Implemented with Codex GPT-6.2 Sol in T3 Code. Carry-Group: incubator
The parent verifies the destination before assigning a watch. A child can act on the assignment without requiring a copy of the capability result in the brief. Implemented with Codex GPT-6.2 Sol in T3 Code. Carry-Group: incubator
Owner
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
3 of 4 tasks
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.
Problem
#482 Phase 4 delivered app-owned task PR-watch continuation in #611, but agent instructions still required build-specific approval. A destination that supports continuation should not also need that approval before a delegated child can own a watch.
Change
orchestrator_capabilitiesfor the child's actual destination environment and confirms thatfeatures.appOwnedPullRequestWatchContinuationVersionis1. No build lookup or version guess is needed.watch_pull_requesttool description, docs, replay fixtures, an instruction test and eval cases, including cases for an assigned child without a capability receipt and a supported but unassigned child.Scope
This fixes the leftover approval rule and replaces it in agent guidance; runtime logic does not change. Background waits for commands are accounted for separately in #824.
Admission and the unassigned control
The server can admit a live app-owned delegated child that calls the watch tool without a watch assignment in its brief. The MCP handler passes authenticated execution provenance. Registration requires the exact live delegated execution and a live task owner, and checks the existing watch generation’s owner when there is one. It does not check the brief for an assignment. The assignment rule is agent guidance.
The first live run produced no unassigned child traces. A follow-up native control on this exact source passed with Codex GPT-6.2 Sol at xhigh. The parent verified version 1, dispatched one app-owned child, and kept the watch assignment. The child handed the pending review back, and neither called
watch_pull_request. The child reported reading the description, but there was no separate description lookup in the trace. Issue 914 tracks the blocked samples.Verification
Tests: 591 focused tests passed.
Checks: Changed-file checks passed.
Replay dry runs: Six built successfully for each of Codex and Claude.
Agent context: compared with the base, the Claude and Codex instruction payloads each shrank by 228 bytes and the MCP tool list shrank by 62 bytes.
Native wording check: two assigned Codex Luna samples on the final source registered the watch, ran one pending gate check, stayed unfinished, then handled a real review wake and unwatched. One repeated the capability check, and one delegation call had a parameter error before dispatch. Four candidate samples (including all three unassigned controls) and three baseline samples stopped before delegation after reporting missing native tools. This gives two complete watch traces and no paired comparison.
Local review: 3 rounds with GPT-6.1 Terra (xhigh) at 9c15a4f, approved.
Implemented with Codex GPT-6.2 Sol in T3 Code. Guidance written with Claude Opus 5.5.