Commit 4ffada7
docs(agent): guard and bound every rule-4 fragment; make errorText fully total
Convergence review of the previous commit:
- README rule 4: the settle fragment now carries the AbortSignal third arg
(its own bold sentence mandates bounding every recovery request), and
the prose spells out the agent.chatId guard (undefined before the first
turn) instead of prescribing a fragment that neither typechecks nor
no-ops safely.
- errorText: an Error subclass with a throwing `message` getter could
escape the try blocks — the instanceof branch is now wrapped too, so
the totality contract holds.
Change-Id: I8580e2de0d4326f29fc40cccbbd4625df21803f5
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Thomas Kosiewski <tk@coder.com>1 parent 15fa2d9 commit 4ffada7
2 files changed
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
367 | | - | |
368 | | - | |
369 | | - | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
370 | 372 | | |
371 | 373 | | |
372 | 374 | | |
373 | 375 | | |
374 | 376 | | |
375 | | - | |
| 377 | + | |
376 | 378 | | |
377 | 379 | | |
378 | 380 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| |||
0 commit comments