Skip to content

docs(validation): §5.11 — fatal-throw tripwire count exactness (seven→eight, +INV-24 watchdog)#167

Merged
dzhelezov merged 1 commit into
mainfrom
docs/validation-511-fatal-count-exactness
Jul 13, 2026
Merged

docs(validation): §5.11 — fatal-throw tripwire count exactness (seven→eight, +INV-24 watchdog)#167
dzhelezov merged 1 commit into
mainfrom
docs/validation-511-fatal-count-exactness

Conversation

@dzhelezov

Copy link
Copy Markdown
Collaborator

What

§5.11's realtime-chaos tripwire bullet claimed the harness invariant() fast-path grep-matches "all seven real fatal throws" in portal/portal-realtime.ts and enumerated seven. The file actually has eight throw new Error(...) fatals — the omitted one is the INV-24 delivery-progress watchdog fatal (…finalized head advanced to N, M blocks PAST the highest delivered block … /stream delivered ZERO blocks for …ms … Restart to re-sync from the finalized head.), which was added in the RT-1 burst (#161).

Why it's a drift, not a safety gap

The tripwire regex — invariant() in harness/chaos/realtime/orchestrate.sh: InvariantViolation|restart to re-sync|deterministic, not retried|Cannot finalize safely|Cannot reconcile safelyalready matches the watchdog fatal (it ends "Restart to re-sync from the finalized head", caught by restart to re-sync, case-insensitive). So the tripwire was always complete; only the prose undercounted. All eight throws (lines 403 / 508 / 522 / 553 / 1009 / 1040 / 1054 / 1100) are covered by the regex.

Change

VALIDATION.md §5.11, one bullet: "all seven" → "all eight", and add "the delivery-progress watchdog fatal (INV-24)" to the enumeration (placed in file order, after the deterministic-4xx fatal). Doc-only; no code/test change. Keeps the doc⟷code⟷test invariant catalog exact.

🤖 Generated with Claude Code

…→eight, +INV-24 watchdog)

The §5.11 realtime-chaos tripwire bullet claimed the harness `invariant()` fast-path
grep-matches "all seven real fatal throws" in `portal/portal-realtime.ts` and enumerated
seven. The file actually has EIGHT `throw new Error(...)` fatals — the omitted one is the
INV-24 delivery-progress watchdog fatal ("…delivered ZERO blocks for …ms… Restart to
re-sync from the finalized head."), added in the RT-1 burst (#161).

The tripwire regex (`orchestrate.sh` `invariant()`: `restart to re-sync|deterministic, not
retried|Cannot finalize safely|Cannot reconcile safely`) DOES match the watchdog fatal (it
ends "Restart to re-sync from the finalized head"), so the mechanism was already complete —
this is a doc⟷code enumeration drift introduced by the burst, not a safety gap. Corrects the
count to eight and adds the watchdog fatal to the list, keeping the INV catalog exact.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dzhelezov dzhelezov merged commit cf1c6fd into main Jul 13, 2026
14 checks passed
@dzhelezov dzhelezov deleted the docs/validation-511-fatal-count-exactness branch July 13, 2026 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant