Repository navigation
fix(types,plugin-dashboard)!: retire DrillDownConfig.report's { name } reference arm on all three faces, refused by name (objectui#11517) - #11527
Conversation
…me }` reference arm on all three faces, refused by name (objectui#11517)
The arm promised a named report reference that no renderer resolved: the
drill drawer draws a report only for a dataset-bound inline report, so a
`{ name }` drill listed the records. Nothing produced it.
- TS face: `report?: SpecReportInput`.
- Zod faces: the report member is the spec's `ReportSchema` by reference,
with `objectName` declared as a named refusal (the pre-9.0 form,
objectui#11506) and a refinement that names a bare `{ name }` as the
retired reference. The tolerant face no longer reads the pre-9.0 form
as `{ name }`.
- Fixtures that used `{ name }` as a convenient valid report move to a
dataset-bound report; the ones that tested the arm are re-judged to
refusals. The drawer and docs comments follow; the drawer draws the
same thing.
Claude-Session: https://claude.ai/code/session_01XvhGmGAP79ZB8swnkapxPC
Co-authored-by: Claude <noreply@anthropic.com>
…ll draws through the real drawer; a stored `{ name }` is refused and drawn as before (objectui#11517)
Claude-Session: https://claude.ai/code/session_01XvhGmGAP79ZB8swnkapxPC
Co-authored-by: Claude <noreply@anthropic.com>
… drill report reference; dated notes on the 7352 and 11506 entries (objectui#11517) Claude-Session: https://claude.ai/code/session_01XvhGmGAP79ZB8swnkapxPC Co-authored-by: Claude <noreply@anthropic.com>
|
changeset-claim-re-read
|
✅ Console Performance Budget
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
Size Limits
|
Contract reviewServed-tier: Inputs read, and nothing else: card #11517 (body and its four comments: ruling ① Derived judgmentsEvery accept-set and public-surface change the diff implies, each named right or wrong:
Nothing the diff implies is left unnamed, and nothing named is wrong. ① PASS. ② Semver level
Pending-changeset sweep, read not recalled: 2694 entries at the head's
③ Boundary flags
Check-runs on Implemented-by: VERDICT: PASS |
Brings in objectui#11517 (PR #11527): DrillDownConfig.report's name arm retired on all three faces. No conflict. Claude-Session: https://claude.ai/code/session_01XvhGmGAP79ZB8swnkapxPC Co-authored-by: Claude <noreply@anthropic.com>
Fixes #11517
Clause-②: no (narrowing)
Triage's ruling
5962814975on the card: retireDrillDownConfig.report's{ name }reference arm on the TypeScript, tolerant and strict faces, refused by name, with no alias window. Thedomain:uireviewer's note5963125397is folded in: the pre-9.0objectNamedrill report, which the tolerant face read as this arm, is now refused on that face with a message naming its retirement (objectui#11506).What changes
@object-ui/types).DrillDownConfig.reportgoes fromSpecReportInput | { name: string }toSpecReportInput. The JSDoc that described the reference is replaced by a retirement paragraph.tscnow refuses a bare{ name }because the spec requires other members (labelfirst). The per-block shapesObjectPivotDrillDownConfigandObjectMetricDrillDownConfiginherit this.DrillDownReportSchema(zod/data-display.zod.ts) is no longer a union. It isstripImportedDefaults(SpecReportSchema)with two additions, and each one names a retirement:objectName: aliasKeyRefusal('objectName', 'dataset', 'this drill report', …)is a declared refusal. Its message starts with the spec's own sentence ("Did you meanobjectName→dataset?") and names objectui#11506. This is the reviewer's note: the tolerant face now refuses the pre-9.0 form by name too.refuseRetiredDrillReportReferenceis asuperRefinewithwhen: () => true, following therequireRecordSourceprecedent. When a parsed value's only report member isname, it adds acustomissue withparams.code: 'DRILL_REPORT_REFERENCE_RETIRED'. The message names objectui#11517 and the dataset-bound form to write instead.DrillDownReportZodTypestays a by-reference type, for the TS7056 reasonReportNodeZodTypegives. In the rebuiltdist, emit prints it by name at 3 sites indata-display.zod.d.ts, 2 inobjectql.zod.d.tsand 4 inindex.zod.d.ts. PR objectui#11516's body reports the same counts; I did not re-measure BASE.DrillDownDrawer.tsxis a comment: thereportprop doc now names the two retired forms.isDatasetBoundReportand the render path are byte-identical.content/docs/plugins/plugin-dashboard.mdx, section "Drilling into a report", the paragraph that said the tolerant face still accepts the old form, and that a{ "name": "…" }reference "is declared too", is replaced. The section now lists the two retired forms and what each face does with them. The section's JSON example is unchanged..changeset/11517-drill-report-name-retired.md,@object-ui/typesminor, with a BREAKING line, FROM/TO, and the accept-set change stated per face. Dated notes are appended to7352-drill-down-config-mirrorand11506-drill-drawer-runtime-filter(sweep below).Before and after, per face (measured at BASE
8366accd1and at head)The zod columns come from a throwaway vitest probe, deleted and never committed. The TypeScript column comes from a scratch
tscprogram that restates BASE's member type (SpecReportInput | { name: string }) beside head's; refusals are TS2741 or TS2322.safeValidateSchema,objectui validate)StrictAnyComponentSchema){ name: 'saved_report' }{ name }→ refused, named (DRILL_REPORT_REFERENCE_RETIRED){ name, objectName, type, columns: [{ field }] }{ name }→ refused atreport.objectName(invalid_type, names objectui#11506)unrecognized_keys:objectName) → refused atreport.objectName(invalid_type, names objectui#11506){ name: 'pipeline', columns: [] }{ name }→ refused (the spec's own issues)values)valuesis a spec refinement, enforced at runtime only){ name }→ refused, in the spec's words (a report needs dataset + values){ name: 42 }Each "valid → refused" cell on the tolerant face was a document
objectui validatereported VALID, and the drawer then listed records for it.Pins (the ruling's two, plus the reviewer's note)
report: { name }is refused on all three faces:packages/types/src/__tests__/drill-down-report-name-retired-11517.test.ts(new).@ts-expect-erroronDrillDownConfig,ObjectPivotDrillDownConfigandObjectMetricDrillDownConfig, and on a non-literal value typed{ name: string }. A type-levelAssertchecks that{ name: string }is not assignable to the report type.object-pivot, tolerantchart, strictobject-pivot, strictchart). Each must answer with exactly onecustomissue at the report, carryingDRILL_REPORT_REFERENCE_RETIRED, and the message must nameobjectui#11517anddataset.apps/console/src/__tests__/drillDownReport.nameRetired-11517.test.tsx(new). Oneobject-pivotdocument validates on the strict and tolerant faces. ItsdrillDown.reportthen goes through the realDrillDownDrawerover the realreportregistration of@object-ui/plugin-report. The drawer issuesqueryDataset('deals_ds', …)withruntimeFilter: { stage: 'Won' }and nofind. A second case checks that a stored{ name }is refused on both faces and that the real drawer still lists the records for it, as it did before the retirement.invalid_typeatobjectNamewith a message namingobjectui#11506, and no reference issue.Corpus re-judged (every fixture that authored
report: { name })packages/types/src/__tests__/drill-down-config-mirror-7352.test.ts{ name, columns: [] }("which the reference arm accepts")report). The{ name: 42 }row is relabelled. The docblock's "two structural forms" becomes one.packages/types/src/__tests__/drill-down-report-dataset-bound-11506.test.tsreference: DrillDownConfigwas accepted, and a test said the tolerant face "falls to the reference arm"@ts-expect-erroron the reference. The tolerant test is re-judged to a named refusal atreport.objectName. The strict assertion moves fromunrecognized_keystoinvalid_typeatobjectName, sinceobjectNameis now declared. The header is updated.packages/types/src/__tests__/drill-down-per-block-10685.test.ts(4 sites)object-data-tablemember refusals, and theobject-data-tablezod refusalpackages/types/src/__tests__/object-chart-undeclared-keys-8885.test.tsreportas a keypackages/types/src/__tests__/object-metric-drill-down-config-9002.test.tspackages/plugin-dashboard/src/__tests__/ObjectPivotTable.drillDownRefusal-10685.test.tsxpackages/plugin-dashboard/src/__tests__/objectMetricDrillDownMembers-8071.test.tsx{ name }packages/cli/src/__tests__/registered-types-validate-ratchet-10859.test.tsProducer census (H1): zero non-test producers.
drillDownappears in 0 files underexamples/, 1 undercontent/(this docs page, whose example is dataset-bound), 0 underdocs/, 0 in non-testapps/console/src, and 20 in non-testpackages/*/src. None of those 20 authors areport:object literal.origin/main535d1d25: 0drillDownfiles underexamples/, and 0report: { nameliterals there.drillDownfiles in non-testpackages/*/src; the docs page'sreport: {literal hits the report-literal matcher; 8 test files hit the bare-{ name }matcher; 6object-metricfiles in objectstack'sexamples/; 4report: { namehits in objectstack'spackages/.Readers (H4): no edit needed beyond one comment
findReferencesonDrillDownConfig.report. The program is 1524 non-test source files from every workspace that depends on@object-ui/types, with@object-ui/*mapped to source, and it was run at BASE and at head.ObjectMetricWidget.tsx:drillDown?.report asaRecordofstringtounknown(orundefined).ObjectPivotTable.tsx:report={drillDown?.report}.object-data-tabletombstone,report?: never.DrillDownDrawer'sreport?:prop, aRecordofstringtounknownand need nothing.@object-ui/plugin-dashboardtype-check is green against the rebuilt typesdist.isDatasetBoundReporttakesunknown, so it needs nothing either. Only the prop's doc comment named the arm.Contract notes
ReportSchemaaccepts. The two additions only add an issue to values the spec already refuses.objectName: undefinedis now accepted by the optionalnevermember, where the spec's strictness refused the key. JSON cannot carryundefined, and the TS face still refusesobjectName.retirementTombstoneandaliasKeyRefusalin this package has the same edge.objectNameis a declared member rather than a key test in the refinement. zod hands a check the object it built, not the input, so an undeclared key is invisible there. The first cut tested the key inside the refinement, and on the probe it never fired.unrecognized_keysat the report. It now reportsinvalid_typeatreport.objectName, and the message starts with the spec's own sentence.{ name }. The named issue sits after the spec's ownreport.labelissue, because zod reports shape issues before checks.ReportNodeSchema.report, thereportnode, is still the plain spec schema.object-data-table'sreporttombstone.ChartSchema.drillDown.Verification (final head
ecf5fd38)Every source file is byte-identical from
4b461bfaon:ecf5fd38adds only the 3.changesetfiles. The runs below were taken on that tree.pnpm --filter @object-ui/types run type-check, all three legs: exit 0.tsc -p tsconfig.test.json --listFileslists all 6 changed types test files.pnpm --filter @object-ui/plugin-dashboard run type-check, afterpnpm --filter @object-ui/types build: exit 0. Itstsconfig.test.jsonlistsObjectPivotTable.drillDownRefusal-10685.pnpm --filter @object-ui/console run type-check: exit 0. The console closure (35 packages) was built first.tsc --listFileslists the new console pin.pnpm exec vitest run --maxWorkers=2 packages/types/: 345 files, 9180 passed.VERDICT command-exit 0.VERDICT command-exit 0). The set is every suite that names a changed file by path:drillDownReport.*pins (the new one included),registry-inputs-spec-parityandunfulfilled-chart-stubs-8760;unfulfilled-chart-stubs-retired-8760andregistered-types-validate-ratchet-10859;columnEmitBoundary-6004;scripts/__tests__suites that read a changed file by path.check:control-bytescheck:new-line-citations(0 new)check-changeset-presencechangeset:check(no major)check:changeset-claims, report-only. It named 14 pending entries that mention a touched file; each was read, and none mentions the drill report.check:pending-changeset-literalscheck:spec-symbolscheck:doc-typescheck:doc-fencescheck:doc-snippets(777 of 777 blocks)check:doc-examplescheck:test-path-rootscheck:phantom-depscheck:component-surface-parity, report-only.ts/.tsxfiles: 0 errors and 34 warnings, all on lines this diff does not touch. The narrowing is proven three ways:eslint.config.jslints every**/*.{ts,tsx}outsidedist,.next,node_modules,publicand.source, and three named build artefacts. No package has its own config.--format jsonreturned 11 files, none ignored.parserOptions.projectorprojectService, and no rule undereslint-rules/reads the filesystem. So this diff cannot move the verdict of an untouched file.check:sdui-registration-pins, which needs the console bundle (PREREQUISITE NOT MET, exit 2). No registration input moved, so it is not owed.Spec Main Shape Gate(TS7056 against objectstackmain). It belongs to CI.Reverse verification
Each leg ran from the committed head through objectstack's
scripts/ablation-replace.mjs. Each mutation was proven on disk (anchor 1 → 0, blob changed), and each restore was proven: blob == HEAD andgit diff HEADempty. The prediction was written before each run.{ name }refinement. Predicted: the 6 named-{ name }rows go red and the rest stay green. Observed: 6 failed, 73 passed.objectName(renamed in the extension). Predicted: 5 doors plus 2 rows in the 11506 pin. Observed: 7 failed, 72 passed.| { name: string }back on the TS face. Predicted: 5 × TS2578 (unused@ts-expect-error) and 1 × TS2344 (theAssert). Observed: exactly those, plus TS2322LedgerMismatchinzod-mirror-parity.test.ts. The parity ledger also catches the TS face widening past the mirror, so the reading moved in the direction of more diagnostics than predicted.{ name }and reported valid.{ name }refusal leg went red and the draw leg stayed green.Pending changesets sweep
7352-drill-down-config-mirror: it said "report's two structural forms", that the named-reference arm keeps{ name }({ name: 'x', columns: [] }accepted), and, in the 2026-10-02 note, "the{ name }reference arm is unchanged".11506-drill-drawer-runtime-filter: its TO line wasSpecReportInput | { name: string }, it said "the unchanged{ name }reference arm", and it saidobjectui validatereports the object-bound form valid.11440-drill-drawer-report-node: its 2026-10-02 note's "recognises a report by itsdataset" still holds.drillwas grepped forreport. The hits, in10685-drilldown-per-block,8885-object-chart-drilldown-title-compareto,8970-object-metric-shared-drill-drawer,6576-widget-schema-anchors,10778-dashboard-bus-readers,10814-report-line-items-bus-readersand11440-object-pivot-drilldown-input, treatreportas a member, as a per-block refusal or as a bus re-read. None names its{ name }arm. The rest do not mentionreport.check:changeset-claimsnamed for a touched file: none mentions the drill report.Acceptance notes (observations, not filed)
ObjectMetricWidget.tsxcastsdrillDown?.report asaRecordofstringtounknown(orundefined). The cast is redundant now that the member has one arm, and it is harmless. Not in this claim's file surface. carrier: none.@object-ui/plugin-dashboardgets no changeset entry. Itssrcchanges only in a comment, so no behaviour ships, and the ruling's order names one@object-ui/typeschangeset.The PR body is written once. Session:
https://claude.ai/code/session_01XvhGmGAP79ZB8swnkapxPC.Generated by Claude Code