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

fix(cli): objectui check prints the refused key and path, and never calls an unvalidated file passed (objectui#11007) - #11053

Merged
objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-11007-check-prints-key
Sep 29, 2026
Merged

objectstack-fleet[bot] merged 3 commits into
mainfrom
claude/issue-11007-check-prints-key

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #11007

Clause-②: no

domain:ui seat 2, branch claude/issue-11007-check-prints-key, session https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec. Placeholders are spelled in capitals (FILE) because GitHub strips tag-shaped text from a body.

What this changes

objectui check recognises a JSON file in one of two ways: a structural root key (children, className, …) admits it without parsing it, or the whole document validates. Measured on origin/main at bf7ab35ce before this change, with the card's two documents:

  • A root object-map whose map block carries latitudeFieId was listed under "did not validate" as map.json (type "object-map"). The validator's issue was already in hand from the recognising parse, and was dropped.
  • The same node under a page's children was admitted on children and never parsed. The run ended ✓ All checks passed. No exit call in either run.

Per the triage ruling (both halves, narrowly):

  • (a) Each "did not validate" entry now carries one indented line: the first issue's path, spelled by the formatter behind objectui validate's Path: line, and its message, with the issue count when there is more than one. For the card's root case it reads Issue at map: Unrecognized key: "latitudeFieId". It reuses the issues of the parse the recogniser already ran. Skipped (foreign) files still get no diagnosis.
  • (b) The no-error close is a tally: ObjectUI schema files: V validated, S recognised but not validated, U did not validate. This sweep is advisory; run objectui validate FILE for a verdict. Nothing reads as a pass. The parse-error close (Found N errors, exit 1) is untouched.
  • No nested walk in check. A structurally admitted file is still not parsed, and a pin holds that boundary: a later walk turns it red.
  • Exit codes do not move.

Surface beyond the claim's file list, and why

  • packages/cli/src/utils/issue-path.ts (new, formatIssuePath), and validate.ts switched to it. The suggested route said to reuse validate's formatter rather than copy it. It was an inline ternary with no export, so it moved into one helper that both commands call. validate's output is byte-identical: same expression, and its three suites are green below.
  • A comment in validate.ts and the header of utils/union-arm-diagnostics.ts each said validate is "the repository's only zod-issue printer". This change makes that false, so both now say what check prints (one first-issue line, no arm selection).
  • Three pending changesets get an appended dated note. Their existing text and declarations are unchanged. Each would otherwise publish a sentence this change makes false, in the same release: 7004-cli-union-arm-selection.md (check "has no zod-issue printer"), 7694-chart-series-chart-type-alias-refusal.md ("without the issue") and 6475-gantt-block-face-declared.md ("without naming the missing field"). The shape follows the 2026-09-25 dated notes (objectui#10524) on the same files. check-changeset-overwrite reports the three as modified, with declarations unchanged (report-only).

Closing text pinned next to an exit code. The order asked for this to be reported, not acted on. Four existing tests asserted All checks passed beside their exit-code assertion: check-jsonc-parse (two), check-schema-marker and check-validity-recogniser. check-known-types used the same line as its "not a failure" signal. Each text assertion now reads the tally through closingLine(...). Every exit-code assertion is unchanged.

Tests

packages/cli/src/__tests__/check-first-issue-11007.test.ts, 8 tests:

  • The root typo prints the refused key and the path map.
  • A two-segment first-issue path prints as map → zoom.
  • The issue count appears when there is more than one issue.
  • There is still one entry per file.
  • The nested typo is not reported as passed: no printed line matches /pass/i, the tally is 0 / 1 / 0, and there is no exit call.
  • Each bucket is counted apart.
  • The parse-error close is unchanged.
  • There is no nested walk: a broken page and a clean page are counted the same, while safeValidateSchema tells them apart.

Expected text comes from describeFirstIssue and closingLine, fed with real safeValidateSchema issues. The assertions pin the subject (key, path, counts), not the wording.

Ablations. Each was one-shot, run on the committed tree at 762723318 through objectstack's scripts/ablation-replace.mjs. Each restore was proven: the blob equals HEAD and git diff HEAD is empty. No permanent test was added.

  • i. Drop the first-issue print: 4 failed, 48 passed. The four first-issue pins failed.
  • ii. Put the old pass line back at the call site: 8 failed, 44 passed, across all five files. That is the five updated sibling assertions plus the three new close pins. The first attempt was a no-op: the tool refused before running because the replacement contained its anchor. It was rerun with a different anchor.
  • iii. Parse structurally admitted files (a nested walk): 1 failed, 51 passed. Only the no-walk pin failed.

Gates, all at 762723318 (the final commit)

  • pnpm exec vitest run packages/cli/ → Test Files 22 passed (22), Tests 302 passed (302). The base has 21 files.
  • pnpm --filter @object-ui/types build → exit 0. That is the only workspace package the CLI's source imports (@object-ui/types/zod); the other @object-ui/* hits are template strings.
  • pnpm --filter @object-ui/cli type-check (tsc --noEmit) → exit 0. --listFiles includes the new test, issue-path.ts and check.ts.
  • pnpm --filter @object-ui/cli build, then pnpm check (the repo-tree run lint.yml makes) → exit 0. Output is below.
  • eslint, run the way the package lint script runs it (eslint src in packages/cli, inline config honoured): 48 files, 0 errors, 5 warnings. All five are no-explicit-any in untouched files. eslint.config.js enables no type-aware linting (no parserOptions, no type-checked preset), so this diff cannot move any untouched file's verdict.
  • Changeset and byte gates: check-changeset-presence ✅ (1 added), check-changeset-no-major ✅, check-control-bytes ✅, check-new-line-citations 0 new, check-pending-changeset-literals ✅.
  • check-changeset-claims is report-only. It names two pending changesets that mention touched files: 6320 (the ignore list in check.ts) and 7658 (headings in cli.mdx). Both still hold.
  • Other gates: check-test-path-roots ✅, check-unreferenced-sources ✅, check-doc-fences ✅, check-doc-types ✅, check-spec-symbols ✅, check-doc-example-ids ✅, check-doc-example-readers ✅, check-doc-links ✅.
  • NOT MEASURED: check:doc-examples and check:doc-snippets. Their prerequisite is not met: they need a scoped build of 34 packages. This diff adds no TypeScript block to any document; its one new fence is text. CI runs both.

pnpm check on this tree (FILE stands for the placeholder the command prints):

Object UI Schema Check
Analyzing 633 files...
⚠️ 1 file carries a registered ObjectUI component type but did not validate as an ObjectUI schema:
   packages/vscode-extension/schemas/objectui-schema.json (type "object")
     Issue at type: Invalid input
   Run `objectui validate FILE` on any of them for the full diagnosis.
   Either the document is off-spec, or its component type is not modelled by @object-ui/types.
   These are NOT counted as skipped: a schema that fails validation is a broken schema, not a foreign file.
Skipped 46 files with a root "type" that no ObjectUI recogniser admitted.
  A file is checked when its root carries an ObjectUI structural key: body, children, className, style, placeholder, visible, visibleWhen, visibleOn, hidden, hiddenOn, disabled, disabledOn, testId, ariaLabel.
  It is also checked when the whole document validates as an ObjectUI component schema.
ObjectUI schema files: 265 validated, 167 recognised but not validated, 1 did not validate. This sweep is advisory; run `objectui validate FILE` for a verdict.

Acceptance notes

None of these was filed.

  • A document whose type selects no arm gets the bare message. Its first issue is the discriminator's Issue at type: Invalid input. The only hit on this tree is packages/vscode-extension/schemas/objectui-schema.json, a JSON Schema document with "type": "object", which is the bucket's known false positive. objectui validate adds its "No arm accepts type" note from arm selection, which the ruling keeps out of check. This is polish.
  • content/docs/plugins/plugin-chatbot.mdx says check "passes" a structurally admitted chatbot document. It still exits 0 but no longer prints a pass line. Left as is.
  • YAML files are counted but never read. They appear in Analyzing N files..., as before and as the source already states. The tally counts JSON only.

Generated by Claude Code

…alls an unvalidated file passed

`check` recognises a JSON file either by a structural root key or by the
whole document validating. For a file refused by both arms whose root
`type` is registered, it listed the file and its type but threw away the
validator's issue it already held, so a root `object-map` with a mistyped
`map` key was listed without the key. A file admitted on a structural key
(`children`, `className`, ...) is never parsed, yet the run closed with
"All checks passed" over it, a nested refused key included.

- Each "did not validate" entry now carries one indented line: the first
  issue's path, spelled the way `objectui validate` prints it, and its
  message, with the issue count when there is more than one.
- The no-error close is now a tally: validated, recognised but not
  validated, did not validate, and a pointer to `objectui validate` for a
  verdict. Nothing reads as a pass. The exit code does not move.
- The path spelling moves into `utils/issue-path.ts` (`formatIssuePath`),
  shared by `validate` and `check`, so the two cannot drift. `validate`'s
  output is byte-identical.
- No nested walk is added to `check`; a pin holds that boundary.

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
…eset and dated notes

- `content/docs/utilities/cli.mdx`: the `objectui check` section says that a
  file admitted by a structural key is not parsed, shows the first-issue line
  under a file that did not validate, and describes the closing tally.
- `.changeset/11007-check-prints-key.md`: `@object-ui/cli` patch.
- Dated notes on three pending changesets whose sentences this change makes
  false: `check` listing a file "without the issue" / "without naming the
  missing field", and `check` having no zod-issue printer. Each note is
  appended; the existing text and declarations are unchanged.

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation tests package: cli labels Sep 29, 2026
@github-actions

github-actions Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 6 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/6169-chatbot-authoring-face-type.md

  • names content/docs/plugins/plugin-chatbot.mdx → content/docs/plugins/plugin-chatbot.mdx — edited by this change

    Out of scope, deliberately: the chatbot-enhanced and chatbot-floating registrations' own anonymous intersections (different key sets, a decision for a separate card in the same family), and the surface row on content/docs/plugins/plugin-chatbot.mdx's Properties table, which names a key no registration in this package currently reads (filed separately).

.changeset/6320-check-nested-dist-ignore.md

  • names packages/cli/src/commands/check.ts → packages/cli/src/commands/check.ts — edited by this change

    packages/cli/src/commands/check.ts passed ignore: ['node_modules/**', 'dist/**', '.git/**'] to globSync. glob matches ignore patterns against the path relative to cwd, so an unanchored dist/** / node_modules/** excludes only a directory of that name at the scan root — every nested packages/ANGLE-BRACKETS(name)/dist/, examples/ANGLE-BRACKETS(name)/dist/, apps/ANGLE-BRACKETS(name)/dist/ (and their node_modules/) was still scanned. In a built workspace this means objectui check re-reads the author's own schemas a second time from build output, roughly doubling every count it reports (measured on this repository: 617 → 1047 files globbed after a full build) with nothing in the output explaining why.

.changeset/6687-chatbot-surface-authorable.md

  • names content/docs/plugins/plugin-chatbot.mdx → content/docs/plugins/plugin-chatbot.mdx — edited by this change

    content/docs/plugins/plugin-chatbot.mdx's Properties table listed surface ('card' | 'plain', "bordered panel or a frameless full-page workspace"), but the key had zero read points: none of the three ComponentRegistry.register('chatbot*', ...) sites in renderer.tsx forwarded it, and ChatbotSchema did not declare it. surface was real only as a prop of the React component — ChatbotEnhanced.tsx defines ChatbotSurface, defaults it to 'card', and branches six layout decisions off isPlainSurface — so it was reachable by a hand-written React host and by nobody writing metadata. An author who wrote surface: 'plain' got the 'card' default, with no error and no signal.

.changeset/7295-chat-message-avatar-keys.md

  • names content/docs/plugins/plugin-chatbot.mdx → content/docs/plugins/plugin-chatbot.mdx — edited by this change

    Same precedent as CheckboxSchema.wrapperClass (b74a8598d) and the objectui#6150 batch. RuntimeOnlyMessageKeys in plugin-chatbot is untouched; SeamChatMessage inherits the two keys through its ChatMessage half. The three example blocks on content/docs/plugins/plugin-chatbot.mdx that PR docs(guides,plugins,tooling): clear three .mdx pages off the doc-snippet ledger (#5174 batch 5) #7294 left unannotated (supportChat, salesBot, multiAgentChat) are annotated ChatbotSchema again.

.changeset/7658-toc-code-span-anchor-parity.md

  • names content/docs/utilities/cli.mdx → content/docs/utilities/cli.mdx — edited by this change

    Seven live headings in this repo's own docs were affected (content/docs/utilities/cli.mdx, content/docs/utilities/runner.mdx, packages/cli/README.md). Pinned against the real render pipeline rather than a second derivation of the slug rules: the new test renders each heading through MarkdownImpl and compares extractToc's id to the id attribute rehype-slug actually emitted.

.changeset/7703-chatbot-dark-keys-retired.md

  • names content/docs/plugins/plugin-chatbot.mdx → content/docs/plugins/plugin-chatbot.mdx — edited by this change

    content/docs/plugins/plugin-chatbot.mdx gains the restatement of the six removed keys with their replacements (5f4514f7b: a control is restated, never deleted into a vacuum), and its three present-tense claims that the chatbot-floating props spread is still unfiltered are corrected to what PR fix(plugin-chatbot): fence chatbot-floating's raw props spread #8077 actually left behind.

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 born-false claim that spells no line address at all (objectui#9495 coordinated one by ORDINAL — "a grep finds that member first" — and deciding that means reading what the sentence means), a claim spelled as a symbol or a package rather than a backticked file name, and a file named ambiguously.

Angle-bracketed names in the quoted prose above are rewritten as ANGLE-BRACKETS(name): GitHub deletes tag-shaped fragments from a stored body, and a quote that silently loses the identifier it is about is worse than a visible repair.

Compared the checked-out tree with 30f912a0d (merge-base with origin/main): 11 file(s) changed outside .changeset/, read against 1724 pending declaration(s) that publish a body (2328 pending in total). · run

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 330 chunks) 3106.0 KB 3149.4 KB
Main entry chunk (gzip) 149.4 KB 350 KB
Entry file index-CmuSBnQR.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.72KB 6.21KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.17KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.70KB 10.94KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
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) 27.13KB 7.95KB
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) 558.92KB 133.97KB
core (index.js) 9.94KB 3.94KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 227.99KB 63.22KB
fields (index.js) 261.01KB 66.28KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.24KB 2.27KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.40KB 12.91KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.35KB 9.18KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 39.32KB 11.09KB
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) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.58KB 4.90KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.25KB 2.17KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
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) 16.01KB 3.93KB
plugin-calendar (index.js) 52.02KB 14.87KB
plugin-charts (index.js) 84.09KB 22.93KB
plugin-chatbot (index.js) 198.22KB 46.97KB
plugin-dashboard (index.js) 137.56KB 36.67KB
plugin-designer (index.js) 215.78KB 44.42KB
plugin-detail (index.js) 233.49KB 61.79KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 165.60KB 42.64KB
plugin-gantt (index.js) 170.35KB 42.19KB
plugin-grid (index.js) 228.33KB 62.59KB
plugin-kanban (index.js) 48.43KB 15.11KB
plugin-list (index.js) 115.86KB 28.64KB
plugin-map (index.js) 22.90KB 7.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.04KB 12.21KB
plugin-timeline (index.js) 31.07KB 9.15KB
plugin-tree (index.js) 11.21KB 3.89KB
plugin-view (index.js) 89.59KB 22.47KB
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.81KB 3.58KB
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) 119.16KB 39.05KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.03KB 1.86KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.78KB 2.09KB
sdui-parser (codegen.js) 7.50KB 3.05KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 6.16KB 2.71KB
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.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 19.75KB 6.81KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 3.83KB 1.49KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 3.19KB 1.62KB
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.26KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
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) 19.30KB 6.99KB
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

… structurally admitted file

The row ended "so `check` passes it". `objectui check` no longer prints a
pass line: it counts such a file as recognised but not validated and exits
0, and the refusal is `objectui validate`'s. Only that clause changes.

Claude-Session: https://claude.ai/code/session_011p7ikEivgXefNDaE5S5Uec
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 330 chunks) 3106.0 KB 3149.4 KB
Main entry chunk (gzip) 149.4 KB 350 KB
Entry file index-Dkcj9rvA.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.72KB 6.21KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.17KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.70KB 10.94KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
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) 27.13KB 7.95KB
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) 558.92KB 133.97KB
core (index.js) 9.94KB 3.94KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 227.99KB 63.22KB
fields (index.js) 261.01KB 66.28KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.24KB 2.27KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.40KB 12.91KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.35KB 9.18KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 39.32KB 11.09KB
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) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.58KB 4.90KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.25KB 2.17KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
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) 16.01KB 3.93KB
plugin-calendar (index.js) 52.02KB 14.87KB
plugin-charts (index.js) 84.09KB 22.93KB
plugin-chatbot (index.js) 198.22KB 46.97KB
plugin-dashboard (index.js) 137.56KB 36.67KB
plugin-designer (index.js) 215.78KB 44.42KB
plugin-detail (index.js) 233.54KB 61.80KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 165.60KB 42.64KB
plugin-gantt (index.js) 170.35KB 42.19KB
plugin-grid (index.js) 228.33KB 62.59KB
plugin-kanban (index.js) 48.43KB 15.11KB
plugin-list (index.js) 115.86KB 28.64KB
plugin-map (index.js) 22.90KB 7.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.04KB 12.21KB
plugin-timeline (index.js) 31.07KB 9.15KB
plugin-tree (index.js) 11.21KB 3.89KB
plugin-view (index.js) 89.75KB 22.52KB
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.81KB 3.58KB
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) 119.16KB 39.05KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.03KB 1.86KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.78KB 2.09KB
sdui-parser (codegen.js) 7.50KB 3.05KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 6.16KB 2.71KB
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.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 19.75KB 6.81KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 3.83KB 1.49KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 3.19KB 1.62KB
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.26KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
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) 19.30KB 6.99KB
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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ec76dbd6293157671d0cce4feb85403b3144e726
Local-runs: none

Inputs read: card #11007 (body, triage 5874776380, claim 5883978206, os-dev-report 5884653989, seat amendment 5884670769, patch-round os-dev-report 5884756353), PR #11053 (body, 15-file list, net diff against main at bf7ab35ce), the head's latest check-runs, and check.ts, validate.ts, issue-path.ts, packages/cli/package.json, packages/cli/src/index.ts, content/docs/utilities/cli.mdx and the three pending changesets read at the head or the base for context.

① Derived judgments

  1. Accept set: unchanged — right. recogniseObjectUiSchemaFile keeps isObjectUiSchemaFile's predicate and order (structural key first, then safeValidateSchema); the recognised/refused split, the isUnvalidatedCandidate bucket, the skipped count and the unknown-type warning arm (reached for recognised files only, as the old else if did) are byte-for-byte the same decisions. OBJECTUI_STRUCTURAL_KEYS is untouched. No file moves between buckets.
  2. Exit codes: unchanged — right. The only process.exit(1) is still the errors GT 0 branch on unreadable JSON; the tally is printed on the errors === 0 branch where the pass line was. Pinned (keeps the parse-error close as it was, and exitCodes asserted [] on every advisory case).
  3. Half (a), the first-issue line — right and within the ruling. One indented line under each "did not validate" entry: Issue at PATH: MESSAGE, or First of N issues at PATH: MESSAGE when there is more than one, from recognition.issues, the issues of the parse the validity arm already ran. Printed for the candidate bucket only; skipped (foreign) files still get no diagnosis, which is the flood guard changeset 7004 states. No union-arm selection. The hint line moved from "for the reason" to "for the full diagnosis", which is now true.
  4. Half (b), the closing line — right. closingLine prints ObjectUI schema files: V validated, S recognised but not validated, U did not validate. plus the advisory pointer to objectui validate FILE. No word in it reads as a pass; the pin filters every printed line on /pass/i and requires none. Files with no root type (a tsconfig.json) sit in no bucket and the line reads 0 / 0 / 0, which the updated check-jsonc-parse pin states.
  5. No nested walk — right, and pinned. The structural arm still returns { recognised: true, validated: false } without parsing. check-first-issue-11007 holds a broken page and a clean page to the same tally while proving safeValidateSchema tells them apart, so a later walk turns that test red and sends its author to the ruling.
  6. objectui validate output: byte-identical — right. Diffing validate.ts base against head: path.length GT 0 ? path.join(' → ') : '(root)' over issue.path ?? [] is exactly formatIssuePath(issue.path), and the where line for arm notes is the same expression over line.path. Two comment blocks change, no printed byte does.
  7. Public surface of @object-ui/cli: nothing moves — right. package.json exports has the . subpath only, to dist/index.js; src/index.ts re-exports serve and init and never check. The new named exports on commands/check.ts (closingLine, describeFirstIssue, CheckTally) and the new utils/issue-path.ts are reachable by relative import inside the package only. No new exported symbol on an index, no new accepted key or value.
  8. Docs — right. content/docs/utilities/cli.mdx gains the two-ways-in paragraph, the first-issue description, a text fence whose Issue at map: Unrecognized key: "latitudeFieId" matches the card's measured message, and the tally paragraph; its "for the reason" sentence is corrected. The page never quoted the old closing line at the base (the only "All checks passed" sites in the tree were check.ts and the five check-* tests, all rewritten here; no skill, README or other doc carries it). content/docs/plugins/plugin-chatbot.mdx requestBody row now says check counts the file as recognised but not validated and exits 0 while objectui validate delivers the refusal, which is what the head does.
  9. Three pending changesets — right, additions only. 7004, 7694 and 6475 each gain one dated 2026-09-29 note; frontmatter and declarations are unchanged (hunks are pure insertions inside the body). The shape follows the 2026-09-25 objectui#10524 dated notes already present on 7694 and 6475 at the base. Each note corrects a sentence this PR makes false ("has no zod-issue printer", "without the issue", "without naming the missing field") and restates what still holds (no structural-arm parse, exit non-zero on unreadable JSON only).
  10. Tests — right. New packages/cli/src/__tests__/check-first-issue-11007.test.ts (8 tests, fixtures under os.tmpdir()): root typo prints the key and the path map off the issue line (file named stores.json so the path cannot come from the name); a two-segment path; the count; one entry per file; nested typo not reported as passed with tally 0 / 1 / 0; buckets counted apart; parse-error close unchanged; no-walk pin. Expected text is derived from describeFirstIssue / closingLine, but each assertion also holds the subject by hand (the key, formatIssuePath(['map']), the counts, the absence of /pass/i), so the pins are not tautologies. The five sibling updates replace the pass-line text assertion with closingLine(...) and leave every exit-code assertion as it was.

② Semver level

.changeset/11007-check-prints-key.md: '@object-ui/cli': patch, one changeset, check-changeset-presence and Changeset Bump Policy green. Right. A bug fix in a released package takes patch; the act widens no index export and no accepted key or value (①.1, ①.7), so nothing raises it to minor. The body states the accept set, the exit codes and validate's output as unchanged, which ①.1, ①.2 and ①.6 confirm. The three edited pending changesets are corrections of someone else's pending notes (route 0 class) landed together with this PR's own route-1 changeset; the written confirmation naming each note and what changed under it is the seat amendment 5884670769 on the card, restated in ①.9 here on the PR; Changeset Overwrite Report and Changeset Declaration are green.

The PR body's declaration line reads Clause-②: no, and the claim's reads the same. Right. No new key on a published payload, no accept-set widening or narrowing; an advisory command's printed text changes.

③ Boundary flags

  • open_questions[0] (keep the beyond-claim files, or split): answered on the card by the seat amendment 5884670769, option A, which widened the claim's file surface to issue-path.ts, validate.ts, union-arm-diagnostics.ts, the three dated notes and one plugin-chatbot.mdx sentence; the patch-round report 5884756353 lands that sentence at this head. Each addition is verified above (①.6, ①.8, ①.9). Closed.
  • Deviation: shared formatter issue-path.ts and validate.ts switched to it — answered by the amendment; ①.6 verifies byte-identical output. Closed.
  • Deviation: header comments in validate.ts and union-arm-diagnostics.ts — answered by the amendment; the new wording ("the two share nothing but formatIssuePath", "no arm selection in check") matches the code at the head. Closed.
  • Deviation: dated notes on three pending changesets owned by other cards — answered by the amendment; ①.9 and ② cover the shape, the unchanged declarations and the route-0 confirmation. Closed.
  • Deviation: ablation ii first attempt was a refused no-op, rerun — reporting only; the check-runs, not the dev's ablations, are the gate verdicts here. Nothing to answer.
  • Deviation: closing-text assertions beside exit-code assertions rewritten — inside the claim's own surface ("the existing check-* tests whose asserted text changes"); the diff shows every exitCodes assertion unchanged. Closed.
  • Claim's "Stop on breach" against the role file's fix-what-you-falsify rule — the dev named the conflict instead of resolving it silently, and the amendment resolved it. Closed.
  • out_of_scope: a document whose type selects no arm prints the bare Issue at type: Invalid input — consistent with the ruling that keeps arm selection out of check; objectui validate carries the "no arm accepts" note. Stands as noted, not escalated.
  • out_of_scope: plugin-chatbot.mdx "so check passes it" — the amendment moved it into scope and the patch round fixed it; verified in the diff. Closed.
  • out_of_scope: YAML files are globbed and counted but never read — pre-existing, stated in the source before this change, and outside this card ("not a generalisation"). Stands as noted; a card of its own if the maintainer wants YAML read.
  • NOT MEASURED locally: check:doc-examples, check:doc-snippets — covered by the head's Doc Snippet Type Check and Build Docs runs (see the check-run line below).

Check-runs on the head (latest per name, read with filter=latest, after waiting for the in-flight ones to finish): 43 runs — 40 success, 3 skipped (dependabot, Test (coverage), Test (coverage shard)), 0 failure, 0 pending at the time of this record. Green among them: Type Check, Lint, Test and Test (shard 1/8) through Test (shard 8/8), Test (dist pins), Build & E2E, Build Docs, Doc Snippet Type Check, Doc Component Type Check, Doc Fence Language Check, Doc Example Id Check, Internal Docs Link Check, Changeset Bump Policy, Changeset Declaration, Changeset Overwrite Report, Changeset Claim Re-read, Changeset Fixed Group Check, Control Byte Scan, Line Citation Gate, Governed Surface Queue Guard, Spec Main Shape Gate, README Export Check, Bundle Analysis, Skill Example Check, Skill Guide Path Check, Skill Eval Token Check, Inert vi.mock Specifier Check, Pre-Install Import Graph Check, Shell Escape Residue Scan, Action Ref Convention, Docs Route Eager Closure Check, Live E2E (informational), label. At the first read (06:17Z) 13 of these were still in_progress (Type Check, Build Docs, Lint, Doc Snippet Type Check, Spec Main Shape Gate and the eight test shards) and the Test aggregate had not yet appeared; all completed green before this record was rendered. Nothing is pending.

Implemented-by: claude/issue-11007-check-prints-key
Reviewed-by: session_011p7ikEivgXefNDaE5S5Uec

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review September 29, 2026 06:56
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Sep 29, 2026
Merged via the queue into main with commit 37a19d4 Sep 29, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-11007-check-prints-key branch September 29, 2026 07:11
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Oct 7, 2026
… evaluates (objectui#4795) (objectstack-ai#11126)

Fixes objectstack-ai#4795
Clause-②: yes — `objectui check` newly refuses `${…}` in the four closed
keys where `expressionBindableTextKeysFor(type)` excludes the key, as
ruled (`5406135987`, `5479466110`). The PR waits as a draft for the
director seat's contract review.

Ruling item 2 of objectstack-ai#4795 (maintainer, 2026-08-31, comment `5479466110`),
built in `objectui check` as ruled. Draft for the director seat's
contract review.

## The repository's own `pnpm check`: red in round 1, resolved by the
seat's answer A

`.github/workflows/lint.yml` runs `pnpm check` on this repository (step
"Verify the CLI's own check command passes on this repository").
Measured with the CLI built from each tree:

| tree | `pnpm check` exit | refusals | warnings |
|:--|:--|:--|:--|
| `main` `d1e683fa1` (no gate) | 0 | 0 | 0 |
| round 1, `ed32e7c6b` | 1 | 1 | 0 |
| this branch, `c985c4d7d` | 0 | 0 | 0 |

**The round-1 refusal.** It was
`examples/schema-catalog/src/schemas/plugin-editor/javascript-editor.json`:
a root `code-editor` whose `value` was a JavaScript sample using
template literals. That is literal content, not a misplaced expression,
and it had no mechanical channel move.

**The fix.** The seat chose A under ruling `5479466110`: 「no-row types
included」, and 「A row can always be added later with a named need + its
own measurement」. The sample now builds the same strings by
concatenation. Run, it still logs `Hello, Developer!` and returns
`Welcome, Developer`.

**Nothing pinned the old content.** No test, snapshot or docs fence
reproduces it:

- the catalog registers the file by import;
- `safe-validate-corpus-6318.test.ts` asserts only that it validates;
- `catalog-gallery-render.test.tsx` skips it, because Monaco cannot load
under happy-dom;
- `plugin-editor.mdx` embeds it by id through `SchemaExample`.

The run's closing tally is the same as on `main`: `265 validated, 167
recognised but not validated, 1 did not validate`.

## What it does

`findUnbindableTextExpressions` (new,
`packages/cli/src/utils/unbindable-text-expressions.ts`), called by
`check` on every recognised file, from either recognition arm:

- **The rule.** Each of the four keys `EXPRESSION_BINDABLE_TEXT_KEYS` on
a component node is judged against
`expressionBindableTextKeysFor(type)`. Both are imported from
`@objectstack/spec/ui`: the vocabulary and the carriage map are
consumed, not copied.
- **Component nodes (sub-rule i).** The document root, plus every node
`children` holds (an array or a single node), recursively. A root of
type `page` is not judged itself, because its `title` is a page key; its
`children` still are.
- **Expression.** The evaluator's own interpolation pattern, as
`ExpressionEvaluator.evaluate` matches it. A lone `${` or an empty `${}`
is not an expression there, so it is not one here.
- **Refusal vs warning (sub-rule ii).** A registered type (the
`isKnownSchemaType` universe) is refused: a red `x Unevaluated
expression in FILE at PATH: …` line plus a channel line, and it counts
toward the run's `Found N errors`, so the exit code is 1. A type no
registered component answers to gets a yellow `⚠️ Expression not judged
in …` line, and the run still passes.
- **Message.** It follows the `describeFirstIssue` shape objectui#11007
/ PR objectstack-ai#11053 gave `check`. The path is spelled by `formatIssuePath`, the
formatter `objectui validate` prints with. It names the key, the path,
the type, the keys that type does evaluate, and the channels
`SchemaRenderer` evaluates: the type's own evaluated keys, `content`,
`properties.KEY` (evaluated, then hoisted onto the node), or resolving
the value in the host.

`@objectstack/spec` becomes a declared dependency of `@object-ui/cli` at
`^17.1.0`. That is the range `@object-ui/react` declares, and
`@object-ui/react` is the runtime consumer of the same lookup. The
lockfile gains only the importer entry, which resolves the installed
version.

Docs: `content/docs/utilities/cli.mdx` gains the rule, the two sub-rules
and the real output. It also says a refused expression now fails the
run, where the page used to say only unreadable JSON did, and that a
literal `${…}` has no escape spelling (the changeset says so too).
Changeset: `@object-ui/cli` minor.

## Premises re-derived on `main` `d1e683fa1`

1. **Spec floor and carriage map.** The lockfile carries a single
`@objectstack/spec`, and the installed
`node_modules/@objectstack/spec/package.json` reads 17.4.0. It exports
both symbols. Its answers: `statistic` gives `label` / `value` /
`description`; `card` gives `title` / `description`; `button` gives
`label`; `text`, `action:button`, `ui:card` and `page` give the empty
set. `check:spec-floors` fetched the declared-floor tarball and passed:
the CLI artifact's two `./ui` symbols are present at the floor. Nothing
here depends on 17.5.0.
2. **Type keying.** The evaluation memo in `SchemaRenderer` calls
`expressionBindableTextKeysFor(typeof newSchema.type === 'string' ?
newSchema.type : '')`, verbatim, with no prefix stripping. The comment
"keys on the bare registry name" describes the spec map's keys; it does
not describe a normalization. The gate passes `node.type` verbatim.
- **Measured once through the real `SchemaRenderer` (at `e2f8e48d9`; the
gate's code is unchanged since):** every one of the 649 registered types
was rendered with the four keys set to `${data.total}`. On every type,
the keys it left unevaluated equalled the gate's refusals, 0
disagreements. The types it evaluated anything on were exactly those
with a row.
- **Not committed, for one reason:** a CLI test importing
`@object-ui/react` turns the CLI's generated-source allowance for that
dependency stale in `check:unused-deps` (`DECLARED_WITHOUT_IMPORT`).
That ledger is outside this claim's file surface.
- **What is committed instead:** the unit-tier table. It pins the gate
against the verbatim lookup on every registered type, and derives the
namespaced spellings a prefix-stripping gate would get wrong. The
runtime half stays pinned by the `@object-ui/react` suite
`SchemaRenderer.bindableTextKeys.test.tsx` ("a namespaced spelling is
not silently normalized").
3. **Sub-rule (i) premise: holds.**
- `SchemaRenderer` does not recurse on its own. Each renderer hands keys
back through `renderChildren` / `renderNodeSlot` / a direct
`SchemaRenderer`.
- A form's `fields[]` entries are rendered by the form's
`renderFieldComponent` (field widgets under `field:*`), never through
`SchemaRenderer`.
   - `check` judged the root only before this change.
- The walk follows `children` alone. That is the one composition key
`BaseSchema` declares, and the same single spelling core's
`validateChildren` and the SDUI parser's `CHILD_LIST_KEY` follow.
- Census of the recognised corpus: objects with a string `type` that are
not nodes sit under `form` `fields[]`, `filter-builder` `fields[]`,
`grid` `columns[]`, `dashboard` `widgets[]` / `globalFilters[]`, and
even `object-grid`'s `columns[].summary` (`{ "type": "count_unique" }`)
and `selection` (`{ "type": "multiple" }`). A walk over every typed
object would judge all of them.
4. **Corpus.** See the table above: one offender in round 1, not
mechanical. It was resolved in round 2 by rewriting the sample, the
seat's answer A.
5. **Sub-rule (ii).** Pinned: `stat-card` warns and the run passes.
`text.value`, `action:button.label`, `card.label` and `ui:card.title`
are refused. `statistic.value`, `card.title` and `button.label` pass.
6. **Message format.** See above.
7. **PR objectstack-ai#11069.** Not read from and not edited toward. The second of the
two to land merges `main`.

## Tests

-
`packages/cli/src/__tests__/check-unbindable-text-expression-4795.test.ts`
(unit tier, 28 tests). Expected text is derived from the command's own
formatters, fed from the gate's real findings. It covers:
  - the refusals, with the key, path, type, channels and exit code;
  - the passes, including a lone `${` and an empty `${}`;
- the walk through `children` (array and single node) and multiple
refusals per file;
- the page-root `title` exclusion, with the page's children still
judged;
- the form-field `label` non-refusal, with a control: the same object
under `children` IS refused;
  - the `stat-card` warning;
  - validity-arm files judged and unrecognised files not;
  - the verbatim-lookup agreement table over every registered type.
- Whole package, `pnpm exec vitest run packages/cli/` at `c985c4d7d`,
under the verify lock: `Test Files 23 passed (23)`, `Tests 330 passed
(330)`.
- The catalog the rewritten sample lives in, `pnpm exec vitest run
examples/schema-catalog/` at `c985c4d7d`, under the verify lock: `Test
Files 34 passed (34)`, `Tests 2199 passed (2199)`. Within it,
`safe-validate-corpus-6318.test.ts` passes
`plugin-editor/javascript-editor validates unchanged`.

## Ablations

Each direction was predicted before the run. Mutations went through
`ablation-replace.mjs`: in each run the anchor went 1 to 0, the marker 0
to 1, and the restore proved blob == HEAD with `git diff HEAD` empty.
All three were re-run on `ed32e7c6b`. Round 2 touched neither the gate
nor its tests, so these readings stand.

1. **Refusal removed** (severity forced to `warning`). Predicted: the
refusal pins go red. Observed: `15 failed | 13 passed`. The passes, the
page-root exclusion, the `stat-card` warning and the unrecognised-file
pins stayed green.
2. **Walk widened** to every object with a string `type`. Predicted:
only the form-field pin goes red. Observed: exactly that, `1 failed | 27
passed`, and the failure prints the refusal at `fields → 0 → label`.
3. **Namespace stripped** before the lookup. Predicted: the two
agreement cases and `ui:card.title` go red. Observed: 5 red, those 3
plus `action:button.label` and "refuses every offending node".
`action:button` strips to `button`, which has a `label` row. The
direction matched the prediction, with two more reds than predicted,
both explained.

## Gates (exit codes; at `c985c4d7d` unless noted)

Heavy runs (builds, test suites, `pnpm check`, the doc compile gates,
`check:node-esm-load`) went through the shared verify lock in round 2.

- **CLI package:** `type-check` 0 · `lint` 0 (0 errors; 5 warnings, all
in files this PR does not touch) · tests 0 (above).
- **Repo check:** `pnpm check` **0**: 0 refusals, 0 warnings.
- **Changesets:** `check-changeset-presence` 0 ·
`check-changeset-no-major` 0 · `check-changeset-overwrite` 0 ·
`check-changeset-fixed` 0 · `check:changeset-claims` 0 (report-only; it
names the same five pending changesets as round 1, and none is falsified
by this diff) · `check:pending-changeset-literals` 0.
- **Bytes and citations:** `check:control-bytes` 0 ·
`check:new-line-citations` 0.
- **Dependencies and lockfile:** `check:phantom-deps` 0 ·
`check:unused-deps` 0 · `check:lockfile-integrity` 0 ·
`check:lockfile-dedupe` 0. At `ed32e7c6b` (round 2 moved no manifest and
no CLI source): `check:spec-floors` 0 · `check:installed-pin-claims` 0 ·
`check:esm-specifiers` 0 · `check:spec-symbols` 0 · `check:self-import`
0.
- **Docs:** `check:doc-snippets` 0 (681 of 681 blocks) ·
`check:doc-examples` 0 · `check-doc-component-types` 0 ·
`check-prompt-component-keys` 0 · `check-doc-example-ids` 0 ·
`check-doc-fence-languages` 0 · `check-doc-links` 0 ·
`check-doc-expression-carriage` 0 (report-only) ·
`toc-anchor-parity.test.tsx` 15 passed.
- **Test shape and dist, at `ed32e7c6b`** (round 2 touched no source or
test file): `check-lint-coverage` 0 · `check:test-path-roots` 0 ·
`check:vi-mock-*` (three) 0 · `type-check:coverage` 0 ·
`check:unreferenced-sources` 0 · `check:dist-completeness` 0 ·
`check:published-dist` 0 · `check:shell-escape-residue` 0.
- **Governed surface:** `check-governed-queue-guard --test` over the
eight paths: NOT GOVERNED · `check:governed-queue-guard` self-test 0 (at
`ed32e7c6b`).
- **`check:node-esm-load`: 1, left to CI.** Under the lock at
`c985c4d7d`, it again refused `@object-ui/auth` and
`@object-ui/react-runtime` on provenance: the turbo cache is shared
across worktrees and replayed another tree's build. The `@object-ui/cli`
entry was among the 32 graded loads. CI builds fresh.

## Acceptance notes

- **Known limitation: no escape spelling.**
- A literal `${…}` in a closed key of a type with no carriage row is
refused, and nothing lets it through. That covers a code sample in a
`code-editor` `value` and shell `${VAR}` text.
- A carve-out for literal content is a spec-first decision, reopened on
the first named user need. None is built here, and there is no local key
list.
- The docs page and the changeset say this. This repository's own sample
was the only measured instance, and the runtime dev diagnostic already
reported it.
- **Walk boundary.** Nodes a renderer reaches through a key of its own
are not walked: `trigger`, `header`, `footer`, a page's
`regions[].components[]`, a tab's `items[].content`, `panels[].content`
and carousel `items`. No declaration of per-renderer node slots exists
to derive them from. The boundary fails quiet in the safe direction: it
never produces a false refusal.
- **Keys outside the four** (e.g. `badge.text`) are not judged.
`5479466110` set item 2's scope to the carriage map, which narrows
`5406135987`'s "any key outside that closed list". The `props`-envelope
blank render is outside that scope too.
- **`check` reads `.json` only.** `.yaml` / `.yml` are globbed and never
read, as `check.ts` already stated.
- **Two rulings meet in `check.ts`.** The objectui#11007 triage ruling
declined a nested *validation* walk in `check`. Its pin "no nested walk
of its own" stays green, because this walk validates nothing and reads
only the four keys. Named here so the reviewer sees both rulings.
- **The channel line says "evaluated", not "read back".** It mirrors the
runtime diagnostic's vocabulary (objectui#7849). For `text.value`, which
`TextSchema` retired and whose renderer reads `content` alone,
`properties.value` is evaluated and hoisted but not rendered. The seat
kept this wording (answer A, one vocabulary with the runtime
diagnostic); the contract review may still choose B, which would be a
one-line change in `workingChannels`.
- **Runtime agreement.** The real `SchemaRenderer` was measured once
over all 649 registered types, with 0 disagreements. The committed pins
are the two verbatim-lookup halves. The seat chose not to add the DOM
suite (answer A), so the CLI's `@object-ui/react` allowance in
`check:unused-deps` is untouched.

Session: `https://claude.ai/code/session_012UwY3ahMixEFkfTUxMVkYm`

---
_Generated by [Claude
Code](https://claude.ai/code/session_012UwY3ahMixEFkfTUxMVkYm)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation Improvements or additions to documentation package: cli tests

Projects

None yet

2 participants