Skip to content

fix: preserve native prompt provenance through database aliases - #166787

Merged
RomneyDa merged 8 commits into
mainfrom
openclaw/investigate-codex-supervised-fork-drift-mismatch
Oct 8, 2026
Merged

RomneyDa merged 8 commits into
mainfrom
openclaw/investigate-codex-supervised-fork-drift-mismatch

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Latest authenticated live proof

Complete flow passed on exact PR head e889bcfc834e11e8bf57cdf8ccd2d4f5303fc08c: 3 passed, 1 skipped. Native catalog continuation → supervised source turn → warm canonical fork and child turn → Gateway restart → cold descendant fork and turn all passed with unchanged assertions, real API-key authentication, and native Codex 0.160.0. Native Linux x64 Testbox; freshly rebuilt image; canonical case 31.573 s, complete Vitest 151.34 s. Execution identity and sanitized evidence.

This supersedes the older partial-live-replay limitations recorded below. The original frozen-candidate Linux FRV drift-mismatch root cause and fix remain unproven; passing this flow is not an original-incident repair claim. The release candidate and active FRV were untouched. No new code was added for this proof. The PR was independently merged during proof preparation; this run tests the PR head, not a separate replay of the squash commit or newer main.

What Problem This Solves

Fixes issues where supervised Codex message forks lose verified native provenance through database aliases, catalog continuations lose their upstream link, or a forked native session encounters a search-policy mismatch when no managed search provider is configured.

User Impact

Supervised message forks retain verified native turn identity through database aliases. Catalog continuation payloads remain worker-cloneable while their declared completion callback retains instance and consumer lifetime. Boundary-integrity checks remain unchanged; no configuration or schema changes.

Why This Change Was Made

The admission owner records a canonical database locator, while the harness may retain a lexical alias. Comparing strings silently declines the annotation capability. Use the existing physical database identity owner instead, retaining recorder ownership, session incarnation, active-writer, anchored-row, and live-authority checks.

Scope: these are independently evidenced producer repairs, ready for review on their own merits. They were discovered while investigating the stable FRV supervised-fork rejection, but are not claimed to resolve that broader Linux incident. The frozen release candidate is not changed by this PR.

Evidence

  • The existing Codex submitted-prompt regression failed before the repair: the admitted row lacked mirrorIdentity. Instrumentation isolated /tmp versus /private/tmp locators for the same database.
  • Strengthened that existing regression with an explicit directory alias: 1 test passed, covering production host binding, unchanged display text, exact submitted upstream text, persisted provenance, and strict canonical fork-boundary resolution. pnpm test extensions/codex/src/app-server/run-attempt.fork-provenance.test.ts --maxWorkers=1: 60.23 s command wall, 12.016 s test time. Hosted CI seconds not yet measured. No new sleeps, polls, process boots, or serial configuration.
  • The unchanged strict fork-boundary suite: 15 tests passed before this edit.
  • Original implementation AutoReview: no P0/P1 findings in the initial patch.
  • Exact sibling Codex rust-v0.160.0 (79b1b666f2e8551f8abbbca34957227f67f3f553) was personally inspected: beforeTurnId is exclusive, turn identities come from native turn events, and injected history is not equivalent to native turn history.
  • Original failed FRV job rejected the first warm fork with drift-mismatch, "The local history has no verified boundary in this Codex thread." The job retained no native transcript diagnostic artifact, so its exact local row/native identities are not recoverable from that log alone.
  • An isolated current-main live replay instead encountered an upstream-link DataCloneError, followed by a local fork rejection because model selection was locked. This separate producer failure must be resolved before the same entry point can supply live boundary evidence. No passing retry is being counted as a fix.

Iteration: catalog continuation producer

The current-main factory registration introduced after the frozen candidate wraps the complete catalog continuation result as executable. Its nested upstream.ref and marker become Proxies, so the session writer worker rejects them with DataCloneError; continuation reports success but the upstream link is absent. The subsequent fork falls through to the correctly locked local-history path. The repair declares only afterConversationBound executable and preserves data values by reference, including the native-gated catalog adapter.

  • Red: both gated/ungated real-registration regressions fail on the original producer.
  • Green: factory bindings, value views, and reflection siblings: 39 passed, 47.25 s command wall / 41.77 s Vitest; new cases take 1 ms and 2 ms. CI seconds not yet measured.
  • Fresh combined independent review: no actionable P0/P1 findings.
  • Current-main live replay after the repair reaches and creates the warm canonical fork. Its child continuation exposed the distinct native web-search policy mismatch addressed in the subsequent commit below. A complete post-repair live replay is not claimed here.
  • An isolated normal-layout Linux replay of the unchanged frozen candidate passed. This is contrary evidence, not a fix. The staged-source/linked-runtime FRV incident remains a separate investigation; no passing replay is treated as proof of its root cause.
  • The exact native 0.160.0 source flushes history before normal terminal delivery, so an ordinary completion-before-history-save race is unsupported.
  • PR 166754 handles uncertain steering receipt auto-cancellation. The failing canonical fixture submits a fresh non-steering turn, so that repair does not directly address this fork-boundary signature.

Checks

Original implementation validation: full build, core and extension-test type graphs passed. The original check:changed attempt stopped at an unchanged unused export in scripts/publish-model-catalog.mts (readRecommendedModels); no suppression was added.

Review-readiness refresh: the old hosted CI run failed in the unrelated Workboard generated-asset check and cancelled remaining lanes. PR #166786 fixed that on main; this branch is rebased onto 5fa9edbad09902107a2ac64d7d7d7ae08b58a416, including that fix. Fresh exact-head CI failed on an inherited plugin-lifecycle admission-contention fixture; build/type lanes were cancelled, and the aggregate gate failed as a consequence. The corrected head is 10634ef3710071c91eb54075a739102e9a5eaf85; its final CI run is terminal with an inherited startup-error fixture failure and cancellation fallout, as detailed below.

ClawSweeper revision 4: platinum hermit, no findings, no before-merge requests. Revision 4 reviewed 523262df8fde at 2026-10-08 00:02 UTC: no code/security findings, before-merge requests, or rank-up moves. The final accepted-finding repair at 10634ef371007 has separate fresh AutoReview and red→green boundary proof; no current-head ClawSweeper publication is claimed.

Iteration: native hosted search policy

Preserves the author's subsequent 499ade6fcec7 repair during the rebase. Native hosted search no longer inherits a false denial merely because no managed search provider materialized a web_search tool. The existing policy owner supplies persistent permission separately from current-turn permission; runtime allowlists, sender/profile policy, plugin exclusions, unsupported providers, and memory-flush suppression remain enforced. Existing search-policy tests were moved into a focused suite and extended rather than duplicated.

Review preparation

  • Rebase range-diff preserves all three original patches. Preparation also fixes the Windows alias fixture and the accepted transient/persistent search-policy finding described below.
  • git diff --check passed; native Node Linux directory-alias fixture smoke passed. Windows execution was not run locally.
  • Fresh AutoReview of the final policy repair and behavioral assertions, P0–P2: scoped-clean, no accepted/actionable findings. This was static review, not live execution.
  • Production LOC: +85/−32 (net +53); tests: +376/−177 (net +199). Production growth supplies callback-only binding and separates native-search permission from managed-tool availability; no downstream clone workaround, database-path fallback, config addition, or schema change.
  • Direct dependency inspection during review: sibling Codex rust-v0.160.0, codex-rs/core/src/thread_rollout_truncation.rs:214–256, codex-rs/app-server/src/request_processors/thread_processor.rs:4930–4945, codex-rs/core/src/tools/hosted_spec.rs:14–43, and codex-rs/core/src/config/mod.rs:3085–3129.
  • Fresh ClawSweeper review requested for the added policy behavior. PR remains non-draft; not merged.

Review preparation and CI session

Accepted finding: temporary search restriction

The author’s added hosted-search repair (499ade6fcec7, authored/committed by @RomneyDa) correctly enabled hosted search without a managed provider, but reused this turn’s native-surface decision as persistent availability. A later toolsAllow: ["message"] turn therefore classified the restriction as permanent and replaced the normal binding. The correction reuses the existing search-plan owner without transient inputs for persistent eligibility; current-turn search still requires the current native plan, policy authorization, and the memory-flush veto. No permission or configuration contract is widened.

  • Red: the actual native-surface matrix fails on pre-fix 523262df8fde with persistent false instead of true; 14 siblings pass. The strengthened existing lifecycle test also fails on pre-fix code because the restricted thread incorrectly receives a persistent configuration fingerprint.
  • Green: 17 focused tests pass (15 policy cases plus 2 lifecycle cases). The real producer feeds the existing unrestricted → restricted → unrestricted lifecycle fixture: restricted execution uses thread-2 with native search disabled, the saved binding remains thread-1, and the unrestricted turn resumes thread-1. Global denial plus a runtime cap remains denied.
  • Command: pnpm test extensions/codex/src/app-server/dynamic-tool-build.web-search.test.ts extensions/codex/src/app-server/thread-lifecycle.binding.test.ts --maxWorkers=1 -t 'projects search tools|limits memory flush tools|uses a transient Codex thread when runtime toolsAllow|persists config-denied search'. 33.69s command wall; policy suite 15.03s, lifecycle selection 12.72s; strengthened lifecycle case 4.500s. No new sleep, polling, process fixture, or test-runner configuration. Hosted CI seconds for this revision are not yet measured.
  • Proof is local production-boundary testing with synthetic native transport, not a live authenticated Codex replay. Testbox remained queued, and direct AWS admission returned fleet-limit 429; an independently owned full local clone with frozen dependencies supplied the fallback proof. Both queued Testbox leases were stopped.

Inherited CI evidence and follow-up

Previous failed job tested GitHub merge commit c75e245d8950959b2eac6ff4d486124cf7b1c21b, combining feature 523262df8fde with main a1ca0cd615f4ce9c5b486829e1ecadad5493e8c5. Its second explicit plugins.reload was refused before mutation entry because the lifecycle lease was held. The timeout recovery assertions had already passed. The fixture and relevant admission/reload owners are byte-identical between that main target and the feature head; this scenario does not invoke the changed catalog continuation factory.

A one-run baseline on that exact main target, with the original eight-file selection, 2 workers, forks, and isolate:false, yielded 128 passed / 2 failed, 107.053s wall. The exact timeout case passed, but the sibling startup-error case independently received the same lease-admission refusal. This demonstrates pre-existing admission contention, not an exact reproduction or repair of the hosted failure. Baseline Node was 26.8.2 versus hosted 24.19.0. A separate baseline reader test observed changing pending-provider metadata.

Follow-up: capture the lease holder/acquisition/release and config-watcher observations before changing fixture control. No speculative production lease fix, mutation retry, larger wait, or assertion weakening was applied to the inherited CI cases. Kept separate under the requester’s allowance to hold unrelated main failures.

Final review disposition

Ready for maintainer review; held on unrelated CI, not merged. At 2026-10-08 00:28 UTC, GitHub reports head 10634ef3710071c91eb54075a739102e9a5eaf85 open, non-draft, and conflict-free (MERGEABLE), but the merge gate remains BLOCKED. Latest published ClawSweeper rating is platinum hermit 4/6, with no findings on the preceding reviewed head; the final correction has fresh clean independent review and 17 passing focused tests.

Final CI run 37707134363, attempt 1, tested merge 937d8abde6afac24696f0d76b375259111b04fe1 against main c2e7494562a5567e85155d81cc37fbb5064f6f64 on Node 24.19.0. All 74 jobs ended: 36 success, 25 skipped, 11 cancelled, 2 failure. The sole independent failure was startup-error fixture lease admission, src/gateway/server-plugins.startup-error.test.ts:229, “keeps module-load startup errors diagnostic while healthy plugins reload and disable”: activation was preempted by the same admission-busy refusal observed on the main baseline. The 8-file suite recorded 129 passed / 1 failed; the second failed job is the aggregate gate. Build/lint/type cancellation is not claimed as passing proof.

The original timeout case passes in this run, but main independently added startup-maintenance synchronization to that fixture in 1cb7db99a5fd0; this PR did not fix it. The startup-error fixture and relevant mutation/lease/reload/service owners are unchanged from the baseline to the final main target. Baseline evidence still has the previously stated Node-version and sibling-case limitations. No exact final-main/Node-24 reproduction or causal lease-holder identification is claimed.

CI repair (2026-10-07)

The hosted startup-error fixture raced deferred post-ready plugin-registry maintenance, independently of the PR's provenance/search changes. server.startupSettled joins mandatory sidecars, not that maintenance lifetime. A temporary lease trace reproduced the same admission refusal in the sibling entry-open case and identified runGatewayPostReadyStartupMaintenance as the competing lease owner between explicit reload RPCs. The original eight-file local replay passed both startup-error cases; that passing replay is not treated as a fix.

The fixture now observes the real maintenance promise and awaits its settlement before issuing plugin mutations. The observer returns the unchanged production promise and is restored through test cleanup. All activation-failure, rollback, diagnostic, and retained-runtime assertions remain unchanged; no mutation retry, larger timeout, assertion weakening, or production lease change. Incorporated tested-main c2e7494562a5567e85155d81cc37fbb5064f6f64, including the existing sibling cleanup-fixture maintenance join.

The changed-check gate also exposed original PR line-cap growth. Both strengthened search-policy cases now live in a registered sibling test module under the same binding suite's setup/cleanup, without another Vitest worker or duplicated coverage. Dynamic-tool construction reuses its existing normalized plugin-exclusion helper instead of repeating that policy.

  • Startup-error post-repair boundary proof: 2 passed, node scripts/run-vitest.mjs src/gateway/server-plugins.startup-error.test.ts --maxWorkers=1: 66.99s command wall / 62.03s Vitest, approximately 31s test time. This existing file exercises real Gateway startup, filesystem plugin loading, activation rollback, and healthy-plugin disable; no new Gateway boot or wall-clock wait was added.
  • Fresh bounded independent source reviews: both the synchronization repair and the line-cap cleanup are scoped-clean.
  • git diff --check, targeted fixture lint, formatting, and line-cap ratchet pass. Search-policy/lifecycle focused proof, complete changed checks, standalone stability runs, and original-shard replays are in progress.
  • Original local PR-head eight-file selection: 127 passed / 3 failed, 357.27s Vitest. Two sibling cleanup cases had admission refusals addressed by the incorporated main repair. The additional retained-memory held-close teardown failure (Plugin first is retiring, server-plugin-reload.memory.test-support.ts:192) was not observed in the cited hosted run; no repair of that separate failure is claimed.
  • Current published head: e889bcfc834e11e8bf57cdf8ccd2d4f5303fc08c. Required hosted CI is pending; PR remains open and not merged.

@clawsweeper

clawsweeper Bot commented Oct 7, 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.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 7, 2026
@clawsweeper

clawsweeper Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 7, 2026, 9:15 PM ET / October 8, 2026, 01:15 UTC (Revision 6).

ClawSweeper review

What this changes

The branch preserves Codex fork provenance across database aliases, keeps catalog continuation data cloneable, corrects hosted-search eligibility, and synchronizes an existing startup fixture.

Example: A user forks a sender-attributed Codex turn whose database is reached through a directory alias.

  • Before: The annotation is declined, leaving the turn without the verified native identity needed to resolve the fork boundary.
  • After: The turn retains identity "turn-1:prompt" and resolves the native boundary "beforeTurnId: turn-1" without changing its displayed whitespace.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The repairs are useful and source-consistent, with meaningful regression coverage, but complete runtime proof remains limited.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate, and the authority pass found no unresolved material violation. Supplied evidence covers production-owner regressions and a partial live canonical fork, while expressly leaving the complete authenticated replay unproven; existing stored formats and public settings remain unchanged.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Users can lose verified fork boundaries or upstream conversation links, and native Codex continuation can encounter an incorrect search-policy denial.
Reason: The changes restore established provenance, cloneable-data, and search-policy contracts with bounded owner-level repairs. The broader Linux release-validation incident is explicitly excluded from the claimed fix.

Merge readiness

✅ Ready for maintainer review

Keep open: the producer defects remain on current main, and no actionable introduced defect was found. The documented broader release-validation incident remains outside this PR’s fix claim.

Priority: P2
Reviewed head: e889bcfc834e11e8bf57cdf8ccd2d4f5303fc08c

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: A complete authenticated Codex continuation → warm fork → child-turn replay after all production repairs is not supplied; the body distinguishes its partial live replay from reported failing-before/passing-after boundary regressions.
Agent review details

How this fits together

OpenClaw’s Codex plugin connects local conversations to native Codex threads. Transcript annotations, catalog continuation results, and search-policy decisions supply the evidence and configuration needed to continue or fork those conversations.

flowchart TD
  A[User continues or forks a conversation] --> B[Codex plugin]
  B --> C[Transcript admission and database identity]
  B --> D[Catalog continuation binding]
  B --> E[Search policy owner]
  C --> F[Verified native turn boundary]
  D --> G[Stored upstream link and scoped callback]
  E --> H[Native thread search configuration]
Loading

Technical review

Best possible solution:

Keep physical database identity, plugin callback lifetime, and search permission decisions with their existing owners while investigating the broader release incident separately.

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

Yes: current source exposes the lexical-alias rejection and executable wrapping of continuation data, and the PR supplies targeted failing-before regressions. This review did not execute them.

Is this the best way to solve the issue?

Yes: the patch repairs the producing owners, reuses physical database identity and shared search policy, and preserves existing public contracts rather than adding downstream workarounds.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 89b6b48f8c48.

Provenance checked

Testing

Proof path: in-process harness. Added test files: 6.

Security

None.

Evidence

What I checked:

  • Pinned introduced production changes: Read the merge-base-to-head production hunks: physical database comparison replaces lexical equality; catalog results declare only their completion callback executable; native hosted search consumes the existing policy owner separately from managed-tool availability. (e889bcfc834e)
  • Current main still needs the repairs: None of the changed production paths or the startup-error fixture changed between the pinned base and fetched main; current-main annotation source still compares database locator strings. (src/sessions/user-turn-transcript-annotation.ts:51, 89b6b48f8c48)
  • Annotation authority remains anchored: The repaired comparison retains recorder ownership, session and agent identity, writer checks, lifecycle expectations, content fingerprint verification, redaction protection, and guarded anchored writes. The write remains bound to the admitted database and transcript row. (src/sessions/user-turn-transcript-annotation.ts:48, e889bcfc834e)
  • Existing catalog contract is preserved: The existing continuation result declares upstream and conversation-binding fields as data and afterConversationBound as its executable completion slot. Gated and ungated registration regressions check structured cloning and rejection after consumer release or instance disposal; no public API or stored shape is added. (src/plugins/registry.factory-bindings.test.ts:175, e889bcfc834e)
  • Search authorization and binding retention: The shared policy owner separately resolves current and persistent permission, including requester, sender, sandbox, inherited, and runtime restrictions. The strengthened lifecycle fixture exercises unrestricted → message-only → unrestricted turns, retaining thread-1 while the restricted turn uses thread-2 with search disabled. (extensions/codex/src/app-server/thread-lifecycle-web-search.test-support.ts:33, e889bcfc834e)
  • Complete PR evidence inspected: Read the full body through REST, including ranges omitted from the supplied context (captured body SHA-256 513b02a76e1e168a53a1737bcfffe48aaf0bcbb3c1d3d3f6923c9036dd7f8ef4). It reports failing-before/passing-after producer regressions, a partial live canonical-fork replay, 17 focused search/lifecycle passes, and two startup-error passes; it expressly does not claim a complete authenticated replay or resolution of the broader Linux incident. (e889bcfc834e)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • fuller-stack-dev: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

PR surface

Source +51, Tests +255. Total +306 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 5 86 35 +51
Tests 7 512 257 +255
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 12 598 292 +306

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.

Label justifications:

  • P2: These bounded producer repairs restore supervised Codex continuation and fork behavior without an established emergency or broader incident fix.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (5 earlier review cycles)
  • reviewed 2026-10-07T23:01:26.178Z sha fbb559e73937b9fc4918a1a39835c4ee0a48b079 :: needs changes before merge. :: none
  • reviewed 2026-10-07T23:09:36.771Z sha fbb559e73937b9fc4918a1a39835c4ee0a48b079 :: needs changes before merge. :: none
  • reviewed 2026-10-07T23:28:13.197Z sha 6c52cb557d24d071f1924762553f399b1bd6a56c :: needs maintainer review before merge. :: none
  • reviewed 2026-10-08T00:02:28.562Z sha 523262d :: needs maintainer review before merge. :: none
  • reviewed 2026-10-08T00:33:57.810Z sha 10634ef :: needs maintainer review before merge. :: none

@RomneyDa
RomneyDa marked this pull request as ready for review October 7, 2026 23:05
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/investigate-codex-supervised-fork-drift-mismatch branch from 499ade6 to 523262d Compare October 7, 2026 23:55
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

Review-only refresh for head 523262d. Preserved the newly added native hosted-search policy repair, rebased onto main 5fa9edb (including the unrelated Workboard generated-assets CI fix from #166786), and made the existing provenance alias fixture use a junction on Windows. Range-diff confirms the three original patches were preserved; git diff --check and the Linux alias-fixture smoke passed. Exact-head CI: https://github.com/openclaw/openclaw/actions/runs/37704961759.

Please review the added policy behavior in addition to the two repairs already rated platinum hermit. Do not merge; this request is preparation for human review only.

@clawsweeper

clawsweeper Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

roboclaw-bot and others added 3 commits October 8, 2026 00:19
Separate persistent hosted availability from the current native surface; keep policy and memory restrictions enforced. Prove the real unrestricted/restricted/unrestricted binding flow.

Co-authored-by: RomneyDa <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added the gateway Gateway runtime label Oct 8, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Oct 8, 2026
@RomneyDa
RomneyDa merged commit c01970a into main Oct 8, 2026
137 checks passed
@RomneyDa
RomneyDa deleted the openclaw/investigate-codex-supervised-fork-drift-mismatch branch October 8, 2026 01:23
@RomneyDa

RomneyDa commented Oct 8, 2026

Copy link
Copy Markdown
Member Author

Complete authenticated live proof

Tested exact PR head e889bcfc834e11e8bf57cdf8ccd2d4f5303fc08c, including all production repairs and the subsequent search-policy correction. This PR has since been merged as c01970a2cc0ac44d2bc46e9cc913baffa295a466; this evidence is explicitly for the PR head, not a separate replay of the squash commit or a newer main.

Result: 3 passed, 1 skipped; process exit 0. The previously missing authenticated chain passed in full:

  1. Seed a real native Codex conversation using the configured API-key owner.
  2. Discover and continue it through sessions.catalog.list / sessions.catalog.continue.
  3. Complete a supervised source turn, then fork its canonical user message through sessions.fork.
  4. Run the warm child turn on the native model; verify a distinct native thread, resume action, and transcript model identity.
  5. Stop the client and Gateway, restart the isolated Gateway, fork the descendant's canonical message, and complete the cold descendant turn with the same identity checks.

The existing live test and its assertions were unchanged. The complete file ran in its original order, not a bypassed helper or an isolated replacement fixture. Steering and the general authenticated harness flow also passed; the sole skip was the disabled-harness opt-in sentinel.

Execution identity

  • Provider: Blacksmith Testbox, native Linux x64; lease tbx_01m4chvqxa0mywstjrpn42azvb (brisk-barnacle), associated Actions run. The remote command's terminal receipt—not the lease-hosting workflow conclusion—supplies the live test result.
  • A fresh clean checkout independently fetched and asserted the exact head above. Frozen dependencies were installed, and the repository Docker lane rebuilt its Codex-enabled image from that source. No old built runtime or production diagnostic patch was substituted.
  • Native Codex: 0.160.0, matching the plugin dependency. API-key authentication came from openclaw-testbox-env; credentials were confined to the lane's temporary credential/state owner.
  • Runtime limits: 8 GiB / 4 CPUs. Fourteen selected bundled plugins, including Codex; no harness fallback.
  • Entry point: openclaw-testbox-env bash scripts/test-live-codex-harness-docker.sh, with API-key mode and the existing debug output enabled.
  • Canonical flow: 31.573 s. Complete Vitest run: 151.34 s. Remote command, including source install and Docker build: 377.948 s.
  • Unchanged live test SHA-256: d213fccb5e90953906feeb6f9ed8e93471679cb12c9da266fefbbdc0b9ed1ab7.
  • Docker entry point SHA-256: 89c018a9e10bda8046253216b2b87c46333e2e239d050a77fff955de990add7f.

Sanitized successful phase output (native model identifiers omitted):

canonical-message-fork {"phase":"warm","nativeVersion":"0.160.0","continued":true}
canonical-message-fork {"phase":"cold","nativeVersion":"0.160.0","continued":true}
Tests 3 passed | 1 skipped (4)
AUTHENTICATED PR PROOF EXIT 0

This closes the complete-authenticated-replay evidence gap identified by ClawSweeper on this head. It does not establish the root cause or repair of the original frozen-candidate Linux FRV drift-mismatch: that rejection was not reproduced here, and a passing replay is not being called an original-incident fix. The frozen release candidate and active FRV were not changed.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 8, 2026
…claw#166787)

* fix: preserve native prompt provenance through database aliases

Co-authored-by: RomneyDa <[email protected]>

* fix: preserve catalog continuation data through instance binding

Co-authored-by: RomneyDa <[email protected]>

* test(codex): use a junction for Windows database aliases

Co-authored-by: RomneyDa <[email protected]>

* fix: preserve native hosted search policy without a managed provider

Co-authored-by: RomneyDa <[email protected]>

* fix(codex): preserve hosted search bindings across restricted turns

Separate persistent hosted availability from the current native surface; keep policy and memory restrictions enforced. Prove the real unrestricted/restricted/unrestricted binding flow.

Co-authored-by: RomneyDa <[email protected]>

* fix(test): join startup maintenance before plugin reload assertions

* refactor(codex): keep search-policy coverage within source line caps

---------

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: roboclaw-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: codex gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: L status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants