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

fix(cli): retire create, lint, test and studio, commands that could only fail; correct four residues to what the commands do (objectui#11500) - #11508

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-11500-retire-failing-cli-commands
Oct 2, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/issue-11500-retire-failing-cli-commands

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #11500

Clause-②: yes

What

Triage ruled (comment 5960445419) that four commands of the published objectui bin retire, and that four noted residues ride in the same PR as one-line corrections, each to what the command does. This PR:

  • removes create, lint, test and studio from packages/cli/src/cli.ts, and deletes commands/create-plugin.ts, commands/lint.ts, commands/test.ts and commands/studio.ts. plugin was the only type create accepted, so create goes whole. Nothing else imported the four modules, and they read nothing under utils/, so no other code goes. SCAFFOLD_DEV_DEPENDENCIES names neither ESLint nor Vitest, so it is untouched;
  • corrects the four residues (doctor, serve in the docs, analyze without dist/, init with an unknown template);
  • drops the four commands' sections from content/docs/utilities/cli.mdx and packages/cli/README.md, and names the plugin initializer in cli.mdx;
  • adds the pins in packages/cli/src/__tests__/cli-bin.test.ts, all run through the built dist/cli.js;
  • adds .changeset/11500-retire-cli-create-lint-test-studio.md (@object-ui/cli minor, BREAKING banner, one FROM to TO line per retired command, one line per residue, a Clause-② line).

No refusal code was needed. On the BASE build, commander already refuses any command the program does not declare: objectui bogus exits 1 with error: unknown command 'bogus'.

Measured: BASE fcdc8ec91 build against the HEAD build

One run per row, each in a fresh temp directory, on the built bin. Placeholders are spelled in capitals, because GitHub strips angle-bracket shapes from a saved body.

Run BASE HEAD
create plugin x exit 1, Cannot find module on create-plugin/dist/index.js at the worktree ROOT (one directory too high); nothing written exit 1, error: unknown command 'create'; nothing written
lint exit 1, "No Object UI application found" exit 1, error: unknown command 'lint'
test exit 1, the same precondition error exit 1, error: unknown command 'test'
studio run from a temp dir, it found this checkout's apps/console through its own dist path and started that app's Vite dev server; timeout stopped it and nothing was left running exit 1, error: unknown command 'studio'
analyze, no dist/ a warning, then "Analysis complete", exit 0 Error: No dist/ directory to analyze. Run objectui build first. on stderr, exit 1
init app -t nope exit 1, Unknown template: nope, and an empty app/ left behind exit 1, the same error, nothing written
doctor --help "Diagnose and fix common issues". doctor writes nothing and prints no Node line "Diagnose common project setup issues (reports only, changes nothing)"

The plugin initializer, measured before it was written

packages/create-plugin/package.json names @object-ui/create-plugin with one bin, create-plugin. It is not private, it is in the release's fixed group, and npm answers 17.6.0 for it. The bin takes [plugin-name], -d, --description and -a, --author. In a temp directory, npm create @object-ui/plugin probe-widget installed @object-ui/create-plugin@17.6.0 and ran create-plugin probe-widget. Under a pseudo-terminal, taking each prompt's default, it wrote packages/plugin-probe-widget/ (8 files) and exited 0. So cli.mdx now carries a short "Scaffolding a plugin" section with npm create @object-ui/plugin my-awesome-widget and a link to the Create Plugin page, which says where to run it. No dependency was added.

Contract notes

  • The accept set narrows (Clause-② yes). The published objectui bin refuses what it used to accept:

    • FROM objectui create plugin NAME (exit 1, generator not found) TO exit 1 with error: unknown command 'create', nothing written. The replacement is npm create @object-ui/plugin NAME.
    • FROM objectui lint and objectui test (exit 1 on every run, a setup error reported as findings) TO the unknown-command error. The replacement is the project's own ESLint and Vitest.
    • FROM objectui studio TO the unknown-command error. There is no published replacement; contributors run pnpm --filter console dev in the monorepo.
    • FROM objectui analyze with no dist/ exiting 0 TO exiting 1.

    There is no alias, no deprecation window and no silent accept.

  • Unchanged. init with a known template writes the same file map (pinned byte for byte by "writes exactly the file map buildInitFiles returns, byte for byte"). analyze over a dist/ prints the same report. doctor's checks and output are untouched; only its help line moves. No exported symbol of @object-ui/cli moves: src/index.ts exports serve and init, and init's signature is unchanged.

  • validate and check are not edited. Draft PR objectui#11069 owns them. In the README, only studio and create plugin NAME leave the heading that also names check, doctor and analyze. Four untouched lines separate that hunk from objectui#11069's validate hunk. In cli.mdx, no hunk touches the validate or check sections.

  • Two edits beyond the sections, both naming retired commands: the README tagline and the cli.mdx intro sentence each listed lint and test. Both now say scaffold, develop, build and validate, as the package's own description already does.

Pins

All in cli-bin.test.ts, run through the built dist/cli.js:

  1. The objectui#11496 enumeration pin, "lists exactly the declared commands, no more and no fewer": SUBCOMMANDS loses create, lint, test and studio.
  2. "the retired create, lint, test and studio commands are refused (objectui#11500)": four rows. Each one exits non-zero, its stderr contains unknown command 'NAME', and the temp directory stays empty. The control is g page Probe in the same directory, which writes pages/probe.json. These runs empty PATH. Run from inside a checkout, the BASE studio started the console dev server. With no PATH, a retired command that came back fails at its first external tool (at BASE, /bin/sh: 1: pnpm: not found), and the stderr assertion still turns red.
  3. "doctor --help does not claim to fix anything (objectui#11500)": it asserts the kind of claim, not the wording, as the existing check --help pin does.
  4. "exits non-zero without dist/, and claims no analysis (objectui#11500)".
  5. "refuses an unknown template before creating the directory (objectui#11500)". The control is init probe-app -t simple in the same directory, which writes probe-app/app.json.
  6. The serve row of the flag-contract table gains --no-open, a docs-alignment pin that is green at BASE by design. The lint and test rows go.

Reverse verification

Predictions were written down before each leg. In each leg, the mutation is a git checkout COMMIT -- PATH, proven on disk by blob hash. The CLI is then rebuilt, a marker is read from dist/, and cli-bin.test.ts runs. An EXIT/INT/TERM trap restores from HEAD and proves the restore by blob hash, an empty git diff HEAD and an empty porcelain.

  • BASE leg. cli.ts, analyze.ts, init.ts and the four deleted modules at fcdc8ec91, with the pins at HEAD a20223743. Blobs on disk equalled BASE: 004165f17300, 63659c0b30c9, ad7bde24bfcc, e8438188bbc5, 613605f90d07, 48db26298d9a, 5039e918e38e. dist/ carried the studio marker and the old doctor text, twice each. Predicted 8 red. Observed Tests 8 failed | 40 passed (48): the enumeration pin, the four refusals, doctor, analyze and init. The serve row stayed green, as predicted.
  • Restore-one leg. HEAD plus studio alone: its module from BASE, and its import and command block re-inserted into cli.ts, each counted once on disk. Predicted 2 red. Observed Tests 2 failed | 46 passed (48): the enumeration pin and the studio refusal. The six other new pins read green here, which also shows dist/ was rebuilt from this leg's sources.
  • Restore. The tree equals HEAD a20223743 (blobs ec9d879fdc20, fb81635c05cb, ab62a52b5efd; the four modules absent), and the CLI was rebuilt. The four BASE markers count 0 in dist/, and HEAD's doctor text counts 2, as a positive control.

Local gates, at HEAD a20223743

  • pnpm exec vitest run over packages/cli/src/__tests__/ in full, plus every test that names a retired command, create-plugin, cli.mdx or the CLI README, plus the scripts/__tests__ readers of the CLI tree: Test Files 39 passed (39), Tests 658 passed (658). The 14 files beyond the CLI suite: toc-anchor-parity.test.tsx, nested-page-children-11223.test.ts, both create-plugin suites, and spawned-build-vitest-env-8598, check-doc-snippet-emitted-census, doc-version-claims, package-files-exist, one-authority-per-exported-name-6273, check-published-tsconfig-tooling-exclude, body-dialect-census, body-dialect-producer-scan and check-test-path-roots. Four other scripts/__tests__ hits on the names lint and test are file stems and workflow job names, not the CLI.
  • pnpm --filter @object-ui/cli type-check exit 0 (its tsconfig includes src/**/*, and --listFiles lists cli-bin.test.ts); pnpm --filter @object-ui/cli build exit 0.
  • docs:check-links "Links are valid across 17 scan roots." · check:doc-fences OK · check:readme-exports OK · markdown-test-inputs.mjs --audit "115 candidate test files, all adjudicated" · check:control-bytes OK · check:new-line-citations "0 new citation(s)" · check-changeset-presence.mjs "8 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s)" · changeset:check "No changeset declares a major bump." · check:changeset-claims report-only, see Acceptance notes · check:pending-changeset-literals "No test source names a pending changeset." · check:test-path-roots, check:unused-deps, check:phantom-deps, check:doc-types, check:doc-example-ids, check:shell-escape-residue, check:unreferenced-sources and check:vi-mock-specifiers OK · check:doc-snippets "Every covered documentation snippet compiles against the built types." · check:doc-examples OK · pnpm check "287 validated … 0 did not validate". The README and snippet gates ran after a scoped build of their package closure; before it they answered PRECONDITION NOT MET, which is not a verdict.
  • ESLint over all of packages/cli/src, the population CI's eslint src lints for this package: 47 files in the JSON output, equal to the 47 tracked .ts files there. 0 errors. 5 warnings, all in three files this diff does not touch. Type-aware linting is off (tseslint.configs.recommended, no projectService), and no rule in eslint-rules/ reads the disk, so the verdicts of untouched files cannot move.
  • scripts/check-governed-queue-guard.mjs --test over the 11 paths: NOT GOVERNED.

The full pnpm test and the repo-wide lint are left to CI.

Acceptance notes

  • Governed rows this PR leaves to the skills lane. skills/objectui/guides/project-setup.md's CLI table still lists the retired commands. These rows are cited by content, because a line address in a body is the banned cross-file form:
    • the row reading objectui studio / "Visual UI editor"; carrier: seat → objectui#11503
    • the row reading objectui lint / "Lint generated app code (ESLint)"; carrier: seat → objectui#11503
    • the row reading objectui test / "Run app tests (Vitest)"; carrier: seat → objectui#11503
    • the row reading objectui create plugin / "Scaffold a new plugin"; carrier: seat → objectui#11503
  • Residue sizes. analyze: two lines become one throw. doctor: one help line in cli.ts and one sentence in cli.mdx. serve: one docs line. init: one statement hoisted, which is one line added (const files = buildInitFiles(…) above the mkdirSync) and the loop header collapsed from three lines to one, plus a corrected comment. The old comment's "Unknown templates still throw here, before the first write" was false, because the directory was created first.
  • What analyze prints without dist/. Its two header lines still print on stdout before the error. The error is on stderr, and "Analysis complete" no longer prints.
  • check:changeset-claims flagged two pending changesets naming files this PR touches. Both were re-read, and both stay true. 7658-toc-code-span-anchor-parity.md describes, in the past tense, headings its own change fixed. 7694-chart-series-chart-type-alias-refusal.md names objectui validate in cli.ts, which this PR does not touch.
  • Observed, not filed (no declared contract is violated; carrier: none):
    • doctor exits 0 even with an error-level finding. At BASE, in an empty directory, it printed x package.json not found and Found 2 issue(s)., and exited 0. Nothing documents its exit code.
    • The published @object-ui/create-plugin@17.6.0, run with a non-TTY stdin, prints its second prompt and exits 0 with nothing written. objectui#8786's fix is on main but unreleased: the published bin contains no isTTY check. It ships with the next release.
    • packages/plugin-markdown/src/toc-anchor-parity.test.tsx's LIVE_SHAPES still names the objectui add COMPONENT heading as live, with where naming cli.mdx and the README. Since objectui#11496 that heading exists in neither file, and after this PR neither does objectui create plugin NAME. The test hard-codes the heading strings and reads no file, so it stays green; only its where is stale.

Implemented by the dispatched domain:ui seat 1 dev agent; PM session https://claude.ai/code/session_01YLg8XqWGJ785fwQ5v4pH37.


Generated by Claude Code

claude added 2 commits October 2, 2026 20:54
… could only fail; correct four residues to what the commands do (objectui#11500)

`create plugin NAME` resolved its generator one directory too high and
never found it; `plugin` was `create`'s only type, so `create` goes whole
and the docs name the package's own initializer,
`npm create @object-ui/plugin NAME`. `lint` / `test` ran ESLint / Vitest
in the temp app `dev` generates, which declares neither toolchain.
`studio` launched this monorepo's console, not the local project. The
built CLI now refuses all four as unknown commands.

Residues, one correction each: `analyze` with no `dist/` exits non-zero
instead of printing "Analysis complete"; `init NAME -t UNKNOWN` refuses
the template before creating the directory; `doctor`'s help and docs
stop promising a fix and a Node check it does not do; the docs stop
saying `serve` lacks `--no-open`.

Claude-Session: https://claude.ai/code/session_01YLg8XqWGJ785fwQ5v4pH37
Co-authored-by: Claude <noreply@anthropic.com>
…al (objectui#11500)

`doc-version-claims` flags a version stated on a doc surface that nothing
re-derives. The doctor line names the checks, not a major.

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

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 2 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/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.

  • names packages/cli/README.md → packages/cli/README.md — 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/7694-chart-series-chart-type-alias-refusal.md

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

    • Before: series: [{ name: 'revenue', chartType: 'line' }] validated green through @object-ui/types/zod (safeValidateSchema, objectui check / objectui validate, any pipeline that keeps parse()'s output) — and the key was gone from the output, so a consumer of the parse result drew that series in the chart's own family, precisely what the author was overriding. On the TypeScript face the key was merely an excess property on a fresh literal; a widened object carrying it assigned structurally. - After: the same document REFUSES at series[i].chartType (issue code invalid_type) with one message on both channels — the parse-time issue and the .describe() metadata: Unrecognized key(s) on this chart series: \chartType`. Did you mean `chartType` → `type`? …followed by the reason and the remedy. Writetype: 'bar' | 'line' | 'area'. On the TypeScript face ChartDataSeries.chartTypeis a?: nevertombstone, so both the fresh literal and the widened assignment aretsc errors. - **Both written** ({ type: 'bar', chartType: 'line' }) is refused at chartTypealone — the key is not folded ontotypeand no precedence is minted between the two spellings. - **Which documents to scan.** The narrowing does not stop atChartDataSeriesSchema; it reaches every document through the parents that embed it — ChartSchema.series (zod/data-display.zod.ts, z.array(ChartDataSeriesSchema)) and, one level further out, ReportSectionSchema.chart (zod/reports.zod.ts, ChartSchema.optional()). Authors meet it through safeValidateSchema() (zod/index.zod.ts, which parses AnyComponentSchema) and through the CLI's objectui validate command (packages/cli/src/cli.ts). In practice: every chartnode'sseries[], and every report section whose chart` carries one.

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.

Compared the checked-out tree with fcdc8ec91 (merge-base with origin/main): 10 file(s) changed outside .changeset/, read against 2048 pending declaration(s) that publish a body (2677 pending in total). · run

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 330 chunks) 3551.2 KB 3574.6 KB
Main entry chunk (gzip) 150.3 KB 350 KB
Entry file index-BAZRp0td.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.88KB 6.25KB
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.11KB 7.97KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.28KB 2.60KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.50KB 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) 571.80KB 136.98KB
core (index.js) 10.00KB 3.96KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 230.46KB 63.94KB
fields (index.js) 261.51KB 66.22KB
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.35KB 12.88KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.49KB 9.23KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 39.47KB 11.25KB
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.86KB 5.00KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.52KB 2.26KB
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.04KB 3.92KB
plugin-calendar (index.js) 53.17KB 15.46KB
plugin-charts (index.js) 83.53KB 22.84KB
plugin-chatbot (index.js) 198.22KB 46.97KB
plugin-dashboard (index.js) 142.20KB 38.29KB
plugin-designer (index.js) 231.28KB 48.76KB
plugin-detail (index.js) 245.43KB 64.53KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 172.73KB 44.50KB
plugin-gantt (index.js) 179.16KB 45.06KB
plugin-grid (index.js) 233.13KB 63.89KB
plugin-kanban (index.js) 49.51KB 15.54KB
plugin-list (index.js) 116.63KB 28.97KB
plugin-map (index.js) 25.60KB 8.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.04KB 12.21KB
plugin-timeline (index.js) 38.80KB 11.71KB
plugin-tree (index.js) 14.51KB 5.15KB
plugin-view (index.js) 90.23KB 22.73KB
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) 120.63KB 39.56KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.50KB 1.99KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 6.06KB 2.68KB
sdui-parser (input-type.js) 2.84KB 1.40KB
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) 21.42KB 7.05KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (authoring-nodes.js) 0.20KB 0.19KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 4.14KB 1.96KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (dashboard-widget-layout.js) 2.06KB 0.96KB
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) 5.07KB 2.39KB
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) 4.99KB 1.96KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.93KB 7.25KB
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: a20223743cba4e8962bed892a5b06fe166afa799
Local-runs: none
Rendered: 2026-10-02T21:37Z

