Repository navigation
fix: human messages queue behind runs with older recovery claims - #181768
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 maintainer review before merge. What this changesAllow 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”.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway 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]
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +37, Tests +55. Total +92 across 6 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
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 (1 earlier review cycle)
Reviewed October 23, 2026, 5:43 PM ET / 21:43 UTC (Revision 2). |
|
The real Control UI → Gateway → native-worker comparison supports the retained-claim fix on
Each cell used fresh isolated AWS state. Initial work entered through the rendered Control UI Debug 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 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 screenshotsCandidate: 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. 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: |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…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]>



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 baseb19bade1d3ad29533784228947e7a729c70a0961. Correlated runtime records, screenshots, and sanitized artifacts.reply-owner-ended→followup-queued; correction executes afterward in a separately mapped native task.active_run_injected; correction and successful effect occur within the original native task before completion.These are constructed cases using isolated AWS state, the rendered Debug
agentform 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.
deferred, expectedprepared) 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.openclaw/ci-gate. The separately diagnosed Barnacle auto-response failure reads missingcontext.repo.ownerin 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
The test-only correction accounts for +15/-15. The evidence update changes no source or tests.