Skip to content

fix(test): expect compact JSON from declared tool plugins - #197222

Merged
roboclaw-bot merged 1 commit into
mainfrom
loops/l531-tool-compact-json
Nov 11, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
loops/l531-tool-compact-json

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes declared-tool plugin CI still expecting indented JSON after #196756 intentionally made model-facing tool results compact.

User Impact

No production change. Preserve compact model-facing text and unchanged structured details.

Why This Change Was Made

The shared serializer and SDK documentation explicitly require compact JSON. Update only the independent expected text literal; retain full-result equality, typed details, schema, configuration and tool-registration assertions. Do not restore indentation or add a plugin-specific serializer.

Contributor credit: Peter Steinberger and Ayaan (obviyus).

Work sessions

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

Evidence

  • Introducing change 3d6699c / improve: send compact JSON tool results to the model #196756, discussion, shared owner and SDK docs inspected; independent source diagnosis confirms incomplete consumer cutover.
  • Actual canonical named case fails on pretty-versus-compact content before the correction. Both plugin and result-helper files pass all six tests afterward.
  • Scoped lint: 259 rules, zero warnings/errors. Formatting and git diff check pass. Zero net test lines; no production, timeout, skip or assertion removal.
  • Broader proof remains exact-head PR CI.

Complete the consumer expectation cutover from #196756. Keep full result equality, original typed details and all registration/config assertions. Actual affected test fails before correction; both helper and plugin files pass all six tests after correction.

Co-authored-by: steipete <[email protected]>

Co-authored-by: obviyus <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review ended

ClawSweeper stopped reviewing this revision because the pull request closed.

View the workflow run.

@roboclaw-bot
roboclaw-bot merged commit 9ea5501 into main Nov 11, 2026
102 checks passed
@roboclaw-bot
roboclaw-bot deleted the loops/l531-tool-compact-json branch November 11, 2026 13:16
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 12, 2026
…97222)

Complete the consumer expectation cutover from openclaw#196756. Keep full result equality, original typed details and all registration/config assertions. Actual affected test fails before correction; both helper and plugin files pass all six tests after correction.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant