Skip to content

fix(codex): preserve native assignments across parent rotation - #160952

Merged
steipete merged 14 commits into
mainfrom
deslop/l73-native-fixture
Sep 30, 2026
Merged

steipete merged 14 commits into
mainfrom
deslop/l73-native-fixture

Conversation

@steipete

@steipete steipete commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

An upgrade can import native child assignments successfully, then lose them when the parent thread rotates. Ordinary rotation cleared the predecessor binding before starting its replacement. That clear removed pending assignments and retained completions while preserving the import marker, so recovery could neither deliver the result nor import it again.

User Impact

Pending native work and completed child results remain recoverable through parent rotation within the same session and connection. Failed replacement attempts retain the predecessor's recovery facts. Reset, retirement, connection-change filtering, native ownership and execution-authority checks remain in their existing owners; there is no new configuration or protocol.

Why This Change Was Made

The lifecycle now stages the exact predecessor and uses the existing replace-thread transaction. Its store owner decides whether assignments can survive the connection transition. Ordinary rotation still releases its native subscription before starting the successor, preserving the active-work refusal. Configured-MCP rotation retains its existing release after commit. A temporary turn neither replaces the stored binding nor releases the predecessor. The live authority check previously performed by the clearing mutation remains explicit before staging.

The regression exercises startOrResumeThread with the real binding mutator. It carries a pending child, a recorded completion and import provenance through replacement, and covers failed starts, cancellation, revoked authority, competing replacements, claimed predecessors, changed connections and temporary turns. The failed-attestation test still requires cleanup of the rejected successor and now requires the predecessor to remain intact.

The upgrade fixture also needed independent thread identities and explicit seed/close prompts. Its handoff interrupts only the witnessed seed-parent turn after the published Gateway stops, joins acknowledgment with the terminal notification, and verifies unchanged children and legacy rows. These behaviors follow the inspected Codex 0.155.1 contract. Four read-only inventory captures exposed the product loss; their existing preparation owner clears them between attempts. Retained history, exactly-once completion, child reads, close confirmation, no replay and unchanged legacy rows remain required.

Evidence

The current exact-head CI 36621294557 was cancelled after a suite-teardown assertion in run-attempt.reasoning-effort.test.ts. All 484 selected cases passed; teardown counted the intentionally process-owned native supervisor as a leaked fixture worker. The suite and worker owner are unchanged from incoming main. The actual merge was 56d59e7938ef897896b9068977f83c657a063048 into main 99a2b25e73cccc85f2284cb697b3f4751a857173. Settled jobs: 101 successful, two cancelled, 23 skipped, and two failed (one root plus aggregate). The existing owner of #159847 is preparing the fixture correction to observe joined logical worker pools; this PR does not duplicate it. Current hosted CI is not green, and no final readiness claim is made.

