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

feat(tooling): gate a DECLARED-but-never-imported dependency, and remove the 37 this repository had - #8304

Merged
baozhoutao merged 3 commits into
mainfrom
claude/issue-8198-unused-declared-deps-gate
Sep 7, 2026
Merged

baozhoutao merged 3 commits into
mainfrom
claude/issue-8198-unused-declared-deps-gate

Conversation

@claude

@claude claude Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Fixes #8198

check:phantom-deps judges imports that are not declared, and its own scope note names the direction it leaves open. Nothing judged the reverse, so a declaration could outlive its last consumer indefinitely — which is what happened to recharts in @object-ui/components after objectui#7397 deleted its only importer, and what objectui#7625 removed by hand.

Notation note: this body spells placeholders as WORDS, never in their real angle-bracket form, because this repository has measured that GitHub's body sanitizer deletes tag-shaped fragments even inside backticks.

What landed

  • scripts/check-unused-dependencies.mjs — pnpm check:unused-deps, judging dependencies and optionalDependencies of every released package.
  • scripts/__tests__/check-unused-dependencies.test.ts — 37 cases.
  • One line in the root package.json scripts block, beside check:phantom-deps. Merged (not rebased) onto origin/main after PR feat(tooling): port the comment-mask corpus sweep and measure objectui#7882 residue #8277 landed check:comment-mask-corpus into the same block; both lines are present.
  • 37 unused runtime declarations removed across 16 manifests, plus one @types/… orphaned by them.
  • One documentation snippet repaired — see "The one thing that went red" below.
  • A minor changeset, because the removals can break a consumer relying on hoisting.

Home decision: a new file, not a second direction inside check-phantom-dependencies.mjs

Judged on the four axes; the deciding one was the first.

  • 实际业务需求 (measured, not asserted). The two directions need OPPOSITE file populations, and that is the reason phantom-deps itself gave for leaving this direction alone. phantom-deps reads src/ only and must — a vite.config.ts import is not a shipped import. This gate must read the whole package — a dependency consumed only by a build config, only by a stylesheet, or only by a bin/ helper IS consumed. Measured: the wider scan is what clears 12 of the 41 hits. One scanner cannot serve both scopes without a per-question switch, which is two gates wearing one exit code. The exit codes matter separately: phantom-deps is green with zero findings, this direction had 41 on fc32921aa, so fusing them would have meant holding phantom-deps' verdict hostage to a cleanup or landing this one non-enforcing.
  • 项目长远合理性. Contract-first: one gate, one question, one verdict. Every parser helper is IMPORTED from phantom-deps (discoverPackages, readReleaseGroup, moduleSpecifiers, packageNameOf, isBuiltin, SKIP_DIRS, SOURCE_FILE), pinned by a test, so the two directions cannot come to disagree about what an import is. No machinery is duplicated.
  • 防 AI 写代码犯错. A red names one question. The failure text names the package, the field, the key and the three scans that found no consumer, and the hint says what to do. Folding a second direction into an 800-line file makes both harder to act on.
  • 创业阶段不扩散. A new file plus one script line is the smaller surface, not the larger: fusing would be the same code in a bigger file, plus a switch.

The census, on fc32921aa

40 released packages, 361 dependencies keys, 89 peers, 345 devDependencies.

field declared with no consumer
dependencies 361 41
optionalDependencies 0 0
peerDependencies 89 22
devDependencies 345 67

Class table, after the three detection rules — every hit classified before anything was decided, no class ignored without a reason:

class count disposition
stylesheet-only (@plugin 'tailwindcss-animate', @import 'tailwindcss') 4 DETECTION RULE — CSS at-rules read from .css / .scss / .sass / .less
type-only (@types/glob, whose glob is imported) 1 DETECTION RULE — @types/X follows X, with npm's @types/scope__name mangling inverted
global-scope types (@types/node) 0 in a gated field NAMED CARVE-OUT, counted every run — its consumer is process / Buffer / the NodeJS namespace, which no import scan can see; a scan that demanded a builtin import would red a package for reading an environment variable
consumed only outside src/ (a build config, a bin/ helper) 12 DETECTION RULE — the whole package directory is scanned
emitted into GENERATED source as a string (@object-ui/cli) 2 ALLOWANCE with verify — objectui dev runs the generated app against the CLI's own install
inlined by a bundler named in its config (object-ui, tsup noExternal) 2 ALLOWANCE with verify
genuinely dead — the name appears nowhere in the package but its own manifest and CHANGELOG 37 REMOVED
plugin-map's zod / @objectstack/spec (prose in comments only) (within the 37) REMOVED
string key in a postcss.config / tailwind.config plugin map 0 NO RULE, deliberately — a real class in the wild with zero instances here; written into the header so the next reader knows it was considered, not missed

