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
@@ -1,6 +1,4 @@
|
||||
#!/bin/sh
|
||||
# M8 e2e: the parent calls `task`; the child (own session, cheap model) reads a file and answers;
|
||||
# only the answer reaches the parent; child usage is logged under <session>.sub/.
|
||||
set -eu
|
||||
root=$(cd "$(dirname "$0")/.." && pwd)
|
||||
tmp=$(mktemp -d)
|
||||
@@ -34,10 +32,8 @@ assert "haiku" in child1["model"] and "sonnet" in parent["model"], (child1["mode
|
||||
assert child1["messages"][0]["content"][0]["text"] == "what is in note.txt?"
|
||||
assert {t["name"] for t in child1["tools"]} == {"Read", "Bash", "skill"}, [t["name"] for t in child1["tools"]]
|
||||
assert "Task" in {t["name"] for t in parent["tools"]}
|
||||
# children get the project context (AGENTS.md) in their system prompt, like the parent
|
||||
for r in (parent, child1, child2):
|
||||
assert "PROJECT-RULE-XYZ" in json.dumps(r["system"]), r["model"]
|
||||
# parent got only the child's answer (+ stats line), not the Read result
|
||||
res = json.dumps(parent2["messages"][-1])
|
||||
assert "secret is 42" in res and "[task explore" in res
|
||||
PY
|
||||
|
||||
Reference in new issue
Block a user