Current head 743fbb3b652ddd363fdbc26bf85e43f8b4324931, tree 1e5615cdd5d56796bcd8996f233962153a922120, based on main snapshot 59490dc752778ea6281f0b3ebfcf17130d95fecd. The production change and subsequent test corrections passed fresh isolated managed review through P2 without actionable findings. All requested native Testbox proof passed; the current hosted teardown failure is recorded above. The current commit has an empty diff from tested head 56edbc3b0d78209c016b0df888db5c7a6b4200bd, preserving the complete source tree. It refreshes the merge inputs after the canonical main repairs. Previous exact-head CI 36612201003, attempt 1, failed in preflight before tests: split timing generation repeats files for core-runtime-infra-storage-state. Its merge was 2740f8709b7a032ecdc9f070a09de689fcd7af6d into main df97da27f07f6655d5678bdbf1f6f9e460678013. Main commit b4df789c4a95f9b2b8f4290e47d7355efcc71f48 removes exactly the second PDF-test registration, preserving the original route and strict duplicate guard. Canonical #161335 was closed as already fixed; this branch contains no duplicate repair. CI 36608379074 failed one incoming-main tooling case: the immutable-parent audit fixture returned main-tree for the newly required landed-commit parent lookup. The tested merge was 3257d775906320e571a8a5dce2a875eb620b8d29 into main 74cbf1a117b4e9dead49402f9042f77fab48dd01; 301 sibling cases passed. Canonical main commit 7cc7e521137ddfe25b02280b5f7a13fe8262ce35 supplies that exact fixture parent without changing the production audit or assertions. No duplicate repair is included. Auto-merge is off. CI 36568340609 failed an existing workspace-reference test whose fake returned an invalid empty resume response, then reused the predecessor ID during fallback. The current test-only repair supplies the intended valid resume reply and reuses the canonical compaction-notification fixture. Its original six-file shard and delta changed-file gate now pass. CI 36571272391 then exposed a separate schema fixture sharing the same singleton binding store across its cases. Per-case store ownership now passes its full three-case file, the original two-group CI selection (718 cases across 46 files), typed lint and the changed-file gate; no production guard or schema assertion was relaxed. CI 36575173119 failed the eight new rotation cases during fixture setup/teardown because their run-attempt hooks require the SQLite host broker, while the new filename was routed to the ordinary Codex shard. The new file is now registered with the existing database-worker routing owner. That one-line correction passed fresh independent review, its default-wrapper test route, planner tests and changed-file gate. Its 22 other files and 469 cases passed; fail-fast cancellations are not passing evidence. The next exact-head CI run 36581058343 failed extension bundle 7 and cancelled the remaining pending jobs. The failed case expects rollback after a binding-commit rejection, but receives the guarded-rollback AggregateError. The test and helper are identical to the incoming main base. A clean-main replay at 95d4489f6fb7d34fce5e08f36d04cb09db83a1dc reproduced the same failure and captured the nested host-broker admission error. The isolated one-line registration fix is merged in #161276 (5ce29782b78f80d7fc5ee3fd5a5df9cb17f13fc1), with all 12 recovery cases, 396 remaining shard cases, 160 planner cases and the changed gate passing on Testbox. Source assertions and production behavior are unchanged. The shared lint-fixture repair in #161271 is also merged (9b2da9290be3002f1a2dcae03c0bd139d8a1705a). Its existing owner repaired the related snapshot-test observation as well. This branch includes no duplicate fixture repair or allowlist expansion. The latest run passed preflight after both canonical repairs and reached the fixture-teardown failure recorded above; no successful final-CI result is claimed yet.

Completed production proof at dbd1eb0beb91402a762ef59fdd09451132b99ba7 (tree 40693ec1fd87aed85e4c83c51b31716a7bb7a205) used blacksmith-testbox, owned lease tbx_01m3pf230rambqz356ysvrhjkk, run 36562499837, with source carrier ef3370880781cbdaf9990e0a33abbc11096a5bfc and that exact production-proof tree. Build metadata and the final clean source check match that carrier. The owned lease is stopped. The core package SHA256 is cfeb4c4d6b3bd1718d70ce3435a90a134291f7ed13b34832bf23263264833797; all 43 companion packages exactly match the canonical planner and their recorded archive hashes.

Completed production-proof command or scope Result Wall
Canonical typed-lint preflight, three changed Codex tests 0 warnings/errors 118.17s
pnpm test extensions/codex/src/app-server/thread-lifecycle.assignment-rotation.test.ts --maxWorkers=1 8 passed 47.05s
node scripts/check-changed.mjs --base 59490dc752778ea6281f0b3ebfcf17130d95fecd Complete gate passed; limits enabled 1,084.88s
pnpm build Passed 324.99s
Canonical package producer Passed 85.26s
Companion registry / canonical plan Exact package set and all hashes passed 32.97s / 0.21s
Published [email protected] manual upgrade All 62 phases passed, including native recovery and verified rollback 486.79s

The manual cell proves first-hop import, retained history, exactly-once retained completion, preservation after unconfirmed closure, settlement after confirmed closure, and no replay. The wire log contains exactly one retained-result request. All four inventory captures were inspected: the pending running child survives on the rotated parent with the original physical session, connection and import marker; it disappears only after confirmed settlement. Legacy Task rows remain unchanged.

The harness exited 0. The outer proof wrapper then exited 1 because our post-verifier incorrectly looked for sourceSha under nativeAssignments; the canonical producer puts it under nativeAssignmentEligibility. A separate read-only reconciliation checked the actual field, all six native flags, all 62 completed phases, clean source, all four captures and 23 required downloaded artifacts against remote hashes. The wrapper failure remains recorded; the successful cell was not rerun to replace it. A bulk download also reached its five-minute transport cap. One missing planning receipt was fetched separately; all 23 required artifacts hash-match their remote originals.

This is Linux package/upgrade proof with a synthetic Codex WebSocket backend, not live provider execution. Rollback passed its published-driver contract. Its summary explicitly reports raw transcript restoration as unsupported-by-published-backup; no raw-file restoration claim is made for this cell.

Focused and sibling coverage

There are 379 distinct owner/sibling cases across 14 files, plus 82 fixture cases across four files. Replayed cases are counted once. Production bytes are unchanged after the owner correction in 1cb335caf5a2f02658ccd4f0d6d1ef5d93f2707d; later commits correct only tests. Reused proof retains its actual source identity:

Accepted scope Source Result Measured wall
Full binding lifecycle file 3bc8740e 126 passed 53.77s
Eight lifecycle/inventory/read sibling files 3bc8740e 176 passed Recorded within the original shared batch
User-MCP lifecycle file adc99910 9 passed 70.19s
Native, SQLite binding and Doctor import siblings through run-vitest.mjs adc99910 60 passed / 3 files 68.74s
Changed attestation table after redundant-assertion removal 861f9ee8 3 passed; 123 unrelated cases filtered 62.27s
Native fixture WebSocket regression 4cbcc633 1 passed 1.62s
Upgrade migration diagnostics file 4cbcc633 42 passed 3.17s
Native witness and migration-order siblings 4cbcc633 39 passed / 2 files 2.87s

The eight-case rotation replay above validates the production-proof source; the later default-wrapper replay below also validates its corrected CI route. The three-case attestation replay is part of the 126-case binding coverage. The earlier shared sibling batch failed only in the subsequently repaired MCP file; only its eight fully passing files and 176 cases are reused. The separate 82-case fixture evidence covers unchanged fixture bytes.

Per-file costs include startup. At the production-proof head, the rotation file took 45.22s inside Vitest (83% transform, 10% tests, 6% import); the cold MCP run took 68.15s (88% transform, 4% tests), and binding took 51.85s (55% transform, 40% tests). These cases exercise the real lifecycle and binding mutator; the fixture regression drives its real WebSocket script. There are no added sleeps, retry allowances or enlarged deadlines.

Later fixture corrections

The workspace-reference correction at 4e3797714e192254857a2317440fce0a6936c7a5 passed typed lint (161.59s), the original six-file / 182-case CI shard (143.65s), and its explicit changed-file gate (224.45s). An initial gate invocation lacked the raw parent in the synthetic carrier; the supported explicit-file selection used the pinned base, without rerunning the passing tests.

The schema-store correction at a2f98a4e3b9784cf507ca03eb9a3037fe5918b5d passed on blacksmith-testbox lease tbx_01m3pnknc1pzn9n77npwkvz5db, run 36575297298, carrier 57a91960e0c00a452b86573679a1c7384eada05e. Typed lint passed in 154.78s, the whole three-case file in 60.00s, the original two-group selection in 156.78s (371 + 347 cases), and the explicit changed-file gate in 265.59s. The plan retains the original group selections, but hosted CI admitted one plan while this Testbox admitted two concurrently. It is not a serially identical replay. The demonstrated leak was within the schema file, whose complete three-case sequence also passed separately. The complete wrapper exited 0, and the owned lease is stopped. These later replays are separate from the distinct owner-coverage count above.

The one-line assignment routing correction at 56edbc3b0d78209c016b0df888db5c7a6b4200bd passed on blacksmith-testbox lease tbx_01m3pr9srs0ycq81d51rnf68at, run 36581252711, carrier eb930bf235cf2d9bba4aab7180cf3de486babf7a, tree 1e5615cdd5d56796bcd8996f233962153a922120. The normal pnpm test route ran all eight rotation cases in extension-database-workers (63.27s wall; 61.11s inside Vitest), all 160 cases in three canonical routing/planner suites passed (48.66s), metadata lint passed (0.57s), and the explicit changed-routing gate passed (164.00s). The wrapper exited 0, and the owned lease is stopped. Its source mirror took 618.852s to prepare one changed file and reuse 50,551 files; the command completed without a restart or lock removal.

Regression and failure attribution

The original-code control restored the four production owners from 4cbcc633 while running the new regression at 1cb335ca. It failed normally with exit 1 at the intended predecessor-equality assertion: both assignments and the active binding were removed while the import marker remained (67.33s wall). The original production control and intended snapshot assertion are unchanged; later test edits tighten types, local naming and synchronous reads. Candidate bytes were restored and verified before positive execution.

Before the owner fix, the corrected fixture's full manual cell at 4cbcc633 failed with zero retained-completion deliveries despite successful import. Its four captures prove same-session, same-connection inventory loss after parent rotation. The exact initiating guard was not retained because the first-hop log was replaced and the failed container was removed. The new complete cell passes that previously failing recovery boundary.

Validation also found test-fixture defects: cancellation was injected before the real client received the successor ID, and three older MCP cases reused an ID for a new thread. Cancellation now enters the actual pre-commit guard, and the MCP fake creates distinct successors and resumes the persisted ID. Cleanup, authority, fingerprint and secrecy assertions remain. The size ratchet was satisfied by removing a logically redundant no-turn assertion already guaranteed by the exact full RPC list. Six new-test lint errors were corrected without production changes, casts, suppressions or limit changes.

The earlier fixture controls also failed normally at the intended original-ID, incidental-close and stale-capture assertions; corrected fixture tests passed. Initial script/test lint errors were fixed before the accepted fixture-only gate. Retained-package transfer attempts were incomplete, so final proof uses a canonical package built directly on this lease. An obsolete three-package check in the proof recipe was replaced with exact equality against the canonical 43-package planner; no partial archive was executed and no upgrade assertion was relaxed.

@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: L labels Sep 29, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 29, 2026
@clawsweeper

clawsweeper Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 29, 2026, 10:16 PM ET / September 30, 2026, 02:16 UTC (Revision 24).

ClawSweeper review

What this changes

The Codex plugin stages parent-thread replacement to retain native child assignments, and the branch extends lifecycle tests and the published-upgrade fixture to check their recovery.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep open. Current main and v2026.9.6 retain the reported loss path, and this PR has positive recovery evidence. The remaining merge gate is proof that a retained result cannot reach a replaced or revoked requester.

