Repository navigation
fix(codex): preserve agent workspace instructions - #126986
jason-allen-oneal wants to merge 28 commits into
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: blocked before merge. Reviewed September 25, 2026, 9:17 PM ET / September 26, 2026, 01:17 UTC (Revision 115). ClawSweeper reviewWhat this changesThe Codex plugin captures selected workspace instructions when a native thread starts, stores their authority with its session binding, and reuses or rejects that selection during continuation. Merge readiness⛔ Blocked before merge - 7 items remain This PR remains useful because current main does not preserve the native Codex instruction selection across cold continuation. Its current head still fails for a valid instruction snapshot larger than the plugin-state value limit, and the proposed storage and cold-continuation contracts await maintainer acceptance. Priority: P1 Review scores
Verification
How this fits togetherThe Codex plugin translates OpenClaw agent turns into native Codex thread requests. Codex selects project instruction files; the plugin records what established the thread so later turns can continue with the same instructions. flowchart LR
A[Agent turn] --> B[Codex thread request]
C[Project instruction files] --> B
B --> D[Native source selection]
D --> E[Instruction snapshot]
E --> F[Session binding]
F --> G[Cold continuation decision]
Decision needed
Why: The proposed chunked representation changes durable-state and rollback behavior, while the cold-session cutoff intentionally changes recovery for existing users; neither choice is established by passing tests. Before merge
Findings
Agent review detailsSecurityNeeds attention: The cross-environment authority path has positive native-process proof, but the persisted authority fact still lacks an accepted cross-version recovery contract. PR surfaceSource +1029, Tests +2851, Docs +47. Total +3927 across 74 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Preserve the native-selected instruction hierarchy in a bounded durable form with a pre-commit size limit, verified existing-binding upgrade behavior, and an explicit recovery path for cold or legacy sessions. Do we have a high-confidence way to reproduce the issue? Yes for the remaining storage defect at source level: configure a valid project-document budget above 1 MiB, start a native thread with that much selected text, and the single-value binding write exceeds the plugin-state limit. This review did not execute contributor code. Is this the best way to solve the issue? Unclear. Capturing Codex's selected sources addresses the instruction-continuity problem, but the present single-value persistence cannot handle all valid authored budgets and the cold-session policy needs owner acceptance. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cfef1747516d. LabelsLabel changes: No label changes. Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (114 earlier review cycles; latest 8 shown)
|
8d5bb7e to
875f222
Compare
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
Maintainer design decision requested for the remaining oversized-snapshot P1. A valid authored Proposed bounded contract: store immutable UTF-8 instruction chunks in a separate plugin-state namespace, then atomically publish only a small manifest in the existing generation-fenced binding. The manifest records total byte length, chunk count, and digest. Readers verify all three before returning any instructions; missing/corrupt chunks fail closed and never rediscover current workspace files. Retain the unavailable-authority marker and environment fingerprint. A disposable parser probe against current main The alternative is to cap authored project-document selections below the binding value limit, which changes the currently valid Codex config contract. The existing async blob store does not fit the synchronous binding/lease read path without a wider cutover. No persistence change has been made. Can the Codex/storage owner accept the bounded chunk+manifest design (including its limit, retention, and rollback contract), or direct a different compatible approach? |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
15 similar comments
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
|
This assigned pull request has been automatically marked as stale after being open for 27 days. |
What Problem This Solves
Preserve the Codex-selected project instructions that established a thread, including effective native fallback names, root markers, and environment-owned sources, without substituting a new hierarchy on cold continuation.
Why This Change Was Made
The September 5 review found that selected subpaths such as
.config/WORKFLOW.mdcould be dropped and padded fallback names did not match native normalization. The prior head also had stale RPC fixtures, lint failures, and a missing authored Evidence heading.Repair
d058e5d8c401fcaa7b327e1a4e176f90502855d3, preserving its authored project-document byte budget, lifecycle owner split, and documentation split. Update docs and generated prompt snapshots to distinguish unavailable nonempty authority from portable frozen-empty authority.AI-assisted implementation, testing, and review used Codex. No human maintainer approval is implied.
User Impact and Maintainer Decisions
Configured nested/padded fallback files are retained for frozen replay. Nonempty project instructions owned by an unavailable execution environment still prevent physical cold resume/replacement. An empty selection remains frozen-empty and portable with native rediscovery disabled.
Two product/continuity decisions remain pending maintainer acceptance, separate from tests and ratings:
/newas recovery, instead of silently replacing the selected thread.Compatibility and Stored State
This follow-up's candidate sets and home-path handling are invocation-local, not persisted. Across the whole PR, the existing instruction-string field is retained and an optional unavailable-authority fact is paired with a marker and environment fingerprint. There is no SQLite DDL/schema-version migration. Legacy rows and the prior-reader empty-marker contract are covered by the binding suite. Readability by an old reader does not establish old-version enforcement of the new continuation cutoff or unrestricted rollback safety.
The native-process proof on production repair commit
2e5abd1db10is historical. The prior sandbox/Gateway and restart trace below is also historical; neither is represented as a new integrated-head run.Evidence
Current merge refresh — 2026-09-25
Current head — 2026-09-25
Head
5804a7675378f5422bd0bcbff6cab4b308ae3912repairs the subscription recovery fixtures found inchecks-node-changed-extensions-config-20: native-owned seeds now carry expected runtime ownership and frozen-empty instruction authority; the overflow fixture carries the same authority for both variants and waits for turn acceptance before notifying. The owning file passed 10/10 locally; format/diff checks passed. Exact-head CI is pending. The standalone extension-onlytscinvocation cannot resolve repository plugin-SDK exports and is not claimed as a typecheck pass.Head
208a9f2fb380ed45e94a2806a65592091ff2ac5cfixes the shared-client cleanup request-order fixture and gives the intentionally resumable bounded-continuity fixture explicit frozen-empty instruction authority. The entire cleanup owning file passed 17/17 locally; the resumed continuity case passed 1/1 in the focused two-file run. Formatting/diff checks passed. New exact-head CI is running.Head
0c739557a7d30daf9075cbad2fa1071a5a03fe75updates five context-engine request-order fixtures for the now-authoritative project-doc preflightconfig/readand one resumed-binding fixture with explicit frozen-empty authority. The six exact failing CI cases passed locally 6/6; formatting/diff checks passed. New exact-head CI is running.Head
afc5ca06d992c87223e78700cfde4e59cebe2a24refreshes four native-run fixture files for the merged authority contract. The affected local batch passed 33/34 tests; the only local failure was an unchanged retry-model startup timeout (that same test passed in the preceding hosted shard). Formatting and diff checks passed. New exact-head CI is running; this is not a green claim.Real native authority-chain proof on production-identical predecessor
96d7c60b643: a disposable test passed 1/1 through productionstartOrResumeThread, a real Codex 0.153.4 App Server, and a Docker-isolated real exec-server. Gateway and remote files shared one absoluteAGENTS.mdpath but held different markers. The local native start froze the local marker; a remote replacement selected the nonempty remote source, started a new native thread, and persistedCODEX_UNAVAILABLE_PROJECT_DOCS_AUTHORITYwithout the forbidden Gateway marker. A later replacement targeting a missing remote environment failed before native start and preserved the binding. This proves the final binding/source effect, not a model turn or an unfixed-baseline comparison. The disposable test and container were removed. The fixture-only head above does not change this production path.Cross-version rollback parser probe (2026-09-25): In disposable checkouts, current main
847863aae3bread a representative active binding carryingprojectInstructionsUnavailableToGateway: trueand the unavailable-authority marker, but its Zod schema stripped the unknown Boolean fact (1/1 probe passed). The PR head reader accepted the intact row and rejected the fact-stripped row (1/1 probe passed). Thus an older reader can erase the authority fact if it reserializes the binding; returning to this head then fails closed, but safe downgrade/continuation has not been demonstrated. These were parser probes, not a copied-database release preflight or model-turn proof. A maintainer-approved rollback contract is still required.Storage design remains open: authored
project_doc_max_bytescan exceed the 1 MiB keyed-state value ceiling. A proposed bounded design is immutable UTF-8 chunks in a separate plugin-state namespace, followed by an atomic binding manifest with byte count, chunk count, and digest; reads fail closed on any missing/mismatched chunk, and cleanup follows a committed replace/clear. A maximum total size must be defined before native thread commitment. This changes durable representation/retention, sodocs/reference/database-schemas/storage-changes.mdrequires a linked accepted maintainer design before implementation. This is a proposal, not accepted or shipped behavior.Head
96d7c60b643additionally marks the existing host-local replacement lifecycle fixture as authorized for native project-instruction capture. This fixes the only failure inchecks-node-changed-extensions-config-9; the exact test passed locally (1 passed, 252 skipped), and new exact-head CI is running.Prior head
601a654b299eab751376f19c7cff7f8869787506includes the remote-authority repair plus a typed request mock that clears the priorcheck-test-typestuple error. It also removes the sole unrelated onboarding-test delta from this PR; that changed-file shard had failed on an upstream owner-runtime assertion. New exact-head CI is running.Head
a51964eda5424a0f2c3cb039fc53b59179d54673repairs the remote replacement authority boundary: a newly selected host-local environment may recapture native project instructions, while a remote selected environment never reads Gateway-local candidate paths. A remote fresh replacement drops the predecessor's frozen developer text, lets Codex select native docs, and persists the unavailable-authority marker with its environment identity when sources are nonempty.The focused lifecycle rotation suite passed 2/2 at this head. Its remote control uses a selected remote environment and a nonempty native
instructionSourcesresponse; it checks the final binding marker, the absence of predecessor instructions in the newthread/start, and the absence of a Gateway capture preflight. This is a synthetic native-response test, not a current-head real-process proof.Still open: a valid authored project-doc budget can produce a frozen instruction string larger than keyed plugin state's 1 MiB value ceiling. This needs a separate durable storage contract; this commit does not claim to fix it. The prior integrated-head real-process/rollback proof remains historical. The latest ClawSweeper review remains below platinum; the real authority proof is now above, while storage design acceptance and the two maintainer continuity decisions remain open. New exact-head CI is running.
Head:
b901aea31d4112fe3bf1e1660fa28c3da3d40646(CI repair atop merge commit9fb672657488c1caa6c41436a51111256f18ab85); merged maind058e5d8c401fcaa7b327e1a4e176f90502855d3without rewriting prior PR commits. Resolved 31 conflicts across production, tests, docs, and generated prompt snapshots. GitHub reports MERGEABLE; exact-head CI is running/approval-gated, not claimed green.Preserved main's authored
project_doc_max_bytesbehavior. Fixed a merge-review finding: durable replacement threads now rediscover current Codex project docs and freeze their own selected sources, while cold resume replays the predecessor snapshot. Added real-AGENTS.mdrotation coverage.A failed first read of an OpenClaw-carried workspace no longer freezes a false empty instruction set; a later successful read can establish authority. Updated four sandbox tests to the current per-attempt test-tool factory.
Local verification: extension production and test typechecks passed; changed Codex files pass lint and formatting; all seven prompt snapshots are current. Focused initial suites passed 307 tests; an expanded pre-fix shard passed 257; the final targeted authority rerun passed 8/8. The expanded pre-fix run found five failures, which were corrected and rerun in the targeted set. These local results do not replace exact-head hosted CI or the historical native-process proof.
CI repair on
b901aea31d4: removed one unused lifecycle file and two unused exports identified bycheck-dependencies, and made the provider-runtime test mock partial to preserve upstream exports. Localpnpm deadcode:fulland the affected auth suite (18/18) pass; replacement-head hosted CI is not yet claimed green.The two maintainer continuity decisions above remain pending.
Separate Review Blockers
5804a7675378f5422bd0bcbff6cab4b308ae3912are green (88 success, 47 skipped, 1 neutral, deduplicated by workflow/check name and latest start time). The older cancelled PR-context run is superseded by successful runs. ClawSweeper reviewed this exact head and remains gold, blocked on the bounded durable snapshot/rollback design and cold-continuation contract; no maintainer acceptance is recorded. GitHub currently reports a merge conflict. CI success does not resolve those separate review blockers.Conflict refresh — 2026-09-08
8d5be50a25fe9c55fb5c97c96d95fdb34e20b83d; tree:05fcc466fd995d0153956c7fe34fc1f390c8cad7.7069a4772ff40602566afc686a41530dc76c8d2dwithout rewriting the existing PR history. Only three generated prompt snapshots required conflict resolution. Regeneration preserves this PR's project-instruction content and main'ssessions_historydescriptions; no production file required manual resolution.check:changedpassed, including formatting, all seven prompt snapshots being current, repository guards, and script lint. The three focused test files passed 92/92 tests (90 tooling/lifecycle tests and 2 OAuth regression tests).a9707e15bcdab23bfa472b53ae631910f7e1f42c. GitHub reports mergeable after the push. Hosted CI at publication time: new-head CI is running; no new-head hosted pass is claimed.Commands for this conflict refresh:
The detailed native/Gateway/build and earlier CI evidence below remains tied to its recorded prior SHAs; this refresh is not a rerun of those historical proofs. The two maintainer decisions above remain unchanged.
Previous verified revision
3e52264032e005c8cb532d286fb64a3c90bdfe04; tree:4a3d7f1347d65740459231d13bb87408f64a571e.2e5abd1db10b502252c85f49864d343c9815f7e0; tree:0f5b3aaee47437ae41e35b494c544bcef883a4d3. The two test-only follow-ups change four existing test files (+27/-1): settlement, turn watches, attachment continuity, and durable context. The Git diff was checked and production bytes are unchanged.d092f102025574625f4e65ae7f1afae7bce55ec2and pinned maina6bca1c6fd1b1469a17f517ae9f3e33ab517f1e9.Previous-revision verification
3e52264032e. The latest two-file correction separately passed focused tests, formatting, lint, and scoped autoreview; exact-head hosted CI andopenclaw/ci-gatepassed on3e52264032e.2e5abd1db10, the resumed log reached all final build phases, including all 152 public SDK exports, UI budgets, build-info, and CLI startup metadata. The terminal exit was not captured across tool-session interruptions; a later cached retry also lost its completion record. No verified full-build exit-code pass is claimed.checks-node-changed-extensions-bundle-1. Those fixtures are now repaired, and both full affected files pass locally (14 tests). Exact-head CI andopenclaw/ci-gatepassed on3e52264032e. At verification, all reported checks were completed: 145 successful, 46 intentionally skipped, 1 neutral, and no failures. GitHub reports clean/mergeable. The durable review names this exact head and rates it Diamond with Ready for maintainer look; documented owner decisions remain pending before merge.Commands used include
node scripts/run-vitest.mjswith the ten explicit affected suite paths;node scripts/run-vitest.mjs extensions/codex/src/app-server/project-doc-thread-config.test.ts; andnode --import ./scripts/tsx.mjs scripts/generate-prompt-snapshots.ts --write. The required-check runner uses pinned main as its base and explicit changed paths. No checks or budgets were weakened.Native contract and previous-revision proof scope
Personally inspected Codex source at
095ac4f131e759b204fa6368dc42d2feff6eb21a:core/src/agents_md.rsdiscovery/source ordering,core/src/config/mod.rsfallback normalization,codex-home/src/instructions/mod.rsglobal precedence, andutils/home-dir/src/lib.rslexical/default versus canonical/explicit home handling. Paths are undercodex-rs/. The installed native binary reports 0.153.4; it is not claimed to have been built from that inspected source commit.The network-isolated, credential-free fixture uses real native
config/read,thread/start,thread/inject_items,thread/read, andthread/resume, production lifecycle/canonical SQLite persistence, and a physically replaced native process. Four variants cover basename, nested fallback, padded basename, and padded nested plus blank entries. All four variants passed on exact production repair commit2e5abd1db10. The test-only follow-up has identical production code; this is not a claim that the fixture was rerun after that commit. An initial attempt reached the runner’s 120-second no-output watchdog before any case result. The retained retry passed without changing assertions, timeouts, isolation, or source; only its compilation cache was reused, with fresh synthetic homes and state.Sanitized result for production repair commit
2e5abd1db10(all four independent result files were inspected and matched its committed owner hash):{ "head": "2e5abd1db10b502252c85f49864d343c9815f7e0", "tree": "0f5b3aaee47437ae41e35b494c544bcef883a4d3", "ownerSha256": "9ae28c8747aef5f1baaa2d8ad77bb9ec9e79ed25f44b33b67873e0919bd29ae1", "nativeVersion": "0.153.4", "cases": [ "basename-control", "nested-relative-fallback", "whitespace-padded-basename", "whitespace-padded-nested-and-blank" ], "rpcMethods": { "firstProcess": [ "config/read", "config/read", "skills/list", "config/read", "configRequirements/read", "config/read", "thread/start", "thread/inject_items" ], "coldProcess": [ "thread/read", "skills/list", "config/read", "configRequirements/read", "thread/read", "thread/resume", "thread/inject_items" ] }, "verdict": "PASS" }Each case observed the selected source before start, captured the original synthetic content, read the actual canonical SQLite row with the production codec, reopened the store, and then resumed the same cold thread through a new native process. The original frozen text was sent; changed live file text was excluded;
project_doc_max_bytes: 0disabled rediscovery; returnedinstructionSourceswas empty. Noturn/startorturn/steeroccurred.Command:
node scripts/run-vitest.mjs run --config .artifacts/pr126986-native-fallback-proof.config.ts, inside a new Linux user/network namespace and a cleared environment with only synthetic home/state/cache paths and declared source identities. The temporary fixture extends the existing native lifecycle test seam; it is a retained local proof artifact, not a committed CI test or a publicly downloadable attachment.Limits: no provider turn or full Gateway run; cold authority inputs are supplied at
startOrResumeThread, not prepared by outer run-attempt; SQLite is reopened but the JavaScript test process is retained. No new sandbox/remote-environment or model-visible-output claim is made. Earlier Gateway/sandbox evidence follows only as historical context.Historical evidence retained for context
Every pass result, trace, build stamp, integration statement, and test count below belongs to
d092f102025574625f4e65ae7f1afae7bce55ec2, not the current repair revision. These reports do not cover the newly identified nested/padded variants or global/project overlap case. Original first-person statements describe the earlier report.Historical native, sandbox, compatibility, and validation evidence — d092f10
Historical compatibility and stored state
session-binding.test.tspassed 65/65, includingkeeps the explicit empty snapshot readable by the prior binding schema, legacy policy normalization, version 1/2 import, and stored-row round trips.Historical direct Codex contract audit
I inspected sibling Codex
origin/mainat459a79eb85400af759e9220c7bafb4429ae07516:ConfigReadParamsaccepts an optionalcwdandincludeLayers;ConfigReadResponsereturns the effectiveconfig, origins, and optional layers.effective_config()low-to-high, and returns enabled layers high-to-low when requested.project_root_markersfrom merged non-project layers, walks from the nearest configured root to the cwd, and checksAGENTS.override.md,AGENTS.md, then configured fallback filenames.thread/start,thread/resume, andthread/forkreturninstructionSourcesas environment-native absolute paths for the files Codex actually loaded.The repair follows those contracts instead of reimplementing native source selection.
Historical revision and integration
d092f102025574625f4e65ae7f1afae7bce55ec2.88bc8e14f641e3e51d2cbedaabe9629134dcaa9d.+3791/-472.+362/-18.bd8b3c806d4da76d0b21cbc3a8b5264eff3b1a2b.git merge-tree --write-tree HEAD origin/maincompleted without a conflict and produced tree487a4cbb6029007e33c1f941ac53f4ce61004d04.git diff --checkpassed and the tracked worktree was clean.Historical native
config/read→ preflight →thread/startproofThe proof used an isolated Codex home with no operator credentials and the lockfile-pinned dependency
@openai/[email protected]. It wrote only these discovery settings to the isolated user config:The fixture put
WORKFLOW.mdat the configured root, invoked nativeconfig/readfor a nested cwd, took the OpenClaw preflight snapshot, and invoked a real ephemeralthread/start. An outerAGENTS.mdabove.workspace-rootserved as the negative control.Sanitized result:
{ "proof": "pr126986-native-config-thread-start", "appServerVersion": "0.153.4", "binaryContract": { "dependency": "@openai/[email protected]", "launcher": "<REPO>/node_modules/.pnpm/@[email protected]/node_modules/@openai/codex/bin/codex.js", "executable": "<REPO>/node_modules/.pnpm/@[email protected]/node_modules/@openai/codex/vendor/x86_64-unknown-linux-musl/bin/codex" }, "configRead": { "cwd": "<PROOF_ROOT>/outer/workspace/packages/worker", "includeLayers": true, "fallbackFilenames": ["WORKFLOW.md"], "rootMarkers": [".workspace-root"], "userLayerObserved": true }, "preflight": { "selectedSourceSnapshottedBeforeStart": true, "outsideMarkerSourceSnapshotted": false }, "threadStart": { "instructionSources": ["<PROOF_ROOT>/outer/workspace/WORKFLOW.md"], "outsideMarkerSourceSelected": false }, "capture": { "configuredFallbackContentCaptured": true, "outsideMarkerContentCaptured": false }, "rpcSequence": ["config/read:inspect", "config/read:preflight", "thread/start"], "verdict": "PASS" }This addressed the earlier effective-config discovery finding at the historical head: the fallback and root marker exist only in native user config, and the real native start succeeds while retaining the source-identity boundary.
Historical sandbox lifecycle proof
I rebuilt the complete runtime before this trace.
pnpm buildpassed, anddist/build-info.jsonrecorded:{ "version": "2026.9.1", "commit": "d092f102025574625f4e65ae7f1afae7bce55ec2", "buildId": "2026.9.1-d092f1020255-2026-09-05T03-10-28.715Z" }The proof then launched that compiled Gateway with an isolated state directory, a disposable
openclaw-sandbox:bookworm-slimDocker container withnetwork: none, and real Codex 0.153.4. It performed a first sandbox turn, a second turn on the live thread, stopped the Gateway, switched the same session to host execution, restarted the Gateway, and attempted a third turn. It also read the persisted binding to require the unavailable-authority marker and environment fingerprint before the restart.Sanitized result:
The cold attempt emitted neither
thread_readynorturn_starting. The fixture's task-prefixed container and stopped Codex child processes were removed after the trace.Historical real behavior proof summary
d092f102025574625f4e65ae7f1afae7bce55ec2honored Codex's effective user-configured project-document fallback and root-marker settings beforethread/start, while preserving sandbox-owned nonempty instruction authority across warm reuse and rejecting a later host cold resume before Codex resume or provider work.d092f102025574625f4e65ae7f1afae7bce55ec2, its compiled and stamped Gateway, the production Codex app-server preflight/config reader, lifecycle binding persistence, sandbox start/warm-resume/host-cold-resume paths, lockfile-pinned@openai/[email protected], and a real networkless Docker sandbox.WORKFLOW.mdat a configured.workspace-root, placed a negative-controlAGENTS.mdabove that marker, and supplied both discovery settings only through an isolated Codex user config. The lifecycle fixture then started a sandbox-owned thread with nonempty native instructions, reused that exact live client/thread, restarted the Gateway, switched the session to host execution, and attempted a cold resume.config/readandthread/start, then ran the accepted live Vitest fixture withOPENCLAW_LIVE_TEST=1 OPENCLAW_LIVE_CODEX_HARNESS=1againstdist/build-info.jsonstamped to the candidate SHA. The Docker container usednetwork: none; no live OpenClaw service was restarted.config/readreturnedWORKFLOW.mdand.workspace-root; OpenClaw snapshotted the selected fallback before start; realthread/startreturned only the in-boundaryWORKFLOW.md. Sandbox start persisted unavailable authority, warm reuse kept the same client and thread, and host cold resume failed withproviderTurnStarted:falsebefore eitherthread_readyorturn_starting.[pr126986-live-proof]line are copied in the two sections immediately above. The native result records app-server version0.153.4, theconfig/read/preflight/thread/startRPC sequence, selected and excluded sources, andverdict:PASS; the lifecycle trace records the exact SHA, stable client/thread identities, persisted authority, blocked host resume, andverdict:PASS.Historical validation
All results below are historical reports from head
d092f102025574625f4e65ae7f1afae7bce55ec2:project-doc-thread-config.test.ts: 13/13 passed.run-attempt.test.ts: 2/2 passed (captures a fallback selected by effective native config on a local start; malformed native config rejection).thread-lifecycle.test.ts: 212/212 passed.session-binding.test.ts: 65/65 passed.pnpm tsgo:extensions:test: passed.pnpm build: passed; 53 built plugin control-plane modules and all 152 public plugin-SDK subpaths verified.git diff --check: passed.Historical focused reviewer commands (not a claim these have run on the repair head):
node scripts/run-vitest.mjs \ extensions/codex/src/app-server/project-doc-thread-config.test.ts node scripts/run-vitest.mjs \ extensions/codex/src/app-server/run-attempt.test.ts \ -t 'captures a fallback selected by effective native config on a local start|rejects malformed effective native config before starting a local thread' node scripts/run-vitest.mjs \ extensions/codex/src/app-server/thread-lifecycle.test.ts node scripts/run-vitest.mjs \ extensions/codex/src/app-server/session-binding.test.tsAt the time of these historical results, no merge or deployment was performed.