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

fix(scripts): key the handler-key census on what a registration CLAIMS - #9702

Merged
os-try-charles merged 1 commit into
mainfrom
claude/issue-9573-handler-key-registration-keying
Sep 17, 2026
Merged

os-try-charles merged 1 commit into
mainfrom
claude/issue-9573-handler-key-registration-keying

Conversation

@os-try-charles

Copy link
Copy Markdown
Collaborator

Fixes #9573

Clause-②: no

scripts/check-handler-key-read-sites.mjs keyed a registration by its raw type string. register() in @object-ui/core's Registry sets ns:type, and sets the bare type key only when a namespaced registration omits skipFallback — so a renderer registered as { namespace: 'view', skipFallback: true } was judged against the arm of the bare key, the key skipFallback exists to stop it claiming. The census asked its question of a schema minted for a different component.

registrationsIn now reads the third argument and resolves it to literals (an inline object, a same-file const, a spread of one — the tree uses all three: five page registrations hand over a shared pageMeta identifier and four spread it). analyze then looks the arm up by the keys the registry would resolve the registration under.

The count moved in BOTH directions, and neither direction is a relaxation

Thirteen KNOWN_UNDECLARED_READS rows leave, and none by being declared. Each was produced by a registration carrying skipFallback: true under a namespace — action:button, action:icon, page:tabs, view:form, view:grid, view:list — so the arm named in the row was another component's: a bullet/numbered list, a Shadcn button, the ui:tabs container. @object-ui/plugin-list's own registration comment says it in the repo's words: "the bare list key belongs to the bullet/numbered list DISPLAY primitive".

⚠️ Ten of those thirteen reads did not leave the census. The same read sites are still judged, under the registration that claims a mirrored key — object-form, object-grid, list-view — where all ten are declared runtime slots. What left is a second, wrongly addressed scoring of them.

A false green went with them, and the ledger could never have shown it. 'form' FormSchema.onCancel passed only because FormSchema is the ui:form primitive's own arm and mints its own onCancel for its own destructure; the two spellings coincided. A passing read leaves no row, so no count of the ledger could see that half. It is now scored once, on object-form.

detail::DetailSchema.onTabChange stays: register('detail', DetailView, { namespace: 'view', category: 'view' }) carries no skipFallback, so it does claim the bare key and DetailSchema IS its arm. Its disposition is still undecided and still owned by objectui#7804.

The gate was not made to look at less

The three reads that now have no arm anywhere (action:button, action:icon, page:tabs register nowhere else) are not dropped. They are reported as UNMIRRORED-ALIAS census rows carrying the bare arm they are not, counted in the OK line and printed by --list — boundary 3 of this gate made countable. Bringing them into judgement means mirroring the namespaced key, never declaring it on the bare arm.

A registration whose namespace / skipFallback cannot be resolved to literals is refused rather than guessed at (scoped to types that have an arm, since the rest were never judged). That is also the floor under the keying itself: a broken resolver leaves every registration unkeyed and reds. The repository has zero today.

Verification

Gate, before and after on this branch (node scripts/check-handler-key-read-sites.mjs):

before  OK  105 arm(s), 212 registration(s) (119 with an arm), 60 reachable handler read(s),
            60 judged, ... 14 exempted by ledger
after   OK  105 arm(s), 212 registration(s) (103 keyed onto an arm), 46 reachable handler read(s),
            46 judged, ... 14 read(s) under 16 namespaced-only alias(es) no mirror carries an arm
            for, 1 exempted by ledger

Reverse verification (ablation), run from the committed state. One line reverted — armKey back to the raw type string — with the drained ledger and everything else left in place. On-disk proof: the injected spelling greps 1 and the removed spelling greps 0, and the mutated blob hash differs from the HEAD blob (dc8e822); restore is git checkout HEAD -- <path> under a trap, proved by an empty git diff HEAD.

