Skip to content

fix: prevent false failure warnings after reply retries - #170675

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/fix-final-delivery-retry-carryover-20261012
Oct 13, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/fix-final-delivery-retry-carryover-20261012

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: users receive a response-failure warning after a final reply was already delivered, when a provider retry returns an empty response.

User Impact

User impact: a confirmed final reply stays complete across retries without a duplicate send or misleading failure warning. Progress-only, failed, partial, ambiguous, dry-run, and other-destination sends still require a response; a newly accepted steered input needs its own answer. No configuration changes or migration are required.

Why This Change Was Made

The retry loop now projects the existing reply owner's current-source completion into each attempt before normalization and terminal resolution. It does not treat arbitrary tool side effects as completion or alter replay-safety decisions.

Contributors

Work sessions

Evidence

  • Hermetic integration regression uses the real message-tool settlement, reply operation, retry loop, normalization, and terminal owner. Before the fix: two final-delivery cases failed while seven negative controls passed. After: all nine pass, with one channel send at most.
  • pnpm test src/agents/embedded-agent-runner.source-reply-retry.test.ts --maxWorkers=1: 9 passed, 10.57s Vitest / 42.61s wrapper wall time on the final candidate. The broad CI workflow completed successfully in 740s; per-file CI time was not measured separately.
  • Focused neighboring suites: 274 passed across terminal resolution, attempt results, delivery evidence, message-tool execution, subscription source-reply suppression, and reply-run ownership.
  • Core typecheck and all 28 core-test typecheck graphs passed. Targeted core/test/support lint, formatting, whitespace, native-schema, database-first, media-download, sidecar, import-cycle, webhook, and pairing guards passed.
  • pnpm build: passed (1195.14s), including runtime, SDK declarations, external-plugin artifacts, and Control UI.
  • Independent review: scoped-clean, no actionable P0–P2 findings. Final follow-up was a mechanical test-variable rename for lint.
  • Aggregate check:changed stopped on pre-existing UI unused exports; the exact pinned baseline reproduces the identical production/full-tree findings. Not reported as a green aggregate check. Exact-head broad PR CI completed successfully.

The separately reported second warning was correlated to a different, genuinely empty announcement run, without same-run successful final delivery. This fix is not claimed to repair that separate path. No paid-provider requests, unsolicited channel test messages, production-state changes, deployment, or restart were performed. After explicit landing authorization, the guarded workflow merged the exact reviewed head as d19520a262db90421fa54c208e1033a02a509688; landed composition, main containment, co-author trailers, and native completion were verified.


View the OpenClaw team session

roboclaw-bot and others added 2 commits October 13, 2026 05:04
Project the reply owner’s confirmed final source delivery into each retry attempt without changing replay safety or genuine failure metadata.

Co-authored-by: obviyus <[email protected]>
Co-authored-by: Kimiyu-186 <[email protected]>
Co-authored-by: steipete <[email protected]>
Worked on by:
- @obviyus
- @Kimiyu-186
- @steipete

Co-authored-by: obviyus <[email protected]>
Co-authored-by: Kimiyu-186 <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 2d8b95bc-f028-401c-8a83-bd464850839d
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 13, 2026 05:27
@clawsweeper

clawsweeper Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper reviews are opt-in for maintainers. If a review is required, finish the work and validation first, then comment @clawsweeper review. Please avoid repeated requests while a review is queued or running; agents should not request reviews automatically.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling size: M labels Oct 13, 2026
@roboclaw-bot
roboclaw-bot merged commit d19520a into main Oct 13, 2026
206 of 207 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/fix-final-delivery-retry-carryover-20261012 branch October 13, 2026 05:56
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

steipete added a commit that referenced this pull request Oct 13, 2026
…merge (#171192)

GitHub's statusCheckRollup and mergeStateStatus keep cancelled runs that a
newer run of the same workflow/event/job name superseded on the same head
(pull_request_target lanes such as ClawSweeper Dispatch draft `opened` runs
after `ready_for_review`, and Labeler). After openclaw/ci-gate passes, those
PRs are MERGEABLE/UNSTABLE and --auto-merge admission refused them.

--auto-merge now selects the immediate squash route for MERGEABLE/UNSTABLE
only after one fresh scripts/watch-pr-ci.mjs --completion rollup --once pass
at the exact prepared head exits GREEN. The watcher's classifyRollup stays
the single supersession owner and the pass also requires the attached ci.yml
run to succeed; any unsuperseded failure, hidden or paginated context, missing
run identity, pending check, moved head, or watcher error keeps refusing.

The watcher gains an opt-in --once flag: one attach and one watch observation
without waiting, with --timeout bounding only that pass's evidence reads.

This is a one-shot admission predicate, not a pinned snapshot fact: required
checks stay server-enforced at dispatch, the exact-head mutation pins the
head, and the final stability reread pins the UNSTABLE projection. Pinning
rollup contexts would extend the Octopool-allowlisted landing snapshot and
the retained-outcome schema. Accepted edge case, documented in
merge-admission.md: a new non-required failure on the same head between the
pass and dispatch is not rechecked.

Measured 2026-10-13: 8 of 80 recently merged final heads (e.g. #170738,
#170733, #170675, #170627) had only superseded same-lane cancellations;
classifyRollup classifies all four examples GREEN.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
)

* fix: prevent false failure warnings after reply retries

Project the reply owner’s confirmed final source delivery into each retry attempt without changing replay safety or genuine failure metadata.

Co-authored-by: obviyus <[email protected]>
Co-authored-by: Kimiyu-186 <[email protected]>
Co-authored-by: steipete <[email protected]>

* fix: prevent false failure warnings after reply retries

Worked on by:
- @obviyus
- @Kimiyu-186
- @steipete

Co-authored-by: obviyus <[email protected]>
Co-authored-by: Kimiyu-186 <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 2d8b95bc-f028-401c-8a83-bd464850839d

---------

Co-authored-by: obviyus <[email protected]>
Co-authored-by: Kimiyu-186 <[email protected]>
Co-authored-by: steipete <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
…merge (openclaw#171192)

GitHub's statusCheckRollup and mergeStateStatus keep cancelled runs that a
newer run of the same workflow/event/job name superseded on the same head
(pull_request_target lanes such as ClawSweeper Dispatch draft `opened` runs
after `ready_for_review`, and Labeler). After openclaw/ci-gate passes, those
PRs are MERGEABLE/UNSTABLE and --auto-merge admission refused them.

--auto-merge now selects the immediate squash route for MERGEABLE/UNSTABLE
only after one fresh scripts/watch-pr-ci.mjs --completion rollup --once pass
at the exact prepared head exits GREEN. The watcher's classifyRollup stays
the single supersession owner and the pass also requires the attached ci.yml
run to succeed; any unsuperseded failure, hidden or paginated context, missing
run identity, pending check, moved head, or watcher error keeps refusing.

The watcher gains an opt-in --once flag: one attach and one watch observation
without waiting, with --timeout bounding only that pass's evidence reads.

This is a one-shot admission predicate, not a pinned snapshot fact: required
checks stay server-enforced at dispatch, the exact-head mutation pins the
head, and the final stability reread pins the UNSTABLE projection. Pinning
rollup contexts would extend the Octopool-allowlisted landing snapshot and
the retained-outcome schema. Accepted edge case, documented in
merge-admission.md: a new non-required failure on the same head between the
pass and dispatch is not rechecked.

Measured 2026-10-13: 8 of 80 recently merged final heads (e.g. openclaw#170738,
openclaw#170733, openclaw#170675, openclaw#170627) had only superseded same-lane cancellations;
classifyRollup classifies all four examples GREEN.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant