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

test(types): re-test the 16 @default keys objectui#8318 called unread — seven are live - #8718

Merged
os-warren merged 1 commit into
mainfrom
claude/issue-8318-jsdoc-default-renderer-retest
Sep 9, 2026
Merged

os-warren merged 1 commit into
mainfrom
claude/issue-8318-jsdoc-default-renderer-retest

Conversation

@os-warren

Copy link
Copy Markdown
Collaborator

Part of #8318

Draft. The primary deliverable of this card is the re-test, posted in full as a comment on #8318. This PR carries only what the re-test made pinnable. ⛔ No @default tag is edited or deleted, no type moves, no runtime behaviour changes — triage's ordering forbids acting on the classification until the re-test is complete, and its question 1 is reserved to the maintainer.

⚠️ Re-grade trigger — SEVEN of the 16 are live, and the classification is wrong

#8318 lists 16 keys as "no registered renderer reads the key at all", so that their published @default describes nothing that runs. The three-question re-test triage required — (a) stripped by SchemaRenderer? (b) rest-spread destructured and forwarded? (c) primitive consumes it? — finds seven of the 16 are read, each by a direct schema.KEY / action.KEY read:

member tag reader applies
ActionSchema.method 'POST' packages/core/src/actions/ActionRunner.ts:1787,1793 action.method || 'POST'
ActionSchema.chainMode 'sequential' ActionRunner.ts:1226 action.chainMode || 'sequential'
ActionSchema.reload true ActionRunner.ts:1618 (+ guard :1597) action.reload !== false
ActionSchema.close true ActionRunner.ts:1619 (+ guard :1597) action.close !== false
DetailSchema.showBack true packages/plugin-detail/src/DetailView.tsx:1009,1028 (schema.showBack ?? true)
DetailViewSchema.showBack true the same two sites (schema.showBack ?? true)
AppComponentSchema.layout "sidebar" packages/runner/src/LayoutRenderer.tsx:124 app.layout || 'sidebar'

Every one of these tags is correct. The card's error is duller than the spread channel that triage suspected: its sweep looked only inside packages/components/src/renderers/, and every reader above lives in a package it never opened — packages/plugin-detail, packages/runner, packages/core/src/actions.

⚠️ Two more are live with a wrong tag: DetailSchema.loading and DetailViewSchema.loading are read at DetailView.tsx:992 as if (loading || schema.loading), a bare disjunct — an omitted key renders no skeleton, so the effective default is false while the tag says true. That is a genuine #7735 instance hiding inside the population the card called referent-less. It is reported, ⛔ not fixed and ⛔ not pinned here: both candidate fixes (correct the tag, or give the reader the ?? true it promises) are somebody's ruling, and a pin on either side pre-empts it.

The remaining seven of the 16 had no reader the re-test could find. That is the input to the card's question 1, which is order-locked behind this measurement and ⛔ not answered here.

What this PR changes

One test file plus one changeset. packages/types/src/__tests__/layout-default-jsdoc-7361.test.ts grows from 8 pinned rows to 15, in its existing row-by-row style, both sides derived off disk so a row reddens if either the reader's fallback or the tag moves. Two extractions are negation-shaped (x !== false, where the applied default is the negation of the compared literal); two match at more than one site and the pin requires the sites to agree, because a fallback that disagrees with itself has no single value for @default to describe.

⛔ No general instrument was built — triage's ruling, and the shapes here confirm it: two of the seven are negation reads and one resolves through a second package's registration.

Ablations — every new row reddened, then restored

Each leg mutated the reader on disk, proved the bytes landed with a before/after grep -c on both the removed and injected anchors, ran the suite, restored with git checkout HEAD -- path, and proved the restore by comparing git hash-object against the HEAD blob and requiring git diff HEAD to be empty. A trap ... EXIT INT TERM covered the crash path. Baseline: Tests 49 passed (49).

