Repository navigation
feat(types)!: retire AIInsightsSchema and the ai-insights node type (objectui#8800) - #9622
Conversation
ADR-0049 enforce-or-remove. Nothing in this repository ever registered the `ai-insights` discriminant, so no node of that spelling reached a renderer: `SchemaRenderer` resolved it to the OBJUI-001 "Unknown component type" panel and the CLI validator called it an unknown schema type. Both refusals are loud, but both are at run time, while `tsc` said yes because the declaration sat on the published `.d.ts`. The retirement moves the refusal to authoring time. The declaration and its `@object-ui/types` barrel re-export go, each leaving a tombstone comment carrying the ruling, the boundary against the three AI schemas that DO render, and the in-repo limit on the census. The objectui#8178 exclusion pin that deliberately held `AIInsightsSchema.objectName` out of that retirement is rewritten here by ruling, and by nothing else in that file. The successor pin asserts the symbol's absence from the declaring module and from the published barrel (`tsc`), the declaration's absence as source text, and a tree-wide census of both spellings — each with a lit control drawn from the three siblings the ruling left alone. Changeset is `minor` with the BREAKING banner and the FROM/TO: this repository scores its own breaking changes `minor`, which is what `check:changeset-no-major` enforces. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VCpmqvacV4BypY48QdoxcE
|
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
|
|
Served-tier: CONTRACT_REVIEW_TIER Contract reviewInputs judged from: objectui#8800 (body + all 7 comments; the ruling is comment ① Derived judgments — each change to the accept set or public surface, against the rulingThe ruling authorises exactly: (i) the
Nothing else in the diff touches an accept set or a public surface: no renderer, registration, zod file, doc, skill or README moved, and the head census ( Built-artifact readings (
Deletion vs
The objectui#8178 pin rewrite — authorised, and nothing else moved. The ruling names that file and those two lines and says the pin "is rewritten by this ruling, ⛔ not by refactor". Its stated ground at base ("the ruling names three schemas and that fourth one was neither screened nor decided") is discharged by #8800 exactly as the replacement paragraph says. I diffed the file at ② Semver and changeset — verified on the built artifact
③ Boundary flags — each answered or escalated
Budget: Implemented-by: claude/issue-8800-ai-insights-retire PASS Generated by Claude Code |
清标 provenance —— 条款②双载体已剥,凭据在此记录:PR 评论 逐字采纳,⛔ 未润色、未挑用。 这是这条路能成立的条件,不是客气话:出具裁决的是一个隔离的达档复核子代理,它只看到卡片、卡上裁决与本 PR —— ⛔ 没看到派发令、⛔ 没看到本席结论、⛔ 没看到开发报告。本席对它的产物只有两种权力:整体采纳,或整体作废。⛔ 没有第三种。 档位是本席独立量的,不是它自述的复核件自述 78/78;本席不读自述,读它自己的 transcript。同一探针,收尾读数: 同题发火对照:同一探针扫本会话全部 12 个子代理 transcript,读出
落地前检三条,逐条
③ 的三个 skip 是手判的,并带对照 —— ⛔ 本席没有拿
复核件点名的两条非阻断后续,⛔ 不在本 PR 处理它们不改变 PASS,也 ⛔ 不由本席顺手改 —— PM 不写代码,而且第二条动的是另一张卡的产物:
两条都另行立卡;⭐ 第 2 条有时间窗——它与本 PR 的 changeset 同一次发布(release PR #5400),窗口过了就进 CHANGELOG 定型,立卡时会写明。 — PM Generated by Claude Code |
Fixes #8800
Retires
AIInsightsSchemaand theai-insightsnode type from the publishedtype face, under ADR-0049 enforce-or-remove.
The ruling this executes — quoted, not summarised
Director seat, decision batch #137 item 2, 2026-09-15, maintainer verbatim
「同意」, on objectui#8800. Letter A of the three the card offered:
and, on execution:
⇒ B (write a renderer) and C (keep it as a documented forward
declaration) are closed. ⛔ Neither is re-proposed here.
else. That is an authorisation for one paragraph in one file. Every other line
of
ai-zero-read-members-retired-8178.test.ts— the seven?: nevermembertombstones objectui#8178 ruled on, their controls, their literals — is
byte-untouched, and the diff shows it.
What changed — five files
packages/types/src/ai.tsAIInsightsSchemainterface is gone; a tombstone comment stands where it was, carrying the ruling, the boundary against the three AI schemas that DO render, and the in-repo limit on the censuspackages/types/src/index.tspackages/types/src/__tests__/ai-zero-read-members-retired-8178.test.tspackages/types/src/__tests__/ai-insights-retired-8800.test.ts.changeset/8800-retire-ai-insights.mdminoron@object-ui/types, BREAKING banner,Clause-②: yes (narrowing), FROM/TO and the one-line fixNo renderer, no registration, no zod file and no document changed, because none
of them ever carried this spelling.
Premises, re-derived on this branch — every zero with a control that fires
Taken on this branch's base
3ecc369bf, ⛔ not inherited from the card.packages/**+apps/**typeliteral inside the declaration itselfgit grep -lsubject 1 file; controls in the same run:detail-view55,ai-recommendations8; absent-token control, minted for this run, 0. Populationgit ls-files7833AIInsightsSchemais re-exported from the package barrel ⇒ on the PUBLISHED type surfacedist/ai.d.tsand indist/index.d.ts's re-export list on the base build, before the changesrc/zod/scores 0 for the subject AND 0 for the sibling AI control, so that zero does not discriminate. The structural reading does:src/zod/mirrors a module asNAME.zod.ts, 18 modules are mirrored, andaiis not one of them — there is noai.zod.tsat all. Control:viewsIS mirrored. Pinned as a standing leg in the new testAIInsightsSchema.objectNamewas deliberately NOT retired by objectui#8178Equalholding that member at string-or-undefined, on the stated ground that the ruling named three schemas and the fourth "was neither screened nor decided". Both halves of that ground are discharged by objectui#8800, which screened it and decided it⭐ One reading the card did not have, measured here and worth the reviewer's
attention: the published zod validator
AnyComponentSchemarefusesai-insights— and refusesai-recommendations,ai-form-assistandnl-querytoo, all fourfalse, against abuttoncontrol that istrue.So the runtime half of this defect was never the zod face at all; the zod face
never accepted this node.
tscwas the only thing that said yes. That ispinned as a PREMISE leg, labelled as such, because it is green before and after
this change and is therefore ⛔ not evidence for it.
The BREAKING banner, earned on the BUILT artifact
The banner is a claim about what consumers receive, so it was verified on
dist/**.d.tsafter a clean rebuild (tsconfig.tsbuildinforemoved —check-dist-completenesscaught a partial dist first and named the repair,which is the gate working), ⛔ not on the source.
The external-consumer refusal, measured against the built face from outside the
repo tsconfig — one import of the retired symbol and one of a live sibling, same
module, same run:
exactly one error; the sibling import raised none. That is what an external
TypeScript consumer gets, and it is why the changeset spells out the FROM/TO.
⭐ The tombstone comment travels:
tscemits it intodist/ai.d.ts, so thereasoning arrives in the consumer's own
node_modulesbeside the absence.Reverse verification — the pin can fail, and it fails in the predicted direction
Predicted before running: RED. Run from the committed fix, mutation appended to
ai.ts, restored by anEXIT INT TERMtrap that compares the blob hash back tothe
HEADblob and refuses an empty hash.⭐ Exactly one of the two
@ts-expect-errorlegs went unused, not both — themutation re-added the declaration but not the barrel re-export, and the barrel
leg stayed used. The two directives discriminate two different faces rather
than duplicating one reading.
glossed: the tree census excludes the two files this change edited (they carry
tombstone comments that name the symbol on purpose), so a re-add in those two
files is caught by the source-text and
tsclegs, and the census is whatcatches a re-add anywhere else. The exclusion list lives beside its reasons in
the test, ⛔ not in an allow-list file.
Gates — hand-derived, because
dispatch-gates.mjscannot answer for this reposcripts/pm/dispatch-gates.mjslives in the siblingobjectstackcheckout andrefuses cross-repo by design, so there is no
--ranreconciliation for thisbranch and none is claimed. The roster below was derived by hand from this
repository's own
check:*scripts and from.github/workflows/enumerated offorigin/main(⛔ not off the working tree). Exit codes captured by redirectingfirst and reading
$?after, ⛔ never across a pipe.pnpm --filter @object-ui/types build(clean, incl.check-dist-completeness)pnpm --filter @object-ui/types type-check(tsc --noEmit+ examples +tsconfig.test.json)pnpm exec vitest run packages/types/— 193 files, 4559 teststurbo run buildacross the workspace — 43/43 taskscheck-changeset-presence·check-changeset-no-major·check-changeset-fixed·check-changeset-claimscheck-readme-exportscheck-type-check-coveragecheck-doc-component-types·check-doc-snippet-types·check-prompt-component-keyscheck-component-surface-parity·check-designer-field-key-parity·check-spec-symbol-derivationcheck-unreferenced-sources·check-package-self-import·check-phantom-dependencies·check-side-effects-arraycheck-node-esm-load·--specifiers-only·check-published-dist-tooling·check-dist-completeness --allcheck-control-bytes·check-new-cross-file-line-citations·check-test-path-roots·check-vi-mock-override-shapecheck-lint-coverage(46/46) ·pnpm --filter @object-ui/types lintcheck-governed-queue-guard --teston all five pathsnode packages/cli/dist/cli.js checkcheck-readme-exportswas red on the first attempt with a PREREQUISITE NOTMET, not a finding: it refuses to measure when packages are unbuilt, and said
so in its own output. It is recorded green above only from the run after the
workspace build.
@object-ui/typesreports 0 errors and 288 pre-existing warnings.The retirement removed one of them (the
data?: any[]member went with theinterface); it added none.
pnpm testshards,
pnpm type-checkacross every package,pnpm lintover the wholeworkspace and
pnpm test:distare CI's runs and were not repeated here. Theworkspace
turbo run buildabove compiles every package withtsc, and thetree census scores zero references to the retired symbol outside the two edited
files and the record — so no importer can break on a name nothing imports. CI
still runs the farm.
Changeset level: taken from the gate, not from prose
minoron@object-ui/types, with the breaking semantics spelled out in thebody.
check-changeset-no-majoris what forbidsmajorhere (this repository'sfixed group rides
@objectstack's major), andminoris its verdict. Thedisposition line is
Clause-②: yes (narrowing), written into the changesetbody.
check:adr-0087-registrationgate — zero matches inscripts/and.github/, against a control of three changeset gates that do resolve — so theline is carried per the ruling and the sibling repository's spelling, ⛔ not
because a local gate parses it.
The card recorded that its zero covered
packages/**andapps/**only andthat it did not enumerate customer applications or published documents. That
limit stands, and the ruling was taken with it attached.
⇒ Everything above is the IN-REPO HALF.
git grepreads this repository'stracked files: ⛔ not customer applications, ⛔ not published documents, ⛔ not
tenant metadata at rest, ⛔ not untracked files. It is ⛔ not proof that
nothing in the world authors
type: 'ai-insights'.@object-ui/typesispublished, so an external consumer that authored the node is structurally
unobservable from here — it gets the TS2305 above, which is why the FROM/TO is
in the changeset. Such a consumer's document was already being refused at run
time by both the OBJUI-001 panel and the CLI validator.
Acceptance notes
AnyComponentSchemarefusesall four AI spellings, including the three that ARE registered and rendered
(
ai-recommendations,ai-form-assist,nl-query— measured above, with abuttoncontrol that passes). That is the opposite direction from this card— registered but undeclared — and it already has a carrier: objectui#8499
measured 505 registered keys with no arm, on that exact gap. Successor reader
exists, so no new card. ⛔ Out of scope here and untouched.
check-readme-exportsandcheck-dist-completenessboth failed loudly and correctly on unbuilt/partial state during this work,
each naming its own repair in its output. Working as designed; recorded so the
two red lines in this branch's logs are not read as findings.
Generated by Claude Code