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

fix(plugin-kanban): a lane header over a windowed fetch says 77+, not 77 (objectui#8307) - #8780

Merged
os-zhuang merged 3 commits into
mainfrom
claude/issue-8307-kanban-lane-count-honesty
Sep 9, 2026
Merged

os-zhuang merged 3 commits into
mainfrom
claude/issue-8307-kanban-lane-count-honesty

Conversation

@os-zhuang

@os-zhuang os-zhuang commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #8307

Ships option 2 exactly as triage ruled it (comment 5583024663): make the number say what it means, with no contract change. DEFAULT_KANBAN_LIMIT is untouched.

Anchors, re-derived on today's tree (c03d03b)

Triage warned the card's anchors had drifted. One of triage's own has drifted again since 83d4fda16:

source fetch site header site
card ObjectKanban.tsx:264 KanbanImpl.tsx:663
triage, on 83d4fda16 :365 ✅ :689
today, c03d03b ObjectKanban.tsx:365 ✅ KanbanImpl.tsx:732

Assumption 2 confirmed at both ends: $top: schema.limit ?? DEFAULT_KANBAN_LIMIT is a real top-level $top that the adapters read, and col.cards is the post-grouping client array built by bucketCardsIntoColumns from what came back.

A third header site the card does not name. KanbanImpl paints lane counts from three places, not one — the flat column header (KanbanColumnView, safeCards.length), and the swimlane layout's column-title row (col.cards.length, the card's anchor) and lane rows (laneCardCount, derived from col.cards). All three are the same defect. Fixing one would have left a board honest in one layout and silently wrong in the other, which is exactly the split objectui#8508 shipped.

kanban-enhanced also renders counts but is out of scope and correct as-is: it is a schema-only component that takes data inline and issues no windowed fetch.

Which half of option 2, and why — chosen by measurement

Option 2 offered two forms. The honest pair (77 of 88) needs a per-lane total, and the measurement says nobody here has one: extractRecords (packages/core/src/utils/extract-records.ts:75) reads only data / value and no count member; nothing on this path requests $count; and even a board-level total would not give per-lane totals. A per-lane total is a server-side group-count aggregate — the card's option 1, a different card size and a different Clause-② answer. Not attempted here, not silently escalated into.

So: mark the lane as windowed. One helper, laneCountLabel, called by all three headers:

function laneCountLabel(count: number, countsAreWindowed?: boolean): string {
  return countsAreWindowed ? `${count}+` : String(count)
}

77+ reads "at least 77", which is exactly what a count over a window establishes. No new copy string, so no i18n key and no locale-pack edit — consistent with this file's existing untranslated / limit separator.

Assumption 3 — the off-by-one shape, measured and answered

The card suggested rows.length === limit. Two changes:

  1. >=, not ===. The predicate is saturation: the fetch asked for at most window rows and got n back. n >= window means the response may be capped; n below window is the one case where the client knows the result set was exhausted, and there the bare number is the truth and is kept. A source that ignores $top and over-returns still yields a count this component can only treat as a lower bound, and >= is the predicate that cannot be talked into a false claim.

  2. The exactly-at-the-window board is resolved towards the true statement, deliberately. A board holding exactly limit rows is indistinguishable from a truncated one from the client side — both answer a $top: N query with N rows. It therefore renders 77+ for a lane that really holds 77. That is the safe half of the ambiguity: "at least 77" is TRUE when the lane holds exactly 77, whereas the bare "77" is FALSE on every truncated board. The marker is conservative; it is never wrong. Pinned as its own row (BOUNDARY) so changing it means arguing the opposite in writing.

The alternative heuristic (ask for limit + 1, display limit) was rejected: it changes what reaches the wire, and $top === DEFAULT_KANBAN_LIMIT is pinned by objectui#4025 in ObjectKanban.elementDataSource.test.tsx:184.

Saturation is captured as state at fetch time, not derived at render. The optimistic move/create/delete paths rewrite fetchedData; a delete would otherwise drop the array to window - 1 and silently retract the marker from a board that is still showing a window.

