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

fix(plugin-kanban): read the cardTitle/titleField pair once, through one resolver - #8917

Merged
huangyiirene merged 1 commit into
mainfrom
claude/issue-8308-kanban-card-title-precedence
Sep 10, 2026
Merged

huangyiirene merged 1 commit into
mainfrom
claude/issue-8308-kanban-card-title-precedence

Conversation

@claude

@claude claude Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Fixes #8308

ObjectKanban resolved the same authoring choice — which record field titles a card, spelled cardTitle with titleField as its legacy alias — in two places with two different operators: schema.cardTitle || schema.titleField in the card list's effectiveData memo, and schema.cardTitle ?? schema.titleField in the record-detail drawer's heading. Those differ on exactly the falsy-but-present values, and on a string key that value is '', so a board authored { cardTitle: '', titleField: 'name' } titled its cards from name while its drawer heading fell through to the object-label floor. One authored document, two answers.

What changed

The pair is now read once, through the new exported resolveKanbanTitleField, and both sites call it — the shape resolveKanbanCardFields already gives cardFields in the same file.

⛔ Deliberately not fixed by making the drawer say ||. That repairs today's two sites and leaves the property that produced them — the pair is readable ad hoc, anywhere — fully intact, so a third read site invents a third precedence. The census below is the half that reddens on that third site, and a two-operator fix would not have produced it.

The ruling this carries, and where it is now written down

'' means UNSET on either key; cardTitle wins when NON-EMPTY. cardTitle names a record field, and '' can name none, so an empty string has no meaningful reading here — it can only be the residue of an empty input. It therefore falls through exactly as an absent key does.

That extends the precedence index.tsx already publishes in prose ("cardTitle wins when both are authored") to the single case that prose never covered. Nothing in the tree said what '' meant here, which is the condition that let the two operators drift apart; resolveKanbanTitleField's docblock now says it.

Falsification checked, none found. The ruling was to be voided by any site in the tree that parses '' as a meaningful field name. Swept: every cardTitle / titleField read in packages/ and apps/. The collectors filter typeof f === 'string' && f; the two view adapters floor an empty titleField with || 'name'. The nearest thing to a counterexample is ObjectGallery.tsx's titleField != null && item[titleField] != null — a different component and a different key, and item[''] is undefined, so it does not resolve '' to a field either.

Discriminating power — measured, both legs restored

Both legs mutate ObjectKanban.tsx on disk, prove the mutation landed (grep -c on the injected and deleted text plus a blob-hash comparison against HEAD), run, then restore with git checkout HEAD -- PATH and prove the restore by blob hash and an empty git diff HEAD. No build is involved: the spec imports the component relatively (../ObjectKanban) and the census reads the file off disk, so nothing here resolves through dist/.

Leg 1 — put both operators back (resolveKanbanTitleField(schema) call count in the component: 2 → 0). Tests 3 failed | 8 passed (11):

row mutated at HEAD
SUBJECT { cardTitle: '', titleField: 'name' } titles BOTH surfaces from name ❌ drawer accessible name was Contacts Detail ✅
CONTROL { cardTitle: 'subject', titleField: 'name' } → subject on both ✅ ✅
CONTROL { titleField: 'name' } → name on both ✅ ✅
census: no property read outside the resolver ❌ 4 offenders, by name and offset ✅
census: both read points call the resolver ❌ undefined call sites, expected 2 ✅

The two controls are green on both sides of the fix, which is what makes them controls.

Leg 2 — add a third ad-hoc read (const ablationThirdReadSite = schema.cardTitle ?? schema.titleField;). Tests 1 failed | 10 passed (11) — only the census reddened, naming the new read. That is the structural pin doing the job the fence asked for.

Verification

Run from the repo root (pnpm exec vitest run PATH, never the package-filtered form the objectui#3378 guard silently redirects), serialised on the container's shared heavy-verify lock; each verdict below is the runner's own VERDICT command-exit line.

  • pnpm exec turbo run build --filter=...@object-ui/plugin-kanban --concurrency=2 — 40/40 tasks, exit 0.
  • pnpm --filter @object-ui/plugin-kanban run type-check — echoed tsc --noEmit && tsc -p tsconfig.test.json, exit 0.
  • pnpm exec vitest run packages/plugin-kanban/ — 43 files, 271 tests, all passing, re-run at final 241b39f1f.
  • Cross-package watchers that read this file off disk — object-kanban-record-source-7780, object-kanban-group-by-limit-7322, kanban-calendar-filter-sort-8174, base-bind-declared, kanban-arm-batch70-7742, kanban-plugin-dialect-authoritative-7664: 6 files, 95 tests, exit 0.
  • Gates derived from the diff: check:control-bytes, check:handler-key-reads, check:element-data-source-declaration, check:sdui-registration-pins, check:entry-guard, check:unreferenced-sources, check:vi-mock-specifiers, check:comment-mask-corpus, check:changeset-presence — all exit 0. pnpm --filter @object-ui/plugin-kanban run lint exit 0 (181 pre-existing warnings, 0 errors).
  • check:readme-exports exits 1 as NOT MEASURED, not as a finding: its eight remaining rows are @object-ui/cli and @object-ui/plugin-ai, two packages outside this diff and outside the dependency closure built here, each printing "run pnpm build first". @object-ui/plugin-kanban IS among the 35 judged packages and is clean.
  • Repo-wide scans (pnpm lint, the full suite, the doc-type gates that need a whole-tree build) are declared to CI.

Position and content axes

  • Position (stored line citations). scripts/check-doc-example-types.mjs's UNGATED_EXAMPLES holds no plugin-kanban entry; no .mjs or .json in the tree stores a ObjectKanban.tsx:NNN address. The line citations that exist are prose in comments, were already stale before this change (they name :350 / :1024 for reads that were at :552 / :1303), and census:cross-file-line-citations is report-only by objectui#8875's own ruling — noted, not churned here.
  • Content (who reads this file, not just who calls it). Six cross-package watchers read packages/plugin-kanban/src/ObjectKanban.tsx off disk; all six are run above. packages/sdui-parser/'s census is scoped to plugin-dashboard and does not see this file.

验收备注

  • The census deliberately uses the tree's one comment masker (scripts/js-comment-mask.mjs) rather than a hand-rolled stripper, following ObjectView.relayRungCensus-7559.test.ts's precedent — this file's own prose quotes (schema as any).titleField verbatim, which a naive regex would either count as a read or blank the code around.
  • resolveKanbanTitleField reaches dist/ObjectKanban.d.ts but not dist/index.d.ts, and the package's exports map routes only . and ./style.css — so it is not consumer-reachable, exactly like resolveKanbanCardFields. No README row is owed.
  • Out of scope, noted and not filed: ObjectKanbanComponentProps's docblock still cites :350 / :1024 for the titleField read — the substantive claim (both union arms are load-bearing) is still true, only the addresses are stale, and they were stale before this change.

Clause-②: yes


Generated by Claude Code

…one resolver (objectui#8308)

`ObjectKanban` resolved the same authoring choice — which record field titles a
card, spelled `cardTitle` with `titleField` as its legacy alias — in two places
with two different operators: `schema.cardTitle || schema.titleField` in the
card list's `effectiveData` memo, and `schema.cardTitle ?? schema.titleField` in
the record-detail drawer's heading. The two differ on exactly the
falsy-but-present values, and on a string key that value is `''`, so a board
authored `{ cardTitle: '', titleField: 'name' }` titled its CARDS from `name`
while its DRAWER heading fell through to the `Record #<id>` floor.

Both sites now call the new exported `resolveKanbanTitleField`, so the pair is
read once and cannot answer one authored document two ways. Making the two
operators agree would have repaired today's two sites and left the property that
produced them — the pair is readable ad hoc, anywhere — fully intact, so a third
read site would invent a third precedence.

`''` is UNSET on either key: `cardTitle` names a record field and `''` can name
none, so it falls through exactly as an absent key does and `cardTitle` wins when
NON-EMPTY. That extends the precedence `index.tsx` already publishes in prose
("`cardTitle` wins when both are authored") to the one case that prose never
covered — nothing in the tree had said what `''` meant here, which is what let
the two operators drift. The resolver's docblock now says it.

Tests: the subject (both surfaces resolve `name` from `{ cardTitle: '',
titleField: 'name' }`), two controls that are green on both sides of the fix
(a non-empty `cardTitle` wins; an absent one falls through), and a source census
over this package's shipped source that reddens on a property read of either
spelling outside the resolver — the half a "make both operators `||`" fix would
not have produced.

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.4 KB 3512.7 KB
Main entry chunk (gzip) 144.1 KB 350 KB
Entry file index-C4IYzgdW.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.23KB 114.67KB
core (index.js) 7.48KB 2.96KB
create-plugin (index.js) 26.68KB 8.94KB
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) 131.71KB 34.50KB
plugin-designer (index.js) 215.51KB 44.29KB
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.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
Collaborator

Contract review at CONTRACT_REVIEW_TIER — Verdict: PASS (audit reading; director seat, summon #18 segment 6, session_017Js5kTpTtxieBjPyScgxJ3, 2026-09-10T00xxZ)

PR objectui#8917 · head 241b39f1f43de7089bd3308cfaaa2cf312f59423 (re-read at posting 00:33:48Z; unchanged since 00:15Z) · card objectui#8308.

  • Reviewed-by: isolated claude-fable-5-1 subagent, transcript-verified (69 harness model stamps, all claude-fable-5-1, zero residue; positive control 59 assistant / 40 user role tokens), adopted verbatim below.
  • Implemented-by: session_01611D6ZaRaMmwTNQmSbk8MH · branch claude/issue-8308-kanban-card-title-precedence (newest Claim: 5610340323, PM-dispatched under os-zhuang). Distinct sessions ⇒ not a self-review.
  • Reading for the seat: PASS, no rework; F4–F6 non-blocking nits (regex-shaped census pin, three unpinned precedence cells, designer-face description lacks the '' clause). Overlap with feat(types,plugin-kanban,plugin-gantt)!: retire the bare kanban / gantt node keys and the kanban-ui / kanban-enhanced registrations #8865 measured clean in both orders. mergeable_state: behind is base drift only — queue-eligible. ⛔ This seat cleared no carrier and touched no PR state at posting.

Verdict: PASS (contract-review tier). No REWORK items; F4–F6 are non-blocking nits for a patch round or follow-up card. Clear to leave the review-tier gate; landing-ops next (PR is un-governed, CI converged green, needs a branch update — behind).

Head reviewed: 241b39f1f43de7089bd3308cfaaa2cf312f59423 — matches the stated prefix, did not move during the review. 1 commit over merge-base 348725a7c; origin/main at 60e1f80b2; 3 files, +461/−7 (packages/plugin-kanban/src/ObjectKanban.tsx, new packages/plugin-kanban/src/__tests__/ObjectKanban.titleFieldPrecedence-8308.test.tsx, new .changeset/8308-kanban-card-title-one-precedence.md). GitHub: mergeable: true, mergeable_state: behind (base drift only).

Clause-② reading + claim match + --pair exit

  • PR body: Clause-②: yes. Card newest Claim: (comment 5610340323, os-zhuang PM dispatch, §8 appended by the dev under the PM's §6 pre-authorisation): Clause-②: yes. needs:contract-review on both carriers. check-clause2-carriers.mjs --pair 8917 → exit 0 (both carriers agree, no widening tell).
  • My reading: yes is correct on both grounds. Mechanical floor: new module-level export function resolveKanbanTitleField (ObjectKanban.tsx:184-195) reaches dist/ObjectKanban.d.ts; it is not on the barrel (index.tsx untouched) and package.json#exports routes only ././style.css, so it is not consumer-reachable — same standing as resolveKanbanCardFields. Substance: the PR rules '' = unset on two published authoring keys (OBJECT_KANBAN_INPUTS index.tsx:582-583), a falsifiable contract-semantics claim.

Governed surface: node scripts/check-governed-queue-guard.mjs --test <3 paths> → NOT GOVERNED (exit 0). CI Governed Surface Queue Guard success. Ordinary review/queue route.

CI on head: 33 check-runs on 241b39f1f4, all completed at time of writing (last finished 00:29:53Z): 30 success, 3 skipped (coverage, coverage matrix placeholder, dependabot), 0 failed. Required floor: Lint success, Type Check success; Test (shard 1-4/4) all success; Changeset Declaration / Bump Policy / Fixed Group Check, README Export Check, Doc Snippet Type Check success. Commit status Vercel = success (ignored build step). No causation to report.

Findings

  • F1 — Published-face delta (correct, informational). Only one cell of the precedence table moves, and only on one surface. Card list (effectiveData, was || at old :552, now resolveKanbanTitleField(schema) at ObjectKanban.tsx:621): unchanged for every input. Drawer heading (was ?? at old :1303, now the resolver at :1377): {cardTitle:'', titleField:<non-empty>} before → '' && rec[''] falsy → detailTitle floor; after → rec[titleField]. All other cells identical before/after: non-empty cardTitle wins over anything; absent/'' cardTitle + non-empty titleField → titleField; both absent/'' → ADR-0079 fallback on the card list and the floor on the drawer. Off-contract falsy non-strings (0/false/NaN) on the drawer now fall through as they always did on the card list. No registry inputs change (index.tsx:582-583 byte-identical), no barrel export, no schema key or type moves; KanbanTitleFieldSource (:137-142) is non-exported and declaration emit keeps it un-exported (verified with a scratch tsc --declaration probe, TS 6.0.2).
  • F2 — Correctness vs card and rulings (PASS). Card's closing instruction + triage fence (comment 5583020403: exported resolver, ⛔ not a two-operator fix, docblock must say what '' means) + PM claim ruling (|| semantics: cardTitle wins only when non-empty; '' unset) are all implemented: resolver :184-195 uses a truthiness test with the non-narrowing rationale at :187-191; the '' ruling is written at :151-162; both sites call it. The claim's falsification condition ("any site in the tree parsing '' as a meaningful field name voids the ruling") re-derived on origin/main: collectors plugin-list/src/ListView.tsx:1538,1892 (candidate list filtered to non-empty strings), adapters plugin-view/src/ObjectView.tsx:1414 and app-shell/src/views/ObjectView.tsx:449 (|| 'name' floor), plugin-list/src/ObjectGallery.tsx:319 (??, different component, item[''] is undefined). None gives '' a field meaning; the ruling stands.
  • F3 — Every read site of the pair, plugin-kanban shipped sources on head: ObjectKanban.tsx:192-193 only (inside the resolver). Whole-word census adds only interface members :139/:141, a local variable :1377-1379 (not a schema read), and the registry rows index.tsx:582-583 (object-literal keys/description strings, not reads). Zero destructuring or bracket reads exist.
  • F4 — Structural pin is regex-shaped (non-blocking). TITLE_KEY_READ = /\.\s*(?:cardTitle|titleField)\b/g catches dotted/optional-chained access only; const { cardTitle, titleField } = schema or schema['cardTitle'] would evade the census and re-open exactly the "third read site" class the fence targets. Sound today (F3); suggest adding a destructuring/bracket pattern in a patch round or a follow-up.
  • F5 — Precedence-table coverage (non-blocking nit). Of the 9 cells over {non-empty, '', absent}², the resolver tests pin 6 plus null/undefined schema. Unpinned: (ne,'')→ne, (abs,'')→undefined, ('',abs)→undefined — the cells that pin the "'' is unset on EITHER key" half for titleField. Render tests: subject + two controls on both surfaces, distinct fixture values (name≠subject), and the ablation proves the controls green on both sides of the fix (leg 1: 3 failed / 8 passed with both controls green; leg 2: only the census reddened). Adequate; three cheap cells to add.
  • F6 — Docs (non-blocking). The ruling text lives only in the resolver TSDoc; the published designer face index.tsx:583 still reads "cardTitle wins when both are authored" with no '' clause. Not owed by the card (triage named the docblock as the carrier), but a one-clause addition there would put the ruling where authors read it. packages/plugin-kanban/README.md, content/docs/plugins/plugin-kanban.mdx, skills/objectui/** do not mention the pair; content/docs/api/schema-reference.md:969,983 mention it without precedence text. No docs delta owed; skills/** untouched (would have flipped the PR to governed).
  • F7 — Scope and changeset (PASS). 3 files, all on-card; no content/docs/releases/; nothing unrelated. Changeset '@object-ui/plugin-kanban': patch — package is published (private unset, v17.6.0), in the single fixed group; patch is the right level (behaviour fix, no reachable API change, no major).
  • F8 — PR form (PASS). Draft, base main, first line Fixes #8308 — correct closure (resolver landed, operator chosen and stated, pinned). No closing keyword sits next to any other open card number.
  • F9 — Evidence (PASS). Commands + outputs pinned to 241b39f1f in both the PR body and the os-dev-report (comment 5610644291); local check:readme-exports NOT MEASURED is superseded by CI README Export Check success on head. Test file follows AGENTS.md §测试纪律 (module-scope import '../KanbanImpl', no beforeAll dynamic import); the @ts-expect-error .mjs import mirrors app-shell/src/views/ObjectView.relayRungCensus-7559.test.ts:111-112.
  • F10 — Stale prose after feat(types,plugin-kanban,plugin-gantt)!: retire the bare kanban / gantt node keys and the kanban-ui / kanban-enhanced registrations #8865 (noted, not this PR's defect). New docblock ObjectKanban.tsx:129-135 and the test fixture comment describe the KanbanSchema arm's titleField?: never tombstone; feat(types,plugin-kanban,plugin-gantt)!: retire the bare kanban / gantt node keys and the kanban-ui / kanban-enhanced registrations #8865 retires that arm. One-paragraph refresh for whichever lands second.

Acceptance notes

  • Implemented-by: session session_01611D6ZaRaMmwTNQmSbk8MH / branch claude/issue-8308-kanban-card-title-precedence (newest Claim: comment 5610340323; PR footer names the same session; assignee os-zhuang is the dispatch's presence bit; no second claim). Reviewed-by: this seat, session_017Js5kTpTtxieBjPyScgxJ3 — distinct; not SELF-REVIEW.
  • Dev open_questions (footer form, option A chosen): reporting-only, no contract effect — accept A, no action.
  • Dev out-of-scope finding on re-grade: verified. plugin-view/src/ObjectView.tsx:1357 destructures titleField out and spreads ...restKanban at :1416 while writing titleField: kanbanCfg.titleField || 'name' at :1414; plugin-list/src/ListView.tsx:2547/:2574 has the same shape. A stored kanban.cardTitle: '' reaches the node as {cardTitle:'', titleField:'name'} — the card's exact reproduction — though @objectstack/spec KanbanConfig is $strict and declares neither key. PM to weigh triage's p3→p2 condition; not blocking.
  • Overlap vs feat(types,plugin-kanban,plugin-gantt)!: retire the bare kanban / gantt node keys and the kanban-ui / kanban-enhanced registrations #8865 (head 4dcf54452, draft, Clause-②: yes, GOVERNED via skills/objectui/guides/page-builder.md, waits for a human merge): merge-base of the two heads 42df92809; 6 files intersect, but 8917 itself edits only ObjectKanban.tsx among them (the other five ride 8917's newer base). git merge-tree --write-tree in both orders → clean, identical result tree 2165d1faf7, zero conflicts. On that merged tree the only property reads of the pair are inside the resolver (:191-192) and both call sites survive (:600, :1362), so 8917's census and call-site pins stay green with 8865 on top; 8865's narrowing to schema: ObjectKanbanSchema is assignable to KanbanTitleFieldSource (titleField?: string + index signature); 8865 adds no new read of the pair. Either landing order is safe; the only residue is F10's stale paragraph. Practical order: 8917 is un-governed and queue-ready after a branch update; 8865 is parked for a human merge regardless.

Generated by Claude Code

Copy link
Copy Markdown
Collaborator

Landing provenance — director seat, summon #18 segment 6 (session_017Js5kTpTtxieBjPyScgxJ3, 2026-09-10T00:33:59Z). Clearing needs:contract-review on both carriers (objectui#8917 + card objectui#8308) on the strength of the contract-review-tier PASS at #8917 (comment) (head 241b39f1f4, unchanged). Landing pre-checks (contract-review.md ①②③): ① tier verdict on the card (pointer posted); ② check-clause2-carriers.mjs --pair 8917 exit 0; ③ 33 check-runs on head, 0 red / 0 in progress; governed-surface test exit 0 (not governed); mergeable_state: clean. Next: ready → auto-merge (SQUASH) → merge-queue entry, per landing-operations.md. Executed under the maintainer's 2026-09-09 13:4xZ order 「把当前的契约复审全部处理完」 precedent; the dispatching seat keeps ACCEPT/landing-window duties (MERGED confirmation + card close-out) if it is back before the queue finishes — otherwise this seat closes out.


Generated by Claude Code

@huangyiirene
huangyiirene marked this pull request as ready for review September 10, 2026 00:34
@huangyiirene
huangyiirene added this pull request to the merge queue Sep 10, 2026
Merged via the queue into main with commit 4fa0eb9 Sep 10, 2026
35 checks passed
@huangyiirene
huangyiirene deleted the claude/issue-8308-kanban-card-title-precedence branch September 10, 2026 00:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants