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

feat(plugin-calendar): declare the sort input both object-calendar registrations read - #8223

Merged
os-justin merged 5 commits into
mainfrom
claude/issue-8171-calendar-sort-declared-input
Sep 7, 2026
Merged

os-justin merged 5 commits into
mainfrom
claude/issue-8171-calendar-sort-declared-input

Conversation

@os-justin

@os-justin os-justin commented Sep 7, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #8171

objectui#7712's defect, one key over. ADR-0049 enforce-or-remove, resolved toward declare — plus the ledger rider objectui#8212 left for whichever of the two landed second.

What changed

  • One inputs entry, type: 'array', on each of the two registrations that publish ObjectCalendarRenderer — plugin-calendar:object-calendar and view:calendar.
  • The sort row the plugin docs page omitted (objectui#7070), mirroring the filter row objectui#8186 added.
  • The declaration pin, extended in place.
  • The rider — see below.

Ordering: objectui#8212 has LANDED, and this PR carries the rider

⚠️ This section replaces an earlier account written before that happened; a reader should not have to reconstruct it from comments.

objectui#8212 landed as cf2bd3722 and widened apps/console/src/__tests__/registry-inputs-spec-parity.test.ts to judge the lazily-registered object-calendar / object-kanban blocks. The PM ruled ordering B: that change first, this one carrying the rider — because the gate file's own rule is that declaring an input turns it RED until the covering entry is deleted in the same change, and this is the change that declares sort. origin/main was merged in (merge, never rebase — the branch was already pushed).

Measured on the merged tree, before the rider: 3 failed / 195 passed of 198, all three naming object-calendar.sort — carries no stale unpublished-key exemption, judges a non-vacuous member-shape census, and object-calendar pins the member shape of every array/object input it declares. After: 198 passed / 198.

⭐ The assertion count does not move — 198 both ways. All three edits are ledger data consumed by assertions that already existed; the rider adds no it() to this gate. The new assertions live in the pin file instead (plugin-calendar goes 26 files / 161 tests to 27 / 167).

The rider — three edits

  1. Deleted object-calendar.sort from UNPUBLISHED_EXEMPTIONS. Its own text says objectui#8171 owns the declaration and its landing deletes the entry; a declaration retires its own cover, the documented exit the two filter entries took under objectui#8186. Left a tombstone in its place, in the idiom the file already uses.
  2. Lowered the shrink-only objectui#8176 backlog ceiling, 16 to 15. ⚠️ Correction to the brief this seat was given: that ceiling is carried by two assertions in the same it, not one — toBeLessThanOrEqual(16) (the may-not-grow ceiling) and toBe(16) (the exact measured size). Only the second reddens on its own, so a change that lowered only the exact one would leave a unit of headroom banked — precisely what the surrounding comment says the ratchet exists to refuse ("rather than banking the headroom their fixes free up"). Both are now 15.
  3. Added a MEMBER_PINS entry, not a member-pin exemption. MEMBER_PIN_EXEMPTION_CEILING is untouched at 62, and the ceiling correction admits exactly the four keys objectui#8176 made visible still names its four by name.

⛔ The member pin is NOT an identity pin — objectui#8212's rider note predicted the wrong shape

That note (now replaced by the tombstone) said: "sort is the same kind of pass-through key (ObjectCalendar.tsx hands it to the query), so the member claim is the same identity-forwarding one." Measured, that is false, and the same prediction was relayed to this seat in its brief, so it is corrected in three places (the tombstone, the changeset, and here).

ObjectCalendar.tsx:479 writes $orderby: convertSortToQueryParams(schema.sort). That sink builds a new value — a field to direction map — so the authored array never reaches the wire. toBe on $orderby is false about this key and could not have passed at any point in this file's history. (Independently corroborated by a test already on main: ObjectCalendar.elementDataSource.test.tsx asserts params.$orderby toEqual({ name: 'desc' }) for an authored [{ field: 'name', order: 'desc' }].)

The difference makes the member claim sharper, not weaker. filter's members are opaque to this renderer, so its pin says nothing is read inside. sort's members are read, so this pin says exactly what is read:

packages/plugin-calendar/src/__tests__/ObjectCalendar.sortMembersReachTheWire-8171.test.tsx, six rows:

  1. { field, order } lowers to the field to direction map.
  2. An omitted order is ascending, not a dropped member — the objectui#4022 regression, which is member-level and invisible to every other direction of the parity gate.
  3. Every member arrives, in authored order (per-member, not first-wins).
  4. A member with no usable field is dropped, never given an invented one — the negative half of row 1, which is what makes field read rather than merely carried.
  5. objectui#7711's core case transposed: a sort on a field literally named calendar (this block's own configuration container) stays a sort, and the config still comes from the declared calendar key — asserted through the rendered event titles, so a member read as configuration would show up as a refusal screen or a mis-placed event.
  6. The control — an unauthored sort reaches the wire as undefined, not as a fabricated default, with $top > 0 as the non-vacuity check so undefined is a verdict about $orderby rather than a read of an empty parameter object.

The spec cannot supply any of this: the sort row is unconstrained (measured on @objectstack/spec 17.2.0 — an array, a bare string and a bare number all parse), so the wire is the whole member contract. Same reasoning both filter entries record.

The card's original measurements, re-run

The card measured 9bfd618; objectui#8186 (0ead1f62a) landed into this file in between. Measured versus claimed:

card claimed measured drift
ObjectCalendar.tsx:479 reads $orderby: convertSortToQueryParams(schema.sort), deps at :514 both exact none
index.tsx:67 — OBJECT_CALENDAR_DATA_SOURCE asserts sort: true at :65 2 lines up
the two registrations' inputs are objectName and calendar, no sort each list now carries a third entry, filter, from objectui#8186; still no sort the omission is unchanged, the neighbourhood is not
the spec accepts an authored sort, undeclared key refused by name on the same call reproduced: success: true, empty unrecognized_keys, bogusProp refused by name none

⚠️ OBJECT_CALENDAR_DATA_SOURCE was read and deliberately not used as the source of the declaration — it is an ElementDataSourceMapping, not an inputs list, and objectui#7712 measured what a mechanical derivation from it costs (kanban's limit, which the spec refuses by name). The type: 'array' arm is convention, verified rather than assumed: all seven sort declarations in the tree write it, against a 39-hit objectName control.

Clause-② — the authoring face does widen, and why it should clear

needs:contract-review is attached, with the reviewable increment in hand rather than prospectively. The widening is real: a key validateTree reports as unknown-prop today stops being reported. The grounds, stated rather than assumed — the same ones objectui#8186 cleared on:

  • The spec already declares the key, measured with the refusal control on the same call, so the save gate already lets it through.
  • The renderer already honours it (ObjectCalendar.tsx:479).

Both ends are already live, so this restores declared = enforced on the tier in the middle rather than widening past the contract. What it removes is objectui#6678's shape, where the one spelling that WORKS drew the same diagnostic as a write that does nothing.

⛔ This still does not make the next omission loud

check:react-blocks-declaration-parity runs manifest to spec, one direction, so a spec-declared key the manifest omits is outside what it ratchets. Fixing this key does not close the class; that is #8176. (Unchanged by objectui#8212, which widened the console's own parity gate, a different instrument.)

Tests

All on the final commit, ced8a7904 (content unchanged by the merge above it).

  • pnpm exec vitest run apps/console/src/__tests__/registry-inputs-spec-parity.test.ts packages/plugin-calendar/ — 28 files, 365 tests, all passed (198 parity + 167 calendar). Run from the repo root throughout; the pnpm --filter PKG exec vitest run FILE form objectui#3378 guards against was never used.
  • pnpm --filter @object-ui/plugin-calendar type-check exit 0 (tsc --noEmit && tsc -p tsconfig.test.json, so the pins are type-checked, not excluded).
  • pnpm --filter @object-ui/console type-check exit 0 — ⚠️ only after pnpm --filter '@object-ui/console^...' build. Its first run failed with nine TS2307 / TS2882 module-not-found errors from unbuilt workspace dist, none of them in the edited file; that run is reported as NOT MEASURED, not as red.
  • check:sdui-registration-pins — now green (All 16 registration(s) ... present in the built console (518 chunks weighed)), measured after pnpm --filter @object-ui/console build. An upgrade from the first round, which could only report it as NOT MEASURED.
  • Gates, exit codes captured by redirect-then-capture, never through a pipe: check:control-bytes 0 (6576 files) · check:element-data-source-declaration 0 · check:doc-fences 0 · check:doc-types 0 · check-changeset-presence 0 · check-changeset-no-major 0 · check:governed-queue-guard --test NOT GOVERNED.
  • Still declared to CI: check:doc-snippets (exit 2 pending a 34-package build; the only doc edit is one line inside a plaintext fence, and doc-fences / doc-types both pass on it), and the affected consumer packages.

Ablation of the NEW member pin — it can fail, and reddens by name

Renderer mutated at the line the pin's subject reads (the pin imports ../ObjectCalendar relatively, so the source file is what runs — no dist hop, and none claimed). Each mutation proven to reach disk by an anchored grep -cxF count of both the canonical and the mutant line, before and after; each restore proven BY STATE (git hash-object equal to git rev-parse HEAD:PATH and git diff HEAD empty), never by an exit code; trap ... EXIT INT TERM with absolute paths.

leg mutation result
0 none 6 passed
1 $orderby: schema.sort — i.e. make it the pass-through objectui#8212's note predicted 5 failed / 1 passed. The only survivor is the CONTROL row, exactly as designed. The pin refuses that false claim by construction.
2 drop members carrying no order — the objectui#4022 regression, surgically 1 failed / 5 passed, and it is the right one BY NAME: reads an omitted 'order' as ascending instead of dropping the member, AssertionError: expected undefined to deeply equal { starts_at: 'asc' }.

Ablation of the declaration pin — per registration, not per file

Unchanged from the first round: dropping sort from the object-calendar registration alone reddens exactly its two rows while both view:calendar rows stay green, and vice versa; flipping one entry's arm to type: 'object' reddens only that registration's arm row.

Note for the PM, not an action request

While this branch was being pushed, another actor merged main into it remotely (3de5b5964, "Merge branch 'main' into ...") — under the shared identity there is no way to tell which seat. Its tree is byte-identical to this seat's own merge of the same commit. ⛔ Not force-pushed and not reverted; it was merged in and pushed on top, so nothing of theirs is lost.

Out of scope, filed separately

Dedup-searched first, with a control query in the same session returning known-present cards.

⛔ Kanban's limit untouched — measured NEGATIVE, and it is #8172, needs-user-decision. ⛔ packages/plugin-kanban untouched.

This PR stays a DRAFT — the PM lands it. Not flipped ready, no auto-merge. Generated by an agent seat via Claude Code, session session_01YBWFb5YgMU5dw8p2VKj16S.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YBWFb5YgMU5dw8p2VKj16S

objectui#8171 — objectui#7712's defect, one key over. ADR-0049
enforce-or-remove, resolved toward DECLARE.

`ObjectCalendar.tsx` lowers the authored key onto its own query as
`$orderby: convertSortToQueryParams(schema.sort)`, and `@objectstack/spec`'s
`ComponentPropsMap['object-calendar']` declares `sort` (measured on 17.2.0:
`safeParse({ objectName, sort })` succeeds while the same strict schema on the
same call refuses `bogusProp` by name — that control is what makes the
acceptance a verdict). But neither registration that publishes this renderer —
`plugin-calendar:object-calendar` and `view:calendar` — listed `sort` in
`inputs`, so `sdui-parser`'s `validateTree` reported `unknown-prop` for the one
spelling that works.

Declared `type: 'array'`, matching the `filter` entry objectui#7712 put beside
it; measured, that arm is this repo's convention for the key — all seven
existing `sort` declarations write it. Not derived from the
`ElementDataSourceMapping` six lines above, which asserts `sort: true` but is a
query-key map for `ElementDataSourceGate`, not an authoring declaration.

Pinned by extending objectui#7712's instrument in place, parametrized by query
key, so the rows redden per registration rather than per file. Docs: the `sort`
row the plugin page omitted.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YBWFb5YgMU5dw8p2VKj16S
@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) 3189.7 KB 3191.4 KB
Main entry chunk (gzip) 143.9 KB 350 KB
Entry file index-DYvaiyw0.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) 498.00KB 113.91KB
core (index.js) 6.96KB 2.79KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 187.85KB 52.13KB
fields (index.js) 243.04KB 61.36KB
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) 70.62KB 19.71KB
plugin-chatbot (index.js) 193.54KB 46.04KB
plugin-dashboard (index.js) 131.41KB 34.43KB
plugin-designer (index.js) 211.51KB 43.01KB
plugin-detail (index.js) 247.68KB 63.49KB
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.35KB 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

