Skip to content

fix: human messages queue behind runs with older recovery claims - #181768

Merged
joshavant merged 2 commits into
openclaw:mainfrom
enki:fix/steer-with-retained-recovery-claim
Oct 23, 2026
Merged

joshavant merged 2 commits into
openclaw:mainfrom
enki:fix/steer-with-retained-recovery-claim

Conversation

@enki

@enki enki commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Human steering can incorrectly fall back to the queue when a new execution is admitted beside an unresolved recovery-delivery claim from a different source.

User Impact

Human input can join the admitted execution without clearing, replacing, or settling the retained claim. Existing terminal-delivery, execution-settings, and current-authority checks remain in place. No migration or configuration change is required.

Why This Change Was Made

Capture the retained claim tuple with the existing execution selection and let the prepared delivery owner compare it with the current tuple. A missing source ID uses the captured claim rather than adopting a replacement row's source. Terminal-send ownership and settlement remain unchanged; this adds no schema, public SDK surface, or peer-delivery policy.

The existing unavailable-steering regression now checks that the expected input actually enters followup custody, preserving its no-injection and no-model-start assertions. It no longer requires a particular queue helper call.

Evidence

Real Control UI → Gateway → native-worker proof completed on candidate ed9b83ddacc3ab82b4cc8e165d3878b439c93e7c, compared with base b19bade1d3ad29533784228947e7a729c70a0961. Correlated runtime records, screenshots, and sanitized artifacts.

Case Observed behavior
Base, unchanged unresolved predecessor claim reply-owner-ended → followup-queued; correction executes afterward in a separately mapped native task.
Candidate, unchanged claim active_run_injected; correction and successful effect occur within the original native task before completion.
Candidate, claim replaced after admission Steering is rejected and followup custody recorded; original native task does not consume the correction.

These are constructed cases using isolated AWS state, the rendered Debug agent form for initial work, and the real composer for the correction on the same authenticated connection. A task-only public-SDK fixture sets the claim; production admission and native execution remain real. The replacement cell retains an incomplete harness status because a post-completion assertion incorrectly rejected legitimate queue-drain claim acquisition; its refusal and original-task nonconsumption were independently verified. The full base followup mapping and candidate original-task effect are separately verified. Native version is 0.162.1, versus the incident's reported 0.163.0.

The historical production incident's cause remains unresolved. Missing admission/rejection tuples cannot be reconstructed from later rows. This proof does not establish that incident's cause or uninterrupted claim custody between observed endpoints. Diagnostic instrumentation remains separate from this PR.

  • The matched retained-predecessor regression failed on the base (deferred, expected prepared) and passed with the four-file production repair; fix: Stop omits native descendant requester lifecycle #181766's exact-run Stop change was held constant. Matched AWS proof.
  • Existing message-join/handoff and adjacent checks remain valid. Additional evidence-only controls cover claim replacement/restoration, terminal-pending state after preparation, incumbent cancellation, and actual completion; none permitted backend injection.
  • The runner-test repair passed independent review, owning typecheck, targeted lint/formatting, whitespace, line-cap, and assertion-safety checks. No new test, timer, retry, timeout, or mock was added.
  • Current-head CI passed, including all 230 runner tests and openclaw/ci-gate. The separately diagnosed Barnacle auto-response failure reads missing context.repo.owner in unchanged automation code.
Measured validation costs and proof limitations

The corrected test took 2.339s in its body, 57.41s in Vitest, and 310.099s command wall including the supported e2e build on AWS. In CI it took 0.121s; the 230-test suite took 97.38s Vitest / 98.85s runner wall, within a 448s job. These are observed durations, not incremental costs.

The live comparison's base/positive/replacement attempts took 60.155s / 53.611s / 55.350s. All nine setup, failed, and proof attempts total 483.619s; the two runtime builds took 245.551s separately. Returned usage across eight distinct native threads was 523,151 total tokens (520,551 input, including 379,701 cached; 2,600 output, including 565 reasoning). Counters are counted once per thread and are not billing. No per-PR CI tests were added for this proof.

Native/Gateway task, thread, and call IDs plus the harmless effect establish consumption; screenshots or transcript persistence alone do not. Error events and a failed-tool indicator are preserved, and not every operation is claimed successful. The replacement cell lacks the later followup's complete Gateway/thread binding; its original-task nonconsumption is established, and the base cell independently supplies the full queued-execution mapping. This is not a new live preparation-to-injection race. Existing deterministic race proof remains applicable. Owned processes settled and the AWS lease was released.

LoC churn against the pinned base
Category Files Added Removed Churn
Production 4 50 13 63
Tests 2 71 16 87
Total 6 121 29 150

The test-only correction accounts for +15/-15. The evidence update changes no source or tests.

@clawsweeper

clawsweeper Bot commented Oct 23, 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 23, 2026
@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Allow human corrections to join an admitted execution beside an unchanged older recovery claim while rejecting replaced claims.

