From 6c5113767595a552414e542622f3c509c81f2ed3 Mon Sep 17 00:00:00 2001 From: mintaka Date: Fri, 11 Sep 2026 14:46:55 -0400 Subject: [PATCH] docs(ui): anchor the captureRequest citation by its thrown string (RIG-2874) The record cited index.test.ts:87 for the always-throwing fetch, but the throw is at :93 and the rejects.toThrow() gate at :95. Line numbers in this record have drifted repo-wide, so this anchors on the thrown string instead, which cannot drift. --- docs/designs/ui/compass-outbound-session-header/design.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/designs/ui/compass-outbound-session-header/design.md b/docs/designs/ui/compass-outbound-session-header/design.md index 337ee838..45f5754c 100644 --- a/docs/designs/ui/compass-outbound-session-header/design.md +++ b/docs/designs/ui/compass-outbound-session-header/design.md @@ -582,10 +582,10 @@ Cases: - getter returns `undefined` ⇒ header **absent** (not empty) — **direct seam, all three assertions above**. The guard can throw on this input, so absence alone is not enough. `captureRequest`'s capturing `fetch` always `throw`s - (`index.test.ts:87`), so its gate `rejects.toThrow()` cannot tell "threw - early" from "reached `next`" — it goes green on the very defect the case - exists to catch. Assertion 3 (`result` is the sentinel) is what proves - nothing threw. + (`"captureRequest: short-circuit before response"`), so its gate + `rejects.toThrow()` cannot tell "threw early" from "reached `next`" — it goes + green on the very defect the case exists to catch. Assertion 3 (`result` is + the sentinel) is what proves nothing threw. - getter returns `""` ⇒ header absent — capture seam. - oversized value (201 ASCII chars) ⇒ header absent — capture seam. - **exactly 200 ASCII chars ⇒ header PRESENT** (capture seam). This is the