Repository navigation
refactor(types)!: retire TimelineSchema events / orientation / position as tombstones (objectui#6170) - #10840
Conversation
…on as tombstones ADR-0049 stage 2 of objectui#6170 (maintainer ruling 2026-08-25): the three keys no renderer ever read are now `?: never` on the TS face and `retirementTombstone()` on the Zod twin, in lockstep. Each refusal names what to author instead (`items`, `variant`; `position` has no replacement). - re-decide the stage-1 "still declared" pins in timeline-declared-keys - new pin timeline-dead-keys-retired-6170: envelope, counter-probes, the union and strict doors, and the TS half on member and document form - migrate the data-display-examples.json timeline node and the two schema-reference.md `events: []` snippets to `items` - docs callout says retired; @object-ui/types minor changeset spells out the break Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DuWo5bdP9SdVebamn99GGk
|
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: Isolated adversarial review of PR objectui#10840 against card objectui#6170 (maintainer ruling ① Derived judgmentsAcceptance-set changes, per face — measured. A probe in this seat's scratch tree ( TypeScript face — measured. Refusal messages — measured. For all three keys the parse message equals the Readers — measured, none. Producers — measured, and the dev's call is right. Census of authored timeline nodes at base: exactly Orphaned exports — right under the ruling's letter. The ruling names Pins. The new pin ② Semver level
Every sentence, checked.
③ Boundary flags
Implemented-by: VERDICT: PASS Generated by Claude Code |
Patch round on objectui#6170 (contract review 5859317451): - the migration sketch marks `time?` optional and states `title` is required, matching TimelineFeedItem on both faces - the unchanged-keys sentence is scoped to declared keys and names the undeclared onItemClick runtime slot, so the list no longer reads as incomplete - the events docblock says timeScale is a few members above, not directly above Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DuWo5bdP9SdVebamn99GGk
✅ 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: Delta review of PR objectui#10840 (card objectui#6170). Round 1 is the PASS record ① Derived judgmentsNothing else moved — measured. The delta is exactly 2 files, +6 / −5:
Changeset item sketch — true key by key, measured against Reworded renderer-keys sentence — true. It now says every declared key the renderer reads ( ② Semver levelUnchanged: ③ Boundary flags
Implemented-by: VERDICT: PASS Generated by Claude Code |
Fixes #6170
Clause-②: yes
What this does
This is ADR-0049 stage 2 of objectui#6170, the remainder of the maintainer ruling of 2026-08-25 (「同意」). That ruling sends
events,orientationandpositiononTimelineSchemadown the enforce-or-remove route. No producer expects any of them to render, so this PR takes the remove route. All three become tombstones, changed in lockstep on both published faces.packages/types/src/data-display.ts):events?: never,orientation?: neverandposition?: never. Each has a RETIRED docblock and a@deprecatedtag that names what to write instead.packages/types/src/zod/data-display.zod.ts): each key is aretirementTombstone(...), the same formtimeScaleuses. One string is both the parse message and the.describe()text, and it names the replacement:events→items;orientation→variant;positionhas no replacement, because the vertical rail is always drawn on the left. The message says so.TimelineEventandTimelineEventSchemastay exported. Retiring a published type name is a separate break, and the ruling did not name it. Both are now orphaned, sinceTimelineSchemano longer references them. Their docblocks now say so.Why tombstones and not deletion:
BaseSchemacarries[key: string]: anyon the TS side and is.passthrough()on the Zod side. A deleted member would still type-check and parse green, and it would still render nothing.Premise re-measured on origin/main fda49e5, before any edit
The seat's claim correction holds:
orientationandpositionwere still live optional declarations, neither deleted nor tombstoned. So the remainder is three keys, not one.No renderer reads any of the three
Three instruments, each with a positive control:
findReferenceson eachTimelineSchemamember, over a program built from the repo-root tsconfig..ts/.tsxfile underpackages/,apps/andexamples/that spells one of the names. That is 762 files, 4010 in the program.events: no reference beyond its own declaration and two JSDoc links.orientationandposition: JSDoc links, plus the stage-1 pintimeline-declared-keys.test.ts.rowLabel, the instrument finds the renderer'sschema.rowLabelread inplugin-timeline/src/renderer.tsx, reached through theTimelineRenderSchemamapped type. So it does see renderer reads.SchemaRendererand the real registry, varied one key at a time, and compared the rendered HTML. Both readers of a timeline node were covered:timeline. Its owner isview:timeline, and the path isObjectTimelineRenderer→ObjectTimeline→TimelineRenderer. In all three variants, addingorientation,positionoreventsgives byte-identical HTML, and aneventsentry's title never renders. Controls fired: changingvariant, or an item's title, changes the HTML.plugin-timeline:timeline. The rendered content is unchanged. The keys only land as inert stringified attributes on the root element, such asorientation="horizontal"andevents="[object Object]". They get there throughTimelineRenderer's leftover-props spread, which is also wherevariantanditemsland today (see Acceptance notes). That is not a read.packages/plugin-timeline/srchas no identifier read of any of the three, on any receiver.No producer expects them to render
Census of authored timeline nodes:
objectstack
origin/main3f86dc52f (examples including app-showcase, docs, spec, skills): zero.position: 'top'in an unrelated spec test.objectui: two in-repo occurrences. Both are echoes of the dead declaration, not producers:
packages/types/examples/data-display-examples.json#examples.timeline, an unpublished example that authored all three and rendered an empty rail;{ "type": "timeline", "events": [] }snippets incontent/docs/api/schema-reference.md.Both are migrated in this PR. No example app, showcase, console surface, designer input, registry example or skill authors any of the three. objectui#6354's stage-2 checklist already listed replacing that fixture as part of this removal.
Pins
packages/types/src/__tests__/timeline-dead-keys-retired-6170.test.ts.code: invalid_type,expected: never). The message equals.describe()and names the replacement, or says there is none. A counter-probe shows the migrated document parses green.events: []is refused. It is the key that is refused, not a bad value.safeValidateSchema) and through the strict authoring face, where the key is refused by its tombstone and never reported asunrecognized_keys.@ts-expect-erroron each member type and on each property of an authored document, with canonical counter-probes.timeline-declared-keys.test.ts.eventsstill parses.orientation/position@ts-expect-errorlines, and the counter-probe that authored them, move to the new pin.timeline-items-bar-shape-7365.test.ts. It still asserts thatdata-display-examples.json#examples.timelineis accepted, and that now passes against the migrated node. Fixture triage: the node was replaced wholesale, because it pinned exactly the branch being removed.Ablation: restore the old declaration and watch the pin go red
Setup. I committed first (
b3f4ecc93). Then I restored the old declarations of all three keys on BOTH faces usingablation-replace.mjs --hold:Predicted before the run: 13 vitest failures in the new pin,
timeline-declared-keysgreen, exactly 6 TS2578 in the new pin (3 member directives and 3 document directives), and no parity error.Observed:
Tests 13 failed | 22 passed (35), exit 1. All 13 failures are in the new pin.tsc -p tsconfig.test.json: exit 2, with exactly 6TS2578: Unused '@ts-expect-error' directive, all in the new pin.c01f3c914c19,3e52a35011e1), andgit diff HEADis empty.Reverse check on the consumer. I rebuilt
@object-ui/types' dist, which now carries the three?: nevermembers. A temporaryTimelineSchemaliteral withorientation: 'horizontal'inpackages/plugin-timeline/srcthen gaveTS2322: Type 'string' is not assignable to type 'undefined'. I removed the probe, and the tree is clean.Local gates, all at b3f4ecc
pnpm --filter @object-ui/types type-check(three tsc legs)pnpm exec vitest run --maxWorkers=2 packages/types/ packages/plugin-timeline/(repo root)Test Files 283 passed (283)·Tests 5767 passed (5767)scripts/__tests__that read a touched path (73 files, derived withgit grep)Test Files 73 passed (73)·Tests 3232 passed (3232)pnpm --filter @object-ui/plugin-timeline type-check, on rebuilt distcheck-changeset-presence4 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s)check-changeset-no-majorNo changeset declares a major bump.check-changeset-fixedAll workspace packages are in the changeset fixed group.check-changeset-claims(report-only)check:pending-changeset-literalsNo test source names a pending changeset.check:spec-symbolsspec symbol derivation: 1412 files scanned … 0 untriaged collisionscheck:control-bytescheck-control-bytes: OK (scanned 9047 tracked text file(s); skipped 85 binary).check:new-line-citationsVERDICT new-cross-file-line-citations: 0 new citation(s)check:icon-record-namesOK lucide icon names: 184 authored/declared names …check:doc-typesEvery documented component type is registered.check:doc-snippets, on built closureSemantic phase: 678 of 678 block(s) judged, 0 failed.check:doc-examples, on built closureEvery covered @example compiles, or fails exactly as its ledger row declares.check:doc-fences·docs:check-links·check:handler-key-readscheck-governed-queue-guard --test(the 8 paths)NOT GOVERNEDpackages/types(the package's owneslint .)Lint narrowing, declared.
eslint .under the root config, as CI's per-packageturbo run lintruns it).--format json.eslint.config.jssets noparserOptions.projectorprojectService, so linting is not type-aware and this diff cannot change the verdict on an untouched file in another package.NOT MEASURED
type-checkover the other 40 consumers of@object-ui/types(...@object-ui/types, prefix form, meaning consumers). Reason: the type-checker census found no reference to the three members outsidepackages/types, and@object-ui/plugin-timelineis the only package that importsTimelineSchema. That package was measured, against rebuilt dist, and the reverse check above shows it reads the rebuilt.d.ts. The remaining sweep is CI'sturbo run type-check.Acceptance notes (observations, not filed)
SchemaRenderer, aplugin-timeline:timelinenode puts every authored key on its root ol / div element as a stringified attribute. Today that includesvariant="vertical"anditems="[object Object]", becauseTimelineRendererspreads its leftover props onto that element. It is DOM noise, not a read, and not this card's. Measured by the runtime probe above.TimelineEventandTimelineEventSchemaare published names that nothing references any more. Retiring them is a separate break.17.6.0(published 2026-08-24T14:44Z) as the latest@object-ui/typesrelease. That is before stage 1 merged, so stage 1 (eventsoptional) and stage 2 (retired) reach consumers in the same release. The changeset says so, and it says it supersedes the stage-1 entry's line that the three "remain declared". That entry is left untouched, as objectui#6355 left it.Session:
https://claude.ai/code/session_01DuWo5bdP9SdVebamn99GGk(domain:ui seat #1 dispatch, os-dev).Generated by Claude Code