The 37 removals, verified by a whole-package grep each before removal:

package removed from dependencies
plugin-designer @dnd-kit/core, @dnd-kit/sortable, @dnd-kit/utilities, @object-ui/fields
plugin-chatbot react-markdown, react-syntax-highlighter, remark-gfm (+ the orphaned @types/react-syntax-highlighter from devDependencies)
plugin-report @object-ui/plugin-grid, clsx, react-i18next, tailwind-merge
plugin-map @objectstack/spec, lucide-react, zod
runner class-variance-authority, clsx, tailwind-merge
layout clsx, tailwind-merge, react-dom
plugin-dashboard clsx, tailwind-merge, react-dom
plugin-ai @object-ui/react, clsx, tailwind-merge
core lodash, zod
fields clsx, tailwind-merge
console @object-ui/react-runtime, sucrase
auth @object-ui/types
plugin-calendar @object-ui/fields
plugin-editor, plugin-markdown @object-ui/react
react react-hook-form

pnpm install afterwards: Packages: -10.

layout and plugin-dashboard's react-dom is the interesting one — an exact pin in dependencies alongside a peer range, i.e. a library hard-depending on the renderer it asks its host to supply. Their siblings plugin-charts / plugin-form / plugin-list do not do this. The react half of the same shape is invisible to this gate (react IS imported) and is filed as objectui#8303.

What is gated, and what is only MEASURED

peerDependencies is NOT gated. A peer is a constraint on the HOST's graph, not a claim to import the name; 21 of the 22 unconsumed peers are react-dom, the renderer these component libraries require of whatever mounts them. Gating it would red 21 packages on day one over a convention — a decision for the maintainer, filed as objectui#8300, not a rider here.

devDependencies is NOT gated. They are the field a consumer's install does not fetch, which is the premise phantom-deps' own runtime tier rests on; the 67 remaining are dominated by toolchain named BY STRING in a config rather than imported.

Both counts are printed on every run, so the size of both concessions stays visible instead of being absorbed.

The Atoms constraint (AGENTS.md line 61): measured, and NOT given its own assertion

@object-ui/components declares 48 runtime dependencies today — 6 workspace siblings, @objectstack/spec, 28 Radix primitives, and 13 Shadcn upstream libraries (cmdk, date-fns, embla-carousel-react, input-otp, lucide-react, next-themes, react-day-picker, react-hook-form, react-resizable-panels, sonner, vaul, plus the cn() trio and tailwindcss-animate). Every one has a consumer; the package is green under the generic scan.

An explicit allowed-list assertion was weighed on the four axes and not added, and the deciding evidence is the card's own instance:

  • 实际业务需求. A named allowlist would NOT have caught recharts. recharts was legitimately on the list the day it was added — chart.tsx imported it — and the defect was that the importer went away. What catches that is exactly the generic unused-declaration scan, which is what landed. An allowlist is strictly weaker for the measured instance.
  • 项目长远合理性. "Zero heavy 3rd-party deps" has no measurable definition in this tree — no byte budget, no list, no gate reads a size. A 48-name allowlist would be a ledger with no rule behind it, and every legitimate new Shadcn primitive would be a ledger edit.
  • 防 AI 写代码犯错. Declaring a list an agent edits to make a red go away is a weaker contract than a rule it cannot argue with.
  • 创业阶段不扩散. No pull: the tree satisfies the constraint today, and defining "heavy" is a maintainer's decision, not a rider on a tooling card.

Reported, not implemented. If the maintainer wants "heavy" made mechanical, that needs the definition first.

Controls

The card's own control, reproduced on this tree with the gate's scanner:

