Skip to content

fix(subagents): preserve follow-through after private completion - #149073

Merged
roboclaw-bot merged 2 commits into
openclaw:mainfrom
VACInc:fix/private-completion-follow-through
Sep 15, 2026
Merged

roboclaw-bot merged 2 commits into
openclaw:mainfrom
VACInc:fix/private-completion-follow-through

Conversation

@VACInc

@VACInc VACInc commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

A parent can silently abandon an unfinished user request after receiving a private subagent completion, despite having promised to report back.

User Impact

The parent is reminded to finish the original request and explicitly send any owed update through a permitted messaging tool. Automatic channel delivery remains disabled; intentional silence remains available when nothing is owed. No configuration or permission changes.

Why This Change Was Made

Reuse the existing completion-outcome instruction in the private handoff and explain that its final reply does not reach the user. This fixes misleading prompt guidance, not lost-event delivery. The incident investigation found a received child result followed by immediate silence while work and an update remained owed.

Evidence

Reviewed head: 098408140763d211b0e91343477261611eb476b6. The one-line correction is unchanged from the original contributor commit; the branch also merges upstream through #149049 to fix six pre-existing CI fixture failures without replacing contributor ancestry.

  • Real-model, source-bound prompt/tool-loop proof: four cases passed—finish remaining work then send the owed permitted update; send an already-owed update; remain silent when nothing is owed; make no messaging call when messaging is denied/unavailable. Tools and inbox receipts were synthetic, not production Gateway/live-channel delivery. This is observed behavior, not a reliability guarantee across models.
  • Focused announce/delivery tests: 330 passed on unchanged source. The six failing upstream auth-fixture tests pass after synchronization.
  • node scripts/check-changed.mjs -- src/agents/subagents/announce/subagent-announce.ts passed on the reviewed head (formatting, core/test typechecks, lint, dead-export scans, and owner guards).
  • Independent autoreview: no actionable P0–P2 findings in the original exact patch; the refreshed head has the same one-line PR delta.
  • Verification details and limitations. Exact-head CI passed: 168 jobs, 151 successful and 17 skipped, with no failed jobs. Updated ClawSweeper review marks this head ready with no remaining findings and accepts the bounded model-run evidence.

Proof was initially skipped when this PR was created; the subsequent completion request authorized the review and checks recorded above. No production Gateway was changed.

Original patch by @VACInc.

@clawsweeper

clawsweeper Bot commented Sep 15, 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.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XS maintainer Maintainer-authored PR labels Sep 15, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 9:20 AM ET / 13:20 UTC (Revision 2).

ClawSweeper review

What this changes

Updates private subagent completion guidance to preserve responsibility for unfinished work and send owed user updates through available, permitted messaging tools.

Merge readiness

✅ Ready for maintainer review

The correction remains useful because current main retains the misleading private-completion guidance. No actionable correctness or security findings remain; the new model-run evidence addresses the previous review’s follow-through concern.

Priority: P2
Reviewed head: 098408140763d211b0e91343477261611eb476b6

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable prompt correction with no actionable findings and useful, accurately bounded model-run evidence.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR, and authority is unchanged. The source-matched real-model run addresses the prior follow-through request, with synthetic tools and receipts rather than production Gateway or live-channel delivery.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR, and authority is unchanged. The source-matched real-model run addresses the prior follow-through request, with synthetic tools and receipts rather than production Gateway or live-channel delivery.
Evidence reviewed 8 items Verified introduced change and review continuity: The merge-base-to-head diff changes only the private-completion instruction. Comparing the previously reviewed head with the current head shows no change to this module; the verified test merge likewise contains only this instruction change relative to its main parent.
Current main still needs the correction: Fetched main still says that no external response is required and offers silence without the shared outcome-completion instruction. The surrounding ordinary-completion branches already use that shared instruction.
Existing private-completion contract: The documentation explicitly permits parent-selected messaging while disabling automatic delivery of child results, parent finals, and media. The patch follows this existing contract rather than introducing another delivery mode.
Findings None None.
Security None None.

How this fits together

Subagent completion announcements return a worker’s result to the parent agent. Private completions start an internal parent turn, where the parent decides whether to continue work, send an authorized update, or remain silent.

flowchart TD
  A[Child finishes work] --> B[Private completion announcement]
  B --> C[Parent reviews requested outcome]
  C --> D[Continue unfinished work]
  C --> E[Send owed update through permitted tool]
  C --> F[Remain silent when nothing is owed]
  D --> C
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source 0. Total 0 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 1 0

Review metrics

None.

Technical review

Best possible solution:

Keep private transport semantics intact while applying the existing outcome-completion guidance to the parent’s internal review turn.

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

Source inspection confirms the conflicting instruction on current main, but there is no deterministic reproduction of model abandonment. The supplied after-change model run supports the mitigation.

Is this the best way to solve the issue?

Yes. Reusing the existing outcome instruction repairs the misleading guidance at its producer while preserving intentional silence and existing delivery permissions.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded correction to misleading guidance that can leave delegated requests unfinished.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR, and authority is unchanged. The source-matched real-model run addresses the prior follow-through request, with synthetic tools and receipts rather than production Gateway or live-channel delivery.

Evidence

What I checked:

Likely related people:

  • Jason (Json): Raw commit b90cc02 adds src/agents/subagents/completion/subagent-completion-instructions.ts:2 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b90cc020cada; files: src/agents/subagents/completion/subagent-completion-instructions.ts)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: 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 (1 earlier review cycle)
  • reviewed 2026-09-15T12:36:27.604Z sha c30757e :: blocked before merge. :: none

@roboclaw-bot roboclaw-bot self-assigned this Sep 15, 2026
Merge upstream through ed264cc to include the already-landed runtime preparation auth fixture fix (openclaw#149049), preserving the contributor branch ancestry.

Co-authored-by: VACInc <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

After-change verification for 098408140763d211b0e91343477261611eb476b6 (the original one-line patch is unchanged):

  • A real-model prompt-level run used the exact private-completion instruction extracted from the source, including the shared outcome instruction. With unfinished verification, the model called the synthetic verification tool, received its successful result, sent the owed update through the permitted synthetic messaging tool, then returned NO_REPLY. With only an update owed it sent the update, then returned NO_REPLY. With nothing owed, or messaging unavailable/denied, it made no messaging call. Private child markers were absent from sent text. All four cases passed.
  • This is observed model/tool-loop behavior with synthetic task and inbox receipts, not production Gateway or live-channel delivery proof, and not a reliability guarantee across models. Source SHA-256: b7b870c314879118744bf65b4955e9fc8fbb26d9fbbb5312bbe3abc2d5a1971f.
  • node scripts/run-vitest.mjs src/agents/subagents/announce/subagent-announce.test.ts src/agents/subagents/announce/subagent-announce-delivery.test.ts: 330 tests passed on the original head. Their source and the prompt module are unchanged in the refreshed head. Coverage includes intentional silence, private text/media, denied message tools, incomplete handoff, and missing/replaced parents.
  • Independent autoreview of the original exact patch found no actionable P0–P2 findings. The upstream synchronization is patch-identical relative to its new merge base.
  • Original CI failed six existing auth-fixture cases in runtime-preparation.thinking.test.ts. Merged the already-landed upstream fix fix(test): restore thinking route auth fixtures #149049 without rewriting contributor ancestry; all six now pass locally. New exact-head CI is running; no failing gate is being bypassed.

The mitigation preserves private delivery and existing permissions, while explicitly retaining responsibility for the original outcome and any owed permitted update. @clawsweeper re-review

@roboclaw-bot roboclaw-bot reopened this Sep 15, 2026
@roboclaw-bot
roboclaw-bot merged commit ffecdb1 into openclaw:main Sep 15, 2026
243 of 310 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. 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.

2 participants