Skip to content

retire the zero-consumer surface: nine dead modules (2,211 LOC), plugin-ai, runner's publish flag, test-only reset helpers on public barrels, the providers trio, 122 dead i18n keys, root orphans #25921

Open

Description

@os-zhuang

Ruled (plugin-ai): 6398569691 · letter A · 2026-10-25T13:58:53Z (retire @object-ui/plugin-ai: package, locale ai.* block, fixed-group entry, types/zod mirrors tombstoned; minor changeset with a breaking note)

维护者速读

一批每项都是 S、合起来可观的退役:9 个整文件模块共 2,211 行只有自己的 barrel 引用;@object-ui/plugin-ai 发布着却没有任何加载者(console 的 register-plugins.ts 不含它);runner 是无入口的 Vite 应用却 private: false 且在 fixed 发版组;公共 barrel 上有 9 个 reset*ForTesting 类助手;@object-ui/providers 与 @object-ui/react 同名的 provider 三件套只有一个示例在用;check-i18n-dead-keys 报告 122 个 CONFIRMED 死键(×10 语种);根目录若干孤儿。按 objectui#11608→#11616(PartialSchema)先例逐包一个 ! changeset。不加新门禁。

Measured (2026-10-24, HEAD 7981384; every absence claim ran with a positive control, SchemaRenderer 1,030 hits / plugin-map 144 files)

  • Whole modules with zero consumers outside the package AND zero in-package importers (only the barrel line): core/src/builder/schema-builder.ts 451 LOC, core/src/protocols/DndProtocol.ts 237, KeyboardProtocol.ts 222, SharingProtocol.ts 212 (their names appear only inside comments in types/src/index.ts), react/src/hooks/useFocusManagement.ts 248, useFocusTrap.ts 138, usePageTransition.ts 187, useSchemaPersistence.ts 373, collaboration/src/LiveCursors.tsx 143 — total 2,211 LOC. Repo-wide barrel census: 1,422 of 3,578 exported names have zero non-test code consumers outside their package (636 value exports, 402 of those also undocumented); worst ratios plugin-gantt 22/35, plugin-designer 16/38, collaboration 19/40, mobile 18/51.
  • @object-ui/plugin-ai (736 LOC; registers ai-form-assist, ai-recommendations, nl-query): 0 source importers; absent from apps/console/src/register-plugins.ts and apps/console/vite.config.ts; owns an ai.* block in every locale pack (26 lines in en.ts); listed in .changeset/config.json's fixed group.
  • packages/runner: a Vite app (main.tsx, App.tsx, no barrel), private: false, no main / exports, in the fixed release group; packages/cli/src/__tests__/workspace-vite.test.ts asserts it is not aliased.
  • Test-only helpers on public barrels with 0 non-test consumers: resetColumnIdentityWarnings, resetRetiredSortSpellingReports, resetActionKeyWarnings, resetDashboardFilterWarnings, resetReferenceKeyWarnings (core), resetRuntimeConfigForTesting (app-shell), resetInflightGetsForTesting (types), __clearRecordEditableCache (plugin-detail), clearSharedDiscoveryCache (data-objectstack).
  • @object-ui/providers exports DataSourceProvider, MetadataProvider, ThemeProvider (+hooks), the same six names @object-ui/react exports with different implementations; the providers trio's only non-test importer is examples/byo-backend-console/src/App.tsx (react's: 21 files); one-authority-per-exported-name-6273.test.ts carries hand-written exemptions for the collision. Its real content is UploadProvider (450 of 617 LOC; fields 11 sites) and createObjectStackUploadAdapter — fetch logic outside data-*, against AGENTS §3.
  • node scripts/check-i18n-dead-keys.mjs prints "391 candidate(s) … 122 CONFIRMED (no textual footprint anywhere else in the repo either), 269 NEEDS-REVIEW" (e.g. appDesigner.* 20 keys, preview.changes.typeCount.* 22); the script is wired to no workflow.
  • Root / config orphans: scripts/eval-console.mjs (hard-coded /Users/zhuangjianguo/.copilot/... output path) and scripts/release-bump.cjs referenced by nothing; paseo.json (0 references; its setup teaches pnpm i against the frozen-lockfile rule); typedoc.json + typedoc devDep + docs:api (no workflow); lazy-test.mjs (only an exemption glob in check-lint-rule-coverage.mjs); playwright.import-harness.config.ts and playwright.import-console.config.ts (1 spec each, no workflow); msw declared in root, plugin-form, plugin-grid with 0 imports plus public/mockServiceWorker.js; apps/console devDeps @dnd-kit/core|sortable|utilities and autoprefixer with 0 references; docs/CONSOLE-STREAMLINING-SUMMARY.md names two packages that do not exist (@object-ui/routing, @object-ui/console-components).

Recommendation (each S; one PR per package or group)

  • Delete the nine modules and their barrel lines (one ! changeset per package); then the per-package zero-reference batches starting with gantt, designer, collaboration, mobile.
  • plugin-ai: maintainer decision — retire (package, locale block, fixed-group entry) or wire it in register-plugins.ts like plugin-markdown. Ruled A (6398569691): retire the package, the locale block and the fixed-group entry; tombstone the types/zod mirrors.
  • runner: private: true, move under apps/ or examples/, drop from the fixed group.
  • Move the nine reset* helpers into @object-ui/test-support or tag them @internal and strip in the dts build.
  • providers: delete the trio and the test exemptions; point the byo example at @object-ui/react; fold UploadProvider into fields and the upload adapter into data-objectstack, then retire the package.
  • One PR deleting the 122 CONFIRMED dead keys from all ten packs (read each key's screen first, as the tool asks; CONFIRMED only).
  • Delete the root orphans and the unused declarations listed above; update skills/objectui/guides/testing.md, which still teaches msw.

Benefit: at least 2,200 source lines, about 1,220 translated strings, two packages out of the release group, nine public symbols, four root files and two Playwright configs. External npm consumers are 未实测; rollback is a revert per item.

Refs: objectui#11608, objectui#11616, objectui#12083, objectui#12058, objectui#12428, objectui#3530, objectui#3650.

Filed by the read-only whole-repo review session https://claude.ai/code/session_01BDtwYUWhLGyWLzYQjZ95Cf on 2026-10-24; the maintainer approved filing (「同意,创建任务」). Full evidence files sit in that session's scratchpad (objectui-review-report.md, findings-*.md). ⛔ Not a claim; for triage to grade and route. Graded; the plugin-ai bullet is ruled (see the first line).

Activity

  1. objectstack-fleet commented on Nov 8, 2026

    @objectstack-fleet
    Contributor

    domain:ui#1 · os-project-manager · session_01FEkQ5nLA7wiVY5YWjT9Svr

    Landed · 2026-11-08T06:22Z

    Reading Value
    PR #31387 (batch 17) MERGED 2026-11-08T06:22Z, merge commit 96b5dab128806d094dc1dce9fdc58c194dd4ea18 on main
    #25921 still open (Part of #25921), as intended

    Delivered: CollaborationTranslate is gone from the @object-ui/collaboration entry, and MobileDialogContentProps from the @object-ui/components entry. Both declarations keep their module export (contract review PASS 6717815459, delta PASS 6717856176).

    Release: claim 6717134663 (batch 17), domain:ui#1 · 2026-11-08T06:22Z · batch merged, card back to pm:queue with no assignee. ui seat 1 goes off shift on the maintainer's word, so the next batch belongs to whichever ui seat claims it.
    Resume-from: none (the next batch starts from main with a fresh census)

    Still on this card:

    • the seven Spec* aliases in @object-ui/types index.ts, which wait on the predicate-2 ruling (amendment 6697494793);
    • FieldValidationFunction (with the unexported FieldConstraints), held by three prose readers (amendment 6714801527, option B);
    • UploadedFileMetadata, which a fields release note teaches as the host-stored value shape (option C, unmeasured host use);
    • DrawerClose, whose outside hits are JSX text in an eslint rule comment and fixture (amendment 6714859776);
    • LocationCellRenderer and AddressCellRenderer in @object-ui/fields, held out by amendment 6716064637.

    Exhausted under the current rules: @object-ui/core (after batch 15), plugin-gantt and plugin-designer (parseHHMM and Minimap are README-taught), collaboration and components (after this batch; census /mnt/project-files/pm-orders/ui/25921-b17-census.md).

  2. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 8, 2026
  3. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    Contributor

    domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD

    Claim: PM loop round 1 · 2026-11-15T03:00Z
    Session: session_01FEkQ5oqJ6hpya34gYbwBaJ (card thread, dev) · seat session_01FEkQ5nWoa1Ze1QzjRTSYXD
    Account: os-project-manager
    Branch: claude/project-thread-69v17q
    Worktree: objectstack-issue-25921-b18
    Domain: domain:ui
    Seat: domain:ui#1
    File surface: batch 18, census phase: read-only. No file is edited until the seat names one group in an amendment to this claim; the census goes to /mnt/project-files/pm-orders/ui/25921-b18-census.md. The group, once named, stays inside ui/packages/** (not components/src/ui/, not ui/packages/types/src/ai.ts, no subpath entry) plus one root .changeset/25921-<slug>.md. ⛔ packages/**.
    Container & model: S, mode:thread, model: default tier, effort: default
    Clause-②: no
    Metadata-protocol: none
    Responsibility: none in the census phase | none (read-only) | none; if a removal group is named, the amendment restates this line as Clause-②: no (narrowing)
    Thread-read: none
    Premise: batch 17 Landed note 6718192057 (exhausted packages and held names) read against current origin/main by the dev before proposing
    Serial constraints cleared: no other pm:dispatched domain:ui card claims a file in this surface (live label read); no other ui seat holds a Claim: on these files; no other #25921 batch is in flight

    Scope: batch 18 of the card, one PR at most, Part of #25921 (never a closing keyword). p3; no other batch of this card is in flight. The declaration lines start at no / none; the dev measures them on the diff, and the seat amends this claim if they differ. Order: /mnt/project-files/pm-orders/ui/order-25921-b18.md. Summons: the maintainer's 「开放 p3卡认领」 (this project, 2026-11-14T21:21Z).

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 15, 2026
  5. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    Contributor

    domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD

    Claim: PM loop round 1 · 2026-11-15T03:02Z
    Session: session_01FEkQ5oqJ6hpya34gYbwBaJ (card thread, dev) · seat session_01FEkQ5nWoa1Ze1QzjRTSYXD
    Account: os-project-manager
    Branch: claude/project-thread-69v17q
    Worktree: objectstack-issue-25921-b18
    Domain: domain:ui
    Seat: domain:ui#1
    File surface: batch 18, census phase: read-only. No file is edited until the seat names one group in an amendment to this claim; the census goes to /mnt/project-files/pm-orders/ui/25921-b18-census.md. The group, once named, stays inside ui/packages/** (not components/src/ui/, not ui/packages/types/src/ai.ts, no subpath entry) plus one root .changeset/25921-<slug>.md. ⛔ packages/**.
    Container & model: S, mode:thread, model: default tier, effort: default
    Clause-②: no
    Metadata-protocol: none
    Responsibility: none in the census phase | none (read-only) | none; if a removal group is named, the amendment restates this line as Clause-②: no (narrowing)
    Thread-read: none
    Premise: batch 17 Landed note 6718192057 (exhausted packages and held names) read against current origin/main by the dev before proposing
    Serial constraints cleared: no other pm:dispatched domain:ui card claims a file in this surface (live label read); no other ui seat holds a Claim: on these files; no other #25921 batch is in flight

    Scope: batch 18 of the card, one PR at most, Part of #25921 (never a closing keyword). p3; no other batch of this card is in flight. The declaration lines start at no / none; the dev measures them on the diff, and the seat amends this claim if they differ. Order: /mnt/project-files/pm-orders/ui/order-25921-b18.md. Summons: the maintainer's 「开放 p3卡认领」 (this project, 2026-11-14T21:21Z).

  6. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    Contributor

    domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD

    Claim amendment · 2026-11-15T03:15Z
    Group (batch 18): clearSharedDiscoveryCache (@object-ui/data-objectstack), the last open helper of the card's reset* bullet. Census: /mnt/project-files/pm-orders/ui/25921-b18-census.md (objectstack 6e287974, hotcrm 2492ac6).
    Clause-②: no (narrowing). One public export leaves the package entry; nothing is widened.
    Metadata-protocol: none (unchanged).
    Responsibility: a consumer that imported clearSharedDiscoveryCache from the package entry | its import no longer resolves (no replacement; test-only) | none found in either repo outside tests (census Part 3)
    File surface:

    • new ui/packages/data-objectstack/src/sharedDiscovery.ts: the cache block (discoveryCache, getSharedDiscovery, clearSharedDiscoveryCache) moved verbatim
    • ui/packages/data-objectstack/src/index.ts: keeps re-exporting getSharedDiscovery; the helper leaves the entry with the "test-only and stays off the barrel" comment its eight siblings carry
    • the 38 test files the census names (28 in-package, 10 in console / app-shell / react): import line only, no assertion changes
    • one root .changeset/25921-data-objectstack-shared-discovery-cache-helper.md: ! patch, BREAKING, FROM/TO, one runtime-export-retired marker
      Rules: every retire the zero-consumer surface: nine dead modules (2,211 LOC), plugin-ai, runner's publish flag, test-only reset helpers on public barrels, the providers trio, 122 dead i18n keys, root orphans #25921 batch rule in the order holds. The PR says Part of #25921. Owed before landing: a CONTRACT_REVIEW_TIER contract record on the final head (the seat runs it) and the full dogfood battery on that head.
      Follow-ups noted, not in this batch: the runner move, and the 57 newly confirmed i18n keys.
  7. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    Contributor

    domain:ui#1 · os-project-manager · session_01FEkQ5oqJ6hpya34gYbwBaJ
    os-dev-report

    {
    "issue": 25921,
    "status": "done",
    "branch": "claude/project-thread-69v17q",
    "pr": "#33666",
    "head": "85ef16b8",
    "session": "session_01FEkQ5oqJ6hpya34gYbwBaJ",
    "premise_still_valid": true,
    "summary": "Batch 18 (claim 6888311800, amendment 6888438983): clearSharedDiscoveryCache, the last open helper of the card's reset* bullet, leaves the @object-ui/data-objectstack entry. The per-origin discovery cache block (the Map, getSharedDiscovery, clearSharedDiscoveryCache) moves verbatim to the new in-package module src/sharedDiscovery.ts; index.ts imports getSharedDiscovery for ObjectStackAdapter.connect() and keeps re-exporting it, and carries the 'test-only and stays off the barrel' comment in place of the helper. 38 tests (28 in-package, 10 in console/app-shell/react) import the helper from the module; no assertion changes. One ! patch changeset 25921-data-objectstack-shared-discovery-cache-helper.md with BREAKING, FROM/TO and runtime-export-retired x1. Census: /mnt/project-files/pm-orders/ui/25921-b18-census.md.",
    "tests": "HEAD 85ef16b (code in 20126db, gate fix in 85ef16b). Under the lock: data-objectstack closure build + type-check (tsconfig includes its tests) VERDICT command-exit 0; console closure build + type-check of @object-ui/react, @object-ui/app-shell, @object-ui/console (each with its test tsconfig) VERDICT command-exit 0. pnpm --dir ui exec vitest run --maxWorkers=2 packages/data-objectstack/ plus the 10 cross-package test files: VERDICT command-exit 0, Test Files 131 passed (131), Tests 1475 passed (1475); after 85ef16b canvasDataSource-27585.test.tsx 5/5. Reverse probe: TS checker export list of src/index.ts 127 -> 126, exactly clearSharedDiscoveryCache gone; built dist/index.js at runtime has no clearSharedDiscoveryCache key and has getSharedDiscovery and ObjectStackAdapter; a probe compiled against dist/index.d.ts answers TS2305 for the helper and nothing on the control line. No ablation: verbatim code move plus unexport of a test-only helper, no tested behaviour changed.",
    "gates": "dispatch-gates --commands (base 6e28797), 38 derived. Round 1 on 20126db: 37 exit 0, check:test-source-alias exit 1 (the edited canvasDataSource-27585.test.tsx reaches lazy import('@objectstack/lint') and import('@objectstack/formula')); fixed in 85ef16b with the two module-top side-effect imports the gate prescribes. Round 2 on 85ef16b: all 38 run stdin closed, all exit 0 (check-adr-0087-registration verified @object-ui/data-objectstack#clearSharedDiscoveryCache; ui vitest scripts/ 171 passed | 2 skipped files, 5062 tests; type-check-debt 0 above recorded; cross-package-test-inputs OK). --ran with ':: exit N' lines: 38 derived, 38 run, 0 NOT-MEASURED (a DERIVED zero), 0 UNRUN. Extra: check-platform-checklist --changed-from origin/main exit 0 (0 anchored files); ui check:new-line-citations exit 0 (0 new). CI check-runs on PR #33666: not read at report time (just opened). Record /mnt/project-files/pm-orders/ui/25921-b18-gates-ran.txt",
    "line_budget": "41 files, +124 / -65 = 189 changed lines (new module 36 lines, changeset 19, the rest one-to-three-line import edits), under the 3000 threshold",
    "files_changed": [
    ".changeset/25921-data-objectstack-shared-discovery-cache-helper.md",
    "ui/packages/data-objectstack/src/sharedDiscovery.ts (new)",
    "ui/packages/data-objectstack/src/index.ts",
    "28 test files in ui/packages/data-objectstack/src/ (import line)",
    "ui/apps/console/src: LocalizationFetchProvider.test.tsx, tests/localizationBootDedup.test.tsx, languageSeed.test.ts, pages/system/recordReadability.refused-11878.test.ts (import line)",
    "ui/packages/app-shell/src: layout/tests/ConnectionStatus.followsRequests-12295.test.tsx, views/tests/identityImport.test.ts, views/tests/identityImportSavedMapping.test.tsx (import line), views/metadata-admin/previews/canvasDataSource-27585.test.tsx (import line + two module-top side-effect imports)",
    "ui/packages/react/src/utils: error-message.adapter-unanswered-29885.test.ts, error-message.adapter-connection-unanswered-29916.test.ts (import line)"
    ],
    "dogfood_battery": "85ef16b8 · os-verify-lock VERDICT command-exit 0 (held 41m18s) · Test Files 467 passed | 3 skipped (470) · Tests 3953 passed | 42 skipped (3995) · no failure",
    "mcp_calls": "7 reads (issue_read get x1, issue_read get_comments x4, list_pull_requests x1, pull_request_read get x1); 0 writes",
    "api_writes": "2 relay writes: pr_create (fleet-write run 43680150092, PR #33666, draft, body read back identical 10352 bytes, no assignees, no labels) and this os-dev-report comment via post-stamped.mjs; plus git pushes of the harness branch (not REST). Write budget spent: 3 of 3",
    "deviations": [
    "canvasDataSource-27585.test.tsx got two module-top side-effect imports beyond its import-line repoint: check:test-source-alias judges any test file a change edits and prescribes exactly that fix; named in the PR body",
    "os-dev.md rule 2 says pr_create carries assignees; the order and AGENTS.md say none, so none were sent",
    "no labels on pr_create: the order named none and the diff ships (changeset, not skip-changeset)",
    "shared checkout detached so the designated branch could live in worktree objectstack-issue-25921-b18",
    "branch not merged with origin/main (main moved to dd291b8 after base 6e28797); the merge queue rebuilds on main"
    ],
    "open_questions": [],
    "security_findings": "none",
    "out_of_scope_findings": [
    "carrier: #25921 · runner is private and out of the release group but not moved under apps/ or examples/ (42 referencing files incl. a skills guide); seat named it a follow-up in 6888438983 · noted, not filed",
    "carrier: #25921 · node ui/scripts/check-i18n-dead-keys.mjs now lists 57 non-plural CONFIRMED keys that are not the card's 122 (engine.edit., engine.inspector., engine.studio., designer., perm.stat.*); each needs its screen read; seat named it a follow-up · noted, not filed"
    ]
    }


    Generated by Claude Code

  8. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    Contributor

    domain:ui#1 · os-project-manager · session_01FEkQ5nWoa1Ze1QzjRTSYXD

    Landed · batch 18 · 2026-11-15T06:33Z

    reading value
    PR #33666 MERGED as 854d3837 on main (Part of #25921; the card stays open)
    contract record PASS 6889824738 at CONTRACT_REVIEW_TIER (narrowing face)
    what left clearSharedDiscoveryCache (@object-ui/data-objectstack), the last open helper of the card's reset* bullet; the cache block now lives in src/sharedDiscovery.ts
    census /mnt/project-files/pm-orders/ui/25921-b18-census.md (objectstack 6e287974, hotcrm 2492ac6)

    What is left on the card, per the batch 18 census:

    • runner is private and out of the release group but has not moved (42 referencing files, a skills guide among them).
    • 57 newly confirmed dead i18n keys (not the card's 122, which are done). Each needs its screen read.
    • The export census over the 27 non-exhausted packages leaves 0 to 3 scattered names per package and no free comment-headed block. The smallest candidate is ContainerSchemaWithChildren + SCHEMA_VERSION in @object-ui/types.

    Held names and exhausted packages stand as in 6718192057.

    State: pm:dispatched → pm:queue, assignee cleared. The card is p3, and P3 claiming is closed (the maintainer's 「后续只处理 p1 p2」, 2026-11-15T05:05Z), so no batch 19 is dispatched.

  9. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 15, 2026
  10. removed
    area:devpath
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:fleetdomain:uipm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions