Commit ce51277
chore: drop expired release-notes banner; complete autohands registry (#254)
Two hygiene leftovers from the 2026-08-19 release-board census (#239).
The time-boxed ANNOUNCEMENT banner in generate_release_notes.py expired
2026-07-24, so announcement_banner() had returned "" on every call since.
Delete the mechanism rather than document it; the datetime.date import goes
with it. The banner markdown also appears as a literal fixture string in
test_slack_release_notes.py, which imports nothing from the deleted code —
kept as the file's only blockquote -> mrkdwn case, with its comment corrected.
`bin/autohands help` claimed to be "the registry of what is a CLI verb", but
eleven modules in autohands/ had grown __main__ blocks without ever appearing
in it. Nine become real verbs (generate_markdown, regenerate_navigator, the
four workspace guards, slack_release_notes, tombstone, clone_seed), each with
help text stating its actual input contract — they differ: cwd, --root, or a
positional path. The rest are declared in a new INTERNAL_MODULES array with a
one-line reason each, and printed by `autohands help`, so the registry
describes the whole package rather than a subset.
tests/test_autohands_registry.py makes that an enforced invariant: every
executable module is a verb or allowlisted, the allowlist has no ghosts, every
verb carries its SHORT_DESC + cmd_* + help_* trio, and the two lists are
disjoint. Each assertion was negative-tested to confirm it fires.
Refs #249
Co-authored-by: Jammy2211 <JNightingale2211@gmail.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>1 parent 90f108f commit ce51277
5 files changed
Lines changed: 374 additions & 46 deletions
File tree
- autohands
- bin
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | 20 | | |
51 | 21 | | |
52 | 22 | | |
| |||
197 | 167 | | |
198 | 168 | | |
199 | 169 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | 170 | | |
207 | 171 | | |
208 | 172 | | |
| |||
0 commit comments