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

feat(sdui-parser): diagnose the inert quickAdd on the ObjectKanban tags instead of calling it unknown - #8922

Merged
os-zhuang merged 1 commit into
mainfrom
claude/issue-8285-kanban-quickadd-html-diagnostic
Sep 10, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/issue-8285-kanban-quickadd-html-diagnostic

Conversation

@claude

@claude claude Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Refs #8285 — slice C only. The card stays open after this lands: it then blocks on the @objectstack/spec retirement card, per the ruling's Execution paragraph. Deliberately not Fixes.

Clause-②: yes — four new exported symbols on a published package (checkKanbanQuickAdd, INERT_QUICK_ADD, QUICK_ADD_HOST_TYPES, QUICK_ADD_KEY from @object-ui/sdui-parser), and the already-published Diagnostic runtime payload gains a new code value, inert-quick-add, which consumers switch on. Under the mechanical floor either half alone is yes.

What is ruled, and what this implements

The director-seat ruling on #8285 (comment 5583979207, decision batch #91) answered the A/B half — B: quickAdd retires from object-kanban / kanban and stays on kanban-ui, where a React host can supply the function. This PR is the interim the ruling names verbatim:

C now: until the pin moves, quickAdd: true with no onQuickAdd is diagnosed at the html tier instead of dropped.

⚠️ Premise correction — the tier was not silent, it was WRONG

Re-measured on this branch's base 4fa0eb9c4, by predicate rather than by copying the card's anchors.

The card was filed saying the key is dropped "with no diagnostic". That is true of the spec validator, which accepts it, and false of the html tier: quickAdd is deliberately absent from OBJECT_KANBAN_INPUTS (objectui#8201 escalated it rather than declaring it), so validateTree already reported it — as unknown-prop, "has no prop quickAdd".

That message is a misdiagnosis, which is why slice C still has content. @objectstack/spec's ComponentPropsMap['object-kanban'] publishes quickAdd, so an author who checks the contract finds the warning contradicted, concludes the manifest is behind the spec, and keeps a key that will never do anything. It is also indistinguishable from a typo, so nothing records why the key is refused. objectui#8201's own pin header measured this shape from the other direction: a tier that calls a working spelling unknown "trains authors (AI authors included) to delete working metadata".

The defect itself is intact and was re-measured, not inherited: onQuickAdd appears 0 times in packages/plugin-kanban/src/ObjectKanban.tsx, against 6 for the control onCardClick in the same file, so the zero is a reading. The Quick Add control is gated on both halves (quickAdd && onQuickAdd) and onQuickAdd is an objectui#6124 runtime slot — a function. On this tier the second half is not merely absent but unwritable: a handler attribute on a parsed page draws forbidden-attr (measured). So there is no out-of-band consumer to protect, which is what makes this diagnostic unconditional rather than escape-hatched the way unconsumed-widget-option is.

The change

packages/sdui-parser/src/kanban-quick-add.ts — a new module in the shape of the objectui#5709 precedent next door. validateTree asks it once per authored prop, ahead of the declaration lookup, and its answer replaces what the walk would otherwise say about the key rather than joining it (two diagnostics for one mistake is what checkMemberTypes already refuses, objectui#8067). Asked ahead of the lookup on purpose: the claim is about the render path, so a later decision to declare the key must not silently disarm the warning.

The message names the missing half of the pair and points at kanban-ui, where the pair works.

Severity: warning — the escalation is deliberately not taken. The ruling's word is "diagnosed", not "refused". unknown-prop, what this replaces, was already a warning, so nothing hardens: compile() still returns ok and no page that saves today stops saving. validate.ts's own inert-expression note records that escalating an inert authored key to error is a separate question (objectui#6614 Q2) belonging at the save gate, and objectui#5709's ruling constrains this family directly — "no gate weakening and no new red gates were ruled". The hardening belongs to the contract, and option B is exactly that.

This diagnoses; it does not widen. quickAdd is still undeclared on both registrations — a pinned row asserts it.

Scope, kept as dispatched

  • ⛔ No spec change — retiring object-kanban.quickAdd from ComponentPropsMap is the separate cross-repo card.
  • ⛔ objectui does not stop forwarding quickAdd on the two ObjectKanbanRenderer tags — that follows the spec pin, not C.
  • ⛔ No inline record-creation path (option A) — ruled against. No dataSource.create, no permissions / required-field / rollback work.
  • ⛔ kanban-ui keeps the quickAdd / onQuickAdd pair untouched, and draws no new diagnostic. A pinned control asserts it.
  • ⛔ objectui#8201 is not addressed here and remains open.
  • A falsy quickAdd is untouched (the renderer gates on quickAdd && onQuickAdd, so it asked for no control and got none), and a braced value stays inert-expression's subject.

This module is scheduled for deletion by the change that lands the spec pin. The live pin carries a tripwire row for that: it asserts the spec still publishes the key, so it reddens on the day the retirement lands.

Ablation — the pin is red without the change and green with it

Mutation: the four-line dispatch removed from validate.ts; the marker checkKanbanQuickAdd(node.type, key, value) counted 1 → 0 on disk, blob c956914 → ee95db2, so the edit is proven landed rather than assumed. Restored with git checkout HEAD --, proven by an empty git diff HEAD, a clean git status, and the blob hash back to c956914. @object-ui/sdui-parser is aliased to its src in vitest.config.mts, so both suites read the mutated source; no dist is involved on either leg.

rows verdict
Subjects — red without the change 9 object-kanban / kanban × (draws exactly one inert-quick-add warning · it REPLACES the false unknown-prop · the message names the missing half and where the pair works); the whole-pipeline row from real source text; and both live-registry rows
Controls — green in BOTH worlds 17 each named in a source comment with the wrong fix it guards

Every control names its wrong fix in a comment, per the discipline: the unknown-prop control (a fix that turned the generic walk off for the block rather than answering for the key); kanban-ui (a fix scoped to "a kanban-ish tag", which would hit the one block the ruling keeps); a falsy quickAdd (a fix keyed on the key's presence rather than the author's request); the braced marker (a fix that read the parser's opaque $expr object as truthy); ok staying true (the escalation to error); plus the tag-set derivation, the still-not-declared rows, the spec tripwire and the zero-onQuickAdd tripwire.

26 passed with the change; 9 failed | 17 passed without it.

Gates — all on the final commit aa4512d26

Gate Verdict
vitest run packages/sdui-parser/ packages/plugin-kanban/ ✅ 58 files, 479 tests passed
turbo run type-check (both packages) ✅ 15 tasks successful — both new test files confirmed inside the programs via tsc --listFiles
turbo run build --filter=@object-ui/sdui-parser ✅ 6 tasks; check-dist-completeness runs inside it and passed
check-changeset-presence ✅ 5 source files of 2 released packages, 1 changeset
check:control-bytes ✅ 7112 tracked text files
check:doc-types / check:doc-fences ✅
check:handler-key-reads ✅ 62 judged reads
check:spec-symbols ✅
check:unreferenced-sources / check:self-import ✅
lint:coverage ✅ 46/46 packages, 0 errors
eslint over the two affected package trees ✅ 84 files judged, 0 errors, 192 warnings (all pre-existing rule classes; the sibling scalarKeysAreDeclaredAndHonoured-8201.test.ts alone carries 12 of the same no-explicit-any idiom, and no workflow sets --max-warnings)
check:sdui-registration-pins ⚠️ exit 2 = PREREQUISITE NOT MET ⇒ NOT MEASURED. It needs pnpm --filter @object-ui/console build first. Neither red nor green. This diff adds and changes zero registrations.
check:readme-exports ⚠️ NOT MEASURED — exit 1, but all 538 unjudgeable self-imports report the same cause, "type entry ./dist/index.d.ts is not on disk — run pnpm build first". Its own census line reads 0 real, 0 wrong-path, 0 fabricated, and 0 of its lines name sdui-parser. A build prerequisite, not a finding.

Declared narrowing: the repo-wide eslint . run is CI's, not this PR's. The narrowing is a measurement, not a skip: the population is read from eslint's own config, the count from its --format json output, and type-aware linting is not enabled anywhere in eslint.config.js (no parserOptions.project, no projectService), so this diff cannot move the verdict of any file it does not touch.

Documentation

content/docs/plugins/plugin-kanban.mdx gains a short prose section under Event Handling saying that Quick Add is a kanban-ui capability, why an object-driven board cannot have it, and what the new warning is — mirroring how the unconsumed-widget-option warning is documented on the dashboard page.

Measured and NOT fixed

  • apps/console/src/__tests__/registry-inputs-spec-parity.test.ts's 'object-kanban.quickAdd' ledger entry still says objectui#8201 owns the question and "its answer deletes this entry". Stale after batch chore: release packages #91 — the ruling moved the question here and answered it B. Left alone: a docs nit inside a test ledger, and it has a real successor, since the follow-up that stops forwarding the key must delete the entry anyway (the key leaves ComponentPropsMap).
  • kanban-ui also draws unknown-prop for an authored quickAdd: its registration publishes three inputs (columns, onCardMove, className) while its schema face accepts many more. That is the objectui#8201 declaration-gap shape on a block nobody has censused — but only this one key was measured, and objectui#8201 is open and owns that family, so nothing is filed on one instance.

🤖 Generated with Claude Code

https://claude.ai/code/session_01611D6ZaRaMmwTNQmSbk8MH


Generated by Claude Code

…tags instead of calling it unknown

The Quick Add control is gated on BOTH `quickAdd` and an `onQuickAdd` handler.
`onQuickAdd` is a runtime slot — a function — which no parsed page can write
(this tier parses, never executes) and which `ObjectKanban` supplies none of its
own for. So `quickAdd: true` on `object-kanban` / `kanban` has never rendered a
control.

The tier was not silent about it, but it was wrong: `quickAdd` is undeclared on
both registrations, so `validateTree` reported `unknown-prop` — "has no prop
quickAdd" — which is false against `@objectstack/spec`, whose
`ComponentPropsMap['object-kanban']` publishes the key, and which cannot be told
apart from a typo. An author who checks the contract finds the warning
contradicted and keeps a key that does nothing.

`checkKanbanQuickAdd` replaces that message with one that names the missing half
of the pair and points at `kanban-ui`, where a React host can supply the
function. Severity is unchanged (warning, as `unknown-prop` was), so `compile()`
still returns `ok` and no page that saves today stops saving; escalation to
`error` belongs at the save gate and to the contract, not here.

Bounded on purpose: `kanban-ui` untouched, a falsy `quickAdd` untouched (it asked
for no control and got none), and a braced value left to `inert-expression`. The
key is NOT declared — this diagnoses, it does not widen the authoring surface.

Interim by ruling: the contract-side refusal retires `object-kanban.quickAdd`
from the spec's `ComponentPropsMap`, and this module goes with it. The live
pin's spec row reddens on the day that lands.

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

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 50 chunks) 3487.8 KB 3512.7 KB
Main entry chunk (gzip) 144.1 KB 350 KB
Entry file index-XXPt6X2b.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) 16.69KB 6.21KB
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) 500.20KB 114.67KB
core (index.js) 7.48KB 2.96KB
create-plugin (index.js) 28.04KB 9.46KB
data-objectstack (index.js) 200.01KB 55.77KB
fields (index.js) 246.97KB 62.30KB
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) 14.81KB 3.63KB
plugin-calendar (index.js) 49.03KB 13.93KB
plugin-charts (index.js) 71.39KB 19.92KB
plugin-chatbot (index.js) 194.54KB 46.34KB
plugin-dashboard (index.js) 132.41KB 34.84KB
plugin-designer (index.js) 215.60KB 44.32KB
plugin-detail (index.js) 252.45KB 65.33KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.79KB 34.19KB
plugin-gantt (index.js) 166.96KB 40.93KB
plugin-grid (index.js) 210.86KB 57.28KB
plugin-kanban (index.js) 57.58KB 16.47KB
plugin-list (index.js) 112.54KB 27.65KB
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.42KB 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.66KB 2.50KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 2.71KB 1.35KB
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) 14.82KB 4.99KB
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
Collaborator

Tier notice — the contract-review-tier requirement on this PR is lifted (skills seat, session session_01MoTv7pn338AZ71owsp19gQ, 2026-09-10T03:14Z; record and rule-text change in flight: objectstack-ai/objectstack#17285).

Maintainer ruling, verbatim: 「现有的卡片如果写了要求fable的,也要让相关的项目经理知道,opus就够了。」 Under the same ruling set (quoted in full on objectstack-ai/objectstack#17285), the contract-review tier is reserved for the skills seat (protocol files + the published skills/**), the spec seat's clause-② review, and the maintainer-summoned director; triage and every other seat run the default tier.

For this PR: its Clause-②: yes gate no longer calls for a contract-review-tier review; its card sits in the domain:ui lane (lane=-). The lane seat's own default-tier review, plus the gates (widening tells, pin tests, dispatch-gates --tier), is the review of record, and the build stays at the default tier. Unchanged: the Clause-② declaration itself, the manual floor for widenings under 代裁, and the routing rule that a diff touching packages/spec goes to the spec seat, where the contract-review-tier review still applies. This comment changes no label, assignee or claim.


Generated by Claude Code

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants