Commit ff65e5f
committed
docs(changeset): the STACK_* codes ARE in ERROR_CODE_LEDGER now — correct the stale sentence in the stack-refusal-envelopes changeset
The unconsumed changeset .changeset/stack-refusal-envelopes.md claimed that none
of the six new STACK_* codes is registered in ERROR_CODE_LEDGER. That sentence
was true when it was written and is false against main today: all seven STACK_*
codes -- the six plus the STACK_CROSS_REFERENCE_INVALID precedent -- are now
registered under the '@objectstack/spec' key of ERROR_CODE_LEDGER.
Measured on this tree, not inherited:
grep -n "STACK_" packages/spec/src/api/error-code-ledger.zod.ts
-> 7 rows, lines 1045-1051, inside the '@objectstack/spec' array (key at
line 1018; ERROR_CODE_LEDGER declared at line 176)
The paragraph's OTHER claim -- that no wire door raises these codes -- is
independent of the registration and survives re-measurement unchanged, so it is
kept verbatim:
grep -rn "defineStack" packages/rest/src/ -> exit 1, 0 occurrences
grep -rn "defineStack" packages/runtime/src/ -> 38 occurrences, 26 in
non-test files, every one a comment or docstring; 0 call sites, 0 imports
Both zero readings carry positive controls: the same invocation finds
refuseUnknownQueryParams in packages/rest/src (3 files) and finds defineStack
in packages/runtime/src, and an import-shaped grep for ApiErrorSchema over the
same two trees returns 25 lines.
One sentence, one file. The message text, the refusal table, the semver
argument and the "Not narrowed" framing are untouched.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016N6xmWt5hYm94ffVEwGH8x1 parent 1692157 commit ff65e5f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments