Skip to content

fix(agents): use live capability for delegated PR watches - #913

Merged
lastobelus merged 3 commits into
lastcode/mainfrom
lastcode/retire-pr-watch-checkpoint-gate
Nov 30, 2026
Merged

lastobelus merged 3 commits into
lastcode/mainfrom
lastcode/retire-pr-watch-checkpoint-gate

Conversation

@lastobelus

@lastobelus lastobelus commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

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

  • Support check: The parent calls orchestrator_capabilities for the child's actual destination environment and confirms that features.appOwnedPullRequestWatchContinuationVersion is 1. No build lookup or version guess is needed.
  • Assignment: The parent must also assign the watch in the delegated child's brief.
  • Fallback: Without the check and assignment, or if the watch is refused for lack of ownership support, the child hands off unfinished work and the parent owns the watch.
  • Unchanged: Current owners keep their watches. Owning a watch grants no merge authority.
  • Consistency: Updates agent instructions, the watch_pull_request tool 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.

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 lastobelus changed the title Use the live capability for delegated PR watches fix(agents): use live capability for delegated PR watches Nov 30, 2026
@lastobelus
lastobelus marked this pull request as ready for review November 30, 2026 07:32
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T07:45:38.053056Z 9c15a4f Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

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
@lastobelus

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 9c15a4feaf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@lastobelus
lastobelus merged commit f4afbfc into lastcode/main Nov 30, 2026
72 checks passed
@lastobelus
lastobelus deleted the lastcode/retire-pr-watch-checkpoint-gate branch November 30, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant