Skip to content

fix(deps): declare the @objectstack/spec floor both artifacts actually require - #6368

Merged
os-support-ai merged 1 commit into
mainfrom
claude/issue-6361-spec-floor-bump
Aug 25, 2026
Merged

fix(deps): declare the @objectstack/spec floor both artifacts actually require#6368
os-support-ai merged 1 commit into
mainfrom
claude/issue-6361-spec-floor-bump

Conversation

@claude

@claude claude Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Fixes #6361

What

packages/core/package.json and packages/data-objectstack/package.json now declare
"@objectstack/spec": "^17.2.0" instead of ^17.0.0. Both shipped artifacts reference
symbols @objectstack/spec@17.0.0 does not export, so the declared range was a false
public claim about what these packages work against.

^17.2.0 is not taken on trust from the card: it is scripts/check-spec-range-floors.mjs's
own computed answer, printed by the red run and confirmed by the gate's verdict after the
change. The tolerant alternative the gate forbids verbatim — "Do not add a tolerant
re-declaration on this side: the range is the claim, and the claim is what is wrong"
— is
not used. No source file is touched.

Why this is release-blocking rather than cosmetic. spec-range-floors.yml is deliberately
not a pull_request job, so every PR stayed green while the blocking copy on the publish path
pnpm changeset:publish runs this gate before a single tarball reaches npm — would have
cancelled the next release.

The two gate readings

The gate needs a full workspace build to answer at all; run before one it returns
[no-artifact], a prerequisite-not-met failure that reads exactly like a red gate. Both
readings below sit on top of the build the gate itself prescribes, and both name the
population they judged, which is identical either side:

Inspected 19 of 39 published package(s) — 2028 artifact file(s), 339 of them carrying a @objectstack/spec reference this gate could read symbol names in, 271 (subpath, symbol) pair(s) judged.

1. Red before — pnpm check:spec-floorsexit 1

Build first: pnpm exec turbo run build --filter='!@object-ui/site'Tasks: 43 successful, 43 total (Time: 7m59.478s).

❌  6 finding(s) across 2 published package(s):

      @object-ui/core  [floor-too-low]  packages/core/dist/utils/column-sortability.d.ts references `FIELD_SORTABLE_UNPROVISIONED_ANCHOR` from @objectstack/spec/api, which @objectstack/spec@17.0.0 does not export
      @object-ui/core  [floor-too-low]  packages/core/dist/utils/column-sortability.d.ts references `FIELD_UNSORTABLE_VIRTUAL_TYPE` from @objectstack/spec/api, which @objectstack/spec@17.0.0 does not export
      @object-ui/core  [floor-too-low]  packages/core/dist/utils/column-sortability.d.ts references `FieldSortability` from @objectstack/spec/api, which @objectstack/spec@17.0.0 does not export
      @object-ui/core  [floor-too-low]  packages/core/dist/utils/column-sortability.d.ts references `ObjectSortability` from @objectstack/spec/api, which @objectstack/spec@17.0.0 does not export
      @object-ui/data-objectstack  [floor-too-low]  packages/data-objectstack/dist/index.js references `FIELD_SORTABLE_UNPROVISIONED_ANCHOR` from @objectstack/spec/api, which @objectstack/spec@17.0.0 does not export
      @object-ui/data-objectstack  [floor-too-low]  packages/data-objectstack/dist/index.js references `FIELD_UNSORTABLE_VIRTUAL_TYPE` from @objectstack/spec/api, which @objectstack/spec@17.0.0 does not export

The lowest published spec that carries every symbol each package references:
      @object-ui/core  →  "@objectstack/spec": "^17.2.0"
      @object-ui/data-objectstack  →  "@objectstack/spec": "^17.2.0"

That is the gate's own answer to the range question, and it is what this PR writes.

2. Green after — pnpm check:spec-floorsexit 0

Rebuilt after the edit (Tasks: 43 successful, 43 total, Time: 5m41.886s), then:

✅  Every consumer-facing @objectstack/spec floor carries the symbols its package's artifact references.

The CI-exact invocation pnpm check:spec-floors -- --cross-check is green too, and adds its
own line:

Dual-package cross-check: 47 entry point(s) — the `import` and `require` halves export the same names.

The green run also reports reading @objectstack/spec@17.2.0's ., ./api, ./contracts,
./data and ./ui entry points — i.e. the new floor is what it actually judged, not the
installed tree.

T3 — the complete finding list, from the full-workspace run

The six findings quoted above are the whole list: the run inspected all 19 of the 39
published packages that declare @objectstack/spec in a consumer-facing field, across 2028
artifact files, and flagged only these two packages. @object-ui/plugin-detail already sits at
^17.1.0 (raised by objectui#5793) and is clean; every other spec-declaring package is clean at
^17.0.0. Nothing is pre-emptively bumped — only what the gate reported.

For completeness, the packages that declare the spec only in devDependencies
(collaboration, mobile, plugin-charts, plugin-dashboard, plugin-report, runner,
sdui-parser, console, test-support) are out of the gate's scope by design: a
devDependencies range is not installed for anybody and floors nothing.

T2 — the installed spec version

17.2.0. Read two ways in this worktree:

node -e "console.log(require('.../node_modules/@objectstack/spec/package.json').version)"   → 17.2.0
pnpm ls --filter @object-ui/core --depth 0                                                 → @objectstack/spec@17.2.0

That matters for the prerequisite: the build that produced the artifacts the gate judged was
compiled against 17.2.0, which is exactly the version the new floor names — so the artifact
read is the artifact a normal consumer install gets, and the red reading is a floor-honesty
finding rather than an artifact-mismatch artefact.

T1 — the lockfile did move, and that is part of the change

pnpm install after the manifest edit changed pnpm-lock.yaml by exactly two lines, both
recorded specifier: values under importers:. The resolved version on both edges is
untouched:

@@ importers: packages/core
       '@objectstack/spec':
-        specifier: ^17.0.0
+        specifier: ^17.2.0
         version: 17.2.0(ai@7.0.65(zod@4.4.3))
@@ importers: packages/data-objectstack
       '@objectstack/spec':
-        specifier: ^17.0.0
+        specifier: ^17.2.0
         version: 17.2.0(ai@7.0.65(zod@4.4.3))

It is included deliberately, not as a stray edit: every CI job installs with
pnpm install --frozen-lockfile, which fails when a manifest range and the recorded specifier
disagree. Nothing a consumer installs today differs — resolution already landed 17.2.0 on both
edges before the bump.

T4 — no behaviour changes

Four files, none of them source:

File Change
packages/core/package.json one line: spec range ^17.0.0^17.2.0
packages/data-objectstack/package.json one line: spec range ^17.0.0^17.2.0
pnpm-lock.yaml two specifier: lines (above)
.changeset/6361-spec-floor-17-2-0.md new, patch for both packages

packages/data-objectstack/src/** is untouched — that surface belongs to the open PR #6363.

The changeset, and what the presence gate actually said

node scripts/check-changeset-presence.mjsexit 0, verdict line:

✅  No source of a released package changed in this range, so no changeset is owed.

It does not demand one: its own header records that package.json itself never counts.
A changeset is added anyway, and the reason is the point of the card — without a version bump
these two packages never re-publish, so the corrected manifest would never reach npm and the
false floor would stay in the published tarballs. Scored patch for both packages, on the same
reasoning objectui#5793 used for the identical remediation on @object-ui/plugin-detail. Never
major (fixed group of 39).

Gates

Gate set derived by reading the CI job step lists under .github/workflows/ and keeping the
steps whose inputs this diff actually moves — published-package manifests, pnpm-lock.yaml, and
one .changeset/*.md. Union re-run after the final commit, on 20caed9c9, with a clean
working tree; each row quotes the gate's own verdict line, and each exit code was captured
before any pipe.

Gate Workflow · step Verdict line Exit
pnpm check:spec-floors -- --cross-check spec-range-floors.yml · Verify every declared spec floor carries the symbols its artifact uses ✅ Every consumer-facing @objectstack/spec floor carries the symbols its package's artifact references. 0
node scripts/check-changeset-presence.mjs changeset-presence.yml · Verify a changeset declares this change ✅ No source of a released package changed in this range, so no changeset is owed. 0
node scripts/check-changeset-no-major.mjs changeset-guard.yml · Verify no changeset declares a major bump ✅ No changeset declares a `major` bump. 0
node scripts/check-changeset-fixed.mjs ci.yml · Verify all packages are in changeset fixed group ✅ All workspace packages are in the changeset fixed group. 0
node scripts/check-control-bytes.mjs control-bytes.yml · Scan tracked text files for raw control bytes ✅ check-control-bytes: OK (scanned 5239 tracked text file(s); skipped 85 binary). 0
pnpm check:phantom-deps ci.yml · Verify every imported package is declared by the package that ships it ✅ Every in-scope import is declared by the package that publishes it. 0
pnpm exec turbo run build --filter='!@object-ui/site' spec-range-floors.yml · Build every published package Tasks: 43 successful, 43 total 0

Declared narrowing — stated as "not run", not as a measured narrowing. The repo-wide
scans in ci.yml / lint.yml and the artifact farm (pnpm lint, pnpm test, pnpm type-check,
check:published-dist, check:node-esm-load, check:readme-exports, the doc-* / i18n-*
gates, check:eager-closure, E2E, performance budget) were not run locally. This is a
declaration, not a proof of equivalence: the justification is only that this diff moves no
source, no doc, no locale and no bundle input, and CI runs the whole farm on this head anyway.


Generated by Claude Code

…y require

`@object-ui/core` and `@object-ui/data-objectstack` declared
`"@objectstack/spec": "^17.0.0"` while their shipped artifacts reference four
symbols that version does not export — `FIELD_SORTABLE_UNPROVISIONED_ANCHOR`,
`FIELD_UNSORTABLE_VIRTUAL_TYPE`, `FieldSortability` and `ObjectSortability` from
`@objectstack/spec/api`. Both floors move to `^17.2.0`, which is
`scripts/check-spec-range-floors.mjs`'s own computed answer for both packages.

Measured on a fully built tree (`turbo run build --filter=!@object-ui/site`,
43/43 successful) either side of the change: `pnpm check:spec-floors` went from
exit 1 with six `floor-too-low` findings across two published packages to exit 0
— "Every consumer-facing @objectstack/spec floor carries the symbols its
package's artifact references."

No source and no behaviour changes. `pnpm-lock.yaml` moves by exactly the two
recorded `specifier:` lines; the resolved `version: 17.2.0` on both edges is
unchanged, so nothing a consumer installs today differs. The gate forbids the
tolerant alternative in its own remediation text: the range is the claim, and
the claim is what was wrong.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011SfZeFWrhGLHmfq61xbz4q
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 52 chunks) 3223.6 KB 3266.6 KB
Main entry chunk (gzip) 154.1 KB 350 KB
Entry file index-CjxrQjnd.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) 10.96KB 4.16KB
app-shell (runtime-config.js) 18.10KB 6.51KB
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) 505.90KB 114.59KB
core (index.js) 5.30KB 2.13KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 173.18KB 47.97KB
fields (index.js) 238.89KB 60.02KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 4.28KB 1.75KB
i18n (index.js) 3.44KB 1.39KB
i18n (pickLocalized.js) 7.62KB 3.26KB
i18n (provider.js) 26.89KB 9.04KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 33.40KB 8.71KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.95KB 10.97KB
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.55KB 0.62KB
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 (useResponsiveConfig.js) 1.37KB 0.63KB
mobile (useSpecGesture.js) 4.32KB 1.64KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 9.53KB 3.38KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 4.64KB 1.50KB
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) 1.93KB 0.88KB
plugin-ai (index.js) 15.75KB 3.80KB
plugin-calendar (index.js) 46.62KB 12.83KB
plugin-charts (index.js) 64.66KB 18.32KB
plugin-chatbot (index.js) 188.21KB 44.67KB
plugin-dashboard (index.js) 133.35KB 34.45KB
plugin-designer (index.js) 211.95KB 42.75KB
plugin-detail (index.js) 245.10KB 62.31KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 127.52KB 31.01KB
plugin-gantt (index.js) 164.14KB 39.87KB
plugin-grid (index.js) 201.21KB 54.43KB
plugin-kanban (index.js) 52.83KB 14.55KB
plugin-list (index.js) 111.94KB 27.24KB
plugin-map (index.js) 20.09KB 6.62KB
plugin-markdown (index.js) 13.72KB 4.69KB
plugin-report (index.js) 43.49KB 11.93KB
plugin-timeline (index.js) 26.70KB 7.69KB
plugin-tree (index.js) 9.26KB 3.13KB
plugin-view (index.js) 84.55KB 20.74KB
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) 54.84KB 18.43KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 1.35KB 0.70KB
react (schema-input.js) 2.32KB 1.24KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 5.41KB 2.34KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 4.93KB 2.24KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 12.13KB 3.65KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 7.54KB 2.63KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 0.99KB
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) 0.20KB 0.18KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.87KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
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.49KB 2.14KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 2.59KB 1.31KB
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 (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) 3.40KB 1.71KB
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

@os-support-ai
os-support-ai marked this pull request as ready for review August 25, 2026 16:49
@os-support-ai
os-support-ai added this pull request to the merge queue Aug 25, 2026
Merged via the queue into main with commit 5961030 Aug 25, 2026
28 checks passed
@os-support-ai
os-support-ai deleted the claude/issue-6361-spec-floor-bump branch August 25, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

finding(release): check:spec-floors is red on main — the publish path is blocked by a floor-too-low in @object-ui/core and @object-ui/data-objectstack

2 participants