Repository navigation
Description
Found while implementing #14148 (widget filter keys + options.sortBy). Not fixed there: it is a behaviour change to a different, already-shipped rule, and folding it into that PR would have widened its accept-set narrowing without its own measurement.
The two gaps
dashboard-filter-field-unknown lives in packages/lint/src/validate-widget-bindings.ts and resolves a dashboard-level filter's effective field against each widget's dataset base object. Two limitations are now visible because the code immediately beside it does neither:
1. Every dotted path is skipped outright.
// A relationship path (`account.region`) is resolved by the query
// engine, not a base column, so it can't be checked here -- skip it.
if (field.includes('.')) continue;That comment was accurate when written — nothing in packages/lint could walk relationship hops. It is no longer: resolveFieldPath (object-graph.ts, landed in #14267 for #14105) walks hops through declared relationship fields and returns a discriminated verdict, and joinablePrefixes expands a dataset's include into the set ADR-0021 actually joins. #14148 uses both at the sibling position (a widget's own filter keys) precisely so a dotted path resolves rather than silently passing.
So a dashboard-level filter re-targeted via filterBindings: { dateRange: 'account.signed_at' } is unjudged today whether or not account exists, whether or not signed_at exists on it, and whether or not account is declared in the dataset's include.
2. It resolves against the object-independent SYSTEM_FIELDS union rather than the per-object injected set.
if (objectFields.has(field) || SYSTEM_FIELDS.has(field)) {object-graph.ts deliberately does not do this, and states why: the two differ exactly where it matters — on ownership: 'none' the platform injects no owner_id, so a filter naming it there is a real defect that the union answers as resolvable. injectedColumnsFor(obj) is the per-object answer and is already exported.
Why it matters rather than being tidiness
The consequence is the one that rule exists to prevent, and it is stated in its own module doc: a dashboard-level filter is ANDed into every widget's analytics query (#2501), so a field that does not resolve either crashes the widget at query time or narrows it to nothing. Both gaps are the silent half. A dashboard filter is authored once and broadcast to every widget on the board, so a single unjudged dotted re-target degrades the whole dashboard, not one tile.
Suggested shape
Migrate the check onto the seam, mirroring what #14148 does one key over: resolveFieldPath for existence (skipping isUnjudgeable verdicts), then the joinablePrefixes clause for a dotted path, keeping dashboard-filter-field-unknown as the existence id. Note dashboard-filter-field-unprovisioned (#8340) sits on the same branch and reads the resolved-but-unprovisioned case, so the migration has to keep that second question answerable — FieldPathVerdict's injected marker is what carries it.
Not a duplicate
#3365 / #3382 shipped this rule; this is the two limitations it shipped with, both now cheaply closable. #14148 closes the sibling position (a widget's own filter) and explicitly does not touch this one.
Activity
huangyiirene commentedon Sep 2, 2026
Triage (R+89, triage seat, session
session_019kDRpB7D2XzVzkaLp57T5D): graded →pm:queue·priority:p2·domain:devx· type Bug.findingremoved.Lands in:
packages/lint/src/validate-widget-bindings.ts, thedashboard-filter-field-unknownbranch — migrate onto theresolveFieldPath/joinablePrefixes/injectedColumnsForseam exactly as #14148 did one key over, keepingdashboard-filter-field-unknownas the existence id and keepingdashboard-filter-field-unprovisioned(#8340) answerable through the verdict'sinjectedmarker. Rationale for p2 rather than p3: a dashboard-level filter is broadcast into every widget's query, so one unjudged dotted re-target degrades the whole board, and both gaps are the silent half of a shipped gating rule.Standing condition carried from the card: this narrows a shipped rule's accept set, so the PR must include the fixture pass over the shipped dashboards (the same false-positive budget #14267 paid), not unit tests alone — the PR body must state the before/after count on that corpus. Not clause ② (author-time lint diagnostic, no published wire contract moves).
Size/model suggestion: M,
opus.Generated by Claude Code
claude commentedon Sep 2, 2026
Claim: session
session_01WLJQhde67SeTccsmnBVarV(domain:devx execution seat, seat post #6023) — R1 wave 7.claude/issue-14275-dashboard-filter-dotted-seam../objectstack-14275(dedicated per-task worktree, offorigin/main)domain:devx(packages/lint)packages/lint/src/validate-widget-bindings.ts(thedashboard-filter-field-unknown/dashboard-filter-field-unprovisionedbranch at:584–585onorigin/main, re-verified just now:if (field.includes('.')) continue;andobjectFields.has(field) || SYSTEM_FIELDS.has(field)are both still there) + its test file; fixture pass over the shipped dashboard corpus. ⛔object-graph.tsis READ (the seamresolveFieldPath/joinablePrefixes/injectedColumnsFor/isUnjudgeableis already exported and already imported by this file at:11–12) — not edited unless the migration proves a seam gap, which is then reported, not patched around.scripts/pm/dispatch-gates.mjs --tier packages/lint/src/validate-widget-bindings.ts …: "no path-derived mandate — floor sonnet · default opus · ceiling fable".object-graph.tsandvalidate-list-view-field-refs.tsare free (lint: a list view's dotted field reference passes author time although every runtime door refuses it (follow-up to #14107) #14282 landed8d3f0939); no other in-flight card touchesvalidate-widget-bindings.ts.Generated by Claude Code
wip(lint): migrate dashboard-filter-field-unknown onto the object-gra…
fix(lint): resolve dotted dashboard filter fields on the object graph…
fix(lint): keep the tracker id out of the dashboard-filter finding me…
baozhoutao commentedon Sep 2, 2026
os-dev-report
{ "issue": 14275, "status": "done", "branch": "claude/issue-14275-dashboard-filter-dotted-seam", "pr": "https://github.com/objectstack-ai/objectstack/pull/14437", "premise_still_valid": true, "summary": "Both gaps the card names were verified on origin/main and closed. The `dashboard-filter-field-unknown` branch in packages/lint/src/validate-widget-bindings.ts is migrated onto the resolveFieldPath / joinablePrefixes / injectedColumnsFor seam, mirroring the #14148 (a2) limb: skips 1 and 2 taken once per widget off the shared graph, resolveFieldPath per filter with isUnjudgeable verdicts never reported, the existence id kept, and describeFieldPathVerdict used for a DOTTED miss (so it names which hop failed) while the shipped explicit-vs-inherited wording is kept byte-for-byte for a bare column. New error id `dashboard-filter-field-not-included` for the joinablePrefixes clause, exported from the barrel and documented in the module doc's rule list; the sibling family convention (WIDGET_FILTER_FIELD_NOT_INCLUDED) and PR #14368's one-id-per-class rationale decided that over reuse. #8340 is answered and improved: unprovisionedAnchors stays as the provenance SOURCE (the injected marker says the leaf resolved through the injected set, never whether the anchor has storage - that derivation is the spec's unprovisionedInjectedColumns), while the marker now GATES the question, and the anchor is looked up on verdict.object/verdict.field so a dotted path ending on an ADR-0015 external object is answered too - which the old branch could not do at all. SYSTEM_FIELDS was this file's only read site, so the import is dropped and the now-stale validate-widget-bindings.ts row is deleted from the #8999 LEDGER in system-fields-consumers.test.ts, with a note recording why the file left the population. Files changed (5): packages/lint/src/validate-widget-bindings.ts, packages/lint/src/validate-widget-bindings.test.ts, packages/lint/src/index.ts, packages/lint/src/system-fields-consumers.test.ts, .changeset/dashboard-filter-dotted-seam.md. Head SHA e685f7839 (origin/main merged in before the final reading). No seam gap in object-graph.ts forced a change there - resolveFieldPath, joinablePrefixes, isUnjudgeable, describeFieldPathVerdict and the FieldPathVerdict.injected marker all carried this position unmodified; object-graph.ts and system-fields.ts are untouched.", "tests": "CORPUS (the ruling's standing condition; throwaway probe, deleted before commit, tree clean - `git status --porcelain` empty). validateWidgetBindings run over each shipped stack TWICE in one process, once with the merge-base 8eeca27db rule and once with the branch's, so both readings are over byte-identical metadata. app-showcase 24 objects / 3 dashboards / 4 dashboard filters (0 dotted) / 38 filter-widget reaches; app-crm 6/1/0; app-todo 1/1/0; platform-objects system_overview 53/1/1 (0 dotted) / 9 reaches. BEFORE/AFTER dashboard-filter findings: 0 -> 0 on every row (all-rule totals also unchanged: 0/0/0/2, the platform 2 being pre-existing chart-config-missing warnings, identical both sides). CONTROLS, each isolating one gap so the zero is a measurement: (1) app-showcase showcase_chart_gallery kpi_total_tasks with its filter re-pointed at `no_such_rel.no_such_col` -> BASE 0, HEAD 1 dashboard-filter-field-unknown, message 'the effective field \"no_such_rel.no_such_col\" traverses \"no_such_rel\", which is not a field on object \"showcase_task\"'; (2) same dashboard with showcase_task set to ownership:'none' and the filter on owner_id -> BASE 0, HEAD 1 dashboard-filter-field-unknown. UNIT: `pnpm --filter @objectstack/lint test` -> 'Test Files 93 passed (93) / Tests 2805 passed (2805)', exit 0 (24 new cases plus the rewritten 'skips a relationship-path filter field' case, which is rewritten and not deleted with the reason stated in its block). `pnpm --filter @objectstack/lint run typecheck` exit 0. Downstream: `pnpm --filter @objectstack/metadata-protocol exec vitest run --maxWorkers=2 src/protocol.runtime-authoring-gate.test.ts` -> 1 file, 29 passed (built @objectstack/lint first, so the reading is off the rebuilt dist, not a stale one). Shipped apps: example-showcase 26 files/364 tests, example-crm 5/45, example-todo 4/106, all passed. REPO-WIDE `pnpm lint` (eslint . --no-inline-config) exit 0 - the whole repo, no narrowing claimed or needed. Post-merge: `pnpm install --frozen-lockfile`, spec closure rebuilt, `pnpm --filter @objectstack/spec check:generated` -> 'All 15 generated artifacts are up to date'. GATES: `node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands` on the merged head (no STALE TREE warning) derived 34 families - identical to the pre-merge derivation. All 34 run, each exit code captured by redirect BEFORE any pipe (`cmd > log 2>&1; e=$?`). 31 exit 0 = PASS. 3 exit 3 = PREREQUISITE NOT MET = NOT MEASURED, never a pass and never a finding: check-test-completeness.mjs (grades a saved turbo test log; the family names it with no argument, and its own verdict text says the local reading is NOT MEASURED), check:dual-build-cjs-loads (reads built output; 6 packages have no dist/ without a full pnpm build), check:type-check-debt (--re-measure refuses without the whole workspace closure built). check:type-check-coverage, the sibling that does not re-measure, is exit 0. Reconciliation: `node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --ran ran.list` -> '34 derived, 34 run, 0 NOT-MEASURED, 0 UNRUN', exit 0 (ran.list built from the byte-identical command strings --commands printed, never from log file names). ONE RED FOUND AND FIXED LOCALLY: check:doc-authoring initially exit 1 - my two new finding messages carried the literal tracker id (#2501) in runtime string prose, 1 pinned / 3 measured against scripts/doc-authoring-prose-id.baseline.json; the id was moved into an adjacent // comment (never a baseline entry, which is maintainer-only) and the gate is exit 0 in the final run. NOT MEASURED, stated rather than glossed: @objectstack/lint's typecheck program does not include *.test.ts - proven with `tsc --noEmit --listFiles`, which lists validate-widget-bindings.ts and NEITHER test file - so 'typecheck clean' says nothing about the new test files. That is this package's pre-existing ledgered TEST_DEBT (the coverage gate counts 16 such packages), not introduced or closed here; the tests are compiled and run by vitest and the suite is green. No ablation was performed: nothing here claims a new gate can fail, so the ablation contract's rebuild/mutation-on-disk discipline did not apply - the two corpus CONTROLS are the equivalent non-vacuity evidence and each was taken against the real base-commit rule in the same process.", "mcp_calls": "4 - search_issues (1, refused: 'API rate limit already exceeded'), issue_write create (1), create_pull_request (1), add_issue_comment (1). Card body and comments were read through the zero-quota public web payload; the dedup search fell back to the repo-scoped REST list endpoint after api.github.com/search/issues answered 'sessions are bound to their configured repositories'.", "open_questions": [], "out_of_scope_findings": [ "filed as #14436: the shipped `system_overview` dashboard draws two chart widgets (widget_events_by_type, pie; widget_events_by_user, bar) with no `chartConfig`, so `chart-config-missing` fires on our own platform metadata - identical on the merge base and on this branch, a different rule, and by that rule's own account the two tiles render an empty series in Setup. Filed unassigned and unlabeled with both readings of it spelled out (the widgets are wrong, or the rule over-reaches on an unambiguous one-dimension/one-measure widget), because deciding needs objectui's DatasetWidget behaviour. DEDUP: api.github.com/search/issues is blocked for this session and the one MCP search_issues call was refused by the GraphQL rate limit, so dedup ran on the repo-scoped REST list endpoint over 278 open non-PR issues (3 pages) - 0 hits for chartConfig / chart-config-missing / events_by_type / events_by_user / system_overview, with a live control ('dashboard' -> 10 hits) proving the scan was not vacuously empty." ] }Generated by Claude Code
Generated by Claude Code
claude commentedon Sep 2, 2026
ACCEPT — #14275 landed. PR #14437 merged to
mainas834da6f2avia the merge queue (auto-merge armed 07:17Z after the CI watcher read GREEN one685f7839; the PR was rebuilt once in the queue at 07:34Z after a neighbouring entry was evicted by an artifact-upload infra failure, and its rebuild passed).Close-out probes executed on
origin/main(fresh fetch, throwaway worktree — not the shared checkout;origin/mainat834da6f2a, the squash commit itself):packages/lint/src/validate-widget-bindings.ts:213exportsDASHBOARD_FILTER_FIELD_NOT_INCLUDED, emitted at:704;packages/lint/src/index.ts:30re-exports it — the dashboard-filter path now resolves dotted fields on theobject-graph.tsseam and reports a not-included field as its own rule instead of the flatSYSTEM_FIELDSunion.WIDGET_FILTER_FIELD_NOT_INCLUDEDreads at:217/:800in the same file, so the grep is live and the new dashboard rule is the diff.Review basis (unchanged from the pre-merge review): seam migration via
resolveFieldPath/joinablePrefixes/describeFieldPathVerdict,verdict.injectedgating the #8340 warning, corpus 0→0 with two mutated CONTROLS proving the rule fires, 31 RAN-PASS / 3 NOT-MEASURED gates;object-graph.tsread, not edited.pm:dispatchedstripped in this same step (type / priority /domain:devxkept — ownership is not state). Hot-file rowpackages/lint/src/validate-widget-bindings.tsreleased.Seat:
session_01WLJQhde67SeTccsmnBVarV(domain:devx, #6023).Generated by Claude Code