Skip to content

improve: simplify agent and command-execution messages - #168709

Merged
RomneyDa merged 11 commits into
mainfrom
improve/plain-language-agent-tools
Oct 13, 2026
Merged

RomneyDa merged 11 commits into
mainfrom
improve/plain-language-agent-tools

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

Independent PR targeting main; no other wording PR needs to merge first. Cleanup index.

Related: #168322

What Problem This Solves

Agent and command-execution messages use avoidable technical shorthand.

User Impact

Execution errors and automation guidance are clearer. Execution, timeout, and approval behavior do not change.

Why This Change Was Made

Keep wording and its existing exact-message consumers together. The no-output timeout expectation now checks the same safe-repeat warning as its producer. Main's removal of the obsolete Agents API attachment test is preserved, as is the current cron guidance; prompt fixtures are regenerated by their owner.

Evidence

  • Latest signed head: f1d6b26fe82b; main integrated through caae050cc10c.
  • The residual scope remains 40 wording files. The sandbox conflict preserves the current main implementation and reapplies only auth ensure failed → auth setup failed.
  • Focused current-source lint and formatting pass (19.199 seconds / 0.199 seconds). Earlier unchanged consumer proof remains historical evidence rather than a new test claim.
  • Exact-head natural CI succeeded. Enforced review/security status is verified separately; CI alone is not a merge-readiness claim.

Proof-only ClawSweeper suggestions remain nonblocking under the maintainer’s instruction unless they identify concrete likely breakage. Required CI, enforced reviews and correctness findings remain in scope.

Earlier validation and repair history
  • Five focused existing consumer suites pass: 92 tests. Scoped lint, formatting, prompt-snapshot checks, type checks, and whitespace checks pass.
  • On the prior prepared correction, the local changed gate stopped at inherited Knip unused-export reports in 77 unchanged main files. Its later global guards were not run; this is not a passing full-gate result. Required hosted CI remains separate.
  • The original independent scope is retained, with the existing timeout assertion added beside its producer and the main-identical cron description removed from the residual diff.

Review follow-up

The shared PR-wrapper inventory repair from main (via #169547) is incorporated through a signed merge. The inventory fix itself is not part of this wording PR’s residual diff; new-head hosted gates are tracked separately.

The landed shared CI owner repair is also incorporated through a signed merge of pinned main 1f5c14590afaaea66944ef6b36e76236b0618e6b. All seven repaired owner files match landed main and stay outside this PR’s residual wording changes. The 40 wording files and their existing safety assertions are unchanged from the prior corrected head, so their focused consumer proof is reused. Fresh exact-head hosted CI and review are tracked separately.

The two subsequent CI assertion failures are addressed by incorporating pinned main e15926132cd9d5f6d635562a81ea6eed5d959806, including the projection startup/retry fixture repair and current-turn chat cleanup repair. Both owner repairs remain outside the unchanged 40-file wording delta. The canonical projection case passes (1 selected, 140 unselected; wrapper 52.54s), and the original Gateway pair passes all 88 cases plus its preceding guard (171.19s wrapper). Gateway owner/runtime inputs are unchanged; a sole added worker-test selection entry does not affect that explicit pair. Prior unrelated consumer proof is reused. The hosted anonymous-row failure did not reproduce locally, so the passing replay is not claimed as a flake diagnosis. Fresh exact-head CI and review remain separate.

@clawsweeper

clawsweeper Bot commented Oct 10, 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.

@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR simplifies agent instructions and execution diagnostics and updates their existing assertions and generated fixtures.

Example: An exec command reaches its 1-second timeout after potentially completing an external action.

  • Before: The warning says, “Do not automatically rerun non-idempotent commands.”
  • After: The warning says, “Do not automatically rerun commands unless repeating them is safe,” while retaining verification-before-retry guidance.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful editorial work with aligned consumers and no identified defect; runtime evidence for this surface is limited, and current CI remains pending.
Proof confidence 🦐 gold shrimp (3/6) The contributor proof gate does not apply to this maintainer-authored wording PR; existing consumer-suite reports support the change, while both inspected screenshots show another setup-help surface.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Partial
User problem: Readers must interpret technical shorthand before following agent and execution guidance.
Reason: Maintainer direction is established, and this focused portion preserves safety instructions; Related is appropriate for the broader report.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored PR open: the wording changes preserve existing safety guidance, prior findings are resolved, and no introduced defect was found; required CI is still running.

Priority: P3
Reviewed head: 49565bcc13e142e6a22ec226234f2e5006390909

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No supplied shipped-entry-point demonstration exercises the revised timeout or working-directory denial text; this maintainer-authored wording PR is outside the contributor proof gate.
Agent review details

How this fits together

Agent, execution, sandbox, ACP, and automation owners translate runtime outcomes into model instructions and operator diagnostics.

flowchart TD
  A[Agent request] --> B[Runtime and tool owners]
  B --> C[Execution and validation outcomes]
  C --> D[Shared diagnostic wording]
  D --> E[Model instructions]
  D --> F[Operator diagnostics]
Loading

Technical review

Best possible solution:

Land the focused wording and aligned consumers after the existing required CI gates pass.

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

The original wording is directly visible on fetched main; this editorial PR claims no runtime defect, and no target code was executed during review.

Is this the best way to solve the issue?

Editing prose at its existing owners and updating exact-message consumers is proportionate and preserves the original operational constraints.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9fd613fe813b.

Provenance checked

  • Timeout and unknown-tool-result guidance keeps the original intent (b15718f: Prevent duplicate external effects after ambiguous timeouts; cee0906 separately established unknown-outcome verification guidance.)
  • Working-directory approval diagnostics keeps the original intent (1c37c8c: Bind reusable approvals to the reviewed working directory and reject mutable symlink paths.)
  • ACP recovery diagnostics keeps the original intent (12c5644: Keep Doctor as repair owner and retain conflicting source data rather than selecting an ambiguous owner.)
  • System-agent configuration instructions keeps the original intent (387da5e: Allow approved writes through the existing validator and writer, returning errors for a fresh corrective proposal.)
  • Automation previews and prompt fixtures keeps the original intent (d8e0e88: Preserve creating-conversation delivery and block unresolved external destinations; generated fixtures retain the discovery contract from fix(agents): reduce message schema overhead for bound channels #168875.)
  • Question validation keeps the original intent (70d9ca9: Derive question contracts from their shared owner rather than independently describing accepted shapes.)
  • Remaining workspace, session, sandbox, completion, loop, and hook wording keeps the original intent (unknown: Scoped history, including earlier completion and Crestodian paths, shows shared ownership and multiple refactors; no single originating rationale covers this group, whose conditions and recovery instructions remain intact.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit cee0906 adds packages/llm-core/src/types.ts:365 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: cee0906f3877; files: packages/llm-core/src/types.ts)
  • litang9: Raw commit b15718f adds src/agents/bash-tools.exec-output.ts:28 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b15718f8d3f8; files: src/agents/bash-tools.exec-output.ts)
  • Josh Avant: Raw commit 1c37c8c adds src/infra/system-run-cwd-binding.ts:59 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1c37c8cdc71b; files: src/infra/system-run-cwd-binding.ts)
  • Dallin Romney: Raw commit 70d9ca9 adds src/agents/tools/ask-user-tool-normalization.ts:40 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 70d9ca95d7c6; files: src/agents/tools/ask-user-tool-normalization.ts)

PR surface

Source +1, Tests +2, Docs 0. Total +3 across 40 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 25 31 30 +1
Tests 14 41 39 +2
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 40 73 70 +3

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is readability polish with unchanged runtime decisions, permissions, settings, and stored formats.
  • 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 (4 earlier review cycles)
  • reviewed 2026-10-10T23:10:27.240Z sha 0e1964c :: needs changes before merge. :: [P2] Update the remaining no-output-timeout assertion | [P2] Synchronize the Agents API attachment-error expectation
  • reviewed 2026-10-11T05:13:56.316Z sha e1e8dcd :: needs changes before merge. :: [P2] Update the remaining no-output-timeout assertion | [P2] Synchronize the Agents API attachment-error expectation
  • reviewed 2026-10-12T03:29:11.624Z sha e5b0763 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-12T05:33:09.868Z sha 3527fb1 :: needs changes before merge. :: none

Reviewed October 12, 2026, 3:11 AM ET / 07:11 UTC (Revision 5).

@RomneyDa RomneyDa changed the title improve: simplify agent and command-execution messages (17/25) improve: simplify agent and command-execution messages Oct 11, 2026
@RomneyDa
RomneyDa changed the base branch from improve/plain-language-tooling to main October 11, 2026 05:05
@RomneyDa
RomneyDa requested a review from a team as a code owner October 11, 2026 05:05
@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: f1d6b26fe82b264cfde9fbc6402f8102c91fa4b1
  • Maintainer: @RomneyDa
  • Repository role: maintain

These security sensitive changes were made:

  • src/agents/sandbox/container-engine.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/agents/sandbox/context.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.
  • src/agents/sandbox/fs-bridge-path-safety.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.

Carefully review these changes before merging.

@RomneyDa
RomneyDa force-pushed the improve/plain-language-agent-tools branch from 0e1964c to e1e8dcd Compare October 11, 2026 05:07
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 11, 2026
Integrate pinned main to resolve cron and generated prompt conflicts and inherit the backend test-environment repair. Keep the newer cron description and regenerate prompt snapshots from their owners. Update the no-output timeout assertion to retain safe-repeat guidance. Preserve main’s intentional removal of the obsolete Agents API mixed-attachment test.
@clawsweeper clawsweeper Bot added 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 rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 12, 2026
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 12, 2026
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 12, 2026
synthalorian and others added 2 commits October 12, 2026 21:47
fix(webchat): stage offloaded WebChat images into the managed workspace

WebChat images above the inline threshold reached vision input but were not handed to managed workspace staging, so file tools couldn't find them. Offloaded WebChat images now expose their media-store path for staging, path-less transcript images hydrate from the staged sandbox copy, and images already staged are not staged again. Vision still receives exactly one image.

Proof: built Gateway chat.send with a 3,147,780-byte PNG: on main the image reached vision but exec found no staged file; on the candidate exec finds the staged PNG. A 378-byte inline image works the same on both. A live gpt-5-mini turn also found the staged image through exec.

Thanks @synthalorian.

Co-authored-by: Ayaan Zaidi <[email protected]>
Configuration publications refresh skills because skills can depend on arbitrary
config paths. Reuse the published model-list cache when the existing catalog
facts still match, while rebuilding commands and other skill-dependent metadata.
Model, auth, plugin, catalog and owner changes keep their existing invalidation
and read-authority boundaries.

Fixes the repeated projection work exposed by 877301a (#170341): scheduled
main run 38339144048 rebuilt model lists after each of six UI preference writes.
The prepared-model regression also reproduced the unnecessary second projection
before this change. Preserve the original integration assertion and verify that
skills-dependent commands refresh alongside retained model projections.

Validation: prepared-model regression fails before the repair and passes after
(2/2 tests; 257.74s on the loaded host). Targeted lint, formatting and diff checks
pass. Independent Codex review completed with no actionable findings. The full
Gateway freshness integration remains assigned to canonical CI.
steipete and others added 4 commits October 12, 2026 21:48
The synchronous fixture lookup could create a database after a Gateway
worker captured its absence, triggering the physical identity guard and
closing admission before the initial turn. Use existing read-only worker
discovery for both fixture targets, matching neighboring authority tests.

Preserve all retained and revoked grant, final-write, and transcript
assertions. No production guard or authorization behavior changes.
Plugin inspection resolved the explicitly supplied config, then discarded
it while projecting decision providers and consulted the runtime snapshot
instead. Cold inspection could fail with an unprepared runtime config; a
prepared but different runtime could also report the wrong configured model.

Carry the resolved config through the existing inspection context. Cover
single and all-plugin inspection with different explicit and ambient models.
Plugin loading, decision execution, and lifecycle ownership are unchanged.

Original ambient-config lookup: cde6bbd (#152237), exposed by
7e48efb (#169714). Scheduled main 38334375513 repeats nine
trust-diagnostics failures.

Focused proof: loader.trust-diagnostics 11/11 and status 9/9 passed.
The two new cases take 29ms and 15ms; loaded-host wrapper wall 1794.74s
is dominated by worker build and module transforms. Independent review
found no actionable defects.
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: L and removed size: S labels Oct 13, 2026
@RomneyDa
RomneyDa merged commit 758febd into main Oct 13, 2026
149 checks passed
@RomneyDa
RomneyDa deleted the improve/plain-language-agent-tools branch October 13, 2026 07:29
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
* improve: simplify agent, exec, and automation messages

* fix(webchat): stage offloaded images for file tools (openclaw#168537)

fix(webchat): stage offloaded WebChat images into the managed workspace

WebChat images above the inline threshold reached vision input but were not handed to managed workspace staging, so file tools couldn't find them. Offloaded WebChat images now expose their media-store path for staging, path-less transcript images hydrate from the staged sandbox copy, and images already staged are not staged again. Vision still receives exactly one image.

Proof: built Gateway chat.send with a 3,147,780-byte PNG: on main the image reached vision but exec found no staged file; on the candidate exec finds the staged PNG. A 378-byte inline image works the same on both. A live gpt-5-mini turn also found the staged image through exec.

Thanks @synthalorian.

Co-authored-by: Ayaan Zaidi <[email protected]>

* fix(gateway): retain model lists across skills refreshes

Configuration publications refresh skills because skills can depend on arbitrary
config paths. Reuse the published model-list cache when the existing catalog
facts still match, while rebuilding commands and other skill-dependent metadata.
Model, auth, plugin, catalog and owner changes keep their existing invalidation
and read-authority boundaries.

Fixes the repeated projection work exposed by 044ae43 (openclaw#170341): scheduled
main run 38339144048 rebuilt model lists after each of six UI preference writes.
The prepared-model regression also reproduced the unnecessary second projection
before this change. Preserve the original integration assertion and verify that
skills-dependent commands refresh alongside retained model projections.

Validation: prepared-model regression fails before the repair and passes after
(2/2 tests; 257.74s on the loaded host). Targeted lint, formatting and diff checks
pass. Independent Codex review completed with no actionable findings. The full
Gateway freshness integration remains assigned to canonical CI.

* test(gateway): resolve auth-policy session targets in workers

The synchronous fixture lookup could create a database after a Gateway
worker captured its absence, triggering the physical identity guard and
closing admission before the initial turn. Use existing read-only worker
discovery for both fixture targets, matching neighboring authority tests.

Preserve all retained and revoked grant, final-write, and transcript
assertions. No production guard or authorization behavior changes.

* fix(plugins): retain inspected config for decision diagnostics

Plugin inspection resolved the explicitly supplied config, then discarded
it while projecting decision providers and consulted the runtime snapshot
instead. Cold inspection could fail with an unprepared runtime config; a
prepared but different runtime could also report the wrong configured model.

Carry the resolved config through the existing inspection context. Cover
single and all-plugin inspection with different explicit and ambient models.
Plugin loading, decision execution, and lifecycle ownership are unchanged.

Original ambient-config lookup: 0a54fc6 (openclaw#152237), exposed by
5dbf215 (openclaw#169714). Scheduled main 38334375513 repeats nine
trust-diagnostics failures.

Focused proof: loader.trust-diagnostics 11/11 and status 9/9 passed.
The two new cases take 29ms and 15ms; loaded-host wrapper wall 1794.74s
is dominated by worker build and module transforms. Independent review
found no actionable defects.

* fix: allow test builds in containers without systemd (openclaw#170640)

---------

Co-authored-by: synth <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. security-sensitive-changed size: L 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.

3 participants