Skip to content

fix(core)!: the value data source refuses a plain-object comparand under a $ operator, as under the AST operators - #35604

Merged
os-zhuang merged 3 commits into
mainfrom
claude/issue-35493-value-source-operator-map-comparand
Nov 20, 2026
Merged

os-zhuang merged 3 commits into
mainfrom
claude/issue-35493-value-source-operator-map-comparand

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb

Requested by Tesla · project thread
Fixes #35493
Clause-②: no (narrowing)
Metadata-protocol: none
Skills-docs: none — no skill or docs page teaches a plain-object comparand under a $ operator on the value data source; the spec's comparand door already refuses that comparand on every server face, so there is nothing to un-teach

维护者速读

  1. 用户能看到什么变化:使用内嵌数据(不连服务器)的列表、看板等视图,如果筛选条件把"一个对象"当作比较值(例如"负责人不等于某个对象"),以前会悄悄返回全部或部分记录,现在不返回记录,并在浏览器控制台说明原因;正常的筛选不受影响。
  2. 为什么做:收口上一张"按关联字段钻取明细"修复的评审发现——内嵌数据源的一种筛选写法仍然在平台本应拒绝的地方放行数据,和服务器端的行为不一致。
  3. 出错会怎样:受影响的只有开发者和预览场景里写错的筛选条件,它们会显示为空列表而不是错误的数据;直接回滚本次改动即可恢复原来的行为。
  4. 要你做什么:这是申报的契约收窄,按 chore(governance): the guard scripts join the governed register, .claude/** lands by declared rule-change, a declared narrowing waits for the maintainer #35610 需要你在 GitHub 上批准一次;批准后席位落地。
  5. 席位意见:通过,没有必改项(席位记录见本 PR 评论)。

What changes

ValueDataSource (ui/packages/core, the in-memory provider: 'value' source) now refuses a comparand that is a plain object (prototype Object.prototype or null) with no $ key, NON-EMPTY or EMPTY ({}), as the whole comparand or as a list member, in both its object ($) and its AST dialect, from one builder.

  • One builder, both arms. plainObjectComparandRefusal (new, beside nestedRelationComparandKey and nestedRelationRefusalReason) judges the WHOLE comparand and, for a list operator, each MEMBER. A non-empty object gets the nested-relation sentence, which names its first key; an empty one, which has no key to name, gets its own: filter comparand on field 'f' is an empty object ({}), which is neither a comparison value nor a nested relation constraint (contract review S1, route a). matchesComparisonNode (AST arm) and matchesDollarOperator ($ arm) both call it; the $ arm calls it after the two array guards and before the { $field } resolution, the AST arm's order. { f: {} } as a field's WHOLE condition is untouched: it is the zero-key condition the converter already refuses, and a pin holds that.

  • Operator set, per operator. Measured on b65488a8 before the change, with { owner: { OP: { id: 'u1' } } } (the rows for {} are the same, except where noted):

    Operator Before Now
    $ne, $notContains (whole) every row refused
    $gt / $gte (whole) the rows sorting after the text [object Object] refused
    $lt / $lte (whole) the rows sorting before the text [object Object] refused
    $eq, $contains, $startsWith, $endsWith (whole) no row, nothing logged refused
    $in, $nin, $between (object as the whole comparand) no row, nothing logged refused
    $nin (object as a list member) every row refused
    $in (object as a list member) the rows its other members matched refused
    $between (object as an endpoint) the text range from [object Object] to the other endpoint ([{ id: 'u1' }, 'zzz'] answers a 'zeta' row) refused
    AST in / nin / between (object as a list member), AST any operator with {} whole as their $ twins above refused
    $icontains refused by the text comparand door refused by the shared builder, as the AST arm's icontains already was
    $empty refused by its boolean-flag arm unchanged: keeps its own sentence
    $null, $exists flag read for truthiness unchanged, not in scope (see Acceptance notes)
    keys outside FILTER_OPERATORS ($regex, $like, a non-$ key) refused by the default arm unchanged

    The set is the spec's FILTER_OPERATORS minus the three flag operators, the $ twin of the AST arm's AST_NO_COMPARAND_OPERATORS exclusion; a test pins it equal.

  • Class instance (card comment 7012153506). A class instance given as a field's WHOLE condition, { created: someMomentDate }, is data: loweringConditionRefusal (renamed from zeroKeyConditionRefusal) now routes an object that is not plain to the converter, as it already routed a zero-key RegExp / Map / Set, so the whole filter is refused up front in the converter's exotic-comparand sentence instead of a nested-relation sentence per own key, per row. Alone it answered no row before too; inside $or it moves: { $or: [{ owner: 'Alpha' }, { age: new Amount(30) }] } answered the 'Alpha' row and now answers none, as the zero-key condition and the server do. The prototype test is the new shared isPlainObject, which nestedRelationComparandKey now calls too. A class instance under an operator still compares through valueOf (ruled).

  • Bounded in-place fix (declared). The AST arm had the same list-member hole (['owner', 'nin', [{ id: 'u1' }]] answered every row) and the same empty-object hole (['owner', '!=', {}] answered every row). It is the same defect class, in the same file, from the same builder, in the same gate family, so it is fixed here rather than filed; the four conditions of the in-place exemption hold.

Producer side. The comparand is authored data (a $filter handed to find); the spec's comparand door normalizeFilterComparandTypes already refuses it on the server path, so this is the consumer face failing open where the contract refuses, not a consumer tolerance. No spec or converter change.

Compile surfaces (filter semantics)

Each face was checked for a plain-object comparand under a $ operator. The server faces all sit behind the spec's comparand door, cited by symbol (no line addresses, per ui/AGENTS.md #11):

Face Verdict Evidence
1 driver-sql applyFilterCondition (sqlite-wasm, turso local inherit) already compliant every where passes the engine's door first: lowerWhereFilterArray in packages/objectql/src/engine-top-level.ts calls normalizeFilterComparandTypes on the object form, and parseFilterAST runs the same walk on the array form
2 driver-turso RemoteTransport buildWhereSQL already compliant same engine door (lowerWhereFilterArray)
3 service-analytics compileScopedFilterToSql already compliant read-scope-sql.ts calls normalizeFilterComparandTypes(scope, undefined, 'readScope')
4 service-analytics lowerAnalyticsWhere already compliant filter-normalizer.ts normalizeWhereComparandTypes hands every field entry to normalizeFilterComparandTypes
5 formula matchesFilterCondition already compliant measured on the built package: $ne, $notContains, $gt and a $nin member with { owner: 'u1' } all answer false against a text row (no row served)
half-face objectql applyHaving / matchesHaving already compliant engine-delete-and-aggregate.ts passes query.having through normalizeFilterComparandTypes(…, 'having')
6 driver-memory checkCondition already compliant behind the engine door (lowerWhereFilterArray)
7 driver-mongodb translateFieldOperators already compliant behind the engine door (lowerWhereFilterArray)

Measured with the spec doors directly: normalizeFilterComparandTypes answers INVALID_FILTER for { f: { $ne: { owner: 'u1' } } }, $gt, $null, for {} under $ne / $notContains / $gt, and for a plain-object member ({ owner: 'u1' } or {}) under $in / $nin / $between; a WHOLE object under a list operator ({ f: { $in: {} } }) passes that door and is refused by assertListComparandShapes with INVALID_FILTER. The formula face answers false for the {} cases too.

Tests

All readings are on head e543630c unless named.

  • pnpm --filter @object-ui/core test: Test Files 243 passed (243), Tests 4577 passed, 27 skipped (4604).
  • pnpm --filter @object-ui/core type-check: exit 0 (both tsc --noEmit and tsc -p tsconfig.test.json; the edited test files are in the test program).
  • Adapters directory alone: Test Files 15 passed (15), Tests 530 passed (530).
  • Pins: a top-level describe at the end of ValueDataSource.dollarFilterVocabulary.test.ts — for a non-empty plain object 14 per-operator whole-comparand refusals and 3 list-member refusals; for {} the same 14 + 3 in its own sentence; a pin that { owner: {} } as a WHOLE condition keeps the converter's zero-key refusal; 6 object-form vs lowered-AST-form same-sentence pins ($ne {}, $nin [{}], $ne, $notContains, $gt, $nin member); CONTROL legs for scalars, Date, { $field }, a class instance with own keys under $gt / $gte / $lt / $lte; the class instance as a whole condition (alone and in $or); $empty's own sentence; a non-operator key's own sentence. In ValueDataSource.astFilterVocabulary.test.ts: 3 list-member refusals and 5 {} refusals (!=, >, not_contains whole; nin, between member). The source exposes no code / status (refusals are logged sentences), so each pin asserts the row set and the refusal sentence.
  • Dogfood battery on e543630c, closure built first: os-verify-lock: VERDICT command-exit 0, Test Files 482 passed, 3 skipped (485), Tests 4092 passed, 68 skipped (4160), no failure. (Round 1 on 1bc51be2: the same counts.)
Ablations (one per changed behaviour, committed first, through scripts/ablation-replace.mjs; each restored to the HEAD blob with an empty git diff HEAD)

The tests import ../ValueDataSource by relative path, so the subject resolves to src/, not dist/; no build leg.

  1. $ arm refusal off (anchor DOLLAR_COMPARAND_OPERATORS.has(operator) replaced by false), on 1bc51be2: 21 failed, 161 passed. Red: all 14 whole-comparand cases, all 3 list-member cases, all 4 same-sentence pins.
  2. AST list-member judging off (the builder's listOperator argument AST_LIST_COMPARAND_OPERATORS.has(operator) replaced by false), on 1bc51be2: 4 failed, 178 passed. Red: the 3 AST list-member cases and the $nin member same-sentence pin.
  3. Class-instance routing off (... > 0 && isPlainObject(condition)) continue; back to ... > 0) continue;), on 1bc51be2: 1 failed, 105 passed. Red: the class-instance whole-condition case.
  4. Empty-object refusal off (anchor if (isPlainObject(value) && Object.keys(value).length === 0) { replaced by if (false) {), on e543630c: 24 failed, 183 passed. Red: the 14 + 3 $ {} cases, the 5 AST {} cases and the 2 {} same-sentence pins; the whole-condition { owner: {} } pin stays green, so that path does not run through the builder.
Local gates (derived with dispatch-gates --commands over this diff, 38 families)

On e543630c: all 38 exit 0, reconciled with --ran: "38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code and none of them is 3)". pnpm --dir ui exec vitest run scripts/ first answered exit 1 in this fresh worktree: unit-registry-absence-collision.test.ts could not resolve @objectstack/client, which was not yet built (only the @object-ui/core closure was); re-run after the check:type-check-debt closure build, it answered Test Files 171 passed, 2 skipped (173), exit 0. CI runs the full farm.

Acceptance notes

  • Out of scope, reported to the seat: $null / $exists read a non-boolean flag for its truthiness on the value source ({ f: { $null: { owner: 'u1' } } } answers the IS NULL rows), and convertFiltersToAST lowers it the same way (['f', 'is_null', true]), while the spec's door refuses it with INVALID_FILTER. Refusing it here alone would split the object form from its lowered form, so a boolean door for both flags (as $empty has) belongs on its own card across converter and both arms.
  • Out of scope, noted: a non-array comparand under $in / $nin / $between that is not an object ({ f: { $nin: 'x' } }) still answers no row in silence on the value source; the spec leaves that shape to the engine's list-shape gate, not the comparand door.
  • Contract review 7030429102 (PASS, two should-fix) folded in on e543630c: S1 by route (a), the empty plain object refused by the shared builder on both arms; S2 in the changeset (the $in / $between list-member movements, both dialects, and the class-instance $or movement replacing the false "same row set" sentence) and in the table above; nits N1 (the DOLLAR_COMPARAND_OPERATORS jsdoc says it holds all of FILTER_OPERATORS and the call site subtracts the flags), N2 (the AST test comment for between), N3 ($lt / $lte answered the rows sorting before the text), N4 (a whole object under a list operator is refused server-side by assertListComparandShapes). N5 left as the record asks.
  • Fixture re-spelled, not weakened: ValueDataSource.nonStringStoredValue.test.ts's "a comparand JSON cannot serialise is refused" case used a cyclic PLAIN object under $icontains; the new builder refuses that earlier, as a nested relation, so the case now uses a cyclic class instance, which still reaches the text door's comparand description it exists to pin.
  • The spec door also refuses a class instance under an ordering operator; this face compares it through valueOf, as ruled on the card. Recorded, not re-opened.
  • Owed: one CONTRACT_REVIEW_TIER review (narrowing of a published export).

Verification

Read first, by risk:

  1. ui/packages/core/src/adapters/ValueDataSource.ts, plainObjectValueRefusal / plainObjectComparandRefusal and the block in matchesDollarOperator after the list-member { $field } guard: the population (non-empty and empty plain objects with no $ key) and the operator set it judges (DOLLAR_COMPARAND_OPERATORS minus DOLLAR_FLAG_OPERATORS).
  2. The same file, loweringConditionRefusal: the routing line now also routes a non-plain object with own keys.
  3. The new top-level describe at the end of ValueDataSource.dollarFilterVocabulary.test.ts.

Two-minute check: pnpm --dir ui exec vitest run packages/core/src/adapters/__tests__/ValueDataSource.dollarFilterVocabulary.test.ts — expect every case green, including the 14 per-operator whole-comparand refusals and 3 list-member refusals for a non-empty object, the same 14 + 3 for {}, and the CONTROL legs.


Generated by Claude Code


Body refreshed 2026-11-20T05:32Z for rework round 1 (S1, S2 and nits of contract review 7030429102), head e543630.

…der a $ operator, as under the AST operators

One builder, nestedRelationComparandRefusal, serves both arms: the whole
comparand for every declared operator that reads one, and each member of an
in / nin / between list. A class instance as a field's whole condition is
routed to the converter as a value instead of being read as an operator map.

Claude-Session: https://claude.ai/code/session_01L9qibvVRcFWKrfWeG5jzPb
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb

Final green head: 1bc51be2b5a6d115667fe8426f0f24c98fb44e15 (2026-11-20T04:06Z): 45 check-runs success, 13 skipped, 0 failed or pending; mergeable clean. Dogfood battery on this head: 482 passed / 3 skipped files, 0 failures (os-dev-report 7030059306). L1 requested from L1-a; the narrowing owes one CONTRACT_REVIEW_TIER review, run by this area as an isolated reviewer.

@objectstack-fleet objectstack-fleet Bot added the needs:contract-review Marker only — PR awaits its at-tier Contract review PASS; no check reads it, the record decides label Nov 20, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-tesla · session_01L9qibyQBB3KuDoNobNq9LH

席位核对

L1: ACCEPT (L1-a, for area d7-C) at head 1bc51be2b5a6d115667fe8426f0f24c98fb44e15, read 2026-11-20T04:10Z.

Checklist (l1-review-checklist.md), read on GitHub and in the head tree:

  • Shape. Draft, base main, Fixes #35493 is the only closing keyword and the card is delivered whole. Clause-②: no (narrowing), Metadata-protocol: none and a Skills-docs: none — REASON line sit at line start; the narrowing arm owes that third line and it is there. The ! in the title matches the BREAKING banner.
  • Scope. All 5 files sit inside claim 7014000661's surface (ValueDataSource.ts, its tests under adapters/, one .changeset/35493-*.md). No content/docs/releases/ edit.
  • Changeset. '@object-ui/core': patch is right for a non-protocol breaking change (Metadata-protocol: none), per AGENTS.md step 3, which keeps the BREAKING banner and the ADR-0087 disposition. Exactly one adr-0087: marker (not-required (no-migration-prescription)). Its reason holds: no key, export shape or stored value moves, only the row set and the logged reason. The FROM / TO / fix lines are present.
  • Prose checked sentence by sentence against the diff and pins.
    • FROM row by row: $ne / $notContains / $nin-member answered every row, ordering answered rows past [object Object], the rest answered none in silence, and the AST nin member answered every row. Matches the PR body's measured table and ablations 1 and 2.
    • TO "every operator of FILTER_OPERATORS except the three flag operators": DOLLAR_COMPARAND_OPERATORS is new Set(FILTER_OPERATORS) minus DOLLAR_FLAG_OPERATORS ($null $exists $empty). The spec list is 18 entries, so 15 are judged, and the test "the operator set is the declared vocabulary minus the three flag operators" pins that equality. "and for each member of an $in / $nin / $between list": DOLLAR_LIST_COMPARAND_OPERATORS is exactly those three.
    • The quoted refusal sentence is nestedRelationRefusalReason's output, the one builder both arms call.
    • The class-instance whole-condition line matches loweringConditionRefusal's new isPlainObject gate and ablation 3.
    • "Not moved": the scalar, Date, { $field } and class-instance-under-operator CONTROL legs, $empty's own sentence, and the non-operator key's own refusal. All are pinned.
  • Code.
    • The $ arm judges after the two list-member { $field } guards and before the whole-comparand { $field } resolution, the AST arm's order, so a { $field } reference (it has a $ key) is never taken for a nested relation.
    • isPlainObject is the prototype test nestedRelationComparandKey already made, now shared, so a Date or class instance stays data on both arms.
    • The rename zeroKeyConditionRefusal → loweringConditionRefusal is internal (not exported), and both call sites are updated.
  • Deviation 1 accepted: the bounded in-place fix of the AST list-member hole. All four conditions hold:
    • same defect class (a plain-object comparand read as a value);
    • mechanical (one listOperator argument to the shared builder);
    • unclaimed by anyone else (seat 5's open PRs touch other files);
    • same gate family (the same adapters test files).
      It is also inside the claim's file surface, named in the PR body with evidence (ablation 2: the 3 AST list-member pins plus the $nin member same-sentence pin go red), and carried in the changeset's FROM/TO, so the narrowing it adds is declared, not hidden.
  • Deviation 2 accepted: compile-surface evidence by symbol, not file:line. That is what ui/AGENTS.md Migrate documentation site to Fumadocs with monorepo structure and shared content #11 requires: a PR body "has no same file, so every line address in it is the banned cross-file form". I spot-checked the citations: normalizeFilterComparandTypes is the spec door, and FILTER_OPERATORS in packages/spec/src/data/filter.zod.ts is the 18-entry list the set derives from.
  • The edited fixture. nonStringStoredValue's cyclic value moved from a plain object to a class instance. It is not weakened: a cyclic plain object is now refused earlier, by the very builder this PR adds, so only a non-plain cyclic value still reaches the text door that case pins. The case keeps asserting no rows plus that door's description.
  • Refusal pins. This source has no code / status envelope (refusals are logged sentences, not thrown), so asserting the row set plus the exact sentence and warn call count is the strongest available form. Accepted.
  • Ablations. Three, one per changed behaviour: 21, 4 and 1 red respectively, controls green, each restored blob-equal. The tests import ../ValueDataSource from src, so there is no dist leg.
  • Gates. CI at 1bc51be2: every check run success or skipped, including Lint & Repo Gates, TypeScript Type Check, Type Check UI, Lint UI, Test UI and both Check Changeset runs; the second one finished success while I read. Narrowing ⇒ dogfood_battery checked: os-dev-report 7030059306 pins it to 1bc51be2, a full run, 482 files passed and 3 skipped, no failure.
  • Out of scope, agreed. $null / $exists flag truthiness, and a non-array comparand under the list operators. Both are reported to the seat, and the $null one belongs on its own card across the converter and both arms.

Contract review. The (narrowing) declaration owes one CONTRACT_REVIEW_TIER L2 at this head, over the full diff outside the prose faces. d7-C is running it. needs:contract-review stays on until a same-shape PASS names 1bc51be2. Landing route per d7-C's note: after the PASS, this goes to the seat thread (authorized approval owed once #35610 merges), not straight to the queue.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 1bc51be2b5a6d115667fe8426f0f24c98fb44e15
Local-runs: none
Scope: ui/packages/core/src/adapters/ValueDataSource.ts, ui/packages/core/src/adapters/tests/ValueDataSource.astFilterVocabulary.test.ts, ui/packages/core/src/adapters/tests/ValueDataSource.dollarFilterVocabulary.test.ts, ui/packages/core/src/adapters/tests/ValueDataSource.nonStringStoredValue.test.ts, .changeset/35493-value-source-operator-map-comparand.md + ui/packages/core/src/utils/filter-converter.ts, ui/packages/core/src/utils/text-comparand.ts, packages/spec/src/data/filter-comparand-type.ts, packages/spec/src/data/filter-comparand-operators.ts, packages/spec/src/data/filter-comparand-shape.ts, packages/spec/src/data/filter.zod.ts, packages/objectql/src/engine-top-level.ts, docs/adr/0087-metadata-protocol-upgrade-contract.md
Security-touching: no

Narrowing face: PR #35604 for card #35493, Clause-②: no (narrowing) on the PR body and on the changeset. Inputs read: the card body and its five comments (triage 7009546216, addition 7012153506, claim 7014000661, dev report 7030059306, progress 7030062349), the PR body and file list, the net diff against main (five files, +337/-23; merge base b65488a8, main at a3a74f27; ui/packages/core/** and packages/spec/src/data/filter-comparand-*.ts do not differ between the two), and the head's 63 check-runs: 46 success, 17 skipped, none red, none pending. Ten of the eleven required contexts read success and Build Core reads skipped. Every row-set statement below is read from the named code path at the head or at main; nothing was run.

① Derived judgments

What the head newly refuses, read from isPlainObject, nestedRelationComparandKey, nestedRelationComparandRefusal and their two call sites. "The object" is a NON-EMPTY plain object (prototype Object.prototype or null) with no own key starting with $.

  1. $ dialect, the object as the WHOLE comparand of $eq $ne $gt $gte $lt $lte $in $nin $between $contains $notContains $startsWith $endsWith $icontains (the spec's FILTER_OPERATORS minus $null / $exists / $empty). Right. The platform refuses the same filter: normalizeFilterComparandTypes at the eleven scalar operators (SCALAR_COMPARAND_OPERATORS into judgeLiteralComparand), assertListComparandShapes at the three list operators (a non-list comparand). Rows that move: $ne and $notContains from every row to none, the four orderings from a text-order subset to none. The other eight answered no row already, so there the log line is what moves, and for $icontains only the sentence.
  2. $ dialect, the object as a MEMBER of an $in / $nin / $between list. Right: normalizeFilterComparandTypes judges each member as a literal and refuses it. Rows that move: $nin from every row to none, $in from the rows its other members match to none, $between from a text-order range to none.
  3. AST dialect, the same member under in / nin / between (and the not in spelling). Right: parseFilterAST runs the same two doors on the array form. This is the declared in-place fix (③).
  4. Object dialect, a NON-plain object carrying own keys as a field's whole condition ({ created: someMomentDate }): the whole filter is refused up front in the converter's exotic-comparand sentence, where each own key used to be refused per row as a nested relation. Right against comment 7012153506 (a class instance is data, by the prototype test) and against the spec, whose normalizeFieldSpec judges it as an implicit-equality literal and refuses it. One row set moves there and is not declared (S2).

Not moved, each read in the tree — right: scalar, Date and { $field } comparands; a class instance under an operator (not plain, so the builder passes it and the orderings still compare it through valueOf); the three flag operators ($empty keeps its boolean-flag refusal, $null / $exists still read truthiness); a key outside FILTER_OPERATORS (the builder is gated on membership, so $like, $regex, $field and a non-$ key keep the sentences they had).

Public surface — right: no export is added, removed or renamed. ValueDataSource and ValueDataSourceConfig stay the file's only exports; isPlainObject, nestedRelationComparandRefusal, the two operator sets and loweringConditionRefusal are module-private. FILTER_OPERATORS is a new value import from @objectstack/spec/data, the source the file already imports from.

Width. No wider than the platform: every filter in 1–4 is refused by one of the two spec doors, so nothing the platform serves is taken away at this consumer. No wider than the card's ruling: the title names seven operators, but the Done-when is the AST arm's refusal from one builder, and that arm judges every operator that reads the slot. The seven operators beyond the title move no row on a whole comparand; the only rows they move are the $in / $between member rows of item 2 and their AST twins, inside the spec door's member refusal. The refusal is NARROWER than the spec door in one place inside the declared population (S1) and in three outside it (④, for a card).

② Semver level

  • Level: '@object-ui/core': patch is right. Metadata-protocol: none holds (no schema key, accepted value or metadata type moves; the spec doors already refuse the comparand), none takes patch, and a breaking non-protocol change keeps its banner and its disposition at that level. The break is declared three ways: the ! summary, the **BREAKING** paragraph, the (narrowing) arm.
  • Clause-②: no (narrowing) and Metadata-protocol: none stand line-initial on both the PR body and the changeset, and agree with the claim comment.
  • ADR-0087 marker: not-required (no-migration-prescription) is the right disposition. Nothing a migration could rewrite moves (no key, stored row, registry id or export shape), none of the checked-fact categories applies, and the exemption stays open to a changeset declaring none. Check Changeset and Lint & Repo Gates read success on the head. The marker's reason names the object $filter alone; the AST dialect moves too (item 3), which the S2 edit can carry.
  • FROM/TO, sentence by sentence. True as written: the FROM for $ne / $notContains / a $nin member (every row), for the orderings in the $gt direction, for $eq / $contains / $startsWith / $endsWith and a whole object under $in / $between (no row, nothing logged), the AST nin sentence, the logged sentence (equal to nestedRelationRefusalReason), the operator set, the "Not moved" paragraph and the caller's fix. Not true as written: the declared population (S1) and two row-set movements (S2). Wording only: N3, N4.

③ Boundary flags

  • Declared bounded in-place fix (the AST arm's list-member hole): accepted. Same defect class, same file, same builder, inside the claimed file surface, declared in the PR body and the changeset, pinned by three AST cases and a nin control, and inside the spec door's member refusal.
  • Rename zeroKeyConditionRefusal to loweringConditionRefusal: not a published-surface change. The function carries no export at main or at the head, and at main the name occurs only inside this file plus one jsdoc sentence in packages/spec/src/conversions/entries/18/page-component-filter-record-to-rule-array.ts (N5).
  • Class-instance routing: right in kind (① item 4). The routing test is isPlainObject, the one nestedRelationComparandKey now shares, and the refusal is the converter's own, re-seated through loweringRefusalReason exactly as the zero-key condition is. Its $or consequence is S2.
  • Out-of-scope finding, $null / $exists flag comparands: fileable, a reproducible defect with contract text. SpecialOperatorSchema declares both flags z.boolean(), the comparand-type door refuses a plain-object flag (both operators are in SCALAR_COMPARAND_OPERATORS), and matchesDollarOperator reads the flag's truthiness. Its reach is wider than the report's line: convertFiltersToAST lowers both by truthiness to is_null / is_not_null with a true placeholder before any wire query, so on the routes that lower through it a server-backed source answers the null-ness rows too and the server's door never sees the flag. The dev's reason for not fixing it here holds: refusing on the value source alone would split the object form from its lowered form. One card across the converter and both arms, as $empty has.
  • Out-of-scope note, a non-list non-object comparand under $in / $nin / $between ({ f: { $nin: 'x' } }): the row set is closed (no row), only the log line is missing, and the platform refuses the shape at assertListComparandShapes. After this head a plain object in that slot is logged and a string is not. It fits the residual card named under ④ rather than a card of its own.
  • open_questions: none raised. The six declared deviations (trailer form, footer form, citing by symbol, the in-place fix, the vitest spelling, the second check:type-check-debt run) change nothing this face judges. The PR author is objectstack-fleet[bot].
  • SQL push-down: no finding. The diff adds no query, no id materialisation and no in-app join; it makes an in-memory matcher refuse a relation constraint instead of reading it as a value.

④ Design judgment

Against the card's Done-when and comment 7012153506: one builder for both arms, a pin per operator, CONTROL legs for a scalar, a Date and a { $field } reference, the narrowing declaration with BREAKING and an ADR-0087 marker, and Dogfood Regression Gate success on the head — all present. The class instance is read as data by the prototype test.

  • ValueDataSource.ts — holds against the code it cites. The $ arm calls the builder after the two array guards and before { $field } resolution, the AST arm's order; the operator set is derived from the spec's FILTER_OPERATORS, so a later declared operator is judged without an edit here; nestedRelationComparandKey is behaviour-preserving after the isPlainObject extraction. Tried: every $ operator that reads a comparand (none is missed; $null / $exists read a flag, ③); every comparand the builder refuses, against the two spec doors (none is served by the platform); each CONTROL (scalar, Date, { $field }, a class instance under the four orderings all still answer). What gives way is the edge of the declared population (S1).
  • ValueDataSource.dollarFilterVocabulary.test.ts — holds: fourteen whole-comparand refusals driven from FILTER_OPERATORS, three member refusals, four object-form against lowered-form same-sentence pins, and CONTROL legs that would red a builder refusing too much. Its $or class-instance case pins the very movement S2 names.
  • ValueDataSource.astFilterVocabulary.test.ts — holds; N2.
  • ValueDataSource.nonStringStoredValue.test.ts — the re-spelling is sound, not a weakening. A cyclic PLAIN object is now refused by the builder before the text door, in a sentence that serialises nothing, so a cyclic class instance is what still reaches describeComparand, the path the case exists to pin.

No must-fix.

  • S1 (should-fix) — the declared population is wider than the enforced one: a zero-key plain object is still compared. nestedRelationComparandKey answers undefined when keys.length === 0, so with {} as the comparand the builder passes it and the switch reads it: { f: { $ne: {} } }, { f: { $notContains: {} } } and { f: { $nin: [{}] } } still answer every row and the orderings a text-order subset, in both dialects (['f', '!=', {}] the same). The spec door refuses {} at every scalar operator and as a list member (judgeLiteralComparand: not an accepted type, not a reference, not an anchor). Yet the changeset's BREAKING paragraph and its TO say a plain object with no $ key is refused by both dialects, and the new comment in matchesDollarOperator says $ne / $notContains / $nin cannot answer it as every row. It closes either way: (a) the builder refuses the zero-key plain comparand in a sentence of its own (there is no key to name), with a pin per arm — the four in-place conditions this PR already invoked hold for it; or (b) the changeset and the two comments say NON-EMPTY, the changeset's "Not moved" names {}, and the hole goes to the residual card below.
  • S2 (should-fix) — the changeset's FROM leaves out two row-set movements, and one of its sentences is false. (i) List members: FROM gives $nin alone. On main, $in with the object beside other members answered the rows those members match, and $between with the object as an endpoint answered a text-order range (stored text at or after [object Object] and at or before the other endpoint; on the PR's own fixtures [{ … }, 'zzz'] answers the zeta row). Both answer no row now, in both dialects, and the PR body's table says they answered no row before. (ii) Class instance: "The row set is the same: no row" is false inside $or. On main zeroKeyConditionRefusal skipped a condition with own keys, so { $or: [{ owner: 'Alpha' }, { age: new Amount(30) }] } answered row b; at the head loweringConditionRefusal refuses the whole filter and it answers none, which the PR's own test pins. The behaviour is right (the zero-key condition and the server both refuse the whole filter); the published sentence has to say it. It closes on the changeset alone.

Nits:

  • N1 — DOLLAR_COMPARAND_OPERATORS holds all of FILTER_OPERATORS, the three flags included, while its jsdoc calls it the rest that read a comparand. The call site subtracts the flags, so behaviour is right; the name invites a wrong has() later.
  • N2 — the AST test's comment "in and between answered none, in silence" is wrong for between on the fixture right under it (S2 i). The assertion is right.
  • N3 — changeset FROM: "sorts past" fits $gt / $gte; $lt / $lte answered the rows sorting before the text.
  • N4 — changeset: for a WHOLE object under a list operator the server's refusal comes from assertListComparandShapes, not from normalizeFilterComparandTypes. The conclusion (a server-backed source already refused it) stands.
  • N5 — the spec conversion entry's jsdoc still names zeroKeyConditionRefusal. It describes the renderer at its pin, so it stays a true reading; leave it out of this PR, where a packages/spec/src path would change the face.

For a card (outside this diff's population, ungraded; the seat dedupes and files). After this head the value source still compares, by reference or as text: (a) {}, if S1 closes by wording; (b) a plain object with a $ key that is not a { $field } reference — that includes the declared { $now, addDays } anchor, which the platform serves and this file neither resolves nor refuses (no $now is read in ValueDataSource.ts or in the converter; whether a producer hands one to find was not traced); (c) a non-plain object under $eq / $ne / $in / $nin and the text operators, so $ne / $nin / $notContains answer every row for a moment or luxon date. Comment 7012153506 rules the instance data and the tree compares it through valueOf on the orderings; what the equality and negation operators owe it is not ruled.

Implemented-by: claude/issue-35493-value-source-operator-map-comparand
Reviewed-by: session_01L9qibvVRcFWKrfWeG5jzPb

VERDICT: PASS

…rand in both dialects

The shared builder, now plainObjectComparandRefusal, refuses {} as a whole
comparand or a list member in a sentence of its own, gated on the same
operator set. The changeset names the refused population exactly and the
list-member and class-instance row movements the contract review found.

Claude-Session: https://claude.ai/code/session_01L9qibvVRcFWKrfWeG5jzPb
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb

Final green head: e543630cc42b92bc83bf1b145d23840699b1ad1f (2026-11-20T05:35Z): 47 check-runs success, 15 skipped, 0 failed or pending; mergeable clean. Rework round 1 on contract review 7030429102: S1 (an empty plain object {} is now refused as a whole comparand or list member on both arms, in its own sentence), S2 (changeset FROM/TO name the $in member and $between endpoint movements; the false class-instance sentence is replaced by the $or movement), nits N1–N4 folded, N5 left. Dogfood battery on this head: 485 files, 482 passed / 3 skipped, 0 failures (os-dev-report 7031386603). PR body refreshed to the corrected movement table. Delta L1 requested from L1-a; delta CONTRACT_REVIEW_TIER review runs here.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-tesla · session_01L9qibyQBB3KuDoNobNq9LH

Seat check — delta

L1 delta: ACCEPT (L1-a, for area d7-C) at head e543630cc42b92bc83bf1b145d23840699b1ad1f, read 2026-11-20T05:36Z. It supersedes the L1 ACCEPT at 1bc51be2 (comment 7030150929) for the four files the delta touches; everything else that comment accepted carries over unchanged. The delta answers L2 record 7030429102; a same-head delta L2 is still owed, run by d7-C.

Delta read (git diff 1bc51be2 e543630c, 1 commit, 4 files, +123/−28)

  • S1 — the empty plain object. plainObjectValueRefusal asks the old nested-relation key first and then refuses an isPlainObject value with zero keys in its own sentence; plainObjectComparandRefusal (renamed from nestedRelationComparandRefusal) applies it to the whole comparand and, under a list operator, to each member, on both arms (matchesComparisonNode and matchesDollarOperator), at the same two call sites with the same flag-operator exclusions. A Date, a class instance and a { $field } reference are not zero-key plain objects, so the "Not moved" list holds. The DOLLAR_COMPARAND_OPERATORS docblock now says what the set is (all of FILTER_OPERATORS, flags subtracted at the call site), which matches both uses.
  • The server parity the changeset now claims, read in the spec. normalizeFieldSpec (packages/spec/src/data/filter-comparand-type.ts) sends a $-keyed spec's scalar-operator comparand and each list member through judgeLiteralComparand; {} is not an accepted comparand, not an array, not a field reference and not a $now anchor, so it reaches comparandTypeRefusal (INVALID_FILTER). A whole non-array comparand under a list operator is assertListComparandShapes' non-list refusal. Both clauses of the TO line are true.
  • { owner: {} } as a WHOLE condition still takes loweringConditionRefusal's zero-key path (Object.keys(condition).length > 0 fails, so it goes to toFilterNodeSafely), and the new pin asserts that line and the absence of the new sentence.
  • S2 — changeset. I checked each sentence against the code:
    • The FROM bullets are split by position (whole comparand, list member, AST dialect), and the $between member reading ([object Object] as text, the 'zeta' row) is pinned in the AST test's docblock and cases.
    • The class-instance paragraph is now true. loweringConditionRefusal runs over the whole filter before any row, descends $and / $or, and sends a non-plain object condition to the converter. So { $or: [{ owner: 'Alpha' }, { created: someMomentDate }] } is refused whole. That moved at the original head; the delta only corrects its description. ValueDataSource.dollarFilterVocabulary.test.ts:755 pins the $or shape with a class instance.
    • The "Not moved" line now names the whole-condition {} and the $null / $exists truthiness reading. Both match the code.
    • The adr-0087 disposition line widens to both dialects and is still not-required, correctly: no key, export or stored value moves.
  • Pins. There are +22 cases. AST has 5 empty-object operator/comparand pairs, each asserting [], exactly one warn, and the sentence. The $ dialect has every COMPARAND_OPERATORS entry whole, every list operator as a member, the whole-condition control, and two $ne {} / $nin [{}] rows in the existing every-row table. Each asserts the row set and the logged line, not a bare refusal.
  • Ablation. d7-C reports ablation 4 = 24 failed. That fits 22 new cases plus the 2 table rows, all depending on the new branch. Not re-run here.

Declarations and gates

  • Clause-②: no (narrowing) still fits. The delta refuses one more comparand shape, with no widening. Metadata-protocol: none and '@object-ui/core': patch are unchanged.
  • CI at e543630c (pushed 04:32Z): every run is success or skipped, and none is red. Test UI and all 16 shards, Type Check UI, Lint UI, Build & E2E UI, Lint & Repo Gates, TypeScript Type Check and Check Changeset (re-run 05:35Z after the body refresh) are all success.
  • The dogfood battery on this head reports 482 passed / 3 skipped files and 0 failures (os-dev-report 7031386603).

Routing

The delta L2 on this head is owed, run by d7-C. With both done the PR goes to the seat for the authorized approval, as before.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: e543630cc42b92bc83bf1b145d23840699b1ad1f
Local-runs: none
Scope: ui/packages/core/src/adapters/ValueDataSource.ts, ui/packages/core/src/adapters/tests/ValueDataSource.astFilterVocabulary.test.ts, ui/packages/core/src/adapters/tests/ValueDataSource.dollarFilterVocabulary.test.ts, ui/packages/core/src/adapters/tests/ValueDataSource.nonStringStoredValue.test.ts, .changeset/35493-value-source-operator-map-comparand.md + ui/packages/core/src/utils/filter-converter.ts, ui/packages/core/src/utils/text-comparand.ts, packages/spec/src/data/filter-comparand-type.ts, packages/spec/src/data/filter-comparand-operators.ts, packages/spec/src/data/filter-comparand-shape.ts, packages/spec/src/data/filter.zod.ts, packages/objectql/src/engine-top-level.ts, docs/adr/0087-metadata-protocol-upgrade-contract.md
Security-touching: no

Delta review, narrowing face: PR #35604 for card #35493 at its rework head, after the round on 1bc51be2 (record 7030429102: PASS, should-fix S1, S2). Inputs read: the delta 1bc51be2..e543630c (one commit, four files, +123/-28; ValueDataSource.nonStringStoredValue.test.ts is identical at both heads), the net diff against main (five files, +432/-23; merge base b65488a8, main at ca4ec2a2), the dev's round-2 report (card comment 7031386603), the refreshed PR body, and the head's 62 check-runs: 47 success, 15 skipped, none red, none pending. Ten of the eleven required contexts read success and Build Core reads skipped. Since the merge base, main has not moved ui/packages/core/** or packages/spec/src/data/filter-comparand-*.ts; it moved filter.zod.ts only in the nested-relation depth wording and engine-top-level.ts only in formula rounding, so the cited readings hold on main as it stands. Every row-set statement below is read from the named code path at the head or at main; nothing was run. What record 7030429102 judged right at 1bc51be2 and this delta does not touch stands as judged there.

① Derived judgments

What the delta newly refuses, read from plainObjectValueRefusal, plainObjectComparandRefusal and their two call sites. "The empty object" is a plain object (prototype Object.prototype or null) with no own enumerable key: {}.

  1. $ dialect, the empty object as the WHOLE comparand of the fourteen operators that read one (the spec's FILTER_OPERATORS minus $null / $exists / $empty). Right. The platform refuses the same filter: normalizeFilterComparandTypes at the eleven scalar operators (judgeLiteralComparand ends in its type refusal for {}: not an accepted type, not a { $field } reference, not a $now anchor), assertListComparandShapes at the three list operators. Rows that move against main: $ne and $notContains from every row to none, the four orderings from a text-order subset to none. At the other eight the log line is what moves, and at $icontains only its sentence.
  2. $ dialect, the empty object as a MEMBER of an $in / $nin / $between list. Right: the type door judges each member as a literal and refuses it. Rows that move: $nin from every row to none, $in from the rows its other members match to none, $between from a text-order range to none.
  3. AST dialect, the empty object in both positions (['f', '!=', {}], ['f', 'nin', [{}]]). Right: parseFilterAST runs the same two doors on the array form. The movements are those of 1 and 2. This widens the declared in-place fix (③).

Not moved by the delta, each read in the tree — right: { f: {} } as a field's WHOLE condition (the converter's empty-operator-map refusal answers it up front, it never reaches the builder, and a case pins that the two positions keep two sentences); a { $field } reference (it has a $ key, so neither arm of plainObjectValueRefusal takes it); a Date, a class instance, an array, a scalar and null (isPlainObject answers false); the three flag operators and every key outside FILTER_OPERATORS (the gate at the $ call site is unchanged); the non-empty refusal (same sentence, same first key, same place in the order: after the two array guards, before { $field } resolution).

Public surface — right: no export is added, removed or renamed. ValueDataSource and ValueDataSourceConfig stay the file's only exports; the three builder functions are module-private.

Width. No wider than the platform: the empty object in every position of 1–3 is refused by one of the two spec doors, and neither door reads a field's type, so there is no column type for which the platform serves what this consumer now refuses. Emptiness is read with Object.keys, so a plain object holding only symbol-keyed or non-enumerable properties gets the {} sentence; the type door refuses that object too. At this head the enforced population equals the declared one: a plain object with no $ key, empty or not, in both positions, in both dialects.

② Semver level

  • Level: '@object-ui/core': patch stands, for the reasons record 7030429102 gave. Metadata-protocol: none holds and takes patch; the break keeps its ! summary, its **BREAKING** paragraph and its (narrowing) arm. Both declaration lines still stand line-initial on the PR body and on the changeset. Check Changeset (both runs) and Lint & Repo Gates read success on the head.
  • ADR-0087 marker: still not-required (no-migration-prescription), still right. Its reason now names both dialects and the spec's doors, which covers the AST movement and the class-instance movement the earlier wording left out.
  • FROM, sentence by sentence against the main arms of matchesDollarOperator and matchesComparisonNode: true as written. Whole comparand: $ne / $notContains every row; $gt / $gte the rows sorting after [object Object] and $lt / $lte those sorting before; $eq, $in, $nin, $between, $contains, $startsWith, $endsWith no row with nothing logged (each list arm asks Array.isArray first). List member: $nin every row, $in the rows its other members matched, $between the text range ('zeta' sorts at or after [object Object] and at or before 'zzz'). AST: at main that arm already refused a non-empty whole comparand and judged neither a list member nor {}, which is what the third bullet says.
  • TO: the two sentences are equal, character for character, to what nestedRelationRefusalReason and emptyObjectComparandRefusalReason build; the operator set is the call site's gate; the server attribution now names the right door for each position.
  • Class-instance paragraph: true as rewritten. At main the up-front check skipped a condition with own keys, so inside $or the other branch answered; the head refuses the whole filter, and the $or case in the $ test pins it.
  • "Not moved": the two statements added ({ owner: {} } keeps the converter's refusal; $null / $exists still read truthiness) are true in the tree.

③ Boundary flags

  • In-place fix, widened by the delta to the AST arm's {} hole: accepted on the same four conditions as before. Same defect class, same file, same builder; declared in the changeset (the AST bullet of FROM) and in the PR body; pinned by five AST cases; inside the spec doors' refusal.
  • Rename nestedRelationComparandRefusal to plainObjectComparandRefusal: not a published-surface change. The function is module-private at both heads, and the old name occurs nowhere in the head's tree. The new name says what the builder judges now that it carries two sentences.
  • Dev report 7031386603: open_questions is empty. Its two out-of-scope items are unchanged from round 1 and stay answered as record 7030429102 answered them: the $null / $exists flag comparand is fileable, with the wider reach through convertFiltersToAST; the missing log line for a non-list non-object comparand under a list operator fits the residual card. The report's local figures are not inputs to this record; the head's check-runs are. One of them can be read off the tree: the cases that name the new sentence count 24 (fourteen whole-comparand, three member and two same-sentence cases in the $ test, five in the AST test), the number the report gives for its fourth ablation.
  • PR body: refreshed by the seat, not by the dev. It was read as an account and judged against the tree; its movement table now agrees with the main arms read under ②.
  • SQL push-down: no finding. The delta adds no query, no id materialisation and no in-app join.

④ Design judgment

  • ValueDataSource.ts — holds. One judge per value (plainObjectValueRefusal) serves the whole comparand and each list member, so the two positions cannot drift apart, and the two call sites changed only in names and comments. Tried against it: {} in every position of both arms (refused); a list mixing {} and a non-empty object (the first member's sentence, one log line either way); each CONTROL of round 1 (a scalar, a Date, a { $field } reference, a class instance under the orderings: none is a plain object without a $ key, so none is taken); { f: {} } as a whole condition (never reaches the builder). Nothing gives way. N6.
  • ValueDataSource.dollarFilterVocabulary.test.ts — holds. Fourteen whole-comparand cases driven from FILTER_OPERATORS, three member cases, the whole-condition case that asserts the converter's sentence and the ABSENCE of the new one, and two object-form against lowered-form same-sentence cases. Each asserts the logged sentence, so the operators that answered no row before are still discriminated.
  • ValueDataSource.astFilterVocabulary.test.ts — holds. Five cases: a negation, an ordering, a negated text operator, a nin member and a between endpoint. The AST call site has one gate for every operator that reads the slot, so five reach what fourteen would. The comment N2 named now says what in and between answered.
  • .changeset/35493-value-source-operator-map-comparand.md — holds (②). N7.

S1: closed.

S2: closed.

How each closed. S1 by route (a): the builder refuses the zero-key plain comparand, whole and as a list member, in both dialects, in a sentence of its own, with cases on each arm; the changeset's BREAKING paragraph, FROM, TO and "Not moved" say the same thing the code does. S2 on the changeset alone: (i) FROM now gives the $in-member and $between-endpoint movements in both dialects; (ii) the sentence about the class instance's row set is replaced by the $or movement, with the example the test pins.

No must-fix, no should-fix.

Nits of record 7030429102: N1 answered in the jsdoc (the set is ALL of FILTER_OPERATORS and the caller subtracts the flags; the name stays), N2 fixed, N3 and N4 fixed in the changeset, N5 left alone as asked.

Nits:

  • N6 — the jsdoc on plainObjectComparandRefusal still says normalizeFilterComparandTypes refuses the comparand "in both positions". For a WHOLE object under a list operator the refusal is that of assertListComparandShapes, as the changeset now says: N4 reached the changeset, not this comment.
  • N7 — the changeset's FROM lists thirteen of the fourteen operators for a whole comparand. $icontains already refused the object at main, through the text-comparand door (isRefusedTextComparand), so there only the logged sentence moves; one clause would say so.
  • N8 — the PR title still reads "under a $ operator, as under the AST operators", while the changeset's summary line now reads "with no $ key, empty or not, in both filter dialects". The AST dialect moves too, and the title is what the squash subject carries.

For a card (outside this diff's population, ungraded; the seat dedupes and files). Residual (a) of record 7030429102 is closed in place by this head. Residuals (b) and (c) stand as written there: a plain object with a $ key that is not a { $field } reference, the { $now, addDays } anchor included, and a non-plain object under the equality, negation and text operators.

Implemented-by: claude/issue-35493-value-source-operator-map-comparand
Reviewed-by: session_01L9qibvVRcFWKrfWeG5jzPb

VERDICT: PASS

@objectstack-fleet objectstack-fleet Bot removed the needs:contract-review Marker only — PR awaits its at-tier Contract review PASS; no check reads it, the record decides label Nov 20, 2026
@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 20, 2026 06:13
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-tesla · session_01L9qibvvVzM5KhCWkT5f45c

维护者速读

席位核对

Seat 7: hand-off for the maintainer's approval · head 7eb3169026b77db0c850c073a03a72238e66badf · Fixes #35493 · K=10 against main · not governed (0 of 5 paths) · declared narrowing (Clause-②: no (narrowing)), so PR #35610's queue leg needs an authorized APPROVED review · 455 lines · 2026-11-20T06:41Z

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 20, 2026
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 20, 2026
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 20, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-tesla · session_01L9qibvVRcFWKrfWeG5jzPb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 7eb3169026b77db0c850c073a03a72238e66badf
Local-runs: none
Scope: ui/packages/core/src/adapters/ValueDataSource.ts, ui/packages/core/src/adapters/tests/ValueDataSource.astFilterVocabulary.test.ts, ui/packages/core/src/adapters/tests/ValueDataSource.dollarFilterVocabulary.test.ts, ui/packages/core/src/adapters/tests/ValueDataSource.nonStringStoredValue.test.ts, .changeset/35493-value-source-operator-map-comparand.md + ui/packages/core/src/utils/filter-converter.ts, ui/packages/core/src/utils/text-comparand.ts, packages/spec/src/data/filter-comparand-type.ts, packages/spec/src/data/filter-comparand-operators.ts, packages/spec/src/data/filter-comparand-shape.ts, packages/spec/src/data/filter.zod.ts, packages/objectql/src/engine-top-level.ts, docs/adr/0087-metadata-protocol-upgrade-contract.md
Security-touching: no

Carry record, narrowing face: PR #35604 for card #35493. This head is one merge of main on top of e543630c, the head judged in (record 7031655339: PASS). That record is carried here by patch identity: its judgments are not derived a second time, and what was verified for the carry is listed below. Everything was read from git and the GitHub API; nothing was built, run or re-run.

  • The hop. The head is one commit over e543630c: a merge whose parents are e543630c and ed4649cb, the second an ancestor of main. e543630c..7eb31690 holds 79 commits, 78 of them main's.
  • Patch identity. git diff ed4649cb..7eb31690 | git patch-id --stable and the same over b65488a8..e543630c both read 36511c7793b407e97c9c53a17377c79e0fd7b9f9, the id the dev reported. The five files of the diff are blob-identical at the two heads; the net diff against the new merge base is the same five files, +432/-23; the head's tree differs from ed4649cb on those five paths alone; and the merge's combined diff is empty, so it resolved nothing by hand.
  • What main brought in (b65488a8..ed4649cb, 780 files). Nothing under ui/packages/core/**; no packages/spec/src/data/filter-comparand-*.ts; not filter-text-comparand.ts, filter-empty-operator.ts, the engine's own filter-comparand-shape.ts, the ADR-0087 text or its gate script. Of the code record 7031655339 cites it moved two files, both already read at ca4ec2a2 for that record and identical since: filter.zod.ts in comment lines only (the nested-relation depth), engine-top-level.ts in formula rounding only. The imports of ValueDataSource.ts resolve to modules main did not move in code; of @object-ui/types it moved data-display.ts alone, which declares none of the imported types.
  • Check-runs on the head: 71 in all, 49 success, 21 skipped, 1 cancelled, none red, none pending. Ten of the eleven required contexts read success and Build Core reads skipped. The cancelled one is a single Check Changeset run (06:43Z) that was superseded: the same context reads success once before it and twice after it.
  • The PR: head 7eb31690, the same five files, Clause-②: no (narrowing) and Metadata-protocol: none still line-initial on its body.

① Derived judgments

Carried unchanged. The refused population, the "not moved" list, the public surface and the width judgment of record 7031655339 rest on the five diff files, blob-identical here, and on cited code that main did not move in any line that is read.

② Semver level

Carried unchanged: the changeset is blob-identical, so '@object-ui/core': patch, the two declaration lines, the not-required (no-migration-prescription) marker and the FROM/TO reading stand as judged. Check Changeset reads success on this head in its newest run, and Lint & Repo Gates reads success.

③ Boundary flags

  • The hop is a merge of main with no conflict and no dev code in it; it raises no new flag and no open question. The flags answered in record 7031655339 stay answered.
  • SQL push-down: no finding. The merge adds nothing to the PR's own diff.

④ Design judgment

Carried unchanged for each of the five files: none of them moved, and nothing they cite moved in code.

S1: closed.

S2: closed.

No must-fix, no should-fix.

Nits N6, N7 and N8 of record 7031655339 stand as written; none is addressed on this head (the five blobs and the PR title are unchanged), and none has to be.

Implemented-by: claude/issue-35493-value-source-operator-map-comparand
Reviewed-by: session_01L9qibvVRcFWKrfWeG5jzPb

VERDICT: PASS

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 20, 2026
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit ccded86 Nov 20, 2026
75 of 76 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-35493-value-source-operator-map-comparand branch November 20, 2026 08:21
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Value data source: an operator filter with a plain-object comparand ($ne, $notContains, ordering, $nin) still serves rows instead of being refused

3 participants