gate EXIT=1
x  13 handler key(s) a registered renderer reads are not declared by their arm:
      'button'.onSuccess  ...  ButtonSchema (form.zod.ts) does not declare it.
      'tabs'.onTabChange  ...  TabsSchema (layout.zod.ts) does not declare it.
      'list'.onAddRecord  ...  ListSchema (data-display.zod.ts) does not declare it.
      ... 13 rows, exactly the thirteen this change drained
pin  EXIT=1 — 6 failed | 32 passed (38)

⇒ the thirteen rows are produced by the raw-string keying itself. Each left this ledger with a reason drawn from its registration, which is why Clause-② stays no.

Tests: scripts/__tests__/check-handler-key-read-sites.test.ts — 38 passed, 7 new legs, including the firing control that the same registration without skipFallback claims the bare key and goes RED (one property, same literal, same file), a leg that mirroring view:list brings the read back into judgement on its own arm, the false-green leg, the pageMeta identifier/spread resolution leg and the unkeyable-refusal leg. The repository leg names the six aliases rather than counting them, so a collapsed census reds instead of reading as a clean tree.

Surface note

packages/plugin-kanban/src/__tests__/handlerKeyDispositionsMeasured-7804.test.tsx is a third file beyond the two this task claimed, and it is amended here rather than left red: its suite-4 CONTROL named button::ButtonSchema.onSuccess as the witness row, and that row is one of the thirteen. Its own comment prescribes exactly this repair — "re-derive it against KNOWN_UNDECLARED_READS rather than dropping the name and leaving the length check alone". The witness is now detail::DetailSchema.onTabChange, the one row that is not alias-shape. Held by 0 of the 13 open PRs (fully paginated, 1804 filenames, positive control .github/workflows/ci.yml -> #9584 fires).

The changeset is empty-frontmatter: the gate's own verdict line demanded one because a published package's src/ tree was touched (a test file), and nothing published moves.

Acceptance notes

  • No new workflow and no new required CI context; the gate keeps its single exit-code channel.
  • No test skipped, disabled or quarantined.
  • Out of scope, noted and not filed: registerLazy carries the same namespace / skipFallback mechanics and this census reads only register, so a lazily-registered renderer's reads are outside it in both spellings. That is pre-existing, unchanged by this PR, and not a defect in the keying — filing it would need a measurement of whether any lazy registration has a mirrored arm at all. Carrier: whoever next widens what this census walks.

Generated by Claude Code

`check-handler-key-read-sites` keyed a registration by its raw type string, so
a renderer registered only under a namespaced alias — `{ namespace: 'view',
skipFallback: true }` — was judged against the BARE key's arm, the key
`skipFallback` exists to stop it claiming. The census asked its question of a
schema minted for a different component.

`registrationsIn` now reads the third argument and resolves it to literals
(inline object, a same-file `const`, a spread of one), and `analyze` looks the
arm up by the keys the registry would resolve the registration under: `ns:type`
always, plus the bare `type` only when a namespaced registration omits
`skipFallback` — the rule `register()` in `@object-ui/core`'s `Registry` spells.

The count moves in BOTH directions, and neither direction is a relaxation:

  - Thirteen `KNOWN_UNDECLARED_READS` rows leave, ⛔ none by being declared.
    Each was produced by a registration carrying `skipFallback: true` under a
    namespace (`action:button`, `action:icon`, `page:tabs`, `view:form`,
    `view:grid`, `view:list`), so the arm named in the row — a bullet list, a
    Shadcn button, the `ui:tabs` container — was another component's. Ten of
    those thirteen reads are STILL judged, under the registration that claims a
    mirrored key (`object-form`, `object-grid`, `list-view`), where they are
    declared runtime slots; what left is a second, wrongly addressed scoring.
  - A FALSE GREEN the ledger could never show goes with it: `'form'
    FormSchema.onCancel` passed only because `FormSchema` is the `ui:form`
    primitive's own arm and mints its own `onCancel` for its own destructure.
    A passing read leaves no row, so no count of the ledger could see it.

The reads that now have no arm at all (`action:button`, `action:icon`,
`page:tabs` register nowhere else) are ⛔ not dropped: they are reported as
UNMIRRORED-ALIAS census rows, counted in the OK line and printed by `--list`,
which is boundary 3 of this gate made countable. A registration whose mechanics
cannot be resolved to literals is refused rather than guessed at, which is also
the floor under the keying: a broken resolver leaves every registration unkeyed
and reds.

`detail::DetailSchema.onTabChange` stays — it registers without `skipFallback`,
so it does claim the bare key and `DetailSchema` IS its arm. Its disposition is
still undecided and still owned by objectui#7804.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015h79niBMyoB1xcaQje3uiz
@github-actions

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 1 pending changeset(s) describe a file this change touches

Their bodies publish verbatim into the CHANGELOG at the next release, so this is a request to re-read them against your diff — addressed here because you are the one seat that can answer it without re-deriving anything.

⛔ Nothing here blocks, and nothing here is a verdict on your change. This gate exits 0, is not a required context, and judges name resolution, never meaning: it asked whether a pending body names a file you touched. "Is this sentence still true?" is the one question it will not answer, and the one you are being asked to answer.

.changeset/9447-detail-view-handler-key-refusal.md

  • names scripts/check-handler-key-read-sites.mjs → scripts/check-handler-key-read-sites.mjs — edited by this change

    The read path was measured, not assumed. Unlike 'detail', which registers DetailView raw, 'detail-view' registers DetailViewRenderer — a data-source gate. The gate does not strip handler keys: it hands DetailView either the node unchanged or a shallow spread whose only overwrites are the binding keys, so an authored value arrives at schema.onNavigate / schema.onAddComment by identity and is called. Driven end to end through the real SchemaRenderer in detail-view-handler-slots-9447.test.tsx, which also records why scripts/check-handler-key-read-sites.mjs is green here and always was: its transitive hop stops at the wrapper.

Read the paragraph, not the line: both false halves of the objectui#8617 claim sat in one paragraph, and correcting either alone would have left it asserting the same wrong thing.

If a claim did go false, correct the body. That is precedented and prose-only, frontmatter untouched; check-changeset-overwrite.mjs will report the correction as its own case 2 ("correcting a declaration on purpose … legitimate"), which is the intended shape — one gate asks for the read, the other records the write.

Not covered, stated so nobody reads this as more: a claim that was born false (a changeset this change adds is excluded by construction), a claim spelled as a symbol or a package rather than a backticked file name, and a file named ambiguously.

Compared the checked-out tree with ac716fff4 (merge-base with origin/main): 3 file(s) changed outside .changeset/, read against 1124 pending declaration(s) that publish a body (1632 pending in total). · run

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3049.0 KB 3104.5 KB
Main entry chunk (gzip) 145.7 KB 350 KB
Entry file index-BJRRnOxw.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) 545.84KB 130.66KB
core (index.js) 8.94KB 3.59KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 215.98KB 59.97KB
fields (index.js) 249.27KB 62.92KB
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) 8.87KB 3.64KB
i18n (index.js) 5.22KB 2.26KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 32.15KB 10.49KB
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.83KB 10.95KB
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.92KB 14.22KB
plugin-charts (index.js) 71.49KB 19.99KB
plugin-chatbot (index.js) 195.34KB 46.51KB
plugin-dashboard (index.js) 131.44KB 34.65KB
plugin-designer (index.js) 215.94KB 44.33KB
plugin-detail (index.js) 253.29KB 65.88KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.71KB 34.16KB
plugin-gantt (index.js) 167.62KB 41.26KB
plugin-grid (index.js) 212.64KB 57.91KB
plugin-kanban (index.js) 46.41KB 14.49KB
plugin-list (index.js) 112.73KB 27.69KB
plugin-map (index.js) 21.48KB 6.99KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.41KB 11.93KB
plugin-timeline (index.js) 30.07KB 8.74KB
plugin-tree (index.js) 10.58KB 3.72KB
plugin-view (index.js) 85.04KB 21.01KB
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) 104.82KB 34.67KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 4.25KB 2.04KB
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) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
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) 4.11KB 2.06KB
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.04KB 5.36KB
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

