Skip to content

fix(docs): correct raw ACP JSON automation examples - #525

Merged
steipete merged 1 commit into
mainfrom
fix/raw-acp-json-examples
Aug 28, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/raw-acp-json-examples

Conversation

@steipete

@steipete steipete commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The tool-call automation examples filter synthetic top-level type, status, and title fields, but JSON output deliberately preserves raw ACP JSON-RPC frames. Tool data lives under session/update → params.update, so the documented filters silently return no rows. The representative frames also omit the nested update object and show a string instead of ACP prompt content blocks.

Change

Correct all three documented tool-call pipelines to select the nested tool_call and tool_call_update payloads, with placeholders for omitted status/title fields in partial updates. Repair the sample frames without changing the wire format. Keep the touched landing examples within the repository's harness documentation policy.

Add a regression that executes the actual documented jq filters against tool calls, sparse updates, and unrelated frames. The test skips when jq is unavailable locally; GitHub's Ubuntu runner provides jq. Thanks @prateek for the report.

Proof

  • Built CLI against the repository's ACP mock adapter: exit 0, 11 raw JSON-RPC frames, empty stderr. The old filter emitted 0 rows; each corrected documented filter emitted the expected 2 rows (in_progress and completed). No provider credentials used.
  • The new regression failed before the documentation fix and passes after it, covering all three pipelines and four tool-update field combinations.
  • Documentation checks, formatting, typecheck, lint, distributable/viewer builds, and required Slophammer rule/DRY/dependency-boundary checks passed.
  • ACP initialize conformance smoke passed on Node 22 (1/1). A Node 24 attempt hit the existing 10-second adapter startup deadline.
  • Codex autoreview: no accepted/actionable findings on the final patch.
  • Full CI is green, including Test, Mutation, Conformance Smoke, Docs, Format, Typecheck, Lint, Build, and Slophammer.
  • Local targeted coverage: 130/130 passed; 94.64% lines/statements, 88.39% branches, 96.67% functions for the configured target. Local mutation: 90.80% across 424 mutants (376 killed, 9 timed out, 39 survived), above the 80% gate.
  • Local full-check caveat: the first run ended with 913 passes and 12 failures after startup timeouts and a stalled existing heartbeat test that had to be stopped. The retry completed all 936 tests: 927 passed and 9 hit existing 15/20-second conformance/flow CLI startup deadlines. No runtime code, deadlines, or assertions were weakened; the isolated CI Test job passed.

AI-assisted with Codex.

Fixes #520

@clawsweeper

clawsweeper Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 28, 2026 08:58
@steipete
steipete requested a review from a team as a code owner August 28, 2026 08:58
@clawsweeper

clawsweeper Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(docs): correct raw ACP JSON automation examples This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete
steipete merged commit e131748 into main Aug 28, 2026
17 of 18 checks passed
@steipete
steipete deleted the fix/raw-acp-json-examples branch August 28, 2026 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skills/acpx: --format json example selects nothing (frames have no .type field)

1 participant