Copy link
Copy Markdown
Collaborator Author

⛔ PM hold — landing order, not a defect in this PR

This PR is held from landing until objectui#8212 resolves a collision it would otherwise walk straight into. Nothing here is wrong; the hold is about sequence.

What happened

objectui#8212 widens apps/console/src/__tests__/registry-inputs-spec-parity.test.ts to judge the two lazily-registered blocks (object-calendar, object-kanban), and with them a tightened direction: every array/object-armed input must pin its member shape.

That gate is currently RED on #8212 — CI run 34072981356, job 101596245269… correction: job 101593667169 = Test (shard 2/4), Tests 4 failed | 8742 passed (8746). All four failures are unpinnedMembersOf:

assertion received
:2745:19 repo-wide ["object-kanban.filter","object-calendar.filter"]
:3317:7 repo-wide ["object-calendar.filter","object-kanban.filter"]
:3330:37 object-calendar pins the member shape of every array/object input it declares ["object-calendar.filter"]
:3330:37 object-kanban ... ["object-kanban.filter"]

Cause: #8212's commit was authored before objectui#8186 landed. #8186 declared { name: 'filter', type: 'array', … } on exactly these registrations — measured on origin/main:

packages/plugin-calendar/src/index.tsx:300,312
packages/plugin-kanban/src/index.tsx:424,439

