Skip to content

fix(subagents): prevent completed requester replay after delivery failure - #85308

Merged
fuller-stack-dev merged 5 commits into
openclaw:mainfrom
DolencLuka:fix/subagent-visible-delivery-parent-wake
Sep 15, 2026
Merged

fuller-stack-dev merged 5 commits into
openclaw:mainfrom
DolencLuka:fix/subagent-visible-delivery-parent-wake

Conversation

@DolencLuka

@DolencLuka DolencLuka commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Prevent a completed requester from running tools again when its subagent completion turn omits required message-tool delivery evidence. This updates DolencLuka's original fix to the maintained subagent owners and preserves the contributor's original commit ancestry.

  • Classify a completed missing-message receipt as a permanent delivery failure; do not fall through to another requester execution.
  • Atomically retain the recoverable suspended completion and task projection at the result callback, before the announce tail finishes.
  • Fence ordinary settle wakes, including wakes delayed in asynchronous admission and persisted wakes after restart.
  • Preserve accepted/in-flight/yielded handoffs, genuine yield-batch work, the payload, and explicit retry/dismissal.
  • Keep payload_json authoritative. No schema, dependency, public API, message-tool bypass, retention policy, or sibling startup-recovery change.

Reproduction and observed fix

Qualification uses isolated, no-role AWS Crabbox with no credential hydration. Product source was pinned to e53f50fbecad54000a499602062738794e586700, then overlaid with this candidate. Final publication binds every changed file to the qualified/reviewed afterimage. The final mock type annotations/formatting preserve assertions. A subsequent consolidation of duplicated handoff guards preserves the original conditions and branch order; it received its own independent review and focused branch qualification. Exact-head hosted CI and native preparation are separate required gates.

Scenario Unmodified production baseline Fixed observation
Lifecycle result callback while announce tail is held Two regressions failed: delivery still pending at the callback Suspended permanent failure and retained payload already durable; task execution succeeded, terminal outcome blocked, delivery failed
Direct delivery and legitimate pending controls Missing-message terminal classification and unresolved-yield assertions failed; accepted/in-flight controls passed All four selected cases passed; completed work cannot fall through, genuine pending work is preserved
Real Gateway requester tool and restart Requester performed the append, but SQLite delivery stayed pending instead of suspended One real exec append; suspended delivery, retained child result/payload; SQLite reopen and shipped Gateway restart with explicit follow-up do not repeat the effect
Explicit retry and dismissal Existing recovery controls retained Both remain available after lifecycle-produced suspension and reopen
Wake delayed on admission Ordering gap covered by lifecycle regression Recheck suppresses stale ordinary wake; a genuine yield batch remains allowed

Inspectable scenario result

Fixed Gateway broker run run_cf6a217447d7 on lease cbx_f2ddde34944b returned exit 0. Vitest report: 1 passed, 0 failed, assertion duration 15.729 seconds. These are the executed scenario assertions, not a separate simulation:

requester tool: real exec appends "effect\n" to replay-effects.txt
child: execution terminal, outcome ok, result CHILD_REPLAY_RESULT retained
delivery: suspended / permanent_failure / message_tool_delivery_missing
payload: retained; ordinary requesterSettleWake absent
model fixture failures: []
requester effect count before restart: 1
SQLite close/reopen: delivery unchanged
shipped Gateway restart + explicit follow-up: success
requester effect count after restart: 1
file bytes after restart: "effect\n"
retained delivery after restart: unchanged

Source assertions: real Gateway scenario, lifecycle/atomicity/recovery scenarios.

Original distinct focused coverage: 4 lifecycle + 4 direct/pending controls + 1 Gateway = 9 passing cases. Subsequent handoff-consolidation qualification: 50 passed, 0 failed in the selected direct/pending/settled/yielded/failed-continuation cases (overlap is not double-counted). The first fixed lifecycle run had 3 passes and one test-contract failure; only that failed case was rerun after correcting status: succeeded versus terminalOutcome: blocked. Historical failed attempts and zero-selected/fixture failures are retained, not counted as proof. No baseline or lifecycle/Gateway passes were replayed just for integration; the changed handoff branch received the necessary focused requalification.

