Repository navigation
Conversation
|
🦞👀 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. |
|
Codex review: needs real behavior proof before merge. What this changesThis PR preserves a native Codex parent’s accepted tool catalog during its last child’s automatic completion. Example: Native parent 01a18e92-c25a-7e02-939a-b7ae5127109f receives completion from child 01a18e92-ef88-75d2-b7e3-14ee747f42e4.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Partial Merge readiness⛔ Blocked before merge - 3 items remain This PR addresses a real completion-continuity gap still present on main, and no introduced correctness defect was found. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Codex plugin turns host completion input into native parent continuations, recovering accepted declarations while building executors under the current turn’s authority. flowchart TD
A[Native child completes] --> B[Completion delivery owner]
B --> C[Current custody check]
C --> D[Accepted native catalog]
D --> E[Parent continuation]
E --> F[Current execution checks]
F --> G[Native or tool effect]
Technical reviewBest possible solution: Keep catalog recovery in the existing completion owner and establish its denial and revocation behavior through the final effect boundary. Do we have a high-confidence way to reproduce the issue? Current-main source shows execution protection ending before delivery while catalog recovery still requires that protection; the contributor records failing-before regressions, but this read-only review ran no reproduction. Is this the best way to solve the issue? The smallest complete repair uses the existing in-flight completion owner, preserves native declarations, and retains current executor checks; the parent-release extraction preserves the earlier intentional lifecycle behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 77869fe2570c. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: shipped entry point. SecurityNeeds attention: No concrete bypass was found, but retained-custody catalog recovery still needs final-effect authority proof. EvidenceSecurity concerns:
What I checked:
Likely related people:
PR surfaceSource +119, Tests +126, Other +2. Total +247 across 10 files. Added test files: 0. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 30, 2026, 5:16 PM ET / 21:16 UTC. |
|
Published 10.10 follow-up: #174900 is correctly listed in the release notes, but its protected-parent catalog recovery does not cover the last-child completion after execution protection has ended. The published tag still has that guard; the PR body now links the exact source and distinguishes the remaining interval from the upstream fix. The body also records successful real-model continuation on macOS and Linux with a selective port to official 10.10 packages. This is additional combined-port evidence, not a replacement for exact-head proof. The requested downstream denial/reassignment qualification remains open; I am not asking to waive it. Please review this as the focused completion-lifetime follow-up to #174900, with #188526 as the release counterpart. |
Current-main port (November 7, 2026)
The current-main completion-catalog port is now tracked in #194753, on top of #194748. It uses exact native completion custody and current executor ownership without copying the older release-specific schema/catalog overrides. The evidence below remains historical evidence for this PR head; it is not proof of the newer port or clearance of the earlier downstream native-dispatch review request.
Related: #153354
What Problem This Solves
Fixes a native Codex parent switching threads and losing access to its existing child when the last child's completion resumes the parent.
User Impact
A parent can receive its child's completion and send a follow-up to that same child without replacing the native parent thread or rebuilding its accepted tool catalog. No configuration or migration is required. This change does not address duplicate visible completion replies.
Why This Change Was Made
The existing catalog recovery path depends on live-child execution protection. That protection is correctly released before the last child's completion is delivered, leaving the automatic continuation exposed to a newly generated catalog.
Use the existing completion-delivery owner to identify an exact, currently in-flight completion for the same parent, child, requester session, run, and physical client. Only that delivery can recover the native thread's accepted catalog. Its authority is checked again after metadata is read. Runtime, home, transport, catalog fingerprints, and current tool-execution checks remain enforced; ordinary turns retain their existing behavior. No additional registry or SDK surface is introduced.
Codex's native contract was checked against
rust-v0.164.0(6aaac694803004a63c6f393d153c96d22521a6b9):thread/startaccepts dynamic tools, whilethread/resumedoes not replace them. A small existing parent-release loop moves to the existing parent owner without changing its behavior, keeping the monitor within the repository's source-size gate.Published 2026.10.10: what is already fixed and what remains
The release notes credit #174900 for native catalog continuity. That is the upstream foundation this PR extends: protected parents can reuse their accepted declarations while current tool permissions remain enforced. It does not cover every completion lifetime. In the published tag's catalog guard, recovery still requires live-thread protection. The last child's completion releases that protection before delivery, so this automatic continuation can still miss catalog recovery and replace its parent thread.
This PR addresses that remaining completion-delivery interval through the existing owner, without weakening runtime fingerprints or granting execution rights from retained declarations. #188526 carries the corresponding release-branch change together with its WebChat-origin repair. The release notes therefore do not make this PR redundant.
Evidence
Additional published-release check — November 3, 2026
A selective port of this catalog change, the release-specific WebChat fix, and the remaining retirement error-class fix was applied to official 10.10 packages. On both macOS and Linux, a real-model authenticated WebChat run completed parent → child → automatic completion → same parent → follow-up to the same child. The parent and physical client stayed the same; the child returned its remembered marker. Shipped CLI history confirmed settlement. On Linux, an actual
session_statuscall also succeeded after completion. These were observations of the combined installed port, not a new exact-head run of this PR or proof of all fallback paths.The port's 50 focused tests passed, including composed checks for wrong-requester catalog denial, custody revoked during an awaited metadata read, and current executor restrictions after catalog recovery. The downstream native-dispatch denial and custody-reassignment trace requested in review is still missing. These checks do not clear that security/proof request. Accepted native metadata was inspected after each live run; no independent before-run catalog snapshot was taken. The exact-candidate evidence and its limits remain below.
git diff --check, source-size and test-line gates pass. The separate allocation grants exactly the change's 126 net regression-test lines; no shared ceiling or source-size baseline is raised.f3009a56907e34a42d0d453dddff8adb13de4f20..417d7e2113f065fb147bd458584dc72d9538b43f, including complete affected owners and authority context, found no actionable P0–P2 findings. Tests were executed separately, not by the reviewer.pnpm build:runtimepasses on417d7e2(82.3 s). A real-model, authenticated WebChat run on that exact source/build completes parent → child → automatic completion → parent continuation → follow-up to the same child. All three parent-ready events identify the same native parent and physical client; the child's follow-up returns its remembered marker. All 48 originally accepted functions match the final retained binding. The shipped CLI confirms the visible result and settled session.pnpm test:extension codex --maxWorkers=6: 5,368 passed, 3 failed, 17 skipped, across 441 executed files (481.57 s). Two failures are macOS process-inspection permission errors in unchangedtransport-startup.test.ts; the third is the validation-watcher assertion in unchangedtranscript-mirror-cleanup.test.ts. For the watcher failure, temporarily reversing this entire patch, verifying the parent-tree source bytes, and running the exact file through the supported Node 24 wrapper reproduces the same assertion on basef3009a5(1 failed, 12.77 s). The patch was then restored and all changed-file hashes and clean HEAD verified. The process-permission signatures were also reproduced during the release baseline investigation; they have not been repaired here. Watcher root cause/order sensitivity remains undiagnosed. This full lane is not claimed as passing. No assertion, timeout, retry, skip, or expected-failure setting was weakened.The live run used the pinned OpenClaw Bun 1.4.4 and Codex 0.164.0, isolated synthetic state, internal routing, and disabled model fallbacks. It produced two identical visible final replies, one for each child completion. It qualifies thread/catalog/child continuity, not exactly-once delivery, stale external routing, or general fallback behavior. The original accepted metadata was inspected after the run; no independent before-run catalog snapshot was taken.
Sanitized exact-candidate runtime proof