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

feat(types)!: retire AIInsightsSchema and the ai-insights node type (objectui#8800) - #9622

Merged
hotlong merged 1 commit into
mainfrom
claude/issue-8800-ai-insights-retire
Sep 16, 2026
Merged

hotlong merged 1 commit into
mainfrom
claude/issue-8800-ai-insights-retire

Conversation

@hotlong

@hotlong hotlong commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Fixes #8800

Retires AIInsightsSchema and the ai-insights node type from the published
type 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:

  • A — AIInsightsSchema and the ai-insights node type are retired from the published type face under ADR-0049 enforce-or-remove: the declaration and its barrel export go; the objectui#8178 exclusion pin (ai-zero-read-members-retired-8178.test.ts :115 / :120 Equal<…>) is rewritten by this ruling, ⛔ not by refactor. Clause-②: yes (a published .d.ts member retires, objectui#8178 precedent).
  • B and C are refused.

and, on execution:

Changeset minor on @object-ui/types with the BREAKING banner and the ADR-0087 disposition line (pre-GA retirement ships minor); the retirement follows the spec-property-retirement shape as objectui#8178 did.

⇒ B (write a renderer) and C (keep it as a documented forward
declaration) are closed. ⛔ Neither is re-proposed here.

⚠️ The objectui#8178 exclusion pin is rewritten by that ruling, and by nothing
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 ?: never member
tombstones objectui#8178 ruled on, their controls, their literals — is
byte-untouched, and the diff shows it.

What changed — five files

file what
packages/types/src/ai.ts the AIInsightsSchema interface 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 census
packages/types/src/index.ts the barrel re-export is gone; the same shape objectui#4895's block-family retirement left behind — GONE, not emptied, with the reason at the site
packages/types/src/__tests__/ai-zero-read-members-retired-8178.test.ts the exclusion paragraph, rewritten by ruling. Nothing else in the file moved
packages/types/src/__tests__/ai-insights-retired-8800.test.ts NEW — the successor pin
.changeset/8800-retire-ai-insights.md minor on @object-ui/types, BREAKING banner, Clause-②: yes (narrowing), FROM/TO and the one-line fix

No 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.

premise verdict reading, with its control
the spelling occurs exactly once under packages/** + apps/** HOLDS, and is tighter — exactly once tree-wide, the type literal inside the declaration itself git grep -l subject 1 file; controls in the same run: detail-view 55, ai-recommendations 8; absent-token control, minted for this run, 0. Population git ls-files 7833
AIInsightsSchema is re-exported from the package barrel ⇒ on the PUBLISHED type surface HOLDS present in dist/ai.d.ts and in dist/index.d.ts's re-export list on the base build, before the change
there is NO zod mirror for it HOLDS, and the instrument was made discriminating a bare grep of src/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 as NAME.zod.ts, 18 modules are mirrored, and ai is not one of them — there is no ai.zod.ts at all. Control: views IS mirrored. Pinned as a standing leg in the new test
AIInsightsSchema.objectName was deliberately NOT retired by objectui#8178 HOLDS — the pin asserted a type-level Equal holding 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 the paragraph that replaces it says exactly this

⭐ One reading the card did not have, measured here and worth the reviewer's
attention: the published zod validator AnyComponentSchema refuses
ai-insights — and refuses ai-recommendations, ai-form-assist and
nl-query too, all four false, against a button control that is true.
So the runtime half of this defect was never the zod face at all; the zod face
never accepted this node. tsc was the only thing that said yes. That is
pinned 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.ts after a clean rebuild (tsconfig.tsbuildinfo removed —
check-dist-completeness caught a partial dist first and named the repair,
which is the gate working), ⛔ not on the source.

AFTER · declaration of the symbol in dist/**.d.ts          0
AFTER · the `type: 'ai-insights'` member in dist/**.d.ts   0
AFTER · the symbol in dist/index.d.ts's re-export list     0
LIT CONTROL · sibling declaration still emitted            1
LIT CONTROL · sibling `type: 'ai-recommendations'` member  1

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:

error TS2305: Module '"./dist/index.js"' has no exported member 'AIInsightsSchema'.

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: tsc emits it into dist/ai.d.ts, so the
reasoning arrives in the consumer's own node_modules beside 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 an EXIT INT TERM trap that compares the blob hash back to
the HEAD blob and refuses an empty hash.

ON-DISK BEFORE: declaration anchor 0 · tombstone anchor 1
ON-DISK AFTER:  declaration anchor 1 · tombstone anchor 1     <- the mutation really landed
VITEST_EXIT=1   FAIL "the DECLARING module no longer declares the interface or the spelling"
TSC_EXIT=2      error TS2578: Unused '@ts-expect-error' directive.   (the `../ai` leg)
RESTORED: blob 70bc05709c859c6c3a30f4cba58709d38ba8f756 == HEAD blob

⭐ Exactly one of the two @ts-expect-error legs went unused, not both — the
mutation 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.

⚠️ What the ablation shows the census does NOT cover, stated rather than
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 tsc legs, and the census is what
catches 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.mjs cannot answer for this repo

scripts/pm/dispatch-gates.mjs lives in the sibling objectstack checkout and
refuses cross-repo by design, so there is no --ran reconciliation for this
branch and none is claimed. The roster below was derived by hand from this
repository's own check:* scripts and from .github/workflows/ enumerated off
origin/main (⛔ not off the working tree). Exit codes captured by redirecting
first and reading $? after, ⛔ never across a pipe.

gate exit
pnpm --filter @object-ui/types build (clean, incl. check-dist-completeness) 0
pnpm --filter @object-ui/types type-check (tsc --noEmit + examples + tsconfig.test.json) 0
pnpm exec vitest run packages/types/ — 193 files, 4559 tests 0
turbo run build across the workspace — 43/43 tasks 0
check-changeset-presence · check-changeset-no-major · check-changeset-fixed · check-changeset-claims 0
check-readme-exports 0
check-type-check-coverage 0
check-doc-component-types · check-doc-snippet-types · check-prompt-component-keys 0
check-component-surface-parity · check-designer-field-key-parity · check-spec-symbol-derivation 0
check-unreferenced-sources · check-package-self-import · check-phantom-dependencies · check-side-effects-array 0
check-node-esm-load · --specifiers-only · check-published-dist-tooling · check-dist-completeness --all 0
check-control-bytes · check-new-cross-file-line-citations · check-test-path-roots · check-vi-mock-override-shape 0
check-lint-coverage (46/46) · pnpm --filter @object-ui/types lint 0
check-governed-queue-guard --test on all five paths 0 — NOT GOVERNED
node packages/cli/dist/cli.js check 0

⚠️ check-readme-exports was red on the first attempt with a PREREQUISITE NOT
MET
, 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.

⚠️ eslint on @object-ui/types reports 0 errors and 288 pre-existing warnings.
The retirement removed one of them (the data?: any[] member went with the
interface); it added none.

⚠️ Deliberate local narrowing, declared: the repository-wide pnpm test
shards, pnpm type-check across every package, pnpm lint over the whole
workspace and pnpm test:dist are CI's runs and were not repeated here. The
workspace turbo run build above compiles every package with tsc, and the
tree 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

minor on @object-ui/types, with the breaking semantics spelled out in the
body. check-changeset-no-major is what forbids major here (this repository's
fixed group rides @objectstack's major), and minor is its verdict. The
disposition line is Clause-②: yes (narrowing), written into the changeset
body. ⚠️ Measured while writing it: this repository has no
check:adr-0087-registration gate — zero matches in scripts/ and
.github/, against a control of three changeset gates that do resolve — so the
line is carried per the ruling and the sibling repository's spelling, ⛔ not
because a local gate parses it.

⚠️ The limit this change does NOT close

The card recorded that its zero covered packages/** and apps/** only and
that 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 grep reads this repository's
tracked 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/types is
published, 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

  • Noted, ⛔ not filed. The published zod union AnyComponentSchema refuses
    all four AI spellings, including the three that ARE registered and rendered
    (ai-recommendations, ai-form-assist, nl-query — measured above, with a
    button control 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.
  • Noted, ⛔ not filed. check-readme-exports and check-dist-completeness
    both 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

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
@github-actions

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 1 pending changeset(s) describe a file this change touches

Their bodies publish verbatim into the CHANGELOG at the next release, so this is a request to re-read them against your diff — addressed here because you are the one seat that can answer it without re-deriving anything.

⛔ Nothing here blocks, and nothing here is a verdict on your change. This gate exits 0, is not a required context, and judges name resolution, never meaning: it asked whether a pending body names a file you touched. "Is this sentence still true?" is the one question it will not answer, and the one you are being asked to answer.

.changeset/6051-gantt-flat-config-declared-keys.md

  • names packages/types/src/index.ts → packages/types/src/index.ts — edited by this change

    GanttConfig itself gains nine members and is a published type, exported by name from packages/types/src/index.ts: lockField, objectField, summaryExtent, defaultCollapsedDepth, borderColorField, dependencyTypes, timeZone, exportFileName, interactions. The entry file's diff is empty only because the export list already named the type — the widening happened at the declaration.

Read the paragraph, not the line: both false halves of the objectui#8617 claim sat in one paragraph, and correcting either alone would have left it asserting the same wrong thing.

If a claim did go false, correct the body. That is precedented and prose-only, frontmatter untouched; check-changeset-overwrite.mjs will report the correction as its own case 2 ("correcting a declaration on purpose … legitimate"), which is the intended shape — one gate asks for the read, the other records the write.

Not covered, stated so nobody reads this as more: a claim that was born false (a changeset this change adds is excluded by construction), a claim spelled as a symbol or a package rather than a backticked file name, and a file named ambiguously.

Compared the checked-out tree with 53374dc07 (merge-base with origin/main): 4 file(s) changed outside .changeset/, read against 1102 pending declaration(s) that publish a body (1604 pending in total). · run

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3064.3 KB 3104.5 KB
Main entry chunk (gzip) 145.7 KB 350 KB
Entry file index-C-WAJ_Dt.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) 544.93KB 130.50KB
core (index.js) 8.94KB 3.59KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 215.98KB 59.97KB
fields (index.js) 249.35KB 62.93KB
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.22KB 2.26KB
i18n (pickLocalized.js) 9.86KB 3.95KB
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.83KB 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.99KB 14.24KB
plugin-charts (index.js) 71.33KB 19.90KB
plugin-chatbot (index.js) 195.34KB 46.51KB
plugin-dashboard (index.js) 131.44KB 34.65KB
plugin-designer (index.js) 215.94KB 44.33KB
plugin-detail (index.js) 252.65KB 65.65KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.71KB 34.16KB
plugin-gantt (index.js) 167.62KB 41.26KB
plugin-grid (index.js) 212.64KB 57.91KB
plugin-kanban (index.js) 46.63KB 14.53KB
plugin-list (index.js) 112.67KB 27.68KB
plugin-map (index.js) 21.48KB 6.99KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.41KB 11.93KB
plugin-timeline (index.js) 30.07KB 8.74KB
plugin-tree (index.js) 10.58KB 3.72KB
plugin-view (index.js) 84.89KB 20.96KB
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) 104.82KB 34.67KB
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) 4.11KB 2.06KB
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.04KB 5.36KB
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

hotlong commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

Served-tier: CONTRACT_REVIEW_TIER
Transcript reading: /root/.claude/projects/-home-user/ad6404ab-6ca0-56fb-a695-03e747dc4eeb/subagents/agent-a8a31a2b674d2d37a.jsonl (its first user record is this review's dispatch prompt, naming PR #9622 / objectui#8800) — every type:"assistant" record carries message.model = claude-fable-5-1 (78 of 78 at the time of writing, no other value). Not read from get_session, the model: input, or the system prompt.

Contract review

52bdbe331cfde7517cbe8579a56c8dbdf0ac0535

Inputs judged from: objectui#8800 (body + all 7 comments; the ruling is comment 5689196791, director batch #137 item 2, maintainer 「同意」 2026-09-15, letter A), PR #9622 (body, files, the one commit, check runs), the tree at the head sha in a fresh clone, and objectui#8178 (body + all 9 comments) for the pin this diff rewrites. The PR's fork point is 3ecc369bf (merge-base with the base ref); the real diff is the 5 files GitHub lists, 395+/86−. Every reading below was re-derived in that clone, not taken from the PR body.

① Derived judgments — each change to the accept set or public surface, against the ruling

The ruling authorises exactly: (i) the AIInsightsSchema declaration goes; (ii) its @object-ui/types barrel export goes; (iii) the objectui#8178 exclusion pin at ai-zero-read-members-retired-8178.test.ts :115 / :120 (Equal<…>) is rewritten by this ruling; (iv) B and C refused. Execution: changeset minor on @object-ui/types, BREAKING banner, ADR-0087 disposition line, spec-property-retirement shape as #8178.

# change in the diff ruled? verdict
1 packages/types/src/ai.ts: export interface AIInsightsSchema (and its type: 'ai-insights' discriminant, objectName, data, config, insights[], loading, autoRefresh, refreshInterval) deleted; a JSDoc tombstone stands in its place. One hunk, nothing else in the file moved. (i) right — verified on the built artifact (below). Narrows exactly the unit the ruling named, no more: AIFormAssistSchema, AIRecommendationsSchema, NLQuerySchema and the support types AIConfig / AIFieldSuggestion / AIRecommendationItem / NLQueryResult are byte-untouched, and each support type still has readers in ai.ts (5 / 3 / 3 / 3 occurrences), so nothing is orphaned by the removal.
2 packages/types/src/index.ts: AIInsightsSchema, removed from the export type { … } from './ai.js' block; a comment stands where it was. One hunk. (ii) right — the barrel is the published face; head dist/index.d.ts names the symbol 0 times (control AIRecommendationsSchema 1).
3 ai-zero-read-members-retired-8178.test.ts: the exclusion paragraph replaced and assertionInsightsObjectNameUntouched = Expect<Equal<import('../ai').AIInsightsSchema['objectName'], string | undefined>> removed. (iii) right, and exactly as narrow as ruled — see the pin question below.
4 New pin ai-insights-retired-8800.test.ts (two @ts-expect-error legs on ../ai and ../index, source-text matchers, tree-wide git grep census with exclusions listed beside their reasons, a premise leg on AnyComponentSchema, a zod-mirror structural leg). shape clause right — it changes no accept set and no public surface; it is the executable half of the tombstone. Both legs are in a real tsc program: tsc -p packages/types/tsconfig.test.json --listFiles lists the new pin (1) and the 8178 pin (1), control for a nonexistent file 0; pnpm --filter @object-ui/types type-check exit 0; vitest run on both pins 2 files / 16 tests pass. Tree-scoped with REPO_ROOT rooted at the file — the same shape three sibling pins in this directory already use (alert-dialog-footer-keys-refusal-7963, handler-keys-string-any-mirrors-7344, page-breadcrumbs-refusal-8871); this repo has no cross-package-test-inputs registry to declare a radius in.
5 .changeset/8800-retire-ai-insights.md execution clause judged under ② — level and package set right; one execution-line shortfall recorded there, non-blocking.

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 (git grep) finds AIInsightsSchema / ai-insights only in the five diff files plus the pending #8178 changeset's prose. No package transitively republishes @object-ui/types (export * from '@object-ui/types' / export type *: 0 hits under packages/*/src and apps/*/src), so @object-ui/types is the only published surface that moved.

Built-artifact readings (pnpm --filter @object-ui/types build, clean, exit 0 incl. check-dist-completeness, at the head and at the fork point in a second worktree):

reading on dist/**/*.d.ts base 3ecc369bf head 52bdbe331
interface AIInsightsSchema 1 0
member ^\s+type: 'ai-insights'; (anchored) 1 0
AIInsightsSchema in dist/index.d.ts re-export list 1 0
control interface AIRecommendationsSchema / member type: 'ai-recommendations'; / barrel 1 / 1 / 1 1 / 1 / 1
external-consumer probe (import type { AIInsightsSchema, AIRecommendationsSchema } from '<dist>/index.js', tsc outside the repo tsconfig) exit 0 exit 2, exactly one error: TS2305 has no exported member 'AIInsightsSchema'; the sibling import raised none

⚠️ For whoever re-greps dist later: a bare grep 'ai-insights' dist on the head scores 3 and AIInsightsSchema scores 2 — all four lines are inside the emitted tombstone JSDoc in dist/ai.d.ts (lines 516–575, every one leading with *), not declarations. The PR's "0 / 0 / 0" is the anchored reading and it holds. The ai.ts tombstone does travel into dist/ai.d.ts as the PR claims; the index.ts comment does not (comments inside an export list are not emitted) — the PR only claimed the former.

Deletion vs ?: never tombstone — judged, not assumed. Deletion is right here, and the tombstone convention does not require otherwise:

  • The ?: never tombstone is a member-level device, and objectui#8178 adopted it for a stated, member-specific reason: the three schemas extend BaseSchema, which carries [key: string]: any, so a deleted member is absorbed silently at any value and the ruling's compile-time-refusal pin was unsatisfiable by deletion. That reason has no analogue for a whole exported type — a module namespace has no index signature, and a missing export is a hard TS2305, measured above on both dist builds (error on head, clean on base).
  • The repo's whole-type precedent is objectui#4895 (blocks.ts): the family's interfaces were deleted outright, the module was kept as a comment tombstone (export {}), index.ts says the re-export block is "GONE, not emptied", and block-family-retired-4895.test.ts pins the names out. This diff has the same three parts (comment tombstone in ai.ts, "GONE from this block, not emptied out of it" at the barrel, executable pin). The one shape difference — the new pin deliberately omits finding(docs/types): content/docs/blocks/block-schema.mdx 教的整族 block 词汇表(含节点位置的 slot)没有任何 renderer #4895's runtime name in module leg — is correct, because AIInsightsSchema was export type only and that leg could not distinguish before from after; the pin says so.
  • The name-preserving alternative (export type AIInsightsSchema = never) would keep the symbol on the published .d.ts, contradicting the ruling's words "the declaration and its barrel export go" and the card's whole point (a .d.ts that lists only renderable node types). It would narrow less than ruled. What landed narrows neither more nor less than ruled.

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 3ecc369bf..52bdbe331: one hunk, lines 112–124, +21/−6 — the paragraph and the single Expect<Equal<…>> alias. Equal / Expect remain defined and used by the seven ?: never assertions (lines 94–100) and the three live-member controls (109–111); the seven tombstones, the suggestions/recommendations fixtures and the control describe blocks are byte-identical to base. That is objectui#8178's retirement left whole, and this is the only file of #8178's that the ruling reaches — the diff does not touch packages/plugin-ai/** or the #8178 changeset.

② Semver and changeset — verified on the built artifact

  • Level. '@object-ui/types': minor. Correct for this repository: check-changeset-no-major.mjs (AGENTS.md §版本号策略) refuses major because all 39 publishable packages sit in one fixed group pinned to @objectstack's major; breaking changes ship minor with the break spelled out in the body. The body carries the BREAKING banner, the FROM (import type { AIInsightsSchema } / { type: 'ai-insights', … }) → TO (nothing; delete the node), and the one-line fix, and names every removed member. The break is real on the published surface — TS2305 on the head dist, clean on the base dist, above. Ran at the head: check-changeset-no-major 0, check-changeset-presence 0, check-changeset-fixed 0, check-changeset-claims 0; CI Changeset Declaration, Changeset Bump Policy, Changeset Fixed Group Check all success.
  • Package set. @object-ui/types alone — correct: it is the only package whose dist/**.d.ts changed contents on the published face (no transitive export * of it anywhere; the fixed group carries the bump to the family regardless).
  • Disposition line — recorded, non-blocking. The ruling's execution line asks for "the BREAKING banner and the ADR-0087 disposition line". The changeset carries Clause-②: yes (narrowing) and the PR calls that the disposition line. In the only grammar that defines the term (objectstack check-adr-0087-registration.mjs, closed vocabulary unpublished | already-registered | no-migration-prescription | runtime-interface-only | type-surface-only, marker adr-0087:), the Clause-② line and the ADR-0087 disposition are two distinct markers that sit together; this body has the first and not the second. The honest marker for a TS-only type with no zod mirror and no objectstack ledger entry would be adr-0087: type-surface-only. I do not fail on it: this repository has no gate or ledger that reads the marker (measured — no check:adr-0087-registration script here), the ruling's other clause ("as objectui#8178 did") points at a precedent whose changeset carries no such marker either (nor does finding(docs/types): content/docs/blocks/block-schema.mdx 教的整族 block 词汇表(含节点位置的 slot)没有任何 renderer #4895's), and the impact itself is declared completely and correctly, which is what ② judges. A one-line addition to the body would close the gap.
  • Pending-record accuracy, non-blocking. .changeset/8178-ai-schemas-retire-zero-read-members.md (pending, will publish in the same release) still says of AIInsightsSchema.objectName: "A pin holds it at string | undefined so a later sweep … cannot take it quietly." This diff made that sentence false (the pin is gone by ruling). check-changeset-claims did not raise it because the paragraph names no file; the 8800 body in the same CHANGELOG states the pin was rewritten, so a reader is not misled about the surface, but the sentence is a WENT-FALSE claim of exactly the shape that gate exists for. A prose-only correction of that paragraph is precedented (check-changeset-overwrite case 2) and would not exceed the ruling, which governs the pin, not the prose. Recommended, not required for this verdict. (The one claim the re-read bot did flag, 6051 on packages/types/src/index.ts / GanttConfig, is still true: GanttConfig, remains exported at index.ts:434 and in dist/index.d.ts.)

③ Boundary flags — each answered or escalated

  1. Can an in-repo zero carry the retirement of a published exported type? Yes, here, and I say so as my own conclusion, not the PR's. The retirement's authority is the ruling, not the zero: the zero is a premise, and the decision memo the maintainer approved (comment 5673162572, 置信缺口) disclosed its limit in writing — downstream consumers outside the organisation, tenant metadata at rest, published tarballs — before 「同意」 was given, so the ruling was taken with the limit, not around it. Three things make the residual acceptable rather than merely disclosed: (a) the measurement seat went wider than the card's packages/** + apps/** — index grep, filesystem grep and GitHub code search across org:objectstack-ai, each with a lit control — and every instrument returned the declaration alone; (b) the only population that can be harmed is a TypeScript consumer that imports the type without ever rendering it, and what it receives is a compile-time TS2305 naming the symbol plus the FROM/TO in the shipped CHANGELOG — no silent behaviour change, no runtime document breaks, because the registry, the CLI validator and the published zod union (AnyComponentSchema.safeParse({type:'ai-insights'}) → false; control button → true, re-derived in the new pin) already refused the node before this diff; (c) this is the same evidential basis on which objectui#4895 and objectui#8178 retired published names — finding(docs/types): content/docs/blocks/block-schema.mdx 教的整族 block 词汇表(含节点位置的 slot)没有任何 renderer #4895's tombstone records that external consumption of this package is structurally unmeasurable even for a certainly-live control. The limit is carried in three durable places (the ai.ts tombstone, the changeset body, the pin header). Nothing to escalate.
  2. objectui#8410's spread-screen — answered by the measurement seat with a runtime reading, not inherited: SchemaRenderer resolves ComponentRegistry.get(schema.type) before any props spread, so an unregistered type never reaches the channel; the probe painted OBJUI-001 with hasLazy false. Wrong instrument for a type; closed.
  3. Forward-declaration intent — closed by the ruling (C refused); no artifact in history records such intent (single introducing commit 03c896df2a, no renderer file ever added).
  4. Zod mirror — none; re-derived structurally at the head (src/zod/ai.zod.ts absent, control views.zod.ts present) and pinned. The retirement has one face.
  5. dispatch-gates.mjs unavailable cross-repo — acceptable: the roster the PR hand-derived is this repo's own check:* set; I re-ran the build, the type-check chain, both pins and the four changeset gates at the head, and CI's 36 check runs cover the rest.
  6. Declared local narrowing (full test shards, workspace type-check, lint left to CI) — CI at this head: 30 success, 3 skipped, and Test (shard 1/4, 2/4, 4/4) still in_progress at the time of posting; Type Check, Lint, Build & E2E, README Export Check, Governed Surface Queue Guard (not governed) are success. A shard result cannot change this contract verdict: the head census scores zero references to the retired symbol outside the diff and the record, so no test anywhere can break on the name. The shards remain the landing seat's merge gate to read.
  7. needs:contract-review on the PR — present (labels: package: types, tests, needs:contract-review), so the governed-surface guard's PR-side carrier is in place. Not touched by this review.

Budget: rest_writes 1 (this comment); mcp_calls 0.

Implemented-by: claude/issue-8800-ai-insights-retire
Reviewed-by: session_01VCpmqvacV4BypY48QdoxcE

PASS


Generated by Claude Code

hotlong commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

清标 provenance —— 条款②双载体已剥,凭据在此

记录:PR 评论 5699394616 · 所判 head:52bdbe331cfde7517cbe8579a56c8dbdf0ac0535 · 裁决:PASS

逐字采纳,⛔ 未润色、未挑用。 这是这条路能成立的条件,不是客气话:出具裁决的是一个隔离的达档复核子代理,它只看到卡片、卡上裁决与本 PR —— ⛔ 没看到派发令、⛔ 没看到本席结论、⛔ 没看到开发报告。本席对它的产物只有两种权力:整体采纳,或整体作废。⛔ 没有第三种。

档位是本席独立量的,不是它自述的

复核件自述 78/78;本席不读自述,读它自己的 transcript。同一探针,收尾读数:

agent-a8a31a2b674d2d37a.jsonl  ·  type:"assistant" 的 message.model
→ claude-fable-5-1  ×88  (88/88,无杂值)

同题发火对照:同一探针扫本会话全部 12 个子代理 transcript,读出 claude-opus-5 ×8 与 claude-fable-5-1 ×3 两个值,分界与派发所传 model 完全重合。⇒ 仪器能分辨,这个单一值不是空转。对照全文在 objectui#8800 的读数记录里(裁决之前落的,免得读数跟着结论走)。

CONTRACT_REVIEW_TIER = claude-fable-5-1,逐字相等。

落地前检三条,逐条

闸门 读数
① 席内条款②复核 PASS 在案 上述记录,PASS
② 双载体机读 check-clause2-carriers.mjs --pair 9622 exit 0 —— 双肢一致、无放宽 tell、head 上有记录;其 C6-RECORD 行自己认出 5699394616 并读到 Served-tier: 名的是常量
③ 全部 check 全绿或在册跳过 head 上 36 个 check run:33 success / 3 skipped / 0 非绿 / 0 仍在跑

③ 的三个 skip 是手判的,并带对照 —— ⛔ 本席没有拿 check-expected-skips.mjs 去判:那个脚本带的是 objectstack 的工作流花名册,指向姊妹仓会静默答另一个仓的问题(objectstack#18454)。手判的读数:

  • Test (coverage)、那个 shard 名未插值的 coverage 分片 check(名字里带的是 workflow 里未展开的 matrix 表达式原文,这里不照抄——它与本文的时戳记号语法撞车,工具已当场拒过一次)、以及 dependabot —— 同三个在姊妹 PR refactor(types)!: retire ObjectKanbanSchema.allowCollapse on both faces (#8801) #9621 的 head 上同样 skipped(33/3,形状逐一相同),所以不是本 PR 的异常。
  • ⭐ 发火对照:在 main 的合并后提交 53374dc07a 上,Test (coverage) 出现两次,其中一次是 success。⇒ 这个名字并非恒 skip,PR 路径跳、合并路径跑,仪器能读出两个值。

⚠️ 复核件自己看到那一刻还有 3 个 test shard in_progress,并写明「不影响契约裁决」。本席不拿它那一刻的读数当交付读数:上表是清标前重取的,三个 shard 已完成且全绿。

复核件点名的两条非阻断后续,⛔ 不在本 PR 处理

它们不改变 PASS,也 ⛔ 不由本席顺手改 —— PM 不写代码,而且第二条动的是另一张卡的产物:

  1. 8800 changeset 体缺 adr-0087: 标记本身(现有的是 Clause-②: yes (narrowing))。⚠️ 但同样缺它的还有本仓两处先例(finding(types,plugin-ai): the three AI schemas carry six zero-read members (formId, objectName×3, fields, maxResults) plus a dead autoFill destructure — and the registry advertises five of them to the designer #8178 与 finding(docs/types): content/docs/blocks/block-schema.mdx 教的整族 block 词汇表(含节点位置的 slot)没有任何 renderer #4895 的 changeset),所以这是仓级约定缺口,不是本 PR 的缺陷。
  2. .changeset/8178-ai-schemas-retire-zero-read-members.md 里「A pin holds it at string | undefined」这句,被本 PR 改成了假话(该 pin 已按裁决重写)。check-changeset-claims 没抓到,因为那段不点名文件。

两条都另行立卡;⭐ 第 2 条有时间窗——它与本 PR 的 changeset 同一次发布(release PR #5400),窗口过了就进 CHANGELOG 定型,立卡时会写明。

— PM domain:spec · 清标时刻 2026-09-16T14:49Z


Generated by Claude Code

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

finding(types/plugin-ai): AIInsightsSchema is a declared node type that NOTHING registers — the ai-insights spelling has no renderer at all

2 participants