ablation mutation result
row 8 action.method || 'POST' → 'PUT' (x2) exit 1 — 1 failed | 48 passed, row 8
row 9 action.chainMode || 'sequential' → 'parallel' exit 1 — 1 failed | 48 passed, row 9
row 10 result.reload = action.reload !== false; → !== true; exit 1 — 1 failed | 48 passed, row 10
row 11 result.close = action.close !== false; → !== true; exit 1 — 1 failed | 48 passed, row 11
rows 12-13 (schema.showBack ?? true) → ?? false (x2) exit 1 — 2 failed | 47 passed, both rows
row 14 app.layout || 'sidebar' → 'header' exit 1 — 1 failed | 48 passed, row 14
negative control schema.justify || 'start' → 'end' in flex.tsx exit 1 — the pre-existing FlexLayoutProps.justify control fires

The last leg is there because "the negative controls must keep firing" is a claim that has to be measured, not asserted: it shows the load-bearing control is still capable of failing rather than merely still green.

Gates, each with its exit code

gate exit note
pnpm exec vitest run packages/types/src/__tests__/layout-default-jsdoc-7361.test.ts 0 Test Files 1 passed, Tests 49 passed (49)
pnpm exec vitest run packages/types/ 0 Test Files 152 passed, Tests 2920 passed (2920)
pnpm --filter @object-ui/types type-check 0 runs tsc -p tsconfig.test.json; verified the new file is in that project with --listFiles (1 hit; control renderers/layout/card.tsx 0 hits)
pnpm --filter @object-ui/types lint 0 266 problems (0 errors, 266 warnings), all pre-existing no-explicit-any
node scripts/check-changeset-presence.mjs 0 empty-frontmatter changeset accepted as the explicit no-release declaration
pnpm check:control-bytes 0 6881 tracked text files; plus a direct grep -naP control-byte scan of both changed files (no match)
pnpm check:handler-key-reads 0 corroborates the crud-dialog half: run as a tree reader, not because the diff touches it
pnpm check 1, NOT MEASURED MODULE_NOT_FOUND on packages/cli/dist/cli.js — the CLI is unbuilt. This is the published app-validator command for user projects, not a repo gate, and it appears in no workflow. Not a failure reading.

All the green gates above are per-PR CI checks in this repo (ci.yml, lint.yml, control-bytes.yml, changeset-presence.yml, all on pull_request).

NOT MEASURED

  • (c) for CardSchema.variant beyond the DOM boundary. Measured: variant is not stripped, card.tsx:26-33 destructures and :46 forwards it, and packages/components/src/ui/card.tsx contains zero occurrences of variant (control: the same grep finds 5 in ui/alert.tsx) — Card destructures only className and spreads the rest onto a div. ⛔ Not measured: what a browser does with the resulting unknown DOM attribute. No test was rendered.
  • Runtime confirmation of the seven live rows. Every reading is static, off the source. No action was executed and no DetailView was mounted.
  • The reachability of ActionSchema (as opposed to ActionDef) at ActionRunner. The keys are name- and type-identical and packages/core/src/actions/actionKeys.ts records that stored metadata reaches runner.execute() unparsed, but that path was ⛔ not exercised here.
  • Whether the seven unread keys are dead or merely mis-tagged. That is the card's question 1 and it is not this PR's to answer.
  • CI convergence. Reported at draft-PR time.

维护者速读(草稿)

改了什么 — 只加了一个测试文件的 7 行 pin 和一个空 changeset。没有改任何 @default 标签、类型或运行时行为。

为什么改 — #8318 说有 16 个键「没有任何注册渲染器读它」,所以它们发布的 @default 描述的东西不存在。重测发现其中 7 个其实被读,而且读的正是标签写的那个值;另外 2 个也被读,但标签是错的。原来那次普查只扫了 packages/components/src/renderers/,漏掉了 plugin-detail / runner / core/actions 三个包。

风险与代价 — 近乎为零:只加测试。回滚就是 revert 这一个 commit。代价是这 7 行 pin 从此会因为读侧或标签任一侧移动而变红 —— 那正是它存在的理由。

席位意见 — (待评审填写)

你要做的 — 决定 #8318 的定级(重测证伪了它的核心分类,派发席说这触发 p1),以及 DetailSchema.loading / DetailViewSchema.loading 那两个错标签怎么修(改标签为 false,还是给读侧补上 ?? true 这个行为变更)。

🤖 Generated with Claude Code

https://claude.ai/code/session_01Jmxdo7bmeqCQHLSfmLVX9w


Generated by Claude Code

…d as unread

objectui#8318 classified 16 of objectui#7735's 41 de-defaulted keys as having
no registered renderer that reads them, so that their JSDoc `@default`
describes nothing that runs. Triage (comment 5582715445) required a
three-question re-test of all 16 before anything acts on that: is the key
stripped by `SchemaRenderer`, does the registering renderer forward the
rest-spread, does the primitive consume it.

The re-test finds SEVEN of the 16 are read, each applying exactly the value its
tag publishes: `ActionSchema.method` / `.chainMode` / `.reload` / `.close` in
`ActionRunner`, `DetailSchema.showBack` and `DetailViewSchema.showBack` in
`plugin-detail`'s `DetailView` (both node types register onto it), and
`AppComponentSchema.layout` in `@object-ui/runner`'s `LayoutRenderer`. The
original sweep looked only inside `packages/components/src/renderers/`; every
reader above is a direct `schema.KEY` read in a package it never opened.

Each row derives both sides off disk in this file's existing style, so it turns
red if either the reader's fallback or the tag moves. Two extractions are
negation-shaped (`x !== false`) and two match in more than one place, where the
pin also requires the sites to agree.

Nothing about the published surface changes: no `@default` is edited or
deleted, which triage's ordering forbids until the re-test is complete and
which its question 1 reserves to the maintainer.

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

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3478.5 KB 3512.7 KB
Main entry chunk (gzip) 143.9 KB 350 KB
Entry file index-Dn8hEYKx.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) 15.67KB 5.75KB
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) 499.42KB 114.32KB
core (index.js) 7.48KB 2.96KB
create-plugin (index.js) 10.12KB 3.28KB
data-objectstack (index.js) 198.39KB 55.29KB
fields (index.js) 244.36KB 61.61KB
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) 6.57KB 2.76KB
i18n (index.js) 3.65KB 1.47KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
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.94KB
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) 15.16KB 3.68KB
plugin-calendar (index.js) 49.00KB 13.91KB
plugin-charts (index.js) 71.39KB 19.92KB
plugin-chatbot (index.js) 194.53KB 46.34KB
plugin-dashboard (index.js) 131.43KB 34.44KB
plugin-designer (index.js) 215.51KB 44.29KB
plugin-detail (index.js) 251.39KB 65.04KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 134.16KB 33.47KB
plugin-gantt (index.js) 167.16KB 40.99KB
plugin-grid (index.js) 208.18KB 56.62KB
plugin-kanban (index.js) 55.44KB 15.73KB
plugin-list (index.js) 112.73KB 27.69KB
plugin-map (index.js) 20.49KB 6.83KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.42KB 11.92KB
plugin-timeline (index.js) 30.10KB 8.74KB
plugin-tree (index.js) 9.33KB 3.25KB
plugin-view (index.js) 84.54KB 20.84KB
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) 81.07KB 26.86KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 2.32KB 1.24KB
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.55KB 2.45KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 13.64KB 4.59KB
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

@os-warren
os-warren marked this pull request as ready for review September 9, 2026 01:17
@os-warren
os-warren added this pull request to the merge queue Sep 9, 2026
Merged via the queue into main with commit a9bc029 Sep 9, 2026
35 checks passed
@os-warren
os-warren deleted the claude/issue-8318-jsdoc-default-renderer-retest branch September 9, 2026 01:34
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.

2 participants