Files
hx/docs/adr/0001-acp-step-protocol.md
T
johannesandClaude Sonnet 5.5 a94632ea3d chore: delete code comments, add ratchet lint and ADRs
Classify every comment as tautology, stale, excuse or decision record.
Tautology/stale/excuse comments are deleted (excuses filed as issues
#196-#236), decisions moved to docs/adr/0001-0034.

- scripts/lint-comments.sh + .comment-baseline: per-file comment count
  may only go down; wired into tests/all.sh
- .claude/skills/delete-comment: repeatable audit workflow
- cargo fmt applied to touched crates

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 13:37:32 +01:00

15 lines
923 B
Markdown

# ACP step outcome via closing hx-step block
Status: accepted
## Context
The orchestrator needs step outcome, decisions and plan from every provider, including the `claude` CLI, whose tools hx does not own and so cannot hook with custom tool calls. In ACP, file tools have no permission rule, and a stuck tool can block a stop.
## Decision
The model reports step outcome, decisions and plan in a closing ```hx-step JSON block of its reply, which works identically for all providers. Stops are soft: the run ends at the next turn boundary and a stuck tool gets a grace period. "Always" on a file-tool permission means all edits for the session, since file tools have no rule to store.
## Consequences
Provider-independent protocol, but correctness relies on the model emitting a parseable block.
Code: crates/hx-cli/src/acp.rs (module doc, permission wiring around the file-tool "always" case, step run loop soft stop)