Skip to content

[Bug]: Premature success in subagent flows - wording and verification fix #44587

Closed as not planned

Description

@Mdx2025

Problem

Internal event wording in OpenClaw runtime contributed to a "premature success / missing final verification" pattern where agents treated "subagent completed successfully" as equivalent to "external objective completed".

Symptoms

  • Agents responding "done/ready/complete" without verifying if external resources (GitHub, deployments) were actually modified
  • Textual subagent results treated as confirmation rather than input
  • False positives in multi-step workflows with subagents

Root Cause

Event wording "ready for user delivery" implied finality without requiring evidence verification. Agents interpreted completion events as sufficient proof of external state change.

Changes Applied

Wording Change

  • From: "ready for user delivery"
  • To: "available for review"

Explicit Instruction Added

"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."

Files Modified

  • dist/compact-1mmJ_KWL.js
  • dist/pi-embedded-D6PpOsxP.js
  • dist/reply-BCcP6j4h.js

Verification

  • Surgical patch applied to 3 compiled bundles
  • openclaw-gateway.service restarted
  • Agents now required to verify real evidence before claiming completion

Result

  • Reduced false positives in subagent workflows (GitHub, deploys, etc.)
  • Agents must verify external state changes before claiming "done"
  • Clearer distinction between analysis output and applied changes

Important

Manual patch on compiled bundles in openclaw/dist/ — will be lost on next update/reinstall. Maintain re-application script post-update.

Related Issues

Environment

  • OpenClaw version: 2026.3.11
  • Affected: All subagent workflows
  • Deployment: systemd service

Activity

  1. clawjasper56 commented on Mar 13, 2026

    @clawjasper56

    Analysis

    This is a documentation/wording issue that you've already addressed with manual bundle patches.

    Note

    The manual patches to compiled bundles will indeed be lost on update. Consider:

    1. Adding this to the source code (not compiled bundles) so it's permanent
    2. Creating a post-install hook to reapply patches

    The wording change and verification instruction are the correct fix - this should be in the source code, not just compiled bundles.

  2. clawsweeper commented on Apr 26, 2026

    @clawsweeper
    Contributor

    Closing this as duplicate or superseded after Codex automated review.

    #44587 duplicates the earlier open bug #44471. Current main still contains and tests the reported "ready for user delivery" wording, so this should not close as implemented; the remaining source fix is already tracked by #44471, with #44472 documenting the same manual bundle patch details.

    What I checked:

    So I’m closing this here and keeping the remaining discussion on the canonical linked item.

    Codex Review notes: model gpt-5.5, reasoning high; reviewed against 1531123d3547.

  3. locked as resolved and limited conversation to collaborators on Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions