Skip to content

fix(service-analytics)!: the dataset query door refuses = / $in and every other scalar comparison on a multi-value or JSON field with 400 INVALID_FILTER - #36184

Merged
os-zhuang merged 3 commits into
mainfrom
claude/issue-36168-dataset-json-column-refusal
Nov 21, 2026
Merged

os-zhuang merged 3 commits into
mainfrom
claude/issue-36168-dataset-json-column-refusal

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Fixes #36168
Clause-②: no (narrowing) — POST /api/v1/analytics/dataset/query newly refuses 400 INVALID_FILTER for an operator of JSON_COLUMN_INCOMPATIBLE_OPERATORS on a JSON column, which it answers 200 with a wrong count today; the data door already refuses the same request
Metadata-protocol: none
Skills-docs: none — no page under content/docs or skills/ teaches = / $in (or any other refused operator) on a multi-value or JSON field in a dataset filter; content/docs/protocol/objectql/query-syntax.mdx already teaches $contains for such a field, which is what the refusal prescribes

维护者速读

  • 看仪表板、报表的用户:按多选字段用"等于/属于"筛选时,原来静默显示 0(或把该排除的行算进去),现在会直接报错并提示改用"包含"。
  • 属于数据分析数据集查询这扇门,替仪表板读者解决"多选字段筛选结果为 0 却不报错"的错数问题,与数据接口的行为对齐。
  • 若误伤,用户会在原本能出数的筛选上看到报错;这是一次收紧,合并后可整体回退。
  • 要你做什么:这次改动让原来能出数的筛选改为报错(收紧),按规则需要你本人批准后才能合并。

What changes

POST /api/v1/analytics/dataset/query (queryDataset) refused nothing when a filter applied a scalar comparison or text operator to a field declared multiple: true, an inherently multi-value type or a structured-JSON type. Premise verified on origin/main 6943af1: NativeSQLStrategy.buildFilterClause sent only contains / notContains to the #20987 membership construct, so { tags: { $in: ['a'] } } compiled to tags IN ('a') over the stored ["a","b"] and answered 200 with count 0. Measured here: $nin / $ne counted the rows they exclude (4 of 4). The ObjectQL strategy already refused (the engine hands the leaf to driver-sql). The draft preview (?preview=draft) was a third face with the same wrong counts.

  • service-analytics/src/json-column-comparison-refusal.ts (new): refuseWhereJsonColumnComparison refuses a normalised leaf whose $ spelling is in @objectstack/core's JSON_COLUMN_INCOMPATIBLE_OPERATORS, on a column isJsonStoredShape judges JSON-stored (the same declared-shape resolver and predicate the $contains membership branch asks). The text is jsonColumnOperatorRefusalText(...).diagnostic, the data door's sentence, which names the field and operator and prescribes $contains. Thrown through invalidFilterError, so the REST door's existing code/status 400 arm serves it (no change in packages/rest).
  • filter-normalizer.ts: CUBE_TO_MONGO_OP, the inverse of MONGO_TO_CUBE_OP, derived and not listed twice, so the leaf names the spelling it was lowered from.
  • native-sql-strategy.ts: buildFilterClause calls the refusal before anything binds, on every dialect. canHandle's [finding] $contains / $notContains on a declared multi-valued or JSON-stored field still answer SUBSTRING on five faces, the analytics RLS read scope among them (u1 admits a row storing u10) #20987 decline (jsonConstructOnUnknownDialectIn) also reads these operators and implicit equality on the caller's where, the dataset filter and the measure filters (not the read scope). On the 'unknown' dialect (memory, MongoDB) the query is declined to the ObjectQL strategy, so the engine's driver answers it. Without that decline, a compile-time refusal would pre-empt the RAW_SQL_UNSUPPORTED hand-off.
  • preview-evaluator.ts + analytics-service.ts: the draft preview judges the lowered where once, before any row is read, with the declared shape from sourceFieldMeta, in the same words.

Not refused, deliberately: $contains / $notContains, $null / $exists / $empty, $eq: null / $ne: null (the normaliser lowers these to a null predicate), and an empty $in / $nin (lowered to a constant). Each answers correctly.

Tests

packages/services/service-analytics/src/__tests__/dataset-json-column-refusal-36168.test.ts (37 tests). It drives queryDataset through a real AnalyticsServicePlugin over a real engine and SqlDriver (SQLite), on the native, ObjectQL and draft-preview faces:

  • 13 filters × 2 JSON fields (tags, select with multiple: true) → 400 INVALID_FILTER on every face. Each test asserts code AND status and that the message names the field and "$contains". The filters are $eq, implicit equality, $in, $ne, $nin, $gt, $lte, $between, $startsWith, $endsWith, $icontains, $in under $not and $in in an $or. Where two faces name one spelling, the messages are identical. The dataset's own filter and a measure filter are refused too.
  • CONTROL: the same operators on a scalar column answer the right counts, and so do $contains / an $or of $contains / $notContains / $null on the JSON columns.
  • Strategy level: refused at compile on sqlite / postgres / mysql / mssql. On the unknown dialect it is declined, and through the service the engine bridge is asked while the raw-SQL bridge is not.

Acceptance notes

Verification

Two-minute check: pnpm --filter @objectstack/service-analytics exec vitest run --maxWorkers=2 src/__tests__/dataset-json-column-refusal-36168.test.ts. Expect 37 passed.

Files to read first: json-column-comparison-refusal.ts (the rule), the jsonConstructOnUnknownDialectIn hunk of native-sql-strategy.ts (routing: the risk hunk), then preview-evaluator.ts.

Full dogfood battery (the narrowing arm), at head 4f8fa8810c: pnpm --filter @objectstack/dogfood test, no shard and no path, under the verify lock after building the dogfood closure. Lock verdict command-exit 0. Test Files 483 passed and 3 skipped (486), Tests 4101 passed and 68 skipped (4169), no failure.

Ablation, one run per mutation through scripts/ablation-replace.mjs. Each anchor hit once (1 to 0), and each restore is proven by blob == HEAD with an empty git diff HEAD.

  • Delete the refuseWhereJsonColumnComparison call in buildFilterClause: 32 of 37 tests fail. The failures are the 26 native-face refusals, the dataset and measure filter cases, and the 4 dialect cases. The native face answered {"rows":[{"cnt":0}]} for $in, the card's reproduction, and cnt: 4 for $nin.
  • Delete the preview call refusePreviewJsonColumnComparisons: 22 of 37 tests fail, with the preview answering cnt: 0 for $in.
  • Make the canHandle decline ignore comparisons: 2 of 37 tests fail, both unknown-dialect tests. Without the decline, the native compile refuses ahead of the engine hand-off.

Local gates at head 4f8fa8810c (the --commands derivation): 71 of the 72 derived families exit 0. dispatch-gates --ran names one UNRUN: check:dual-build-cjs-loads, NOT MEASURED locally with PREREQUISITE NOT MET (it reads every package's dist/, and only the service-analytics and dogfood closures are built here). CI's Lint & Repo Gates runs it.

Package checks at 46692597d3: pnpm --filter @objectstack/service-analytics typecheck (tsc, test files included) exits 0. The whole package suite reports Test Files 223 passed (223), Tests 5711 passed and 345 skipped. The later commit 4f8fa8810c adds only the changeset.

test:repo was not run locally (CI's Test Core runs it). The repo-wide lint is CI's.


Generated by Claude Code

… column on the native dataset where door

Claude-Session: https://claude.ai/code/session_01FEkQ5miLqNucRZevceHwNh
Co-authored-by: Claude <noreply@anthropic.com>
… the JSON-column refusal; pin #36168

Claude-Session: https://claude.ai/code/session_01FEkQ5miLqNucRZevceHwNh
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 21, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/service-analytics, touching 12 documentable anchor(s).

4 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/api/client-sdk.mdx (via data.query (sdk, the route ledger binds it to POST /api/v1/data/:object/query))
  • content/docs/api/wire-format.mdx (via /api/v1/data/:object/query (route, a path literal in a comment on a changed line))
  • content/docs/data-modeling/queries.mdx (via /api/v1/data/:object/query (route, a path literal in a comment on a changed line))
  • content/docs/kernel/runtime-services/data-service.mdx (via data.query (sdk, the route ledger binds it to POST /api/v1/data/:object/query))

⛔ 1 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-6.mdx (via /api/v1/data/:object/query (route, a path literal in a comment on a changed line))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 10 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 1208cc87d79e13206c3f9afd325bb562628cb057 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from b9187abbcfd328d8ca76fee8f22ee9234c9477fd — the merge of head 4f8fa8810c6f6ef8c20f89e5bde0d1c06496857a into base 1208cc87d79e13206c3f9afd325bb562628cb057, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin b9187abbcfd328d8ca76fee8f22ee9234c9477fd && git checkout b9187abbcfd328d8ca76fee8f22ee9234c9477fd
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 1208cc87d79e13206c3f9afd325bb562628cb057 4f8fa8810c6f6ef8c20f89e5bde0d1c06496857a && git checkout -B drift-repro 1208cc87d79e13206c3f9afd325bb562628cb057 && git merge --no-ff 4f8fa8810c6f6ef8c20f89e5bde0d1c06496857a

node scripts/docs-audit/affected-docs.mjs --json 1208cc87d79e13206c3f9afd325bb562628cb057

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 1208cc87d79e13206c3f9afd325bb562628cb057 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5miLqNucRZevceHwNh

Final green head (area a4-C, claim 7067680806 on #36168): 4f8fa8810c6f6ef8c20f89e5bde0d1c06496857a · 2026-11-21T21:14Z

  • 7 files, +595/-14, all in packages/services/service-analytics/src plus one changeset; no packages/rest change (the door's existing 400 arm serves invalidFilterError). The native SQL strategy refuses an operator of JSON_COLUMN_INCOMPATIBLE_OPERATORS on a declared JSON column at the leaf, with the data door's sentence (jsonColumnOperatorRefusalText(...).diagnostic) and the [finding] $contains / $notContains on a declared multi-valued or JSON-stored field still answer SUBSTRING on five faces, the analytics RLS read scope among them (u1 admits a row storing u10) #20987 resolver; the 'unknown' dialect declines instead, so memory / mongo keep the engine's answer. The os-dev report is 7068861732.
  • Disclosed widening inside the claim's surface: the draft preview face (?preview=draft) gave the same wrong counts ($in 0, $nin 4) and now refuses through the same module (preview-evaluator.ts, one call site in analytics-service.ts). The ObjectQL strategy already refused through driver-sql.
  • Pin dataset-json-column-refusal-36168.test.ts, 37 tests over the native, ObjectQL and preview faces (13 filters × 2 JSON fields → 400 INVALID_FILTER, code and status asserted; scalar and $contains / $notContains / $null controls). Ablation: (A) native call 32/37 red, (B) preview call 22/37 red, (C) decline arm 2/37 red; restores byte-identical.
  • Full dogfood battery at this head (no shard): Test Files 483 passed, 3 skipped; Tests 4101 passed, 68 skipped; no failures. Recorded in the PR body and the report.
  • CI at this head (pr-state): 37 success, 16 expected skip, 0 failed, 0 pending; mergeable_state clean. One local family not run, check:dual-build-cjs-loads (needs every package's dist), declared to CI's Lint & Repo Gates, which passed.
  • Out-of-scope notes, not filed: face-dependent operator naming and the ObjectQL face's withheld measure-filter message (both in the PR's Acceptance notes); the preview's $contains is a substring test on a multi-value field (pre-existing, outside the refused set).
  • Owed next: L1-a, then the seat's contract-review-tier review (narrowing) and the four pieces. Not readied, not queued; the maintainer lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5nbzs5iP1HcMCFhZo5

L1 verdict (L1-a): REWORK, one bookkeeping item (no code) at head 4f8fa8810c6f6ef8c20f89e5bde0d1c06496857a (Fixes #36168). This is a full read of origin/main...4f8fa8810c: 7 files, +595/−14, all in packages/services/service-analytics/src, plus one changeset.

席位核对

Shape and gates.

  • l1-face --pr 36184 at 4f8fa88:
    • First line: Fixes #36168.
    • Declarations: Clause-②: no (narrowing) and Metadata-protocol: none.
    • Skills-docs: none. I confirmed it: query-syntax.mdx already teaches $contains, which is what the refusal prescribes.
    • Floors: success. Check-runs: 37 success, 16 expected skip, 0 failed, 0 pending. mergeable_state: clean.
  • Flag answered: dogfood. The ! / (narrowing) battery is pinned at this head in 7069341119 and the PR body: 483 files passed / 3 skipped, 4101 tests passed / 68 skipped, no failures.
  • Changeset: @objectstack/service-analytics patch, BREAKING, with FROM/TO, what does not move, and the fix for a caller.

The code.

  • One set, one sentence. json-column-comparison-refusal.ts reads core's JSON_COLUMN_INCOMPATIBLE_OPERATORS through CUBE_TO_MONGO_OP. That map is derived from MONGO_TO_CUBE_OP, not listed a second time. The sentence is jsonColumnOperatorRefusalText(...).diagnostic, the data door's own. The population is isJsonStoredShape, the predicate the $contains membership branch already asks.
  • Native strategy.
  • Draft preview, the disclosed widening inside the claim's surface. refusePreviewJsonColumnComparisons walks the lowered where once, before any row is read. It refuses the same set with the same comparand exceptions (comparesAValue).
  • Pins. The file has 37 tests over the three faces: 13 filters × 2 JSON fields answer 400 INVALID_FILTER, with code and status asserted. Scalar, $contains / $notContains and $null controls are included. The three ablations go red and are restored byte-identical (7069341119).
  • The card's Done-when is met: the same 400 as the data door, naming the field and the operator to use, pinned on the dataset door with a scalar control. So Fixes is right.

R1 (must fix: a residual without a card). Under Acceptance notes, the PR records a pre-existing wrong answer on the same door: "The preview's $contains is still a substring test over String(value)". On a multi-value field, a drafted ['abc'] answers $contains: 'b' as a member. That is the silent-wrong-count class this card fixes, on the operator the refusal now tells callers to use. The final-head comment says it is "not filed". File it as a card, and name its #N on that line of the body.

  • The other notes need no card. The operator spelling that differs by face has the same code, status and prescription, and is disclosed. The engine's measure-filter message is the engine's own. The /analytics/sql display echo runs nothing.

Next. Fixing R1 is a body edit plus a card, with no push. I will read only the body. After ACCEPT, the contract-review-tier record is the seat's, and the maintainer lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5nbzs5iP1HcMCFhZo5

L1 verdict (L1-a): ACCEPT at head 4f8fa8810c6f6ef8c20f89e5bde0d1c06496857a (Fixes #36168). This is a delta read of the PR body only, on top of REWORK 7069360733. The head is unchanged, so the full read in 7069360733 stands.

席位核对

Next. The seat's contract-review-tier record (narrowing), then the maintainer lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5krBqrrgxCYgjXmfbv

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 4f8fa8810c6f6ef8c20f89e5bde0d1c06496857a
Local-runs: probe — the PR's pin and a throwaway four-face comparison (data door, native, ObjectQL, draft preview) were run at the head to measure what each face answers; the probe file was deleted and HEAD restored.
Scope: full diff vs merge base 6943af1717 (7 files): .changeset/36168-dataset-json-column-refusal.md, service-analytics/src/json-column-comparison-refusal.ts, strategies/native-sql-strategy.ts (canHandle decline, compileFilterNode, buildFilterClause), strategies/filter-normalizer.ts, preview-evaluator.ts, analytics-service.ts hunk, __tests__/dataset-json-column-refusal-36168.test.ts; plus core/src/utils/json-column-operator-refusal.ts, service-analytics/src/contains-membership-sql.ts, driver-sql/src/sql-driver-filter-helpers.ts:434-527, driver-sql/src/sql-driver-top-level.ts:2686-2741, AGENTS.md changeset rule (:1022-1039), card #36168 and comments, PR body, final-head comment 7069341119, os-dev-report 7068861732, carriers #36189 and #36190, the PR body as re-read after both carriers were named, order section in area-a4-C.md.
Security-touching: no

① Derived judgments

  • Q1 one module, one set, one sentence: yes for the declared population. The operator rule is not copied: jsonColumnRefusedSpelling reads @objectstack/core's JSON_COLUMN_INCOMPATIBLE_OPERATORS through CUBE_TO_MONGO_OP, which is derived from MONGO_TO_CUBE_OP (json-column-comparison-refusal.ts:72-75, filter-normalizer.ts:554-556). The text is jsonColumnOperatorRefusalText(...).diagnostic at both call sites (:94, :142); the envelope is invalidFilterError → INVALID_FILTER / 400 (filter-normalizer.ts:511-516). Native call site: native-sql-strategy.ts:2510; preview call site: preview-evaluator.ts:845-847, fed from analytics-service.ts:3289-3295. The canHandle decline reads the same set (native-sql-strategy.ts:1129).
  • Measured, refused 400 INVALID_FILTER on native, ObjectQL and preview (fields tags, select multiple, lookup multiple, json): implicit equality, $eq, $in, $between, a dimension alias of the column, and a joined column (item.tags, dimension over it, nested form). For $in the native, ObjectQL and preview messages are byte-identical and equal the data door's diagnostic.
  • Still accepted, right counts on all evaluating faces: $contains (tags, picks, multi lookup, joined column), $notContains, $null, $exists, $empty (pin CONTROL at test :262-279, and the probe).
  • Q1 differences from the data door (see ④): the data door also refuses a null comparand ({f: null}, $eq: null, $ne: null) and an empty $in / $nin; the dataset door answers them (1, 1, 3, 0, 4 on a 4-row fixture, all correct). $like / $ilike are refused by the door's own unsupported-operator 400, not this sentence. Implicit equality is named $eq on native and preview, bare on the ObjectQL face; $between is named $gte on the live faces.
  • Q2 remaining silent wrong numbers: none found on a multi-value or structured-JSON column (measure filter, dataset filter, dimension alias, join, $not / $or, preview all refuse; grouping by such a dimension is already refused INVALID_FIELD). No result cache sits in front of the compile in the diff's path. One adjacent class still answers wrong: D6 below, carried by analytics: the native dataset face answers 200 with wrong counts for = / $in / $ne on a single-value image or file field (stored as JSON) where the data door refuses 400 #36190.
  • Q3 narrowing scope. Newly refused: the listed operators on a declared multi-value or structured-JSON field, on the native SQL strategy (every named dialect, so /analytics/dataset/query, its batch door and any other caller of AnalyticsService.query on that strategy) and on the draft preview. On the unknown dialect the native strategy now declines to the engine path. The preview refusal is inside the card's purpose (same door, same wrong counts, same module) and is declared in the PR body, the changeset FROM/TO and comment 7069341119: not an undeclared extra.
  • Q4 callers. Census over examples/, packages/qa, content/docs and hotcrm for a dataset / dashboard / runtime filter applying a refused operator to a multi-value or JSON field: 0 hits (regex census, so not proof; the dev's full dogfood battery at this head is green). content/docs teaches no such filter. No caller needed updating.
  • Q5 pins. 37/37 green here. The 26 refusal tests, the dataset-filter and measure-filter tests assert code AND status on every face and would fail if either call were removed (a face that answers makes refusalOf throw, test :84-90). The dev's ablation (32/37, 22/37, 2/37 red) was not re-run by me. Controls cover scalar columns and the accepted operators on both JSON fields.
  • Runs: pnpm exec vitest run --maxWorkers=2 src/__tests__/dataset-json-column-refusal-36168.test.ts → 1 file, 37 passed. Probe (temporary zz-probe-36184.test.ts, real SqlDriver SQLite + AnalyticsServicePlugin, removed after) → the per-face answers quoted in this record.

② Declarations

  • Clause-②: no (narrowing): correct, present in PR body and changeset (:7). Title carries !.
  • Metadata-protocol: none: correct by the rule (AGENTS.md:1026-1031) and by precedent for query-time filter refusals (35394-context-token-temporal-door.md, 34886-group-by-relation-path-refusal.md): no schema key or accepted value changes at save.
  • Changeset level patch on @objectstack/service-analytics: correct for a non-protocol breaking change; BREAKING banner, FROM/TO and the one-line fix are present (:12-18); ADR-0087 marker present (:10).
  • Lands by the maintainer only (narrowing).

③ Findings

  • No must-fix and no should-fix is open at this head. S1 of the earlier same-head record (the single-value-media class) now has its carrier and is D6 below.
  • N1 · nit · .changeset/36168-dataset-json-column-refusal.md:10. The ADR-0087 reason says there is no authored value; a dataset's own filter and a measure's filter are authored values that the native face now refuses at query time. The marker class still fits (the FROM/TO and fix are in the body); only the sentence overstates.
  • N2 · nit · PR body "Not refused, deliberately". It does not say that the data door refuses the null comparand and the empty list on such a field, so "the same way as the data door" reads wider than it is (④ D1).
  • N3 · observation, out of scope. In the draft preview a cross-field comparand naming a JSON field ({label: {$eq: {$field: 'tags'}}}) answers 200 count 0 where the live faces refuse 400. Pre-existing, a draft-preview evaluation gap and not the JSON-column rule; the seat routes it into analytics: the draft preview answers $contains on a multi-value field as a substring of the stringified array, not membership #36189's scope (the note on that card was not yet read by me).

④ Accepted deviations

Implemented-by: claude/issue-36168-dataset-json-column-refusal
Reviewed-by: contract-review subagent of session_01FEkQ5krBqrrgxCYgjXmfbv (claude-fable-5-2)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-project-manager · session_01FEkQ5krBqrrgxCYgjXmfbv

席位核对

Awaiting the maintainer's merge (narrowing) · 2026-11-21T21:25Z · head 4f8fa8810c6f6ef8c20f89e5bde0d1c06496857a

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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/l 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.

analytics: the dataset query door answers 200 / count 0 for = or $in on a JSON (multiple) column, where the data door refuses 400

3 participants