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>
This commit is contained in:
1 parent
0545702fe0
commit
a94632ea3d
131 files changed
+1051
-1746
No files matched your search
@@ -0,0 +1,31 @@
|
||||
# Comment audit: hx-cli
|
||||
|
||||
Clap doc comments (--help text, main.rs lines 28-124, 135, 137) were kept as functional, 30 lines.
|
||||
|
||||
| file | tautology | stale | excuse | decision | kept |
|
||||
|---|---|---|---|---|---|
|
||||
| acp.rs | 40 | 0 | 0 | 4 | 0 |
|
||||
| rpc.rs | 9 | 0 | 0 | 2 | 0 |
|
||||
| main.rs | 62 | 0 | 2 | 13 | 30 |
|
||||
|
||||
Excuses
|
||||
- main.rs:522 pricing estimate (see issues)
|
||||
- main.rs:440 connecting MCP prompts missing from completion
|
||||
|
||||
Decisions
|
||||
- acp.rs:9-11 hx-step block reporting
|
||||
- acp.rs:380 file tools "always" means session edits
|
||||
- acp.rs:564 soft stop with grace
|
||||
- acp.rs:602 exit_plan has no answerer, plan reported in step
|
||||
- rpc.rs:80 abort/complete bypass agent lock
|
||||
- rpc.rs:188 let running prompt finish on stdin close
|
||||
- main.rs:271-272 claude unsandboxed rule
|
||||
- main.rs:305,309 claude MCP wiring, no recursion
|
||||
- main.rs:383 macOS keychain
|
||||
- main.rs:551 claude sees only mcp-serve tools
|
||||
- main.rs:867-868 mcp-serve log
|
||||
- main.rs:472 stale-while-revalidate
|
||||
- main.rs:672 fail loud
|
||||
- main.rs:1017 startup grace
|
||||
- main.rs:1106,1151 tool snapshot
|
||||
- main.rs:1186-1198 permission routing
|
||||
Reference in new issue
Block a user