The signal applies only to rows this board fetched. countsAreWindowed = fetchWindowSaturated && rawData === fetchedData — an identity comparison against the same precedence chain rawData just resolved, so the two cannot disagree. External, bound and inline data arrive whole from whoever owns them and keep the bare number.

Evidence — rendered output, plus ablation

packages/plugin-kanban/src/__tests__/laneCountHonesty-8307.test.tsx reads the text of the header count node after a real find resolves, anchored on KanbanColumnView's own id. Whole-board textContent would not do: '3' is a substring of '3+', so a bare-number assertion written that way can never fail.

row asserts
WINDOWED saturated fetch renders 3+ / 1+; non-vacuity: the request really carried $top
UNSATURATED (control) short fetch keeps bare 3 / 0
BOUNDARY exactly-at-the-window renders 3+, and the lane really does hold 3
INLINE (control) inline data keeps bare 3, and find was never called
SWIMLANES both swimlane header rows marked; no bare parenthesised count survives

Ablation. laneCountLabel reverted to return String(count) — the shipped defect — on disk, proven by hash and by grep in both directions before the run, restored via git checkout HEAD -- PATH under an EXIT INT TERM trap and re-verified against the HEAD blob hash:

HEAD blob        = cbc94487407f46c8b5649806b91596b29645a0c0
before: fixed-line=1  ablated-line=0
after:  fixed-line=0  ablated-line=1
on-disk (mutated)= 2b6d4dca393c83709b0db75d2704c3a080a9c4ef
ABLATED command-exit = 1
  × WINDOWED: a saturated fetch paints `3+` / `1+`, never a bare `3` / `1`
  × BOUNDARY: a board holding EXACTLY the window still says `3+`, and that is the honest half
  × SWIMLANES: the second header implementation is marked too, on both its rows
  Tests  3 failed | 2 passed (5)
on-disk (restored)= cbc94487407f46c8b5649806b91596b29645a0c0   (git diff HEAD: empty)

Three marker rows red, both negative controls still green — which is the right shape: the ablation makes every count bare, and bare is what the controls expect. The swimlane failure printed the shipped defect verbatim: Screen(3)Offer(1) and inbound(2) / referral(2), all bare.

Gates run locally, exit codes as printed

Derived by hand from package.json scripts plus .github/workflows/{ci,lint,performance-budget,changeset-presence,changeset-guard,control-bytes}.yml — objectui has no scripts/pm/dispatch-gates.mjs and no verify lock.

command exit
turbo run build --filter '@object-ui/plugin-kanban^...' (12 pkgs) 0
turbo run build --filter='!@object-ui/site' (43 tasks, for the dist-reading gates) 0
pnpm --filter @object-ui/plugin-kanban test (36 files, 237 tests) 0
pnpm --filter @object-ui/plugin-kanban type-check 0
turbo run lint — whole repo, 47/47 tasks, 0 errors 0
check:control-bytes · check:handler-key-reads · check:element-data-source-declaration 0 · 0 · 0
check:side-effects-array · check:i18n-keys · check:spec-symbols 0 · 0 · 0
check:unreferenced-sources · check:doc-example-readers 0 · 0
check:phantom-deps · check:unused-deps 0 · 0
check:vi-mock-specifiers · check:vi-mock-inherit 0 · 0
check:readme-exports · check:dist-completeness · check:esm-specifiers 0 · 0 · 0
check:sdui-registration-pins (after the console build) 0
check:eager-closure · lint:coverage · type-check:coverage · check:lint-rule-coverage 0 · 0 · 0 · 0
check-changeset-presence · check-changeset-fixed · check-changeset-no-major 0 · 0 · 0
check-governed-queue-guard --test (the five paths) 0 — NOT GOVERNED

⚠️ check:readme-exports and check:sdui-registration-pins first returned prerequisite-not-met, not red — "type entry not on disk, run pnpm build first" and "no console build to weigh". Both were re-run after the full build and are the 0s above. Type-check likewise reported phantom TS2307s until the dependency closure was built.

Changeset

.changeset/8307-kanban-lane-count-honesty.md, @object-ui/plugin-kanban: patch. Owed and checked, not assumed: check-changeset-presence.mjs reports "3 source file(s) of 1 released package(s) changed" — the package publishes dist and the change moves rendered output.

Patch round — objectui#7322's spelling pin, kept rather than moved

CI went red on one test, packages/types/src/__tests__/object-kanban-group-by-limit-7322.test.ts:221 — ours, not a flake. Reproduced locally on e33d6ff before touching anything: 1 failed / 28 passed, identical assertion.

× `limit` is still read, as the exact text the docblocks cite
AssertionError: packages/plugin-kanban/src/ObjectKanban.tsx no longer reads `schema.limit`
  as `$top: schema.limit ?? DEFAULT_KANBAN_LIMIT`

objectui#7322 pins that literal source text in READ_TEXT.limit. The first cut of the saturation reading hoisted the cap into const rowWindow = schema.limit ?? DEFAULT_KANBAN_LIMIT and passed $top: rowWindow: behaviour identical, pinned spelling gone.

Siblings, measured not assumed. git grep -F on the literal finds nine occurrences. Exactly one is executable — the READ_TEXT.limit row above. The other eight are prose: docblocks in packages/types/src/objectql.ts:2861, packages/types/src/zod/objectql.zod.ts:1185, packages/plugin-kanban/src/index.tsx:379, packages/app-shell/.../previews/block-config.ts:237, a ledger why string in block-config-schema-parity-8216.test.ts:188, and two changesets. Separately, object-kanban-record-source-7780.test.ts pins three more literals out of this same file (const boundData = useDataScope(schema.bind);, the fetch guard, and the const rawData = … line). All three are untouched by this PR and are green — they are also why this file is treated as text-pinned by house style.

Resolution: constraint 2, and it costs nothing. The query is now a named object with the cap spelled inline exactly as pinned, and the saturation comparison reads query.$top back off it:

const query = {
    $filter: schema.filter,
    $top: schema.limit ?? DEFAULT_KANBAN_LIMIT,
    ...(expand.length > 0 ? { $expand: expand } : {}),
};
const results = await dataSource.find(schema.objectName, query);
...
setFetchWindowSaturated(data.length >= query.$top);

This is one spelling, not two — no expression is duplicated to appease a grep. It is also strictly better than the rowWindow local it replaces: a second copy of the cap kept only for the comparison could drift from the value actually on the wire, and a windowed-ness marker computed against a window the server was never asked for is precisely the silent wrongness this card exists to remove. The structure now makes that drift unrepresentable.

No pin weakened, skipped, quarantined or edited. packages/types is untouched by this PR; no file surface was extended. The assertion still fails if the renderer ever stops reading schema.limit or stops defaulting to DEFAULT_KANBAN_LIMIT — verified by the same ablation discipline that produced it: the row is red on e33d6ff and green on the head below.

Green, on the pushed head:

run result
object-kanban-group-by-limit-7322.test.ts (the failing file) 29 passed, incl. ✓ limit is still read, as the exact text the docblocks cite
+ object-kanban-record-source-7780.test.ts + packages/plugin-kanban/ 38 files / 283 tests passed, exit 0
pnpm --filter @object-ui/plugin-kanban type-check 0 — query.$top types clean
pnpm --filter @object-ui/plugin-kanban lint 0 — same 176 pre-existing warnings, none new

origin/main merged before pushing (4d78b42); it brought #8737 and #8771 and touched no file under packages/types, so neither #8776 nor #8777 has landed yet and there was no conflict. The ablation above is still anchored to the exact bytes it was run on: KanbanImpl.tsx is untouched by this patch round and its blob is still cbc94487407f46c8b5649806b91596b29645a0c0.

⛔ Unchanged by this round, as instructed: the 77+ design, the >= saturation predicate, the three header sites and the BOUNDARY row.

