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>
14 lines
634 B
Bash
Executable File
14 lines
634 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
root=$(cd "$(dirname "$0")/.." && pwd)
|
|
tmp=$(mktemp -d)
|
|
trap 'kill $srv 2>/dev/null; rm -rf "$tmp"' EXIT
|
|
port=$((20000 + $$ % 20000))
|
|
python3 "$root/tests/fake_anthropic.py" $port "$root/tests/acp_turns.json" & srv=$!
|
|
mkdir -p "$tmp/home/.hx" "$tmp/repo"
|
|
echo '{"claude":{"access":"fake-token","refresh":"r","expires":99999999999999}}' > "$tmp/home/.hx/auth.json"
|
|
printf 'claude_cli = false\n[lsp]\nmode = "off"\ntests = "off"\n' > "$tmp/home/.hx/config.toml"
|
|
sleep 0.5
|
|
export HOME="$tmp/home" HX_BASE_URL="http://127.0.0.1:$port"
|
|
python3 "$root/tests/acp_client.py" "$root/target/debug/hx" "$tmp/repo" demo-1 $port
|