Skip to content

fix: continue unfinished tool work without a saved plan - #208392

Merged
roboclaw-bot merged 6 commits into
mainfrom
openclaw/briny-crab-a42ee3
Nov 29, 2026
Merged

roboclaw-bot merged 6 commits into
mainfrom
openclaw/briny-crab-a42ee3

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

A user can assign work without starting a Goal or saving a checklist. After using tools, the built-in runner could accept a progress report as its final answer even when part of the assignment was untouched.

User Impact

Human-requested tool work gets one completion check before ending with a visible reply. Text-only answers are unchanged. Already-completed tool work can incur one extra model call.

Why This Change Was Made

Reuse the same-turn check and the current tool results. It does not create a Goal or replay the original actions. The child-settlement check from #208391 stays in place; both paths share the same one-shot limit.

Evidence

All 18 terminal-loop tests passed locally on the combined code. One scripted model uses the first tool result to finish the second repair without repeating the first. Another finishes an independent repair after a child settles with optional reply delivery. These tests exercise the runner, not live-model behavior. Targeted lint and formatting passed on both files.

Contributor: @VACInc

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 29, 2026 15:37
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: 51a55760-d1b4-87b9-bcf2-26b86a869d51
@clawsweeper

clawsweeper Bot commented Nov 29, 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.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XS labels Nov 29, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:other This issue has meaningful maintainer-visible impact outside the owned taxonomy. labels Nov 29, 2026
roboclaw-bot and others added 3 commits November 29, 2026 15:42
Worked on by:
- @VACInc

Co-authored-by: VACInc <[email protected]>
OpenClaw-Publication: 010fa350-0457-80cb-b4b4-4a75fdd07dee
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

Extend the existing one-shot completion check to human-requested tool work without a saved plan or Goal.

Example: A user requests a deployment check and an independent repair without saving a plan.

  • Before: The agent can report that deployment needs approval and stop before making the independent repair.
  • After: The agent gets one same-turn opportunity to continue the independent repair using its existing results.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, worthwhile patch with no actionable findings; confidence is limited to source inspection and reported scripted-runner validation, with exact-head CI still running.
Proof confidence 🦐 gold shrimp (3/6) The supplied evidence exercises the production session, terminal callback, tool execution, and payload builder with scripted provider responses; it supports runner control flow but cannot establish live-model compliance, and the contributor proof exemption applies.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

The scores reflect the reviewer's assessment. Real behavior proof is not required for maintainer- or bot-authored pull requests.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: An agent can stop after reporting partial progress while independently actionable work from the user's assignment remains untouched.
Reason: The maintainer-authored direction addresses a concrete completion gap using existing machinery and explicitly accepts the bounded extra model call.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR addresses a distinct completion gap still present on current main, and review found no actionable defect.

Reviewed head: 6e582fbc5307939eb5115350939b0afab213fa32

Before merge

None.

Findings

None.

Agent review details

How this fits together

The embedded runner evaluates a proposed terminal reply after tool execution and can queue one follow-up within the existing run before terminal delivery.

flowchart TD
  A[Human assignment] --> B[Agent session and tools]
  B --> C[Current run terminal event]
  C --> D[Completion eligibility check]
  D --> E[One same-turn follow-up]
  E --> B
  D --> F[Terminal reply delivery]
Loading

Technical review

Best possible solution:

Keep the new eligibility condition in the existing terminal owner with its shared one-shot budget and preserved handoff safeguards.

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

Current-main source skips completion checking when neither an unfinished plan nor child settlement exists; the added scripted session exercises that precise path, but no independent execution was performed during this read-only review.

Is this the best way to solve the issue?

This is a focused extension of the existing completion mechanism, with no new state owner, replay path, configuration, or persisted format.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Completion eligibility changes intended behavior with a stated reason (3ba0a0b: Give an unfinished saved plan one same-prompt reconsideration while retaining completed effects and terminal safeguards.)
  • Child settlement and finalization exclusion keeps the original intent (b1f5380: Check the original assignment after child settlement even when reply delivery is optional; isolated settled-tool finalization remains excluded.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Raw commit 3ba0a0b adds src/agents/embedded-agent-runner/run/attempt-stream-prepare.ts:290 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3ba0a0b23761; files: src/agents/embedded-agent-runner/run/attempt-stream-prepare.ts)
  • Peter Steinberger: Raw commit 05010ed adds src/agents/embedded-agent-runner/run/attempt-stream-prepare.ts:153 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 05010ed700c7; files: src/agents/embedded-agent-runner/run/attempt-stream-prepare.ts)

PR surface

Source +3, Tests +31. Total +34 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 8 5 +3
Tests 1 31 0 +31
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 39 5 +34

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-29T15:57:53.605Z sha fa1ab8a :: passed. :: none

Reviewed November 29, 2026, 11:25 AM ET / 16:25 UTC (Revision 2).

Combine child settlement with human-requested tool work in the same one-shot terminal check. Preserve both regression tests.

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

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@roboclaw-bot
roboclaw-bot merged commit e7c6ead into main Nov 29, 2026
128 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/briny-crab-a42ee3 branch November 29, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling impact:other This issue has meaningful maintainer-visible impact outside the owned taxonomy. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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