Skip to content

Commit dc5fdd5

Browse files
committed
docs(scenarios): say what holds the reach codes to the catalogue
Measured with a code the catalogue lacks: the typecheck (TS2322), the error-vocabulary gate and the load-time parse each refuse it. The previous commit's note that the ErrorCode type admits any string was wrong; its probe used a code that is in fact registered. Claude-Session: https://claude.ai/code/session_016WV4cyjYBCnWT8iGQXxoeH Co-authored-by: Claude <noreply@anthropic.com>
1 parent 9c02bb5 commit dc5fdd5

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎packages/qa/scenarios/src/loader.ts‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,10 @@ type Persona = ScenarioCard['run']['personas'][number];
148148
* The two codes a faithful build answers an operation its acting persona
149149
* cannot reach with. Spelled as literals, because `check:dispatcher-error-vocabulary`
150150
* judges the `code` these feed into `want` below and reads a constant only when
151-
* it resolves to a literal; parsed through the spec's catalogue (`ErrorCode`,
152-
* ADR-0112) once at load, so a code the platform stops answering refuses here
153-
* instead of drifting (the `ErrorCode` type alone admits any string).
151+
* it resolves to a literal. Held to the spec's catalogue (`ErrorCode`, ADR-0112)
152+
* twice: typed, so the typecheck refuses a code the platform stops answering,
153+
* and parsed once at load, so a test run (which does not typecheck) refuses it
154+
* too, instead of drifting.
154155
*
155156
* NOT_REACHABLE_ROW_CODE a by-id write on a row the caller cannot READ is
156157
* answered not-found, indistinguishable from a

0 commit comments

Comments
 (0)