Repository navigation
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: needs real behavior proof before merge. What this changesThis PR enables automatic local Codex Goal continuation and restores durably accepted continuation inputs after Gateway restarts. Example: A local Codex session finishes the first step of a three-step checklist while its Goal remains active.
Review scores
ProductKind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 4 items remain This PR adds a distinct capability missing from current main, and the three earlier code findings are addressed; the expanded autonomy still needs owner direction. Priority: P2 Decision needed
Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherGoal continuation consumes completed-turn outcomes, Goal state, source restrictions, operator authority, and delivery coordinates, then submits follow-up turns through existing session admission and reply owners. flowchart LR
A[Completed agent turn] --> B[Goal continuation]
B --> C[Pending input storage]
C --> D[Startup recovery]
D --> E[Current operator authority]
E --> F[Session follow-up queue]
B --> F
F --> G[Agent execution]
G --> H[Authorized reply delivery]
Technical reviewBest possible solution: Extend the existing Goal queue and recovery owners with approved autonomy semantics and verified runtime and upgrade behavior. Do we have a high-confidence way to reproduce the issue? Current-main source explicitly excludes local Codex continuation; the supplied integration tests exercise the proposed behavior with simulated execution, and no target code was run during this review. Is this the best way to solve the issue? The queue, pending-input store, operator restoration, and reply finalizer are appropriate existing owners; a local-only first stage remains viable if restart autonomy is deferred. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 954a610f5d0f. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +1209, Tests +1830, Docs +18, Other -1. Total +3056 across 62 files. Added test files: 4. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (2 earlier review cycles)
Reviewed October 19, 2026, 2:08 PM ET / 18:08 UTC (Revision 3). |
|
@clawsweeper re-review Addressed the three confirmed findings in 4ba6e39: durable source execution restrictions (including native tool disabling and independent glob caps), recovered attached-WebChat final delivery, and the type import cycle. Added real SQLite/operator-restoration/file-effect/revocation coverage plus authenticated WebSocket delivery proof. Both original behavior regressions were reproduced before the repair. The PR body now lists current validation and the remaining live-model/crash-window limits. The mock-export baseline changed only by removing its single stale entry. |
|
🦞👀 Re-review progress:
|
|
The requested data-model compatibility proof is now complete and documented in the PR description. An isolated packaged-runtime drill upgraded state actually created by published 2026.10.5 ( |
|
Local foreground follow-through observation and a narrower contract question for #177351. On core 2026.10.5 with the local Codex 2026.10.3 bridge (Codex dependency 0.160.0), two ordinary research turns ended with nonempty acknowledgements, no tool calls and successful terminal metadata, while the requested investigation was unfinished. This is not evidence that missing Goals caused the model to stop, nor a confirmed stock regression: the installation has unrelated local corrections. Source inspection distinguishes turn settlement from task completion: Could the owning maintainer confirm whether same-process local continuation through the existing core queue/admission owner is an acceptable first stage separately from restart replay, or whether #177351 must remain one combined capability? We are not proposing to enable native autonomous turns, bypass thread claims, retry every final reply, or add a scheduler. The necessary acceptance case is a fresh explicitly scoped local read-only Goal: an acknowledgement-only terminal turn is followed by admitted real research and a delivered artifact without another user prompt; current tool restrictions, user-input/Stop precedence, finite budgets, native thread ownership and duplicate-effect/delivery prevention remain enforced. Ordinary completed no-tool answers must still terminate. Real-model proof and maintainer approval remain outstanding in this PR; no automatic-continuation repair is claimed here. |
|
This pull request has been automatically marked as stale after 7 days without qualifying human activity. |
Related: #102260, #167897, #175918.
Problem and behavior
Local Codex sessions can finish a reply while their OpenClaw Goal remains active, requiring repeated
/goal resume. This PR extends the existing Goal continuation queue to local Codex and restores durably accepted Goal continuations after Gateway restart.The same queue, admission, accounting, operator-authority, and reply-delivery owners remain responsible. Pause, Stop, completion, session/Goal replacement, current permissions, and budgets remain authoritative. Codex's native autonomous Goal engine stays disabled.
Maintainer decision requested: approve local Codex automatic pursuit and recovery of accepted Goal inputs as one capability. Earlier implementations deliberately supported narrower placement/lifecycle boundaries; this expansion needs owner agreement.
Evidence and remaining gates
Evidence below applies to head
4ba6e39ad497. Latest inspection: October 19, 2026.f455495cd8819openclaw/ci-gatepending at inspectionProduction observation: do not count ordinary activity as Goal proof
The installed candidate is executing real local Codex work. However, the inspected session's Goal was
paused, withcontinuationTurns: 0, after a thread-ownership rejection:Codex thread <redacted> is claimed by active work; stop it first.Later work was attributed to a native child-result continuation. That activity does not demonstrate successful Goal-led continuation.The persisted lifecycle owner pauses an active Goal after a terminal failed run. The Codex adapter rejects releasing a thread still claimed or protected by active work. Whether this observed rejection is an existing ownership problem, an interaction with this change, or an expected overlapping request still requires a focused reproduction. Do not bypass the ownership guard or infer a successful Goal run from tool activity alone. Private session identifiers, transcript contents, and model/account details are omitted.
Packaged upgrade proof
The published
2026.10.5runtime (1b58cb9a1b4f) created the setting, admitted and paused a Goal through its public API, and wrote three transcript messages. After clean shutdown, the candidate ran Doctor and config validation on the same synthetic state. The setting and complete Goal—including ID, counters, timestamps, and status—were preserved, as were original message IDs, content, and usage. Editing and completing the existing Goal also passed.The sole response difference was an additive
assistant.usage.contextUsage: { state: "unavailable" }projection, verified against both packaged serializers. This covers the exercised data path, not every possible plugin database.Artifact SHA-256:
73ad91edee7838a73c2efc5001c179bac9f42bf6af467456fa3aacd81b95662d.The operator deployment used the documented external-terminal package-manager/Doctor workflow after the old updater refused its native handoff check before activation. Doctor completed; the same Gateway process became ready after its initial 90-second readiness budget expired. Independent error-level lint returned
ok: truewith no findings. These are deployment observations, not a Goal benchmark.Implementation and regression coverage
The three earlier ClawSweeper findings are addressed:
Original restriction-loss and WebChat delivery failures were reproduced before repair. Coverage includes four real SQLite/operator/file-effect/revocation cases, all four command-settlement modes (including the real disabled-tool command-attempt path), 63 Goal queue tests, 15 recovery tests, 7 policy tests, and 5 prompt/tool-prefix tests. Core plus four affected type graphs, runtime/type import-cycle guards, mock-export ratchet, changed-file lint/format, and independent repair review passed. Full repository CI and real-model Goal/restart proof are not claimed.
Integration work and limits
Conflicts against
f455495cd8819are indocs/gateway/restart-recovery.md,src/config/sessions/session-entry-list.worker.ts, andsrc/config/sessions/session-pending-input-history.kernel.ts. Preserve upstream chat/steering/deferred recovery while retaining Goal-specific selection, source policy, and delivery. In particular, upstream's expanded queued-input selection must not allow ordinary chat recovery and Goal recovery to consume the same private Goal input.No new database schema, configuration option, or parallel scheduler is introduced. Older private PR records without source-policy information stop visibly instead of resuming with broader permissions. Startup restores accepted inputs; an active Goal row alone does not authorize new work. A hard crash before durable acceptance can still require
/goal resume. Exhausted retries and genuinely blocked work do not become unlimited retries.After resolving integration and real-runtime proof, update this evidence and request one fresh ClawSweeper review.