docs(issue-42): stages 1-2 - SKILL.md code-block inventory; remove blocks the scripts already do #46

Merged
Godopu merged 5 commits from fix/issue-42 into main 2026-10-03 23:36:27 +00:00
Showing only changes of commit 8d26106195 - Show all commits
+2
View File
@@ -152,6 +152,8 @@ def test_exit_table_agrees_with_script(script):
raised = _scan_exits(script)[1] raised = _scan_exits(script)[1]
assert {c: f"{script}:{n}" for c, n in raised.items()} == passthrough, \ assert {c: f"{script}:{n}" for c, n in raised.items()} == passthrough, \
f"{script}: SystemExit codes in heredocs {raised} must be declared as passthrough (and in the table)" f"{script}: SystemExit codes in heredocs {raised} must be declared as passthrough (and in the table)"
assert set(passthrough) <= numeric, \
f"{script}: passthrough codes {sorted(set(passthrough) - numeric)} missing from the exit table"
assert numeric <= literal | set(passthrough), \ assert numeric <= literal | set(passthrough), \
f"table codes {sorted(numeric - literal - set(passthrough))} come from nowhere in {script}" f"table codes {sorted(numeric - literal - set(passthrough))} come from nowhere in {script}"
for code, ref in passthrough.items(): for code, ref in passthrough.items():