openclaw - 💡(How to fix) Fix [Bug] Runtime event wording causes premature success claims in subagent flows [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#44471Fetched 2026-04-08 00:46:30
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

Fix Action

Fix / Workaround

  • Session: 2026-03-12 mitigation applied locally
  • Workspaces affected: reasoning, coder, writer
  • Pattern: subagent completion != external objective verification
RAW_BUFFERClick to expand / collapse

Problem

The runtime currently emits an internal completion event with wording "ready for user delivery" which agents interpret as a signal that the task is complete and ready to be reported to the user.

However, in subagent workflows, this creates a critical bug where:

  • "subagent completed successfully" is treated as equivalent to "external objective completed"
  • Agents respond "done/ready/complete" without verifying if external resources (GitHub, deployments, etc.) were actually modified
  • Textual results from subagents are treated as confirmation rather than input material

Affected Files

The following runtime bundles contain the misleading event wording:

  1. compact-1mmJ_KWL.js - Line containing "ready for user delivery"
  2. pi-embedded-D6PpOsxP.js - Similar internal event wording
  3. reply-BCcP6j4h.js - Similar internal event wording

Proposed Fix

Change the event wording from:

  • "ready for user delivery"

To:

  • "available for review"

And add explicit instruction:

  • "Verify whether the result is only text/analysis or if the external target was actually applied and verified. Do not say done/ready/complete without evidence of final state."

Impact

This mitigates the "premature success / missing final verification" pattern where agents incorrectly claim completion after subagent returns, without validating:

  • Whether the subagent's scope included actual external changes
  • Whether GitHub issues/PRs were actually modified
  • Whether deployments were actually triggered

Related

  • Session: 2026-03-12 mitigation applied locally
  • Workspaces affected: reasoning, coder, writer
  • Pattern: subagent completion != external objective verification

extent analysis

Fix Plan

To address the issue, we need to update the event wording and add explicit instructions for verification. Here are the steps:

  • Update the event wording in the affected files:
    • compact-1mmJ_KWL.js: Replace "ready for user delivery" with "available for review" on the specified line.
    • pi-embedded-D6PpOsxP.js and reply-BCcP6j4h.js: Replace similar internal event wording with "available for review".
  • Add explicit instruction to verify the result:
    • Check if the result is only text/analysis or if the external target was actually applied and verified.
    • Do not claim completion without evidence of final state.

Example code snippet:

// Before
emit('completion', 'ready for user delivery');

// After
emit('completion', 'available for review');
// Add verification step
if (result.type === 'text' || result.type === 'analysis') {
  // Verify external target if applicable
  if (result.externalTarget) {
    // Check if external target was modified
    if (verifyExternalTarget(result.externalTarget)) {
      // Claim completion with evidence of final state
      emit('completion', 'done');
    } else {
      // Do not claim completion
      emit('warning', 'External target not verified');
    }
  } else {
    // Handle text/analysis result
    emit('result', result);
  }
} else {
  // Handle other result types
  emit('result', result);
}

// Example verification function
function verifyExternalTarget(target) {
  // Implement logic to verify external target (e.g., GitHub, deployments)
  // Return true if verified, false otherwise
}

Verification

To verify that the fix worked:

  • Test the updated code with different scenarios (e.g., text/analysis results, external targets).
  • Check that the event wording has been updated correctly.
  • Verify that the explicit instruction to verify the result is being followed.

Extra Tips

  • Make sure to update all affected files and test thoroughly to ensure the fix is applied correctly.
  • Consider adding additional logging or monitoring to detect similar issues in the future.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug] Runtime event wording causes premature success claims in subagent flows [1 participants]