验收备注

  • noted, not filed: the flat column header renders a bare English Full badge and the swimlane lane toggle a bare ▶, neither behind useKanbanT. Pre-existing, untouched here, and cosmetic-copy rather than a wrong number. Carrier: whoever next opens KanbanImpl.tsx's header block.
  • noted, not filed: no tooltip explains the + to a first-time reader. Adding one means a new key across ten locale packs, which is outside this card's declared file surface; the marker itself is self-describing and never false, so the gap is legibility, not honesty.
  • Option 1 (the server-side group-count aggregate) remains the complete fix and is untouched. This change is a strict improvement even if it later lands, exactly as triage said.

🤖 Generated with Claude Code

https://claude.ai/code/session_01611D6ZaRaMmwTNQmSbk8MH


Generated by Claude Code

…ot `77` (objectui#8307)

`object-kanban` fetches with a real `$top` (objectui#4025) and groups what came
back into lanes client-side, so `col.cards.length` counts fetched rows that fell
into this lane rather than the size of the group. Over any object holding more
rows than the window every lane number is wrong and they sum to the window —
measured at 77 / 19 / 2 against a true 88 / 46 / 28 / 14 / 9 / 15 on 200 records.

The board has no group total and cannot compute one without a server-side
group-count aggregate. What it can stop doing is claiming one. When the fetch
comes back saturated — at least as many rows as the window allowed — every lane
header renders `N+`, which is exactly what a count over a window establishes.
A short fetch is the one case where the client knows the result set was
exhausted, and there the bare number is kept; so is the bare number on rows
handed to the board whole. `DEFAULT_KANBAN_LIMIT` is unchanged.

All three headers (flat column, swimlane column-title row, swimlane lane row)
go through one `laneCountLabel`, so the board cannot be honest in one layout and
silently wrong in the other.

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

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3484.2 KB 3512.7 KB
Main entry chunk (gzip) 144.0 KB 350 KB
Entry file index-B2RMEX0H.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) 11.08KB 4.58KB
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) 499.42KB 114.32KB
core (index.js) 7.48KB 2.96KB
create-plugin (index.js) 10.12KB 3.28KB
data-objectstack (index.js) 198.39KB 55.29KB
fields (index.js) 245.88KB 62.05KB
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) 13.52KB 4.88KB
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) 8.39KB 3.10KB
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) 49.03KB 13.93KB
plugin-charts (index.js) 71.39KB 19.92KB
plugin-chatbot (index.js) 194.53KB 46.34KB
plugin-dashboard (index.js) 131.43KB 34.44KB
plugin-designer (index.js) 215.51KB 44.29KB
plugin-detail (index.js) 252.39KB 65.32KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 134.25KB 33.52KB
plugin-gantt (index.js) 167.16KB 40.99KB
plugin-grid (index.js) 210.67KB 57.19KB
plugin-kanban (index.js) 55.84KB 15.85KB
plugin-list (index.js) 112.73KB 27.69KB
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.55KB 3.32KB
plugin-view (index.js) 84.54KB 20.84KB
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.93KB 1.49KB
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 (strict-authoring-face.js) 14.27KB 5.47KB
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
Contributor Author

CI red — diagnosed, this PR's, patch round dispatched

domain:ui @ objectui seat (session_01611D6ZaRaMmwTNQmSbk8MH), 2026-09-09T06:3xZ.

Test (shard 4/4) — 1 failed / 8746 passed. Read from the job log, ⛔ not inferred:

packages/types/src/__tests__/object-kanban-group-by-limit-7322.test.ts:221
AssertionError: packages/plugin-kanban/src/ObjectKanban.tsx no longer reads `schema.limit`
  as `$top: schema.limit ?? DEFAULT_KANBAN_LIMIT`

It is ours, and it is not a flake

objectui#7322 pinned that literal source text. This PR extracts const rowWindow = schema.limit ?? DEFAULT_KANBAN_LIMIT so the saturation predicate can compare against the window, and passes $top: rowWindow. ⇒ the behaviour is unchanged — the limit is still read, the default still applies — but the spelling the pin greps for is gone.

⛔ Not re-run, and ⛔ not called a flake: the diff touches exactly the pinned line, so the single failing assertion is caused by this change. One test, named, reproducible.

What the fix may and may not be

The pin's intent must survive: ObjectKanban still reads schema.limit and still defaults to DEFAULT_KANBAN_LIMIT, and it must still fail if a future change really stops doing so. ⛔ Weakening, skipping, quarantining or deleting it to get green is refused outright.

Preference order given to the dev: keep the pinned spelling inline if that costs nothing real; ⛔ not two spellings of one expression merely to appease a grep; otherwise update the pin to the new spelling with the reason stated. That file lives in packages/types, outside this claim's packages/plugin-kanban/** surface — the extension is authorised by this seat for that one file, on the ground that the pin is about the file this PR changes.

⚠️ packages/types is contended (PRs #8776, #8777 from the domain:spec seat) — origin/main gets merged before the push.

Everything else stands

All other 32 checks are green, and the seat review on objectui#8307 is already ACCEPT: the 77+ marker, the >= saturation predicate, the three header sites and the BOUNDARY row are unchanged by this. ⛔ This is a one-test patch round, not a re-scope.


Generated by Claude Code

… the window back from the query

The saturation reading added for objectui#8307 had hoisted the row cap into a
local (`const rowWindow = schema.limit ?? DEFAULT_KANBAN_LIMIT`), which left the
behaviour identical but removed the literal source text
`objectui#7322` pins off disk in
`packages/types/src/__tests__/object-kanban-group-by-limit-7322.test.ts`.

The query is now a named object with the cap spelled inline exactly as before,
and the saturation comparison reads `query.$top` — the very number this request
carried. That is one spelling, not two: a separate local kept only for the
comparison could drift from the value on the wire, and a windowed-ness marker
computed against a window the server was never asked for is precisely the silent
wrongness objectui#8307 exists to remove.

No behaviour change, and no pin weakened: `$top: schema.limit ?? DEFAULT_KANBAN_LIMIT`
is back on disk verbatim, so the assertion still fails if the renderer ever stops
reading `schema.limit` or stops defaulting to `DEFAULT_KANBAN_LIMIT`.

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

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3484.2 KB 3512.7 KB
Main entry chunk (gzip) 144.0 KB 350 KB
Entry file index-uQwWn1BF.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) 11.08KB 4.58KB
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) 499.42KB 114.32KB
core (index.js) 7.48KB 2.96KB
create-plugin (index.js) 10.12KB 3.28KB
data-objectstack (index.js) 198.39KB 55.29KB
fields (index.js) 245.88KB 62.05KB
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) 13.52KB 4.88KB
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) 8.39KB 3.10KB
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) 49.03KB 13.93KB
plugin-charts (index.js) 71.39KB 19.92KB
plugin-chatbot (index.js) 194.53KB 46.34KB
plugin-dashboard (index.js) 131.43KB 34.44KB
plugin-designer (index.js) 215.51KB 44.29KB
plugin-detail (index.js) 252.39KB 65.32KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 134.25KB 33.52KB
plugin-gantt (index.js) 167.16KB 40.99KB
plugin-grid (index.js) 210.67KB 57.19KB
plugin-kanban (index.js) 55.85KB 15.86KB
plugin-list (index.js) 112.73KB 27.69KB
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.55KB 3.32KB
plugin-view (index.js) 84.54KB 20.84KB
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.93KB 1.49KB
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 (strict-authoring-face.js) 14.27KB 5.47KB
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-zhuang
os-zhuang marked this pull request as ready for review September 9, 2026 06:53
@os-zhuang
os-zhuang added this pull request to the merge queue Sep 9, 2026
Merged via the queue into main with commit 5591f03 Sep 9, 2026
35 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-8307-kanban-lane-count-honesty branch September 9, 2026 07:10
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.

2 participants