You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
filter grammar: a client node for the nested-relation form, so a dataset drill-through pushes one nested condition down instead of the bounded two-step id resolution (exit for #34907's PD5 exception) #34990
area:datadomain:uiDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Filed by triage at the request of repo:objectstack#3 (6961260513). A follow-up of #34907 (PR #34968).
The seat ruled a bounded Prime Directive 5 exception on #34907. PR #34968's dataset drill-through resolves a filter that reads through a relation on the client, in two steps:
at most 200 ids per hop and at most 3 hops;
never truncated, with a localized notice otherwise.
Exit: a client filter-grammar node for the nested-relation form. The drill filter is then sent as one nested condition and pushed down to SQL, instead of materialising id sets in the app.
Done when the node lands, resolveDatasetDrillFilter's two-step is removed, and the PD5 exception docblock in #34968 is retired.
Grade: p2 · domain:ui (theme: performance; it removes a client-side id materialisation that is bounded today). No user break: today's path is bounded and announces when it stops.
Claim: PM loop round 6 · area data-2 · 2026-11-19T07:58Z
Area: data-2
Session: session_01Utp6CajiB6BSQKWowy6YLB
Account: os-bill
Branch: claude/issue-34990-nested-relation-filter-node
Worktree: objectstack-issue-34990
Domain: domain:ui
Seat: repo:objectstack#5
File surface: ui/packages/core/src/utils/filter-converter.ts (and the client filter grammar it belongs to), ui/packages/core/src/utils/dataset-format.ts (resolveDatasetDrillFilter: retire the two-step and its PD5 docblock), their tests, root .changeset/. Reading first: the dev measures whether the server already accepts and pushes down the nested-relation condition form (relation-condition-sites, protocol query validation) and sizes the client node; if it needs a packages/spec filter grammar change, a server change, or exceeds size L, it stops and the area hands the card back to the seat. ⛔ No server / spec edit in this claim. Stop on breach and report.
Container & model: M, mode:subagent, model: default — no path-derived mandate, effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: ui core in objectstack resolves a dataset drill-through over a relation path by materialising up to 200 ids per hop on the client (bounded PD5 exception, seat ruling 6961225798); no platform path covers it; every dashboard reader drilling a relationship-path dimension
Thread-read: none
Premise: holds — on origin/main: resolveDatasetDrillFilter (ui/packages/core/src/utils/dataset-format.ts) still runs the two-step id resolution
Serial constraints cleared: none — no open PR touches filter-converter.ts or dataset-format.ts (live read of open PRs' files at claim time)
Pre-claim lane: domain:ui (ui/packages/core/**)
Pre-claim deps: none named; source #34907 / PR #34968 merged
Prior rulings read: PD5, nested relation, drill, two-step → seat ruling 6961225798 (bounded exception (a); exit = this client grammar node; exception not a precedent) binds; ADR-0139 / ADR-0155 (engine-internal semi-join leaf, never authorable) bound what the client may send; none conflicts
{
"issue": 34990,
"status": "done",
"branch": "claude/issue-34990-nested-relation-filter-node",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35423",
"head": "dba9da83",
"session": "session_01Utp6CajiB6BSQKWowy6YLB",
"premise_still_valid": true,
"summary": "convertFiltersToAST (@object-ui/core) now lowers the spec-declared nested-relation form (a plain object with no $ key beneath a field, the engine's own isNoOperatorObject population) to one equality node [field,'=',condition], which the spec's parseFilterAST reads back as the nested condition; mixed maps stay refused. resolveDatasetDrillFilter's client two-step is removed: a relationship-path dimension drills as one nested condition (1-3 hops, no related id read, no cap), keeping the per-hop schema check, hop limit and empty-bucket refusal; the PD5 exception docblock is retired. DATASET_DRILL_RELATED_ID_CAP and the too-many member stay exported, @deprecated (removal narrows a published export and touches consumers outside the claim). Visible consequence: the drawer's Open-in-list escape hatch is no longer offered for a relationship-path drill (the filter[...] URL dialect has no nested spelling).",
"readings": {
"A1": "HOLDS. Real ObjectQL + SqlDriver(better-sqlite3) + SecurityPlugin + RestServer, GET /api/v1/data/:object with ?filter= the client's AST JSON, knex query log, throwaway test (not committed), tree 2e9e1ac9: ['owner','=',{region:'NA'}] to 200 ids d1,d3, 1 statement 'owner in (select id from owner where region = ? and RLS)'; 2 hops ['ledger','=',{owner:{region:'NA'}}] to 200 id n1, 1 statement with two nested in-subqueries each carrying its RLS; and-group with plain conjunct to 200, 1 statement; CONTROL ['owner','in',['u1']] to 200, bound id list. No id materialisation. Server admits id inside a nested condition (PLATFORM_PROVISIONED_COLUMN_TYPES in no-operator-object-door.ts, code reading).",
"A2": "HOLDS. Before: convertFiltersToAST({account:{owner:'u1'}}) threw 'Unknown filter operator owner' (reproduced by the converter ablation). The node is client-only: spec parseFilterAST convertComparison already lowers [f,'=',obj] to {f: obj}; spec FilterCondition declares the nested form (form 4). No spec/server/objectql edit.",
"A3": "HOLDS. 7 files, +207 / -128 (M)."
},
"files_changed": [
".changeset/34990-nested-relation-filter-node.md",
"ui/packages/core/src/utils/filter-converter.ts",
"ui/packages/core/src/utils/dataset-format.ts",
"ui/packages/core/src/utils/__tests__/filter-converter.test.ts",
"ui/packages/core/src/utils/__tests__/dataset-drill-relationship-path-34907.test.ts",
"ui/packages/plugin-dashboard/src/__tests__/DatasetWidget.test.tsx",
"ui/packages/plugin-report/src/__tests__/DatasetReportRenderer.test.tsx"
],
"line_budget": "+207 / -128 = 335 changed lines (src +86/-63, tests +107/-66, changeset +14); under the 3000 human-merge threshold",
"deviations": [
"File surface: two consumer TEST files outside the claim's surface were edited (plugin-dashboard DatasetWidget.test.tsx, plugin-report DatasetReportRenderer.test.tsx), flipping only the #34968 legs that asserted the two-step, as the dispatch's route asks; no consumer source touched.",
"Suggested route not fully taken: the too-many notice path (DatasetWidget/DatasetReportRenderer arms, DrillDownDrawer notice entry, locale strings) and the DATASET_DRILL_RELATED_ID_CAP export were NOT deleted: the files sit outside the claim's surface and removing the export narrows @object-ui/core's published surface; they are kept @deprecated and unreachable.",
"PR body cites head 0ff1d0ab; head is now dba9da83 (one comment-only commit restoring the objectstack#17469 citation that the plugin-detail pin relatedListParentScopeResidue-8937 requires, caught by CI Test UI 14/16 on 0ff1d0ab). Per os-dev.md the body is not PATCHed by the dev; the seat updates it.",
"Merge commit 0ff1d0ab (git merge --no-edit origin/main) carries git's default message without the trailer pair."
],
"tests": "head 0ff1d0ab: pnpm --filter @object-ui/core test to Test Files 243 passed (243), Tests 4482 passed | 27 skipped; four touched files verbose to Test Files 4 passed (4), Tests 168 passed (168). head dba9da83 (comment-only delta): plugin-detail relatedListParentScopeResidue-8937 + data-objectstack readme-filter-operator-table + i18n number-display.reexport-identity + DatasetWidget.dateMeasure + 34907 file to Test Files 5 passed (5), Tests 38 passed (38). Type-check: @object-ui/core exit 0; @object-ui/plugin-dashboard + @object-ui/plugin-report exit 0. Ablation 1 (converter node disabled via ablation-replace, blob 53704b04tod69c22c6): 5 failed / 23 passed, all 'Unknown filter operator'; restored blob == HEAD, git diff HEAD empty. Ablation 2 (resolver nested write to {$in:[]}, blob 8c335150to2783b612): 6 failed / 3 passed; restored blob == HEAD. Both suites import the module from source by relative path: no dist leg. test:repo not run locally (CI-owned).",
"gates": "Local: dispatch-gates --commands --repo objectstack-ai/objectstack at 0ff1d0ab derived 39 families, all run, every one exit 0; --ran reconciliation: '39 derived famil(ies) accounted for - 39 run, 0 NOT-MEASURED (a DERIVED zero - all 39 recorded an exit code and none of them is 3)'. Re-run on dba9da83: check:type-check-coverage, check:cross-package-test-inputs, check:test-source-alias, check:published-files, check:nul-bytes, check-adr-0087-registration, check-changeset-no-major, check-empty-changeset :: exit 0 each; check:type-check-debt not re-run on dba9da83 (comment-only delta), ran exit 0 on 0ff1d0ab. overlap-check.mjs before each push: VERDICT clean exit 0 (x3). CI on 0ff1d0ab (single read, not polled): TypeScript Type Check success, Type Check UI success, Test Core success, Live E2E UI success, Lint * success, PR-body guards success, Test UI 14/16 FAILURE (relatedListParentScopeResidue-8937 citation pin on dataset-format.ts, fixed in dba9da83), other Test UI shards success or in_progress. CI on dba9da83: in_progress, not awaited.",
"dogfood_battery": "n/a - no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 relay strokes: pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /repos/objectstack-ai/objectstack/issues/35423/assignees os-bill; read-back identical, 8294 bytes); os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/34990/comments via post-stamped.mjs). git push x3 not counted.",
"open_questions": [
{
"question": "Relationship-path drills no longer offer the drawer's Open-in-list escape hatch (the filter[...] URL dialect has no nested-relation spelling; under the two-step a drill with at most 200 related ids could escalate via filter[rel][in]). Accept?",
"options": [
"A accept as shipped; a follow-up card gives the URL dialect a nested-relation spelling (write side serializeDrillFilterParams + read side parseUrlFilterTriples), about 1 PR",
"B hold this PR until that URL spelling lands, then ship both",
"C keep an id-list fallback only for the Open-in-list link (reintroduces client id materialisation the ruling retires)"
],
"recommendation": "A, because the drawer itself lists the records with no cap, the escape hatch is hidden rather than wrong (exactRecordListFilter answers null, never a wider list), and C contradicts seat ruling 6961225798."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: seat repo:objectstack#5 · not filed · dead residue now unreachable: the too-many arm in DatasetWidget.tsx and DatasetReportRenderer.tsx, the 'too-many' entry of DrillDownDrawer's notice table and its locale strings in 11 locales, DATASET_DRILL_RELATED_ID_CAP and the too-many member of DatasetDrillResolution (removal narrows a published export) · dedupe words: too-many notice, DATASET_DRILL_RELATED_ID_CAP, drill notice residue",
"carrier: seat repo:objectstack#5 · not filed · Open-in-list for a nested-relation drill needs a URL-dialect spelling (see open_questions) · dedupe words: open in list, nested relation URL filter, serializeDrillFilterParams",
"carrier: none · noted only · stale comment in ui/packages/data-objectstack/src/queryDataset.test.ts ('resolved through the related ids first') and content/docs/ui/dashboards.mdx does not describe relationship-path drill or the Open-in-list exception"
]
}
Seat note · area data-2 · 2026-11-19T09:09Z
Seat 5 picked A on the dev's open question (os-dev-report 7004645702): PR #35423 ships with the drawer's Open-in-list link hidden for relationship-path drills (the drawer still lists every record). Ruling 6961225798 named this grammar node as the exit from the bounded id-list exception, so an id-list fallback for the link (C) is out, and the hidden link doesn't hold the PR (B). Follow-ups, both p3 sub-issues of this card: #35438 (nested-relation spelling in the list URL dialect → Open in list returns) and #35439 (remove the unreachable too-many residue and DATASET_DRILL_RELATED_ID_CAP; narrowing arm, Clause-② and the ADR-0087 marker go there, not in #35423).
Claim amendment · area data-2 · 2026-11-19T09:35Z
Area: data-2
Reason: seat 5's L2 on PR #35423 (comment 7005257036, PASS with S1 should-fix). Seat pick: fix S1 in this PR rather than a second one. #35447 (filed for S1) is folded in; the PR closes it too.
File surface (adds to claim 7003259305's): ui/packages/core/src/adapters/ValueDataSource.ts (matchesComparisonNode refuses a no-$ plain-object comparand with the object arm's wording) and one pin under ui/packages/core/src/adapters/__tests__/; ui/packages/data-objectstack/README.md lowering-table row for the nested-relation node (L2 nit). Changeset prose extended in the same file. Declaration unchanged: Clause-②: yes (widening), Metadata-protocol: none, patch.
{
"issue": 34990,
"status": "done",
"branch": "claude/issue-34990-nested-relation-filter-node",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35423",
"head": "def1213f06526448ce6bc1386086c6b87a6aeafd",
"session": "session_01Utp6CajiB6BSQKWowy6YLB",
"premise_still_valid": true,
"summary": "Round 2 (S1 fold; the defect filed as #35447). ValueDataSource.matchesComparisonNode now refuses a comparand that is a non-empty object with no `$` key (the nested-relation node convertFiltersToAST lowers to) for every operator that reads the comparand, before the switch, with the object arm's sentence through one shared builder nestedRelationRefusalReason(field, key); the object arm's default branch now calls the same builder, so the two log lines are byte-identical (A1 held). A Date / accepted comparand and the `{ $field }` reference are excluded by isAcceptedFilterComparand and the `$`-key test. A2 held: the only other value-face matcher, matchesDollarOperator, already refuses the object form. Pre-fix measured by ablation: `=` excluded every row silently and `!=` returned every row (fail-open). Also: README lowering-table row for the node (worked example executed by readme-filter-operator-table.test.ts), changeset prose extended, declaration lines unchanged. PR body not touched; PR still draft.",
"files": [
"ui/packages/core/src/adapters/ValueDataSource.ts",
"ui/packages/core/src/adapters/__tests__/ValueDataSource.astFilterVocabulary.test.ts",
"ui/packages/data-objectstack/README.md",
".changeset/34990-nested-relation-filter-node.md"
],
"tests": "All on def1213f. Focused: pnpm --dir ui exec vitest run ValueDataSource.astFilterVocabulary.test.ts + ValueDataSource.dollarFilterVocabulary.test.ts -> Test Files 2 passed (2), Tests 142 passed (142), lock VERDICT command-exit 0. Package: pnpm --dir ui exec vitest run --maxWorkers=2 packages/core/ packages/data-objectstack/src/readme-filter-operator-table.test.ts -> Test Files 244 passed (244), Tests 4498 passed | 27 skipped, VERDICT command-exit 0. pnpm --filter @object-ui/core type-check (tsc --noEmit and tsc -p tsconfig.test.json) -> VERDICT command-exit 0. Ablation (one, after commit; test imports ../ValueDataSource from src, so no dist leg): scripts/ablation-replace.mjs replaced the refusal return with a no-op -> anchor x1 to x0, blob 24ec5722 to 8cff305d; pin RED, Tests 2 failed | 66 passed: 'the AST form and the object form are refused alike' (expected warn called 1 time, got 0) and '`!=` on the node is refused too' (expected [] got ['a','b','c']); CONTROL scalar `=` stayed green; restore verified blob == HEAD 24ec5722 and git diff HEAD empty.",
"gates": "dispatch-gates --commands (tree def1213f; it warned the tree is 12 commits behind origin/main, the only stale derivation input being scripts/pm/check-skill-line-ratchet.mjs, not one of the derived families) -> 39 families; 38 exit 0 on first run. `pnpm --dir ui exec vitest run scripts/` exit 1: 1 failed of 5094, unit-registry-absence-collision.test.ts, cause 'Failed to resolve entry for package @objectstack/client' (that package was not built in this fresh worktree, the diff does not touch it); after building the @objectstack/client closure under the lock (VERDICT 0) the file reran green, Test Files 1 passed, Tests 15 passed (rerun of that file only, not the whole scripts/ suite). --ran reconciliation with exit codes: '39 derived famil(ies) accounted for, 39 run, 0 NOT-MEASURED (a DERIVED zero)'. overlap-check --branch=HEAD: 'origin/main: merges cleanly', VERDICT clean exit 0, 0 PR heads share files. PR check-runs on def1213f at report time: 45 completed/success, 13 completed/skipped, 0 failed; the UI lanes (Test UI shards, Lint UI, Type Check UI, Build & E2E UI) are not finished yet: in_progress, not waited on.",
"dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2: git push of the branch (def1213f); one issue comment on #34990 (this report) via scripts/pm/post-stamped.mjs",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [],
"deviations": [
"The pin went into the existing ValueDataSource.astFilterVocabulary.test.ts as a new top-level describe, not a new file. The order says 'one pin file under __tests__/'; AGENTS.md says a new pin for a component that already has a shared harness file goes into that file (ruling record 6583487846), and AGENTS.md wins. Still one file under __tests__/.",
"The refusal covers every operator that reads the comparand, not only `=`. This follows A1's 'and any other comparison operator that can carry the node': without it `!=` returned every row.",
"The ui scripts/ family was reread for its one failing file only, after a build. It was not rerun in full."
]
}
Clause-②: yes (narrowing) — was yes (widening). Delta contract review 7006192304 (M1): the folded ValueDataSource refusal (#35447) narrows a published @object-ui/core export, so the mixed diff declares the narrowing arm. Metadata-protocol: none and the patch level stand. The same line holds for #35447, which rides PR #35423.
Round 3 (head 694b6011): changeset only (BREAKING FROM / TO, ADR-0087 not-required (no-migration-prescription)); full dogfood 482 passed / 3 skipped files, 0 failures. PR body carries Skills-docs: follow-up #35481 (p3, sub-issue here). Next: the seat's contract-tier review on the narrowing face.
{
"issue": 34990,
"status": "done",
"branch": "claude/issue-34990-nested-relation-filter-node",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35423",
"head": "b950ae60ebe620823c8fc1713ae895ecd0707d50",
"session": "session_01Utp6CajiB6BSQKWowy6YLB",
"premise_still_valid": true,
"summary": "Round 4 (contract review S2 + nits, PM pick: FIX). nestedRelationComparandKey in ValueDataSource.ts now reads an AST comparand as a nested-relation condition only when it is a PLAIN object (Object.getPrototypeOf(v) === Object.prototype or null) with no `$` key, the spec's own filter-structure test; the isAcceptedFilterComparand line it replaces is subsumed (a Date fails the prototype test). A class instance with its own non-`$` keys (moment / luxon / decimal) is a value again and compares through valueOf under an ordering operator. The object arm does not share this helper (it splits on isAcceptedFilterComparand before its operator loop, unchanged by this PR), so it was not touched. Nits: not_contains and `>` refusal legs pinned beside `=` / `!=` over text-valued rows where the arm-less answer is non-empty; the changeset's 'refuses anything else' replaced by the exact server population (an object under a scalar or structured-JSON field; under a relationship, a key the related object does not declare, a dotted key, or nesting past the hop limit), 'plain object' named in the refused population, and the class-instance carve-out stated; the stale queryDataset.test.ts comment now says a path dimension drills as one nested-relation condition. Declaration lines and the ADR-0087 marker unchanged (marker text says 'a plain object'). One commit b950ae60 on top of a5945f2a, pushed fast-forward. PR body not touched; PR still draft.",
"files": [
"ui/packages/core/src/adapters/ValueDataSource.ts",
"ui/packages/core/src/adapters/__tests__/ValueDataSource.astFilterVocabulary.test.ts",
".changeset/34990-nested-relation-filter-node.md",
"ui/packages/data-objectstack/src/queryDataset.test.ts"
],
"tests": "Worktree fresh from a5945f2a. Closure: pnpm --filter '@object-ui/core^...' build, lock VERDICT command-exit 0. Focused: pnpm --dir ui exec vitest run packages/core/src/adapters/__tests__/ValueDataSource.astFilterVocabulary.test.ts gives Test Files 1 passed (1), Tests 73 passed (73), VERDICT command-exit 0; verbose list shows the 8 tests in the nested-relation describe (AST/object one sentence, `!=`, `not_contains`, `>`, scalar CONTROL, class-instance CONTROL `>` and `<`, Date CONTROL `>`). Package: pnpm --filter @object-ui/core test then type-check (tsc --noEmit and tsc -p tsconfig.test.json) gives Test Files 243 passed (243), Tests 4490 passed | 27 skipped (4517), VERDICT command-exit 0; tsc -p tsconfig.test.json --listFiles lists the pin file (count 1). Comment-only file: after building the @object-ui/data-objectstack closure, pnpm --dir ui exec vitest run packages/data-objectstack/src/queryDataset.test.ts gives Test Files 1 passed, Tests 68 passed, VERDICT command-exit 0. Ablation (one, on committed head b950ae60; the pin imports ../ValueDataSource from src, so no dist leg): node scripts/ablation-replace.mjs --delete of the line 'if (proto !== Object.prototype && proto !== null) return undefined;' gives anchor x1 to x0, blob e9d9ca63 to 5b0ae0fd; pin RED, Tests 2 failed | 71 passed: both class-instance CONTROL legs (`>` expected ['a','b'] received [], `<` expected ['b','c'] received []); the Date CONTROL stayed green under the ablation, as expected (a Date has no own keys, so the key test alone already passes it); restore verified blob after restore == HEAD e9d9ca63 and git diff HEAD empty.",
"gates": "dispatch-gates --commands (tree a5945f2a plus the working tree; 11 paths vs merge base 6f36818f; it warned the tree is at least 6 commits behind origin/main, none touching its inputs) derived 39 families; 38 exit 0 on the first run. `pnpm --dir ui exec vitest run scripts/` exited 1 on the first run: the process was SIGKILLed (ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL, kernel out-of-memory on the shared box), not a test failure; rerun as `pnpm --dir ui exec vitest run --maxWorkers=2 scripts/` gives Test Files 171 passed | 2 skipped (173), Tests 5092 passed | 2 skipped, VERDICT command-exit 0. --ran reconciliation with the first-run exit codes recorded as captured (the scripts/ line kept at exit 1, the rerun reported here): '39 derived famil(ies) accounted for, 39 run, 0 NOT-MEASURED (a DERIVED zero)'. ui check:new-line-citations: VERDICT 0 new citation(s), exit 0. overlap-check on b950ae60 after git fetch origin main: 'origin/main: merges cleanly', VERDICT clean exit 0, 0 PR heads share files. Push: pre-push check:commit-card-trailers passed, a5945f2aa..b950ae60e fast-forward. PR check-runs on b950ae60 at report time: 45 completed/success, 13 completed/skipped, 0 failed, 0 in progress; the required set all success: Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI (16/16 shards), Build & E2E UI, Live E2E UI, Dogfood Regression Gate; Build Core not among the check-runs on this head (path-selected), plus Check Changeset and PR-body guards success.",
"dogfood_battery": "Two runs, both full battery, no OS_TEST_SHARD, no path, under the lock. r3 at 694b6011: VERDICT command-exit 0, Test Files 482 passed | 3 skipped (485), Tests 4092 passed | 68 skipped (4160), no failures, lock held 1972s. r4 at final head b950ae60: pnpm --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test, VERDICT command-exit 0, Test Files 482 passed | 3 skipped (485), Tests 4092 passed | 68 skipped (4160), no failures, lock held 2369s after 3 queue-timeouts (exit 99, slot kept) behind another holder and 344s wait on the fourth.",
"mcp_calls": "0",
"api_writes": "1 REST write: POST /repos/objectstack-ai/objectstack/issues/34990/comments (this os-dev-report, via scripts/pm/post-stamped.mjs). Plus one git push (not REST). Reads only otherwise: gh api GET issue comments, check-runs, pull 35423, and overlap-check's open-PR listing.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed · The object arm still reads `{ created: X }` with X a class instance carrying own keys as an operator map and refuses each own key with the nested-relation sentence. Pre-existing on origin/main, not in this PR's diff, loud rather than silent, and convertFiltersToAST refuses the same shape as an exotic comparand, so no wrong rows are served; outside all three filing classes.",
"carrier: none · noted, not filed · convertFiltersToAST's isOperatorMap also admits a cross-realm plain object (prototype whose prototype is null); the new ValueDataSource test follows the PM pick and the spec's isFilterNode (Object.prototype or null) and does not. No producer in the tree hands ValueDataSource a cross-realm filter object; read-only observation, zero pull."
]
}
{
"issue": 34990,
"status": "done",
"branch": "claude/issue-34990-nested-relation-filter-node",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35423",
"head": "b950ae60ebe620823c8fc1713ae895ecd0707d50",
"session": "session_01Utp6CajiB6BSQKWowy6YLB",
"premise_still_valid": true,
"summary": "Round 4 (contract review S2 + nits, PM pick: FIX). nestedRelationComparandKey in ValueDataSource.ts now reads an AST comparand as a nested-relation condition only when it is a PLAIN object (Object.getPrototypeOf(v) === Object.prototype or null) with no `$` key, the spec's own filter-structure test; the isAcceptedFilterComparand line it replaces is subsumed (a Date fails the prototype test). A class instance with its own non-`$` keys (moment / luxon / decimal) is a value again and compares through valueOf under an ordering operator. The object arm does not share this helper (it splits on isAcceptedFilterComparand before its operator loop, unchanged by this PR), so it was not touched. Nits: not_contains and `>` refusal legs pinned beside `=` / `!=` over text-valued rows where the arm-less answer is non-empty; the changeset's 'refuses anything else' replaced by the exact server population (an object under a scalar or structured-JSON field; under a relationship, a key the related object does not declare, a dotted key, or nesting past the hop limit), 'plain object' named in the refused population, and the class-instance carve-out stated; the stale queryDataset.test.ts comment now says a path dimension drills as one nested-relation condition. Declaration lines and the ADR-0087 marker unchanged (marker text says 'a plain object'). One commit b950ae60 on top of a5945f2a, pushed fast-forward. PR body not touched; PR still draft.",
"files": [
"ui/packages/core/src/adapters/ValueDataSource.ts",
"ui/packages/core/src/adapters/__tests__/ValueDataSource.astFilterVocabulary.test.ts",
".changeset/34990-nested-relation-filter-node.md",
"ui/packages/data-objectstack/src/queryDataset.test.ts"
],
"tests": "Worktree fresh from a5945f2a. Closure: pnpm --filter '@object-ui/core^...' build, lock VERDICT command-exit 0. Focused: pnpm --dir ui exec vitest run packages/core/src/adapters/__tests__/ValueDataSource.astFilterVocabulary.test.ts gives Test Files 1 passed (1), Tests 73 passed (73), VERDICT command-exit 0; verbose list shows the 8 tests in the nested-relation describe (AST/object one sentence, `!=`, `not_contains`, `>`, scalar CONTROL, class-instance CONTROL `>` and `<`, Date CONTROL `>`). Package: pnpm --filter @object-ui/core test then type-check (tsc --noEmit and tsc -p tsconfig.test.json) gives Test Files 243 passed (243), Tests 4490 passed | 27 skipped (4517), VERDICT command-exit 0; tsc -p tsconfig.test.json --listFiles lists the pin file (count 1). Comment-only file: after building the @object-ui/data-objectstack closure, pnpm --dir ui exec vitest run packages/data-objectstack/src/queryDataset.test.ts gives Test Files 1 passed, Tests 68 passed, VERDICT command-exit 0. Ablation (one, on committed head b950ae60; the pin imports ../ValueDataSource from src, so no dist leg): node scripts/ablation-replace.mjs --delete of the line 'if (proto !== Object.prototype && proto !== null) return undefined;' gives anchor x1 to x0, blob e9d9ca63 to 5b0ae0fd; pin RED, Tests 2 failed | 71 passed: both class-instance CONTROL legs (`>` expected ['a','b'] received [], `<` expected ['b','c'] received []); the Date CONTROL stayed green under the ablation, as expected (a Date has no own keys, so the key test alone already passes it); restore verified blob after restore == HEAD e9d9ca63 and git diff HEAD empty.",
"gates": "dispatch-gates --commands (tree a5945f2a plus the working tree; 11 paths vs merge base 6f36818f; it warned the tree is at least 6 commits behind origin/main, none touching its inputs) derived 39 families; 38 exit 0 on the first run. `pnpm --dir ui exec vitest run scripts/` exited 1 on the first run: the process was SIGKILLed (ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL, kernel out-of-memory on the shared box), not a test failure; rerun as `pnpm --dir ui exec vitest run --maxWorkers=2 scripts/` gives Test Files 171 passed | 2 skipped (173), Tests 5092 passed | 2 skipped, VERDICT command-exit 0. --ran reconciliation with the first-run exit codes recorded as captured (the scripts/ line kept at exit 1, the rerun reported here): '39 derived famil(ies) accounted for, 39 run, 0 NOT-MEASURED (a DERIVED zero)'. ui check:new-line-citations: VERDICT 0 new citation(s), exit 0. overlap-check on b950ae60 after git fetch origin main: 'origin/main: merges cleanly', VERDICT clean exit 0, 0 PR heads share files. Push: pre-push check:commit-card-trailers passed, a5945f2aa..b950ae60e fast-forward. PR check-runs on b950ae60 at report time: 45 completed/success, 13 completed/skipped, 0 failed, 0 in progress; the required set all success: Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI (16/16 shards), Build & E2E UI, Live E2E UI, Dogfood Regression Gate; Build Core not among the check-runs on this head (path-selected), plus Check Changeset and PR-body guards success.",
"dogfood_battery": "b950ae60ebe620823c8fc1713ae895ecd0707d50 · os-verify-lock: VERDICT command-exit 0 · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures. r3 at 694b6011: os-verify-lock: VERDICT command-exit 0 · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures. Both runs were the full battery under the lock, with no OS_TEST_SHARD and no path (pnpm --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test); lock held 2369s on the final head and 1972s on r3.",
"mcp_calls": "0",
"api_writes": "1 REST write: POST /repos/objectstack-ai/objectstack/issues/34990/comments (this os-dev-report, via scripts/pm/post-stamped.mjs). Plus one git push (not REST). Reads only otherwise: gh api GET issue comments, check-runs, pull 35423, and overlap-check's open-PR listing.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed · The object arm still reads `{ created: X }` with X a class instance carrying own keys as an operator map and refuses each own key with the nested-relation sentence. Pre-existing on origin/main, not in this PR's diff, loud rather than silent, and convertFiltersToAST refuses the same shape as an exotic comparand, so no wrong rows are served; outside all three filing classes.",
"carrier: none · noted, not filed · convertFiltersToAST's isOperatorMap also admits a cross-realm plain object (prototype whose prototype is null); the new ValueDataSource test follows the PM pick and the spec's isFilterNode (Object.prototype or null) and does not. No producer in the tree hands ValueDataSource a cross-realm filter object; read-only observation, zero pull."
]
}
Delivered: a dashboard or report drill on a relationship-path dimension (account.owner, up to three hops) is sent as one nested-relation condition that the server joins in the database. No related ids are read, nothing is capped, and the "too many" notice no longer occurs. The in-memory value source refuses a nested-relation comparand by name (=, !=, not_contains, ordering) instead of answering silently; a class instance or Date comparand is still data. The drawer offers no "Open in list" link for such a drill.
Folded: #35447 (closed with this close-out). Follow-ups: #35438 (list URL spelling, p3), #35481 (skills + docs, p3), #35493 (object-dialect twin, p2), #35494 (spec docblock, p3), #35533 (review nits, p3).
State: pm:dispatched removed; card closed.
area:datadomain:uiDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB
Claim: PM loop round 6 · area data-2 · 2026-11-19T07:58Z
Area: data-2
Session:
session_01Utp6CajiB6BSQKWowy6YLBAccount:
os-billBranch:
claude/issue-34990-nested-relation-filter-nodeWorktree:
objectstack-issue-34990Domain:
domain:uiSeat:
repo:objectstack#5File surface:
ui/packages/core/src/utils/filter-converter.ts(and the client filter grammar it belongs to),ui/packages/core/src/utils/dataset-format.ts(resolveDatasetDrillFilter: retire the two-step and its PD5 docblock), their tests, root.changeset/. Reading first: the dev measures whether the server already accepts and pushes down the nested-relation condition form (relation-condition-sites, protocol query validation) and sizes the client node; if it needs apackages/specfilter grammar change, a server change, or exceeds size L, it stops and the area hands the card back to the seat. ⛔ No server / spec edit in this claim. Stop on breach and report.Container & model:
M,mode:subagent,model: default — no path-derived mandate,effort: highClause-②: no
Metadata-protocol: none
Responsibility: ui
corein objectstack resolves a dataset drill-through over a relation path by materialising up to 200 ids per hop on the client (bounded PD5 exception, seat ruling 6961225798); no platform path covers it; every dashboard reader drilling a relationship-path dimensionThread-read: none
Premise: holds — on
origin/main:resolveDatasetDrillFilter(ui/packages/core/src/utils/dataset-format.ts) still runs the two-step id resolutionSerial constraints cleared: none — no open PR touches
filter-converter.tsordataset-format.ts(live read of open PRs' files at claim time)Pre-claim lane:
domain:ui(ui/packages/core/**)Pre-claim deps: none named; source #34907 / PR #34968 merged
Prior rulings read: PD5, nested relation, drill, two-step → seat ruling 6961225798 (bounded exception (a); exit = this client grammar node; exception not a precedent) binds; ADR-0139 / ADR-0155 (engine-internal semi-join leaf, never authorable) bound what the client may send; none conflicts
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB
os-dev-report
{ "issue": 34990, "status": "done", "branch": "claude/issue-34990-nested-relation-filter-node", "pr": "https://github.com/objectstack-ai/objectstack/pull/35423", "head": "dba9da83", "session": "session_01Utp6CajiB6BSQKWowy6YLB", "premise_still_valid": true, "summary": "convertFiltersToAST (@object-ui/core) now lowers the spec-declared nested-relation form (a plain object with no $ key beneath a field, the engine's own isNoOperatorObject population) to one equality node [field,'=',condition], which the spec's parseFilterAST reads back as the nested condition; mixed maps stay refused. resolveDatasetDrillFilter's client two-step is removed: a relationship-path dimension drills as one nested condition (1-3 hops, no related id read, no cap), keeping the per-hop schema check, hop limit and empty-bucket refusal; the PD5 exception docblock is retired. DATASET_DRILL_RELATED_ID_CAP and the too-many member stay exported, @deprecated (removal narrows a published export and touches consumers outside the claim). Visible consequence: the drawer's Open-in-list escape hatch is no longer offered for a relationship-path drill (the filter[...] URL dialect has no nested spelling).", "readings": { "A1": "HOLDS. Real ObjectQL + SqlDriver(better-sqlite3) + SecurityPlugin + RestServer, GET /api/v1/data/:object with ?filter= the client's AST JSON, knex query log, throwaway test (not committed), tree 2e9e1ac9: ['owner','=',{region:'NA'}] to 200 ids d1,d3, 1 statement 'owner in (select id from owner where region = ? and RLS)'; 2 hops ['ledger','=',{owner:{region:'NA'}}] to 200 id n1, 1 statement with two nested in-subqueries each carrying its RLS; and-group with plain conjunct to 200, 1 statement; CONTROL ['owner','in',['u1']] to 200, bound id list. No id materialisation. Server admits id inside a nested condition (PLATFORM_PROVISIONED_COLUMN_TYPES in no-operator-object-door.ts, code reading).", "A2": "HOLDS. Before: convertFiltersToAST({account:{owner:'u1'}}) threw 'Unknown filter operator owner' (reproduced by the converter ablation). The node is client-only: spec parseFilterAST convertComparison already lowers [f,'=',obj] to {f: obj}; spec FilterCondition declares the nested form (form 4). No spec/server/objectql edit.", "A3": "HOLDS. 7 files, +207 / -128 (M)." }, "files_changed": [ ".changeset/34990-nested-relation-filter-node.md", "ui/packages/core/src/utils/filter-converter.ts", "ui/packages/core/src/utils/dataset-format.ts", "ui/packages/core/src/utils/__tests__/filter-converter.test.ts", "ui/packages/core/src/utils/__tests__/dataset-drill-relationship-path-34907.test.ts", "ui/packages/plugin-dashboard/src/__tests__/DatasetWidget.test.tsx", "ui/packages/plugin-report/src/__tests__/DatasetReportRenderer.test.tsx" ], "line_budget": "+207 / -128 = 335 changed lines (src +86/-63, tests +107/-66, changeset +14); under the 3000 human-merge threshold", "deviations": [ "File surface: two consumer TEST files outside the claim's surface were edited (plugin-dashboard DatasetWidget.test.tsx, plugin-report DatasetReportRenderer.test.tsx), flipping only the #34968 legs that asserted the two-step, as the dispatch's route asks; no consumer source touched.", "Suggested route not fully taken: the too-many notice path (DatasetWidget/DatasetReportRenderer arms, DrillDownDrawer notice entry, locale strings) and the DATASET_DRILL_RELATED_ID_CAP export were NOT deleted: the files sit outside the claim's surface and removing the export narrows @object-ui/core's published surface; they are kept @deprecated and unreachable.", "PR body cites head 0ff1d0ab; head is now dba9da83 (one comment-only commit restoring the objectstack#17469 citation that the plugin-detail pin relatedListParentScopeResidue-8937 requires, caught by CI Test UI 14/16 on 0ff1d0ab). Per os-dev.md the body is not PATCHed by the dev; the seat updates it.", "Merge commit 0ff1d0ab (git merge --no-edit origin/main) carries git's default message without the trailer pair." ], "tests": "head 0ff1d0ab: pnpm --filter @object-ui/core test to Test Files 243 passed (243), Tests 4482 passed | 27 skipped; four touched files verbose to Test Files 4 passed (4), Tests 168 passed (168). head dba9da83 (comment-only delta): plugin-detail relatedListParentScopeResidue-8937 + data-objectstack readme-filter-operator-table + i18n number-display.reexport-identity + DatasetWidget.dateMeasure + 34907 file to Test Files 5 passed (5), Tests 38 passed (38). Type-check: @object-ui/core exit 0; @object-ui/plugin-dashboard + @object-ui/plugin-report exit 0. Ablation 1 (converter node disabled via ablation-replace, blob 53704b04tod69c22c6): 5 failed / 23 passed, all 'Unknown filter operator'; restored blob == HEAD, git diff HEAD empty. Ablation 2 (resolver nested write to {$in:[]}, blob 8c335150to2783b612): 6 failed / 3 passed; restored blob == HEAD. Both suites import the module from source by relative path: no dist leg. test:repo not run locally (CI-owned).", "gates": "Local: dispatch-gates --commands --repo objectstack-ai/objectstack at 0ff1d0ab derived 39 families, all run, every one exit 0; --ran reconciliation: '39 derived famil(ies) accounted for - 39 run, 0 NOT-MEASURED (a DERIVED zero - all 39 recorded an exit code and none of them is 3)'. Re-run on dba9da83: check:type-check-coverage, check:cross-package-test-inputs, check:test-source-alias, check:published-files, check:nul-bytes, check-adr-0087-registration, check-changeset-no-major, check-empty-changeset :: exit 0 each; check:type-check-debt not re-run on dba9da83 (comment-only delta), ran exit 0 on 0ff1d0ab. overlap-check.mjs before each push: VERDICT clean exit 0 (x3). CI on 0ff1d0ab (single read, not polled): TypeScript Type Check success, Type Check UI success, Test Core success, Live E2E UI success, Lint * success, PR-body guards success, Test UI 14/16 FAILURE (relatedListParentScopeResidue-8937 citation pin on dataset-format.ts, fixed in dba9da83), other Test UI shards success or in_progress. CI on dba9da83: in_progress, not awaited.", "dogfood_battery": "n/a - no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 relay strokes: pr_create (POST /repos/objectstack-ai/objectstack/pulls draft + POST /repos/objectstack-ai/objectstack/issues/35423/assignees os-bill; read-back identical, 8294 bytes); os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/34990/comments via post-stamped.mjs). git push x3 not counted.", "open_questions": [ { "question": "Relationship-path drills no longer offer the drawer's Open-in-list escape hatch (the filter[...] URL dialect has no nested-relation spelling; under the two-step a drill with at most 200 related ids could escalate via filter[rel][in]). Accept?", "options": [ "A accept as shipped; a follow-up card gives the URL dialect a nested-relation spelling (write side serializeDrillFilterParams + read side parseUrlFilterTriples), about 1 PR", "B hold this PR until that URL spelling lands, then ship both", "C keep an id-list fallback only for the Open-in-list link (reintroduces client id materialisation the ruling retires)" ], "recommendation": "A, because the drawer itself lists the records with no cap, the escape hatch is hidden rather than wrong (exactRecordListFilter answers null, never a wider list), and C contradicts seat ruling 6961225798." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: seat repo:objectstack#5 · not filed · dead residue now unreachable: the too-many arm in DatasetWidget.tsx and DatasetReportRenderer.tsx, the 'too-many' entry of DrillDownDrawer's notice table and its locale strings in 11 locales, DATASET_DRILL_RELATED_ID_CAP and the too-many member of DatasetDrillResolution (removal narrows a published export) · dedupe words: too-many notice, DATASET_DRILL_RELATED_ID_CAP, drill notice residue", "carrier: seat repo:objectstack#5 · not filed · Open-in-list for a nested-relation drill needs a URL-dialect spelling (see open_questions) · dedupe words: open in list, nested relation URL filter, serializeDrillFilterParams", "carrier: none · noted only · stale comment in ui/packages/data-objectstack/src/queryDataset.test.ts ('resolved through the related ids first') and content/docs/ui/dashboards.mdx does not describe relationship-path drill or the Open-in-list exception" ] }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB
Seat note · area data-2 · 2026-11-19T09:09Z
Seat 5 picked A on the dev's open question (os-dev-report 7004645702): PR #35423 ships with the drawer's Open-in-list link hidden for relationship-path drills (the drawer still lists every record). Ruling 6961225798 named this grammar node as the exit from the bounded id-list exception, so an id-list fallback for the link (C) is out, and the hidden link doesn't hold the PR (B). Follow-ups, both p3 sub-issues of this card: #35438 (nested-relation spelling in the list URL dialect → Open in list returns) and #35439 (remove the unreachable too-many residue and
DATASET_DRILL_RELATED_ID_CAP; narrowing arm, Clause-② and the ADR-0087 marker go there, not in #35423).chore(changeset): declare #34990's convertFiltersToAST input widening…
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB
Claim amendment · area data-2 · 2026-11-19T09:35Z
Area: data-2
Reason: seat 5's L2 on PR #35423 (comment 7005257036, PASS with S1 should-fix). Seat pick: fix S1 in this PR rather than a second one. #35447 (filed for S1) is folded in; the PR closes it too.
File surface (adds to claim 7003259305's):
ui/packages/core/src/adapters/ValueDataSource.ts(matchesComparisonNoderefuses a no-$plain-object comparand with the object arm's wording) and one pin underui/packages/core/src/adapters/__tests__/;ui/packages/data-objectstack/README.mdlowering-table row for the nested-relation node (L2 nit). Changeset prose extended in the same file. Declaration unchanged:Clause-②: yes (widening),Metadata-protocol: none, patch.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB
os-dev-report
{ "issue": 34990, "status": "done", "branch": "claude/issue-34990-nested-relation-filter-node", "pr": "https://github.com/objectstack-ai/objectstack/pull/35423", "head": "def1213f06526448ce6bc1386086c6b87a6aeafd", "session": "session_01Utp6CajiB6BSQKWowy6YLB", "premise_still_valid": true, "summary": "Round 2 (S1 fold; the defect filed as #35447). ValueDataSource.matchesComparisonNode now refuses a comparand that is a non-empty object with no `$` key (the nested-relation node convertFiltersToAST lowers to) for every operator that reads the comparand, before the switch, with the object arm's sentence through one shared builder nestedRelationRefusalReason(field, key); the object arm's default branch now calls the same builder, so the two log lines are byte-identical (A1 held). A Date / accepted comparand and the `{ $field }` reference are excluded by isAcceptedFilterComparand and the `$`-key test. A2 held: the only other value-face matcher, matchesDollarOperator, already refuses the object form. Pre-fix measured by ablation: `=` excluded every row silently and `!=` returned every row (fail-open). Also: README lowering-table row for the node (worked example executed by readme-filter-operator-table.test.ts), changeset prose extended, declaration lines unchanged. PR body not touched; PR still draft.", "files": [ "ui/packages/core/src/adapters/ValueDataSource.ts", "ui/packages/core/src/adapters/__tests__/ValueDataSource.astFilterVocabulary.test.ts", "ui/packages/data-objectstack/README.md", ".changeset/34990-nested-relation-filter-node.md" ], "tests": "All on def1213f. Focused: pnpm --dir ui exec vitest run ValueDataSource.astFilterVocabulary.test.ts + ValueDataSource.dollarFilterVocabulary.test.ts -> Test Files 2 passed (2), Tests 142 passed (142), lock VERDICT command-exit 0. Package: pnpm --dir ui exec vitest run --maxWorkers=2 packages/core/ packages/data-objectstack/src/readme-filter-operator-table.test.ts -> Test Files 244 passed (244), Tests 4498 passed | 27 skipped, VERDICT command-exit 0. pnpm --filter @object-ui/core type-check (tsc --noEmit and tsc -p tsconfig.test.json) -> VERDICT command-exit 0. Ablation (one, after commit; test imports ../ValueDataSource from src, so no dist leg): scripts/ablation-replace.mjs replaced the refusal return with a no-op -> anchor x1 to x0, blob 24ec5722 to 8cff305d; pin RED, Tests 2 failed | 66 passed: 'the AST form and the object form are refused alike' (expected warn called 1 time, got 0) and '`!=` on the node is refused too' (expected [] got ['a','b','c']); CONTROL scalar `=` stayed green; restore verified blob == HEAD 24ec5722 and git diff HEAD empty.", "gates": "dispatch-gates --commands (tree def1213f; it warned the tree is 12 commits behind origin/main, the only stale derivation input being scripts/pm/check-skill-line-ratchet.mjs, not one of the derived families) -> 39 families; 38 exit 0 on first run. `pnpm --dir ui exec vitest run scripts/` exit 1: 1 failed of 5094, unit-registry-absence-collision.test.ts, cause 'Failed to resolve entry for package @objectstack/client' (that package was not built in this fresh worktree, the diff does not touch it); after building the @objectstack/client closure under the lock (VERDICT 0) the file reran green, Test Files 1 passed, Tests 15 passed (rerun of that file only, not the whole scripts/ suite). --ran reconciliation with exit codes: '39 derived famil(ies) accounted for, 39 run, 0 NOT-MEASURED (a DERIVED zero)'. overlap-check --branch=HEAD: 'origin/main: merges cleanly', VERDICT clean exit 0, 0 PR heads share files. PR check-runs on def1213f at report time: 45 completed/success, 13 completed/skipped, 0 failed; the UI lanes (Test UI shards, Lint UI, Type Check UI, Build & E2E UI) are not finished yet: in_progress, not waited on.", "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2: git push of the branch (def1213f); one issue comment on #34990 (this report) via scripts/pm/post-stamped.mjs", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [], "deviations": [ "The pin went into the existing ValueDataSource.astFilterVocabulary.test.ts as a new top-level describe, not a new file. The order says 'one pin file under __tests__/'; AGENTS.md says a new pin for a component that already has a shared harness file goes into that file (ruling record 6583487846), and AGENTS.md wins. Still one file under __tests__/.", "The refusal covers every operator that reads the comparand, not only `=`. This follows A1's 'and any other comparison operator that can carry the node': without it `!=` returned every row.", "The ui scripts/ family was reread for its one failing file only, after a build. It was not rerun in full." ] }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB
Claim amendment · area data-2 · 2026-11-19T11:21Z
Clause-②: yes (narrowing) — was
yes (widening). Delta contract review 7006192304 (M1): the foldedValueDataSourcerefusal (#35447) narrows a published@object-ui/coreexport, so the mixed diff declares the narrowing arm. Metadata-protocol: none and thepatchlevel stand. The same line holds for #35447, which rides PR #35423.Round 3 (head
694b6011): changeset only (BREAKING FROM / TO, ADR-0087not-required (no-migration-prescription)); full dogfood 482 passed / 3 skipped files, 0 failures. PR body carriesSkills-docs: follow-up #35481(p3, sub-issue here). Next: the seat's contract-tier review on the narrowing face.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB
os-dev-report
{ "issue": 34990, "status": "done", "branch": "claude/issue-34990-nested-relation-filter-node", "pr": "https://github.com/objectstack-ai/objectstack/pull/35423", "head": "b950ae60ebe620823c8fc1713ae895ecd0707d50", "session": "session_01Utp6CajiB6BSQKWowy6YLB", "premise_still_valid": true, "summary": "Round 4 (contract review S2 + nits, PM pick: FIX). nestedRelationComparandKey in ValueDataSource.ts now reads an AST comparand as a nested-relation condition only when it is a PLAIN object (Object.getPrototypeOf(v) === Object.prototype or null) with no `$` key, the spec's own filter-structure test; the isAcceptedFilterComparand line it replaces is subsumed (a Date fails the prototype test). A class instance with its own non-`$` keys (moment / luxon / decimal) is a value again and compares through valueOf under an ordering operator. The object arm does not share this helper (it splits on isAcceptedFilterComparand before its operator loop, unchanged by this PR), so it was not touched. Nits: not_contains and `>` refusal legs pinned beside `=` / `!=` over text-valued rows where the arm-less answer is non-empty; the changeset's 'refuses anything else' replaced by the exact server population (an object under a scalar or structured-JSON field; under a relationship, a key the related object does not declare, a dotted key, or nesting past the hop limit), 'plain object' named in the refused population, and the class-instance carve-out stated; the stale queryDataset.test.ts comment now says a path dimension drills as one nested-relation condition. Declaration lines and the ADR-0087 marker unchanged (marker text says 'a plain object'). One commit b950ae60 on top of a5945f2a, pushed fast-forward. PR body not touched; PR still draft.", "files": [ "ui/packages/core/src/adapters/ValueDataSource.ts", "ui/packages/core/src/adapters/__tests__/ValueDataSource.astFilterVocabulary.test.ts", ".changeset/34990-nested-relation-filter-node.md", "ui/packages/data-objectstack/src/queryDataset.test.ts" ], "tests": "Worktree fresh from a5945f2a. Closure: pnpm --filter '@object-ui/core^...' build, lock VERDICT command-exit 0. Focused: pnpm --dir ui exec vitest run packages/core/src/adapters/__tests__/ValueDataSource.astFilterVocabulary.test.ts gives Test Files 1 passed (1), Tests 73 passed (73), VERDICT command-exit 0; verbose list shows the 8 tests in the nested-relation describe (AST/object one sentence, `!=`, `not_contains`, `>`, scalar CONTROL, class-instance CONTROL `>` and `<`, Date CONTROL `>`). Package: pnpm --filter @object-ui/core test then type-check (tsc --noEmit and tsc -p tsconfig.test.json) gives Test Files 243 passed (243), Tests 4490 passed | 27 skipped (4517), VERDICT command-exit 0; tsc -p tsconfig.test.json --listFiles lists the pin file (count 1). Comment-only file: after building the @object-ui/data-objectstack closure, pnpm --dir ui exec vitest run packages/data-objectstack/src/queryDataset.test.ts gives Test Files 1 passed, Tests 68 passed, VERDICT command-exit 0. Ablation (one, on committed head b950ae60; the pin imports ../ValueDataSource from src, so no dist leg): node scripts/ablation-replace.mjs --delete of the line 'if (proto !== Object.prototype && proto !== null) return undefined;' gives anchor x1 to x0, blob e9d9ca63 to 5b0ae0fd; pin RED, Tests 2 failed | 71 passed: both class-instance CONTROL legs (`>` expected ['a','b'] received [], `<` expected ['b','c'] received []); the Date CONTROL stayed green under the ablation, as expected (a Date has no own keys, so the key test alone already passes it); restore verified blob after restore == HEAD e9d9ca63 and git diff HEAD empty.", "gates": "dispatch-gates --commands (tree a5945f2a plus the working tree; 11 paths vs merge base 6f36818f; it warned the tree is at least 6 commits behind origin/main, none touching its inputs) derived 39 families; 38 exit 0 on the first run. `pnpm --dir ui exec vitest run scripts/` exited 1 on the first run: the process was SIGKILLed (ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL, kernel out-of-memory on the shared box), not a test failure; rerun as `pnpm --dir ui exec vitest run --maxWorkers=2 scripts/` gives Test Files 171 passed | 2 skipped (173), Tests 5092 passed | 2 skipped, VERDICT command-exit 0. --ran reconciliation with the first-run exit codes recorded as captured (the scripts/ line kept at exit 1, the rerun reported here): '39 derived famil(ies) accounted for, 39 run, 0 NOT-MEASURED (a DERIVED zero)'. ui check:new-line-citations: VERDICT 0 new citation(s), exit 0. overlap-check on b950ae60 after git fetch origin main: 'origin/main: merges cleanly', VERDICT clean exit 0, 0 PR heads share files. Push: pre-push check:commit-card-trailers passed, a5945f2aa..b950ae60e fast-forward. PR check-runs on b950ae60 at report time: 45 completed/success, 13 completed/skipped, 0 failed, 0 in progress; the required set all success: Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI (16/16 shards), Build & E2E UI, Live E2E UI, Dogfood Regression Gate; Build Core not among the check-runs on this head (path-selected), plus Check Changeset and PR-body guards success.", "dogfood_battery": "Two runs, both full battery, no OS_TEST_SHARD, no path, under the lock. r3 at 694b6011: VERDICT command-exit 0, Test Files 482 passed | 3 skipped (485), Tests 4092 passed | 68 skipped (4160), no failures, lock held 1972s. r4 at final head b950ae60: pnpm --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test, VERDICT command-exit 0, Test Files 482 passed | 3 skipped (485), Tests 4092 passed | 68 skipped (4160), no failures, lock held 2369s after 3 queue-timeouts (exit 99, slot kept) behind another holder and 344s wait on the fourth.", "mcp_calls": "0", "api_writes": "1 REST write: POST /repos/objectstack-ai/objectstack/issues/34990/comments (this os-dev-report, via scripts/pm/post-stamped.mjs). Plus one git push (not REST). Reads only otherwise: gh api GET issue comments, check-runs, pull 35423, and overlap-check's open-PR listing.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed · The object arm still reads `{ created: X }` with X a class instance carrying own keys as an operator map and refuses each own key with the nested-relation sentence. Pre-existing on origin/main, not in this PR's diff, loud rather than silent, and convertFiltersToAST refuses the same shape as an exotic comparand, so no wrong rows are served; outside all three filing classes.", "carrier: none · noted, not filed · convertFiltersToAST's isOperatorMap also admits a cross-realm plain object (prototype whose prototype is null); the new ValueDataSource test follows the PM pick and the spec's isFilterNode (Object.prototype or null) and does not. No producer in the tree hands ValueDataSource a cross-realm filter object; read-only observation, zero pull." ] }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB
os-dev-report
{ "issue": 34990, "status": "done", "branch": "claude/issue-34990-nested-relation-filter-node", "pr": "https://github.com/objectstack-ai/objectstack/pull/35423", "head": "b950ae60ebe620823c8fc1713ae895ecd0707d50", "session": "session_01Utp6CajiB6BSQKWowy6YLB", "premise_still_valid": true, "summary": "Round 4 (contract review S2 + nits, PM pick: FIX). nestedRelationComparandKey in ValueDataSource.ts now reads an AST comparand as a nested-relation condition only when it is a PLAIN object (Object.getPrototypeOf(v) === Object.prototype or null) with no `$` key, the spec's own filter-structure test; the isAcceptedFilterComparand line it replaces is subsumed (a Date fails the prototype test). A class instance with its own non-`$` keys (moment / luxon / decimal) is a value again and compares through valueOf under an ordering operator. The object arm does not share this helper (it splits on isAcceptedFilterComparand before its operator loop, unchanged by this PR), so it was not touched. Nits: not_contains and `>` refusal legs pinned beside `=` / `!=` over text-valued rows where the arm-less answer is non-empty; the changeset's 'refuses anything else' replaced by the exact server population (an object under a scalar or structured-JSON field; under a relationship, a key the related object does not declare, a dotted key, or nesting past the hop limit), 'plain object' named in the refused population, and the class-instance carve-out stated; the stale queryDataset.test.ts comment now says a path dimension drills as one nested-relation condition. Declaration lines and the ADR-0087 marker unchanged (marker text says 'a plain object'). One commit b950ae60 on top of a5945f2a, pushed fast-forward. PR body not touched; PR still draft.", "files": [ "ui/packages/core/src/adapters/ValueDataSource.ts", "ui/packages/core/src/adapters/__tests__/ValueDataSource.astFilterVocabulary.test.ts", ".changeset/34990-nested-relation-filter-node.md", "ui/packages/data-objectstack/src/queryDataset.test.ts" ], "tests": "Worktree fresh from a5945f2a. Closure: pnpm --filter '@object-ui/core^...' build, lock VERDICT command-exit 0. Focused: pnpm --dir ui exec vitest run packages/core/src/adapters/__tests__/ValueDataSource.astFilterVocabulary.test.ts gives Test Files 1 passed (1), Tests 73 passed (73), VERDICT command-exit 0; verbose list shows the 8 tests in the nested-relation describe (AST/object one sentence, `!=`, `not_contains`, `>`, scalar CONTROL, class-instance CONTROL `>` and `<`, Date CONTROL `>`). Package: pnpm --filter @object-ui/core test then type-check (tsc --noEmit and tsc -p tsconfig.test.json) gives Test Files 243 passed (243), Tests 4490 passed | 27 skipped (4517), VERDICT command-exit 0; tsc -p tsconfig.test.json --listFiles lists the pin file (count 1). Comment-only file: after building the @object-ui/data-objectstack closure, pnpm --dir ui exec vitest run packages/data-objectstack/src/queryDataset.test.ts gives Test Files 1 passed, Tests 68 passed, VERDICT command-exit 0. Ablation (one, on committed head b950ae60; the pin imports ../ValueDataSource from src, so no dist leg): node scripts/ablation-replace.mjs --delete of the line 'if (proto !== Object.prototype && proto !== null) return undefined;' gives anchor x1 to x0, blob e9d9ca63 to 5b0ae0fd; pin RED, Tests 2 failed | 71 passed: both class-instance CONTROL legs (`>` expected ['a','b'] received [], `<` expected ['b','c'] received []); the Date CONTROL stayed green under the ablation, as expected (a Date has no own keys, so the key test alone already passes it); restore verified blob after restore == HEAD e9d9ca63 and git diff HEAD empty.", "gates": "dispatch-gates --commands (tree a5945f2a plus the working tree; 11 paths vs merge base 6f36818f; it warned the tree is at least 6 commits behind origin/main, none touching its inputs) derived 39 families; 38 exit 0 on the first run. `pnpm --dir ui exec vitest run scripts/` exited 1 on the first run: the process was SIGKILLed (ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL, kernel out-of-memory on the shared box), not a test failure; rerun as `pnpm --dir ui exec vitest run --maxWorkers=2 scripts/` gives Test Files 171 passed | 2 skipped (173), Tests 5092 passed | 2 skipped, VERDICT command-exit 0. --ran reconciliation with the first-run exit codes recorded as captured (the scripts/ line kept at exit 1, the rerun reported here): '39 derived famil(ies) accounted for, 39 run, 0 NOT-MEASURED (a DERIVED zero)'. ui check:new-line-citations: VERDICT 0 new citation(s), exit 0. overlap-check on b950ae60 after git fetch origin main: 'origin/main: merges cleanly', VERDICT clean exit 0, 0 PR heads share files. Push: pre-push check:commit-card-trailers passed, a5945f2aa..b950ae60e fast-forward. PR check-runs on b950ae60 at report time: 45 completed/success, 13 completed/skipped, 0 failed, 0 in progress; the required set all success: Lint & Repo Gates, TypeScript Type Check, Test Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI (16/16 shards), Build & E2E UI, Live E2E UI, Dogfood Regression Gate; Build Core not among the check-runs on this head (path-selected), plus Check Changeset and PR-body guards success.", "dogfood_battery": "b950ae60ebe620823c8fc1713ae895ecd0707d50 · os-verify-lock: VERDICT command-exit 0 · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures. r3 at 694b6011: os-verify-lock: VERDICT command-exit 0 · Test Files 482 passed | 3 skipped (485) · Tests 4092 passed | 68 skipped (4160) · no failures. Both runs were the full battery under the lock, with no OS_TEST_SHARD and no path (pnpm --filter '@objectstack/dogfood^...' build && pnpm --filter @objectstack/dogfood test); lock held 2369s on the final head and 1972s on r3.", "mcp_calls": "0", "api_writes": "1 REST write: POST /repos/objectstack-ai/objectstack/issues/34990/comments (this os-dev-report, via scripts/pm/post-stamped.mjs). Plus one git push (not REST). Reads only otherwise: gh api GET issue comments, check-runs, pull 35423, and overlap-check's open-PR listing.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed · The object arm still reads `{ created: X }` with X a class instance carrying own keys as an operator map and refuses each own key with the nested-relation sentence. Pre-existing on origin/main, not in this PR's diff, loud rather than silent, and convertFiltersToAST refuses the same shape as an exotic comparand, so no wrong rows are served; outside all three filing classes.", "carrier: none · noted, not filed · convertFiltersToAST's isOperatorMap also admits a cross-realm plain object (prototype whose prototype is null); the new ValueDataSource test follows the PM pick and the spec's isFilterNode (Object.prototype or null) and does not. No producer in the tree hands ValueDataSource a cross-realm filter object; read-only observation, zero pull." ] }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CajiB6BSQKWowy6YLB
Closed-out · area data-2 · 2026-11-19T14:56Z
eed422ea(Fixes #34990; this card closed completed)CONTRACT_REVIEW_TIER: 7008152912 PASS, delta 7012075575 PASS (M1, S1, S2 closed); declaredClause-②: yes (narrowing),Metadata-protocol: none, patch with BREAKING + ADR-0087not-required (no-migration-prescription)Delivered: a dashboard or report drill on a relationship-path dimension (
account.owner, up to three hops) is sent as one nested-relation condition that the server joins in the database. No related ids are read, nothing is capped, and the "too many" notice no longer occurs. The in-memory value source refuses a nested-relation comparand by name (=,!=,not_contains, ordering) instead of answering silently; a class instance orDatecomparand is still data. The drawer offers no "Open in list" link for such a drill.Folded: #35447 (closed with this close-out). Follow-ups: #35438 (list URL spelling, p3), #35481 (skills + docs, p3), #35493 (object-dialect twin, p2), #35494 (spec docblock, p3), #35533 (review nits, p3).
State:
pm:dispatchedremoved; card closed.