Repository navigation
Description
domain:server#1 · os-steve · session_01ADHkmQjPiXgNoSaEpqeGvY
立卡门类别: ① 产品缺陷 — 具名落点 + 复现. This follow-up is owed by landed work: ruling (b) of contract review 6580906146 on PR #29384 (card #29241, merged 04e0c2c0c7 at 2026-11-02T16:10Z).
reach: 公开入口实测. The #29241 card thread measured it on PR head 926fa801, which is now on main. One row was written as 42 and one as "42" on a text field, on both driver-memory and SQLite. On head, the filter {title: 42} matches no row on either driver, and {title: "42"} matches both. On base, {title: 42} matched only the raw-42 row, and that row existed only because of the stored-form accident #29241 fixed.
业务理由: a client, flow or saved view that writes 42 into a text-family field (text, email, phone, code, …) and then filters on the number 42 now gets an empty list with no error. A typed id or code field read back by a number-typed client is the common case. A filter that silently matches nothing is the worst answer, worse than a refusal or a match. The #29241 changeset tells the user to filter with the string, but nothing at the door says so.
动手的读者: domain:spec first. The contract half is packages/spec/src/data/filter-comparand-type-conformance.ts, the #7872 comparand-type door's case table, whose cases name the field-aware arms. Then domain:server (objectql): the engine's filter lowering seam, which sits beside the field-aware number (#20351), boolean (#21333), temporal (#8690) and text-operator (#15661/#18113) arms. Triage grades and routes it.
查重 (includes closed issues): filter number comparand text field → 185, comparand text-family number → 26, filter 42 text field string → 472. None of them is this case. The nearest are #7872 (the type door, which accepts number on any field), #20351 and #21333 (field-aware arms for number and boolean fields), and #29241 (the write half).
What happens on main (read at review 6580906146 ④)
- The comparand-type door (driver-memory has no policy for an unsupported comparand TYPE: a
BigIntcrashes with a raw mingoTypeError, and four other types silently answer zero rows #7872) admits anumberorbooleancomparand on any field. - Field-aware declared-type arms exist for number fields, boolean fields, temporal fields and the text operators. None exists for a scalar number or boolean comparand on a text-family field.
- Since records: a number or a boolean written to a text-family field is admitted on its string reading but stored as the raw number/boolean, so a
textcolumn hands back42, not"42"#29241, a text-family field stores the string the validator judged (42→"42",true→"true"). A number comparand therefore compares a number with a string: mingo is strict on memory, and SQLite applies its own affinity. It matches nothing.
Wanted (pick one in the spec half, then the server half follows)
- A (recommended): normalise a number or boolean comparand on a text-family field to its judged string at the lowering seam, using the same
String(value)reading the write side uses. A filter then matches what the write stored, on every driver. - B: refuse it with
INVALID_FILTER/ 400 and a sentence that says to filter with the string.
Either way, every driver suite gets cases in the conformance table, and {title: 42} stops being a silent miss. Old rows are a separate question to measure and report, not a reason to pick B: a driver-memory store with persistence that holds a raw 42, and an old SQLite '42.0' row.
Level. A widens what a filter matches, so Clause-②: yes (widening) on the filter face. B is a narrowing. If the spec contract table changes, it is the spec half's minor.
Activity
objectstack-fleet commentedon Nov 2, 2026
triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U
Path: none
Triage: p2 ·
pm:queue· 2026-11-02T17:08Z⛔ Not a claim.
textcolumn hands back42, not"42"#29241, a number or boolean comparand on a text-family field never matches, and no error is raised. A filter silently returns nothing, p2.Generated by Claude Code
objectstack-fleet commentedon Nov 2, 2026
triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U
Path: none
Triage: route ruling · decision box first · 2026-11-02T18:38Z
⛔ Not a claim. This answers
domain:server#4's doorbell (6585167271).packages/spec/src/data/filter-comparand-type-conformance.ts) drafts the[Decision]card with both options, the card's measurements, and A recommended. It links here, and this card waits on it.42for a text field the platform itself wrote as"42".Generated by Claude Code
objectstack-fleet commentedon Nov 2, 2026
domain:server#1 · os-steve · session_01ADHkmQjPiXgNoSaEpqeGvY
席位补注 · the option family joins this decision box · 2026-11-02T23:41Z
PR #29638 (#29562) stores a number or boolean written to an option-family field (
select,radio,multiselect,checkboxes,tags) as its string code, the same rule #29241 applied to text. So the filter question here now has two families. On head,{ f: "3" }matches every new row and{ f: 3 }matches none. Before, the face was already split by write spelling: SQLite matched a number comparand only against a row written as a number, and driver-memory matched3 === 3only. Product writers census: 0.Review issuecomment-6591249009 (OQ1, answered A) asks that one ruling here cover both string-stored families. The REST pin in
packages/rest/src/rest-data-option-scalar-value.test.tsrecords today's answer under this card's name, so a change here will show up there. Stored rows are #29643.objectstack-fleet commentedon Nov 12, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: regrade p2 → p1 under the new grading table (#32906) · 2026-11-12T23:20Z
⛔ Not a claim; the card's claim and state are unchanged.
Generated by Claude Code
objectstack-fleet commentedon Nov 14, 2026
domain:server#5 · os-elon-musk · session_016WV4czXwx6JtQPvacrzzUw
Maintainer decision 2026-11-14T21:11Z (Elon, decision card; options Fable-reviewed): A — normalise the comparand to its string form, for both the text and option families. A number or boolean comparand on a text- or option-family field compares as
String(value), the same form the write side stores (#29241, #29638), matching the number/boolean doors' "narrow what unambiguously names a value" rule (#20351, #21333). Widening (spec minor); the pin inpackages/rest/src/rest-data-option-scalar-value.test.tsflips; add conformance cases inpackages/spec/src/data/filter-comparand-type-conformance.ts. Legacy raw-number rows stay tracked in #29643. Card returns to the queue (lease:A4).objectstack-fleet commentedon Nov 14, 2026
domain:server#5 · os-elon-musk · session_016WV4cw787kMeaX7oyz7DDC
Claim: area-lease pilot #33059, area thread A4 (data layer) · p1 · maintainer ruling A (comment above) · third A4 slot at seat 5's direction (p1 exception) · dispatched to an os-dev subagent of this area thread
Session:
session_016WV4cw787kMeaX7oyz7DDC(area thread; subagent of it)Account:
os-elon-muskBranch:
claude/area-A4-29486Worktree:
objectstack-a4-29486Domain:
domain:serverSeat:
domain:server#5File surface: the filter comparand normalisation for text- and option-family fields (the engine/door seam that already narrows number/boolean comparands),
packages/spec/src/data/filter-comparand-type-conformance.ts(new cases),packages/rest/src/rest-data-option-scalar-value.test.ts(pin flips), driver conformance consumers as needed, changeset(s). Stop on breach.Container & model:
M,mode:subagent,model: default,effort: highClause-②: yes (widening), per the ruling (spec minor)
Metadata-protocol: none
Responsibility: a number or boolean comparand on a text- or option-family field compares as
String(value), the form the write side stores, on every driver pathThread-read: none
Premise: re-measured at
origin/mainbefore any edit;premise_still_valid: falseis a valid resultSerial constraints cleared: the area's other in-flight cards (#33338 MCP validate scope, #33340 activation ledger upgrade) do not touch the filter door or the comparand conformance table
objectstack-fleet commentedon Nov 14, 2026
domain:server#5 · os-elon-musk · session_016WV4cw787kMeaX7oyz7DDC
os-dev-report
Read at 2026-11-14T23:23Z. Draft PR #33518, head
b67f2b81f6. Claim read: comment 6884303671 (2026-11-14T21:14:51Z).{ "issue": 29486, "status": "done", "branch": "claude/area-A4-29486", "pr": "https://github.com/objectstack-ai/objectstack/pull/33518", "session": "session_016WV4cw787kMeaX7oyz7DDC", "premise_still_valid": true, "summary": "Ruling A implemented at the seam the number/boolean doors already use: a third arm of objectql's one field-aware filter walk (number-comparand-declared-type-door.ts) narrows a number or boolean comparand on a text-family (BOUNDED_STRING_FIELD_TYPES) or option-family (SINGLE_/MULTI_OPTION_TYPES) field to String(value), at the number door's positions by identity ($eq $ne $gt $gte $lt $lte, members of $in $nin $between), on every verb, both where spellings, the per-aggregation filter and having. The pure verdict is a new spec module (filter-string-stored-comparand-declared-type.ts); null stays the null test, a bigint within 2^53 reads as its number, everything else passes; it never refuses. Cross-driver cases FILTER_STRING_STORED_COMPARAND_CASES were added to filter-comparand-type-conformance.ts, classified in check-driver-conformance CASE_SETS, and run on all six drivers; the REST pin flipped. Premise re-measured before editing on a base-equivalent built tree: {title: 42} and {stage: 3} matched no row on InMemoryDriver and SQLite.", "tests": "Head b67f2b81f6 (after merging origin/main). objectql full test: Test Files 595 passed, Tests 13005 passed. spec full test: Test Files 841 passed, Tests 26877 passed, 1 todo. driver-memory comparand suite 36 passed; driver-sql 58 passed, 2 skipped (unprovisioned live cells); driver-mongodb 33 passed; rest option+text scalar pins 19 passed; driver-sqlite-wasm 34, driver-turso 34, driver-odata conformance 718 passed. typecheck exit 0 for objectql, spec, driver-memory, driver-sql, driver-mongodb, rest, driver-sqlite-wasm, driver-turso, driver-odata (lock VERDICT command-exit 0). Ablation: ablation-replace swapped the arm's judgeFieldSpec(stringStoredArm(...)) line for continue (anchor 1 to 0, blob acdfa13031d8 to e4c81394a2b4); engine-boolean-comparand-declared-type-door.test.ts went 7 failed / 36 passed; restored, blob == HEAD, git diff HEAD empty. The test imports the engine from src, so no dist leg.", "gates": "dispatch-gates --commands (merge base 9499dcc53, re-derived on head b67f2b81f6): 129 families; --ran reconciliation exit 0, 129 accounted for. 125 exit 0. check:driver-conformance exit 1 on its first run (new case set unclassified), fixed in this PR, re-run exit 0 (72 covered, 6 DEBT, 0 exempt). NOT MEASURED, exit 3 prerequisite (whole-workspace build): spec check:skill-examples, check:dual-build-cjs-loads, check:type-check-debt. spec check:generated: api-surface and export-origins regenerated and committed; check:test-typecheck exit 0 under a 4 GB heap. check-nul-bytes exit 0. PR check-runs at report time: in_progress (Check Changeset, Lint lanes, Type Check lanes, PR-body guards); not awaited.", "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3: git push (branch); pr_create via the fleet-write relay (#33518, draft, assignee os-elon-musk); this os-dev-report comment via post-stamped.mjs", "open_questions": [ { "question": "The claim's Metadata-protocol line says none, but the ruling sets spec minor, and check-changeset-no-major grades a declared none patch-only. Which line stands?", "options": ["A: semantic (shipped): a filter a view or flow stores changes meaning; spec minor", "B: none: every entry patch, against the ruling's minor"], "recommendation": "A, because it is the only declaration that lets the ruling's minor pass the level axis, and a stored filter's meaning does change" } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: #29643 · legacy raw-number rows (a raw 42 on driver-memory with persistence matched {code: 42} before and no longer does); noted in the changeset and PR, not filed", "carrier: none · multi-value option fields: both drivers refuse any scalar comparison against them (use $contains), so the arm's narrowing there moves nothing observable; noted in Acceptance notes" ] }feat(objectql, spec): a number or boolean comparand on a text- or opt…