Repository navigation
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
foxsky
marked this pull request as ready for review
October 30, 2026 03:21
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
This branch has not been deployed
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.
Related: #166022
What Problem This Solves
Fixes native worker results failing to resume their parent when the parent's saved channel alias no longer resolves.
User Impact
Parents can consume completed worker results and continue their tasks. Sending a visible reply still requires the parent's permitted messaging tools. No configuration or schema migration is introduced.
Why This Change Was Made
Route native completions through the existing private parent-input owner instead of resolving an external destination first. Keep current session-controller custody and exact host-issued source/requester authority. Bind runtime completion facts to the durable processing identity so replay reuses a consumed result and rejects a changed result under the same identity. Processing receipts do not count as external delivery.
This is a separate pre-admission routing failure from the interrupted-input recovery reported in the linked issue; it does not claim to resolve that broader report.
Evidence
8e0ae0da7bd5: a throwing saved-alias resolver ran once, no parent command started, and delivery failed. With the correction, the resolver is not called and the parent runs once.git diff --checkpassed.scripts/perf/update-state-io-measure.ts. That file, its documented command, the Knip registrations/runner, and package/lock/workspace inputs are byte-identical to the pinned base; neither snapshot registers this maintained command. No changed path was flagged. The original aggregate failure is retained; a pristine-base scan was not rerun, and no unrelated fix or suppression was added.The Gateway fixture uses real isolated session storage and controlled parent execution. It does not establish a live Codex thread identity or delivery of an external final message. Hosted CI on the corrected head is pending.
The retired-caller success cases use the real Gateway. A separate restart-drain negative verifies that a fabricated warm-cache result cannot claim private consumption or leave an input, transcript, queued controller, or retained root. This preserves the existing restart guard. The CI correction changes tests only; production bytes remain unchanged. The origin mock now preserves real exports, and its one obsolete grandfathered baseline entry was removed through the native guard.
The 172-line test allocation covers these distinct boundary regressions using existing fixtures; the prior compaction table was adapted rather than duplicated. No sleeps, retries, timeout increases, or new production test seams were added.
Changed-test costs from separate single-worker canonical wrapper invocations:
src/agents/agent-harness-completion-authority.test.tssrc/gateway/server.native-completion-authority.test.tssrc/plugin-sdk/agent-harness-completion.test.tsThe original authority fixture reproduced the CI failure locally: 13 passed, one failed, 109.131 seconds. These wrappers include worker preparation; transformation accounts for most of their time. The Gateway suite exercises actual SDK dispatch, controller serialization, SQLite processing receipts, and compaction admission; helper-only tests cannot prove that wiring. The earlier six-file batch took 390.580 seconds, including 96.333 seconds of shared worker preparation; its unchanged sibling proof is retained.