Priority: P2
Reviewed head: 454f618df4b3f36445dad4805c31e067467b20d6

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The repair has focused source and upgrade evidence, with one material authority-proof gap before merge.
Proof confidence 🦐 gold shrimp (3/6) Needs stronger real behavior proof before merge: Authority-chain proof required: The reported published-version Linux upgrade exercised the production Gateway with a synthetic Codex WebSocket backend and observed one retained result after parent rotation. The changed lifecycle persists that assignment through replacement, but the evidence does not show the nearest forbidden case being denied before Gateway send or steer after requester revocation or replacement. The published upgrade exercises existing version-one binding state and unchanged legacy rows; no new stored schema is introduced. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Authority-chain proof required: The reported published-version Linux upgrade exercised the production Gateway with a synthetic Codex WebSocket backend and observed one retained result after parent rotation. The changed lifecycle persists that assignment through replacement, but the evidence does not show the nearest forbidden case being denied before Gateway send or steer after requester revocation or replacement. The published upgrade exercises existing version-one binding state and unchanged legacy rows; no new stored schema is introduced. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 9 items Current main retains the loss path: Current main clears the predecessor binding during ordinary rotation before starting its successor.
Latest release retains the loss path: The v2026.9.6 release source still uses clearCurrentBinding for rotation; this PR's staged replacement has not shipped there.
Introduced replacement path: The pinned introduced diff stages the exact predecessor and commits its successor through the existing replace-thread mutation.
Findings None None.
Security Needs attention Verify revocation before retained-result delivery: Staging preserves an assignment that can later trigger Gateway delivery. The available proof covers a live requester and pre-commit revocation, but does not show rejection before final send or steer after the requester is revoked or replaced.

How this fits together

The Codex plugin runs OpenClaw agent turns through Codex app-server. It reads a saved parent-thread binding, starts or resumes a Codex thread, and routes recovered child results through OpenClaw's completion delivery path.

flowchart LR
  A[Session request] --> B[Codex thread lifecycle]
  B --> C{Rotate parent?}
  C --> D[Binding store replacement]
  D --> E[Retained child assignments]
  E --> F[Completion authority check]
  F --> G[Gateway reply]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Authority-chain proof required: The reported published-version Linux upgrade exercised the production Gateway with a synthetic Codex WebSocket backend and observed one retained result after parent rotation. The changed lifecycle persists that assignment through replacement, but the evidence does not show the nearest forbidden case being denied before Gateway send or steer after requester revocation or replacement. The published upgrade exercises existing version-one binding state and unchanged legacy rows; no new stored schema is introduced. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve security concern: Verify revocation before retained-result delivery - Staging preserves an assignment that can later trigger Gateway delivery. The available proof covers a live requester and pre-commit revocation, but does not show rejection before final send or steer after the requester is revoked or replaced.
  • Resolve merge risk (P1) - A completion retained across rotation has not been shown to stop before Gateway send or steer if its requester is revoked or replaced after the rotation.
  • Complete next step (P2) - Add a redacted final-effect trace for a rotated retained result with a live requester and with a revoked or replaced requester, then update the PR body for re-review.

Findings

  • [medium] Verify revocation before retained-result delivery — extensions/codex/src/app-server/thread-lifecycle-run.ts:244
Agent review details

Security

Needs attention: No new dependency or secret-handling concern was found; final-effect denial for a retained assignment remains unproven.

PR surface

Source -16, Tests +666, Other +311. Total +961 across 17 files.

View PR surface stats
Area Files Added Removed Net
Source 4 28 44 -16
Tests 8 692 26 +666
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 5 358 47 +311
Total 17 1078 117 +961

Review metrics

Metric Value Why it matters
Production versus proof growth production −16 net lines; tests and upgrade tooling +977 net lines The growth is concentrated in lifecycle regression and published-upgrade coverage while production code shrinks.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/native-assignment-app-server.mjs, migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/native-assignments.mjs, migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/run.sh, serialized state: scripts/e2e/lib/upgrade-survivor/native-assignments.mjs, unknown-data-model-change: scripts/e2e/lib/upgrade-survivor/native-assignment-app-server.mjs, unknown-data-model-change: scripts/e2e/lib/upgrade-survivor/native-assignments.mjs. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Merge-risk options

Maintainer options:

  1. Prove the final delivery fence (recommended)
    Capture a redacted production-path trace showing delivery for the live requester and no Gateway send or steer after that requester is revoked or replaced.

Technical review

Best possible solution:

Keep the binding store as the sole owner of same-connection assignment retention, and demonstrate both successful recovery and final-effect denial for a revoked or replaced requester.

Do we have a high-confidence way to reproduce the issue?

Yes. Current-main source clears the predecessor before replacement, and the PR reports an original-code control failing at the intended assignment-preservation assertion. This read-only review did not execute that control.