Required changed-file checks: passed across all 33 declared gates; the retained full run passed 32 and failed only final root-test lint, whose six mechanical issues were corrected and passed targeted root lint/typing. Earlier failed attempts remain recorded. Independent security/source review and test-delta review are scoped-clean. Fresh exact-head CI/ClawSweeper and native LAND verification remain required.

Limits

The deterministic local HTTP model controls the scenario; the requester exec, child lifecycle, SQLite owners, and shipped Gateway restart are real. This is not an authenticated external model/channel delivery or UI test. It proves no repeated requester tool effect for this failure path, not global exactly-once delivery. User-requested retry remains explicitly possible and carries existing duplicate-risk semantics.

Release-note impact

Subagent completions that finish requester execution without required message-tool evidence stay recoverably blocked instead of replaying requester tools automatically. Credit: DolencLuka. CHANGELOG.md remains release-owned and untouched.

Historical contributor description and proof (original head 44d14a3; not current-head execution)

Summary

  • classify missing required message-tool evidence as a permanent completion-delivery failure after the requester turn has already run
  • atomically persist the canonical suspended-delivery state before projecting blocked/failed task status
  • prevent restart from replaying requester orchestration while preserving the payload for explicit recovery or dismissal
  • keep payload_json authoritative; do not restore parallel wake/visible fields or typed-column hydration

What problem this solves

For group/channel subagent completions, visible replies must still go through the message tool. If the requester completion turn already ran but omitted required message-tool evidence, replaying that whole turn can repeat arbitrary tools, tasks, or messages.

Current main already owns a canonical suspended permanent_failure state and explicit recovery/dismissal flow. This port latches the missing-delivery result into that owner boundary so restart cannot re-run requester orchestration.

Delivery contract

  • missing required message-tool evidence returns disposition: "permanent_failure"
  • direct dispatch does not fall through to steer/replay for that disposition
  • lifecycle persistence succeeds before non-rollbackable task projection
  • the completion remains suspended with its pending payload retained
  • restart skips automatic requester delivery for the suspended record
  • explicit recovery or dismissal remains available through the existing current-main flow
  • payload_json remains the only authoritative persisted delivery state
  • no direct-send fallback or message-tool policy bypass is added

Evidence

Exact-head restart and SQLite proof

Head: 44d14a34a6da5e2dab59f668288c4a7e5dff5222
Base: aa7cf44c75a123a2724f20b05cd10d66cf7e65f3 (openclaw/openclaw:main)
Relationship: base is an ancestor; branch is one commit ahead.

The exact checkout exercised production delivery, lifecycle, task projection, restart admission, and SQLite persistence code. The restart integration closes and reopens the SQLite-backed registry, then verifies that requester delivery and Gateway delivery are not called again.

Redacted assertion summary:

PASS exactHead=44d14a34a6da5e2dab59f668288c4a7e5dff5222
messageToolMissing disposition=permanent_failure delivered=false
dispatch steerFallback=false
suspend persistedBeforeTaskProjection=true rollbackOnPersistFailure=true
delivery status=suspended disposition=permanent_failure payloadPreserved=true
sqliteRestart requesterReplayCount=0 gatewayDeliveryCount=0
sqliteAuthority payload_json=true typedColumnRevival=false
recovery explicitRetryAvailable=true explicitDiscardAvailable=true
directSendBypass=false

The predecessor head also had an isolated production-Gateway proof of the no-replay failure class. This current-main port changes the persistence owner—not the safety goal—and adds exact-head restart coverage at the canonical suspended-delivery boundary requested in review.

Verification

  • focused exact-head Vitest: 479 passed / 479 across unit-fast and agents-core shards
  • exact-head formatting: passed for all 11 changed files
  • production type check (tsconfig.core.json): passed
  • core-test type check (test/tsconfig/tsconfig.core.test.json): passed
  • git diff --check: passed
  • structured autoreview: no findings, patch correct at 0.97 confidence
  • independent final invariant audit: PASS
  • worktree: clean

Hosted CI for this refreshed head is running and remains authoritative for the full repository matrix.

Review findings addressed

  • Use the canonical suspended delivery state: done; no parallel requester-wake/visible-delivery field model remains.
  • Do not restore typed-column delivery hydration: done; payload_json remains authoritative.
  • Persist before task projection: done; persistence failure rolls the in-memory entry back before external task writes.
  • Prove restart does not replay: done with exact-head SQLite close/reopen coverage.

Scope

  • subagent completion delivery classification
  • suspended-delivery lifecycle ordering
  • focused task/restart/SQLite regression coverage
  • no dependency, schema, direct-channel-send, release-note, or unrelated cleanup change

Prerequisite integration

Signed head 89f6cfd8f3a5cf840742a1c258574507473c03d7 integrates main ed264cc3ca59b51648a366d7ed86df9e58c76390, including canonical fixture repairs #149020 and #149049 by @vincentkoc. All 12 replay-fix afterimage Git blobs and SHA256s are unchanged from the reviewed/published e0155c75 candidate; original contributor ancestry and focused proof are retained.

The preceding CI run 34964825167 recorded the thinking-route auth fixture failure, the model-catalog root-work assertion, and two checkout timeouts before tests. Those failed attempts are preserved, not relabeled as passing. The integrated head requires its own hosted review/CI and native landing gates; no standalone baseline or passing focused proof was replayed for this integration.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels May 22, 2026
@clawsweeper

clawsweeper Bot commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 8:44 AM ET / 12:44 UTC (Revision 24).

ClawSweeper review

What this changes

Prevent completed requester agents from repeating tools after missing required message-delivery evidence, while retaining subagent results for explicit retry or dismissal.

Merge readiness

✅ Ready for maintainer review

This remains a useful, supported fix: current main still permits the reported replay path. The refreshed implementation addresses the prior findings, preserves the reviewed files through integration, and has relevant Gateway restart proof. No blocking patch defect was found.

Priority: P1
Reviewed head: 89f6cfd8f3a5cf840742a1c258574507473c03d7

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with strong production-path restart evidence and no identified blocking defect.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The supplied isolated Gateway run exercises the changed completion owner through a real requester exec, observes durable suspension, and confirms the effect remains singular after SQLite reopen and Gateway restart; inspected source matches the recorded scenario and remains unchanged since the reviewed candidate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The supplied isolated Gateway run exercises the changed completion owner through a real requester exec, observes durable suspension, and confirms the effect remains singular after SQLite reopen and Gateway restart; inspected source matches the recorded scenario and remains unchanged since the reviewed candidate.
Evidence reviewed 8 items Current main still needs the fix: The missing-message result has no permanent-failure disposition, and suspension still unconditionally marks an ordinary requester wake pending.
Latest-release source check: The v2026.9.4 source also returns message_tool_delivery_missing without the permanent-failure disposition. GitHub contents inspection succeeded after the local release-blob read was unavailable.
Atomic suspension and replay fence: The result callback commits suspension through the existing completion store before the announce tail. The store preserves the payload and clears ordinary wakes; scheduling checks the block both before and after asynchronous admission while retaining genuine yield batches.
Findings None None.
Security None None.

How this fits together

Subagent completion delivery passes a child’s result to the requesting agent and records whether the required reply reached its destination. Its lifecycle and SQLite state determine whether work resumes after failure or restart.

flowchart TD
  A[Child finishes] --> B[Requester processes result]
  B --> C{Required delivery confirmed?}
  C -->|Yes| D[Record delivery]
  C -->|Completed without receipt| E[Persist suspended completion]
  E --> F[Block automatic requester replay]
  E --> G[Explicit retry or dismissal]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +75, Tests +657. Total +732 across 12 files.

View PR surface stats
Area Files Added Removed Net
Source 9 97 22 +75
Tests 3 657 0 +657
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 12 754 22 +732

Review metrics

Metric Value Why it matters
Production versus regression coverage Production net +75 lines; tests net +657 lines Production growth implements the durable replay fence; most added code exercises callback ordering, recovery, and real Gateway restart behavior.

Technical review

Best possible solution:

Use the existing suspended-completion owner to retain results, prevent implicit re-execution, and expose recovery through the established Tasks retry and dismissal controls.

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

Yes: a completed requester that omits required message-tool evidence can fall through to another execution, and suspension can schedule another wake on current main. Source inspection and the supplied baseline/after-fix Gateway evidence support this path; no target code was executed during this review.

Is this the best way to solve the issue?

Yes: the patch repairs classification and settlement in the existing owners, preserves legitimate pending work, and keeps explicit recovery without adding another store or delivery mechanism.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P1: Missing delivery evidence can replay an already-completed requester and repeat arbitrary tool effects in an existing subagent workflow.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The supplied isolated Gateway run exercises the changed completion owner through a real requester exec, observes durable suspension, and confirms the effect remains singular after SQLite reopen and Gateway restart; inspected source matches the recorded scenario and remains unchanged since the reviewed candidate.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied isolated Gateway run exercises the changed completion owner through a real requester exec, observes durable suspension, and confirms the effect remains singular after SQLite reopen and Gateway restart; inspected source matches the recorded scenario and remains unchanged since the reviewed candidate.

Evidence

What I checked:

  • Current main still needs the fix: The missing-message result has no permanent-failure disposition, and suspension still unconditionally marks an ordinary requester wake pending. (src/agents/subagents/announce/subagent-announce-direct-delivery.ts:645, c0be265998d0)
  • Latest-release source check: The v2026.9.4 source also returns message_tool_delivery_missing without the permanent-failure disposition. GitHub contents inspection succeeded after the local release-blob read was unavailable. (src/agents/subagents/announce/subagent-announce-direct-delivery.ts:645, 3a9d69db306c)
  • Atomic suspension and replay fence: The result callback commits suspension through the existing completion store before the announce tail. The store preserves the payload and clears ordinary wakes; scheduling checks the block both before and after asynchronous admission while retaining genuine yield batches. (src/agents/subagents/registry/subagent-registry-lifecycle-announce-cleanup.ts:683, 89f6cfd8f3a5)
  • Proof matches the production boundary: The captured PR body, sourceRevision a36d4da5bbe44cb83df340febf6b32931baeb2b6603e5e9f88d844839ca3672d, records isolated Crabbox run run_cf6a217447d7: one real exec append, durable suspended delivery, retained child result, SQLite reopen, and a Gateway restart plus same-session follow-up without another effect. The inspected scenario uses a real Gateway client and production lifecycle with a deterministic HTTP model; it does not claim live external-channel delivery. (test/gateway-completion-replay.e2e.test.ts:35, 89f6cfd8f3a5)
  • Review continuity: Comparison with the previous reviewed head produced no differences under the replay-fix source tree or Gateway scenario. The latest completed review contained no findings; earlier owner-port and wake-suppression concerns are addressed by the current implementation. (89f6cfd8f3a5)
  • Existing recovery contract: Documented task retry creates a new delivery generation from retained results, warns about duplicate delivery, and leaves unrelated parent turns unable to unblock suspended completions. The patch retains this owner, serialization format, retention window, and dismissal operation. Public docs: docs/cli/tasks.md. (docs/cli/tasks.md:90, 89f6cfd8f3a5)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (23 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-07T09:45:20.517Z sha 44d14a3 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-14T20:18:40.660Z sha 44d14a3 :: needs real behavior proof before merge. :: [P1] Port the terminal result to current delivery owners
  • reviewed 2026-08-16T00:25:26.518Z sha 44d14a3 :: needs real behavior proof before merge. :: [P1] Port the terminal result to current delivery owners
  • reviewed 2026-08-18T01:37:39.034Z sha 44d14a3 :: needs real behavior proof before merge. :: [P1] Port permanent-failure handling to current delivery owners
  • reviewed 2026-08-22T12:19:30.701Z sha 44d14a3 :: needs real behavior proof before merge. :: [P1] Port permanent-failure handling to current delivery owners
  • reviewed 2026-08-28T12:47:06.449Z sha 44d14a3 :: needs real behavior proof before merge. :: [P1] Suppress requester wake before suspended-delivery restart
  • reviewed September 5, 2026, 5:01 AM ET / 09:01 UTC sha unknown :: needs real behavior proof before merge. :: [P1] Prevent suspension from starting another completed-requester turn
  • reviewed 2026-09-15T11:50:51.324Z sha e0155c7 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added 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. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. labels May 22, 2026
@clawsweeper

clawsweeper Bot commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

ClawSweeper PR egg

✨ Hatched: 💎 rare Pearl Branchling

Hatch command

Comment @clawsweeper hatch when this PR is hatchable.

Hatchability rules:

  • Merged PRs are hatchable.
  • Open PRs are hatchable when they are status: 👀 ready for maintainer look, status: 🚀 automerge armed, or labeled clawsweeper:automerge.
  • Closed unmerged PRs are hatchable only when one of those hatchable labels is still present in the durable record.

Rarity: 💎 rare.
Trait: stacks clean commits.
Image traits: location branch lighthouse; accessory release bell; palette rose quartz and slate; mood proud; pose sitting proudly on a smooth stone; shell frosted glass shell; lighting gentle morning glow; background miniature CI buoys.
Share on X: post this hatch
Copy: My PR egg hatched a 💎 rare Pearl Branchling in ClawSweeper.

What is this egg doing here?
  • Eggs appear after the PR passes real-behavior proof. It is here for vibes, not verdicts: it does not change labels, ratings, merge decisions, or automation.
  • The shell reacts to review momentum: open follow-up work warms it up, re-review makes it wobble, and a clean final review lets it hatch.
  • Hatchability usually comes from sufficient real-behavior proof, no blocking P0/P1/P2 findings, no security attention needed, and clean correctness. A merged PR is already final, so merge makes the egg hatchable independently.
  • The hatch is seeded from this repository and PR number, so the same PR keeps the same creature; the reviewed head SHA can only change safe visual details.
  • Rarity is just collectible sparkle: 🥚 common, 🌱 uncommon, 💎 rare, ✨ glimmer, and 🌈 legendary.

@openclaw-barnacle openclaw-barnacle Bot added proof: supplied External PR includes structured after-fix real behavior proof. and removed triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels May 22, 2026
@DolencLuka

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels May 22, 2026
@DolencLuka
DolencLuka force-pushed the fix/subagent-visible-delivery-parent-wake branch from 9a7bbc6 to b84c800 Compare May 25, 2026 06:53
@openclaw-barnacle openclaw-barnacle Bot removed the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 25, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels May 25, 2026
@openclaw-barnacle openclaw-barnacle Bot added triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. proof: supplied External PR includes structured after-fix real behavior proof. and removed proof: supplied External PR includes structured after-fix real behavior proof. triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels May 25, 2026
@DolencLuka

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented May 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label May 25, 2026
@clawsweeper

clawsweeper Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@DolencLuka
DolencLuka force-pushed the fix/subagent-visible-delivery-parent-wake branch from 26be1d0 to c58c79a Compare July 13, 2026 07:38
@DolencLuka

Copy link
Copy Markdown
Contributor Author

Final final clean rewrite after latest main movement.

Current head: c58c79aeb8786c375d179c516e9599f9492aae56
Base used locally: d2b382528ea5743c547b53596b0fe83f822636e3

Same narrow 8-file subagent diff. Validation rerun on c58c79a:

  • focused Vitest: 6 files / 418 tests passed
  • tsgo:core: passed
  • tsgo:core:test: passed
  • touched-file oxfmt: passed
  • git diff --check: passed

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 13, 2026
@DolencLuka

Copy link
Copy Markdown
Contributor Author

Updated the PR body for current head c4204261a36aea1a60ffa814666009a33148e40c with the retry-preserving contract and redacted exact-head isolated gateway proof. Hosted CI is green: 73 successful checks, 0 failures. @clawsweeper re-review

@DolencLuka

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@DolencLuka

Copy link
Copy Markdown
Contributor Author

@steipete, could you confirm the intended contract at this boundary before we produce the final runtime proof?

After the requester completion turn has already run without required message-tool evidence, the current PR head 7b3422e2ccc85a43c2885f2999a73fd43220f2d5:

  • records requester wake as delivered exactly once
  • records required visible delivery as terminally failed
  • persists and restores that split outcome without replaying requester orchestration, tools, or messages

The alternative would require a new persisted delivery-only envelope/operation so the visible send can be retried independently.

Is terminal visible-delivery failure acceptable as the narrow replay-safe contract for this PR, or should the patch instead introduce that separate delivery-only retry boundary? Once the direction is confirmed, we will attach redacted exact-head gateway/restart proof matching the chosen contract.

@clawsweeper

clawsweeper Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

@DolencLuka thanks for the PR. ClawSweeper is still waiting on real behavior proof before this can move forward.

Useful proof can be a screenshot, short video, terminal output, copied live output, linked artifact, or redacted logs that show the changed behavior after the fix. Please redact private tokens, phone numbers, private endpoints, customer data, and anything else sensitive.

Once proof is added to the PR body or a comment, ClawSweeper or a maintainer can re-check it.

@DolencLuka

Copy link
Copy Markdown
Contributor Author

Refreshed onto current parent main at 623a015928036ffccdc4410a9ee498a3b450d201 with exact head 0f2998afe6617aebae4ce6a36decc06afa45800d. The PR body now includes the redacted exact-head runtime/restart proof, focused test results, changed-file gate, and #101248 compatibility boundary.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@DolencLuka

Copy link
Copy Markdown
Contributor Author

Hosted exact-head CI completed with 80 successful checks and 39 intentionally skipped checks. One check-lint runner was canceled after remaining in progress past its workflow timeout; the aggregate openclaw/ci-gate failed only because check-shard=cancelled. No hosted test reported a code failure.

The exact-head local changed-file gate, including lint, formatting, production/test type checks, and repository guards, passed; focused agent tests passed 262/262. As an external contributor I cannot rerun the parent-repo Actions job, so a maintainer rerun of the canceled lint/check-shard is the remaining CI action. No code or branch change was made in response to the runner cancellation.

@DolencLuka

DolencLuka commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor Author

Ported the fix onto current openclaw/openclaw:main using the canonical suspended permanent_failure delivery state. Exact head is 44d14a34a6da5e2dab59f668288c4a7e5dff5222; the branch is now mergeable. The PR body contains refreshed exact-head restart/SQLite evidence and verification (479/479 focused tests, both core type checks, formatting, diff check, and clean autoreview). No parallel wake/visible fields or typed-column hydration remain.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

…lure

Integrate DolencLuka’s completion-replay repair with the current atomic completion owner. Persist recoverable missing-message delivery failure before the announce tail, fence ordinary and delayed wakes, retain genuine yielded work, and preserve explicit retry/dismissal. Includes real requester tool, SQLite reopen and shipped Gateway restart regression. Original contributor ancestry retained; exact-head hosted/native gates remain required.
@fuller-stack-dev

Copy link
Copy Markdown
Member

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: supplied External PR includes structured after-fix real behavior proof. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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.

3 participants