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,61 @@
|
||||
# Comment audit: core-b
|
||||
|
||||
| file | tautology | stale | excuse | decision | kept |
|
||||
|---|---|---|---|---|---|
|
||||
| lib.rs | 29 | 0 | 2 | 1 | 0 |
|
||||
| sandbox.rs | 22 | 0 | 1 | 8 | 0 |
|
||||
| permit.rs | 29 | 0 | 3 | 4 | 0 |
|
||||
| tool.rs | 13 | 0 | 1 | 2 | 0 |
|
||||
| hook.rs | 14 | 0 | 0 | 2 | 0 |
|
||||
| compact.rs | 7 | 0 | 0 | 2 | 0 |
|
||||
| herdr.rs | 9 | 0 | 0 | 4 | 0 |
|
||||
| mask.rs | 11 | 0 | 0 | 1 | 0 |
|
||||
| danger.rs | 9 | 0 | 1 | 1 | 0 |
|
||||
| ext.rs | 3 | 0 | 0 | 1 | 0 |
|
||||
| memory.rs | 5 | 0 | 1 | 1 | 0 |
|
||||
| nudge.rs | 2 | 0 | 1 | 1 | 0 |
|
||||
| total | 153 | 0 | 10 | 28 | 0 |
|
||||
|
||||
No SAFETY comments or directives existed in these files.
|
||||
|
||||
## Excuses (original lines)
|
||||
- lib.rs:86 bash tail keyed by command text
|
||||
- lib.rs:97 codemode store memory-only
|
||||
- sandbox.rs:10 one sandbox policy, no per-call network
|
||||
- permit.rs:33 secret detection name-based
|
||||
- permit.rs:59 not a shell parser
|
||||
- permit.rs:243 glob-only allow rules
|
||||
- tool.rs:53 shallow arg validation
|
||||
- danger.rs:25 pattern-rule classifier
|
||||
- memory.rs:7 line-count cap
|
||||
- nudge.rs:4 name heuristic for read-only
|
||||
|
||||
## Decisions (original lines)
|
||||
- lib.rs:73 prompts serialized
|
||||
- sandbox.rs:1 sandbox scope, in-process guards
|
||||
- sandbox.rs:94 git include following
|
||||
- sandbox.rs:167 fail closed
|
||||
- sandbox.rs:250 lexical `..` before canonicalise
|
||||
- sandbox.rs:332 git includes readable
|
||||
- sandbox.rs:469 bwrap mount order
|
||||
- sandbox.rs:500 seatbelt last-match
|
||||
- sandbox.rs:505 stat parents for git
|
||||
- permit.rs:11 readonly list omissions
|
||||
- permit.rs:56 chain splitter accepted syntax
|
||||
- permit.rs:173 cd is free
|
||||
- permit.rs:238 per-segment allow rules
|
||||
- tool.rs:98 danger beats stored rule
|
||||
- tool.rs:118 serialized prompts, re-check
|
||||
- hook.rs:109 shared hook list
|
||||
- hook.rs:142 hook ordering
|
||||
- compact.rs:23 cut at user prompt / fallback
|
||||
- compact.rs:175 roles alternate
|
||||
- herdr.rs:1 single lossy worker
|
||||
- herdr.rs:33 apostrophes rejected
|
||||
- herdr.rs:44 monotonic seq
|
||||
- herdr.rs:132 first report claims pane
|
||||
- mask.rs:1 cache-stable masking
|
||||
- danger.rs:332 judge failure asks user
|
||||
- ext.rs:1 protocol, failures continue
|
||||
- memory.rs:6 index cap forces consolidation
|
||||
- nudge.rs:1 inject at turn end
|
||||
Reference in new issue
Block a user