From 51687e14402266a2474fddbd0e5e1d4ff6be4af9 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 22 Sep 2026 20:31:34 +0000 Subject: [PATCH 1/8] fix(spec): correct the blank-$between-endpoint entry's carrier list and detector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The shipped ADR-0087 semantic entry `18.filter-between-blank-endpoint-refused` told an upgrader that `FieldOperatorsSchema.safeParse` and re-saving the document both make the sweep mechanical, over a carrier list of six slots. Measured on origin/main @ 16d090ede0: re-saving is mechanical on NONE of the stored carriers. - The loose-record slots (dashboard widget filter, dashboard options-source filter, dataset filter and measure filter, report runtimeFilter, rollup summaryOperations filter, relatedListFilter) are FilterConditionSchema, which never judges an operator map. - The view / page / component filter RULE dialect does not answer either: ViewFilterRuleSchema's value union accepts a string and its operator-shape check judges ARITY alone, so ['2026-01-01', ''] parses green while the same rule refuses an arity-1 value and a { $field } endpoint at the identical path. - What does refuse: the enforced FieldOperatorsSchema / RangeOperatorSchema copy, the NormalizedFilter AST, and — at execution — the engine comparand-shape door (INVALID_FILTER / 400 naming the index and the side). `surface` now splits the carriers into refused-at-save and not-judged-at-save, as the repaired sibling entry `18.filter-between-field-reference-endpoint-refused` does, with the difference that matters written out: that sibling's rule-dialect carriers DO answer on save (a { $field } object fails the value union), while a blank string does not. `acceptanceCriteria` names grep plus executing the surface as the detector for the stored carriers, and `reason` drops the same false re-save sentence. No behavioural change: nothing about what the platform refuses moves. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_013RDBh5DqXd2xnLwvHLgLFr --- ...8.filter-between-blank-endpoint-refused.ts | 71 +++++++++++++------ 1 file changed, 48 insertions(+), 23 deletions(-) diff --git a/packages/spec/src/migrations/entries/semantic/18.filter-between-blank-endpoint-refused.ts b/packages/spec/src/migrations/entries/semantic/18.filter-between-blank-endpoint-refused.ts index ac14705ca07..e54625d685c 100644 --- a/packages/spec/src/migrations/entries/semantic/18.filter-between-blank-endpoint-refused.ts +++ b/packages/spec/src/migrations/entries/semantic/18.filter-between-blank-endpoint-refused.ts @@ -11,11 +11,21 @@ export const entry: SemanticMigration = { // code span already, and a nested backtick would close it. surface: 'either endpoint of a $between range, authored BLANK — the empty string, or an absent ' - + '(undefined) bound — on any carrier of FieldOperatorsSchema / RangeOperatorSchema: a view ' - + 'or dashboard widget filter, a dataset filter, a report runtimeFilter, a page or component ' - + 'filter, a rollup filter, and the NormalizedFilter AST the query faces validate against. ' - + 'ARITY is not what changed: a blank bound is a well-formed TWO-element range one of whose ' - + 'elements means nothing', + + '(undefined) bound — in any filter this platform stores or executes. The carriers split ' + + 'in two, because they are DETECTED differently and only one half answers on save. ' + + '(a) REFUSED AT SAVE — the enforced FieldOperatorsSchema / RangeOperatorSchema copy ' + + 'itself, reached by a caller that validates a filter against it directly, and the ' + + 'NormalizedFilter AST. (b) NOT JUDGED AT SAVE — every stored metadata carrier, and that ' + + 'is BOTH authoring dialects, not only the loose one. A view, page or component filter ' + + 'RULE (ViewFilterRuleSchema) admits it: the rule value accepts a string and the ' + + 'operator-shape check judges ARITY alone, so a two-element range with a blank element is ' + + 'a well-formed rule. A dashboard widget filter, a dashboard options-source filter, a ' + + 'dataset filter, a dataset measure filter, a report runtimeFilter, a rollup ' + + 'summaryOperations filter and a relatedListFilter are typed FilterConditionSchema, a ' + + 'loose record intersected with the $and / $or / $not shape that never judges an operator ' + + 'map. Every one of those documents parses GREEN and the endpoint is refused only when the ' + + 'filter is EXECUTED, at the engine comparand-shape door. ARITY is not what changed: a ' + + 'blank bound is a well-formed TWO-element range one of whose elements means nothing', replacement: 'two endpoints that are present and non-empty — the bound the author meant, written out. ' + 'If only ONE side is genuinely bounded, that is not a range at all: drop `$between` and ' @@ -66,25 +76,40 @@ export const entry: SemanticMigration = { + 'Dropping the operator would be worse than guessing: it deletes a constraint the author ' + 'wrote and WIDENS the result set silently, the failure mode `$nin` carries in the same ' + 'file. The read path does not re-validate stored rows, so no stored view becomes ' - + 'unreadable; what changes is that RE-SAVING one is refused, at the key\'s own path, with ' - + 'the blank side named. The objectui half — the builder stops padding a half-typed pair, so ' + + 'unreadable — and, because every stored carrier is typed loosely or judged by arity ' + + 'alone (see `surface`), re-saving one is not refused either. What changes is the enforced ' + + 'operator schema itself, which answers at the endpoint\'s own path with the blank side ' + + 'named, and the engine comparand-shape door, which refuses an executed filter carrying ' + + 'one. The objectui half — the builder stops padding a half-typed pair, so ' + 'the console never meets this refusal mid-typing — is objectui#9695 and lands on its own ' + 'schedule, either side of this one. ADR-0049 / ADR-0078 / ADR-0087.', acceptanceCriteria: - 'Grep every authored `$between` array — view and dashboard widget filters, dataset filters, ' - + 'report runtimeFilters, page and component filters, rollup filters, saved AST filters, SDK ' - + 'and MCP callers — and read BOTH of its elements. A range with two present, non-empty ' - + 'endpoints parses byte-identically to before, numbers, Dates, ISO days, UTC instants, ' - + 'clock times and non-temporal text included, and `[\'0\', \'9\']` and `[0, 100]` are ' - + 'untouched (the rule is blankness, not falsiness). An empty-string or absent bound now ' - + 'answers one prescriptive issue at that endpoint\'s own path (`$between.0` / `$between.1`) ' - + 'naming MIN or MAX, so `FieldOperatorsSchema.safeParse` and re-saving the document both ' - + 'make the sweep mechanical; a range blank on BOTH sides reports both positions. Nothing is ' - + 'normalised on the way through — no bound is trimmed, defaulted or copied from its ' - + 'neighbour — so an accepted range arrives byte-identical to what was written. ⚠️ Do not ' - + 'assume a converted range was previously showing the window it named: a blank bound stopped ' - + 'bounding on that side at every backend, so the surface was reading a wider set than its ' - + 'filter claimed. Decide the window from what the surface was SUPPOSED to show, and if only ' - + 'one side was ever meant, write it as `$gte` / `$lte` rather than inventing a second bound. ' - + '`null` bounds are unaffected by this entry and keep their own refusal and prescription.', + 'Grep every authored `$between` array — view, page and component filter rules, dashboard ' + + 'widget and options-source filters, dataset and dataset-measure filters, report ' + + 'runtimeFilters, rollup and related-list filters, saved AST filters, SDK and MCP callers ' + + '— and read BOTH of its elements. A range with two present, non-empty endpoints parses ' + + 'byte-identically to before, numbers, Dates, ISO days, UTC instants, clock times and ' + + 'non-temporal text included, and `[\'0\', \'9\']` and `[0, 100]` are untouched (the rule ' + + 'is blankness, not falsiness). An empty-string or absent bound now answers one ' + + 'prescriptive issue at that endpoint\'s own path (`$between.0` / `$between.1`) naming MIN ' + + 'or MAX, and a range blank on BOTH sides reports both positions. ⚠️ THE DETECTOR IS NOT ' + + 'THE SAME ON EVERY CARRIER, and re-saving the document is mechanical on NONE of them. ' + + '`FieldOperatorsSchema.safeParse` is mechanical, and it is the whole of what the save ' + + 'door offers: it answers for a caller that validates a filter against that schema, or ' + + 'against the NormalizedFilter AST, directly. ⛔ Re-saving surfaces NOTHING for a stored ' + + 'document — not a dashboard, dataset, report, rollup or related list, whose filter slots ' + + 'are FilterConditionSchema, and not a view, page or component filter RULE either, whose ' + + 'value check judges arity and not blankness, so a range written `[\'2026-01-01\', \'\']` ' + + 'saves exactly as green as it always did. Measured, not assumed. For those carriers the ' + + 'detectors are the GREP above and EXECUTING the surface, where the engine ' + + 'comparand-shape door refuses with INVALID_FILTER / 400 naming the index and the side. ' + + '⛔ Do not read a clean re-save of a dashboard — or of a view — as a completed sweep. ' + + 'Nothing is normalised on the way through — no bound is trimmed, defaulted or copied ' + + 'from its neighbour — so an accepted range arrives byte-identical to what was written. ' + + '⚠️ Do not assume a converted range was previously showing the window it named: a blank ' + + 'bound stopped bounding on that side at every backend, so the surface was reading a wider ' + + 'set than its filter claimed. Decide the window from what the surface was SUPPOSED to ' + + 'show, and if only one side was ever meant, write it as `$gte` / `$lte` rather than ' + + 'inventing a second bound. `null` bounds are unaffected by this entry and keep their own ' + + 'refusal and prescription.', }; From 8e92cfa714e65f69190e1b22d8ae36f111b42182 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 22 Sep 2026 21:25:35 +0000 Subject: [PATCH 2/8] chore(spec): regenerate the migration registry for the corrected blank-endpoint entry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `packages/spec/src/migrations/registry.ts` mirrors each entry's FULL PROSE, not merely its id, and it — not `src/migrations/entries/**` — is what `chain.ts` and `index.ts` import and what `dist` is built from. So the prose correction in 51687e1440 shipped zero corrected bytes until this regeneration: measured on this branch, the OLD sentence read 4 hits across `dist/index.js`, `dist/index.mjs`, `dist/browser/index.js` and `dist/browser/index.mjs`. Generated by `pnpm --filter @objectstack/spec gen:migration-registry`. ⛔ Not hand-edited. The diff is 48 insertions / 23 deletions, all inside the one entry block; `check:migration-registry` now exits 0 where it exited 1. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_013RDBh5DqXd2xnLwvHLgLFr --- packages/spec/src/migrations/registry.ts | 71 ++++++++++++++++-------- 1 file changed, 48 insertions(+), 23 deletions(-) diff --git a/packages/spec/src/migrations/registry.ts b/packages/spec/src/migrations/registry.ts index 213a29821f6..363ca1de4ad 100644 --- a/packages/spec/src/migrations/registry.ts +++ b/packages/spec/src/migrations/registry.ts @@ -8369,11 +8369,21 @@ const step18: MigrationStep = { // code span already, and a nested backtick would close it. surface: 'either endpoint of a $between range, authored BLANK — the empty string, or an absent ' - + '(undefined) bound — on any carrier of FieldOperatorsSchema / RangeOperatorSchema: a view ' - + 'or dashboard widget filter, a dataset filter, a report runtimeFilter, a page or component ' - + 'filter, a rollup filter, and the NormalizedFilter AST the query faces validate against. ' - + 'ARITY is not what changed: a blank bound is a well-formed TWO-element range one of whose ' - + 'elements means nothing', + + '(undefined) bound — in any filter this platform stores or executes. The carriers split ' + + 'in two, because they are DETECTED differently and only one half answers on save. ' + + '(a) REFUSED AT SAVE — the enforced FieldOperatorsSchema / RangeOperatorSchema copy ' + + 'itself, reached by a caller that validates a filter against it directly, and the ' + + 'NormalizedFilter AST. (b) NOT JUDGED AT SAVE — every stored metadata carrier, and that ' + + 'is BOTH authoring dialects, not only the loose one. A view, page or component filter ' + + 'RULE (ViewFilterRuleSchema) admits it: the rule value accepts a string and the ' + + 'operator-shape check judges ARITY alone, so a two-element range with a blank element is ' + + 'a well-formed rule. A dashboard widget filter, a dashboard options-source filter, a ' + + 'dataset filter, a dataset measure filter, a report runtimeFilter, a rollup ' + + 'summaryOperations filter and a relatedListFilter are typed FilterConditionSchema, a ' + + 'loose record intersected with the $and / $or / $not shape that never judges an operator ' + + 'map. Every one of those documents parses GREEN and the endpoint is refused only when the ' + + 'filter is EXECUTED, at the engine comparand-shape door. ARITY is not what changed: a ' + + 'blank bound is a well-formed TWO-element range one of whose elements means nothing', replacement: 'two endpoints that are present and non-empty — the bound the author meant, written out. ' + 'If only ONE side is genuinely bounded, that is not a range at all: drop `$between` and ' @@ -8424,27 +8434,42 @@ const step18: MigrationStep = { + 'Dropping the operator would be worse than guessing: it deletes a constraint the author ' + 'wrote and WIDENS the result set silently, the failure mode `$nin` carries in the same ' + 'file. The read path does not re-validate stored rows, so no stored view becomes ' - + 'unreadable; what changes is that RE-SAVING one is refused, at the key\'s own path, with ' - + 'the blank side named. The objectui half — the builder stops padding a half-typed pair, so ' + + 'unreadable — and, because every stored carrier is typed loosely or judged by arity ' + + 'alone (see `surface`), re-saving one is not refused either. What changes is the enforced ' + + 'operator schema itself, which answers at the endpoint\'s own path with the blank side ' + + 'named, and the engine comparand-shape door, which refuses an executed filter carrying ' + + 'one. The objectui half — the builder stops padding a half-typed pair, so ' + 'the console never meets this refusal mid-typing — is objectui#9695 and lands on its own ' + 'schedule, either side of this one. ADR-0049 / ADR-0078 / ADR-0087.', acceptanceCriteria: - 'Grep every authored `$between` array — view and dashboard widget filters, dataset filters, ' - + 'report runtimeFilters, page and component filters, rollup filters, saved AST filters, SDK ' - + 'and MCP callers — and read BOTH of its elements. A range with two present, non-empty ' - + 'endpoints parses byte-identically to before, numbers, Dates, ISO days, UTC instants, ' - + 'clock times and non-temporal text included, and `[\'0\', \'9\']` and `[0, 100]` are ' - + 'untouched (the rule is blankness, not falsiness). An empty-string or absent bound now ' - + 'answers one prescriptive issue at that endpoint\'s own path (`$between.0` / `$between.1`) ' - + 'naming MIN or MAX, so `FieldOperatorsSchema.safeParse` and re-saving the document both ' - + 'make the sweep mechanical; a range blank on BOTH sides reports both positions. Nothing is ' - + 'normalised on the way through — no bound is trimmed, defaulted or copied from its ' - + 'neighbour — so an accepted range arrives byte-identical to what was written. ⚠️ Do not ' - + 'assume a converted range was previously showing the window it named: a blank bound stopped ' - + 'bounding on that side at every backend, so the surface was reading a wider set than its ' - + 'filter claimed. Decide the window from what the surface was SUPPOSED to show, and if only ' - + 'one side was ever meant, write it as `$gte` / `$lte` rather than inventing a second bound. ' - + '`null` bounds are unaffected by this entry and keep their own refusal and prescription.', + 'Grep every authored `$between` array — view, page and component filter rules, dashboard ' + + 'widget and options-source filters, dataset and dataset-measure filters, report ' + + 'runtimeFilters, rollup and related-list filters, saved AST filters, SDK and MCP callers ' + + '— and read BOTH of its elements. A range with two present, non-empty endpoints parses ' + + 'byte-identically to before, numbers, Dates, ISO days, UTC instants, clock times and ' + + 'non-temporal text included, and `[\'0\', \'9\']` and `[0, 100]` are untouched (the rule ' + + 'is blankness, not falsiness). An empty-string or absent bound now answers one ' + + 'prescriptive issue at that endpoint\'s own path (`$between.0` / `$between.1`) naming MIN ' + + 'or MAX, and a range blank on BOTH sides reports both positions. ⚠️ THE DETECTOR IS NOT ' + + 'THE SAME ON EVERY CARRIER, and re-saving the document is mechanical on NONE of them. ' + + '`FieldOperatorsSchema.safeParse` is mechanical, and it is the whole of what the save ' + + 'door offers: it answers for a caller that validates a filter against that schema, or ' + + 'against the NormalizedFilter AST, directly. ⛔ Re-saving surfaces NOTHING for a stored ' + + 'document — not a dashboard, dataset, report, rollup or related list, whose filter slots ' + + 'are FilterConditionSchema, and not a view, page or component filter RULE either, whose ' + + 'value check judges arity and not blankness, so a range written `[\'2026-01-01\', \'\']` ' + + 'saves exactly as green as it always did. Measured, not assumed. For those carriers the ' + + 'detectors are the GREP above and EXECUTING the surface, where the engine ' + + 'comparand-shape door refuses with INVALID_FILTER / 400 naming the index and the side. ' + + '⛔ Do not read a clean re-save of a dashboard — or of a view — as a completed sweep. ' + + 'Nothing is normalised on the way through — no bound is trimmed, defaulted or copied ' + + 'from its neighbour — so an accepted range arrives byte-identical to what was written. ' + + '⚠️ Do not assume a converted range was previously showing the window it named: a blank ' + + 'bound stopped bounding on that side at every backend, so the surface was reading a wider ' + + 'set than its filter claimed. Decide the window from what the surface was SUPPOSED to ' + + 'show, and if only one side was ever meant, write it as `$gte` / `$lte` rather than ' + + 'inventing a second bound. `null` bounds are unaffected by this entry and keep their own ' + + 'refusal and prescription.', }, // The ledger's FIRST record of the 2026-08-11 removal, registered when the // RUNTIME door finally enforced it. The schema-door half shipped without an From 4e3a6373fa2ed08a1ee9856b9562b3413f7ab4e6 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 22 Sep 2026 21:30:30 +0000 Subject: [PATCH 3/8] chore(spec): patch changeset for the corrected blank-endpoint entry prose The corrected prose reaches consumers: measured on this branch, the old sentence read 4 hits across dist/index.js, dist/index.mjs, dist/browser/index.js and dist/browser/index.mjs before the registry was regenerated and 0 after, with two sentences unique to the corrected text moving 0 -> 4 in the same four files. All four ship under the files[] entry `dist` (npm pack --dry-run, 2031 files). So skip-changeset would be wrong. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_013RDBh5DqXd2xnLwvHLgLFr --- .changeset/19523-blank-endpoint-entry-carriers.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .changeset/19523-blank-endpoint-entry-carriers.md diff --git a/.changeset/19523-blank-endpoint-entry-carriers.md b/.changeset/19523-blank-endpoint-entry-carriers.md new file mode 100644 index 00000000000..33dd7d9f98b --- /dev/null +++ b/.changeset/19523-blank-endpoint-entry-carriers.md @@ -0,0 +1,13 @@ +--- +'@objectstack/spec': patch +--- + +`packages/spec/src/migrations/registry.ts` — the shipped ADR-0087 semantic entry `filter-between-blank-endpoint-refused` told an upgrader that `FieldOperatorsSchema.safeParse` **and re-saving the document** both make the sweep mechanical, over a carrier list of six slots. Measured: re-saving is mechanical on **none** of the stored carriers, so an upgrader who re-saved every dashboard, dataset and report found nothing refused and concluded the sweep was done. The entry's `surface`, `reason` and `acceptanceCriteria` now say what is actually judged where (#19523). + +Clause-②: no + +No behaviour moves: nothing about what the platform refuses changes, and no schema, accept set or export is touched. What changes is what the document tells a human to do about it. + +- **The split the entry now draws.** (a) Refused at save: the enforced `FieldOperatorsSchema` / `RangeOperatorSchema` copy itself, reached by a caller that validates a filter against it directly, and the `NormalizedFilter` AST. (b) Not judged at save: every stored metadata carrier — and that is **both** authoring dialects, not only the loose one. A dashboard widget filter, a dashboard options-source filter, a dataset filter, a dataset measure filter, a report `runtimeFilter`, a rollup `summaryOperations` filter and a `relatedListFilter` are typed `FilterConditionSchema`; a view, page or component filter **rule** is `ViewFilterRuleSchema`, whose value check judges arity and not blankness. For (b) the detectors are the grep the entry already prescribes and **executing** the surface, where the engine comparand-shape door answers `INVALID_FILTER` / 400 naming the index and the side. +- **The card's own control was wrong in the safe direction, and it was re-derived rather than inherited.** `ViewFilterRuleSchema.safeParse({ field, operator: 'between', value })` reads green on `['2026-01-01', '2026-12-31']` and green on `['2026-01-01', '']`, and refused on `['2026-01-01']` and on `['2026-01-01', { $field: 'x' }]` — so the rule dialect admits a blank endpoint, with two firing controls proving the same door is live. The same four verdicts hold through a fully-green `ListView` document at `filter.0.value`. +- **Why this is a publishing change at all.** `src/migrations/entries/**` is generator input: it is not in this package's `files[]` (only `entries/README.md` ships) and nothing imports it but the generator and two pin tests. The registry is what `chain.ts` and `index.ts` import and what `dist` is built from, so the corrected prose reaches consumers only through it: measured on this branch, the old sentence read 4 hits across `dist/index.js`, `dist/index.mjs`, `dist/browser/index.js` and `dist/browser/index.mjs` before the regeneration and 0 after, and two sentences unique to the corrected text moved 0 → 4 in the same four files. From 3335eaad1f0bc25323f4fedb155f40b3152f87a8 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 22 Sep 2026 23:19:41 +0000 Subject: [PATCH 4/8] fix(spec): the blank-endpoint entry no longer claims FilterConditionSchema never judges an operator map MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The corrected `surface` on `filter-between-blank-endpoint-refused` said the `FilterConditionSchema` carriers are "a loose record intersected with the $and / $or / $not shape that never judges an operator map". Measured against this branch's own build, that clause is false and the sibling entry `filter-preset-ordering-comparand-refused` contradicts it in its own `surface`: the schema carries `.superRefine(checkBarePresetOrderingComparands)`, so a bare date-range preset name in an ordering position IS refused there — `{ close_date: { $gt: 'today' } }` at `close_date.$gt`, and `{ close_date: { $between: ['today', '2026-12-31'] } }` at `close_date.$between.0`, including through a green `DashboardWidgetSchema` document at `filter.close_date.$between.0`. What those carriers never judge is a `$between` endpoint for BLANKNESS or for ARITY: on the same widget, `['2026-01-01', '']`, a one-element, a three-element and an empty `$between` all parse GREEN. The clause now says that, and names what the refinement does judge so the correction cannot be read the other way. `registry.ts` regenerated with `pnpm --filter @objectstack/spec gen:migration-registry`; ⛔ not hand-edited. `check:migration-registry` exits 0. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_013RDBh5DqXd2xnLwvHLgLFr --- .../18.filter-between-blank-endpoint-refused.ts | 15 ++++++++++++--- packages/spec/src/migrations/registry.ts | 15 ++++++++++++--- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/packages/spec/src/migrations/entries/semantic/18.filter-between-blank-endpoint-refused.ts b/packages/spec/src/migrations/entries/semantic/18.filter-between-blank-endpoint-refused.ts index e54625d685c..e0521409899 100644 --- a/packages/spec/src/migrations/entries/semantic/18.filter-between-blank-endpoint-refused.ts +++ b/packages/spec/src/migrations/entries/semantic/18.filter-between-blank-endpoint-refused.ts @@ -22,9 +22,18 @@ export const entry: SemanticMigration = { + 'a well-formed rule. A dashboard widget filter, a dashboard options-source filter, a ' + 'dataset filter, a dataset measure filter, a report runtimeFilter, a rollup ' + 'summaryOperations filter and a relatedListFilter are typed FilterConditionSchema, a ' - + 'loose record intersected with the $and / $or / $not shape that never judges an operator ' - + 'map. Every one of those documents parses GREEN and the endpoint is refused only when the ' - + 'filter is EXECUTED, at the engine comparand-shape door. ARITY is not what changed: a ' + + 'loose record intersected with the $and / $or / $not shape and carrying one refinement. ' + + '⚠️ That refinement DOES judge an operator map, so the slot is not unjudged: a bare ' + + 'date-range PRESET name in an ordering position — a $gt / $gte / $lt / $lte value, or a ' + + '$between endpoint — is refused at that position\'s own path, and it is refused through ' + + 'an otherwise GREEN document; the sibling entry filter-preset-ordering-comparand-refused ' + + 'is that rule, on this same carrier set. What these carriers never judge is a $between ' + + 'endpoint for BLANKNESS or for ARITY. Measured: a dashboard widget whose filter reads ' + + 'close_date $between 2026-01-01 and an empty string parses GREEN, as do a one-element, a ' + + 'three-element and an empty $between, while the same widget carrying a preset endpoint is ' + + 'refused at filter.close_date.$between.0. So for THIS shape every one of those documents ' + + 'parses GREEN and the endpoint is refused only when the filter is EXECUTED, at the engine ' + + 'comparand-shape door. ARITY is not what changed: a ' + 'blank bound is a well-formed TWO-element range one of whose elements means nothing', replacement: 'two endpoints that are present and non-empty — the bound the author meant, written out. ' diff --git a/packages/spec/src/migrations/registry.ts b/packages/spec/src/migrations/registry.ts index 363ca1de4ad..847a004713c 100644 --- a/packages/spec/src/migrations/registry.ts +++ b/packages/spec/src/migrations/registry.ts @@ -8380,9 +8380,18 @@ const step18: MigrationStep = { + 'a well-formed rule. A dashboard widget filter, a dashboard options-source filter, a ' + 'dataset filter, a dataset measure filter, a report runtimeFilter, a rollup ' + 'summaryOperations filter and a relatedListFilter are typed FilterConditionSchema, a ' - + 'loose record intersected with the $and / $or / $not shape that never judges an operator ' - + 'map. Every one of those documents parses GREEN and the endpoint is refused only when the ' - + 'filter is EXECUTED, at the engine comparand-shape door. ARITY is not what changed: a ' + + 'loose record intersected with the $and / $or / $not shape and carrying one refinement. ' + + '⚠️ That refinement DOES judge an operator map, so the slot is not unjudged: a bare ' + + 'date-range PRESET name in an ordering position — a $gt / $gte / $lt / $lte value, or a ' + + '$between endpoint — is refused at that position\'s own path, and it is refused through ' + + 'an otherwise GREEN document; the sibling entry filter-preset-ordering-comparand-refused ' + + 'is that rule, on this same carrier set. What these carriers never judge is a $between ' + + 'endpoint for BLANKNESS or for ARITY. Measured: a dashboard widget whose filter reads ' + + 'close_date $between 2026-01-01 and an empty string parses GREEN, as do a one-element, a ' + + 'three-element and an empty $between, while the same widget carrying a preset endpoint is ' + + 'refused at filter.close_date.$between.0. So for THIS shape every one of those documents ' + + 'parses GREEN and the endpoint is refused only when the filter is EXECUTED, at the engine ' + + 'comparand-shape door. ARITY is not what changed: a ' + 'blank bound is a well-formed TWO-element range one of whose elements means nothing', replacement: 'two endpoints that are present and non-empty — the bound the author meant, written out. ' From c06eec4029f5713e3169f312201f8c73da2a32f1 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 22 Sep 2026 23:44:44 +0000 Subject: [PATCH 5/8] chore(spec): changeset states what the FilterConditionSchema carriers do judge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The changeset never carried the false clause, but it described the carriers only by what is NOT judged at save. Beside the amended entry that reads as the inverted defect, so it now also states the rule that IS live on those slots — the bare date-range preset refusal — with the measurements and the green `DashboardWidgetSchema` document the entry cites. Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_013RDBh5DqXd2xnLwvHLgLFr --- .changeset/19523-blank-endpoint-entry-carriers.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.changeset/19523-blank-endpoint-entry-carriers.md b/.changeset/19523-blank-endpoint-entry-carriers.md index 33dd7d9f98b..02adfa238b4 100644 --- a/.changeset/19523-blank-endpoint-entry-carriers.md +++ b/.changeset/19523-blank-endpoint-entry-carriers.md @@ -9,5 +9,6 @@ Clause-②: no No behaviour moves: nothing about what the platform refuses changes, and no schema, accept set or export is touched. What changes is what the document tells a human to do about it. - **The split the entry now draws.** (a) Refused at save: the enforced `FieldOperatorsSchema` / `RangeOperatorSchema` copy itself, reached by a caller that validates a filter against it directly, and the `NormalizedFilter` AST. (b) Not judged at save: every stored metadata carrier — and that is **both** authoring dialects, not only the loose one. A dashboard widget filter, a dashboard options-source filter, a dataset filter, a dataset measure filter, a report `runtimeFilter`, a rollup `summaryOperations` filter and a `relatedListFilter` are typed `FilterConditionSchema`; a view, page or component filter **rule** is `ViewFilterRuleSchema`, whose value check judges arity and not blankness. For (b) the detectors are the grep the entry already prescribes and **executing** the surface, where the engine comparand-shape door answers `INVALID_FILTER` / 400 naming the index and the side. +- **What those same slots DO judge.** `FilterConditionSchema` carries `.superRefine(checkBarePresetOrderingComparands)`, so a bare date-range preset name in an ordering position is refused on exactly this carrier set: measured at this head, `{ close_date: { $gt: 'today' } }` is refused at `close_date.$gt` and `{ close_date: { $between: ['today', '2026-12-31'] } }` at `close_date.$between.0` — the latter through an otherwise green `DashboardWidgetSchema` document at `filter.close_date.$between.0`, where the blank endpoint on that same widget stays green. What these carriers never judge is a `$between` endpoint for **blankness** or for **arity**, and that narrower clause is what the entry now carries; the sibling entry `filter-preset-ordering-comparand-refused` states the same rule from its own side. - **The card's own control was wrong in the safe direction, and it was re-derived rather than inherited.** `ViewFilterRuleSchema.safeParse({ field, operator: 'between', value })` reads green on `['2026-01-01', '2026-12-31']` and green on `['2026-01-01', '']`, and refused on `['2026-01-01']` and on `['2026-01-01', { $field: 'x' }]` — so the rule dialect admits a blank endpoint, with two firing controls proving the same door is live. The same four verdicts hold through a fully-green `ListView` document at `filter.0.value`. - **Why this is a publishing change at all.** `src/migrations/entries/**` is generator input: it is not in this package's `files[]` (only `entries/README.md` ships) and nothing imports it but the generator and two pin tests. The registry is what `chain.ts` and `index.ts` import and what `dist` is built from, so the corrected prose reaches consumers only through it: measured on this branch, the old sentence read 4 hits across `dist/index.js`, `dist/index.mjs`, `dist/browser/index.js` and `dist/browser/index.mjs` before the regeneration and 0 after, and two sentences unique to the corrected text moved 0 → 4 in the same four files. From dc5a3078fa1b316dcc70f4eea5550086b1d7bbc1 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 23 Sep 2026 00:20:17 +0000 Subject: [PATCH 6/8] fix(spec): the sibling $between entry states what its FilterConditionSchema carriers do judge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `filter-between-field-reference-endpoint-refused` carried the same false clause the blank-endpoint entry shed last round, in its own spelling: that the FilterConditionSchema slots are "a loose record intersected with the $and / $or / $not shape that never judges an operator map". `FilterConditionSchema` carries `.superRefine(checkBarePresetOrderingComparands)` (`packages/spec/src/data/filter.zod.ts:1717`), so a bare date-range preset in an ordering position IS refused on exactly this carrier set. Measured against a freshly built `dist` through an otherwise-green `DashboardWidgetSchema` document: a preset endpoint is refused at `filter.close_date.$between.0` and a preset `$gt` comparand at `filter.close_date.$gt`, while a `{ $field }` reference endpoint — and a one-element, three-element or empty `$between` — parses GREEN. The clause is now the narrower truth it always meant: what these carriers never judge is a `$between` endpoint for a COLUMN REFERENCE or for ARITY, with the live preset rule named beside it so the correction cannot be read as the inverted defect. `acceptanceCriteria` stops offering "those slots are FilterConditionSchema" as the reason a document parses green. Registry regenerated with `gen:migration-registry`; no entry logic, schema, accept set or export moves. Claude-Session: https://claude.ai/code/session_013RDBh5DqXd2xnLwvHLgLFr Co-authored-by: Claude --- ...etween-field-reference-endpoint-refused.ts | 21 ++++++++++++++----- packages/spec/src/migrations/registry.ts | 21 ++++++++++++++----- 2 files changed, 32 insertions(+), 10 deletions(-) diff --git a/packages/spec/src/migrations/entries/semantic/18.filter-between-field-reference-endpoint-refused.ts b/packages/spec/src/migrations/entries/semantic/18.filter-between-field-reference-endpoint-refused.ts index 5607c811882..f8d012d1026 100644 --- a/packages/spec/src/migrations/entries/semantic/18.filter-between-field-reference-endpoint-refused.ts +++ b/packages/spec/src/migrations/entries/semantic/18.filter-between-field-reference-endpoint-refused.ts @@ -17,9 +17,18 @@ export const entry: SemanticMigration = { + 'NormalizedFilter AST the query faces validate against, plus the enforced FieldOperatorsSchema ' + 'copy itself. (b) NOT JUDGED AT SAVE — a dashboard widget filter, a dataset filter, a report ' + 'runtimeFilter, a rollup filter and a relatedListFilter: every one of those slots is typed ' - + 'FilterConditionSchema, a loose record intersected with the $and / $or / $not shape that never ' - + 'judges an operator map, so such a document parses GREEN and the endpoint is refused only when ' - + 'the filter is EXECUTED, at the runtime lowering door this change closes. ARITY is not what ' + + 'FilterConditionSchema, a loose record intersected with the $and / $or / $not shape and ' + + 'carrying one refinement. ⚠️ That refinement DOES judge an operator map, so the slot is not ' + + 'unjudged: a bare date-range PRESET name in an ordering position — a $gt / $gte / $lt / $lte ' + + 'value, or a $between endpoint — is refused at that position\'s own path, and it is refused ' + + 'through an otherwise GREEN document; the sibling entry ' + + 'filter-preset-ordering-comparand-refused is that rule, on this same carrier set. What these ' + + 'carriers never judge is a $between endpoint for a COLUMN REFERENCE or for ARITY. Measured: a ' + + 'dashboard widget whose filter reads close_date $between { $field: "contract.start" } and ' + + '2026-12-31 parses GREEN, as do a one-element, a three-element and an empty $between, while ' + + 'the same widget carrying a preset endpoint is refused at filter.close_date.$between.0. So ' + + 'for THIS shape every one of those documents parses GREEN and the endpoint is refused only ' + + 'when the filter is EXECUTED, at the runtime lowering door this change closes. ARITY is not what ' + 'changed: a reference endpoint is a well-formed TWO-element range one of whose elements no ' + 'backend resolves', replacement: @@ -86,8 +95,10 @@ export const entry: SemanticMigration = { + 'path ($between.0 / $between.1) — note the schema door names the INDEX, while the runtime ' + 'door additionally names the side, MIN or MAX. ⛔ Re-saving surfaces NOTHING for a dashboard ' + 'widget filter, a dataset filter, a report runtimeFilter, a rollup filter or a ' - + 'relatedListFilter: those slots are FilterConditionSchema and such a document parses green — ' - + 'measured, not assumed. For those carriers the detectors are the GREP above and EXECUTING the ' + + 'relatedListFilter: those slots are FilterConditionSchema, whose one refinement judges bare ' + + 'date-range preset comparands and nothing about a reference endpoint, so such a document ' + + 'parses green — measured, not assumed. For those carriers the detectors are the GREP above ' + + 'and EXECUTING the ' + 'surface, where the runtime lowering door now refuses with INVALID_FILTER / 400 naming the ' + 'index and the side. ⛔ Do not read a clean re-save of a dashboard as a completed sweep. A ' + 'range whose BOTH endpoints are references reports both positions at the schema door; the ' diff --git a/packages/spec/src/migrations/registry.ts b/packages/spec/src/migrations/registry.ts index 847a004713c..15927d08a2d 100644 --- a/packages/spec/src/migrations/registry.ts +++ b/packages/spec/src/migrations/registry.ts @@ -8495,9 +8495,18 @@ const step18: MigrationStep = { + 'NormalizedFilter AST the query faces validate against, plus the enforced FieldOperatorsSchema ' + 'copy itself. (b) NOT JUDGED AT SAVE — a dashboard widget filter, a dataset filter, a report ' + 'runtimeFilter, a rollup filter and a relatedListFilter: every one of those slots is typed ' - + 'FilterConditionSchema, a loose record intersected with the $and / $or / $not shape that never ' - + 'judges an operator map, so such a document parses GREEN and the endpoint is refused only when ' - + 'the filter is EXECUTED, at the runtime lowering door this change closes. ARITY is not what ' + + 'FilterConditionSchema, a loose record intersected with the $and / $or / $not shape and ' + + 'carrying one refinement. ⚠️ That refinement DOES judge an operator map, so the slot is not ' + + 'unjudged: a bare date-range PRESET name in an ordering position — a $gt / $gte / $lt / $lte ' + + 'value, or a $between endpoint — is refused at that position\'s own path, and it is refused ' + + 'through an otherwise GREEN document; the sibling entry ' + + 'filter-preset-ordering-comparand-refused is that rule, on this same carrier set. What these ' + + 'carriers never judge is a $between endpoint for a COLUMN REFERENCE or for ARITY. Measured: a ' + + 'dashboard widget whose filter reads close_date $between { $field: "contract.start" } and ' + + '2026-12-31 parses GREEN, as do a one-element, a three-element and an empty $between, while ' + + 'the same widget carrying a preset endpoint is refused at filter.close_date.$between.0. So ' + + 'for THIS shape every one of those documents parses GREEN and the endpoint is refused only ' + + 'when the filter is EXECUTED, at the runtime lowering door this change closes. ARITY is not what ' + 'changed: a reference endpoint is a well-formed TWO-element range one of whose elements no ' + 'backend resolves', replacement: @@ -8564,8 +8573,10 @@ const step18: MigrationStep = { + 'path ($between.0 / $between.1) — note the schema door names the INDEX, while the runtime ' + 'door additionally names the side, MIN or MAX. ⛔ Re-saving surfaces NOTHING for a dashboard ' + 'widget filter, a dataset filter, a report runtimeFilter, a rollup filter or a ' - + 'relatedListFilter: those slots are FilterConditionSchema and such a document parses green — ' - + 'measured, not assumed. For those carriers the detectors are the GREP above and EXECUTING the ' + + 'relatedListFilter: those slots are FilterConditionSchema, whose one refinement judges bare ' + + 'date-range preset comparands and nothing about a reference endpoint, so such a document ' + + 'parses green — measured, not assumed. For those carriers the detectors are the GREP above ' + + 'and EXECUTING the ' + 'surface, where the runtime lowering door now refuses with INVALID_FILTER / 400 naming the ' + 'index and the side. ⛔ Do not read a clean re-save of a dashboard as a completed sweep. A ' + 'range whose BOTH endpoints are references reports both positions at the schema door; the ' From e43b3c0a9952a93780dd1b85b3e244277c3b9ae9 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 23 Sep 2026 00:51:48 +0000 Subject: [PATCH 7/8] chore(spec): changeset records the sibling entry's correction and its reach The changeset described only `filter-between-blank-endpoint-refused`. The same PR now also corrects `filter-between-field-reference-endpoint-refused`, whose prose ships through the same regenerated registry into the same four `dist` bundles, so an upgrader reading the compiled CHANGELOG would otherwise not learn that entry moved. Claude-Session: https://claude.ai/code/session_013RDBh5DqXd2xnLwvHLgLFr Co-authored-by: Claude --- .changeset/19523-blank-endpoint-entry-carriers.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.changeset/19523-blank-endpoint-entry-carriers.md b/.changeset/19523-blank-endpoint-entry-carriers.md index 02adfa238b4..ad6cafa041b 100644 --- a/.changeset/19523-blank-endpoint-entry-carriers.md +++ b/.changeset/19523-blank-endpoint-entry-carriers.md @@ -2,7 +2,7 @@ '@objectstack/spec': patch --- -`packages/spec/src/migrations/registry.ts` — the shipped ADR-0087 semantic entry `filter-between-blank-endpoint-refused` told an upgrader that `FieldOperatorsSchema.safeParse` **and re-saving the document** both make the sweep mechanical, over a carrier list of six slots. Measured: re-saving is mechanical on **none** of the stored carriers, so an upgrader who re-saved every dashboard, dataset and report found nothing refused and concluded the sweep was done. The entry's `surface`, `reason` and `acceptanceCriteria` now say what is actually judged where (#19523). +`packages/spec/src/migrations/registry.ts` — the shipped ADR-0087 semantic entry `filter-between-blank-endpoint-refused` told an upgrader that `FieldOperatorsSchema.safeParse` **and re-saving the document** both make the sweep mechanical, over a carrier list of six slots. Measured: re-saving is mechanical on **none** of the stored carriers, so an upgrader who re-saved every dashboard, dataset and report found nothing refused and concluded the sweep was done. The entry's `surface`, `reason` and `acceptanceCriteria` now say what is actually judged where, and the sibling entry `filter-between-field-reference-endpoint-refused` — measured to carry the identical clause in its own spelling — is corrected the same way (#19523). Clause-②: no @@ -11,4 +11,5 @@ No behaviour moves: nothing about what the platform refuses changes, and no sche - **The split the entry now draws.** (a) Refused at save: the enforced `FieldOperatorsSchema` / `RangeOperatorSchema` copy itself, reached by a caller that validates a filter against it directly, and the `NormalizedFilter` AST. (b) Not judged at save: every stored metadata carrier — and that is **both** authoring dialects, not only the loose one. A dashboard widget filter, a dashboard options-source filter, a dataset filter, a dataset measure filter, a report `runtimeFilter`, a rollup `summaryOperations` filter and a `relatedListFilter` are typed `FilterConditionSchema`; a view, page or component filter **rule** is `ViewFilterRuleSchema`, whose value check judges arity and not blankness. For (b) the detectors are the grep the entry already prescribes and **executing** the surface, where the engine comparand-shape door answers `INVALID_FILTER` / 400 naming the index and the side. - **What those same slots DO judge.** `FilterConditionSchema` carries `.superRefine(checkBarePresetOrderingComparands)`, so a bare date-range preset name in an ordering position is refused on exactly this carrier set: measured at this head, `{ close_date: { $gt: 'today' } }` is refused at `close_date.$gt` and `{ close_date: { $between: ['today', '2026-12-31'] } }` at `close_date.$between.0` — the latter through an otherwise green `DashboardWidgetSchema` document at `filter.close_date.$between.0`, where the blank endpoint on that same widget stays green. What these carriers never judge is a `$between` endpoint for **blankness** or for **arity**, and that narrower clause is what the entry now carries; the sibling entry `filter-preset-ordering-comparand-refused` states the same rule from its own side. - **The card's own control was wrong in the safe direction, and it was re-derived rather than inherited.** `ViewFilterRuleSchema.safeParse({ field, operator: 'between', value })` reads green on `['2026-01-01', '2026-12-31']` and green on `['2026-01-01', '']`, and refused on `['2026-01-01']` and on `['2026-01-01', { $field: 'x' }]` — so the rule dialect admits a blank endpoint, with two firing controls proving the same door is live. The same four verdicts hold through a fully-green `ListView` document at `filter.0.value`. +- **The sibling entry carried the identical clause, and it is corrected here too.** `filter-between-field-reference-endpoint-refused` described the same `FilterConditionSchema` slots as a shape “that never judges an operator map”. Measured at this head through an otherwise-green `DashboardWidgetSchema` document: a `{ $field }` reference endpoint in `$between` parses GREEN — as do a one-element, a three-element and an empty `$between` — while a preset endpoint on that same widget is refused at `filter.close_date.$between.0` and a preset `$gt` comparand at `filter.close_date.$gt`. Its clause now names what those carriers never judge — a `$between` endpoint for a COLUMN REFERENCE or for ARITY — with the live preset rule named beside it, and its `acceptanceCriteria` stops offering “those slots are `FilterConditionSchema`” as the reason a document parses green. Reach, counted over the four bundles: the bare `never judges an operator map` read 4 before this change and 0 after — no carrier of it survives anywhere in the tree — while `a $between endpoint for a COLUMN REFERENCE or for ARITY` and the widget sentence quoting `contract.start` each moved 0 → 4, against a dark control (`… or for BLANKNESS`) reading 0 on both sides. - **Why this is a publishing change at all.** `src/migrations/entries/**` is generator input: it is not in this package's `files[]` (only `entries/README.md` ships) and nothing imports it but the generator and two pin tests. The registry is what `chain.ts` and `index.ts` import and what `dist` is built from, so the corrected prose reaches consumers only through it: measured on this branch, the old sentence read 4 hits across `dist/index.js`, `dist/index.mjs`, `dist/browser/index.js` and `dist/browser/index.mjs` before the regeneration and 0 after, and two sentences unique to the corrected text moved 0 → 4 in the same four files. From 242e102b746f8423ef3e34aaddd449d78b7846e0 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 23 Sep 2026 01:47:06 +0000 Subject: [PATCH 8/8] chore(spec): changeset scope words match their literal reading The preset-ordering rule rides FilterConditionSchema itself, so the changeset no longer says it is refused on "exactly" the seven stored slots: QuerySchema.where and BlueprintSummaryOperationsSchema.filter refuse it too. The removed clause is no longer said to survive nowhere in the tree, because this changeset quotes it. Three more sentences are narrowed to what was measured: the re-save sweep finds no blank endpoint refused, no export is added, removed or retyped while the exported registry's prose moves, and the registry is the one of the two sources that carries the corrected prose into dist. Claude-Session: https://claude.ai/code/session_013RDBh5DqXd2xnLwvHLgLFr Co-authored-by: Claude --- .changeset/19523-blank-endpoint-entry-carriers.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.changeset/19523-blank-endpoint-entry-carriers.md b/.changeset/19523-blank-endpoint-entry-carriers.md index ad6cafa041b..938504766fe 100644 --- a/.changeset/19523-blank-endpoint-entry-carriers.md +++ b/.changeset/19523-blank-endpoint-entry-carriers.md @@ -2,14 +2,14 @@ '@objectstack/spec': patch --- -`packages/spec/src/migrations/registry.ts` — the shipped ADR-0087 semantic entry `filter-between-blank-endpoint-refused` told an upgrader that `FieldOperatorsSchema.safeParse` **and re-saving the document** both make the sweep mechanical, over a carrier list of six slots. Measured: re-saving is mechanical on **none** of the stored carriers, so an upgrader who re-saved every dashboard, dataset and report found nothing refused and concluded the sweep was done. The entry's `surface`, `reason` and `acceptanceCriteria` now say what is actually judged where, and the sibling entry `filter-between-field-reference-endpoint-refused` — measured to carry the identical clause in its own spelling — is corrected the same way (#19523). +`packages/spec/src/migrations/registry.ts` — the shipped ADR-0087 semantic entry `filter-between-blank-endpoint-refused` told an upgrader that `FieldOperatorsSchema.safeParse` **and re-saving the document** both make the sweep mechanical, over a carrier list of six slots. Measured: re-saving is mechanical on **none** of the stored carriers, so an upgrader who re-saved every dashboard, dataset and report found no blank endpoint refused and concluded the sweep was done. The entry's `surface`, `reason` and `acceptanceCriteria` now say what is actually judged where, and the sibling entry `filter-between-field-reference-endpoint-refused` — measured to carry the identical clause in its own spelling — is corrected the same way (#19523). Clause-②: no -No behaviour moves: nothing about what the platform refuses changes, and no schema, accept set or export is touched. What changes is what the document tells a human to do about it. +No behaviour moves: nothing about what the platform refuses changes. No schema or accept set is touched, and no export is added, removed or retyped (`check:api-surface` reads the public surface unchanged); every line this change edits in `registry.ts` is a string literal inside the two step-18 entries that the exported `MIGRATIONS_BY_MAJOR` carries, so what moves in `dist` is prose. What changes is what the document tells a human to do about it. - **The split the entry now draws.** (a) Refused at save: the enforced `FieldOperatorsSchema` / `RangeOperatorSchema` copy itself, reached by a caller that validates a filter against it directly, and the `NormalizedFilter` AST. (b) Not judged at save: every stored metadata carrier — and that is **both** authoring dialects, not only the loose one. A dashboard widget filter, a dashboard options-source filter, a dataset filter, a dataset measure filter, a report `runtimeFilter`, a rollup `summaryOperations` filter and a `relatedListFilter` are typed `FilterConditionSchema`; a view, page or component filter **rule** is `ViewFilterRuleSchema`, whose value check judges arity and not blankness. For (b) the detectors are the grep the entry already prescribes and **executing** the surface, where the engine comparand-shape door answers `INVALID_FILTER` / 400 naming the index and the side. -- **What those same slots DO judge.** `FilterConditionSchema` carries `.superRefine(checkBarePresetOrderingComparands)`, so a bare date-range preset name in an ordering position is refused on exactly this carrier set: measured at this head, `{ close_date: { $gt: 'today' } }` is refused at `close_date.$gt` and `{ close_date: { $between: ['today', '2026-12-31'] } }` at `close_date.$between.0` — the latter through an otherwise green `DashboardWidgetSchema` document at `filter.close_date.$between.0`, where the blank endpoint on that same widget stays green. What these carriers never judge is a `$between` endpoint for **blankness** or for **arity**, and that narrower clause is what the entry now carries; the sibling entry `filter-preset-ordering-comparand-refused` states the same rule from its own side. +- **What those same slots DO judge.** `FilterConditionSchema` carries `.superRefine(checkBarePresetOrderingComparands)`, so a bare date-range preset name in an ordering position is refused on this carrier set: measured at this head, `{ close_date: { $gt: 'today' } }` is refused at `close_date.$gt` and `{ close_date: { $between: ['today', '2026-12-31'] } }` at `close_date.$between.0` — the latter through an otherwise green `DashboardWidgetSchema` document at `filter.close_date.$between.0`, where the blank endpoint on that same widget stays green. This carrier set is not the edge of the rule, because the refinement rides the schema rather than these slots: `QuerySchema` refuses `where: { close_date: { $gt: 'today' } }` at `where.close_date.$gt`, and `BlueprintSummaryOperationsSchema` refuses the same map as its `filter` at `filter.close_date.$gt`, while `$gt: '2026-01-01'` stays green through both. What these carriers never judge is a `$between` endpoint for **blankness** or for **arity**, and that narrower clause is what the entry now carries; the sibling entry `filter-preset-ordering-comparand-refused` states the same rule from its own side. - **The card's own control was wrong in the safe direction, and it was re-derived rather than inherited.** `ViewFilterRuleSchema.safeParse({ field, operator: 'between', value })` reads green on `['2026-01-01', '2026-12-31']` and green on `['2026-01-01', '']`, and refused on `['2026-01-01']` and on `['2026-01-01', { $field: 'x' }]` — so the rule dialect admits a blank endpoint, with two firing controls proving the same door is live. The same four verdicts hold through a fully-green `ListView` document at `filter.0.value`. -- **The sibling entry carried the identical clause, and it is corrected here too.** `filter-between-field-reference-endpoint-refused` described the same `FilterConditionSchema` slots as a shape “that never judges an operator map”. Measured at this head through an otherwise-green `DashboardWidgetSchema` document: a `{ $field }` reference endpoint in `$between` parses GREEN — as do a one-element, a three-element and an empty `$between` — while a preset endpoint on that same widget is refused at `filter.close_date.$between.0` and a preset `$gt` comparand at `filter.close_date.$gt`. Its clause now names what those carriers never judge — a `$between` endpoint for a COLUMN REFERENCE or for ARITY — with the live preset rule named beside it, and its `acceptanceCriteria` stops offering “those slots are `FilterConditionSchema`” as the reason a document parses green. Reach, counted over the four bundles: the bare `never judges an operator map` read 4 before this change and 0 after — no carrier of it survives anywhere in the tree — while `a $between endpoint for a COLUMN REFERENCE or for ARITY` and the widget sentence quoting `contract.start` each moved 0 → 4, against a dark control (`… or for BLANKNESS`) reading 0 on both sides. -- **Why this is a publishing change at all.** `src/migrations/entries/**` is generator input: it is not in this package's `files[]` (only `entries/README.md` ships) and nothing imports it but the generator and two pin tests. The registry is what `chain.ts` and `index.ts` import and what `dist` is built from, so the corrected prose reaches consumers only through it: measured on this branch, the old sentence read 4 hits across `dist/index.js`, `dist/index.mjs`, `dist/browser/index.js` and `dist/browser/index.mjs` before the regeneration and 0 after, and two sentences unique to the corrected text moved 0 → 4 in the same four files. +- **The sibling entry carried the identical clause, and it is corrected here too.** `filter-between-field-reference-endpoint-refused` described the same `FilterConditionSchema` slots as a shape “that never judges an operator map”. Measured at this head through an otherwise-green `DashboardWidgetSchema` document: a `{ $field }` reference endpoint in `$between` parses GREEN — as do a one-element, a three-element and an empty `$between` — while a preset endpoint on that same widget is refused at `filter.close_date.$between.0` and a preset `$gt` comparand at `filter.close_date.$gt`. Its clause now names what those carriers never judge — a `$between` endpoint for a COLUMN REFERENCE or for ARITY — with the live preset rule named beside it, and its `acceptanceCriteria` stops offering “those slots are `FilterConditionSchema`” as the reason a document parses green. Reach, counted over the four bundles: the bare `never judges an operator map` read 4 before this change and 0 after, and no entry carries it any more: in the tree it survives only in this changeset, which quotes the removed clause — while `a $between endpoint for a COLUMN REFERENCE or for ARITY` and the widget sentence quoting `contract.start` each moved 0 → 4, against a dark control (`… or for BLANKNESS`) reading 0 on both sides. +- **Why this is a publishing change at all.** `src/migrations/entries/**` is generator input: it is not in this package's `files[]` (only `entries/README.md` ships) and nothing imports it but the generator and two pin tests. The registry is what `chain.ts` and `index.ts` import and what `dist` is built from, so of the two, only the registry carries the corrected prose into `dist`: measured on this branch, the old sentence read 4 hits across `dist/index.js`, `dist/index.mjs`, `dist/browser/index.js` and `dist/browser/index.mjs` before the regeneration and 0 after, and two sentences unique to the corrected text moved 0 → 4 in the same four files.