ACCEPT — in-seat review, domain:devx @ objectui, R68

Reviewed against GitHub, ⛔ not against the report's self-description. Green read deduped by check name to the newest run: 36 distinct, 33 success + 3 skipped, 0 not-green, head 5e7067e7c8. ⚠️ 36 rather than the 33 this lane usually sees — this diff reaches packages/**, so more contexts report; ⛔ that difference is a reading, not a surprise to wave through.

⛔ First, the file-surface question — and it is MY error, not yours

You touched packages/plugin-kanban/src/__tests__/handlerKeyDispositionsMeasured-7804.test.tsx, outside the surface I declared, and my claim said "stop on breach". You were right to continue, and the declared surface was wrong.

That test's suite-4 CONTROL asserts remaining contains button::ButtonSchema.onSuccess — one of the thirteen. The fix necessarily invalidates it, that file's own comment prescribes this exact repair, and stopping would have left a red tree with no path but to come back. ⇒ there was no breach of the correct surface; I declared an incomplete one because I never measured the coupled test. ⭐ You verified it was held by 0 of 13 open PRs first and declared it in the PR body, which is what made the amendment checkable.

⭐ The evidence that carries Clause-②: no is the control, not the count

I verified the ledger independently: 14 rows → 1, the survivor being detail::DetailSchema.onTabChange — the one registration with no skipFallback, so its schema genuinely is its arm. ⛔ But a ledger shrinking by thirteen is exactly the shape a relaxation would take, so the count proves nothing on its own.

