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

fix(cli): retire generate --output, which was declared, documented and never read (objectui#11476) - #11487

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-11476-retire-generate-output
Oct 2, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-11476-retire-generate-output

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #11476

Clause-②: yes

What

objectui generate declared --output DIR (documented default schemas/), and the CLI docs listed it. The action never read it. It calls generate(type, name), and the generator writes in its own per-type layout under the current directory. Triage ruled the flag retired at once, with no alias window (ruling comment 5955124315 on the card). This PR:

  • removes the --output option line from the generate command in packages/cli/src/cli.ts;
  • removes the --output row from the generate flag table in content/docs/utilities/cli.mdx. Only that row is touched, region-disjoint from draft PR objectui#11069, which edits the same file elsewhere;
  • drops --output from the generate row of the "exposes the documented flags" table in cli-bin.test.ts, and adds three built-CLI pins;
  • adds .changeset/11476-retire-generate-output.md (@object-ui/cli minor, BREAKING banner, a FROM → TO line, a Clause-② line).

No new refusal code was needed. The program sets no allowUnknownOption, passThroughOptions or allowExcessArguments, so commander's default refusal applies once the option is undeclared. I measured this on the BASE build before touching anything: g page Probe --bogus custom/ exits 1 with error: unknown option '--bogus' and writes nothing.

Serial: PR objectui#11473 (the same generator, triage's named predecessor) landed as 5429e6c74 and is an ancestor of this branch (merge-base --is-ancestor exit 0). generate.ts is not edited here.

Contract notes

  • The accept set narrows (Clause-② yes). The published objectui bin's generate command no longer accepts --output. FROM objectui generate TYPE NAME --output DIR (exit 0, flag ignored, file written in the per-type layout) TO a non-zero exit with commander's unknown-option error and nothing written. There is no alias, no deprecation window and no silent accept.
  • Unchanged. Without the flag, generate writes exactly where it wrote before: pages/NAME.json for a page, objects/NAME.json for an object, plugins/NAME/ for a plugin. No exported symbol of @object-ui/cli moves, because cli.ts is the bin entry and not part of the package's exports.
  • --from SOURCE is untouched. It is a separate declared-but-unimplemented flag (see Acceptance notes), and not this card's.

Pins

They live in packages/cli/src/__tests__/cli-bin.test.ts and run through the built dist/cli.js, under generate refuses the retired --output flag (objectui#11476):

  1. exits non-zero naming --output as an unknown option, and writes nothing: runs g page Probe --output custom/ in an empty temp directory. It asserts a non-zero exit, that stderr names the kind (unknown option) and the option (--output), and that the directory stays empty.
  2. still writes pages/NAME.json when the flag is absent: the control the refusal is read against. It is the same command without the flag, and it asserts exit 0 and a tree of exactly pages and pages/probe.json.
  3. does not list --output in generate --help: carries a lit control that the help text read is generate's own (--from SOURCE is listed).

Reverse verification

I wrote each prediction down before its run.

  • BASE leg. The new pins ran against the dist built from BASE 2c0ddf226, before the fix was built. Predicted: pins 1 and 3 red, pin 2 green. Observed: Tests 2 failed | 41 passed (43). Pin 1 failed on expected +0 not to be +0, with stdout ✓ Generated page schema: …/pages/probe.json. Pin 3 failed on expected 'Usage: objectui generate|g [options] …' not to match /--output\b/.
  • Ablation. The fix was committed first, as c0dad4b52. The option line was then planted back through objectstack's scripts/ablation-replace.mjs in wrap mode, with its restore trap. Anchor count went x1 -> x0, replacement x0 -> x1, blob 6b9bbbbf7eb6 -> 3b73365ae916, which is byte-for-byte the BASE blob of cli.ts. Mutant source marker 1; CLI rebuilt; mutant dist/cli.js marker 1. Predicted the same two reds. Observed: Tests 2 failed | 41 passed (43), failing on the same two names.
  • Restore. The tool ran git checkout HEAD -- on the absolute path. Blob after restore equals the HEAD blob (6b9bbbbf7eb6), git diff HEAD is empty and git status --porcelain is empty. CLI rebuilt; restored dist/cli.js marker 0; Tests 43 passed (43).
  • Void first attempt, not counted. The first ablation attempt did nothing. Its replacement still contained the anchor, so ablation-replace refused it (anchor count 1 -> 1) and restored before the wrapped leg ran. I re-anchored across the line boundary and ran it again; that is the run above.
  • objectstack's ablation-dist-preflight.mjs is rooted in the objectstack tree, so I proved the dist side by hand: grep -c of the option spelling in packages/cli/dist/cli.js, on both legs.

Tests and gates

Everything below ran on final head c0dad4b52.

  • pnpm --filter @object-ui/cli build: exit 0. The dist carries 0 hits of the --output DIR spelling, against 1 for the --from SOURCE control.
  • pnpm --filter @object-ui/cli type-check (tsc --noEmit): exit 0. --listFiles shows it covers both cli.ts and cli-bin.test.ts.
  • pnpm exec vitest run packages/cli/ plus four cross-package readers of cli.mdx or of the generator (page-node-headings-drawn-11436, toc-anchor-parity, nested-page-children-11223, body-dialect-census): Test Files 28 passed (28), Tests 497 passed (497).
  • The built-CLI reproduction from the card: node packages/cli/dist/cli.js g page Probe --output custom/ exits 1 with error: unknown option '--output', and the directory stays empty. The same command without the flag exits 0 and writes pages/probe.json.
  • pnpm docs:check-links: Links are valid across 17 scan roots.
  • pnpm check:doc-fences: ✅
  • node scripts/markdown-test-inputs.mjs --audit: all adjudicated … all present.
  • pnpm check:control-bytes: ✅ OK
  • pnpm check:new-line-citations: VERDICT new-cross-file-line-citations: 0 new citation(s), enforcement report-only -> exit 0
  • node scripts/check-changeset-presence.mjs: ✅. check-changeset-no-major.mjs: ✅. check-changeset-overwrite.mjs: ✅
  • pnpm check:changeset-claims (report-only): two pending changesets name a file this change touches. 7658-toc-code-span-anchor-parity names cli.mdx for its headings, and 7694-chart-series-chart-type-alias-refusal names cli.ts as the home of objectui validate. I re-read both paragraphs, and both are still true.
  • check-doc-component-types.mjs and check-doc-example-ids.mjs: ✅
  • ESLint, as a proved narrowing. ① Population: CI lints this package through turbo run lint, which runs @object-ui/cli's eslint src against the root eslint.config.js (the package has no config of its own). I ran that same eslint src. ② --format json counts 51 files linted, equal to the 51 tracked ts/js files under packages/cli/src. It reports 0 errors and 5 no-explicit-any warnings, all in untouched files; both edited files read 0/0. ③ Invariance: the config enables no type-aware linting (no parserOptions.project or projectService) and no import-graph plugin, and no rule under eslint-rules/ reads the filesystem. So this diff cannot move a verdict on a file it does not touch. cli.mdx and the changeset sit outside every eslint files glob. The repo-wide pnpm lint is left to CI.
  • Not run, and why: check-doc-snippet-types (the docs edit removes one table row and touches no fenced block), and the full pnpm test (CI's).
  • origin/main has since moved by PR objectui#11481 (sidebar, shadcn patches, an e2e spec), which shares no file with this diff. I did not merge it, because the merge queue rebuilds on current main.

Acceptance notes

  • --from SOURCE on the same command, measured on the BASE build: g page Probe --from openapi.yaml prints "not yet implemented", exits 0 and writes nothing. Its docs row marks it experimental. It is a separate declared-not-enforced flag. It is left untouched here and reported to the dispatching seat.

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


Generated by Claude Code

…and never read (objectui#11476)

`objectui generate` declared `--output DIR` (documented default `schemas/`),
but the action called `generate(type, name)` without it, so the flag did
nothing: files always landed in the generator's per-type layout. Triage
ruled it retired with no alias window. The option line and its docs row are
removed; commander's default refusal of unknown options now rejects it.

Pins in cli-bin.test.ts, through the built bin: `g page Probe --output custom/`
exits non-zero naming the option and writes nothing; `g page Probe` still
writes `pages/probe.json`; `generate --help` no longer lists `--output`.

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.

.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 2b188faa3 (merge-base with origin/main): 3 file(s) changed outside .changeset/, read against 2029 pending declaration(s) that publish a body (2658 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) 3550.7 KB 3574.6 KB
Main entry chunk (gzip) 150.4 KB 350 KB
Entry file index-vnVW5Poe.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) 569.83KB 136.77KB
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.25KB 66.11KB
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.36KB 11.18KB
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) 141.23KB 38.00KB
plugin-designer (index.js) 231.28KB 48.76KB
plugin-detail (index.js) 245.27KB 64.47KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 172.73KB 44.50KB
plugin-gantt (index.js) 179.14KB 45.06KB
plugin-grid (index.js) 232.66KB 63.77KB
plugin-kanban (index.js) 49.51KB 15.54KB
plugin-list (index.js) 116.60KB 28.96KB
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) 3.19KB 1.62KB
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) 21.59KB 7.71KB
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: c0dad4b52e5deb52dc93da5e032c9770c937d86c
Local-runs: none
Rendered: 2026-10-02T17:08Z

