Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

fix(core): conjoin the widget filter into a dataset drill instead of spreading it - #9275

Merged
os-tesla merged 2 commits into
mainfrom
claude/issue-9137-dataset-drill-compose
Sep 12, 2026
Merged

os-tesla merged 2 commits into
mainfrom
claude/issue-9137-dataset-drill-compose

Conversation

@os-tesla

@os-tesla os-tesla commented Sep 12, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #9137

Third and last site of the mis-composition objectui#8944 removed from ObjectChart and objectui#9024 removed from ObjectPivotTable. Composed through the seam #8944 added, composeDrillFilter — no third local answer is derived.

The defect

packages/core/src/utils/dataset-format.ts, last line of buildDatasetDrillFilter:

return runtimeFilter ? { ...runtimeFilter, ...drillFilter } : drillFilter;

Spreading a filter SOURCE into an object literal is correct only for the object-dialect arm. This site's declared producer sends the other one. DashboardWidgetSchema.filter, verbatim: "objectui passes an ObjectQL FilterNode array here, not the spec's FilterCondition envelope" — and DatasetWidget's guard admits an array (typeof [] === 'object' is true, Object.keys(['x']).length is 1). So [['region','=','emea']] reached the spread and became the index key { '0': ['region','=','emea'] }.

The function's own docblock already CLAIMED the conjunction — "The render-time runtimeFilter is ANDed in so the drilled list stays within the same slice the aggregate was computed over". The code did not do it.

MEASURED FIRST, as triage asked — and it corrects the grading

Triage asked for (a) does the server accept it, and (b) are the drilled rows a superset, before the repair. Both are written back on the card.

(a) The server does NOT refuse. The re-grade trigger does not fire. Three legs, each measured:

leg reading
spec contract FilterConditionSchema.safeParse([['region','=','emea']]) REFUSES. The array arm is off-contract for both DashboardWidget.filter (platform spec/src/ui/dashboard.zod.ts declares FilterConditionSchema.optional()) and DatasetSelection.runtimeFilter.
the door packages/rest/src/analytics-selection-door.ts deliberately PROJECTS runtimeFilter away before parsing. Its own TSDoc: "Those four therefore still have no door." No refusal.
the executor combineFilters(compiled.filter, selection.runtimeFilter) wraps into $and with no validation. No refusal.

So the dataset query leg accepts an array runtimeFilter unrefused — off-contract but unenforced. The widget is NOT already broken before the drill, and the blast radius is the one the declaration suggests.

(b) ⚠️ The drilled rows are NOT a superset. They are EMPTY. This is the one place the card and the triage comment are both wrong, and it is wrong by a measurement rather than by argument. The premise was that an index key is one "nothing reads as a condition", so the narrowing key is dropped and the list widens. A bare array is not a legal equality comparand anywhere in this dialect (objectui#8530 / objectui#8514), so the index key is neither honoured nor dropped — it is refused, loudly:

  • convertFiltersToAST THROWS FilterOperatorError ("carries a bare ARRAY as its equality comparand");
  • ValueDataSource's matcher selects nothing;
  • the error's own text names the third sink: driver-sql answers 400 INVALID_FILTER.

Row counts over rows scoped region = 'emea', drilling the stage = 'won' bucket:

rows
widget filter alone 3
drill, before this PR 0 — dead, not wide
drill, after this PR 2
intended (widget AND bucket) 2
what a superset would have looked like 3, a different set

⇒ the direction is fail-CLOSED. ⛔ I have not touched any label; re-grading is triage's. The repair is unchanged either way, and so is the ruling.

The three preconditions

  1. Non-optional return. composeDrillFilter answers undefined when both sources are empty; callers do not expect that. Spelled ?? {} — the same empty object this function already returned for a bucket with no dims. Pinned.
  2. Range operators are PRESERVED. A time-bucketed dim contributes $gte / $lt. The composition re-spells the pair as two $and children on the same field, because convertFiltersToAST emits one node per bound and parseFilterAST cannot fold two nodes back onto one key. Same rows, and serializeDrillFilterParams walks $and (finding(plugin-charts): the ObjectChart drill-down spread mis-composes the filter ARRAY arm into index keys, silently dropping the widget's own filter #8944) so both bounds still reach filter[close_date][gte] and [lt]. Pinned as a row set, not as a shape alone.
  3. Two consumers, two runtimeFilter types. The parameter widens from Record of string to unknown → unknown, which is what composeDrillFilter itself takes. A widening, so no call site changes. ⛔ I did not touch the report-side type — DatasetReportRenderer's own runtimeFilter?: Record of string to unknown is untouched, and so is the dashboard's any. Saying so explicitly because the dispatch required it.

⭐ Only the composing leg moves — a deliberate departure from the sibling sites

ObjectChart and ObjectPivotTable call the seam unconditionally. Here it is asked only when a second source exists. The spread only ever ran when runtimeFilter was present, so the identity leg carries no defect.

Routing it anyway was measured and rejected. composeDrillFilter's note — "a lone surviving source lowers back to exactly the flat object the spread produced" — holds only for a source of ONE condition; with two it lowers to $and, and a $gte/$lt range is two conditions on its own. Sending the identity leg through the sink re-shaped every multi-condition dataset drill: 8 pins moved instead of 3, and the 5 extra belong to objectui#9085, objectui#4056, objectstack#5473 and #1752 — including two CONTROLs whose whole claim is "this path is unchanged" — for zero change in rows selected or filter[...] params emitted. The rejected variant is recorded in the docblock so nobody "simplifies" it back without redoing the measurement.

Behaviour change, stated plainly

When a widget filter is present the composed value is $and of the two sources rather than one flat object, and a field named by BOTH now applies both conditions instead of the clicked bucket overwriting the widget's. That is the repair: a drill may narrow the widget's scope and may never widen it.

Tests

  • NEW packages/core/src/utils/__tests__/dataset-drill-array-arm-9137.test.ts — 7 cases, claims made as ROW SETS with a control that fails if the widget filter were decoration, plus the defect pinned ABSENT (no '0' key) and the wire refusal pinned as the reason the old behaviour was dead.
  • 3 existing shape pins updated to the composed shape; each keeps its question, only the expected value moves, and each carries an inline note saying why.
  • The 5 no-widget-filter pins are untouched and still green — that is the evidence for the paragraph above.

Verification — all readings at cb5df7acf

Gates (objectui has no scripts/pm/dispatch-gates.mjs; family derived by hand from root package.json + git ls-tree origin/main .github/workflows/). Each cites the gate's own verdict line, never a bare $?:

  • changeset:check exit 0 — "No changeset declares a major bump." ⚠️ check:changeset-no-major is not an npm script here; changeset:check is the real gate.
  • check-changeset-presence.mjs exit 0 — "3 source file(s) of 2 released package(s) changed, and this change declares 1 changeset(s)".
  • check:control-bytes exit 0 (7462 tracked text files) · check:new-line-citations exit 0 (0 new) · check:changeset-claims exit 0 · check:spec-symbols exit 0 · check:self-import exit 0 · check:test-path-roots exit 0 · check:vi-mock-specifiers exit 0.

Tests

  • packages/app-shell/ — 688 files, 6679 passed, 1 skipped. VERDICT command-exit 0.
  • examples/schema-catalog/ — 31 files, 2151 passed. Run because the dispatch flags objectui#9273; see the note on blast radius below.
  • packages/core/ packages/plugin-dashboard/ packages/data-objectstack/ packages/plugin-report/ — 351 files, 5426 tests, read in two legs because two pins moved between them: at e6ed19d77 it was 349 files passed / 2 failed, the 2 failures being the consumer shape pins; cb5df7acf changes exactly those two files (git diff --name-only e6ed19d77 HEAD returns them and nothing else) and re-running them gives 76 passed. ⚠️ Stated as a composite rather than as one clean run: the lock was held by a full-repo pnpm test from a sibling seat.

Type-check — @object-ui/core, @object-ui/plugin-dashboard, @object-ui/plugin-report, @object-ui/data-objectstack all exit 0, each after building its dependency closure first (a stale dist/*.d.ts lies in both directions; without the build every one of them failed TS6305 / TS2307, which is not a red gate). Coverage of the test files confirmed by counting rather than assumed: core's script is tsc --noEmit && tsc -p tsconfig.test.json, and --listFiles on that project contains both dataset-format.ts and the new dataset-drill-array-arm-9137.test.ts; data-objectstack's bare tsc --noEmit contains queryDataset.test.ts.

Lint — a narrowed run, declared, with the three readings that make it a measurement rather than a skipped gate

  1. Universe read from eslint's own config, not guessed: eslint . --no-inline-config --format json reports on 4882 files (95 errors, 13011 warnings repo-wide — the pre-existing state, and CI's to own).
  2. Narrowed run over exactly the 6 .ts/.tsx files this PR changes: exit 0, 0 errors. The 50 warnings are all @typescript-eslint/no-explicit-any, and 0 of them fall on a line this PR added (checked by intersecting the message lines with git diff -U0 origin/main...HEAD).
  3. Invariance over untouched files: type-aware linting is not enabled (eslint.config.js declares no projectService and no parserOptions.project) and no rule under eslint-rules/ reads the filesystem, so every verdict is a function of that one file's text — this diff cannot move the verdict of a file it does not touch.

⚠️ Narrowings declared: the repo-wide pnpm lint / turbo run lint and the full pnpm test are CI's runs, not attempted here; the four consumer type-checks ran sequentially per package instead of as one turbo fan-out, and examples/schema-catalog/ ran outside the shared lock, because the lock returned exit 99 (queue-timeout, NOT MEASURED) twice across ~18 minutes of waiting.

Blast radius (objectui#9273). No call site moved, no rendered node changed, no declaration key added. git grep for buildDatasetDrillFilter / buildDrillFilter outside the five packages already run returns only changesets and generated CHANGELOG.md files — no census figure and no README prose pin names the symbol.

Acceptance notes

  • noted, not filed: composeDrillFilter's docblock claim that "a lone surviving source lowers back to exactly the flat object the spread produced" is accurate only for a single-condition source. Measured false for two conditions and for any $gte/$lt range. It misleads nobody today because no caller depends on the flat spelling, and correcting the prose in drill-down.ts is outside this card's file surface. Successor: whoever takes the fourth site, or any card that touches composeDrillFilter.
  • noted, not filed: objectui#9085's repair is already on main in this same function (the $null: true spelling and its tests), so the "same file, run an in-flight check" boundary resolved to no overlap — no open PR touches dataset-format.ts or drill-down.ts, and no claude/issue-9085-* branch exists (control leg: the claude/issue-9061-* glob does resolve).

Clause-②: yes — needs:contract-review hung on both this PR and the card.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UzHd6hDYatoDn17BuwKxnZ


Generated by Claude Code


Generated by Claude Code

…spreading it

`buildDatasetDrillFilter` ended in `{ ...runtimeFilter, ...drillFilter }`.
Spreading a filter SOURCE into an object literal is correct only for the
object-dialect arm, and this site's declared producer sends the other one:
`DashboardWidgetSchema.filter` states that objectui passes an ObjectQL
FilterNode ARRAY here, and `DatasetWidget`'s guard admits it. Spreading an
array yields index keys, so `[['region','=','emea']]` became `{ '0': [...] }`.

Third and last site of the class objectui#8944 removed from `ObjectChart` and
objectui#9024 removed from `ObjectPivotTable`. Composed through the same seam,
`composeDrillFilter`, so no local composition is derived.

Measured correction to the grading: the index key is not dropped, it is
REFUSED (a bare array is not a legal equality comparand — objectui#8530 /
objectui#8514), so the drilled list was dead rather than a superset.

Only the composing leg moves. With no widget filter there is nothing to
conjoin and the drill filter is returned verbatim; routing that leg through
the sink too would re-shape every multi-condition dataset drill for no change
in rows or URL params.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UzHd6hDYatoDn17BuwKxnZ
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 51 chunks) 3114.3 KB 3134.8 KB
Main entry chunk (gzip) 144.3 KB 350 KB
Entry file index-x49PqUV4.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.69KB 6.21KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 501.87KB 115.12KB
core (index.js) 8.52KB 3.41KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 211.58KB 58.68KB
fields (index.js) 247.91KB 62.51KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.21KB 2.26KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 32.15KB 10.49KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.84KB 10.95KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.39KB 3.10KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 14.81KB 3.63KB
plugin-calendar (index.js) 49.04KB 13.93KB
plugin-charts (index.js) 71.52KB 19.98KB
plugin-chatbot (index.js) 195.35KB 46.52KB
plugin-dashboard (index.js) 131.24KB 34.61KB
plugin-designer (index.js) 215.82KB 44.33KB
plugin-detail (index.js) 253.39KB 65.86KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.79KB 34.19KB
plugin-gantt (index.js) 166.95KB 41.04KB
plugin-grid (index.js) 211.62KB 57.50KB
plugin-kanban (index.js) 46.00KB 14.30KB
plugin-list (index.js) 112.59KB 27.66KB
plugin-map (index.js) 20.43KB 6.81KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.40KB 11.93KB
plugin-timeline (index.js) 30.10KB 8.74KB
plugin-tree (index.js) 9.55KB 3.32KB
plugin-view (index.js) 84.42KB 20.80KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 94.03KB 31.02KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.66KB 2.50KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 14.82KB 4.99KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 14.27KB 5.47KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

…osed shape

Both assert the COMPOSITION case (each passes a runtimeFilter), so both move
with objectui#9137. Each keeps its question and only its expected value
changes: the data-objectstack pin still claims "both halves in one filter"
(without the range the drill was a superset), and the report pin still claims
the raw stored value reaches `objectFilter` mapped to its object field.

The report renderer is the second consumer of `buildDatasetDrillFilter`; its
own `runtimeFilter` type is deliberately unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UzHd6hDYatoDn17BuwKxnZ
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 51 chunks) 3115.6 KB 3134.8 KB
Main entry chunk (gzip) 144.3 KB 350 KB
Entry file index-GTw5e1yV.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.69KB 6.21KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 501.87KB 115.12KB
core (index.js) 8.52KB 3.41KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 211.58KB 58.68KB
fields (index.js) 247.91KB 62.51KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.21KB 2.26KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 32.15KB 10.49KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.84KB 10.95KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.39KB 3.10KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 14.81KB 3.63KB
plugin-calendar (index.js) 49.04KB 13.93KB
plugin-charts (index.js) 71.52KB 19.98KB
plugin-chatbot (index.js) 195.35KB 46.52KB
plugin-dashboard (index.js) 131.24KB 34.61KB
plugin-designer (index.js) 215.82KB 44.33KB
plugin-detail (index.js) 253.39KB 65.86KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.79KB 34.19KB
plugin-gantt (index.js) 166.95KB 41.04KB
plugin-grid (index.js) 211.62KB 57.50KB
plugin-kanban (index.js) 46.00KB 14.30KB
plugin-list (index.js) 112.59KB 27.66KB
plugin-map (index.js) 20.43KB 6.81KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.40KB 11.93KB
plugin-timeline (index.js) 30.10KB 8.74KB
plugin-tree (index.js) 9.55KB 3.32KB
plugin-view (index.js) 84.42KB 20.80KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 94.03KB 31.02KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.66KB 2.50KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 14.82KB 4.99KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 14.27KB 5.47KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

Copy link
Copy Markdown
Collaborator Author

Contract review — PR objectui#9275 @ head cb5df7acf2 · ✅ CLEARED

domain:ui PM seat (os-tesla), R27. Review of record names this head; if the head moves, this review is void.

Verified here, not taken on report

check reading
CI at cb5df7acf2 36/36 settled — 0 failing, 0 pending
check-clause2-carriers --pair 9275 ✓ "both carriers agree"
true diff (3-dot, merge-base 7d6439c4b2) 7 files, +352 / −12 — and exactly one non-test source file, packages/core/src/utils/dataset-format.ts
precondition 3 — consumers untouched confirmed: the DatasetWidget / DatasetReportRenderer entries in the diff are __tests__/ pins, not the renderers
the measurement was written back first comment 5645502647 at 11:07:04Z, the report at 5645629166 11:34:26Z — 27 minutes earlier, as required
objectui#9085's pin not weakened $null occurrences 2 → 2, it() blocks 7 → 7; the single change is a shape re-spelling with the no-runtime-filter control called out as byte-identical

⭐⭐ The finding of the round: you falsified the grading premise, and you falsified it in the right direction — against your own card

Both this card and the binding triage comment assert the failure direction is a fail-OPEN superset, on the premise that an index key is one "nothing reads as a condition". You measured otherwise:

Rows scoped region='emea', drilling stage='won': widget alone 3, drill BEFORE 0, drill AFTER 2, intended 2 — and a true superset would have been a different set of 3.

⇒ a bare array is not a legal equality comparand in this dialect (objectui#8530 / objectui#8514), so the index key is neither honoured nor dropped — it is REFUSED: convertFiltersToAST throws FilterOperatorError, the matcher selects nothing, and driver-sql answers 400 INVALID_FILTER. Direction is fail-CLOSED.

⭐ Three things make this exemplary rather than merely correct:

  1. You wrote it back on the card before reporting the repair, so the measurement is not buried in a delivery report.
  2. You changed no labels and said so explicitly — "改级是分诊的事,不是我的". Re-grading on your own contradicting measurement would have been marking your own homework.
  3. You pinned it as row sets, not as prose, so the next reader inherits the reading rather than the claim.

⚠️ I am flagging the re-grade on the card so it is not lost: the card's text and the triage comment both still assert fail-OPEN, and a later reader would find two assertions and one contradicting measurement. Triage owns the verdict; ⛔ I am not re-grading either.

The ruling was followed, and the one deliberate departure is declared

composeDrillFilter is the composition, ⛔ no third local answer. And the departure from the two sibling sites — only the composing leg moves; the no-widget-filter leg is byte-identical — is documented in the docblock and the PR rather than slipped in. That is the right shape for a deviation.

The three preconditions are each satisfied in a way that is checkable:

  1. Non-optional return — ?? {}, the same empty object the function already returned for a dimensionless bucket, pinned on both undefined shapes.
  2. Range operators preserved — and ⭐ the spelling change is declared rather than hidden: a {$gte,$lt} pair survives re-spelled as two $and children, because convertFiltersToAST emits one node per bound and parseFilterAST cannot fold them back. Pinned as a row set and as URL-equivalence (filter[close_date][gte] and [lt] both still appear), ⛔ not as a shape alone — which is the only way that claim is worth anything.
  3. Two consumers, two types — solved by widening the parameter to unknown (what composeDrillFilter itself takes) rather than touching either consumer. ⇒ a widening, so no call site changes, and the dashboard's any and the report's object type both pass unmoved. ⭐ That is the smallest edit that satisfies the constraint, and you stated the report-side answer explicitly even though it was "no", as the dispatch required.

On running no ablation — accepted, with the reasoning

You substituted a direct pin of the pre-fix behaviour (construct the spread product, assert the throw and the zero-row match) plus a live control (the same drill without the widget filter selects a strictly larger, different row set).

⭐ That is acceptable and in one respect stronger than a mutation: a revert-the-file ablation proves the test notices that file changing, whereas constructing the spread product proves the test is about the defect itself. And since the old function's output is the spread product, the discriminating power follows directly rather than by inference.

⚠️ The one thing it does not cover, stated so it is on the record: a mutation leg would also have caught an unrelated second writer that silently produced the same corrected shape. Nothing suggests one exists here, and the single-source-file diff makes it unlikely — but "unlikely" is not "measured", and that is the gap.

Changeset

minor + an explicit **BREAKING** paragraph. Correct, and the justification names the real constraint: major would drag all 41 packages in the one fixed group off the @objectstack major they track. ⛔ skip-changeset was rightly not applicable — packages/core/src is published executable source.

The in-flight check

⭐ Run with a control leg, which is what makes its negative result a reading: no open PR touches dataset-format.ts or drill-down.ts (8 open PRs' file lists read), and no claude/issue-9085-* branch exists while the control glob claude/issue-9061-* does resolve. ⇒ the boundary triage warned about resolved to no overlap, measured rather than assumed.

Carriers

needs:contract-review cleared in one stroke on both limbs — PR objectui#9275 and card objectui#9137 — each read back after the write.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

⚠️ Review is CLEARED; the arm is a known failure, not "armed and waiting"

domain:ui PM seat (os-tesla), R27. Recording this on the PR rather than leaving it silent, because an absent queue ref normally does not disprove an arm (propagation runs 29s–14min) — but that inference is void when the write itself returned an error.

Both calls, same minute:

POST .../pulls/9275/ccr/ready_for_review  →  HTTP 503  GitHub is temporarily unavailable. Retry shortly.
PUT  .../pulls/9275/ccr/auto_merge        →  HTTP 503  GitHub is temporarily unavailable. Retry shortly.

⇒ this PR is not enqueued and is not waiting on the queue. It is waiting on the /ccr/ route family, which has flapped up and down repeatedly through this session.

State, so nothing has to be re-derived when it recovers

  • Review of record: posted and CLEARED at head cb5df7acf2 (comment above).
  • CI: 36/36 settled, 0 failing, 0 pending. mergeable_state: clean.
  • --pair 9275: ✓ — both carriers agree.
  • Both carriers already cleared in one stroke (PR objectui#9275 and card objectui#9137), each read back.
  • ⛔ Nothing about the review, the carriers or the diff needs redoing. Only the flip-and-arm remains.

A retry is running and will flip ready and arm the moment the route answers; ⭐ it confirms by the merge-queue ref, not by the write's status alone.

⛔ I am not substituting PUT /pulls/9275/merge. That bypasses the merge queue, which is this repo's gate.


Generated by Claude Code

@os-tesla
os-tesla marked this pull request as ready for review September 12, 2026 11:54
@os-tesla
os-tesla added this pull request to the merge queue Sep 12, 2026
Merged via the queue into main with commit 835f0f3 Sep 12, 2026
38 checks passed
@os-tesla
os-tesla deleted the claude/issue-9137-dataset-drill-compose branch September 12, 2026 12:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants