Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 3, 2026, 6:00 AM ET / 10:00 UTC. Summary Reproducibility: yes. for the introduced patch regression: source inspection shows reused terminal sessions now call clearAllCliSessions even when the session id is preserved. Review metrics: 3 noteworthy metrics.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Fix terminal-session CLI binding preservation, refresh exact-head behavior and upgrade proof, and keep PR3 behind maintainer acceptance of the PR1/PR2 durable runtime boundary. Do we have a high-confidence way to reproduce the issue? Yes for the introduced patch regression: source inspection shows reused terminal sessions now call clearAllCliSessions even when the session id is preserved. Is this the best way to solve the issue? No: the durable wiring may be a plausible product direction, but the current head must preserve existing CLI binding behavior and get maintainer approval for the stacked durable runtime boundary before it is the best fix. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 36dd9ee3c3c1. Label changesLabel changes:
Label justifications:
Evidence reviewedAcceptance criteria:
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
|
|
Updated after ClawSweeper review:
Validation:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review Updated PR #98719 after the latest re-review still flagged the ACP spawn-owner and visible-request terminal cleanup invariants. Changes:
Validation:
New head: |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review Refreshed the PR body for current head This is body/proof metadata only: no code changes. The body now records the trusted ACP suppression boundary, visible-request terminal cleanup gate, heartbeat preservation proof, and latest validation commands. |
|
@clawsweeper re-review Restored the default durable-disabled prompt guidance flagged in the latest review. Changes:
Validation:
New head: |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review Updated PR #98719 for head Changes:
Validation:
|
|
🦞🧹 I asked ClawSweeper to review this item again. |
…e-runtime-agent-v2-ready # Conflicts: # src/gateway/server-methods/agent.ts
|
@clawsweeper re-review Merged current origin/main into PR #98719 to clear the live merge conflict at head 5cb2602. Conflict resolution was limited to src/gateway/server-methods/agent.ts: kept the durable agent-turn imports/lifecycle wiring and preserved upstream Gateway-owned plugin runtime binding ( Validation:
Pushed private first to mjnkao/openclaw-x, then public fork mjnkao/openclaw. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Superseded by #101828, which restates the durable-core scope with a clearer RFC/root-cause/test-plan review gate. The new PR keeps this stack durable-core-only: Workboard/TaskFlow and product workflow surfaces are out of scope. Closing this older PR to avoid review confusion; implementation PRs will follow sequentially after #101828 is reviewed. |
What Problem This Solves
This PR wires the durable runtime foundation from PR2 into agent/session/subagent paths so OpenClaw can record durable context for chat sends, agent runs, subagent child runs, parent fan-in, yield progress, and restart/recovery inspection.
The target behavior is: parent agents should have durable child/fan-in state; one failed child should not make sibling completion invisible; and Gateway/session restart should leave inspectable runtime state instead of silent coordinator ambiguity.
Dependency Chain
This is PR3 in the replacement durable runtime stack:
This branch is stacked on the refreshed PR2 branch. The upstream PR diff against
mainis cumulative. For delta-only review after PR2, use:https://github.com/mjnkao/openclaw/compare/codex/openclaw-durable-runtime-foundation-v2-ready...codex/openclaw-durable-runtime-agent-v2-ready
Summary
Adds:
chat.sendandagent.rundurable context refs;Explicit Non-Scope
Latest Reviewer Follow-Up
Updated on 2026-07-03 after the latest ClawSweeper default prompt guidance finding, durable context terminology cleanup, and proof refresh.
Head:
654dc5c5f9532630a775a6ef5579c531ff25f554.Addressed ClawSweeper findings:
Larger work: use `sessions_spawn`; completion is push-based.while durable-specificSub-agent orchestrationwording remains gated behind durable policy/runtime enablement.gateway-clientbackend caller, excludes device-token auth, and still requires persisted ACP child metadata.failed,timeout, andkilledterminal session state is cleared only for visible user requests.Regression coverage added:
src/agents/system-prompt.test.tsnow asserts the default larger-worksessions_spawnguidance remains present, while existing tests keep durable orchestration wording on enabled paths only.src/gateway/server-methods/agent.test.tscovers trusted ACP suppression, device-token ACP-shaped fallback tracking, operator-write ACP-shaped fallback tracking, plugin-subagent precedence, visible terminal reuse cleanup, and heartbeat terminal-state preservation.src/gateway/server-chat.agent-events.test.tscovers agent event behavior after the Gateway agent-method changes.Evidence
Latest validation:
node scripts/run-vitest.mjs run --config test/vitest/vitest.unit.config.ts src/durable/intake-envelope.test.ts src/durable/agent-turn.test.ts src/durable/subagent.test.ts src/durable/fan-in.test.tsnode scripts/run-vitest.mjs run --config test/vitest/vitest.gateway.config.ts src/gateway/server-methods/agent.test.tsnode scripts/run-vitest.mjs run --config test/vitest/vitest.agents-tools.config.ts src/agents/tools/sessions-spawn-tool.test.ts src/agents/tools/gateway-tool.test.tsnode scripts/generate-docs-map.mjs --checkdocs/docs_map.md is up to date.npm run tsgo:coregit diff --checkEarlier focused validation remains recorded in
docs/specs/durable-runtime-agent-session-pr-proof-2026-07-01.md, including:npm run tsgo:core,npm run tsgo:core:test, andnpm run tsgo:prodpassed on the stacked branch.Local Build Note
env CI=true npm run buildwas attempted locally. Dependency installation and bundled plugin assets completed, then the roottsdownbuild emitted only heartbeat lines for more than ten minutes and was manually interrupted. This is not recorded as passing build proof; CI or a maintainer machine should still run the full build before merge.Notes
This PR replaces the agent/session/subagent wiring portion of #97508 with runtime-oriented naming and a narrower dependency chain.