PR objectui#11487 (card objectui#11476), judged against triage's ruling 5955124315 ("Ruling: retire"). Read for this record: the card body and all four comments on it; the PR body and its 4-file list; the net diff of the head against main (the three-dot diff against current main 2b188faa3 is byte-identical to merge-base 2c0ddf226..head: +55 / −4 over .changeset/11476-retire-generate-output.md, content/docs/utilities/cli.mdx, packages/cli/src/__tests__/cli-bin.test.ts, packages/cli/src/cli.ts); and the check-runs on the head, polled at one-minute intervals until every run had completed. Nothing was built, run or re-run locally; the dev's reverse-verification legs are read as reported, and the head's own check-runs are the gate verdicts.

① Derived judgments

  1. The published bin's accept set narrows — right. objectui generate (alias g) no longer declares --output DIR. packages/cli/src sets no allowUnknownOption, passThroughOptions, allowExcessArguments or exitOverride (grep at the head: none), and the CLI runs commander ^15, whose default refuses an undeclared option with error: unknown option '--output' and a non-zero exit before the action runs. So the retirement is a refusal, not a silent accept, and nothing is written — exactly the ruling's shape: removed at once, no alias window. A bespoke refusal branch would have been a second spelling of what commander already does; none was needed.
  2. generate --help narrows — right. --output is gone from the help text; --from SOURCE remains and is the lit control in pin 3. The documented-flags table in cli-bin.test.ts drops --output from the generate row, so the docs-to-bin lock stays consistent.
  3. The docs surface narrows — right, and complete. The generate flag table in content/docs/utilities/cli.mdx loses its --output row, and with it the false default schemas/ (the only schemas/ left on the page is the unrelated objectui validate ./schemas/dashboard.yaml example). packages/cli/README.md's generate section carries no flag table and never named the flag. At the head, git grep -- '--output' finds only the new changeset, the new pins and vitest's --outputFile in unrelated scripts: no skill, example, workflow or README passes --output to objectui generate, so no reader is left dangling.
  4. Where generate writes is unchanged — right. packages/cli/src/commands/generate.ts is not in the diff; it still writes objects/NAME.json, pages/NAME.json and plugins/NAME/index.ts under the current directory. Pin 2 asserts the exact tree pages, pages/probe.json for g page Probe, which is the ruling's second pin ("still writes where it writes today").
  5. No programmatic export moves — right. @object-ui/cli's exports is ./dist/index.js, which re-exports serve and init only; cli.ts is the bin entry (tsup builds cli and index as separate entries). None of the publish-contract fields in package.json changes. The "no exported symbol moves" sentence in the PR body and the changeset holds.
  6. --from SOURCE left untouched — right. The ruling names --output only. --from is a separate declared-but-unimplemented flag, carried out of scope by the dev and now filed as its own card (see ③).
  7. The pins pin the ruling, through the built bin — right. Three pins under generate refuses the retired --output flag (objectui#11476): the refusal (exit non-zero, stderr matches unknown option and contains --output, the work directory stays empty), the control (exit 0, exact tree) and the help (no --output, with --from as the lit control). They spawn dist/cli.js as a child process, which is where the card measured the defect. readdirSync with recursive: true needs Node 20 or later; the repo's engines pins Node at 22.11 or later and CI runs Node 22.x. The dev's reverse verification is read, not re-run: BASE dist 2 failed / 41 passed on the two predicted names; the ablation re-planted the BASE blob (the diff's own index line for cli.ts, 3b73365ae..6b9bbbbf7, names the same two blobs the dev reports) and failed the same two; restored, 43 passed. cli-bin.test.ts is not in the dist vitest project (that project is the components dist-pin glob), so the pins are judged by the eight Test (shard N/8) runs on the head (tally below).
  8. Serial and base — right. 5429e6c74 (PR fix(cli,runner): objectui generate page and the core/runner READMEs name the pageType that draws the title; the 11436 pin reads package READMEs and the generator's output (objectui#11450) #11473, the ruling's named predecessor) is an ancestor of the head. main has moved three commits past the merge-base 2c0ddf226 (fix(components): an expanded offcanvas sidebar is drawn inside the viewport (objectui#11464) #11481, feat(types)!: SidebarSchema declares what the sidebar node draws; nine unread keys retire, variant takes the registration's enum (objectui#11465) #11485, fix(types): AnySchema includes every declared node type, pinned by an enumeration (objectui#11478) #11486); git diff --stat of that movement over packages/cli, cli.mdx and the changeset is empty, so not merging main was right and the queue's rebuild on current main carries no risk from this diff.
  9. Repository surface — right. One commit; its trailer pair is the model-free pair AGENTS.md prescribes; Governed Surface Queue Guard is green (not a governed surface).

Nothing in the diff is judged wrong.

② Semver level

  • .changeset/11476-retire-generate-output.md declares '@object-ui/cli': minor. The diff removes something an author can write at the command line, so in semver terms it is BREAKING; this repo's release model (AGENTS.md's version-number policy, enforced by scripts/check-changeset-no-major.mjs behind the Changeset Bump Policy check) pins the 39-package fixed group's major to the @objectstack major and ships objectui's own breaking changes as minor with the break spelled out in the body. So minor is right: patch would understate a narrowing, and major is refused by the gate outside the once-per-objectstack-major sync. The changeset says so itself in its parenthetical.
  • The body carries what a breaking changeset owes: the BREAKING banner naming the package, the FROM → TO line with the one-line fix (drop the flag; files land in the per-type layout, e.g. pages/NAME.json), the why, the command-line delta (non-zero exit, nothing written, --help and the docs row) and Clause-②: yes. Every sentence matches the diff and the measured bin behaviour.
  • Not a skip-changeset case: packages/cli/src/cli.ts is published executable source of a released package, so a changeset is owed and present (Changeset Declaration green). Changeset Overwrite Report, Changeset Claim Re-read and Changeset Fixed Group Check are green too.
  • Clause-②: line — right. PR body line 3 reads Clause-②: yes; the seat's claim 5956180470 and the changeset say the same. It is a narrowing: an option the published bin accepted (and ignored) is now refused. objectui has no gate that reads an arm on the line (at the head, scripts/, .github/ and AGENTS.md hold no Clause-② reader; check-governed-queue-guard.mjs only asks whether a clause-② verdict exists), and 105 pending changesets at the head carry the bare Clause-②: yes, so the spelling follows the repo's own precedent.

③ Boundary flags

Dev report 5957159207: open_questions: []. Its deviations and findings, each answered:

  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. PR assignee not set (the --assign write was refused by the permission layer before any request left) — an administrative mirror outside the contract; the seat's ACCEPT 5957202174 already records it as the seat's own write. Escalated to the seat; no bearing on this verdict.
  3. First ablation attempt void (the replacement contained the anchor; the tool refused and restored before the leg ran), second attempt counted — answered: the counted leg restored the BASE blob of cli.ts byte-for-byte, so it is a real BASE/head contrast, and the void attempt was reported rather than hidden.
  4. ablation-dist-preflight.mjs could not read the objectui tree; dist arrival proved by grep -c on both legs — answered: an adequate substitute for a one-line option removal, and CI's shards judge the built bin independently of the dev's local build.
  5. The first type-check was killed by a container restart and re-run on the same head — answered: Type Check on the head is the gate (tally below).
  6. Build and type-check in one locked call, each part exit 0 — reporting only; answered.
  7. origin/main not merged — answered right in ①.8.
  8. Model-free trailer pair instead of the harness's model-named trailer — AGENTS.md's commit-message rule; not a deviation. Answered.
  9. Clause-②: yes line in the changeset — the repo's precedent (105 pending changesets); answered.
  • Out-of-scope finding, objectui generate --from SOURCE prints "not yet implemented", exits 0 and writes nothing — escalated: the seat filed it as objectui#11488 (open, created 2026-10-02T16:58Z), same declared-not-enforced family, for triage. Right to leave it out of this diff: the ruling retires --output only.
  • The seat's correction that draft PR objectui#11069 also edits cli.mdx — outside this brief's inputs and not re-read here; the two edits are claimed region-disjoint, and either way a textual overlap is mechanical at merge under the "whichever lands second merges main" rule. No contract bearing.
  • 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 c0dad4b52e5deb52dc93da5e032c9770c937d86c, every one completed (the aggregate Test landed last, at 2026-10-02T17:06Z): 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 and its three new pins), Test (the per-shard roll-up), Test (dist pins), Type Check, Lint, Build & E2E, Build Docs, Internal Docs Link Check, Doc Snippet Type Check, 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, Spec Main Shape Gate. These conclusions are the gate verdicts; none was re-run here.

Implemented-by: claude/issue-11476-retire-generate-output
Reviewed-by: session_01YLg8XqWGJ785fwQ5v4pH37

VERDICT: PASS

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 2, 2026 17:12
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 2, 2026 17:12
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 2, 2026
Merged via the queue into main with commit 9de0b34 Oct 2, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-11476-retire-generate-output branch October 2, 2026 17:28
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

Development

Successfully merging this pull request may close these issues.

cli: objectui generate --output DIR is declared and documented but ignored — the action calls generate(type, name) and always writes under pages/

1 participant