diff --git a/.changeset/pending-registration-verdict-doc.md b/.changeset/pending-registration-verdict-doc.md new file mode 100644 index 0000000000..b0880d90ab --- /dev/null +++ b/.changeset/pending-registration-verdict-doc.md @@ -0,0 +1,7 @@ +--- +'@objectstack/runtime': patch +--- + +Restate the `CodeVerdict.pending-registration` doc comment in `dispatcher-error-vocabulary.ts` in post-#9106 terms. + +The doc comment said the verdict "reaches a wire `error.code` verbatim" and "the body cannot parse" — both false since #9106 narrowed the dispatcher door: the unregistered spelling now rides the wire's `declaredCode` instead of `error.code`, so the body parses, and what an unswept producer loses instead is its semantic code, silently demoted off `error.code` until registered. The file's own module header and the gate script's header already said so; only the verdict doc comment was the holdout, and it is the classification guide a future `unclassified-site` finding gets picked from. Prose only — `verdict:` values, row data and the gate script are unchanged; `check:dispatcher-error-vocabulary` parses `verdict:` textually with comments masked, so no gate reads this text and no behaviour moves. diff --git a/packages/runtime/src/dispatcher-error-vocabulary.ts b/packages/runtime/src/dispatcher-error-vocabulary.ts index baffcaa8df..bc74ad1191 100644 --- a/packages/runtime/src/dispatcher-error-vocabulary.ts +++ b/packages/runtime/src/dispatcher-error-vocabulary.ts @@ -134,8 +134,11 @@ export type CodeDoor = 'dispatcher' | 'rest' | 'plugin-route' | 'none'; export type CodeVerdict = /** - * Reaches a wire `error.code` verbatim and the ledger does not know it. - * The body cannot parse. ⇒ #8846's registration input. + * Reaches a wire and the ledger does not know it. Since #9106 the door + * narrows — the unregistered spelling rides the wire's `declaredCode` + * instead of `error.code`, so the body now parses; the producer's + * semantic code is silently demoted off `error.code` until registered. + * ⇒ #8846's registration input. */ | 'pending-registration' /**