Example: An execution receives “change the current work” while retaining the unresolved claim “unresolved-predecessor”.

  • Before: The correction waits for a separate execution.
  • After: The original execution consumes the correction without clearing the predecessor claim.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused repair with supplied shipped-entry-point comparison, meaningful regression coverage, resolved prior feedback and passing exact-head gates.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): Exact-head isolated Control UI → Gateway → native-worker records show unchanged-claim steering consumed by the original task and replaced-claim rejection before original-task consumption. The replacement cell lacks complete later-followup attribution, but records actual queue acceptance and original-task nonconsumption. Prepared local screenshots show earlier queue UI and are not credited as proof of this repair; the correlated runtime records establish the changed behavior. The historical incident's cause remains unproven.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A human correction waits behind an active execution because an unrelated older recovery claim blocks steering.
Reason: The demonstrated behavior violates the existing compatible-steering contract, and the repair preserves unresolved delivery custody.

Merge readiness

✅ Ready for maintainer review

This PR fixes a demonstrated steering defect that remains on current main. The prior runner finding is resolved, and no actionable introduced defect remains.

Priority: P2
Reviewed head: ed9b83ddacc3ab82b4cc8e165d3878b439c93e7c

Before merge

None.

Findings

None.

Agent review details

How this fits together

Gateway and channel input pass through session-controller admission and prepared delivery checks before reaching the active backend or entering the followup queue.

flowchart LR
 A[Human correction] --> B[Session controller]
 B --> C[Prepared delivery checks]
 D[Captured recovery claim] --> C
 E[Current session facts] --> C
 C --> F[Active backend]
 C --> G[Followup queue]
Loading

Technical review

Best possible solution:

Land the focused claim-comparison repair with the existing terminal-delivery and current-authority checks intact.

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

Current-main source retains the failing condition, and supplied base/head runtime records demonstrate it through Control UI and Gateway admission; no target code was executed during this review.

Is this the best way to solve the issue?

This is the smallest complete fix using the existing execution-selection and delivery-preparation owners, without retiring unresolved custody or adding parallel machinery.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 40172b9e4ff2.

Provenance checked

  • Stale recovery-claim steering rejection changes intended behavior with a stated reason (13747e0: Prevent late input from reusing closed or ambiguous terminal-delivery ownership while allowing compatible steering.)
  • Prepared delivery checks across asynchronous preparation keeps the original intent (9cbcd21: Keep source custody and current policy valid through preparation and final backend admission.)
  • Captured execution-selection ownership keeps the original intent (f83b7ad: Compare incoming requests with the admitted execution rather than rebuilding its settings from later state.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Paul Bohm: Raw commit f83b7ad adds src/sessions/session-controller.execution-selection.ts:96 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f83b7ade15f3; files: src/sessions/session-controller.execution-selection.ts)
  • Peter Steinberger: Raw commit 13747e0 adds src/config/sessions/restart-recovery-receipt.ts:93 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 13747e05516a; files: src/config/sessions/restart-recovery-receipt.ts)
  • Finn763: Raw commit aa0f0c0 adds src/config/sessions/restart-recovery-receipt.ts:107 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: aa0f0c0f9e1a; files: src/config/sessions/restart-recovery-receipt.ts)

PR surface

Source +37, Tests +55. Total +92 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 65 28 +37
Tests 1 56 1 +55
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 121 29 +92

Review metrics

Metric Value Why it matters
Production versus test changes Production +50/-13; tests +71/-16 Growth captures the existing claim tuple and covers retained, pending and replaced claims through the existing admission suite.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: A bounded recovery-state interaction delays human corrections until a separate execution.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

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 execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-23T17:06:13.746Z sha c63b3ea :: needs real behavior proof before merge. :: [P2] Repair the runner regression for deferred stale-claim admission

Reviewed October 23, 2026, 5:43 PM ET / 21:43 UTC (Revision 2).

@joshavant

Copy link
Copy Markdown
Collaborator

The real Control UI → Gateway → native-worker comparison supports the retained-claim fix on ed9b83ddacc3ab82b4cc8e165d3878b439c93e7c, against base b19bade1d3ad29533784228947e7a729c70a0961. This is a constructed state interaction; the historical incident’s cause remains unresolved.

Case Actual runtime result Execution proof Attempt wall
Base, unchanged unresolved predecessor claim reply-owner-ended → followup-queued Original native task finishes without correction/effect; a distinct queued task maps to the correction Gateway run and produces the effect. 60.155s
Candidate, unchanged claim active_run_injected Correction and successful effect belong to the original native task, before its completion. 53.611s
Candidate, claim replaced after admission reply-owner-ended → followup-queued Replacement tuple remains through the decision; original native task finishes without consuming the correction. 55.350s

Each cell used fresh isolated AWS state. Initial work entered through the rendered Control UI Debug agent RPC form; the same authenticated browser sent the correction through the real composer with Ctrl+Enter (queueMode: steer). A task-only plugin used the public prepared session-patch owner to seed/replace only the claim tuple, preserving session generation and current authority checks. A real native tool barrier held work until the runtime decision and claim checkpoint. No production-source edit or diagnostic overlay was used; #181766 remained constant.

All times below are UTC on October 23. The candidate recorded the correction at 21:20:52.722, the original task’s effect call at 21:20:58.449, and native completion at 21:20:59.380. On the base, the original task completed at 21:30:29.547 without the correction; the distinct queued task started at 21:30:30.237, received it at 21:30:30.672, and made its effect call at 21:30:35.827. Exact source, Gateway/native task and call IDs, claim checkpoints, decision records and timings are preserved in the accompanying evidence.json.

The replacement cell’s browser status remains incomplete: its final harness assertion incorrectly required the claim to remain unchanged even after original completion and admission of queued work. The refusal, actual queue acceptance and original-task nonconsumption were independently verified. Later native correction/effect records exist, but the browser ended before the later thread binding event; full Gateway attribution of that later task is not claimed. The base cell separately verifies that complete followup mapping.

Limits: this is Manual RPC-to-composer proof, not two ordinary composer submissions or a new live race between preparation and injection. Native user/call turn fields use the last recorded turn context; direct task boundaries, exact call IDs and Gateway/thread mappings independently support the conclusions. Error events and a failed-tool indicator remain recorded; not every operation is claimed successful. All cells used the same managed native 0.162.1 binary; the incident reported 0.163.0 and lacks contemporaneous claim/owner tuples. These results cannot reconstruct those historical facts.

Measured campaign cost, including all nine setup/failed/proof attempts: 483.619s attempt wall; runtime builds 245.551s separately; six initial inputs, three corrections, eight native usage threads. Returned counters counted once per thread: 523,151 total tokens (520,551 input, including 379,701 cached; 2,600 output, including 565 reasoning). These are observed counters, not billing. No per-PR tests were added. Serving/final runtime manifests matched, owned processes settled, and the AWS lease was released.

The following allowlisted record projection is retained directly in this comment so the essential evidence does not depend on expiring download links. It preserves observed facts; it is not raw log text.

Correlated Gateway/native records and claim checkpoints
[
  {
    "cell": "head-unchanged-6",
    "source": {
      "head": "ed9b83ddacc3ab82b4cc8e165d3878b439c93e7c",
      "tree": "3566004fa1b9ecbf1f6e6a9b6de83ea09c66bbe3",
      "manifestSha256": "f1a87485160de2ecdfe0b20914fefce8924057227bc4d738414350bb22e1aad7",
      "proofInputsSha256": "dc66f53afb52062ae16eb98c4506784c68fb9cfe5b3d976676d51ecd5092881a"
    },
    "harnessStatus": "completed-observation",
    "verdict": "Correction consumed by the original native execution with the unchanged retained claim.",
    "gateway": {
      "originalRunId": "RETAINED-CLAIM-181768-unchanged-1792790445945-INITIAL",
      "correctionRunId": "00e5d1d4-7cce-49f1-ad4b-37a33e95453a",
      "initialAgentRpcSentAt": "2026-10-23T21:20:46.004Z",
      "initialAgentRpcAcceptedAt": "2026-10-23T21:20:46.104Z",
      "correctionChatSendAt": "2026-10-23T21:20:52.095Z",
      "correctionQueueMode": "steer",
      "sameAuthenticatedConnection": true,
      "fullSessionMessageSubscriptionAcknowledged": true,
      "terminalEvents": [
        {
          "runId": "RETAINED-CLAIM-181768-unchanged-1792790445945-INITIAL",
          "at": "2026-10-23T21:20:59.529Z",
          "phase": "end"
        }
      ],
      "effectToolEvents": [
        {
          "gatewayRunId": "RETAINED-CLAIM-181768-unchanged-1792790445945-INITIAL",
          "toolCallId": "exec-243ac241-26e2-420d-8e7c-e8abdf6e3cc9",
          "startAt": "2026-10-23T21:20:58.583Z",
          "commandMatchesEffect": true,
          "resultAt": "2026-10-23T21:20:58.601Z",
          "status": "completed"
        }
      ]
    },
    "claimCheckpoints": [
      {
        "checkpoint": "seed",
        "observedAt": "2026-10-23T21:20:45.861Z",
        "sessionId": "fdd30943-17de-43fa-bbda-eb50f1b1a5ec",
        "lifecycleRevision": "d3b2b75c-9fb0-46ff-8267-9c650a4f1545",
        "claim": {
          "deliveryRunId": "retained-predecessor-delivery-181768",
          "sourceRunId": "retained-predecessor-source-181768"
        },
        "status": null,
        "abortedLastRun": false,
        "receiptState": null,
        "terminalToolPresent": false,
        "terminalRunCount": 0,
        "seedSourceTerminal": false,
        "replacementSourceTerminal": false,
        "pendingFinalDelivery": false,
        "recoveryRunCount": 0
      },
      {
        "checkpoint": "barrier",
        "observedAt": "2026-10-23T21:20:51.041Z",
        "sessionId": "fdd30943-17de-43fa-bbda-eb50f1b1a5ec",
        "lifecycleRevision": "d3b2b75c-9fb0-46ff-8267-9c650a4f1545",
        "claim": {
          "deliveryRunId": "retained-predecessor-delivery-181768",
          "sourceRunId": "retained-predecessor-source-181768"
        },
        "status": "interrupted",
        "abortedLastRun": true,
        "receiptState": null,
        "terminalToolPresent": false,
        "terminalRunCount": 0,
        "seedSourceTerminal": false,
        "replacementSourceTerminal": false,
        "pendingFinalDelivery": false,
        "recoveryRunCount": 1
      },
      {
        "checkpoint": "afterDecision",
        "observedAt": "2026-10-23T21:20:53.578Z",
        "sessionId": "fdd30943-17de-43fa-bbda-eb50f1b1a5ec",
        "lifecycleRevision": "d3b2b75c-9fb0-46ff-8267-9c650a4f1545",
        "claim": {
          "deliveryRunId": "retained-predecessor-delivery-181768",
          "sourceRunId": "retained-predecessor-source-181768"
        },
        "status": "interrupted",
        "abortedLastRun": true,
        "receiptState": null,
        "terminalToolPresent": false,
        "terminalRunCount": 0,
        "seedSourceTerminal": false,
        "replacementSourceTerminal": false,
        "pendingFinalDelivery": false,
        "recoveryRunCount": 1
      },
      {
        "checkpoint": "afterOriginalTerminal",
        "observedAt": "2026-10-23T21:20:59.755Z",
        "sessionId": "fdd30943-17de-43fa-bbda-eb50f1b1a5ec",
        "lifecycleRevision": "d3b2b75c-9fb0-46ff-8267-9c650a4f1545",
        "claim": {
          "deliveryRunId": "retained-predecessor-delivery-181768",
          "sourceRunId": "retained-predecessor-source-181768"
        },
        "status": "done",
        "abortedLastRun": false,
        "receiptState": null,
        "terminalToolPresent": false,
        "terminalRunCount": 0,
        "seedSourceTerminal": false,
        "replacementSourceTerminal": false,
        "pendingFinalDelivery": false,
        "recoveryRunCount": 0
      }
    ],
    "runtimeAdmissionObservations": [
      {
        "observedAt": "2026-10-23T21:20:52.803Z",
        "kind": "active_run_injected",
        "reason": "active_run_injected",
        "disposition": null,
        "correctionRunId": "00e5d1d4-7cce-49f1-ad4b-37a33e95453a",
        "activeRunIdMatched": false
      }
    ],
    "barrier": {
      "enteredAt": "2026-10-23T21:20:50.379Z",
      "releasedAt": "2026-10-23T21:20:53.694Z"
    },
    "nativeTasks": [
      {
        "nativeThreadId": "01a16aa3-4556-7841-b989-6d263c457efd",
        "directTaskTurnId": "01a16aa3-45c3-7171-b06e-9a33e56d9572",
        "startedAt": "2026-10-23T21:20:47.559Z",
        "completedAt": "2026-10-23T21:20:59.380Z",
        "gatewayRunIdFromThreadReady": "RETAINED-CLAIM-181768-unchanged-1792790445945-INITIAL",
        "gatewayThreadReadyAt": "2026-10-23T21:20:47.530Z",
        "correctionMarkerRecords": [
          {
            "at": "2026-10-23T21:20:52.722Z",
            "nativeTurnId": "01a16aa3-45c3-7171-b06e-9a33e56d9572",
            "turnAssociation": "last-recorded-turn-context"
          }
        ],
        "relevantNativeCalls": [
          {
            "at": "2026-10-23T21:20:50.196Z",
            "callId": "call_Q4XsP3Sxx3lyeNB7uMJciBvE",
            "itemId": "ctc_07cf35ac78aee595016adbcfb164e487d1a568479feda9fa79",
            "nativeTurnId": "01a16aa3-45c3-7171-b06e-9a33e56d9572",
            "turnAssociation": "last-recorded-turn-context",
            "barrierCommandMatch": true,
            "effectCommandMatch": false,
            "gatewayRunIds": [
              "RETAINED-CLAIM-181768-unchanged-1792790445945-INITIAL"
            ]
          },
          {
            "at": "2026-10-23T21:20:58.449Z",
            "callId": "call_IxHUpVS8W9dXHaChhYZWIbRF",
            "itemId": "ctc_07cf35ac78aee595016adbcfb9b24c87d19645e8d94e42bd5f",
            "nativeTurnId": "01a16aa3-45c3-7171-b06e-9a33e56d9572",
            "turnAssociation": "last-recorded-turn-context",
            "barrierCommandMatch": false,
            "effectCommandMatch": true,
            "gatewayRunIds": [
              "RETAINED-CLAIM-181768-unchanged-1792790445945-INITIAL"
            ]
          }
        ]
      }
    ],
    "originalTaskHasCorrectionMarker": true,
    "originalTaskHasEffectCall": true
  },
  {
    "cell": "head-replacement-2",
    "source": {
      "head": "ed9b83ddacc3ab82b4cc8e165d3878b439c93e7c",
      "tree": "3566004fa1b9ecbf1f6e6a9b6de83ea09c66bbe3",
      "manifestSha256": "f1a87485160de2ecdfe0b20914fefce8924057227bc4d738414350bb22e1aad7",
      "proofInputsSha256": "9f759f4595a059e74275cb033a82f12c3b756583d02b3ac9f617e97a3b009d86"
    },
    "harnessStatus": "incomplete",
    "verdict": "Replacement claim prevents original-execution injection; runtime accepts followup custody.",
    "gateway": {
      "originalRunId": "RETAINED-CLAIM-181768-replacement-1792790898978-INITIAL",
      "correctionRunId": "9fb2912f-f597-408d-98dd-ddef1d8ffa18",
      "initialAgentRpcSentAt": "2026-10-23T21:28:19.036Z",
      "initialAgentRpcAcceptedAt": "2026-10-23T21:28:19.140Z",
      "correctionChatSendAt": "2026-10-23T21:28:25.242Z",
      "correctionQueueMode": "steer",
      "sameAuthenticatedConnection": true,
      "fullSessionMessageSubscriptionAcknowledged": true,
      "terminalEvents": [
        {
          "runId": "RETAINED-CLAIM-181768-replacement-1792790898978-INITIAL",
          "at": "2026-10-23T21:28:30.089Z",
          "phase": "end"
        }
      ],
      "effectToolEvents": []
    },
    "claimCheckpoints": [
      {
        "checkpoint": "seed",
        "observedAt": "2026-10-23T21:28:18.893Z",
        "sessionId": "e20e4059-3d78-4e34-8686-a39c2177f04d",
        "lifecycleRevision": "8f824fa8-88a9-40a8-9992-0b2c3a303fb2",
        "claim": {
          "deliveryRunId": "retained-predecessor-delivery-181768",
          "sourceRunId": "retained-predecessor-source-181768"
        },
        "status": null,
        "abortedLastRun": false,
        "receiptState": null,
        "terminalToolPresent": false,
        "terminalRunCount": 0,
        "seedSourceTerminal": false,
        "replacementSourceTerminal": false,
        "pendingFinalDelivery": false,
        "recoveryRunCount": 0
      },
      {
        "checkpoint": "barrier",
        "observedAt": "2026-10-23T21:28:23.989Z",
        "sessionId": "e20e4059-3d78-4e34-8686-a39c2177f04d",
        "lifecycleRevision": "8f824fa8-88a9-40a8-9992-0b2c3a303fb2",
        "claim": {
          "deliveryRunId": "retained-predecessor-delivery-181768",
          "sourceRunId": "retained-predecessor-source-181768"
        },
        "status": "interrupted",
        "abortedLastRun": true,
        "receiptState": null,
        "terminalToolPresent": false,
        "terminalRunCount": 0,
        "seedSourceTerminal": false,
        "replacementSourceTerminal": false,
        "pendingFinalDelivery": false,
        "recoveryRunCount": 1
      },
      {
        "checkpoint": "replacement",
        "observedAt": "2026-10-23T21:28:24.216Z",
        "sessionId": "e20e4059-3d78-4e34-8686-a39c2177f04d",
        "lifecycleRevision": "8f824fa8-88a9-40a8-9992-0b2c3a303fb2",
        "claim": {
          "deliveryRunId": "replacement-delivery-181768",
          "sourceRunId": "replacement-source-181768"
        },
        "status": "interrupted",
        "abortedLastRun": true,
        "receiptState": null,
        "terminalToolPresent": false,
        "terminalRunCount": 0,
        "seedSourceTerminal": false,
        "replacementSourceTerminal": false,
        "pendingFinalDelivery": false,
        "recoveryRunCount": 1
      },
      {
        "checkpoint": "afterDecision",
        "observedAt": "2026-10-23T21:28:26.192Z",
        "sessionId": "e20e4059-3d78-4e34-8686-a39c2177f04d",
        "lifecycleRevision": "8f824fa8-88a9-40a8-9992-0b2c3a303fb2",
        "claim": {
          "deliveryRunId": "replacement-delivery-181768",
          "sourceRunId": "replacement-source-181768"
        },
        "status": "interrupted",
        "abortedLastRun": true,
        "receiptState": null,
        "terminalToolPresent": false,
        "terminalRunCount": 0,
        "seedSourceTerminal": false,
        "replacementSourceTerminal": false,
        "pendingFinalDelivery": false,
        "recoveryRunCount": 1
      },
      {
        "checkpoint": "afterOriginalTerminal",
        "observedAt": "2026-10-23T21:28:30.444Z",
        "sessionId": "e20e4059-3d78-4e34-8686-a39c2177f04d",
        "lifecycleRevision": "8f824fa8-88a9-40a8-9992-0b2c3a303fb2",
        "claim": {
          "deliveryRunId": "9fb2912f-f597-408d-98dd-ddef1d8ffa18",
          "sourceRunId": "9fb2912f-f597-408d-98dd-ddef1d8ffa18:user"
        },
        "status": null,
        "abortedLastRun": false,
        "receiptState": null,
        "terminalToolPresent": false,
        "terminalRunCount": 1,
        "seedSourceTerminal": false,
        "replacementSourceTerminal": true,
        "pendingFinalDelivery": false,
        "recoveryRunCount": 1
      }
    ],
    "runtimeAdmissionObservations": [
      {
        "observedAt": "2026-10-23T21:28:25.349Z",
        "kind": "deferred-fallback",
        "reason": "reply-owner-ended",
        "disposition": null,
        "correctionRunId": "9fb2912f-f597-408d-98dd-ddef1d8ffa18",
        "activeRunIdMatched": true
      },
      {
        "observedAt": "2026-10-23T21:28:25.550Z",
        "kind": "followup-policy",
        "reason": "runtime_rejected",
        "disposition": "followup-queued",
        "correctionRunId": "9fb2912f-f597-408d-98dd-ddef1d8ffa18",
        "activeRunIdMatched": false
      }
    ],
    "barrier": {
      "enteredAt": "2026-10-23T21:28:23.301Z",
      "releasedAt": "2026-10-23T21:28:26.309Z"
    },
    "nativeTasks": [
      {
        "nativeThreadId": "01a16aaa-2f42-7bd0-b833-86f7961da1c5",
        "directTaskTurnId": "01a16aaa-2fba-7933-ae2b-29de6ca98cbc",
        "startedAt": "2026-10-23T21:28:20.670Z",
        "completedAt": "2026-10-23T21:28:29.948Z",
        "gatewayRunIdFromThreadReady": "RETAINED-CLAIM-181768-replacement-1792790898978-INITIAL",
        "gatewayThreadReadyAt": "2026-10-23T21:28:20.642Z",
        "correctionMarkerRecords": [],
        "relevantNativeCalls": [
          {
            "at": "2026-10-23T21:28:23.117Z",
            "callId": "call_0nJJAFyC8ie1LTUtlepWrsGe",
            "itemId": "ctc_09b92bc655d56cca016adbd1767f2887d192819710d91d856b",
            "nativeTurnId": "01a16aaa-2fba-7933-ae2b-29de6ca98cbc",
            "turnAssociation": "last-recorded-turn-context",
            "barrierCommandMatch": true,
            "effectCommandMatch": false,
            "gatewayRunIds": [
              "RETAINED-CLAIM-181768-replacement-1792790898978-INITIAL"
            ]
          }
        ]
      },
      {
        "nativeThreadId": "01a16aaa-5649-7272-b534-bc4b8d8dc882",
        "directTaskTurnId": "01a16aaa-56cd-7d50-bb9c-1fea3e97cd75",
        "startedAt": "2026-10-23T21:28:30.673Z",
        "completedAt": "2026-10-23T21:28:36.816Z",
        "gatewayRunIdFromThreadReady": null,
        "gatewayThreadReadyAt": null,
        "correctionMarkerRecords": [
          {
            "at": "2026-10-23T21:28:31.087Z",
            "nativeTurnId": "01a16aaa-56cd-7d50-bb9c-1fea3e97cd75",
            "turnAssociation": "last-recorded-turn-context"
          }
        ],
        "relevantNativeCalls": [
          {
            "at": "2026-10-23T21:28:33.539Z",
            "callId": "call_xIKhsHBKl96uogZXwR8G5u05",
            "itemId": "ctc_0ed20a9639bda043016adbd180e6fc87d1b60f4d1a18c2a101",
            "nativeTurnId": "01a16aaa-56cd-7d50-bb9c-1fea3e97cd75",
            "turnAssociation": "last-recorded-turn-context",
            "barrierCommandMatch": true,
            "effectCommandMatch": false,
            "gatewayRunIds": []
          },
          {
            "at": "2026-10-23T21:28:35.602Z",
            "callId": "call_A5H0LRoaC36MpAH8exU8ZcZE",
            "itemId": "ctc_0ed20a9639bda043016adbd1831a2c87d199ff2775d8ffbc16",
            "nativeTurnId": "01a16aaa-56cd-7d50-bb9c-1fea3e97cd75",
            "turnAssociation": "last-recorded-turn-context",
            "barrierCommandMatch": false,
            "effectCommandMatch": true,
            "gatewayRunIds": []
          }
        ]
      }
    ],
    "originalTaskHasCorrectionMarker": false,
    "originalTaskHasEffectCall": false
  },
  {
    "cell": "base-unchanged-1",
    "source": {
      "head": "b19bade1d3ad29533784228947e7a729c70a0961",
      "tree": "1ccbf1776ef34432af86d28a982e3e0fdf44d76e",
      "manifestSha256": "80dc9e230ee823318cd7dc1bc7aa9cc92b89d084e796373f0db10a0616634a7c",
      "proofInputsSha256": "7c22357e3a838991063cb9b700bd26cde12b918cc8ead8d867f2cb66c53aee26"
    },
    "harnessStatus": "completed-observation",
    "verdict": "Unchanged retained claim blocks steering on the base; correction executes in a distinct queued execution.",
    "gateway": {
      "originalRunId": "RETAINED-CLAIM-181768-unchanged-1792791018287-INITIAL",
      "correctionRunId": "feed144f-4281-438c-878f-6b2eef7eb0ea",
      "initialAgentRpcSentAt": "2026-10-23T21:30:18.335Z",
      "initialAgentRpcAcceptedAt": "2026-10-23T21:30:18.434Z",
      "correctionChatSendAt": "2026-10-23T21:30:24.461Z",
      "correctionQueueMode": "steer",
      "sameAuthenticatedConnection": true,
      "fullSessionMessageSubscriptionAcknowledged": true,
      "terminalEvents": [
        {
          "runId": "RETAINED-CLAIM-181768-unchanged-1792791018287-INITIAL",
          "at": "2026-10-23T21:30:29.664Z",
          "phase": "end"
        },
        {
          "runId": "feed144f-4281-438c-878f-6b2eef7eb0ea",
          "at": "2026-10-23T21:30:37.000Z",
          "phase": "end"
        }
      ],
      "effectToolEvents": [
        {
          "gatewayRunId": "feed144f-4281-438c-878f-6b2eef7eb0ea",
          "toolCallId": "exec-8c783feb-86bf-433e-9dd4-c61a50125379",
          "startAt": "2026-10-23T21:30:35.957Z",
          "commandMatchesEffect": true,
          "resultAt": "2026-10-23T21:30:35.974Z",
          "status": "completed"
        }
      ]
    },
    "claimCheckpoints": [
      {
        "checkpoint": "seed",
        "observedAt": "2026-10-23T21:30:18.204Z",
        "sessionId": "651a734f-9640-4a4a-9fe2-d16a62598bc8",
        "lifecycleRevision": "98756c4f-8c3a-41fa-bd35-88d012e27591",
        "claim": {
          "deliveryRunId": "retained-predecessor-delivery-181768",
          "sourceRunId": "retained-predecessor-source-181768"
        },
        "status": null,
        "abortedLastRun": false,
        "receiptState": null,
        "terminalToolPresent": false,
        "terminalRunCount": 0,
        "seedSourceTerminal": false,
        "replacementSourceTerminal": false,
        "pendingFinalDelivery": false,
        "recoveryRunCount": 0
      },
      {
        "checkpoint": "barrier",
        "observedAt": "2026-10-23T21:30:23.384Z",
        "sessionId": "651a734f-9640-4a4a-9fe2-d16a62598bc8",
        "lifecycleRevision": "98756c4f-8c3a-41fa-bd35-88d012e27591",
        "claim": {
          "deliveryRunId": "retained-predecessor-delivery-181768",
          "sourceRunId": "retained-predecessor-source-181768"
        },
        "status": "interrupted",
        "abortedLastRun": true,
        "receiptState": null,
        "terminalToolPresent": false,
        "terminalRunCount": 0,
        "seedSourceTerminal": false,
        "replacementSourceTerminal": false,
        "pendingFinalDelivery": false,
        "recoveryRunCount": 1
      },
      {
        "checkpoint": "afterDecision",
        "observedAt": "2026-10-23T21:30:25.438Z",
        "sessionId": "651a734f-9640-4a4a-9fe2-d16a62598bc8",
        "lifecycleRevision": "98756c4f-8c3a-41fa-bd35-88d012e27591",
        "claim": {
          "deliveryRunId": "retained-predecessor-delivery-181768",
          "sourceRunId": "retained-predecessor-source-181768"
        },
        "status": "interrupted",
        "abortedLastRun": true,
        "receiptState": null,
        "terminalToolPresent": false,
        "terminalRunCount": 0,
        "seedSourceTerminal": false,
        "replacementSourceTerminal": false,
        "pendingFinalDelivery": false,
        "recoveryRunCount": 1
      },
      {
        "checkpoint": "afterOriginalTerminal",
        "observedAt": "2026-10-23T21:30:29.884Z",
        "sessionId": "651a734f-9640-4a4a-9fe2-d16a62598bc8",
        "lifecycleRevision": "98756c4f-8c3a-41fa-bd35-88d012e27591",
        "claim": {
          "deliveryRunId": "feed144f-4281-438c-878f-6b2eef7eb0ea",
          "sourceRunId": "feed144f-4281-438c-878f-6b2eef7eb0ea:user"
        },
        "status": null,
        "abortedLastRun": false,
        "receiptState": null,
        "terminalToolPresent": false,
        "terminalRunCount": 1,
        "seedSourceTerminal": true,
        "replacementSourceTerminal": false,
        "pendingFinalDelivery": false,
        "recoveryRunCount": 1
      },
      {
        "checkpoint": "afterFollowupTerminal",
        "observedAt": "2026-10-23T21:30:37.332Z",
        "sessionId": "651a734f-9640-4a4a-9fe2-d16a62598bc8",
        "lifecycleRevision": "98756c4f-8c3a-41fa-bd35-88d012e27591",
        "claim": {
          "deliveryRunId": null,
          "sourceRunId": null
        },
        "status": "done",
        "abortedLastRun": false,
        "receiptState": null,
        "terminalToolPresent": false,
        "terminalRunCount": 2,
        "seedSourceTerminal": true,
        "replacementSourceTerminal": false,
        "pendingFinalDelivery": false,
        "recoveryRunCount": 0
      }
    ],
    "runtimeAdmissionObservations": [
      {
        "observedAt": "2026-10-23T21:30:24.567Z",
        "kind": "deferred-fallback",
        "reason": "reply-owner-ended",
        "disposition": null,
        "correctionRunId": "feed144f-4281-438c-878f-6b2eef7eb0ea",
        "activeRunIdMatched": true
      },
      {
        "observedAt": "2026-10-23T21:30:24.768Z",
        "kind": "followup-policy",
        "reason": "runtime_rejected",
        "disposition": "followup-queued",
        "correctionRunId": "feed144f-4281-438c-878f-6b2eef7eb0ea",
        "activeRunIdMatched": false
      }
    ],
    "barrier": {
      "enteredAt": "2026-10-23T21:30:22.746Z",
      "releasedAt": "2026-10-23T21:30:25.553Z"
    },
    "nativeTasks": [
      {
        "nativeThreadId": "01a16aac-0104-7770-8cf1-a695bce74c6a",
        "directTaskTurnId": "01a16aac-0189-75b1-a55a-8c3e01df6902",
        "startedAt": "2026-10-23T21:30:19.918Z",
        "completedAt": "2026-10-23T21:30:29.547Z",
        "gatewayRunIdFromThreadReady": "RETAINED-CLAIM-181768-unchanged-1792791018287-INITIAL",
        "gatewayThreadReadyAt": "2026-10-23T21:30:19.888Z",
        "correctionMarkerRecords": [],
        "relevantNativeCalls": [
          {
            "at": "2026-10-23T21:30:22.562Z",
            "callId": "call_3TSswxmYAYXWiFDaKobOVEUi",
            "itemId": "ctc_0343ca2eb813e0a1016adbd1edee8487d1a7ab9a1b84892630",
            "nativeTurnId": "01a16aac-0189-75b1-a55a-8c3e01df6902",
            "turnAssociation": "last-recorded-turn-context",
            "barrierCommandMatch": true,
            "effectCommandMatch": false,
            "gatewayRunIds": [
              "RETAINED-CLAIM-181768-unchanged-1792791018287-INITIAL"
            ]
          }
        ]
      },
      {
        "nativeThreadId": "01a16aac-295f-73a2-93ab-d7fb11b22dd7",
        "directTaskTurnId": "01a16aac-29d9-7c40-94fe-3cd5edd2ef39",
        "startedAt": "2026-10-23T21:30:30.237Z",
        "completedAt": "2026-10-23T21:30:36.916Z",
        "gatewayRunIdFromThreadReady": "feed144f-4281-438c-878f-6b2eef7eb0ea",
        "gatewayThreadReadyAt": "2026-10-23T21:30:30.216Z",
        "correctionMarkerRecords": [
          {
            "at": "2026-10-23T21:30:30.672Z",
            "nativeTurnId": "01a16aac-29d9-7c40-94fe-3cd5edd2ef39",
            "turnAssociation": "last-recorded-turn-context"
          }
        ],
        "relevantNativeCalls": [
          {
            "at": "2026-10-23T21:30:33.876Z",
            "callId": "call_Hq5tT13bBx6BaLDAyWGi1lhh",
            "itemId": "ctc_0a5a007faa000ce5016adbd1f92ef487d1ad995e7e1cfdf0ef",
            "nativeTurnId": "01a16aac-29d9-7c40-94fe-3cd5edd2ef39",
            "turnAssociation": "last-recorded-turn-context",
            "barrierCommandMatch": true,
            "effectCommandMatch": false,
            "gatewayRunIds": [
              "feed144f-4281-438c-878f-6b2eef7eb0ea"
            ]
          },
          {
            "at": "2026-10-23T21:30:35.827Z",
            "callId": "call_8tC7pUXxgJDJIOwvZBMGbHDH",
            "itemId": "ctc_0a5a007faa000ce5016adbd1fb271c87d1b92f88bef0ff3622",
            "nativeTurnId": "01a16aac-29d9-7c40-94fe-3cd5edd2ef39",
            "turnAssociation": "last-recorded-turn-context",
            "barrierCommandMatch": false,
            "effectCommandMatch": true,
            "gatewayRunIds": [
              "feed144f-4281-438c-878f-6b2eef7eb0ea"
            ]
          }
        ]
      }
    ],
    "originalTaskHasCorrectionMarker": false,
    "originalTaskHasEffectCall": false
  }
]
Inspected synthetic screenshots

Candidate: original execution consumed the correction. The recorded failed-tool indicator is preserved; successful effect attribution comes from the correlated records above.

Candidate: original execution consumed the correction. The recorded failed-tool indicator is preserved; successful effect attribution comes from the correlated records above.

Candidate: replacement claim caused actual followup queue acceptance, visible as a queued input.

Candidate: replacement claim caused actual followup queue acceptance, visible as a queued input.

Base: original response finished first; the correction then ran in a separately correlated execution.

Base: original response finished first; the correction then ran in a separately correlated execution.

Download the sanitized evidence JSON · Artifact manifest. These download URLs expire October 30, 2026; the essential records above remain on GitHub. Evidence JSON SHA256: eaea1fb7163b313757975e7d645aea13f06b4c11e96844b96da3cf652160d941.

@joshavant

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 23, 2026
@joshavant
joshavant merged commit 3de0f00 into openclaw:main Oct 23, 2026
164 of 169 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 24, 2026
…nclaw#181768)

* fix(sessions): steer admitted runs beside retained recovery claims

* test(sessions): assert followup custody after unavailable steering

---------

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

Labels

P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S 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