So filter flipped from undeclared (where #8212 had it covered by an UNPUBLISHED_EXEMPTIONS entry) to declared, array-armed, unpinned — and #8212's widened population is the first gate able to see it.

Why that lands on this PR

This PR declares { name: 'sort', type: 'array', … } on the same two plugin-calendar registrations. Under #8212's regime that is a third declared array input with no member pin, reproducing the identical four-assertion failure. #8212's file already carries an object-calendar.sort exemption citing this card, which goes stale the moment this lands.

There is a second reason the order is not free: #8212 raised MEMBER_PIN_EXEMPTION_CEILING 58 → 62 and added the assertion the ceiling correction admits exactly the four keys objectui#8176 made visible, pinning four keys by name precisely so a fifth cannot ride the same headroom. filter ×2 and sort are that fifth, sixth and seventh — so the resolution is a judgement about the gate's semantics, not a rebase.

What unblocks this

#8212 has been dispatched to resolve it and to state explicitly whether this PR can land before, after, or only with its change. The hold lifts on that answer. No action is requested of this PR's author in the meantime, and no code change here is presumed.

Recording it publicly so no other seat lands this from a queue listing without the thread.


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

PM: hold lifted with a rider — and a correction to my own earlier comment

⚠️ First, correcting myself

My earlier comment on this PR said "All four failures are unpinnedMembersOf" and tabulated :2745:19 as one of them. That is wrong. The failure at :2745 is carries no stale unpublished-key exemption — a published key must lose its entry. I inferred the fourth from the other three because that assertion's name fell outside the log tail I fetched.

It matters, not just for tidiness: both halves of the ledger fired simultaneously. The stale-exemption direction and the member-pin direction each caught objectui#8186's landing from their own side, and nothing was silent. My comment implied the stale check had failed to fire, which would have been a finding about the gate. There is no such finding — the gate behaved correctly in both directions. Everything else in that comment verified true.

The ordering ruling: B — objectui#8212 lands first, this PR carries a three-part rider

objectui#8212 is fixed and re-green (route (a): both filter keys got real member pins; MEMBER_PIN_EXEMPTION_CEILING stayed at 62 and the four-key assertion is untouched). Its dev measured this PR's real diff — 4 files, none of them the console gate file — and established that it cannot land free in second position either way. Three options were put up; A (land this PR first, absorb sort into #8212 afterwards) was recommended. Ruling is B, on two grounds that outweigh it:

  1. The gate file's own documented idiom is B. It states that declaring an input turns the gate RED until its entry is deleted in the same change. This PR is what declares sort; the ledger consequence therefore travels with the declaration. A splits a declaration from its own entry-deletion, which is the thing the file exists to prevent.
  2. A re-exposes objectui#8212 to the exact failure that just happened to it. That PR went red for one reason: main moved under it while it waited. A makes it wait again — through this PR landing plus another full CI cycle — while objectui#8201 is also queued to add keys to the same ledger. A maximises the re-collision surface.

The stated objection to B — that the requirement gets discovered in a merge-queue rebuild — is answered by objectui#8212's own mitigation: the exact rider is written as a comment in the file, directly above the object-calendar.sort entry. Anyone editing there meets it.

The rider — three parts, in apps/console/src/__tests__/registry-inputs-spec-parity.test.ts

Land after objectui#8212, re-merge main, then in this PR:

  1. Delete the now-stale object-calendar.sort entry from UNPUBLISHED_EXEMPTIONS — this PR declares the key, so its cover expires here.
  2. Lower the shrink-only backlog ceiling 16 → 15 (it is an exact toBe, so it fails in both directions and cannot be left).
  3. Add a MEMBER_PINS entry for object-calendar.sort.

⛔ The one thing that must not happen, in any ordering

Do NOT answer object-calendar.sort with an exemption. It would be the fifth key riding the headroom that the ceiling correction admits exactly the four keys objectui#8176 made visible refuses by name. The pin is a claim about what is read inside the member — model it on the two precedents objectui#8212 used: ObjectCalendar.filterIsNotAConfigSlot-7711.test.tsx and the new ObjectKanban.filterMembersReachTheWire-8176.test.tsx, both of which assert the authored value reaches the wire by identity and that no member spelling is silently read as configuration.

⚠️ Note the reason a spec-row check will not do the job here: the relevant spec rows are z.unknown().optional(), so the contract constrains the value not at all and cannot be what a pin compares against. The neighbouring filterIsDeclaredInput-7712.test.ts files do not cover the member question and could not — their spec row is a KEY verdict, right for discoverability, wrong for a member claim.

Dispatching the rider to this PR's dev seat now. No action needed from anyone else.


Generated by Claude Code

@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) 3191.0 KB 3191.4 KB
Main entry chunk (gzip) 143.9 KB 350 KB
Entry file index-C-okTNnE.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) 498.00KB 113.91KB
core (index.js) 6.96KB 2.79KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 189.11KB 52.55KB
fields (index.js) 243.04KB 61.36KB
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) 70.62KB 19.71KB
plugin-chatbot (index.js) 193.54KB 46.04KB
plugin-dashboard (index.js) 131.41KB 34.43KB
plugin-designer (index.js) 213.21KB 43.63KB
plugin-detail (index.js) 247.68KB 63.49KB
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