lucide-react         packages/components   CONSUMED (import)       — 70 files, matching the card's 0c8dbc492 reading
tailwindcss-animate  packages/components   CONSUMED (css at-rule)  — packages/components/src/index.css
recharts             packages/components   NOT CONSUMED            — 0 files; and no longer declared (objectui#7625)

So the zero is a real zero, and recharts is the true negative this gate would have caught.

Ablation, on the committed tree, trap-restored and blob-hash proved

Each leg proved its mutation reached disk by an on-disk marker count before and after, and each restore was proved by git diff HEAD being empty — never by a git checkout exit code.

baseline  check-unused-dependencies.mjs  blob=fe12daa98a7a9428dbafedb727213c364392bb59
baseline  packages/core/package.json     blob=fb341c8ce4d61a08d3d6eead8d433d1948ec9924

LEG 0  unmodified                                                  EXIT=0  green
LEG 1  plant an unused dependencies key in packages/core           EXIT=1  marker 0 to 1; output names 'ghost-dependency-8198'
LEG 2  delete the live allowance row for cli -> components         EXIT=1  marker 1 to 0; reports @object-ui/cli declares '@object-ui/components'
LEG 3  add an allowance for a key that IS consumed (self-deleting) EXIT=1  marker 0 to 2; reports stale-allowance, "now HAS a consumer ... TabBar.tsx"
LEG 4  unmodified again, same run                                  EXIT=0  green

Leg 3 is the one that matters most: an allowance that has stopped being NEEDED reds, not just one that has stopped holding. That is what keeps this from becoming a permanent allowlist.

The one thing that went red, and why the fix went where it did

scripts/__tests__/check-doc-snippet-types.test.ts failed after the removals:

content/docs/guide/objectos-integration.mdx:96 react-dom/client

That snippet's react-dom/client import resolved only because @object-ui/layout carried the react-dom entry this PR removed — the doc gate's paths map is built from dependencies only, and its own header says so.

The remedy was NOT to put the entry back. That gate's header rules on this exact shape, quoted verbatim:

⛔ What this rule exists INSTEAD of, again: adding @playwright/test to some package's dependencies so the map covers it. See the 2026-08-24 ruling quoted at the end of the next section — a manifest is a claim about what a package needs, and a doc gate's convenience is not that claim.

So the doc was wrong, and had been wrong on an accident: no @object-ui/* package installs a DOM renderer for its consumer — every one asks for it as a peer — so a reader copying that block never had the import backed by anything they install. The block now exports App and stops at the component boundary; the mounting step is prose naming createRoot and StrictMode without importing a package the guide cannot promise the reader has. Adjacent context: objectui#8059 is about that same bound's remedy text for peer-declared specifiers.

Gates run locally, with exit codes

gate exit verdict line
pnpm check:unused-deps 0 Every gated declaration has a consumer in the package that declares it.
pnpm check:phantom-deps 0 Every in-scope import is declared by the package that publishes it.
pnpm exec turbo run build --filter=!@object-ui/site 0 43 successful, 43 total
pnpm exec vitest run scripts/__tests__/ 0 117 files, 3459 tests passed
pnpm exec vitest run auth core fields layout react runner cli 0 393 files, 6379 tests passed
pnpm exec vitest run the nine changed plugins + vscode-extension 0 222 files, 1971 tests passed
pnpm exec vitest run apps/console/ 0 89 files, 1069 tests passed
pnpm check:doc-snippets 0 Root bound: no block imports a specifier that resolves only through this repository's ROOT manifest. 624 of 624 blocks judged.
node scripts/check-doc-links.mjs 0 Links are valid across 17 scan roots.
pnpm check:doc-types / pnpm check:doc-fences 0 green
pnpm check:spec-floors 0 Every consumer-facing spec floor carries the symbols its artifact references.
pnpm check:dist-completeness 0 12 packages complete, 1621 emitted files verified
pnpm check:self-import / check:side-effects-array 0 green
pnpm check:entry-guard 0 72 files, no guard outside the baseline
pnpm type-check:scripts 0 green
pnpm lint:root 0 0 errors, 32 warnings (all pre-existing no-explicit-any)
pnpm check:control-bytes 0 6599 tracked text files scanned
node scripts/check-changeset-presence.mjs 0 1 changeset added
check-changeset-no-major / -fixed / -overwrite 0 green
node scripts/check-governed-queue-guard.mjs --test (all 25 paths) 0 NOT GOVERNED
node scripts/check-comment-mask-corpus.mjs (after the merge) 0 within the residue objectui#7882 holds open

One gate is NOT green, and it is not this PR's: node scripts/check-node-esm-load.mjs exits 1 on its provenance leg because turbo's shared cache replayed 5 packages built by a SIBLING WORKTREE in this container (objectui-issue-5174-b36): mobile, permissions, providers, react-runtime, types. None of those five has a dependency removed by this PR. Its load leg graded 29 entries and reported no failure outside its by-design list. CI builds fresh, so it has no shared-cache question.

Deviation, declared

check:unused-deps has no step in .github/workflows/ci.yml beside its sibling check:phantom-deps, because that path was outside this session's declared file surface. It IS enforcing today through its pin test's repository-green case, which pnpm test runs. The missing step is filed as objectui#8301 with the exact YAML.

Findings filed out of scope

  • objectui#8300 — 21 packages declare a react-dom peer no file in them consumes; the convention needs a decision, not a gate.
  • objectui#8301 — this gate has no ci.yml step.
  • objectui#8302 — six plugin vite.config.ts files carry alias and globals rows for packages the plugin never imports.
  • objectui#8303 — layout and plugin-dashboard pin react in dependencies while also asking for it as a peer.

All four are unassigned, labelled finding only, deduplicated against the 455 open issues with check:phantom-deps as a control term that hit.

Session: https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr

🤖 Generated with Claude Code

https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr


Generated by Claude Code

`check:phantom-deps` judges imports that are not declared and says so in its
own scope note; nothing judged the reverse, so a declaration could outlive its
last consumer indefinitely (objectui#8198, split out of objectui#7625).

New `scripts/check-unused-dependencies.mjs` (`pnpm check:unused-deps`) asks the
reverse question over `dependencies` / `optionalDependencies` of every released
package. It is a second script rather than a flag on the first because the two
directions need OPPOSITE file populations: phantom-deps must read `src/` only,
this one must read the whole package (a dependency consumed by `vite.config.ts`,
a stylesheet at-rule or a `bin/` helper is consumed). Every parser helper is
imported from phantom-deps so the two cannot disagree about what an import is.

Three detection rules, no blanket ignores: module specifiers anywhere in the
package; CSS `@import` / `@plugin` / `@config` / `@source` / `@use` targets; and
`@types/X` follows X, with `@types/node` a named, counted carve-out because its
consumer is a global scope rather than a module edge. `peerDependencies` and
`devDependencies` are measured and printed but not gated, each for a stated
reason. Allowances carry evidence, re-derive it on every run, and go red when
they stop being NEEDED as well as when they stop holding.

First enforcing run: 41 unused runtime declarations over 20 of 40 released
packages. 37 removed here, each verified by a whole-package grep first; 4
allowed, both shapes verified per run.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr
…oundary

The `react-dom/client` import in this snippet resolved only because
`@object-ui/layout` carried a `react-dom` entry in its `dependencies` — an
entry no file in that package consumes, removed by the commit before this one.

`check:doc-snippet-types`' ROOT BOUND is explicit about the direction to fix
this in: "a manifest is a claim about what a package needs, and a doc gate's
convenience is not that claim" (maintainer ruling 2026-08-24). No `@object-ui/*`
package installs a DOM renderer for its consumer — every one of them asks for
`react-dom` as a PEER — so a reader copying this block never had the import
backed by anything they install. It was green on this repository's own root
`devDependencies`, which is exactly what that bound exists to refuse.

The block now exports `App` and stops there; the mounting step is prose, naming
`createRoot` and `StrictMode` without importing a package the guide cannot
promise the reader has.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3472.1 KB 3512.7 KB
Main entry chunk (gzip) 143.9 KB 350 KB
Entry file index--2K1PeVY.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 15.67KB 5.75KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 5.13KB 2.35KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 497.99KB 113.90KB
core (index.js) 7.20KB 2.88KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 189.15KB 52.56KB
fields (index.js) 243.14KB 61.38KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 6.57KB 2.76KB
i18n (index.js) 3.65KB 1.47KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.84KB 10.94KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 11.71KB 4.29KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 5.12KB 1.74KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 15.16KB 3.68KB
plugin-calendar (index.js) 48.03KB 13.29KB
plugin-charts (index.js) 71.39KB 19.92KB
plugin-chatbot (index.js) 193.54KB 46.04KB
plugin-dashboard (index.js) 131.43KB 34.43KB
plugin-designer (index.js) 213.21KB 43.63KB
plugin-detail (index.js) 248.56KB 63.89KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 131.01KB 32.32KB
plugin-gantt (index.js) 167.16KB 40.99KB
plugin-grid (index.js) 208.58KB 56.63KB
plugin-kanban (index.js) 52.83KB 14.63KB
plugin-list (index.js) 113.38KB 27.73KB
plugin-map (index.js) 20.49KB 6.83KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.42KB 11.92KB
plugin-timeline (index.js) 30.10KB 8.74KB
plugin-tree (index.js) 9.33KB 3.25KB
plugin-view (index.js) 84.46KB 20.80KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 81.07KB 26.86KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.55KB 2.45KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 20.57KB 5.88KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 13.64KB 4.59KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.74KB 1.41KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (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

@claude

claude Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

ACCEPT (#8198 — the reverse-direction gate, and the 37 dead declarations it found) — reviewed on the tree at head e2409120f against origin/main 3c6394cb2, read 2026-09-07T09:20Z; domain:devx @ objectui seat, PM session session_01FhBNJcLRZLe8M87VcUgpKr. Merges clean.

Verified from the diff, not the report:

Fixes #8198 on the first line: the gate holds for the whole released population.

Next: CI convergence → flip ready (MCP channel is rate-limited at 09:20Z; retry at 09:40Z) → post-flip guard → auto-merge SQUASH → queue confirmation → landing probe on re-fetched origin/main (check:unused-deps line present; lodash absent from packages/core/package.json; control: @objectstack/spec still present there).


Generated by Claude Code

@baozhoutao
baozhoutao marked this pull request as ready for review September 7, 2026 09:32
@baozhoutao
baozhoutao added this pull request to the merge queue Sep 7, 2026
@claude

claude Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Armed: PR #8304 flipped ready at 2026-09-07T09:32:47Z on head e2409120f (MCP channel recovered 09:32Z); post-flip Governed Surface Queue Guard completed/success at 09:33:13Z; auto-merge SQUASH enabled; added_to_merge_queue at 09:34:10Z; merge-group runs started 09:36:57Z. Landing stroke on merge: probe on re-fetched origin/main (check:unused-deps line in package.json; lodash absent from packages/core/package.json; control: @objectstack/spec still declared there); the card closes via Fixes #8198. — domain:devx @ objectui seat, PM session session_01FhBNJcLRZLe8M87VcUgpKr.


Generated by Claude Code

Merged via the queue into main with commit 0ea7054 Sep 7, 2026
34 checks passed
@baozhoutao
baozhoutao deleted the claude/issue-8198-unused-declared-deps-gate branch September 7, 2026 09:52
@claude

claude Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

LANDED: merged at 2026-09-07T09:52:33Z as 0ea7054f8 (squash — one parent, via the merge queue). Content probe on re-fetched origin/main at 0ea7054f8 (read 09:53Z): "check:unused-deps": "node scripts/check-unused-dependencies.mjs" present in package.json (1) and the script present; lodash absent from packages/core/package.json (0) with @objectstack/spec still declared there as the control (1). Merge commit is an ancestor of origin/main. #8198 closed via Fixes; its pm:dispatched is stripped in the same stroke. Follow-ups filed by the dev: #8300 (react-dom peers), #8301 (no ci.yml step — enforced via the pin test today), #8302 (vite alias rows), #8303 (react pinned in deps and peer). — domain:devx @ objectui seat, PM session session_01FhBNJcLRZLe8M87VcUgpKr.


Generated by Claude Code

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

finding(tooling): nothing gates a DECLARED-but-never-imported dependency — check:phantom-deps only judges the opposite direction

2 participants