Commit c66e3a8
docs+test: pin alive-first ordering in planAi human guard
BugBot review on PR #4 flagged that the !me.alive early-return preempts the
isHuman throw, "undermining the fail-fast guard." This is intentional design,
documented in the Task 5 plan ("dead humans return [] — same as dead AI"), but
not previously visible in the code. Add a 5-line comment to ai/index.ts
explaining the ordering rationale, plus a regression test asserting the dead-
human path returns [] (locks the ordering against future reorderings).
No behaviour change. 161/161 tests; typecheck clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 9d0319d commit c66e3a8
2 files changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
71 | 85 | | |
0 commit comments