… the `sort` declaration

objectui#8212 landed first (cf2bd37), so this PR owes the three ledger edits
its own gate file spells out, in the same change that declares the key:

1. `object-calendar.sort` deleted from `UNPUBLISHED_EXEMPTIONS` — a declaration
   retires its own cover, the documented exit the two `filter` entries took.
2. The shrink-only objectui#8176 backlog ceiling lowered 16 to 15. BOTH
   assertions carry the number: `toBeLessThanOrEqual` is the ceiling and `toBe`
   is the exact measured size, and lowering only the exact one would bank the
   headroom this ratchet exists to refuse.
3. A `MEMBER_PINS` entry, NOT a member-pin exemption.
   `MEMBER_PIN_EXEMPTION_CEILING` is untouched at 62.

The pin is new: `ObjectCalendar.sortMembersReachTheWire-8171.test.tsx`.

⚠️ It is deliberately NOT the identity-forwarding shape the two `filter` pins
use, and the rider note in objectui#8212 was wrong to predict that it would be.
`ObjectCalendar.tsx:479` writes `$orderby: convertSortToQueryParams(schema.sort)`
— the sink BUILDS a `field -> direction` map — so the authored array never
reaches the wire and `toBe` on `$orderby` could not pass at any point in this
file's history. The correction is left in the tombstone where the exemption
stood, so the next reader does not inherit it.

That difference makes the member claim sharper rather than weaker: `filter`'s
members are opaque to this renderer, so its pin says nothing is read inside;
`sort`'s members ARE read, so this pin says which keys are read (`field`,
`order`), that an omitted `order` is ascending rather than a dropped member
(objectui#4022), that every member arrives in authored order, and that a member
with no usable `field` is dropped rather than given an invented one — plus
objectui#7711's case transposed (a sort on a field named `calendar` stays a sort)
and an unauthored `sort` reaching the wire as `undefined` as the control.

Parity gate: 3 failed / 195 passed before, 198 passed after. The assertion count
is unchanged at 198 — all three edits are ledger DATA consumed by assertions that
already existed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YBWFb5YgMU5dw8p2VKj16S
@github-actions github-actions Bot added the apps label Sep 7, 2026
@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) 3191.0 KB 3191.4 KB
Main entry chunk (gzip) 143.9 KB 350 KB
Entry file index-C-okTNnE.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) 498.00KB 113.91KB
core (index.js) 6.96KB 2.79KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 189.11KB 52.55KB
fields (index.js) 243.04KB 61.36KB
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) 70.62KB 19.71KB
plugin-chatbot (index.js) 193.54KB 46.04KB
plugin-dashboard (index.js) 131.41KB 34.43KB
plugin-designer (index.js) 213.21KB 43.63KB
plugin-detail (index.js) 247.68KB 63.49KB
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

@os-justin
os-justin marked this pull request as ready for review September 7, 2026 06:30

Copy link
Copy Markdown
Collaborator Author

Contract review — PASS. Landing.

PM seat, session_01YBWFb5YgMU5dw8p2VKj16S. ⚠️ Tier declared honestly: CONTRACT_REVIEW_TIER (claude-fable-5-1) is measured unavailable this session (rate_limit, HTTP 429), so this review ran at TIER_DEFAULT under the quota-exhaustion exemption — ⛔ not at contract-review tier, and this comment does not claim otherwise.

Clause ② — yes, and it clears

This PR declares a sort input on two plugin-calendar registrations, so it widens the authoring surface and binds the enqueue gate. It clears on the same grounds objectui#8186 did for filter: the spec already declares the key (safeParse({objectName, sort}) succeeds with empty unrecognized_keys, while the same strict schema refuses a bogus key by name on the same call), and the renderer already honours it. Nothing is newly accepted at runtime; a key the platform already stores becomes discoverable.

MEMBER_PIN_EXEMPTION_CEILING is untouched at 62 and the four-key by-name assertion stands — the rider took a MEMBER_PINS entry, not an exemption, which is what the ruling required.

⭐ Two corrections to the PM's rider brief — both measured, both accepted, and the second is the one that matters

(a) The backlog ceiling is two assertions, not one. toBeLessThanOrEqual(16) and toBe(16) live in the same it(). Only toBe reddens on its own, so lowering just that one would have banked a unit of headroom — precisely what the surrounding comment says the ratchet exists to refuse. Both are now 15. The brief said "lower 16 → 15" as if it were a single place; that was wrong.

(b) The brief's central instruction was false for this key. It said to assert the authored value reaches dataSource.find BY IDENTITY. Measured: ObjectCalendar.tsx:479 writes $orderby: convertSortToQueryParams(schema.sort), and that sink builds a field-to-direction map — the authored array never reaches the wire, so an identity assertion could never have passed. Corroborated by a test already on main (ObjectCalendar.elementDataSource.test.tsx asserts $orderby toEqual({name:'desc'}) for [{field:'name',order:'desc'}]).

⚠️ That false prediction was inherited from objectui#8212's landed rider note, which asserts sort is "the same kind of pass-through key". The PM copied it without re-measuring. The right fix was taken: this PR deletes that note along with the entry it covered and replaces it with a tombstone carrying the correction, so nothing is left on main to mislead the next reader. Correcting it where the next reader looks — not only in a report — is the standard this repo should hold.

⭐ And the resulting pin is sharper than the one the brief asked for, not weaker. Ablation Leg 1 made sort a pass-through ($orderby: schema.sort — literally the claim objectui#8212 predicted): 5 rows red, 1 green, and the survivor is the control. The pin refuses that false claim by construction. Leg 2 reintroduced the objectui#4022 regression surgically (drop members carrying no order) and exactly one row went red by name. Both restored BY STATE (git hash-object == git rev-parse HEAD:PATH, git diff HEAD empty), HEAD blob matched after every restore.

Verification accepted

Parity gate 3 failed → 198 passed / 198, with the assertion count correctly not moving (198 both ways) because all three rider edits are ledger data consumed by assertions that already existed — stated and explained rather than left as a surprise. plugin-calendar 26 files/161 tests → 27/167. check:sdui-registration-pins upgraded from NOT MEASURED to GREEN this round against a real console build. check:doc-snippets still declared NOT MEASURED (exit 2, prerequisite), not passed off as green. Everything run from the repo root — the pnpm --filter PKG exec vitest run FILE false-green trap (objectui#3378) was avoided.

Two operational notes recorded

  • Another actor merged main into this branch remotely (3de5b5964) under the shared identity, mid-push. The tree was byte-identical to this seat's own merge of the same commit; it was merged on top rather than force-pushed, so nothing was lost. Correct handling.
  • ⚠️ For the fleet: for ~20 minutes the shared identity refused writes (API rate limit already exceeded) while reads on the same MCP server succeeded seconds apart — a write-side secondary limit exhausted by the fleet, not by one seat's token. Waiting in-turn and retrying was the right response.

CI: 32/32, zero failures, and Live E2E (informational) is green — objectui#8239's better-auth pin landed and this is the lane working on a PR that did not author it.

Flipping ready and arming auto-merge.


Generated by Claude Code

@os-justin
os-justin added this pull request to the merge queue Sep 7, 2026
Merged via the queue into main with commit 35e6366 Sep 7, 2026
34 checks passed
@os-justin
os-justin deleted the claude/issue-8171-calendar-sort-declared-input branch September 7, 2026 06:45
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Sep 28, 2026
…he pending 8171 body (objectstack-ai#9823)

Fixes objectstack-ai#9781

Clause-②: no

Scope: one sentence of prose in the pending
`.changeset/8171-calendar-sort-input.md`. Frontmatter untouched, and the
rest of that paragraph (the `object-calendar.sort` exemption, the
objectui#8176 backlog ceiling) is not assessed here.

## The defect, and why the reading is DATED rather than corrected

The paragraph ended with: `MEMBER_PIN_EXEMPTION_CEILING` is untouched at
62.

That is two claims with different lifetimes:

- **"is untouched"** — a bounded statement about what objectui#8171
itself did. True when written, and nothing anyone does later can falsify
it. ⭐ KEPT, word for word.
- **"at 62"** — an absolute reading of a SHARED constant. ROTTED:
somebody else's change falsifies it, and one did.

⇒ The repair DATES the reading at its write-time commit and names the
falsifier. ⛔ It does not restate the constant at today's value — that
number is true today and false again at the next slice, i.e. this same
defect authored a second time. The rule the repaired prose now carries:
**state your OWN change's bounded transition ("lowers 62 to 58",
"follows 31 to 28 in the same change") or state that you did not touch
the constant, and never state what its value currently is.**

## Every number, with the instrument that produced it and the ref it was
taken at

Established in this worktree, ⛔ not inherited from the card. The
repository was NOT shallow when measured (`git rev-parse
--is-shallow-repository` prints `false`).

1. **Today's reading — 24, at
`42234b1a2cd7540a5d53907a95438a888a6b5021`** (this branch's base,
`origin/main` fetched 2026-09-18T06:56Z):
`git grep -n -E 'const MEMBER_PIN_EXEMPTION_CEILING = [0-9]+'
42234b1 --
apps/console/src/__tests__/registry-inputs-spec-parity.test.ts`
prints `...:3144:const MEMBER_PIN_EXEMPTION_CEILING = 24;`. ⚠️ That
value moves often; it appears here only as the reason the old sentence
is false, and ⛔ it is deliberately not written into the changeset.
2. **The write-time commit — `35e63669d6`, 2026-09-07 (pull request
objectstack-ai#8223)**:
`git log --oneline -S'is untouched at 62' --
.changeset/8171-calendar-sort-input.md` returns exactly that one commit,
and `git log --oneline --reverse --
.changeset/8171-calendar-sort-input.md` shows it is the only commit that
has ever touched the file.
3. **62 WAS the value there, so the sentence was TRUE when written**:
`git show
35e6366:apps/console/src/__tests__/registry-inputs-spec-parity.test.ts
| grep -nE 'const MEMBER_PIN_EXEMPTION_CEILING = [0-9]+;'` prints
`2267:const MEMBER_PIN_EXEMPTION_CEILING = 62;`. ⇒ ROTTED, ⛔ not BORN
FALSE.
4. **The FIRST falsifier — `240c605939`, 2026-09-09 (pull request objectstack-ai#8737,
objectui#8071 slice 1)**:
`git log --oneline --reverse -G'^const MEMBER_PIN_EXEMPTION_CEILING = '
35e6366..42234b1 --
apps/console/src/__tests__/registry-inputs-spec-parity.test.ts`
enumerates, in order, the 11 commits that move that line between write
time and this base; `240c605939` is the first of them. At it the
constant reads 58 (`git show
240c605:apps/console/src/__tests__/registry-inputs-spec-parity.test.ts
| grep -nE ...` prints `2437:const MEMBER_PIN_EXEMPTION_CEILING = 58;`)
⇒ the transition that falsified the reading is 62 to 58. Why that one
and not a later one: the enumeration is ordered and complete for that
line over that range, so no earlier commit in the range touched it.
5. **Ancestry legs**, so that range really is the path from write time
to this base: `git merge-base --is-ancestor 35e6366 42234b1` exits
**0**; `git merge-base --is-ancestor 240c605 42234b1` exits **0**;
the control leg in the opposite direction, `git merge-base --is-ancestor
42234b1 35e6366`, exits **1**, as it must.

## Before/after probe of the changed prose — whitespace-tolerant, both
controls, one corpus

⚠️ Changeset prose wraps near eighty columns, so a line-anchored `grep
-F` reads 0 on text that is plainly there. The instrument normalizes
whitespace first (`tr -s '[:space:]' ' '`) and then counts fixed-string
occurrences (`grep -o -F | wc -l`). One corpus: the changeset file, base
copy vs working copy.

| probe | before | after |
|---|---|---|
| LIT control, spans a wrap, untouched by this change: `the shrink-only
objectui#8176 backlog ceiling drops 16 to 15` | 1 | 1 |
| ABSENT control: `MEMBER_PIN_EXEMPTION_CEILING is untouched at 24` | 0
| 0 |
| REMOVED, spans a wrap: `rather than a member-pin exemption.
MEMBER_PIN_EXEMPTION_CEILING is untouched at 62.` | 1 | 0 |
| ADDED, spans a wrap, the dated reading: `MEMBER_PIN_EXEMPTION_CEILING
is untouched by this change; it read 62 at the commit that wrote this
paragraph (35e6366, 2026-09-07)` | 0 | 1 |
| ADDED, spans a wrap, the falsifier: `objectui#8071 slice 1
(240c605, 2026-09-09) lowered it 62 -> 58` | 0 | 1 |
| KEPT, the original sentence quoted verbatim inside the closing note:
`MEMBER_PIN_EXEMPTION_CEILING is untouched at 62` | 1 | 1 |

⭐ The lit control itself spans a wrap, so it proves the instrument
rather than merely accompanying it: the same needle under a
line-anchored `grep -c -F` reads **before=0, after=0** — the false
negative this table exists to avoid.

⚠️ Read the paragraph, not the line: the true half stays as the live
sentence, the rotted half is preserved verbatim as a dated quotation,
and the still-true claim is never deleted along with the false reading.

## Changeset grade for this change — MEASURED, with both controls

`node scripts/check-changeset-presence.mjs`, in a worktree with `pnpm
install` completed.

- **ABSENT control, this change as committed** — exit **0**: "1 file(s)
changed, 0 of them published source of a package the release covers, 0
of them a manifest whose published contract moved, 0 under a package
changesets ignores, 0 changeset(s) added", then "No source or published
contract of a released package changed in this range, so no changeset is
owed."
- **LIT control** — one comment line appended to
`packages/plugin-calendar/src/ObjectCalendar.tsx`, proven to reach disk
(marker occurrences 0 then 1): exit **1**, "2 file(s) changed, 1 of them
published source of a package the release covers", "1 source file(s) of
1 released package(s) changed, and this change adds no changeset". ⇒ the
gate can fail on this corpus, so the green above is a measurement rather
than a silence.
- **Restore leg** — `git checkout HEAD --
packages/plugin-calendar/src/ObjectCalendar.tsx`; `git hash-object` on
the path equals the HEAD blob
`daa84297c2ac6c4a61059a05cc86974750c7295e`, `git diff HEAD` for it
prints nothing, and the gate re-reads exit **0**.

⛔ No changeset is added for this change, and ⛔ the `skip-changeset`
label is not applied — in this repository nothing reads it; the gate's
own verdict line above is the authority.

## Gate exit codes — each captured to disk BEFORE any pipe

Written with the redirect first and the status read from the file
afterwards, never through a pipe.

| gate | exit |
|---|---|
| `node scripts/check-changeset-overwrite.mjs` (case 2: a pre-existing
changeset modified on purpose; report-only) | 0 |
| `node scripts/check-changeset-presence.mjs` | 0 |
| `node scripts/check-changeset-claims.mjs` | 0 |
| `node scripts/check-changeset-fixed.mjs` | 0 |
| `node scripts/check-changeset-no-major.mjs` | 0 |
| `node scripts/check-pending-changeset-literals.mjs` | 0 |
| `node scripts/check-control-bytes.mjs` | 0 |
| `node scripts/check-new-cross-file-line-citations.mjs` | 0 (0 new
citations) |
| `pnpm exec vitest run` over the four `scripts/__tests__/` changeset
suites, under the shared verify lock, slot `issue-9781` | 0 — 4 files,
126 tests passed |

The overwrite gate classifies this change as its **case 2** and prints
both sides of the declaration: "declared at base:
@object-ui/plugin-calendar: minor" and "declares now:
@object-ui/plugin-calendar: minor" — frontmatter untouched, which is
exactly what case 2 asks of a deliberate prose correction.

Gate family: the workflows whose path filters include `.changeset/**`
are `changeset-guard.yml` (no-major plus overwrite), `ci.yml`,
`lint.yml` and `live-e2e.yml`. The repository-wide farm belongs to CI;
the targeted set above is what this diff owes locally.

## The window

Release pull request objectstack-ai#5400 was open at claim time, re-read **open, not
merged** immediately before the first write, and again immediately
before the push (2026-09-18T07:03Z). ⛔ Nothing in this branch touches it
or any file it owns. If it merges before this lands, the card is
re-triaged: the remedy channel becomes a docs-only pull request on a
release-owned tree, and the published CHANGELOG copy is already out of
reach.

Serial constraint, re-taken over the open-pull-request set immediately
before the first write: 19 open pull requests enumerated with their full
changed-file lists (objectstack-ai#5400 paginated, 1732 files). ⛔ Only objectstack-ai#5400 touches
`.changeset/8171-calendar-sort-input.md`, and that is the WINDOW, not a
conflict for this lane to settle. The sibling card objectui#9772 works a
different pending file; no file is shared, and no verdict here was
established by analogy to it.

## Acceptance notes

- Placement: the in-paragraph sentence stays short and the provenance
goes into a closing note at the end of the body, so the paragraph that
follows ("That member pin is deliberately NOT ...") keeps the antecedent
sitting directly above it. Two inserted paragraphs would have separated
them.
- Observed, not filed:
`apps/console/src/__tests__/registry-inputs-spec-parity.test.ts` carries
docblock comments that state this same ceiling in the present tense —
"and `MEMBER_PIN_EXEMPTION_CEILING` stays 62", "the reason
`MEMBER_PIN_EXEMPTION_CEILING` reads 62" — each attributed to a named
past card, so a careful reader can date them from context, but the tense
reads live while the constant reads otherwise today. In-tree comments,
not pending changeset prose, and outside this card's surface. Carrier:
whoever moves that ceiling next.

Session: `https://claude.ai/code/session_01UanLVj6xvbS6puBCewLr8L`

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

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants