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

fix(mobile): report the declared spec gesture in every useSpecGesture fallback - #9788

Merged
os-tesla merged 1 commit into
mainfrom
claude/issue-9691-spec-gesture-type-spread-order
Sep 18, 2026
Merged

os-tesla merged 1 commit into
mainfrom
claude/issue-9691-spec-gesture-type-spread-order

Conversation

@os-tesla

Copy link
Copy Markdown
Collaborator

Fixes #9691

Clause-②: yes

useSpecGesture builds each onGesture fallback payload by spreading the recognizer's runtime context next to a declared type. That context carries a type of its own — GestureContext.type, the direction-fused recognizer vocabulary — so an arm that writes type BEFORE the spread has its declared value overwritten by the recognizer's. Three arms carried that order; type now goes last at all three, which is the spelling the swipe arm already uses.

Executed as one change per the triage ruling on the card (comment 5714886682): 「三处是同一个书写顺序缺陷,⛔ 一起改;并顺手加一条断言把「展开在前、type 在后」钉住,否则第四处会以同样方式长出来。」

The card's table, re-derived on this branch's base

The table on the card was measured on PR #9689's head. Re-derived on origin/main at 57c07f002 — every row holds, and the line numbers happen not to have moved:

line arm spelling declared type survives?
117 swipe { ...ctx, type: 'swipe' } yes — spread first
124 long_press { type: 'long_press' } yes — no ctx spread
128 pinch { type: 'pinch', ...ctx } no
132 double_tap { type: 'double_tap' } yes — no ctx spread
137 pan / drag { type: declared, ...ctx } no
141 rotate { type: 'rotate', ...ctx } no

One arm moves observably; the rest were latent

drag is the only configuration whose payload changes. It is the one arm where the two vocabularies disagree — drag declared, pan recognized — so it reported pan. pinch, rotate and a declared pan name their recognizer identically, so the overwrite replaced each value with itself. The changeset says exactly this rather than claiming three behaviour changes.

The load-bearing runtime fact, pinned instead of probed

The card supported "ctx really carries a type key at runtime" with a throwaway probe that was then deleted. That fact is now a standing assertion — useGesture's emitted context is asserted to carry the recognizer's own name. It passes on both sides of the repair by design and is not a witness; it is there so that removing GestureContext.type some day reds the file that depends on it, and the test says so in its own name and message.

The ordering pin

packages/mobile/src/__tests__/spec-gesture-fallback-type-order.test.tsx, three kinds of pin, because no one kind covers the defect:

  1. the runtime fact above;
  2. per-arm behaviour, driven with a DRIFTED recognizer context — every one of the seven declared gestures is exercised with a context whose type has been moved off the declared name ('tap', a real recognizer name that is no spec gesture's declared name). That drift is precisely the condition the card says a rename on either vocabulary creates, so it is how the quiet arms are made to speak. Without it, pinch and rotate pass identically on defect and fix;
  3. the writing order, read off the hook's source — every fallback(...) payload is brace-matched out of useSpecGesture.ts and the spread is required to precede type. This is the part that answers the triage's 「否则第四处会以同样方式长出来」: a behavioural pin only guards arms somebody thought to list, this one guards the shape. It carries its own non-vacuity checks — the brace matcher must account for every fallback( call it finds, and at least one payload must actually spread — so a scanner that silently stops matching reds instead of going quietly green.

The behavioural rows are also a completeness pin: the row set is compared against SPEC_GESTURE_TYPES, so a new spec gesture cannot be added with a switch arm and no row.

Shown RED before the repair

The pin was run against the unrepaired hook, then again after the fix was committed, with the mutation and the restore both proved by git hash-object against recorded blob hashes rather than by an exit code.

leg on-disk useSpecGesture.ts blob result
without the fix 489483d9dbb37431c3fc04bb4b7e2ea439f292d0 (the origin/main blob) 6 failed, 35 passed (41)
with the fix 3dde33fc1cc89ed17dc7e60dce9dafa8575ebfd2 (this branch's HEAD blob) 41 passed (41)

The six that go red are the whole defect and nothing else — the live instance, the four drifted-context arms, and the shape pin:

× a declared `drag` reports 'drag', not the recognizer's 'pan'
× pinch
× pan
× drag
× rotate
× spreads the recognizer context BEFORE writing `type`, at every site

with the two discriminating readings:

AssertionError: the DECLARED spec gesture — this is the one arm where the two
vocabularies disagree: expected "vi.fn()" to be called with arguments:
  - "type": "drag"
  + "type": "pan"
AssertionError: `type` goes LAST: ... expected [ … ] to deeply equal []
+ [
+   "{ type: 'pinch', ...ctx }",
+   "{ type: declared, ...ctx }",
+   "{ type: 'rotate', ...ctx }",
+ ]

swipe, long_press and double_tap pass on both sides and are kept anyway: the first is the arm PR #9689 already repaired and the other two spread nothing, so none of the three can tell the two implementations apart. Said here rather than left for a reader to discover.

The suite imports the hook by a RELATIVE source path from inside its own package, so the mutated file is unambiguously the one under test — no dist and no vitest alias sits between them.

The fourth file, and why it is there

packages/mobile/tsconfig.test.json gains "types": ["node"]. The shape pin reads the hook's own source, and this package's test project named no types, so node:fs did not resolve (TS2591). Twenty-five sibling packages already declare it the same way, packages/types for the same reason (its re-export guard's readFileSync). Naming types switches off automatic @types/* inclusion, so the list is deliberately complete: these suites import no ambient matcher package. tsc -p packages/mobile/tsconfig.test.json --listFiles confirms the new test really is a program input rather than silently excluded.

Adjacent, deliberately untouched

SPEC_GESTURE_TYPE_MAP.swipe is still 'swipe-left' as a declared placeholder. Changing an exported map's VALUE is a published-surface change no card has ruled on, and this branch does not touch those lines.

Verification

Run at f38da33.

check result
pnpm exec vitest run packages/mobile/ exit 0 — 5 files, 41 tests passed
pnpm --filter @object-ui/mobile type-check exit 0 (tsc --noEmit + tsc -p tsconfig.test.json)
pnpm --filter '@object-ui/mobile^...' build exit 0
filtered build for the doc gates (35 tasks) exit 0
node scripts/check-changeset-presence.mjs exit 0 — 2 published source files, 1 changeset
node scripts/check-changeset-no-major.mjs / -overwrite.mjs / -claims.mjs exit 0
node scripts/check-pending-changeset-literals.mjs exit 0
node scripts/check-vi-mock-specifiers.mjs / -inherit.mjs / -override-shape.mjs exit 0
node scripts/check-test-path-roots.mjs exit 0
node scripts/check-control-bytes.mjs exit 0
node scripts/check-new-cross-file-line-citations.mjs exit 0 — 0 new citations
node scripts/check-doc-example-types.mjs / -snippet-types.mjs / check-readme-exports.mjs exit 0 (on the built tree)
node scripts/check-type-check-coverage.mjs · check-published-tsconfig-tooling-exclude.mjs · check-phantom-dependencies.mjs · check-unreferenced-sources.mjs · check-doc-fence-languages.mjs exit 0
node scripts/check-governed-queue-guard.mjs --test (4 paths) NOT GOVERNED

Every exit code was redirected to a file and read from there, never through a pipe.

ESLint is a declared narrowing, not a skip. pnpm exec eslint packages/mobile --format json at f38da33: 21 files judged, 0 errors, 18 warnings, none of them in either file this branch writes. The narrowing is safe to make because this repo's flat config extends tseslint.configs.recommended with no parserOptions.project and no projectService — type-aware linting is off, so a file's verdict is a function of its own bytes and the shared config alone, and this branch adds no config, no shared file ESLint reads and no disable directive. It therefore cannot move the verdict of any file it does not touch. The repo-wide pnpm lint and the full sharded suite remain CI's.

Heavy runs were serialized through the shared verify lock.


Generated by Claude Code

… fallback

`useSpecGesture` builds each `onGesture` fallback payload by spreading the
recognizer's runtime context next to a declared `type`. That context carries a
`type` of its own — `GestureContext.type`, the direction-fused recognizer
vocabulary — so the three arms that wrote `type` BEFORE the spread (`pinch`,
`pan`/`drag`, `rotate`) had the declared value overwritten by the recognizer's.
`type` now goes last at all three, which is what the `swipe` arm already did.

Only `drag` moves observably: it is the one arm where the two vocabularies
disagree, and it reported `pan`. `pinch`, `rotate` and a declared `pan` name
their recognizer identically, so those overwrote a value with itself — repaired
because the agreement is a coincidence of two vocabularies, not a property of
the code.

The rule moves from the `swipe` arm's local comment onto the `fallback`
declaration every arm calls, and the public `onGesture` docblock now states the
contract the implementation was pulled back onto.

`spec-gesture-fallback-type-order.test.tsx` pins it three ways: the runtime fact
the defect rests on, each arm driven with a recognizer context whose `type` has
drifted off the declared name, and the writing order read off the hook's source
so a fourth arm cannot grow the same shape.

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

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3049.2 KB 3104.5 KB
Main entry chunk (gzip) 145.7 KB 350 KB
Entry file index-Cu01tfNS.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.93KB 130.69KB
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) 5.52KB 2.10KB
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) 48.10KB 14.94KB
plugin-list (index.js) 112.74KB 27.70KB
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

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: f38da331bdb2c266854d3242227e14b883e51d74

① Derived judgments

  • Direction. Input accept set is untouched in both directions (config shape, callbacks, type: string on the payload all unchanged). What changes is an OUTPUT value on a published payload: a declared drag with no onPan reported 'pan' and now reports 'drag'. Classified as a published-payload behaviour change, one arm wide. Clause-②: yes was the right call, and is in fact MORE clearly required than the claim comment argued (next point).
  • The docblock premise does not hold pre-fix. At base blob 489483d9db the onGesture docblock reads only /** Fallback for gestures without a dedicated callback */; nothing on the API surface names which vocabulary type carries. The sentence "Its type is the DECLARED spec gesture, never the recognizer's own name" is ADDED by this PR. So this is not a repair of a documented contract; it is a break that the PR simultaneously documents. The direction is still defensible from evidence that predates the PR: the literal type: declared at the pan/drag site (there is no reading of that literal in which the author meant the recognizer's name), the non-spread arms already emitting spec spellings (long_press, double_tap, not long-press/double-tap), the swipe arm's inline comment from PR 9689 ("this callback reports the spec gesture, not the recognizer"), and the merged 9689 direction on the sibling arm. Judged: direction correct, framing "contract fulfilment" only partly earned, paperwork (break declared, Clause-② yes) is the paperwork a break needs.
  • Blast radius verified in code, not narrative. useGesture.ts:100 writes type = the configured recognizer GestureType into every emitted context (long-press uses the literal 'long-press' but that arm spreads no ctx). Recognizer per declared arm: pinch to pinch, rotate to rotate, pan to pan, drag to pan. Pre-fix overwrite therefore replaced a value with itself at pinch, rotate and a declared pan, and replaced drag with pan at drag. Exactly one arm changes observably; the changeset's claim is true and complete.
  • Scope vs triage 5714886682. All three sites reordered (head lines 135, 144, 148 all { ...ctx, type: … }); the swipe arm's local rule moved onto the shared fallback declaration. Ordering pin exists and is forward-looking: I planted a synthetic fourth arm fallback({ type: 'zoom', ...ctx }) in a scratch copy of the head tree and the shape pin went red (1 failed / 12 passed) while every behavioural row stayed green, which is precisely the case triage named (「否则第四处会以同样方式长出来」) and precisely the case a per-arm pin cannot see.
  • Ablation re-derived, not trusted. Scratch tree from git archive f38da331bd, pnpm install --offline exit 0, @object-ui/types built. Head leg: on-disk blob 3dde33fc1cc89ed17dc7e60dce9dafa8575ebfd2, vitest run packages/mobile/ exit 0, 5 files, 41 passed. Mutation leg: file overwritten with the base blob, on-disk hash asserted 489483d9dbb37431c3fc04bb4b7e2ea439f292d0 BEFORE the run, exit 1, 6 failed | 35 passed (41), the six by name identical to the PR's list (a declared drag reports 'drag'…, pinch, pan, drag, rotate, spreads the recognizer context BEFORE writing type, at every site). Discriminating readings reproduced: the drag row's "the DECLARED spec gesture — this is the one arm where the two vocabularies disagree" and the shape pin printing the three offending payloads by content ({ type: 'pinch', ...ctx }, { type: declared, ...ctx }, { type: 'rotate', ...ctx }). Restore: hash back to 3dde33fc….
  • Source-shape pin: legitimate, not a diff restatement. A restatement would assert the three post-fix strings. This one quantifies over every fallback( object-literal call site in the file, guards its own vacuity (payload count must equal fallback( count; at least one payload must spread), and reddened on a planted site the diff never mentioned. It is a structural invariant, which is the thing triage asked for. Its limits are recorded under ③.
  • Type-check re-derived. pnpm --filter @object-ui/mobile type-check exit 0 in the scratch tree; --listFiles shows the new test as a program input (482 files).
  • Out-of-bounds. SPEC_GESTURE_TYPE_MAP.swipe remains 'swipe-left' at head line 52; the diff carries no line containing swipe-left. Not touched.

② Semver level

@object-ui/mobile: minor with the break spelled out, correct under this repo's no-major rule and matching the precedent's level. The changeset describes the REAL blast radius: one observable change (declared drag, no onPan, payload type 'pan' to 'drag'), with pinch, rotate and a declared pan stated as latent. Verified against useGesture.ts:100 as above; no second arm changes value. One pedantic note: at pinch/rotate/pan the key INSERTION ORDER of type moves from first to last (value-identical), so "no payload moves" is true of values and not of Object.keys order; no reasonable consumer contract covers that, and the swipe arm already had this order. Level stands.

③ Boundary flags

  • Precedent misdescribed by the card and the claim comment. PR 9689's changeset declares exactly two breaks (a multi-member set fires for all members; an empty set fires for nothing) and does NOT mention the fallback payload's type change; that change appears only in the PR body as a third "consequence", and 9689 declared Clause ②: no. The statement "PR 9689 declared it in its changeset as breaking" is false. The direction is settled by 9689's merged code; the declaration precedent is not. This PR is stricter than its precedent, which is the right side to err on, but the narrative should not be repeated as written.
  • Docblock premise inaccurate (detail in ①): the API contract sentence is introduced by this PR, not pre-existing. Nothing to change in the diff; the claim comment's ground 1 should be read as "evident intent in the code" rather than "declared in the docblock".
  • Shape-pin blind spots, measured on synthetic sites in the scratch tree. Green (undetected) on: a fourth arm that bypasses fallback and calls onAny?.({ type: 'zoom', ...ctx }) directly (13/13 passed); shorthand fallback({ type, ...ctx }) (13/13 passed, because the predicate searches for the literal type:); a quoted key 'type':; and spread-then-type-then-second-spread. Red as intended on the literal type-first shape and on a non-literal argument (count pin). For a NEW spec gesture the completeness pin against SPEC_GESTURE_TYPES forces a drifted-context row that would catch the bypass and shorthand forms behaviourally, so the gap is confined to a second fallback path inside an existing arm. Non-blocking; a word-boundary type predicate and scanning onAny?.( as well would close it.
  • tsconfig rationale describes a mechanism this toolchain no longer has. The comment and PR body say naming types switches automatic @types/* inclusion OFF, so the list must be complete. Under the installed TypeScript 6.0.3 auto-inclusion is already off with no types key (verified: a probe project with node_modules/@types/probeglobal and no types key fails TS2304; with types: ["probeglobal"] it passes). Measured on the real project: a control tsconfig.test.json with the types line deleted produces a SMALLER program (351 vs 482 files) whose @types set is exactly head's minus node, and its only diagnostics are the three TS2591 for node:fs/node:path/node:url. So types: ["node"] purely adds; nothing ambient disappears and no suite depended on anything that could. Conclusion of the deviation holds; its stated mechanism is TS 5.x folklore and the comment should not be relied on elsewhere.
  • File surface 4 vs the claim's 2: the changeset is gate-compelled and the tsconfig edit is compelled by node:fs; both are declared as deviations with reasons that check out. 25 sibling tsconfig.test.json files name types (26 including mobile), as claimed.
  • No in-repo consumer reads the fallback payload's type (the seat's census; consistent with what I saw), so the break is downstream-only and unmeasurable from here. The changeset states the break rather than claiming nobody is affected, which is the honest form.

Implemented-by: claude/issue-9691-spec-gesture-type-spread-order
Reviewed-by: session_018HrVaotisyhgmot9o2MLRq

VERDICT: PASS


Generated by Claude Code

Copy link
Copy Markdown
Collaborator Author

Contract-review gate CLEARED — provenance

domain:ui#2 execution seat, session_018HrVaotisyhgmot9o2MLRq.

review of record PR comment 5725616016
head judged f38da331bdb2c266854d3242227e14b883e51d74 — the current head
verdict PASS, and Clause-②: yes CONFIRMED (⛔ not overturned)
carriers needs:contract-review removed from both card objectui#9691 and this PR, one stroke each
machine check PM_SWEEP_REPO=objectstack-ai/objectui node scripts/pm/check-clause2-carriers.mjs --pair 9788 ⇒ exit 0

⛔ This seat did not self-review. Served tier measured this fire = claude-opus-5, ⛔ not CONTRACT_REVIEW_TIER (claude-fable-5-1, compared exactly), so the review was rendered by an isolated at-tier reviewer fed only the card, the precedent PR and this PR — ⛔ never this seat's dispatch brief or its conclusions — and adopted verbatim. Reviewer tier verified from its own transcript, ⛔ not its self-report: 50/50 harness-written claude-fable-5-1 stamps.

⭐ The review corrected the dispatching seat, not the delivery. Both grounds this seat published for treating the card as execution-not-decision were measured false (the docblock sentence is ADDED by this PR, ⛔ not pre-existing; objectui#9689's changeset never declared this break and itself said Clause ②: no). The direction survives by another route and the delivery is untouched by the correction — which is recorded in full on the card at 5725621935, ⛔ not quietly dropped.

domain:ui#2 execution seat · session_018HrVaotisyhgmot9o2MLRq · gate provenance · reading taken 2026-09-18T05:30Z


Generated by Claude Code

@os-tesla
os-tesla marked this pull request as ready for review September 18, 2026 05:30
@os-tesla
os-tesla added this pull request to the merge queue Sep 18, 2026
Merged via the queue into main with commit 0ee6e31 Sep 18, 2026
38 checks passed
@os-tesla
os-tesla deleted the claude/issue-9691-spec-gesture-type-spread-order branch September 18, 2026 05:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants