Repository navigation
fix(agents): deliver awaited background results to their owning tasks - #590
Conversation
Codex Review SummaryThis 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. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b8c2ea95f9
ℹ️ 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".
b8c2ea9 to
da9f2d0
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: da9f2d0af5
ℹ️ 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".
Keep the exact originating task open across native roster removal and transfer its ownership when the matching result continuation is admitted. Carry-Group: incubator Carry-Fix: #579 Carry-Observation: Awaited native background results retain their originating task until the exact result wake is admitted. Carry-Observation: This repair depends on the delegated ownership and native wake foundation assembled by Incubator.
Reject forged and unattributed claims, route mixed native results to each origin, and keep cancelled result continuations from restoring waiting prose as success. Carry-Group: incubator Carry-Fix: #579
… changes Keep stopped-command result fences, transfer full native answers to mixed owners after completion, and distinguish fresh native task generations from stale frames. Carry-Group: incubator Carry-Fix: #579
Collect all reported owners through native completion, including notifications arriving after the initial wake offer or during its drain. Carry-Group: incubator Carry-Fix: #579
Keep late results from one originating run in its existing native answer, without prompting that owner again or releasing unrelated waits. Carry-Group: incubator Carry-Fix: #579
Allow fresh ordinary result wakes in independent threads while rejecting former delegation ownership. Capture owed native reports received during a later ordinary turn and deliver each exact owner after the real native terminal. Carry-Group: incubator Carry-Fix: #579
Reconcile pending native-result requests with their still-owed tasks instead of dropping a whole batch. Drain the buffered wake when all claimed tasks are released, and keep superseded requests from issuing duplicate continuations. Carry-Group: incubator Carry-Fix: #579
da9f2d0 to
d8577a3
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! 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". |
Problem
A remote child agent can finish its foreground turn while it is still waiting on a native background command. When that command left the native roster, the server settled the child's delegated task with the child's earlier "waiting" prose. The parent got that placeholder as the task result, and the command's real answer arrived later with no owner to receive it.
Fix
The delegated task now stays open until the command's actual answer is admitted as a continuation owned by that task. Each owner that is owed a result gets the full native answer, and a newer run is never adopted in place of the owed one.
This holds for:
A result claim that a client forges or that cannot be attributed to an owner is rejected.
Fixes #579. Part of #482.
Review fixes
The Codex review findings are covered by regressions and repaired:
Validation
d8577a392a5e, base2a6026d96caa: all 617 tests across 16 changed files, 35 affected package typechecks, format/lint/dependency/GraphQL checks, Quick CI, and exact same-base checkpoint assembly passed.d8577a392a5e; all review threads are resolved.Carry
The topic commits are carried in the Incubator group because the delegated-ownership foundation they build on first appears there. The product code is unchanged by this grouping, and a local compile of the exact tree on the same base passes.
Boundaries
This source repair does not establish installed Phase 3 acceptance. Ordinary child-owned Actions stay gated, and Phase 4 has not started.
Implemented with GPT-6.1 Sol through Codex at xhigh effort, with implementation by Codex Sol at high effort; local source review by GPT-6.1 Terra at xhigh.
Co-Authored-By: OpenAI Codex [email protected]