Is this the best way to solve the issue?

Yes, the existing binding-store replacement is the narrowest apparent repair and avoids another persistence owner. The retained-assignment delivery boundary still needs the forbidden-requester proof.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against ec5564bb6857.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The loss affects native child recovery after a specific parent-rotation path, with limited blast radius.
  • merge-risk: 🚨 message-delivery: The PR carries completed child results into a replacement parent, where an ownership error could suppress or misroute delivery.
  • merge-risk: 🚨 security-boundary: A persisted assignment can outlive rotation, so requester authority must hold through the final Gateway effect.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Authority-chain proof required: The reported published-version Linux upgrade exercised the production Gateway with a synthetic Codex WebSocket backend and observed one retained result after parent rotation. The changed lifecycle persists that assignment through replacement, but the evidence does not show the nearest forbidden case being denied before Gateway send or steer after requester revocation or replacement. The published upgrade exercises existing version-one binding state and unchanged legacy rows; no new stored schema is introduced. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [medium] Verify revocation before retained-result delivery — extensions/codex/src/app-server/thread-lifecycle-run.ts:244
    Staging preserves an assignment that can later trigger Gateway delivery. The available proof covers a live requester and pre-commit revocation, but does not show rejection before final send or steer after the requester is revoked or replaced.
    Confidence: 0.78

What I checked:

  • Current main retains the loss path: Current main clears the predecessor binding during ordinary rotation before starting its successor. (extensions/codex/src/app-server/thread-lifecycle-run.ts:237, ec5564bb6857)
  • Latest release retains the loss path: The v2026.9.6 release source still uses clearCurrentBinding for rotation; this PR's staged replacement has not shipped there. (extensions/codex/src/app-server/thread-lifecycle-run.ts:245, eb377ac59e6c)
  • Introduced replacement path: The pinned introduced diff stages the exact predecessor and commits its successor through the existing replace-thread mutation. (extensions/codex/src/app-server/thread-lifecycle-run.ts:236, 454f618df4b3)
  • Persistence owner: The binding-store replacement checks the expected ordinary predecessor and preserves pending assignments only when the connection and supervision branch remain compatible. (extensions/codex/src/app-server/session-binding.ts:611, 454f618df4b3)
  • Final delivery boundary: The completion path passes requester identity and a current-owner callback into Gateway delivery; source inspection shows a recheck, but the supplied rotation proof does not exercise denial at its final effect. (src/plugin-sdk/agent-harness-completion.ts:89, 454f618df4b3)
  • Reported after-fix behavior: The complete PR body matched the captured SHA-256 088293eb76cb1474c7cf6ae9f1fd05cda7cead06cb14e9193fca072ed1a3650d. It reports a published [email protected] Linux upgrade through a real Gateway and synthetic Codex WebSocket backend: 62 phases passed, four inventory captures retained the assignment, and one completion request reached the parent. It also reports an original-code control failing at the predecessor assertion. The body does not provide a revoked-or-replaced requester final-effect trace.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Jason (Json): Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add final-effect proof for the nearest unauthorized requester: show delivery for the live requester and no Gateway send or steer after requester revocation or replacement.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (23 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-29T14:23:18.645Z sha 56edbc3 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-29T15:35:39.459Z sha 56edbc3 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-29T16:40:52.230Z sha 56edbc3 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-29T18:11:56.065Z sha 2fe87be :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-29T18:35:37.042Z sha d7b54ad :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-29T18:52:10.817Z sha d7b54ad :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-29T19:54:19.681Z sha 743fbb3 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-29T20:14:31.418Z sha 743fbb3 :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 29, 2026
@steipete steipete changed the title test(upgrade): isolate native assignment fixture lifecycle fix(codex): preserve native assignments across parent rotation Sep 29, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Sep 29, 2026
@steipete
steipete marked this pull request as ready for review September 29, 2026 12:28
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Sep 29, 2026
@steipete
steipete force-pushed the deslop/l73-native-fixture branch from 454f618 to 20c71a8 Compare September 30, 2026 03:39
@steipete

Copy link
Copy Markdown
Contributor Author

Landing conflict-only rebase 20c71a8795e.

The previous head's full CI failed only on shared, PR-lane-only test defects (see the earlier comment: Codex fixture worker-teardown guard, CI-planner owner test). After #161425 merged, this PR was rebased with conflicts resolved to keep main's cleanup plus this assignment fix. On the rebased head: both import-cycle checks report 0 and 288 focused tests passed on a Crabbox box. Its hosted CI run 36665380177 failed only at preflight — the repo-wide harness break from #161534 (.ci-harness/scripts/ci-build-manifest.mjs missing; fix in flight as #161569) that fails every PR's preflight, so no test lane ran.

@steipete
steipete merged commit 5367527 into main Sep 30, 2026
88 of 91 checks passed
@steipete
steipete deleted the deslop/l73-native-fixture branch September 30, 2026 03:43
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 30, 2026
…law#160952)

* test(upgrade): isolate native assignment fixture lifecycle

* test(upgrade): use explicit fixture control flow

* test(upgrade): decode native fixture websocket frames

* fix(codex): preserve native assignments across parent rotation

* test(codex): cancel native rotation at the commit boundary

* test(codex): use fresh MCP fixture threads

* test(codex): remove redundant attestation call assertion

* test(codex): tighten rotation fixture types

* test(codex): return a valid workspace resume response

* test(codex): isolate schema lifecycle bindings

* test(codex): route assignment lifecycle through the database broker

* ci: refresh native assignment checks after main repairs

* ci: refresh native validation after parent-audit fixture repair

* ci: refresh native checks after duplicate route repair
steipete added a commit that referenced this pull request Sep 30, 2026
…nt test

"settles timeout at final with writer release after cutoff" hung for its full
120 s on main since 5367527 (#160952). That change makes a rotated native
thread reject reuse of its persisted predecessor's thread ID, but the
successor fixture still answered thread/start with "thread-1", so the product
correctly refused the reuse and the test waited forever on turn/start.

The fixture now returns a distinct ID for a fresh thread/start, completes the
turn on the selected thread, and awaits real turn acceptance. Test-only; all
assertions unchanged. The case now runs in ~0.6 s.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 1, 2026
…nt test

"settles timeout at final with writer release after cutoff" hung for its full
120 s on main since 99db35f (openclaw#160952). That change makes a rotated native
thread reject reuse of its persisted predecessor's thread ID, but the
successor fixture still answered thread/start with "thread-1", so the product
correctly refused the reuse and the test waited forever on turn/start.

The fixture now returns a distinct ID for a fresh thread/start, completes the
turn on the selected thread, and awaits real turn acceptance. Test-only; all
assertions unchanged. The case now runs in ~0.6 s.
steipete added a commit that referenced this pull request Oct 9, 2026
Match the app-server identity contract: each thread/start creates a fresh
thread, while thread/resume retains the requested identity. The auth fake
introduced in #139911 returned one fixed ID, so dynamic tool catalog
rotation could hit the replacement fence used by #160952 before the
profile-removal proof reached its recovery assertion.

Qualify start identity across independent fixture processes and preserve
resume identity at the stdio boundary. Keep every existing product-proof
assertion and timeout unchanged; production binding guards stay intact.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 10, 2026
Match the app-server identity contract: each thread/start creates a fresh
thread, while thread/resume retains the requested identity. The auth fake
introduced in openclaw#139911 returned one fixed ID, so dynamic tool catalog
rotation could hit the replacement fence used by openclaw#160952 before the
profile-removal proof reached its recovery assertion.

Qualify start identity across independent fixture processes and preserve
resume identity at the stdio boundary. Keep every existing product-proof
assertion and timeout unchanged; production binding guards stay intact.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: codex merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant