Repository navigation
Conversation
|
Codex review: found issues before merge. Reviewed July 3, 2026, 11:45 PM ET / 03:45 UTC. Summary PR surface: Source +789, Tests +690, Docs +56, Other +2. Total +1537 across 24 files. Reproducibility: yes. for the review blockers: the shared worker gate, docs mismatch, current-main function-valued options, and Node DataCloneError behavior are visible from source and a focused worker_threads probe. I did not run the PR test suite in this read-only review. Review metrics: 2 noteworthy metrics.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Rebase onto current main, keep Gateway ingress in-process unless a real callback bridge is added, define a clone-safe worker payload, and get maintainer acceptance for the experimental config, lock-file, and permission boundary. Do we have a high-confidence way to reproduce the issue? Yes for the review blockers: the shared worker gate, docs mismatch, current-main function-valued options, and Node DataCloneError behavior are visible from source and a focused worker_threads probe. I did not run the PR test suite in this read-only review. Is this the best way to solve the issue? No, not yet: worker isolation is a plausible experiment, but this branch needs a clean rebase, a local-command-only gate or Gateway callback bridge, and a clone-safe payload contract before it is the best maintainable solution. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9d68f877ac3e. Label changesLabel justifications:
Evidence reviewedPR surface: Source +789, Tests +690, Docs +56, Other +2. Total +1537 across 24 files. View PR surface stats
Security concerns:
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
|
Closing this experimental worker-runtime branch. The current agent option surface contains function callbacks, while this branch posts nearly all opts through structured clone after removing only abortSignal, so a current-main replay can fail before an attempt starts and cannot preserve Gateway callback semantics. It also adds sessions.json lock-file state and a broad new runtime/config boundary without a concrete production contract. A future isolation design needs an explicit clone-safe protocol, callback bridge, and current SQLite/session ownership model. |
Summary
agents.defaults.experimental.runtimeIsolation.mode: "worker"orOPENCLAW_AGENT_RUNTIME_WORKER=1sessions.json.lockfile lock so concurrent worker/process isolates do not lose updatesWhy
The branch explores running each agent attempt in a separate worker so multiple agents can run in parallel while gaining a cleaner boundary for per-agent filesystem isolation. The first version keeps the main runtime contract intact and gates the behavior behind an explicit experimental switch.
The branch also fixes issues found during verification and review:
legacycontext engine before the parent process had registered built-in enginessessions.jsonReal behavior proof
Behavior addressed: Experimental worker runtime can run real local OpenClaw agent attempts successfully, parent-side transcript persistence no longer reports
Context engine "legacy" is not registered, concurrent session-store updates preserve all writers, and the latest worker boundary fixes preserve plugin runtime restore plus parent session-store sync.Real environment tested: Blacksmith Testbox via Crabbox, OpenAI auth from
openclaw-testbox-env, provider/modelopenai/gpt-5.4, three worker-enabled agents (alpha,beta,gamma) launched in parallel.Exact proof: Crabbox run https://github.com/openclaw/openclaw/actions/runs/25417924262 hydrated Testbox
tbx_01kqxvq72qnz2v9av2gp5f7kft, built the branch, then launched all three agents concurrently withOPENCLAW_AGENT_RUNTIME_WORKER=1 node openclaw.mjs agent --local ... --json.Exact steps or command run after this patch: Built the PR on Testbox, then launched three local agent commands in parallel with worker isolation enabled:
OPENCLAW_AGENT_RUNTIME_WORKER=1 node openclaw.mjs agent --local --agent alpha --provider openai --model gpt-5.4 --json, repeated forbetaandgamma, followed by asessions.jsonverification script that checked all three persisted session entries.Evidence after fix: The remote verifier printed:
Observed result after fix: All three live OpenAI agent runs returned the exact expected payloads (
ALPHA_WORKER_OK,BETA_WORKER_OK,GAMMA_WORKER_OK), each reported the embedded runner, and each persisted its session entry under the matching agent state directory. The latest local worker-thread regression run also passedsrc/agents/worker-runtime/agent-runtime.test.tsandsrc/agents/worker-runtime/plugin-runtime.test.ts, covering plugin runtime restore and parent session-store resync on worker success/error.What was not tested: No GUI, mobile, or non-agent channel surfaces. For the latest review follow-up, a fresh
pnpm check:changedTestbox run was attempted but the runner stayed queued, so it was stopped without result.Remaining note: The parallel live run emitted two non-fatal
[tasks/registry] Failed to restore task registrywarnings, but the agent runs and session persistence completed. That looks like a separate task-registry startup/concurrency wart, not the worker runtime handoff fixed here.Verification
pnpm docs:listpnpm test src/config/sessions/store-writer.test.ts src/agents/worker-runtime/agent-runtime.test.tspnpm test src/agents/worker-runtime/agent-runtime.test.ts src/agents/worker-runtime/plugin-runtime.test.tspnpm exec oxfmt --check --threads=1 src/agents/worker-runtime/agent-runtime.ts src/agents/worker-runtime/agent-runtime.worker.ts src/agents/worker-runtime/agent-runtime.test.ts src/agents/worker-runtime/plugin-runtime.ts src/agents/worker-runtime/plugin-runtime.test.tspnpm exec oxfmt --check --threads=1 src/config/sessions/store-writer.ts src/config/sessions/store-writer.test.ts docs/reference/session-management-compaction.md docs/concepts/experimental-features.mdnode scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json src/config/sessions/store-writer.ts src/config/sessions/store-writer.test.tspnpm tsgo:corepnpm tsgo:core:testpnpm test src/config/sessions/store-writer.test.ts src/agents/worker-runtime/agent-runtime.test.tspassed in https://github.com/openclaw/openclaw/actions/runs/25417769087 before the live agent phaseMULTI_AGENT_WORKER_LIVE_OKandMULTI_AGENT_SESSION_STORE_OKgit diff --check