PR objectui#11508 (card objectui#11500), judged against triage's ruling 5960445419 (retire create plugin, lint / test and studio; the four noted residues as one-line corrections, each to what the command does; refusal pins plus the objectui#11496 enumeration pin), on the family's precedents: PR objectui#11499's record 5959693747, PR objectui#11495's 5958276867 and PR objectui#11487's 5957439389. Read for this record: the card body and all four comments on it (the ruling, the claim 5961116498, the dev report 5961579588 read as a claim to test, and the seat's ACCEPT 5961728905 read the same way); the PR body and its 11-file list; the net diff of the head against main (merge-base fcdc8ec91..head, +140 / −406 over .changeset/11500-retire-cli-create-lint-test-studio.md, content/docs/utilities/cli.mdx, packages/cli/README.md, packages/cli/src/__tests__/cli-bin.test.ts, packages/cli/src/cli.ts, packages/cli/src/commands/analyze.ts, packages/cli/src/commands/init.ts, and the deleted commands/create-plugin.ts, lint.ts, studio.ts, test.ts; main has since moved one commit to 9d9ed5495, PR objectui#11502, whose diff over packages/cli touches only utils/known-schema-types.ts and registered-types-validate-ratchet-10859.test.ts, and the three-dot diff against current main is byte-identical to the merge-base diff); and the check-runs on the head, read twice more than a minute apart, the set complete at both reads. Nothing was built, run or re-run locally: the head's tree is read with git show / git grep against the fetched ref, the dev's reverse-verification legs are read as reported, and the head's own check-runs are the gate verdicts. Placeholders are spelled in capitals (NAME, UNKNOWN, COMPONENT) because the body sanitizer strips angle-bracket shapes.

① Derived judgments

  1. The published bin's accept set narrows by four commands — right. cli.ts at the head declares ten .command( entries (serve dev build start init generate doctor check validate analyze) and imports none of the four modules; the four files are deleted, not stubbed. packages/cli/src sets no allowUnknownOption, passThroughOptions, allowExcessArguments, enablePositionalOptions or exitOverride (grep at the head: none), and the CLI runs commander ^15, whose default refuses an undeclared first token with error: unknown command 'NAME' and a non-zero exit before any action runs — for create plugin probe-widget the refused token is create. So each retirement is a refusal, not a silent accept, and nothing is written. plugin was the only type the deleted create action accepted, so retiring create whole is the ruling's unit. No dependency was added: packages/cli/package.json is not in the diff, which is the ruling's ⛔.
  2. The enumeration pin's new declared set — right. SUBCOMMANDS in cli-bin.test.ts is those same ten names in the same order; the pin still reads commander's Commands: section both directions (set equality, no duplicates, help as the lit control). A retired command coming back fails this pin before its own refusal pin does, which the dev's restore-one leg shows (2 failed: enumeration plus the studio refusal).
  3. The four refusal pins — right. One it.each over create plugin probe-widget, lint, test, studio: exit non-zero, stderr contains unknown command 'NAME', the temp directory stays empty, and the control is the same directory answering g page Probe with exit 0 and exactly pages, pages/probe.json. These runs spawn process.execPath with PATH emptied, so the node binary still resolves while a resurrected studio or lint would die at its first external tool instead of starting a dev server from inside the suite — a sound guard, and the reason the BASE leg's studio failed on pnpm: not found rather than on a port. cli-bin.test.ts self-builds dist/cli.js when absent and is a *.test.ts file, so it is judged by the eight Test (shard N/8) runs, not by Test (dist pins) (pnpm test:dist, the *.dist.spec.tsx project).
  4. analyze without dist/ now exits non-zero — right. analyzeBundleSize() throws No dist/ directory to analyze. Run \objectui build` first.where it used to print a warning andreturn; analyze()has no catch, so the throw reaches theanalyzeaction's existing catch incli.ts, which prints Error:plus the message on stderr and callsprocess.exit(1); ✓ Analysis complete!sits after theawaitand never prints. The two banner lines still print on stdout first, which the PR's Acceptance notes say and which no pin or script reads as a pass. The pin asserts exit non-zero,dist/on stderr, noanalysis completeon stdout, and an empty tree. With adist/, the report is unchanged (the objectui#11496 control pin is untouched). The docs sentence "With no dist/` to analyze, it exits non-zero" matches.
  5. init NAME --template UNKNOWN refuses before the directory exists — right. const files = buildInitFiles(name, options.template) is now evaluated after the already-exists check and before mkdirSync(projectDir, …); buildInitFiles throws Unknown template: UNKNOWN for a name outside templates, and the init action's catch exits 1. The name === '.' path never made a directory and is unchanged; the file map and write order are unchanged (the byte-for-byte pin over buildInitFiles still holds). The deleted comment "Unknown templates still throw here, before the first write" was true of files and false of the directory, and is corrected. The pin asserts exit non-zero, unknown template on stderr, an empty tree, then the same directory scaffolding probe-app/app.json with -t simple. The change is one hoisted statement (+1 line, the loop header 3 lines to 1, one comment), which the ruling allows when "named in the report" — it is named in the report, the PR body and the changeset.
  6. The doctor text corrections — right. The help line becomes Diagnose common project setup issues (reports only, changes nothing); doctor.ts at the head reads files and console.logs findings, writes nothing, and reads no process.version, so both the old "and fix" and the old docs promise of a "Node version" check were claims with no implementation. The new cli.mdx sentence (package.json and its React and Tailwind dependencies, the Tailwind PostCSS plugin and CSS entry, tsconfig.json; reports only, changes no file) is a true summary of runDiagnostics' four sections; it omits the TypeScript-range and inert-tailwind.config findings, which is a summary, not a false claim. The pin reads the description paragraph of doctor --help (second blank-line-separated block), asserts it is non-empty (lit control) and that it does not match fix, so it pins the kind of claim, not the wording.
  7. The serve text correction — right. cli.ts declares --no-open on serve exactly as on dev (-p, -h, --no-open on both), so the old docs line "(no --no-open)" was false and the new "flags as dev, --no-open included" is true. The serve row of the flag-contract table gains --no-open; green at BASE by design, a docs-to-bin alignment pin.
  8. The new cli.mdx "Scaffolding a plugin" line against packages/create-plugin — right, with one wording residue. packages/create-plugin/package.json at the head names @object-ui/create-plugin, one bin create-plugin → ./dist/index.js, publishConfig.access: public, no private, a member of the fixed group; npm's create resolves @object-ui/plugin to @object-ui/create-plugin and runs its sole bin; the bin's program takes [plugin-name], -d, --description and -a, --author, so NAME on the command line is a positional it accepts; the registry answers 17.6.0 as latest (the dev measured a run under a pty writing packages/plugin-probe-widget/). The link /docs/utilities/create-plugin resolves to the page that carries the "run it at a pnpm workspace root" caveat the section delegates (Internal Docs Link Check, tally below). Residue: the section's sentence "A plugin is scaffolded by its own initializer, @object-ui/create-plugin, not by this CLI" sits in the same page as the generate section's example objectui generate plugin my-widget, and generate.ts at the head still writes plugins/NAME/index.ts, an in-app plugin stub. "A plugin package" would be exact; "not by this CLI" overstates by one word. Not an accept-set change and not a prescription that fails; named for the next cli.mdx toucher (carrier: the seat), not blocking — the same class as the analyze banner residue the objectui#11499 record named.
  9. The docs and README surface — right where the diff reaches, and the reader sweep is clean. cli.mdx loses the lint, test, studio and create plugin sections; the intro drops "linting, testing"; the README tagline drops "lint, test" — both now read "scaffold, develop, build and validate", which is packages/cli/package.json's description verbatim; the README's utility heading keeps check, doctor, analyze and drops only the two retired names, four lines clear of draft PR objectui#11069's validate region. At the head, git grep for objectui create plugin, objectui lint, objectui test, objectui studio, commands/{lint,test,studio,create-plugin}.js and createPlugin over the tree outside skills/ and changelogs finds nothing (the studio hits are console app names, and createPlugin is packages/create-plugin's own function); the only prescriptions left are the four rows of skills/objectui/guides/project-setup.md the dev named — ③. content/docs/utilities/index.md already spells the initializer as the global-install create-plugin my-awesome-plugin, consistent with the bin name.
  10. No programmatic export moves, and nothing is stranded — right. @object-ui/cli's exports is ./dist/index.js, which re-exports serve and init only; tsup builds cli and index as its two entries; package.json is not in the diff. Each deleted module imported only node builtins and chalk (read at fcdc8ec91), so nothing under utils/ loses its sole reader and chalk is still read throughout cli.ts; SCAFFOLD_DEV_DEPENDENCIES is untouched, as the dev says.
  11. Serial and base — right. The merge-base fcdc8ec91 is the sha the claim read its serial constraints at. main has moved one commit (PR objectui#11502, this seat's objectui#11440 PR 2); its packages/cli footprint is the two files the claim named as disjoint, and the three-dot diff is byte-identical, so not merging main was right. Draft PR objectui#11069's 15 files include cli.mdx, the README, commands/check.ts and commands/validate.ts; this diff touches neither command file and no validate / check section.
  12. Reverse verification — read, not re-run, and the blobs match. The diff's index lines and git rev-parse at the two commits name exactly the blobs the dev reports: BASE 004165f17300 (cli.ts), 63659c0b30c9 (analyze.ts), ad7bde24bfcc (init.ts), e8438188bbc5, 613605f90d07, 48db26298d9a, 5039e918e38e (the four deleted modules); HEAD ec9d879fdc20, fb81635c05cb, ab62a52b5efd. BASE leg 8 failed / 40 passed on the eight predicted names (enumeration, four refusals, doctor, analyze, init; the serve row green as predicted); restore-one 2 failed / 46 passed; restore proven by hash and an empty diff. Consistent with the diff.
  13. Repository surface — right. Two commits, each with the model-free trailer pair objectui AGENTS.md prescribes; no model identifier in the PR title, body, changeset or commits. Governed Surface Queue Guard is green: the 11 paths are not a governed surface. The PR is a draft carrying needs:contract-review, body line 1 Fixes #11500, line 3 Clause-②: yes.

Nothing in the diff is judged wrong; one wording residue (①.8) is named for the carrier.

② Semver level

  • .changeset/11500-retire-cli-create-lint-test-studio.md declares '@object-ui/cli': minor. The diff removes four commands an author can write at the command line and turns one exit 0 into an exit 1, so in semver terms it is BREAKING; this repo's release model (objectui AGENTS.md's version-number policy: the fixed group's major follows the @objectstack major, objectui's own breaking changes ship as minor with the break spelled out, and scripts/check-changeset-no-major.mjs behind Changeset Bump Policy refuses major) makes minor right. @object-ui/cli is in the one fixed group at the head. patch would understate a narrowing; major is refused outside the once-per-objectstack-major sync. The changeset says so itself in its parenthetical, in the same form as the three precedents.
  • The body carries what a breaking changeset owes: the BREAKING banner naming the package, a FROM → TO line per retired command with the one-line fix (create plugin NAME → npm create @object-ui/plugin NAME; lint / test → the project's own ESLint and Vitest; studio → nothing published, pnpm --filter console dev for monorepo contributors), the why per command, one line per residue, the command-line delta and Clause-②: yes. Each sentence was checked against the diff and the head: all hold, including "which the next init NAME then refused as already existing" (the existsSync(projectDir) check that precedes everything in init).
  • Not a skip-changeset case: packages/cli/src/cli.ts is the published bin of a released package (@object-ui/cli 17.6.0), and seven other source files of that package move, so a changeset is owed and present (Changeset Declaration green: 8 source files of 1 released package, 1 changeset). Changeset Bump Policy, Changeset Overwrite Report, Changeset Claim Re-read and Changeset Fixed Group Check are green too.
  • The claim re-read's two pending changesets, read against the diff: 7658-toc-code-span-anchor-parity is a past-tense account of headings its own change repaired, and stays true as history although the add and create plugin headings now exist in neither file; 7694-chart-series-chart-type-alias-refusal names cli.ts as the home of objectui validate, which still declares .command('validate') at the head. No correction owed.
  • Clause-②: line — right. PR body line 3 reads Clause-②: yes; the seat's claim 5961116498 and the changeset say the same. It is a narrowing: four commands the published bin accepted are now refused, and analyze without dist/ exits 1 where it exited 0. No gate at the head reads an arm on the line, so the bare Clause-②: yes follows the repo's own precedent, as in the three precedent records.

③ Boundary flags

Dev report 5961579588: open_questions: [], nine deviations, four out-of-scope findings. Each answered or escalated:

Deviations

  1. pnpm install --config.engine-strict=false — brief-directed and local to the dev's container; nothing on the head depends on it. Answered.
  2. Skills rows cited by content, not by line — right. objectui AGENTS.md [WIP] Update documentation for project #11: an issue or pull-request body has no same file, so every line address in it is the banned cross-file form; the brief's "with its line" yields to the repo rule, and the four rows are identifiable by their text (objectui studio / Visual UI editor; objectui lint / Lint generated app code (ESLint); objectui test / Run app tests (Vitest); objectui create plugin / Scaffold a new plugin — all four present at the head). Carrier right: objectui#11503 is open in the skills lane for the same table. Escalated to the seat, the one obligation this verdict leaves open: skills: project-setup.md's CLI table still lists objectui add and analyze's render-performance mode, both retired by objectui#11496 #11503's dispatch 5960912895 excluded these four rows by name ("the guide must not run ahead of the CLI"), and its draft PR objectui#11507 (6604f48f5, Tier H) carries only the add and analyze rows; triage's note on skills: project-setup.md's CLI table still lists objectui add and analyze's render-performance mode, both retired by objectui#11496 #11503 (5960472347) says the seat greps the skills tree again when objectui#11500 lands. So the carry is a second skills edit owed after this PR is on main, not something docs(skills): project-setup.md’s CLI table drops the retired objectui add row and says analyze is the bundle-size report over dist/ (objectui#11503) #11507 delivers — the seat must not close skills: project-setup.md's CLI table still lists objectui add and analyze's render-performance mode, both retired by objectui#11496 #11503 on docs(skills): project-setup.md’s CLI table drops the retired objectui add row and says analyze is the bundle-size report over dist/ (objectui#11503) #11507 alone. ⛔ Not by a patch round here: adding skills/** would make this 11-path landing a Tier H one.
  3. README tagline and cli.mdx intro edited beyond the retired sections — right. Both lines asserted lint and test as capabilities and would have been false at the head; the claim's surface for the README reads "the retired commands' lines only", and these are such lines. The replacement text is the package's own description, so no new claim is introduced.
  4. The initializer as a short section rather than a line — right. The ruling asks that cli.mdx "names the package's own initializer"; the claim's word was "line". Once ### objectui create plugin NAME is gone there is no command heading to hang a line on, and the initializer is not an objectui command, so a ## section outside ## Commands (one sentence, one fence, one link) is the smallest correct home. The ①.8 wording residue rides with it.
  5. The init residue is one hoisted statement, not literally one line — right, answered in ①.5: the ruling's own clause ("Any that is not one line is named in the report") is met in three places, and the hoist is the minimal change that puts the throw before the mkdirSync.
  6. The BASE measurement's studio run started this checkout's console Vite on :5180 for under 20 s — local, killed, nothing left by the dev's process and port check; the new pins empty PATH so the suite can never repeat it. Answered.
  7. Gates beyond the brief's list, with a scoped 35-package build to give check:readme-exports and the snippet gates their precondition — more measurement, not less; the head's README Export Check and Doc Snippet Type Check are the gates. Answered.
  8. Model-free trailer pair instead of the harness's model-named trailer — objectui AGENTS.md's commit-message rule; not a deviation.
  9. No ablation scripts in objectui, so git checkout COMMIT -- PATH legs with blob-hash proof — reporting; ①.12 reads the hashes; the check-runs are the gate. Answered.

Out-of-scope findings

  • doctor exits 0 with an error-level finding — right not to file. No help line, docs sentence or README names doctor's exit code (validate is the one command that documents one), and the new sentence claims "reports only" and nothing about status, so there is no declared-not-enforced contract; whether an error finding should exit 1 is a product question for a card with its own pull. Carrier none, answered.
  • The published @object-ui/create-plugin@17.6.0 exits 0 under a non-TTY stdin — right carrier, and not a bar to the new docs line. The line's documented shape (NAME on the command line, interactive) is the one the dev measured working on the published bin; the non-TTY defect is objectui#8786's (closed; its fix is in packages/create-plugin/src/index.ts at the head with .changeset/8786-create-plugin-cancel-and-nontty.md still pending), and this PR's own minor changeset forces the next fixed-group release, which ships it. The Create Plugin page's non-TTY paragraph describes main, as it did before this PR. Carrier: the release lane, as the dev says.
  • toc-anchor-parity.test.tsx's LIVE_SHAPES stale where — right to leave. The row's md literal (### objectui add COMPONENT, where naming cli.mdx and the README) is a slug fixture that reads no file; this PR does not touch packages/plugin-markdown, so AGENTS.md [WIP] Update documentation for project #11's "repair when you touch the file anyway" does not fire; the objectui#11499 record already named it. Carrier none, answered.
  • The dev report's "CI in_progress, not awaited, per contract" — answered by the completed set below.

Check-runs on the head

43 check-runs on a20223743cba4e8962bed892a5b06fe166afa799, every one completed (the aggregate Test landed last, at 2026-10-02T21:24Z): 40 success · 3 skipped · 0 failure (0 cancelled, 0 timed out, 0 neutral, 0 action required). The three skipped are the push-only coverage lanes (Test (coverage), Test (coverage shard N/4)) and dependabot; none is a verdict on this diff. Green and material here: Test (shard 1/8) through Test (shard 8/8) (the lane that runs cli-bin.test.ts: the enumeration pin, the four refusals with their write control, the doctor, analyze and init pins with their controls, the serve row), Test (the roll-up, which also asserts the dist-pins result), Test (dist pins), Type Check (the narrowed cli.ts, the analyze throw, the hoisted init statement), Lint, Build & E2E, Build Docs, Internal Docs Link Check (the new /docs/utilities/create-plugin link), Doc Snippet Type Check and README Export Check (the two gates the dev could measure only after a scoped build), Doc Fence Language Check, Doc Component Type Check, Doc Example Id Check, Changeset Declaration, Changeset Bump Policy, Changeset Overwrite Report, Changeset Claim Re-read, Changeset Fixed Group Check, Line Citation Gate, Governed Surface Queue Guard, Skill Guide Path Check, Spec Main Shape Gate, Control Byte Scan, Shell Escape Residue Scan. Read twice, more than a minute apart; the set was complete and identical at both reads. These conclusions are the gate verdicts; none was re-run here.

Implemented-by: claude/issue-11500-retire-failing-cli-commands
Reviewed-by: session_01YLg8XqWGJ785fwQ5v4pH37

VERDICT: PASS


Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 2, 2026 21:42
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 2, 2026 21:42
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 2, 2026
Merged via the queue into main with commit 37268aa Oct 2, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-11500-retire-failing-cli-commands branch October 2, 2026 21:59
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Oct 7, 2026
…command table (objectui#11511) (objectstack-ai#11585)

Fixes objectstack-ai#11511
Clause-②: no

## What changed

The CLI table under the `## CLI commands` heading of
`skills/objectui/guides/project-setup.md` drops four rows. Their
commands were retired under objectui#11500 (PR objectstack-ai#11508, landed as
`37268aae9`, an ancestor of this branch's base), and the built CLI now
refuses each as an unknown command, exits 1 and writes nothing, pinned
by the `cli-bin.test.ts` describe block named "the retired create, lint,
test and studio commands are refused". The dropped rows, quoted:

- `| \`objectui studio\` | Visual UI editor |`
- `| \`objectui lint\` | Lint generated app code (ESLint) |`
- `| \`objectui test\` | Run app tests (Vitest) |`
- `| \`objectui create plugin\` | Scaffold a new plugin |`

One prose line follows the table, saying what
`content/docs/utilities/cli.mdx` already teaches: "A plugin package is
scaffolded by its own initializer, `npm create @object-ui/plugin NAME`,
not by the CLI." (`NAME` is an uppercase placeholder word on purpose:
GitHub strips tag-shaped fragments from a body, so no angle-bracket
placeholder is written anywhere in this PR.)

`lint` / `test` get no replacement row: the project's own ESLint /
Vitest are not this CLI's business, and the card asks for none. `studio`
has no published replacement.

`.changeset/11511-project-setup-retired-cli-rows.md`, an
empty-frontmatter changeset, declares the docs-only change — this
repository's one-declaration form; no package is released.

## Readings

**Grep pin (the card's own pin, carried in this PR).** The command, in
the form printed here: `git grep "objectui studio\|objectui
lint\|objectui test\|create plugin" origin/main -- skills/objectui/`

- On the base `83e3f83`: 4 hits, every one of them in the CLI table of
`project-setup.md`, and every one of them a row quoted above. No other
guide under `skills/objectui/` names any of the four.
- On this branch's head `5936490`: 0 hits (`git grep` exits 1).

**The `objectui generate` row stays.** `packages/cli/src/cli.ts` still
declares `.command('generate')` with `plugin` among its argument's
types, and `packages/cli/src/commands/generate.ts` still dispatches
`case 'plugin'` to `generatePlugin`, so the row's `(\`object\`,
\`page\`, \`plugin\`)` is true on the base and is not touched. The
commands the table now lists — `init`, `dev` (with `serve`, which
`cli.ts` describes as its alias), `build`, `start`, `validate`, `check`,
`generate`, `doctor`, `analyze` — are exactly the `.command(...)` set
`cli.ts` declares.

**Governed surface.** `node scripts/check-governed-queue-guard.mjs
--test skills/objectui/guides/project-setup.md
.changeset/11511-project-setup-retired-cli-rows.md` answers `⛔ GOVERNED
— 1 of 2 path(s) are on a governed surface: skills/** x1 — the published
skills catalog`, exit 3. This PR stays a draft until an APPROVED review
by an authorized approver (`os-zhuang` / `hotlong`) is on it; the
claiming seat lands it afterwards. Not flipped ready, no auto-merge
armed.

**Line readings (a `skills/**` diff owes two).**

- `skills/objectui/guides/project-setup.md`, whole file: 350 lines
before, 348 after (net −2: four rows dropped, one prose line plus its
separating blank line added).
- Bundle, every `.md` under `skills/objectui/` (16 files): 4813 lines
before, 4811 after. `skills/objectui/SKILL.md` alone: 142 before and
after, untouched.
- Tokens: this repository declares no skills token ratchet; `pnpm
check:skill-eval-tokens` is the eval-side oracle and is green below.

## Gates run locally (all on commit `5936490`)

| Gate | Verdict |
|---|---|
| `pnpm check:skills-paths` | exit 0 — `OK (89/90 stated path(s) resolve
across 20 guide file(s); 1 baselined)`, `skills/ — 29/29 resolve across
16 file(s)` |
| `pnpm check:skill-eval-tokens` | exit 0 — `Red under the chosen
oracle: 0 (0 beyond the baseline)`, `Every must_contain token is taught
by its own skill bundle.` |
| `pnpm exec turbo run build FILTER_ARGS --concurrency=2`, `FILTER_ARGS`
being the 12 `--filter=` words `node scripts/check-skill-examples.mjs
--build-filter` prints, under `os-verify-lock.sh` | exit 0 — `Tasks: 29
successful, 29 total`, 5m02s of shared-box seconds |
| `node scripts/check-skill-examples.mjs --self-test` | exit 0 — `60
cases pass` |
| `node scripts/check-skill-examples.mjs` | exit 0 — `Semantic phase: 18
of 18 ts fence(s) judged, 0 failed.`, `JSON phase: 70 fence(s) parsed, 0
failed.`, `Every marked skill example holds up against the built types.`
|
| `node scripts/check-new-cross-file-line-citations.mjs --base 83e3f83`
| exit 0 — `VERDICT new-cross-file-line-citations: 0 new citation(s)` |
| `node scripts/check-changeset-presence.mjs` | exit 0 — `No source or
published contract of a released package changed in this range, so no
changeset is owed.` (one is added anyway, as the declaration form) |
| `pnpm changeset:check` | exit 0 — fixed group and no-major both green
|
| `pnpm check:changeset-claims` | exit 0 — `No pending changeset names a
file this change touches.` |
| `pnpm check:pending-changeset-literals` | exit 0 — `No test source
names a pending changeset.` |
| `pnpm exec vitest run scripts/__tests__/doc-version-claims.test.ts
scripts/__tests__/check-skills-paths.test.ts
scripts/__tests__/check-skill-eval-tokens.test.ts
scripts/__tests__/check-shell-escape-residue.test.ts --maxWorkers=2`,
from the repository root, under the lock | exit 0 — `Test Files 4 passed
(4)`, `Tests 145 passed (145)` |
| control-byte scan over both touched files (`grep -naP` with the C0,
DEL class) | no hits |

**Declared narrowings.**

- `pnpm test` is narrowed from the full suite to the four files above.
`doc-version-claims.test.ts` is the one test that names
`project-setup.md` (`git grep -l "project-setup" -- '**/__tests__/**'
'**/*.test.*'` answers only it); the other three are the scripts tests
that read `skills/objectui`. The full suite is CI's run.
- `pnpm lint` is narrowed to a measured zero, three pieces: ① the
population is read from eslint's own config —
`ESLint.calculateConfigForFile` returns undefined and `isPathIgnored`
returns true for both diff paths; ② the file count — `lintFiles` over
the two diff paths returns 2 results, both `File ignored because no
matching configuration was supplied`, 0 errors, so 0 of the 2 diff paths
are in the lint population; ③ invariance — the diff touches no eslint
config and no file eslint matches, so no untouched file's verdict can
move. The tree-wide `pnpm lint` is CI's run.
- `pnpm type-check` is not owed: the diff is two markdown files, no
TypeScript file and no manifest.
- Deviation: `pnpm install` ran as `pnpm install
--config.engine-strict=false`, because the container's Node v22.22.0 is
below jsdom's engine floor.

## 维护者速读(草稿)

### 改了什么

`skills/objectui/guides/project-setup.md` 的 CLI 命令表删掉四行:`objectui
studio`、`objectui lint`、`objectui test`、`objectui create plugin`。这四个命令已随
objectui#11500(PR objectstack-ai#11508)退役,CLI 现在把它们当未知命令拒绝、退出
1、什么都不写。表后加一句:插件包用它自己的初始化器 `npm create @object-ui/plugin NAME` 搭,不经
CLI。另加一个空 frontmatter 的 changeset,声明「纯文档、不发版」。

### 为什么改

这份指南是发布给使用者的 `objectui` skill 的一部分,AI agent 搭项目时照它执行。表里教的命令 CLI
已经不认,照着做就是撞墙;其中 `create plugin` 有正确路径(`npm create
@object-ui/plugin`),指南却指向了退役命令。NORTH-STAR 第 4 条把这类「教错」算作产品缺陷。

### 风险与代价(含回滚)

只动两个 markdown 文件,不动代码、不发版,本地门禁全绿。`objectui generate`
行核对过仍为真(`generate.ts` 仍派发 `plugin`),没动;四个命令名在 `skills/objectui/**` 里
grep 已归零。回滚即 revert 这一个 squash commit。受管面(`skills/**`)⇒ 本 PR 停在 draft,等
`os-zhuang` / `hotlong` 的一条 APPROVED review,之后由认领席落地。

### 席位意见

(留空)

### 你要做的

读一遍 diff(两个文件、净 −2 行),认可就在本 PR 上留一条 APPROVED review;翻
ready、入队由席位处理。不认可就在 PR 上写明要改的那句。

## Acceptance notes

- Nothing outside the card's file surface was changed: the one table,
plus the changeset this repository requires. The grep pin found no
second site.
- The claim comment on the card read `origin/main` at `0a53c67`; by the
time this branch was cut `origin/main` was `83e3f83` (three unrelated
landings, none touching this file), so the branch is based on `83e3f83`
and every reading above is against it.
- Session: `session_01CB6W87z22K2yjUCDyVrJRk` (the PM seat's; this PR
was implemented by its dispatched dev in subagent mode, so the branch is
the identity).

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

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: os-zhuang <jack@objectstack.ai>
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