What settles it is this pair, one option apart:

'does NOT judge a namespaced-only alias against the bare key's arm'
'FIRING CONTROL — the same registration WITHOUT `skipFallback` claims the bare key and goes RED'

⇒ the rows left because of skipFallback, ⛔ not because the gate stopped looking. That is the fork my dispatch named, discharged mechanically. Your ablation — revert the one keying line with the drained ledger in place, gate reds naming exactly those thirteen — is the same proof from the other direction.

⭐ And the re-key is not the gate looking at less: ten of the thirteen reads are still judged, on the arm that is actually theirs. The three with no arm anywhere are printed, counted and --list-able as UNMIRRORED-ALIAS, ⛔ not dropped.

⭐ The control discipline in this test file is the best this lane has reviewed

  • A control ON the control — an identical-size deletion from the same arm that is harmless stays green, so "it went red" cannot be satisfied by any deletion.
  • Firing controls under the zeros — including, verbatim, "a control would also be produced by a walk that never ran". ⇒ ⛔ an empty result is never reported as clean.
  • A repository leg naming the six aliases, so a collapsed census reds.

⭐ That last one is the floor discipline from #9696 applied without being asked. This lane has now had three consecutive devs build the instrument's own honesty into the instrument.

⭐ You pre-registered the prediction rather than letting it be absorbed

5710755668 predicted onCancel would either flip to a new row or move to the correct arm and stay green. The second happened — and you made it a test leg (judgedAt('form','onCancel') undefined beside judgedAt('object-form','onCancel') still runtime-slot) so it ⛔ cannot be read as "just a few fewer rows". That is the difference between a landing and a landing you can trust.

What else I verified

check result
Commit message ✅ no model identifier; Co-authored-by: Claude <noreply@anthropic.com> + Claude-Session:; ⛔ no card trailer
Commit author ✅ claude — ⛔ not a user account
Body line 0 / Clause-② ✅ Fixes #9573 / Clause-②: no at line start
Changeset ✅ empty-frontmatter, owed by the gate's own verdict line (any file under a released package's src/, test or not) — ⛔ not by a remembered rule, and ⛔ skip-changeset not used
New CI context ✅ none ⇒ ⛔ #9584 not approached
Footers ✅ one each

⚠️ Recorded, not held against the PR

  • check:node-esm-load NOT MEASURED — it refused on provenance because turbo's shared cache replayed a sibling worktree's build (/home/user/objectui-issue-9323) into this tree. ⭐ The gate names that condition itself and prescribes --force-build, so this is the gate being honest, not silent. It is a parallel-agent environment artifact, ⛔ not derived from this diff, which touches no published src/ runtime file. CI's own run is the binding reading and it is green.
  • registerLazy carries the same namespace/skipFallback mechanics but this census matches only .register. ⛔ Correctly not filed: it would first need a measurement of whether any lazy registration has a mirrored arm at all. Carrier named (the finding(types): 39 handler keys a registered renderer READS are declared by no arm — accepted and KEPT by the passthrough, on main today #7804 burn-down).
  • Your file count (1804) supersedes mine (1779) — the board moved between the two reads. ⇒ ⛔ that is the rule working, not a discrepancy.

⭐ What this does for objectui#7804

Its ledger now stands at one row, detail::DetailSchema.onTabChange, whose disposition remains undecided and still belongs to that card — and it is no longer fenced by this one. ⇒ a burn-down that could not be drained can now be drained.

Release

Flipping to ready, re-waiting for the checks the flip registers (measured on ten occasions, two of them not this seat's), re-reading green, then arming. ⛔ No hand-merge — the queue rebases onto main itself.


Generated by Claude Code

@os-try-charles
os-try-charles marked this pull request as ready for review September 17, 2026 16:05
@os-try-charles
os-try-charles added this pull request to the merge queue Sep 17, 2026
Merged via the queue into main with commit 92fba11 Sep 17, 2026
38 checks passed
@os-try-charles
os-try-charles deleted the claude/issue-9573-handler-key-registration-keying branch September 17, 2026 16:25
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Sep 28, 2026
…op (objectui#9700) (objectstack-ai#9728)

Fixes objectstack-ai#9700

Clause-②: no

## ⭐ The fresh reading first — outcome 1, on today's `main`

The card measured this gate at `bbe57fdd52`, before PR objectstack-ai#9702 rewrote the
file. Re-measured on
`dea17b469` (branch base), with `--list`:

| registration | census rows |
|---|---|
| `detail` (registers `DetailView` **raw**) | 3 — `onNavigate`,
`onAddComment`, `onTabChange`, all at `DetailView.tsx` |
| `detail-view` (registers the **wrapper** `DetailViewRenderer`) | **0**
|

⇒ **the wrapper hop is still invisible.** objectstack-ai#9702's re-keying did not
touch it: that change decided
*which arm* a registration is scored against, and this defect is about
*whether the component is
reached at all*. Gate exit 0 either way.

## The mechanism — derived, not inherited from the card

The card declined to name one. Measured with `documentCarryingChildren`
on the real
`DetailViewRenderer` node:

```
before:  ['ElementDataSourceGate']
after:   ['ElementDataSourceGate', 'DetailView']
```

Isolated on a minimal fixture, one token apart:

```
schema={bound as DetailViewSchema}   -> Gate                 (hop NOT taken)
schema={bound}                       -> Gate, DetailView     (hop taken)
schema={bound satisfies X}           -> Gate                 (hop NOT taken)
schema={bound!}                      -> Gate                 (hop NOT taken)
```

⇒ ⛔ **not** the `hops > 4` cap, ⛔ **not** a failure to resolve the
wrapper's reference, ⛔ **not**
the wrapper stopping the walk. `resolveComponent` already handles the
HOC spelling and the wrapper's
inline body is walked. What closed the hop is a **type-only cast on the
`schema=` attribute that
hands the child the document**: `carriesDocument` tested the raw
expression, so
`{(bound) => <DetailView schema={bound as DetailViewSchema} />}` read as
"not the parent's document"
and `DetailView` was never enqueued. The data-source gate is imported
from another package and
cannot be followed, so that render-prop hop was the only way in.

⚠️ objectui#9344 peeled exactly these wrappers off a READ receiver — *"a
cast is erasure … a census
that sees one and not the other is not describing the runtime"* — and
stopped there. **The two
failures are not symmetric.** A hidden read still leaves its component
in the census; a hidden HOP
removes the component entirely: no finding, no census row, no ledger
row, and the green then reads
as "no undeclared reads" over a file the gate never opened. That is the
state objectui#9447 stood
in, and it is why this is a card of its own.

## ① The repair

`peelErasure` is extracted from `erasedReceiverName` and shared with
`carriesDocument`, so a cast
changes what the census READS about a node and never whether it SEES it.

⚠️ It widens what the walk **sees**, never what it **follows**. The node
underneath still has to be
a document identifier or a spread of one, and an object literal writing
its own `type` is still a
NEW document — the narrowing that keeps `ViewSwitcher`'s `onViewChange`
off `ObjectViewSchema`.
Both directions are pinned.

## Measured delta on this tree — the class is ONE instance, not a
population

`--list` diff, before vs after: **46 -> 49 reachable reads**, and the
three added rows are all
`detail-view`, all read in `DetailView.tsx`. ⇒ every other
`elementDataSourceBlock` wrapper in the
repo (17 of them) already hopped fine; `detail-view` is the only one
that hands its child a cast.
The card asked for that enumeration and this is its answer: **no sibling
sweep is owed.**

## ⚠️ The one judgement call — a NEW ledger row, and why it is not the
forbidden one

The repair surfaces one finding:
`detail-view::DetailViewSchema.onTabChange`.

- It is the **same read site** as the existing
`detail::DetailSchema.onTabChange` row —
`DetailView.tsx`'s `(schema as any).onTabChange` — scored a second time,
correctly, under the
other registration that reaches that component. `register('detail-view',
DetailViewRenderer,
{ namespace: 'plugin-detail' })` omits `skipFallback`, so it claims the
bare `detail-view` key and
  `DetailViewSchema` IS its arm.
- The number of live undeclared **read sites** did not move: one line,
before and after. What moved
is how many of the two registrations reaching it the gate can score —
one, now both.
- ⛔ It is **not** a row bought to make a widening quiet. Ledgering the
*blind spot* would invert the
map's meaning; this row is a defect the blind spot was **hiding**, which
is what the ledger is
for, and the file's own instruction text says so: *"if the fix belongs
to another card, add the key
  to KNOWN_UNDECLARED_READS with the card that owns it."*
- ⭐ And it **cannot outlive the repair**: under ablation the gate's own
`staleExemptions()` reds on
this exact row ("The defect the row waives is gone, so the row is now a
live waiver for nothing").
  The row is welded to the hop.

⚠️ **The alternative was the Clause-② fork and was refused.** Declaring
`onTabChange` on
`DetailViewSchema` widens a published accept set ⇒ `Clause-②: yes` ⇒ not
this card's to take. The
disposition is objectui#7804's, open, and it is the card both rows
carry.

## ② The pin that can go RED

`scripts/__tests__/check-handler-key-read-sites.test.ts` gains a block
that rebuilds objectui#9447's
shape hop for hop: `register('detail-view', DetailViewRenderer)`,
`elementDataSourceBlock(...)`, a
data-source gate imported from another package, and the render-prop
child handed
`bound as DetailViewSchema`.

- **The firing pin** — arm declares nothing, the gate must reach the
component and report the key.
- **The control on it** — same tree, key declared: GREEN, with
`reads`/`judged` floors so the green
  cannot be a walk that found nothing.
- ⭐ **FIRING CONTROL, one token apart** — the operand under the cast
changed from the render-prop
document to an unrelated local declared two lines above it. The hop must
NOT be taken, paired with
  its lit half so the zero is a reading and not an unreached fixture.
- Six erasure spellings on the hop side, and the built-document
narrowing under a cast.
- On the real tree: the three `detail-view` rows NAMED (an empty
`detail-view` census is the blind
spot restored), with the raw `detail` twin's three rows as the control —
the repair only ever ADDS
  hops, so those must be untouched.

### Ablation — restore the pre-repair `carriesDocument` body, read the
pin

Mutation proved on disk (`peelErasure` call 2 -> 1, pre-fix paren
recursion 0 -> 1; blob hash
`fb8841ce` -> `b97508be`), restored via `git checkout HEAD --` with the
hash re-compared and
`git diff HEAD` empty.

```
gate exit=1     (staleExemptions reds on the new ledger row)
vitest exit=1   11 failed | 38 passed (49)
```

All ten wrapper legs RED, plus the ledger-honesty leg. On the repaired
tree: **49 passed (49)**.

## Verification

| run | result |
|---|---|
| `pnpm --filter @object-ui/types test` | 203 files / 4757 tests passed
|
| `pnpm --filter @object-ui/plugin-detail test` + the gate suite |
`VERDICT command-exit 0` — 181/1742 and 1/49 |
| `pnpm type-check:scripts` | exit 0 (the edited test file is in that
project — `--listFiles` hit 1) |
| `check:handler-key-reads` | `OK … 49 reachable … 2 exempted` |
| `check:control-bytes` · `check:new-line-citations` ·
`check:changeset-no-major` · `check:changeset-claims` ·
`check:pending-changeset-literals` · `check:comment-mask-corpus` ·
`check:component-surface-parity` ·
`check:element-data-source-declaration` · `check:spec-symbols` ·
`check:sdui-registration-pins` · `check:registry-bare-names` | all exit
0 except `check:sdui-registration-pins` |
| `check:changeset-presence` | exit 0 — 1 empty-frontmatter changeset |
| eslint, targeted | 4 files, 0 errors, 0 warnings |

- ⚠️ `check:sdui-registration-pins` exits **2 = PREREQUISITE NOT MET**,
not red: *"No console build to
weigh at apps/console/dist/assets."* Read as **NOT MEASURED**; this diff
adds and removes no
registration and does not touch the bundle. Left to CI, which builds the
console.
- ⚠️ `pnpm -s check:changeset-no-major` reported exit 254 with no
output; run directly the script
exits **0** with `✅ No changeset declares a 'major' bump.` The 254 is
pnpm's wrapper, not a gate.
- The eslint run is a **declared narrowing**: ① the population is
eslint's own config; ② 4 files, read
from `--format json`; ③ invariance — `eslint.config.js` configures no
type-aware linting (no
`project` / `projectService`), so this diff cannot move the verdict on
any untouched file. Repo-wide
  lint is CI's run.

## Prose this change falsified, repaired in place

Two live docblocks stated *"its transitive hop stops at the wrapper"*
and told readers ⛔ not to read
the gate's green as evidence — `DetailViewSchema`'s `onNavigate` member
and
`detail-view-handler-slots-9447.test.tsx`. Both are now false in the
direction that matters (they
say the gate is blind where it is not), so both are rewritten. ⚠️
**Comment-only**: no zod member,
no runtime behaviour, no published contract field. Surface re-measured —
all four files held by
**0 of 13** open PRs, 1804 filenames fully paginated, positive control
`.github/workflows/ci.yml -> objectstack-ai#9584`.

The changeset is therefore an **empty-frontmatter declaration**, which
`check-changeset-presence.mjs` names as a first-class pass.

## Acceptance notes

- ⚠️ `resolveComponent`'s CallExpression branch returns the first
capitalised identifier argument and
**discards the wrapper call's own body**, so a wrapper spelled
`block(Inner)` that also renders
document-carrying JSX around `Inner` would lose the outer half. Not
reachable on this tree — the
one such registration (`register('record_picker',
elementDataSourceBlock(ElementRecordPickerRenderer))`)
renders nothing around it. Noted, not filed: no undeclared read is
exposed and no open PR passes
  this file.
- ⚠️ `check:sdui-registration-pins` cannot be run without a console
build; nothing here is implicated.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_015h79niBMyoB1xcaQje3uiz

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

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