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

fix(console): mock react-map-gl/maplibre by its bare specifier in the filter-token sweep (objectui#10731) - #10749

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-10731-inert-vimock-maplibre
Sep 27, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-10731-inert-vimock-maplibre

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #10731
Clause-②: no — a test's mock specifier and a devDependency of @object-ui/console, which no consumer installs; no published surface moves

The main-red anchor for the Inert vi.mock Specifier Check. objectui#10732 (the twin filing, closed as this card's duplicate) is folded in here: same check, same site, same origin (PR objectui#10729, card objectui#10666). Triage 5852234038 direction 1 is taken; direction 2 was not needed because direction 1 passed its resolved-id check.

What changed

  • apps/console/src/__tests__/filterContextTokensSweep-10666.test.tsx: the WebGL stub for plugin-map's ObjectMap now reads vi.mock('react-map-gl/maplibre', …), the bare specifier ObjectMap itself imports and the spelling every plugin-map test uses. The comment above it states the real reason (vitest keys a mock on the RESOLVED module id; the app must resolve the same file plugin-map resolves) and records why the previous relative path into packages/plugin-map/node_modules went red pre-install. The factory's five stubs are unchanged.
  • apps/console/package.json: one devDependency, "react-map-gl": "^8.1.2", the SAME range packages/plugin-map/package.json declares.
  • pnpm-lock.yaml: regenerated by pnpm install, never by hand. The whole diff is the one importer entry under apps/console (3 added lines: react-map-gl, specifier: ^8.1.2, version: 8.1.2(maplibre-gl@6.4.1)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)). No new package entry: the store already held exactly that instance for plugin-map.
  • .changeset/10731-console-map-mock-bare-specifier.md: empty frontmatter (nothing released), because check-changeset-presence counts apps/console/src/** and asked for a declaration.

Not done, on purpose: no allow-list entry, no change to scripts/check-vi-mock-specifiers.mjs or to .github/workflows/vi-mock-specifiers.yml.

H1 — the red reproduced, then the green

No-install worktree at origin/main ee6f6c6a45 (no node_modules anywhere), node scripts/check-vi-mock-specifiers.mjs, exit 1:

❌  check-vi-mock-specifiers: 1 mock resolves to no file on disk
    - apps/console/src/__tests__/filterContextTokensSweep-10666.test.tsx -- vi.mock("../../../../packages/plugin-map/node_modules/react-map-gl/dist/maplibre.js")
      tried 24 path(s), first: PATH_OF_WORKTREE/packages/plugin-map/node_modules/react-map-gl/dist/maplibre.js

(The gate prints the line address after the file name; it is left out of this body under AGENTS.md #11.) The same tree after pnpm install: exit 0, check-vi-mock-specifiers: OK (5622 tracked source file(s), 3794 test-named; 857 carry a mock; 1191 relative specifier(s) resolved, 1234 bare (out of scope), …). So the red is a pre-install artifact of a specifier that names a node_modules path — the job runs the checker right after setup-node, with no install.

H2 — is the mock load-bearing, and was it installed at runtime?

Both measured in the installed worktree at origin/main, before any edit:

  • Installed at runtime, yes. A throwaway sentinel file (never committed) mocked the SAME relative specifier with a Map stub that renders data-testid="sentinel-10731", rendered object-map through the real SchemaRenderer and plugin-map's registration, and asserted the sentinel is in the DOM. Run together with the sweep: Test Files 2 passed (2), Tests 73 passed (73). Vite resolves the relative path to the store's real path, which is also where plugin-map's import lands, so the mock matched. The runtime mock was never inert; only the pre-install gate could not see the file.
  • Load-bearing, yes. With the whole vi.mock block deleted (on-disk proof: vi.mock( count 1 → 0, react-map-gl mentions 1 → 0, git diff --stat 12 deletions), the sweep went red: Tests 1 failed | 71 passed (72), the failing cell 'object-map (inline)' > CONTROL: a token-free filter reaches the query unchanged, with the real maplibre-gl crashing on unmount in happy-dom — TypeError: Cannot read properties of undefined (reading 'destroy') from maplibre-gl/src/ui/map.ts via @vis.gl/react-maplibre. Restore: git checkout HEAD -- FILE, blob d387d2a1c0… equal to HEAD's, git status clean. The card's "drop it if the suite does not need it" arm is therefore closed: the suite needs the stub.

H3 — direction 1, with the resolved-id proof

  • react-map-gl added to apps/console devDependencies at ^8.1.2; pnpm install (29.7 s, warm store) rewrote the lockfile by the one importer entry quoted above.
  • Same real path: realpath apps/console/node_modules/react-map-gl and realpath packages/plugin-map/node_modules/react-map-gl both print node_modules/.pnpm/react-map-gl@8.1.2_maplibre-gl@6.4.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-map-gl; ls node_modules/.pnpm | grep -c '^react-map-gl@' is 1. The peer-resolution split the order warned about did not happen: pnpm's default dedupe-peer-dependents links the app to the instance that carries the optional maplibre-gl peer (.npmrc sets auto-install-peers=true and nothing overrides the dedupe).
  • Vitest-level proof: the sentinel file switched to vi.mock('react-map-gl/maplibre', …), run with the sweep: Test Files 2 passed (2), Tests 73 passed (73) — the bare mock is installed from apps/console.

H5 — the mock bites (the gate's own prescription)

At head 67c7c528c9, the code under test reverted to its pre-objectui#10666 shape: git apply -R of PR objectui#10729's packages/plugin-map/src/ObjectMap.tsx hunk. On-disk proof: queryFilter 5 → 0, useResolvedFilter 3 → 0, schema.filter 5 → 7, blob fbede2de83… → 3c59cd6219… (the pre-change blob git recorded), 1 file changed, 4 insertions(+), 18 deletions(-). The sweep went red on exactly the map rows: Tests 6 failed | 66 passed (72) — object-map (object) and object-map (inline), each on USER, ORG and REBUILD; every other row stayed green. Restore: git checkout HEAD -- FILE, blob fbede2de83… equal to HEAD's, git diff HEAD empty; the sweep then Tests 72 passed (72). @object-ui/plugin-map resolves to src/ through the root vitest alias, so this ablation has no dist/ leg. The mutation script carried an EXIT/INT/TERM trap that restores the file.

No-install leg at head 67c7c528c9 (detached worktree, no node_modules): check-vi-mock-specifiers exit 0 — OK (5622 tracked source file(s), 3794 test-named; 857 carry a mock; 1190 relative specifier(s) resolved, 1235 bare (out of scope), …), head's census, which the Gates table repeats: one relative specifier fewer and one bare more than the base tree's 1191/1234 in H1, which is this PR's one edit; check-vi-mock-inherit exit 0 (884 inherit, 0 auto-mocked). check-vi-mock-override-shape cannot run pre-install (it imports typescript: ERR_MODULE_NOT_FOUND), which is why lint.yml runs it after pnpm install; it is NOT MEASURED in that leg and green in the installed one below.

Gates (installed worktree, tree equal to head 67c7c528c9)

gate verdict
check:vi-mock-specifiers exit 0 — OK (5622 tracked source file(s) … 1190 relative specifier(s) resolved, 1235 bare (out of scope) …)
check:vi-mock-inherit exit 0 — OK (… 884 call site(s) … 884 inherit, 0 auto-mocked …)
check:vi-mock-override-shape exit 0 — OK (… 1883 override(s), 1199 judged …)
the sweep file Tests 72 passed (72), exit 0 (the run after the ablation restore)
check-changeset-presence exit 0 — 1 source file(s) of 1 released package(s) changed, and this change declares 1 changeset(s); before the changeset it was exit 1 naming the test file, so the declaration is owed, not decorative
check:control-bytes exit 0 — OK (scanned 8921 tracked text file(s); skipped 85 binary)
check:new-line-citations exit 0 — of which resolve to their content: 0
check:unused-deps exit 0 — Every gated declaration has a consumer in the package that declares it (devDependencies are measured, not gated, by this script; react-map-gl in apps/console has no consumer the scan reads, since a vi.mock string is none of its specifier forms — the exit 0 says nothing about this declaration)
check:phantom-deps exit 0
check:lockfile-integrity, check:lockfile-dedupe exit 0, exit 0
changeset:check, check:pending-changeset-literals, check:changeset-claims, check-changeset-overwrite all exit 0 (1 changeset(s) added, 0 modified, 0 deleted)
@object-ui/console type-check tsc --noEmit exit 0 with 0 errors AFTER turbo run build --filter='@object-ui/console^...' (34 tasks, 3m20s under the shared verify lock); --listFiles lists the sweep once. Before the build the same command reported 506 TS2307/TS2882 on unbuilt workspace dist/, which is the unbuilt-tree class and not a reading. tsc -b tsconfig.node.json --force exit 0.
eslint apps/console eslint .: 0 errors, 218 warnings, exit 0. The changed file carries the same single pre-existing no-explicit-any warning at base and at head.

Gate derivation: objectui has no scripts/pm/dispatch-gates.mjs, so the list above was derived by hand from the root package.json scripts and .github/workflows/ (the diff touches a console test, apps/console/package.json, pnpm-lock.yaml and a changeset). NOT MEASURED locally, owned by CI: the repo-wide pnpm lint (turbo over every package) and the full test farm.

Serial

  • origin/main moved from the base ee6f6c6a45 to 10e9cc6ae3 (39 files); none of the four files this PR touches is among them, so no merge commit was made.
  • git merge-tree --write-tree HEAD refs/…/main: exit 0 (clean). git merge-tree --write-tree HEAD refs/…/pr-8941 (draft PR objectui#8941, claude/pr-7058-lucide-react-1.41.0, head bb7d5e7187): exit 0 (clean). objectui#8941 touches apps/console/package.json (the lucide-react range, four lines above in the same devDependencies block) and pnpm-lock.yaml; git merges them textually today. Whichever of the two lands second regenerates the lockfile with pnpm install and never hand-merges it.

Acceptance notes

  • The original comment's premise ("this app does not declare react-map-gl, so the bare specifier does not resolve from here") was accurate; the chosen remedy at the time made the mock depend on pnpm's on-disk layout and on the gate running post-install. Declaring the dependency where the test lives is the objectui#4409 dependency-direction method, the same reason the sweep lives in apps/console at all.
  • react-map-gl is a devDependency of a published package (@object-ui/console); it is not installed by consumers and does not change dist/ or plugin.js, so the changeset is empty on purpose.
  • Observation, not filed (no reproduction of a defect): the pre-install checker's tried 24 path(s) message is exactly right for this class; the check itself needs no change.

The session behind this change is https://claude.ai/code/session_014mXUNuFomfj24w7s1pZzhN (domain:ui seat 2, dispatched dev, mode:subagent).


Generated by Claude Code

… filter-token sweep (objectui#10731)

The sweep's WebGL stub named a relative path into packages/plugin-map/node_modules,
which exists only after install, so the pre-install Inert vi.mock Specifier Check
read it as a mock that resolves to no file and main went red.

The app now declares react-map-gl as a devDependency at plugin-map's own range; pnpm
links both packages to one store instance (the optional maplibre-gl peer is
deduplicated), so the bare specifier resolves from the sweep to the same real path
ObjectMap imports, which is the module id vitest keys the mock on. The lockfile
change is the one importer entry. Empty-frontmatter changeset: no package released.

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

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 3 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/5793-spec-range-floors.md

  • names pnpm-lock.yaml → pnpm-lock.yaml — edited by this change

    Nothing a consumer installs today changes: normal resolution already picks the newest 17.x, and pnpm-lock.yaml still resolves 17.2.0 on this edge after the bump. The change is to the declared floor only, which is why it is scored patch rather than minor — the same reasoning objectui#5753 used for the other direction on this dependency.

.changeset/6361-spec-floor-17-2-0.md

  • names pnpm-lock.yaml → pnpm-lock.yaml — edited by this change

    Nothing a consumer installs today changes: normal resolution already picks the newest 17.x, and pnpm-lock.yaml still resolves 17.2.0 on both edges after the bump — only the recorded specifier: moves. No source and no behaviour changes, which is why this is scored patch, on the reasoning objectui#5793 used for the same remediation on @object-ui/plugin-detail.

.changeset/7122-objectstack-family-17-3-0.md

  • names pnpm-lock.yaml → pnpm-lock.yaml — edited by this change

    @objectstack/client, core, formula and lint each pin @objectstack/spec EXACTLY, so resolving the spec alone to 17.3.0 left the console bundling TWO copies of it. Moving the family with it in pnpm-lock.yaml collapses the duplicate; every declared range already admitted 17.3.0, so no manifest moved.

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 born-false claim that spells no line address at all (objectui#9495 coordinated one by ORDINAL — "a grep finds that member first" — and deciding that means reading what the sentence means), 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 a2f361b8c (merge-base with origin/main): 3 file(s) changed outside .changeset/, read against 1569 pending declaration(s) that publish a body (2156 pending in total). · run

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3065.7 KB 3104.5 KB
Main entry chunk (gzip) 148.3 KB 350 KB
Entry file index-UN2aA0e0.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.57KB 6.15KB
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) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.17KB 10.58KB
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.39KB 1.21KB
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.52KB 3.45KB
auth (index.js) 3.63KB 1.64KB
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) 27.13KB 7.95KB
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) 554.92KB 132.66KB
core (index.js) 9.52KB 3.79KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 223.91KB 62.28KB
fields (index.js) 259.29KB 65.64KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.24KB 2.27KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.40KB 12.91KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 39.28KB 11.09KB
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) 6.62KB 2.45KB
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.33KB 3.07KB
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) 16.01KB 3.93KB
plugin-calendar (index.js) 51.65KB 14.69KB
plugin-charts (index.js) 82.37KB 22.57KB
plugin-chatbot (index.js) 198.40KB 47.22KB
plugin-dashboard (index.js) 134.05KB 35.61KB
plugin-designer (index.js) 216.25KB 44.39KB
plugin-detail (index.js) 233.23KB 61.74KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 155.59KB 39.75KB
plugin-gantt (index.js) 169.75KB 41.96KB
plugin-grid (index.js) 218.12KB 59.72KB
plugin-kanban (index.js) 48.43KB 15.11KB
plugin-list (index.js) 114.70KB 28.42KB
plugin-map (index.js) 22.90KB 7.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.55KB 11.99KB
plugin-timeline (index.js) 30.91KB 9.05KB
plugin-tree (index.js) 10.58KB 3.72KB
plugin-view (index.js) 87.83KB 22.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) 116.21KB 38.14KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.03KB 1.86KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.78KB 2.09KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.78KB 2.56KB
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) 18.27KB 6.20KB
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) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
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) 17.15KB 6.32KB
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

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 67c7c528c9aa9aa49a1c26e2cdc55caf579961ea

① Derived judgments

The gate (fresh worktrees, zero node_modules directories, verified by find).

  • Merge-base ee6f6c6a45, no-install: exit 1 — ❌ check-vi-mock-specifiers: 1 mock resolves to no file on disk / - apps/console/src/__tests__/filterContextTokensSweep-10666.test.tsx -- vi.mock("../../../../packages/plugin-map/node_modules/react-map-gl/dist/maplibre.js") / tried 24 path(s).
  • Head, no-install: exit 0 — ✅ check-vi-mock-specifiers: OK (5622 tracked source file(s), 3794 test-named; 857 carry a mock; 1190 relative specifier(s) resolved, 1235 bare (out of scope), 0 non-static, 4 embedded in a string literal, 3 via the import() form). Installed at head: exit 0, identical line. check-vi-mock-inherit no-install at head: exit 0 (884 inherit, 0 auto-mocked). check-vi-mock-override-shape no-install: ERR_MODULE_NOT_FOUND (needs typescript); installed: exit 0 — the body states this correctly.
  • git grep at head for vi.mock|vi.doMock|vi.importMock|vi.importActual with a relative specifier containing node_modules: zero hits. The only remaining node_modules/react-map-gl string is a fixture literal in scripts/__tests__/vite-maplibre-worker.test.ts, not a mock.

The mock is real (installed head worktree, pnpm install --frozen-lockfile --offline, 6.8 s, 0 dirty tracked paths; every vitest leg under os-verify-lock.sh, invoked from the repo root as AGENTS.md prescribes).

  • Sweep at head: Tests 72 passed (72), exit 0. Test blob 962494d19a, ObjectMap blob fbede2de83.
  • vi.mock block deleted (on disk: vi.mock( count 0, 7 deletions): Tests 1 failed | 71 passed (72), the cell 'object-map (inline)' … CONTROL: a token-free filter reaches the query unchanged, TypeError: Cannot read properties of undefined (reading 'destroy'). Restored by git checkout HEAD --, blob 962494d19a equal to HEAD, dirty 0. Load-bearing: yes.
  • git apply -R of f9c06ef6a's ObjectMap hunk (on disk: queryFilter 0, useResolvedFilter 0, schema.filter 7, blob 3c59cd6219, 4 insertions(+), 18 deletions(-)): Tests 6 failed | 66 passed (72) — exactly object-map (object) and object-map (inline) on USER, ORG and REBUILD (sent the literal token, re-queried on a re-render); every other row green. Restored, blob fbede2de83 equal to HEAD, git diff HEAD empty, re-run 72 passed. The mock bites, with no dist/ leg: the root alias maps @object-ui/plugin-map to packages/plugin-map/src, the console vite config's workspaceAliases does not override it, and the src mutation reddened without a rebuild.
  • Extra leg the body did not run: the BASE test file (old relative specifier, blob d387d2a1c0) on head's install: 72 passed — so the old mock was installed at runtime (given no-mock is red), confirming H2's premise by a second route.
  • Resolution: realpath apps/console/node_modules/react-map-gl and realpath packages/plugin-map/node_modules/react-map-gl are the same node_modules/.pnpm/react-map-gl@8.1.2_maplibre-gl@6.4.1_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/react-map-gl; ls node_modules/.pnpm | grep -c '^react-map-gl@' is 1; Node ESM import.meta.resolve('react-map-gl/maplibre') from both package directories lands on the same real dist/maplibre.js; maplibre-gl realpath is one maplibre-gl@6.4.1 under both. No vitest or vite alias names react-map-gl or maplibre (the root vitest.setup.base.ts mocks maplibre-gl globally, seen alike by both packages).

The dependency.

  • ^8.1.2 is exactly packages/plugin-map/package.json's range (its dependencies, beside maplibre-gl ^6.4.1).
  • Lockfile diff merge-base to head: one hunk @@ -328,6 +328,9 @@ importers:, three added lines under the apps/console importer (react-map-gl: / specifier: ^8.1.2 / version: 8.1.2(maplibre-gl@6.4.1)(react-dom@19.2.8(react@19.2.8))(react@19.2.8)), zero lines outside importers:; packages: and snapshots: carry one react-map-gl@8.1.2 entry each before and after, and packages/plugin-map's importer names the same version string. check:lockfile-integrity (VERDICT clean, 1773 resolutions both sides) and check:lockfile-dedupe (VERDICT deduped) exit 0 no-install and installed. .npmrc has only auto-install-peers=true and engine-strict=true; pnpm-workspace.yaml sets no peer or dedupe option; maplibre-gl is optional: true in the lockfile's package entry, so the comment's "optional peer, deduplicated" is true.
  • Installed gates at head, all exit 0: check:unused-deps, check:phantom-deps, check:new-line-citations (0 new), check:control-bytes, changeset:check (fixed and no-major), check:pending-changeset-literals, check-changeset-overwrite (1 added, 0 modified, 0 deleted), check:changeset-claims (report-only; the three pending pnpm-lock.yaml claims it re-raised concern @objectstack/spec 17.x resolutions this hunk does not touch). eslint on the changed file: 0 errors, the one pre-existing no-explicit-any warning.
  • Build output: NOT MEASURED locally. By construction unchanged: git grep finds no console source import of react-map-gl; a devDependency is not a build input; the only console config mention is OPTIMIZE_DEPS_INCLUDE, which per its own comment is read by pnpm dev only, never by vite build (observation: the devDependency now makes those two dev-only include entries resolvable from the app root; dev-server only). CI Bundle Analysis and Build & E2E success; the budget comment reads PASS at 3065.7 KB of 3104.5 KB.

The comment in the test. True in every clause: ObjectMap.tsx imports react-map-gl/maplibre; all 30 plugin-map tests mock that exact spelling and no other; the gate's header names bare specifiers as out of scope (objectui#5646); the workflow runs the checker after setup-node with no install; the pre-install failure is reproduced above.

The changeset. Empty frontmatter is the repo's first-class form: check-changeset-presence.mjs's header ("An EMPTY frontmatter counts"; "A change confined to src/__tests__/ is answered by the empty-frontmatter exemption"); 588 of the current .changeset/*.md files carry ---/---. Why apps/console/src counts: @object-ui/console is in the fixed group of .changeset/config.json, so clause (a) PKG/src/** guards it, while devDependencies in package.json are explicitly not guarded. Measured no-install at head with --base ee6f6c6a45: exit 0 (1 source file(s) of 1 released package(s) changed … EMPTY frontmatter … a complete answer); with the changeset file moved away: exit 1 naming @object-ui/console and the test file — the declaration is owed, as the body says. The changeset prose is true (specifier, range, same store instance, the pre-install cause, nothing under dist/ or plugin.js).

② Semver level

Clause-②: no — correct in substance. No released package's dist/, plugin.js, exports, files or runtime dependency moves; a devDependency of @object-ui/console reaches no consumer install. The empty-frontmatter changeset is the right declaration.

Title and body against head, sentence by sentence. Title: true. "Fixes #10731" and the objectui#10732 fold: true (10732 closed as duplicate at 03:20Z; its readings live in triage 5852234038). What-changed bullets: all four true. H1 red line and tried 24 path(s): reproduced. H2 load-bearing figures: reproduced at head. H3 realpaths, one store instance, no peer split: reproduced. H5 blobs, counts, 6 failed | 66 passed, the six cells, restore: reproduced. Gates table exits: all reproduced. Serial: origin/main ee6f6c6a45 to 10e9cc6ae3 is 39 files (verified; main has since moved one more commit to a2f361b8c1, 40 files, still none of the four); merge-tree clean against both. Three sentences are FALSE as written:

  1. H1: "The same tree after pnpm install: exit 0, check-vi-mock-specifiers: OK (5622 …; 1190 relative specifier(s) resolved, 1235 bare (out of scope), …)." Those are HEAD's figures. At the base tree the mock is still relative, so the census reads 1191 relative specifier(s) resolved, 1234 bare (out of scope) (measured at the merge-base with the target file present on disk; the checker judges disk existence only). Replacement: check-vi-mock-specifiers: OK (5622 tracked source file(s), 3794 test-named; 857 carry a mock; 1191 relative specifier(s) resolved, 1234 bare (out of scope), …).
  2. Clause-② line: "a private app's devDependency". @object-ui/console is not private — no private field, publishConfig.access: public, files/main/exports published, in the fixed group, CHANGELOG at 17.6.0 — and the body's own Acceptance notes call it "a published package". Replacement: Clause-②: no — a test's mock specifier and a devDependency of @object-ui/console, which no consumer installs; no published surface moves.
  3. Gates table, check:unused-deps: "(the vi.mock specifier is a consumer under its rule 1)". False. Rule 1 reads the phantom-deps parser's specifier forms (import, export-from, import-equals, import()-type, dynamic import(), require()); run on the head test file it emits 16 specifiers, none react-map-gl; consumedNames(root, 'apps/console') has no react-map-gl. The gate is green because devDependencies are in MEASURED_FIELDS, not GATED_FIELDS — react-map-gl is one of its "59 dev declaration(s) [with] no consumer". Replacement: (devDependencies are measured, not gated, by this script; react-map-gl in apps/console has no consumer the scan reads, since a vi.mock string is none of its specifier forms — the exit 0 says nothing about this declaration).

Nit: "objectui#8941 touches apps/console/package.json (the lucide-react range, an adjacent line)" — lucide-react sits four lines above react-map-gl in the same devDependencies block (8941's hunk context reaches react-dom, the line the new entry follows). Replacement: (the lucide-react range, four lines above in the same devDependencies block).

③ Boundary flags

  • CI on head 67c7c528c9: 45 check runs, all completed — 42 success, 3 skipped (dependabot, Test (coverage), Test (coverage shard …/4)). Inert vi.mock Specifier Check is GREEN on this head (run 108548874028, success, 04:16:57Z). The Test shards 1–8 have all finished, all success (last at 04:28:14Z); Spec Main Shape Gate, Type Check, Lint, Changeset Declaration, Lockfile Integrity Check, Lockfile Dedupe Check, Governed Surface Queue Guard, Bundle Analysis, Build & E2E all success. Vercel status: Canceled by Ignored Build Step.
  • git merge-tree --write-tree PR head against current main a2f361b8c1: exit 0, tree 6bf5758bfb. Against PR objectui#8941 head bb7d5e7187: exit 0, tree 63f03eb3b4. Main since merge-base: 4 commits, 40 files, none of the four PR files.
  • Open PRs on the four files: only draft objectui#8941 (apps/console/package.json, pnpm-lock.yaml); 10744, 10741, 10734, 10733, 10714, 10708, 10278 and 5400 (three pages of files read) touch none. Whichever of 10749 and 8941 lands second must regenerate the lockfile.
  • Draft state: draft: true, mergeable: true, mergeable_state: clean (was behind at first read).
  • check-governed-queue-guard.mjs --test on the four real paths: ✅ NOT GOVERNED — 4 path(s) checked against 5 governed surface(s); none matched.
  • Worktrees removed (git worktree list shows none of mine); /home/user/objectui untouched (HEAD f905090a14, dirty 0).

Implemented-by: claude/issue-10731-inert-vimock-maplibre
Reviewed-by: session_014mXUNuFomfj24w7s1pZzhN

VERDICT: FAIL

Wording only — the code, the lockfile and the changeset are correct and every measurement reproduces. What stops it: three sentences in the landing body are false (② items 1–3: the base-installed census quotes head's figures, the Clause-② line calls a published package "a private app", and the check:unused-deps parenthetical asserts a consumer the gate does not read). Apply the three replacements above (and optionally the nit), re-read the body byte-for-byte after the edit, and this is a PASS.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 67c7c528c9aa9aa49a1c26e2cdc55caf579961ea

① Derived judgments

Head unchanged. PR head is still 67c7c528c9 (1 commit, 4 files; updated_at 04:46:27Z is the round-1 comment itself); refs/review/pr-10749 fetched fresh resolves to the same sha. Comments on the PR: 3, the last being round 1's record 5852717533 (read in full); 0 reviews.

Landing body vs live body. pr-body-10749-r1.md equals the live PR body (diff empty; 0 CR bytes). diff -U0 r1 r2: exactly four lines differ — 2, 25, 57, 69 — 80 lines both sides. Each replacement is verbatim from the record, and each was re-checked against head:

  1. Line 25 (H1, base tree after install): 1191 relative specifier(s) resolved, 1234 bare (out of scope). Re-measured in a fresh no-install worktree at merge-base ee6f6c6a45 (0 node_modules dirs by find): with no target file, exit 1 and the quoted red line (tried 24 path(s)); with an empty packages/plugin-map/node_modules/react-map-gl/dist/maplibre.js placed on disk (the checker judges disk existence only), exit 0 — OK (5622 tracked source file(s), 3794 test-named; 857 carry a mock; 1191 relative specifier(s) resolved, 1234 bare (out of scope), 0 non-static, 4 embedded in a string literal, 3 via the import() form). True.
  2. Line 2 (Clause-② line): verbatim. apps/console/package.json at head: name @object-ui/console, version 17.6.0, no private field, publishConfig.access public, files = dist, plugin.ts, plugin.js, plugin.d.ts, README.md; react-map-gl ^8.1.2 sits in devDependencies only (the diff is one added line at 112). True. "private" appears nowhere in the body now (grep: 0).
  3. Line 57 (check:unused-deps parenthetical): verbatim. scripts/check-unused-dependencies.mjs at head: GATED_FIELDS = ['dependencies', 'optionalDependencies'], MEASURED_FIELDS = ['peerDependencies', 'devDependencies']; rule 1 reads phantom-deps' moduleSpecifiers, whose forms (source lines 385–408) are import, export-from, import=, import()-type, import() with the ImportKeyword callee and require() with an identifier callee — a vi.mock(...) call (property-access callee) is none of them. git grep react-map-gl under apps/console at head: package.json:112, the test's comment (49) and vi.mock line (60), two CHANGELOG lines, two string entries in vite.config.ts (676–677); zero import/require forms. True. (Parser not re-run: it imports typescript, absent both no-install and in the main checkout.)
  4. Line 69 (nit): verbatim. lucide-react is line 108, react-map-gl line 112, both inside devDependencies (lines 57–119; dependencies opens at 120). PR 8941's diff on that file is exactly lucide-react ^1.31.0 to ^1.43.0 at line 108. True.

What the edit broke — one sentence is now false and contradicts another line. Line 44 (H5, "No-install leg at head 67c7c528c9"): "check-vi-mock-specifiers exit 0 with the census quoted above". The only census quoted above is H1's, which replacement 1 correctly turned into the BASE tree's 1191/1234. Head's no-install census, re-measured in a fresh worktree at 67c7c528c9 (0 node_modules): OK (5622 …; 857 carry a mock; 1190 relative specifier(s) resolved, 1235 bare (out of scope), …) — the figures the Gates row on line 50 gives. Line 44 therefore now says head's census equals the base census, off by one in each figure — the one edit this PR makes. Round 1's record did not anticipate this forward reference; the seat applied replacement 1 mechanically. (check-vi-mock-inherit at head, no-install: exit 0, 884 inherit, 0 auto-mocked — line 44's second clause is true.)

Title. Unchanged; true.

Clause-② reader. No objectui script or workflow at head parses the body's Clause-② line (grep over .github and scripts/check-changeset*.mjs: only cross-repo-issue-closer.yml reads the body, for Fixes); the prefix Clause-②: no — is byte-identical between r1 and r2, so no gate outcome moves.

② Semver level

Clause-②: no — still right. react-map-gl enters devDependencies of @object-ui/console only; none of the package's files, exports or runtime dependencies move, and consumers do not install devDependencies. The changeset .changeset/10731-console-map-mock-bare-specifier.md at head has empty frontmatter (---/---) and reads "Test and devDependency only, no package released … Nothing under dist/ or plugin.js changes" — consistent with the new Clause line and with Acceptance-notes line 74 ("a devDependency of a published package"). @object-ui/console is in the single fixed group of .changeset/config.json, which is why the empty declaration is owed; CI Changeset Declaration, Changeset Bump Policy, Changeset Fixed Group Check all success.

③ Boundary flags

  • CI on head 67c7c528c9: 45 check runs, all completed — 42 success, 3 skipped (dependabot, Test (coverage), Test (coverage shard …/4)). Inert vi.mock Specifier Check: success (run 108548874028, 04:16:57Z). Test, shards 1–8, Test (dist pins), Type Check, Lint, Lockfile Integrity Check, Lockfile Dedupe Check, Governed Surface Queue Guard, Bundle Analysis, Build & E2E, Spec Main Shape Gate, Pre-Install Import Graph Check: all success. Combined commit status success (Vercel: Canceled by Ignored Build Step).
  • git merge-tree --write-tree head vs current main 01700dcd7d: exit 0, tree 211eb55977. Main since merge-base ee6f6c6a45: 5 commits, 51 files, none of the four (the body's Serial line names the earlier 10e9cc6ae3/39 files — dated, and still true of the four files). Head vs PR 8941 bb7d5e7187: exit 0, tree 63f03eb3b4 (round 1's hash).
  • Open PRs (10; every file list paginated) on the four files: draft 8941 (apps/console/package.json, pnpm-lock.yaml), and — absent from round 1's list — the non-draft release PR 5400 (changeset-release/main, 1732 files), which against its own merge-base changes apps/console/package.json only on the version line (17.6.0 to 17.7.0) and the @objectstack/client range, textually apart from the devDependencies hunk; its merge-tree against head conflicts on 84 .changeset/*.md modify/delete pairs from its Sep 17 base and on none of the four files; the bot regenerates it after each landing. 10751, 10744, 10734, 10733, 10714, 10708, 10278 touch none.
  • Draft state: draft: true, mergeable: true, mergeable_state: clean. Issue 10731 open, labels bug, pm:dispatched, domain:ui, priority:p1, area:devpath.
  • Hygiene: both scratch worktrees removed and pruned, review directory gone; /home/user/objectui untouched (HEAD f905090a14, dirty 0); only refs/review/* refs were fetched.

Implemented-by: claude/issue-10731-inert-vimock-maplibre
Reviewed-by: session_014mXUNuFomfj24w7s1pZzhN

VERDICT: FAIL

Wording only — one sentence, a knock-on of replacement 1. All four prescribed replacements are verbatim and true; head, CI, merge-tree, changeset and Clause line are in order. What stops it: line 44 (H5 no-install leg) says head's check-vi-mock-specifiers ran "with the census quoted above", and that census is now the base tree's 1191/1234, while head's is 1190/1235 (re-measured; the Gates row on line 50 agrees). Replace the clause "check-vi-mock-specifiers exit 0 with the census quoted above" on line 44 with:

check-vi-mock-specifiers exit 0 — OK (5622 tracked source file(s), 3794 test-named; 857 carry a mock; 1190 relative specifier(s) resolved, 1235 bare (out of scope), …), head's census, which the Gates table repeats: one relative specifier fewer and one bare more than the base tree's 1191/1234 in H1, which is this PR's one edit

Nothing else in the body needs to change; re-read it byte-for-byte after the edit and this is a PASS.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 67c7c528c9aa9aa49a1c26e2cdc55caf579961ea

① Derived judgments

Head unchanged. PR head is still 67c7c528c9 (1 commit, 4 files); refs/review/pr-10749 re-fetched resolves to the same sha; updated_at 04:57:18Z is round 2's comment 5852781419 (04:57:17Z). Comments on the PR: 4 (two bot re-read notes, round 1 5852717533, round 2 5852781419, both read in full); 0 reviews. Live body still equals pr-body-10749-r1.md byte-for-byte.

Landing body vs live body. diff -U0 r1 r3: exactly five lines differ (2, 25, 44, 57, 69); diff -U0 r2 r3: exactly line 44; 80 lines all three, 0 CR bytes. Each replacement checked with a fixed-string grep against the prescribing record, then against head:

  1. Line 25 (round 1 replacement 1): verbatim. Re-measured in a fresh worktree at merge-base ee6f6c6a45 (0 node_modules dirs by find): without the target file, exit 1 and the quoted red line (tried 24 path(s)); with an empty packages/plugin-map/node_modules/react-map-gl/dist/maplibre.js on disk, exit 0 with 1191 relative specifier(s) resolved, 1234 bare (out of scope). True.
  2. Line 2 (round 1 replacement 2): verbatim. apps/console/package.json at head: @object-ui/console 17.6.0, no private field, publishConfig.access public, files = dist, plugin.ts, plugin.js, plugin.d.ts, README.md; react-map-gl ^8.1.2 is in devDependencies only (one added line, 112). True. "private": 0 hits in the body.
  3. Line 57 (round 1 replacement 3): verbatim. True as round 2 established (devDependencies in MEASURED_FIELDS, vi.mock is none of the phantom-deps specifier forms); "rule 1": 0 hits.
  4. Line 69 (round 1 nit): verbatim. lucide-react line 108, react-map-gl line 112, both inside devDependencies (57 to 119). PR 8941's patch on that file is one line at 108 (^1.31.0 to ^1.43.0). "adjacent": 0 hits.
  5. Line 44 (round 2 replacement): verbatim; the old clause "with the census quoted above" is gone (0 hits). Re-measured at head in a fresh no-install worktree: check-vi-mock-specifiers exit 0, OK (5622 tracked source file(s), 3794 test-named; 857 carry a mock; 1190 relative specifier(s) resolved, 1235 bare (out of scope), 0 non-static, 4 embedded in a string literal, 3 via the import() form); check-vi-mock-inherit exit 0, 884 inherit, 0 auto-mocked; check-vi-mock-override-shape exit 1 with Cannot find package 'typescript' / ERR_MODULE_NOT_FOUND, and lint.yml runs it (line 368) after pnpm install --frozen-lockfile (line 337). "which the Gates table repeats": line 50 carries the same 1190/1235. "one relative specifier fewer and one bare more than the base tree's 1191/1234 in H1, which is this PR's one edit": the test-file diff replaces exactly one vi.mock line (relative to bare; vi.mock( count 1 at base and 1 at head), and git grep at head finds no relative mock naming node_modules. True.

Whole-body sweep. Census figures appear only on lines 25 (base, 1191/1234), 44 (head, 1190/1235, explicitly contrasted with H1) and 50 (head, 1190/1235); no sentence says the two censuses are equal. "consumer" appears on lines 2, 57 (twice) and 74, each denying a consumer; no line claims a consumer for react-map-gl in apps/console. Acceptance line 74 ("a devDependency of a published package") agrees with the Clause line. Title unchanged and equal to the head commit subject. One dated-but-not-false sentence stands as in round 2: Serial line 68 names main 10e9cc6ae3 (39 files) while main is now 01700dcd7d (5 commits, 51 files since the base, none of the four PR files); it does not need to change.

② Semver level

Clause-②: no — still right, and the body's line 2 now says so correctly. The PR diff is +29 -6 over the four files: one devDependency line, one lockfile hunk (@@ -328,6 +328,9 @@ importers:, three lines under apps/console, no new packages: or snapshots: entry), the test file, and .changeset/10731-console-map-mock-bare-specifier.md with empty frontmatter (---/---) whose prose reads "Test and devDependency only, no package released … Nothing under dist/ or plugin.js changes" — consistent with the new Clause line. No dist/, plugin.js, exports, files or runtime dependencies move; consumers do not install devDependencies.

③ Boundary flags

  • CI on head 67c7c528c9: 45 check runs, all completed — 42 success, 3 skipped (dependabot, Test (coverage), Test (coverage shard …/4)). Inert vi.mock Specifier Check: success (run 108548874028, 04:16:57Z). Test and shards 1 to 8, Test (dist pins), Type Check, Lint, Lockfile Integrity Check, Lockfile Dedupe Check, Changeset Declaration, Changeset Bump Policy, Changeset Fixed Group Check, Governed Surface Queue Guard, Bundle Analysis, Build & E2E, Spec Main Shape Gate, Pre-Install Import Graph Check: all success. Combined commit status success (Vercel: Canceled by Ignored Build Step).
  • git merge-tree --write-tree head vs current main 01700dcd7d: exit 0, tree 211eb55977 (unchanged since round 2; main has not moved). Head vs PR 8941 bb7d5e7187: exit 0, tree 63f03eb3b4. Head vs release PR 5400 bc117427fe: 84 modify/delete conflicts, all .changeset/*.md from its Sep 17 base, 0 on any other path; apps/console/package.json auto-merges (5400 changes only the version line, 17.6.0 to 17.7.0, against its merge-base with head).
  • Open PRs (11, every file list paginated): on the four files only draft 8941 (apps/console/package.json, pnpm-lock.yaml) and non-draft 5400 (apps/console/package.json, version line only); 10752, 10751, 10744, 10734, 10733, 10714, 10708, 10278 touch none. Whichever of 10749 and 8941 lands second regenerates the lockfile, as line 69 says.
  • Draft state: draft: true, mergeable: true, mergeable_state: clean. Issue 10731 open, labels bug, pm:dispatched, domain:ui, priority:p1, area:devpath.
  • Hygiene: both scratch worktrees removed and pruned, pr-10749-r3-review/ gone; /home/user/objectui untouched (HEAD f905090a14, dirty 0); only refs/review/pr-10749 and refs/review/main were fetched.

Implemented-by: claude/issue-10731-inert-vimock-maplibre
Reviewed-by: session_014mXUNuFomfj24w7s1pZzhN

VERDICT: PASS

All five edited lines are verbatim from the prescribing records and re-measured true at head; no other sentence in the body contradicts them; the Clause line, changeset, CI, merge-trees and draft state are in order. Publish pr-body-10749-r3.md as the PR body unchanged.


Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review September 27, 2026 05:05
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Sep 27, 2026
Merged via the queue into main with commit e2b8f99 Sep 27, 2026
47 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-10731-inert-vimock-maplibre branch September 27, 2026 05:18
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Sep 28, 2026
…e html tier's intrinsic elements, marked tier html — div stays out (objectui#10735) (objectstack-ai#10753)

Fixes objectstack-ai#10735
Clause-②: yes — the published manifest's declared vocabulary grows.

Executes the maintainer's ruling A on objectstack#20112 (batch objectstack-ai#225 item
1, 「其他同意」): the published `sdui.manifest.json` declares the html tier's
registered intrinsic set exactly as the registry declares it, with each
tag's `inputs` and child slot; `div` stays undeclared. Base
`origin/main` 5ad3b88; head 6417e8d (round 2: wording only, one commit
on top of 5bd6270).

## What changed

- `packages/core/src/registry/html-tier-intrinsics.ts` (new):
`HTML_TIER_INTRINSICS` — the 37 tags of `html-elements.tsx`'s `TAGS`,
plus `span`, `table`, `label` and the seven sectioning tags of
`semantic.tsx` (47). Exported from `@object-ui/core` beside
`PUBLIC_BLOCKS`.
- `packages/core/src/registry/Registry.ts`: `getPublicConfigs()` appends
the roster's registered tags LAST, each stamped `tier: 'html'` in the
projection (never written onto the registration);
`PublicComponentConfig.tier` admits `'html'`. `PUBLIC_BLOCKS` is
untouched.
- `packages/sdui-parser`: `ManifestComponent.tier?: 'html'`;
`manifestFromConfigs` writes exactly `'html'` or omits the key (every
curated entry serialises byte-identically); `generateBlockList` sections
the html tier under its own count; `RegistryConfigLike.tier` admits
`'html'`. `gen-manifest.ts` header updated, behaviour unchanged.
- `packages/components/src/renderers/layout/react-page.tsx`: the
`kind:'react'` scope builder skips `tier === 'html'` entries, so no `P`
/ `A` / `Img` wrapper is injected (file-surface amendment, forced by the
card's ⛔ on silent widening — see H2).
- Tests: new pins in core, sdui-parser, console;
`react-page-scope.test.tsx` and `container-declaration-census.test.tsx`
updated; `public-contract.test.ts` prose amended (two ledger passages
that said curating a sectioning tag would newly widen the manifest).
- Docs: `content/docs/guide/react-pages.md` (the html tier is not
injected on the react tier), `content/docs/guide/plugin-development.md`
(the component-level `tier: 'html'` marker).
- `.changeset/10735-html-tier-manifest.md`: `minor` for
`@object-ui/core`, `@object-ui/sdui-parser`, `@object-ui/components`.
- Round 2 (contract review, wording): the react-page skip line is quoted
as it now reads — `if (!tag || cfg.isContainer || cfg.tier === 'html')
continue;` — in `content/docs/guide/react-pages.md` ("skips every
container and every html-tier entry"; frontmatter lines 1–4 md5
unchanged, 9c5f94a7…), in both `public-contract.test.ts` passages, in
the `container-declaration-census` pin, and in
`layout-containers-declare-containment.test.tsx` (comment-only,
previously untouched). `git grep -F` of the old line at head: 2 hits,
both inside `.changeset/6740-flex-is-container.md` — its original
paragraph and the dated note that marks it. The 10735 changeset now says
"200 ledgered findings" (10 ledger rows whose counts sum to 200).
- `.changeset/6740-flex-is-container.md` (pre-existing,
`@object-ui/components: patch`): reconciled in the objectui#10533
dated-note form, scoped "at this change" — `⚠️ **Dated note, 2026-09-27
— the skip line quoted above has since gained a third arm —
objectui#10735.**` — frontmatter byte-identical (md5 ce888ebd… before
and after). `check-changeset-overwrite` REPORTS the modification
(report-only, exit 0) and did not refuse it.
- ⛔ Not touched: `html-elements.tsx`, `div.tsx`, `PUBLIC_BLOCKS`, the
registration-uniqueness test.

## H1 — the census (measured from `ComponentRegistry.getKnownTypes()`
after `@object-ui/components` + `apps/console/src/register-plugins.ts`
load, in the console vitest project)

Instrument for "is an HTML tag": the keys of `JSX.IntrinsicElements` in
`@types/react` (178 names, HTML and SVG; lit control: `div`, `p`, `svg`
in, `object-grid` out). Registry: 485 known keys, 208 bare.
Intersection: **64** bare registrations carry an element name.

- **(a) `html-elements.tsx` `TAGS` — 37, all registered:** h1 h2 h3 h4
h5 h6 p a blockquote pre strong em b i u small mark sub sup del ins abbr
ul ol li dl dt dd figure figcaption img hr br time address cite q.
- **(b) registered elsewhere, declared — 10:** `span` (basic/span.tsx;
inputs className, children), `table` (complex/table.tsx; caption,
footer, columns, data, className — no child slot), `label`
(form/label.tsx; text required, className — no child slot), and `aside
main header nav footer section article` (layout/semantic.tsx; className,
children; `isContainer`).
- **(c) excluded — 17:**
- `div` — deprecated on the JSON surface in favour of `box`
(objectui#3965, PR objectui#6878); kept out by the ruling.
- `code`, `summary`, `object` — bare namespace fallbacks of `field:code`
/ `field:summary` / `field:object` (inputs `[]`, no child slot); `view`
— `plugin-view`'s bare key (SVG name coincidence). ⚠️ The ruling's list
names `code` as "registered elsewhere"; measured, the only `code`
registration is the field widget (a code editor / `pre` block reading
`value`). Declaring it would teach a tag whose children the runtime
drops, so it is NOT declared — see Acceptance notes and the report's
open question.
- `kbd` — a `ui` component reading `keys` / `label`, not named by the
ruling; not declared (additive later on a named need; retracting is a
narrowing).
- `form input textarea select switch` — JSON-surface form components;
the tier excludes form controls by design (the exclusion list in
`html-elements.tsx`). `progress`, `dialog` — `ui` components under tag
names, not passthroughs, not named.
- `button text image html` — already curated in `PUBLIC_BLOCKS`; they
reach the manifest from there, unstamped.

The (c) list is not prose:
`apps/console/src/__tests__/html-tier-manifest.test.ts` holds every
HTML-named bare registration to one of `PUBLIC_BLOCKS`,
`HTML_TIER_INTRINSICS` or its exclusion ledger `EXCLUDED_HTML_NAMED` (13
entries, each with a reason, each pinned live), so a registration that
newly squats on a tag name lands there by absence.

## H2 — the fork, the consumer map, and the marker decision

**Premise measured true:** `getPublicConfigs()` through
`manifestFromConfigs` is the sole source of the published manifest —
objectui's `apps/console/dev/manifest-dump.tsx` /
`scripts/dump-public-manifest.mjs`, and objectstack's
`scripts/gen-sdui-manifest-node.mjs` (which imports the 16 registry
modules from objectui's built tree at `.objectui-sha` and calls exactly
`ComponentRegistry.getPublicConfigs()` then its lockstep copy's
`manifestFromConfigs`). The manifest is ONE flat `components` map with
no tier marker; `compile()` derives `allowedTags =
Object.keys(manifest.components)`. So listing the html tags in
`PUBLIC_BLOCKS` would have widened the curated JSON-surface vocabulary
silently — the fork the card names.

**Marker chosen: a per-entry `tier: 'html'` on `ManifestComponent`,
carried from a projection-only stamp in `getPublicConfigs()`.** Why not
a second registry read or a second manifest section: the objectstack
generator calls `getPublicConfigs()` and nothing else, and `compile()`
reads only `components` — either alternative needs an objectstack-side
change before the gate accepts a single html tag, and the second-section
shape would leave the gate refusing the tags until its lockstep copy was
ported. With the per-entry marker the objectstack gate accepts the tags
with NO reader change: it ignores the extra key.

Consumers, and what each does with the marker:

| reader | reads | change |
|---|---|---|
| objectstack `packages/lint` `validateJsxPages` → `compile()` | keys as
whitelist; `validateTree` reads `inputs` / `namespace` | none — accepts
the tags; ignores `tier` |
| objectstack `scripts/check-sdui-manifest.mjs` | `components[k].type
=== k`, count, sha | none |
| objectstack `scripts/gen-sdui-manifest-node.mjs` |
`getPublicConfigs()` + lockstep `manifestFromConfigs` | none to run; ⚠️
its lockstep copy of `packages/sdui-parser/src/{index,types,codegen}.ts`
needs this port for the marker to reach the tracked file — until then
the tags are declared there WITHOUT `tier`, which the gate treats
identically |
| objectui `react-page.tsx` `buildComponentScope` | `getPublicConfigs()`
| skips `tier === 'html'` (else `P` / `A` / `Img` wrappers would be
injected) |
| objectui `generateBlockList` | manifest | sections the html tier;
curated count unchanged (59) |
| objectui `generateDts` | manifest | emits the tags into
`JSX.IntrinsicElements` (the html-tier authoring surface) |
| objectui `page.tsx` html-tier compile | `getKnownTypes()`, not the
manifest | none (already accepted these tags) |
| console census tests | `getPublicConfigs()` |
`container-declaration-census` reads the curated contract as the
unstamped entries; `public-contract` coverage lists filter by
`PUBLIC_BLOCKS` and are unchanged |

Reverse verification that consumers read the REBUILT `.d.ts`: a scratch
console file assigning `tier: 'json'` to a `ManifestComponent` and to a
`PublicComponentConfig` — `tsc --noEmit` exit 2, `TS2322: Type '"json"'
is not assignable to type '"html"'` and `… to type '"html" | "public" |
"internal" | undefined'`; the `'html'` assignments compiled. Probe
removed; `git status` clean.

## H3 — the regenerated artefacts

Generated with the repo's own generator (`buildArtifacts` in
`packages/sdui-parser/scripts/gen-manifest.ts`) over the console
registration graph with the 16 plugin modules eager-imported in
`manifest-dump.tsx` order, once on the base tree and once on head:

| artefact | base | head |
|---|---|---|
| `sdui.manifest.json` components | 59 | **106** (+47 added, 0 removed,
0 curated entries changed) |
| `div` / `code` / `kbd` present | no | no |
| entries with `tier: 'html'` / without | 0 / 59 | 47 / 59 |
| `sdui-intrinsics.d.ts` intrinsic entries | 59 | 106 (+253 lines, −0) |
| `sdui-blocks.md` | 65 lines, one table | 119 lines: `# SDUI public
blocks (59)` unchanged + `## html tier intrinsic elements (47)` |

Sample head entries: `a` → inputs className, href, target, rel, title,
children (slot); `br` → className only (void, no slot); `label` → text
(required), className (no slot). The base run's manifest differs from
objectstack's tracked `sdui.manifest.json` only because the pin f8a9d0f
predates this base (`cmp` differs at byte 1183) — the regeneration at
the next pin bump is the `domain:cli` lane's step.

## Pins — red on base, green on head

Two mutation legs (implementation files checked out at base, tests at
head; trap-guarded restores to `HEAD`, proven by `git diff HEAD` empty
and blob-hash equality — "RESTORE PROVEN" printed twice):

- Leg 1 — `Registry.ts`, sdui-parser `index.ts` / `types.ts` /
`codegen.ts`, `react-page.tsx` at base: `Test Files 5 failed (5)`,
`Tests 17 failed | 61 passed (78)` — every behavioural pin red (the
roster-only pins stay green by design).
- Leg 2 — `react-page.tsx` alone at base: `Tests 1 failed | 8 passed
(9)` — `a PascalCased html-tier tag is an unknown identifier on this
tier` red (an `Img` wrapper was injected).
- Green on head 5bd6270 (round 1) after the restores: `Test Files 9
passed (9)`, `Tests 114 passed (114)` over the five pin files plus
`registration-uniqueness.test.tsx` (unchanged, green),
`public-tier.test.ts`, `tier.test.ts`, `public-contract.test.ts`.

Round 2 (head 6417e8d): the three re-quoted test files plus
`react-page-scope` and `html-tier-manifest` re-run — `public-contract`,
`container-declaration-census`, `layout-containers-declare-containment`,
`react-page-scope`, `html-tier-manifest` — `Test Files 5 passed (5)`,
`Tests 89 passed (89)`.

Broader affected suites at head 5bd6270: console `html-tier-manifest`,
`public-contract`, `public-block-binding-reach`,
`record-block-record-reach`; components `react-page-scope`,
`container-declaration-census`, `container-declaration-ratchet`,
`layout-containers-declare-containment`, `registration-uniqueness`;
plugin-tree `registration.publicTier-10064` — `Test Files 10 passed`,
`Tests 137 passed` (plus the scratch generator run).

## Gates (exit captured before any pipe; verdict lines quoted)

- Build: `turbo run build --filter="@object-ui/console^..."
--concurrency=2` under the verify lock — `Tasks: 34 successful, 34
total`, `VERDICT command-exit 0`.
- Type-check (`pnpm run type-check`, script echoed): `@object-ui/core`
exit 0, `@object-ui/sdui-parser` exit 0, `@object-ui/components` exit 0,
`@object-ui/console` exit 0. `--listFiles` counts the new / edited test
files inside their programs (1, 1, 2, 1).
- Lint, CI-parity: `turbo run lint` over the four packages — `Tasks: 5
successful, 5 total`, 0 errors; eslint `--format json` over the 14
touched files: 0 errors, 22 warnings, all pre-existing `no-explicit-any`
lines not introduced here.
- `check:control-bytes` — `✅ check-control-bytes: OK (scanned 8928
tracked text file(s))`.
- `check:new-line-citations` — `VERDICT new-cross-file-line-citations: 0
new citation(s)`.
- `check-changeset-presence` — round 2: `✅ 15 source file(s) of 4
released package(s) changed, and this change declares 1 changeset(s)`;
`changeset:check` — `✅ No changeset declares a major bump` and `✅ All
workspace packages are in the changeset fixed group`.
- Round 2 text gates on head 6417e8d: `check:control-bytes` `✅ OK
(scanned 8928 tracked text file(s))`; `check:new-line-citations`
`VERDICT new-cross-file-line-citations: 0 new citation(s)`;
`check-changeset-claims` exit 0 (2 bodies judged, no negation; the
re-read list is unchanged); `check-changeset-overwrite` exit 0
report-only — `1 changeset(s) added, 1 modified, 0 deleted`, the
modified one being `.changeset/6740-flex-is-container.md` (the dated
note above); `check-doc-links` — `Links are valid across 17 scan roots.`
- `check:unreferenced-sources` OK; `check:pending-changeset-literals` `✅
No test source names a pending changeset`; `check:test-path-roots` OK;
`check:doc-types` `✅ Every documented component type is registered`;
`check:doc-fences` OK; `check:registry-bare-names` `✓ no new bare-name
collision`; `check:esm-specifiers` (specifier leg) OK;
`check:component-surface-parity` report-only exit 0.
- `check:changeset-claims` (report-only): 13 pending changesets name a
file this change touches; each re-read — the "forwards exactly seven
keys per input" claims stay true (this adds a component-level key, no
input key), and "none of the 8 is in the curated public contract" stays
true (the seven now enter the manifest as html-tier entries, not
curated).
- NOT MEASURED locally, declared to CI: `check:readme-exports` (exit 1 =
8 self-imports unjudgeable because `packages/cli` and
`packages/plugin-ai` are outside the built closure; 538 judged, 0
fabricated), `check:doc-snippets` (exit 2 PRECONDITION NOT MET, same
unbuilt packages; the two edited guides gained prose only),
`check:eager-closure` and `check:sdui-registration-pins` (need a console
build), repo-wide `pnpm lint` (per-package eslint via turbo covered the
four touched packages exactly as CI runs them; `eslint.config.js`
declares no type-aware `project`, so this diff moves no untouched file's
verdict).

## Serial

Claim read: no open PR touches `gen-manifest.ts`, `public-blocks.ts` or
`html-elements.tsx`. Round 1: `origin/main` fetched into the private ref
`refs/issue-10735/main` (01700dc, four commits past base), `git
merge-tree --write-tree HEAD refs/issue-10735/main` exit 0 (tree
368f01d). Round 2, before the push of 6417e8d: main re-fetched at
704e05b (nine commits past base: objectstack-ai#10741, objectstack-ai#10574, objectstack-ai#10736, objectstack-ai#10745,
objectstack-ai#10749, objectstack-ai#10734, objectstack-ai#10733, objectstack-ai#10744, objectstack-ai#10752), `merge-tree --write-tree` exit
0 (tree 0d9bcb9); the set of files main moved since base is disjoint
from this branch's files (`comm -12` empty), so no merge commit was
needed.

## Acceptance notes

- **`div` on the html tier is now split across two faces.** The
published contract refuses it (`forbidden-tag`), while the renderer's
declaration still reads `deprecated: { surfaces: ['json'] }`
(objectui#4000) and the console's html-tier compile (`page.tsx`,
`getKnownTypes()`) still accepts and renders it. The ruling's item 3
parks the renderer-side retirement in these notes: the reconciliation is
a separate card (declare the `html` surface on `div`'s deprecation with
`box` as the replacement, and decide whether the console compile should
read the same roster).
- **"Refused with `box` named as the replacement" has no mechanism
today.** The gate's refusal is the parser's generic `forbidden-tag` text
(the tag is not an allowed component); nothing in the manifest or the
parser names `box` for an absent `div`. `Registry.deprecationFor('div',
'json').replacement` names it, but the gate never reaches the registry.
Not implemented here (a new contract shape); raised in the report's open
questions.
- **`code`:** the `html-elements.tsx` header and ADR-0081 §2 both say
`code` is "registered elsewhere"; the only registration is
`field:code`'s bare fallback. On an html page today `code` resolves to
that widget and drops its text — a reproducible runtime defect
independent of this card; reported as an out-of-scope finding.
- **`label` and `table` are declared as registered**, so the HTML-shaped
`label` with text children draws `missing-required-prop` (`text`) and
`not-a-container`, and a `table` authored with element children draws
`not-a-container`; the registered spellings (`text="…"`, `columns` /
`data`) are clean. Pinned.
- **objectstack side, for the `domain:cli` lane:** regenerate
`sdui.manifest.json` at the pin; port
`packages/sdui-parser/src/{index,types,codegen}.ts` to the lockstep copy
so the marker reaches the tracked file; the ledger's 200 `a` / `div`
rows go stale (the `a` rows) or stay refused (the `div` rows, to be
rewritten to `box` as the ruling says).
- `semantic.tsx`'s comment ("none of these seven tags is in the curated
`PUBLIC_BLOCKS` contract, so there is no injected identifier") remains
literally true and its conclusion holds on two grounds now; not edited
(no registration change).

## Pending changesets re-read (round 2, head 6417e8d)

The `changeset-claim-re-read` bot lists 12 pending changesets naming
files this diff touches (13 in round 1, `6740` now being one this change
modifies). Each re-read paragraph by paragraph against head:

- `5905-componentinput-inputtype-tombstone.md` — still true:
`packages/sdui-parser/src/index.ts` still forwards exactly seven keys
per input (`name`, `type`, `of`, `required`, `enum`, `binding`,
`description`); this change's `tier` write sits at component level,
beside `type` / `namespace` / `isContainer`, and adds no per-input key.
- `5905-componentinput-retire-constraint-keys.md` — still true, same
seven-keys-per-input claim, same reason.
- `7493-componentinput-retire-label-defaultvalue-advanced.md` — still
true, same seven-keys-per-input claim; `min` / `max` / `step` /
`placeholder` / `label` / `defaultValue` / `advanced` still reach no
manifest.
- `6067-component-meta-derive-from-canonical.md` — still true: it
describes the pre-6067 shape of `Registry.ts` in the past tense; at head
`ComponentMeta` is still `CanonicalComponentMeta &
RegistryComponentMetaExtras`, and `RegistryComponentMetaExtras.tier` is
unchanged (`'public' | 'internal'`). The `'html'` value lives only on
the `PublicComponentConfig` projection.
- `componentinput-reexport-4972.md` — still true: `Registry.ts` still
re-exports `ComponentInput` from `@object-ui/types` (`export type {
ComponentInput } from '@object-ui/types'`).
- `default-children-retired-5051.md` — still true: none of the three
`ComponentMeta` declarations offers `defaultChildren`; this change adds
no `ComponentMeta` key.
- `6764-container-declaration-census.md` — still true as written:
`react-page.tsx` drops containers from the react scope and reads
`getPublicConfigs()`, and none of the 8 is in the CURATED public
contract. The seven sectioning tags now ride that read as html-tier
entries, stamped `tier: 'html'` and skipped, which leaves the claim's
operative words ("curated public contract") intact; not corrected.
- `9280-record-highlights-entry-icon-retired.md` — still true:
`gen-manifest.ts` still serialises registry `inputs` into
`sdui.manifest.json` and `sdui-intrinsics.d.ts` (the header now also
names the html tier's stamped entries; behaviour unchanged).
- `components-react-page-published-dts-text-5666.md` — still true:
`react-pages.md`'s injected-scope note and §Styling still say plain HTML
with inline `style`, not Tailwind; the guide's edited sentence quotes
the skip line and adds "and every html-tier entry", nothing about
styling.
- `page-source-tailwind-framing-5461.md` — still true: `react-page.tsx`
keeps both styling comments (the header note and the
`buildComponentScope` note); this change adds a comment inside the loop
and removes none.
- `page-source-tailwind-prose-retraction-5469.md` — still true:
`react-pages.md` §Styling wording is unchanged.
- `palette-canonical-discussion-5495.md` — still true:
`public-blocks.ts` still records `record:chatter` as the same block
"under a Salesforce-familiar name"; this change adds a header paragraph
and touches no roster entry.
- `6740-flex-is-container.md` — CORRECTED (prose-only): its paragraph
quotes the react-page skip line as `if (!tag || cfg.isContainer)
continue;`, which this PR changed; a dated note in the objectui#10533
form (`⚠️ **Dated note, 2026-09-27 — the skip line quoted above has
since gained a third arm — objectui#10735.**`) records the current line
and keeps the entry as the reading of that change. Frontmatter
byte-identical, md5 ce888ebde4729564f67bca69a7928743 before and after.
`check-changeset-overwrite` reports the modification (report-only, exit
0).

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Sep 28, 2026
…nes it holds for another parent record (objectui#10740) (objectstack-ai#10751)

Fixes objectstack-ai#10740
Clause-②: no

A component's internal state and its Save guard; no declared surface
moves. `@object-ui/plugin-form` publishes `.` only, and no export, type,
prop or registration changes. Dispatched by the `domain:ui` seat 2,
session `https://claude.ai/code/session_014mXUNuFomfj24w7s1pZzhN`
(`mode:subagent`), executing triage `5852239622`. Round 3 closes one
residual write path (R7) the contract review found; the Round 3 section
at the foot carries its head and evidence.

## What changed

- **`packages/plugin-form/src/LineItemsPanel.tsx`** (+67 / −4 against
base). The panel now records which parent its held `rows` / `original`
belong to: one `useState`, `rowsHeldFor`, written wherever the rows are
written — beside a load's commit (`setRowsHeldFor(parentId)` next to
`setRows` / `setOriginal` / `setDirty(false)`), inside the CURRENT
load's `catch` that fails while nothing is held (an updater that keeps a
value already held and otherwise adopts `parentId`, inside
`isCurrent()`), and in `onChange` for an edit made before any load has
settled (the same keep-or-adopt updater, `parentId` narrowed to a string
first). One predicate, `heldForAnotherParent = rowsHeldFor !== undefined
&& rowsHeldFor !== parentId`, is read at three sites: the Save button's
`disabled`, the first statement of `save` after its existing
`dataSource` / `parentId` / `childObject` guard (it returns before
`setSaving`, before any batch is built), and the render, where a
placeholder (`data-testid="line-items-held-for-another-parent"`) stands
in for the grid ahead of `LineItemsField`. `save`'s and `onChange`'s
dependency lists gain what they read (`heldForAnotherParent`,
`parentId`).
- Unchanged: the rows commit's three existing statements (`setRows` /
`setOriginal` / `setDirty(false)`) and the `loading` release
(objectui#10712's PR 2 surface), the `loadSeqRef` / `isCurrent()` error
rule from PR objectui#10738, `save`'s two writes to `error`, every other
dependency list, every hook call, prop, export and registration. The
commit block gained the `setRowsHeldFor(parentId)` line and the `catch`
was re-braced to add the adoption; the three commit statements
themselves did not move.
-
**`packages/plugin-form/src/LineItemsPanel.heldForAnotherParent-10740.test.tsx`**
(new, +389 / −0): nine rows through the real `SchemaRenderer` and
`record:line_items`, every `find` and `batchTransaction` a deferred
promise settled by hand.
- **`.changeset/10740-line-items-held-for-another-parent.md`** (new, +24
/ −0, `'@object-ui/plugin-form': patch`).

## H1 — the reproduction on base `5ad3b88861`, and its controls

A throwaway probe (deleted, never committed) through the real
`SchemaRenderer` and `record:line_items`, ids explicit. The column is
`label` (aria-label `Line`), the child object `po_line`, the
relationship field `po`. Readings at base, then at the current head
`854e0922cc` (whose only change since `ef16b93486` is prose: the
readings are the pin's, re-run green there):

| sequence | base `5ad3b88861` | head `854e0922cc` |
|:--|:--|:--|
| `p1` answers `l1`, edited to `p1 line edited`; the host re-renders
with `parentId: 'p2'`; `p2`'s load rejects `p2 load failed`; then Save |
banner `p2 load failed`; drawn lines `['p1 line edited']`, inputs
enabled; **Save enabled**; Save ⇒ `batchTransaction` ops `[{object:
'po_line', action: 'update', id: 'l1', data: {label: 'p1 line edited',
po: 'p2'}}]` (`find` 2 calls, `batchTransaction` 1) | banner `p2 load
failed`; drawn lines `[]`, no grid, the placeholder drawn; **Save
disabled**; no batch (`find` 2, `batchTransaction` 0) |
| **R7** (the round-3 route): mount `p1` with NO adapter (`load` returns
at `!dataSource`, the grid is drawn, `rowsHeldFor` stays undefined);
type `typed under p1`; the host moves to `p2`, still no adapter; the
adapter arrives and `p2`'s load fails; then Save | grid drawn with
`['typed under p1']`, Save enabled; Save ⇒ `[{object: 'po_line', action:
'create', data: {label: 'typed under p1', po: 'p2'}}]` — a p1-typed line
created under p2 | placeholder drawn, `[]`, **Save disabled**, no batch
|
| lit control: the first row, but `p2`'s load answers `l2` `p2 line` |
drawn `['p2 line']`, no banner, Save disabled (nothing dirty); edit `l2`
+ Save ⇒ `[{object: 'po_line', action: 'update', id: 'l2', data: {label:
'p2 line edited', po: 'p2'}}]` | identical |
| same-parent failed RE-load: `p1`'s edit held, a host re-render with
`limit: 200` re-runs `p1`'s load, which rejects `p1 reload failed` |
banner; drawn `['p1 line edited']`, inputs enabled; Save enabled; Save ⇒
`[{object: 'po_line', action: 'update', id: 'l1', data: {label: 'p1 line
edited', po: 'p1'}}]` | identical (the edits are kept under their own
parent) |
| the DECLINE path: `p1`'s edit held, a re-render with `parentId: 'p2'`
and a refused filter (`{note: {$regex: 'a.c'}}`); the load declines
before any fetch | malformed-filter notice drawn, no grid; **Save
enabled** over the held (off-screen) rows; Save ⇒ `[{object: 'po_line',
action: 'update', id: 'l1', data: {label: 'p1 line edited', po: 'p2'}}]`
(`find` 1 call: the load never ran) | Save disabled; no batch |

The first row is the card's reading, op for op. R7 and the DECLINE row
are two routes the card did not name: R7 is a line typed under a grid
drawn with no adapter, adopted by the first parent whose load later
fails; the DECLINE row reaches the guard through the load declining
before its `catch`. Both are closed by binding the owner to the rows
wherever the rows are written.

## H2 — the shape: refuse by `rowsHeldFor`; nothing is cleared

The triage offered two shapes, "clear `rows` / `original`" or "refuse
Save". This PR refuses, on a value written wherever the rows are
written, and clears nothing. Why, measured:

1. **The decline path.** The DECLINE row above: a swap to `p2` with a
refused filter (and, by the same code path, a lost `dataSource`)
declines the load before its `try`, so a clear in the `catch` leaves
`p1`'s held rows saveable under `p2`. The guard reads the rows' own
parent and closes this path too (pinned; red at base).
2. **One writer of the owner per writer of the rows.** `rowsHeldFor`
moves where `rows` move (the load's commit, `onChange`) and once more
where a CURRENT load's failure leaves the empty rows on screen, so the
two cannot disagree. This also covers the one-render window between the
host re-render that moves `parentId` and the effect that starts the new
load: `rows` are still `p1`'s, `rowsHeldFor` still says `p1`, Save is
off in that frame too. R7 is the case where this failed at the round-2
head: `onChange` moved the rows without moving `rowsHeldFor` while it
was unset, so a line typed under an adapter-less mount stayed ownerless
until the next failure adopted it. `onChange` now writes the owner too.
3. **The same-parent rule.** A transient failure on a refresh must not
discard the author's unsaved edits (the RE-load row, and the "RE-load of
the SAME parent" pin). Held rows are never cleared, so a swap `p1` →
`p2` (failed) → `p1` (failed) draws `p1`'s held edit again under `p1`
(pinned as a control, "a swap BACK to p1"). A clear on the `p2` failure
would have discarded that edit.
4. **Adoption before a settle.** With nothing held yet, the parent on
screen is adopted the moment the rows first take a value: an edit made
in an unsettled grid (`onChange`, R7's fix), or the empty rows a CURRENT
load's failure leaves on screen (the `catch`, inside `isCurrent()`).
Either way a line the panel then holds belongs to the parent it was
entered under, not to a parent the panel later moves to. Measured at
base: a first load for `p1` fails, a line is added, the panel moves to
`p2` whose load fails ⇒ the added line is drawn under `p2` with Save
enabled (the defect, as a `create`). Pinned; red at base. A superseded
failure adopts nothing (the `catch` is inside `isCurrent()`).
5. **What the refused state draws.** After a failed load, the failure's
banner (the adapter's message, as before) and a muted placeholder where
the grid would be; after a refused-filter decline, that filter's own
notice, as before (only Save moves on that route); after a lost-adapter
decline, the placeholder alone. No line, editable or otherwise. A first
load that fails with nothing held is unchanged: banner plus the empty
grid with its entry row (pinned as a control). A load for the current
parent that commits takes the grid back (pinned).

The function-level guard in `save` is the write contract's own check, on
the function every caller reaches, in the same spirit as the
`childObject` guard beside it. It is redundant on the UI path by design:
the button and the function read the same render's predicate, so no
click through the rendered UI reaches `save` while the button is off.
See A2 below.

## H3 — every path from the held rows to a write

1. **`save`** → `buildMasterDetailEditBatch(parentObject ?? '',
parentId, parentPatch, [{rows, original, childSchema, …}])` →
`runBatchTransaction`. Guarded at both readers: the button's `disabled`
and the function's first statement. The rollup `sumRows(rows, …)` is
computed inside the same function, behind the same guard.
2. **`onChange`** → `setRows(next)`, `setDirty(true)`, and the owner
adoption. While the grid is drawn, `rowsHeldFor` is the current parent —
set by the load that offered the grid, or, when the grid was offered
before any load settled, by this edit itself — so an edit belongs to the
parent on screen, never to a parent the panel later moves to. In the
refused state the grid is not drawn (ablation A3 re-opens exactly this
and the "no p1 line is drawn" rows go red).
3. **The load's commit** → `setRows` / `setOriginal` / `setDirty(false)`
/ `setRowsHeldFor(parentId)`: the writer that defines whose the rows are
on a successful load.
4. **`LineItemsField` (`GridField` in `@object-ui/fields`)**: `grep -c
useEffect` on `GridField.tsx` at this base = 0; every `emit` /
`onChange` call sits in a user handler (`setCellValue`, `addRow`, the
remove handler, the reorder handler), all routed through the panel's
`onChange` in (2). Nothing changes rows without user input, the reading
PR objectui#10650 made and this PR re-took.
5. **No values bubble up.** The panel takes `schema` only; the
`record:line_items` registration (`LineItemsPanelRenderer` inside
`ElementDataSourceGate`) passes nothing else, and the post-save `load()`
reads no rows. No `forwardRef` / `useImperativeHandle` / key handler;
`save` is referenced once, at `onClick={save}`.

So there is one write path (`save`), guarded twice, and one edit path
(`onChange`), which brands every row it writes with the parent on
screen. **R7 is closed:** a row can no longer reach a write bearing a
parent it was not entered under, whether it was typed before a load
settled or held from a previous parent — in the refused state the grid
is not drawn, and in every drawn state the owner is unset or equals
`parentId`, and the first edit sets it to `parentId`.

## Pins and ablations

`LineItemsPanel.heldForAnotherParent-10740.test.tsx`, nine rows. Base
and ablation legs ran on COMMITTED source (`ef16b93486`, panel blob
`5884928c7a`) under `os-verify-lock`; the one later commit,
`854e0922cc`, moves prose only (no code token, proof in the Round 3
section), and the pin is re-run green there. Each mutation went through
objectstack's `scripts/ablation-replace.mjs` in WRAP mode (anchor
declared to hit once, counts and blob hashes read back from disk,
restore spelled `git checkout HEAD --` on the absolute path and proven
by blob == HEAD and an empty `git diff HEAD`). Two whole-file base legs,
each swapped in by hash under a shell `trap` and restored the same way:
the card base blob `0c498ce007` (`held ?? parentId` occurrences 0), and
the round-2 head blob `47696a5819` (occurrences 1 — the fix before R7
was closed). No build is on the resolution path: the pin imports
`./index` relatively and every `@object-ui/*` specifier resolves to
`src` through the root vitest alias, so `ablation-dist-preflight` does
not apply.

| row | base `0c498ce007` | round-2 head `47696a5819` | head
`854e0922cc` | red under |
|:--|:--|:--|:--|:--|
| p1 edited, swap to p2 whose load FAILS: no p1 line drawn, Save off, no
batch | **red** | green | green | A1, A3 |
| the same through a load that DECLINES (refused filter): Save off,
nothing sent | **red** | green | green | A1 |
| a line added under a FIRST load that failed, then a swap to p2 whose
load fails: not drawn under p2, Save off | **red** | green | green | A1,
A3 |
| **R7**: a line typed under an ADAPTER-LESS mount on p1, a swap to p2
with no adapter, then the adapter arrives and p2's load fails: no line
drawn under p2, Save off, no batch | **red** | **red** | green | A1, A3,
A6 |
| control: a swap to p2 whose load SUCCEEDS replaces p1's lines; a save
after editing p2's line carries `l2` under `p2` and nothing of `l1` |
green | green | green | A4 |
| control: a RE-load of the SAME parent that fails keeps the held edit
drawn, editable, Save on; the save carries `l1` under `p1` | green |
green | green | — |
| after a refused state, a load for the CURRENT parent that commits
takes the grid back | **red** | green | green | A3, A4 |
| control: a swap BACK to p1 whose load fails again draws p1's held edit
again | green | green | green | — |
| control: a FIRST load that fails draws the banner and the empty grid,
as before | green | green | green | — |

- **Base leg, card base blob `0c498ce007`**: `Failed Tests 5` (the four
refusal rows plus the recovery row), 4 green. Restore proven (blob ==
HEAD `5884928c7a`, `git diff HEAD` empty).
- **Base leg, round-2 head blob `47696a5819`**: `Failed Tests 1` —
exactly the R7 row. This is the one the round-3 close fixes; every other
row was already green at the round-2 head. Restore proven.
- **A1**, the button's `|| heldForAnotherParent` removed: 4 failed (the
three original "Save off" rows and R7).
- **A2**, the `save` guard neutralised (`if (false &&
heldForAnotherParent) return;`): **0 failed, 9 passed.** As under H2:
with the button guard in place no UI click reaches `save`, so this hunk
is observable only together with A1. Kept as the write contract's own
guard, not claimed as pinned.
- **A3**, the render branch made unreachable (`false &&
heldForAnotherParent ?`): 4 failed (the two "not drawn" rows, R7 and the
recovery row).
- **A4**, `setRowsHeldFor(parentId)` deleted from the load commit: 2
failed — the "swap to p2 SUCCEEDS" control and the recovery row, both at
`expected [] to deeply equal ['p2 line']`: with the commit no longer
branding the rows, `rowsHeldFor` stays at the value the p1 edit adopted,
so p2's own freshly loaded lines are refused behind the placeholder.
- **A5**, the `catch` failure-adoption deleted: **0 failed, 9 passed.**
Since Round 3, `onChange` also adopts, so every row whose owner the
`catch` used to set now has it set by the typed edit (or is an empty
grid, never saveable). The `catch` adoption is retained as the
documented adopt-on-failure behavior; like A2 it is kept and not
independently pinned. (At the round-2 head, before `onChange` adopted,
A5 reddened the "line added under a FIRST load that failed" row.) Its
one remaining observable effect is the B5 Acceptance note below.
- **A6**, the `onChange` owner adoption deleted (`setRowsHeldFor((held)
=> held ?? owner);`): **1 failed — exactly the R7 row.** This is the
ablation of the round-3 close.
- Each ablation leg printed `ok mutation landed: anchor 1 to 0` with the
blob change, and `ok restored: blob == HEAD (5884928…) and git diff
HEAD is empty`; the tree was clean before and after (`git status
--short` empty).

## Gates at head `854e0922cc`

Locked runs (`os-verify-lock`, `VERDICT command-exit 0` on each):
- `turbo run build --filter='@object-ui/plugin-form^...'
--concurrency=2`: `Tasks: 11 successful, 11 total`.
- `pnpm --filter @object-ui/plugin-form run type-check`: exit 0 with
`tsc --noEmit && tsc -p tsconfig.test.json` echoed; `--listFilesOnly`
counts the pin once in the `tsconfig.test.json` program and
`LineItemsPanel.tsx` once in the build program.
- `pnpm --filter @object-ui/plugin-form build`: exit 0, `[unplugin:dts]
Declaration files built`, `dist/index.js` emitted — the dts plugin fails
on any type error and did not. The three built artifacts are
byte-identical before and after the wording commit: `dist/index.js`
sha256 `9e08b5589db5…`, `dist/index.d.ts` `08fe75fa41b4…`,
`dist/index.umd.cjs` `19fddff1b34f…`, built at `ef16b93486` and again at
`854e0922cc`.
- the pin: `Tests 9 passed (9)`. The seven existing `LineItemsPanel*`
pins plus `recordFormsErrorClears-10682.test.tsx` at `ef16b93486`: `Test
Files 8 passed (8)`, `Tests 102 passed (102)` (the later commit moves no
code token).
- the whole package, `pnpm exec vitest run --maxWorkers=2
packages/plugin-form/`, at `7352890ae4` (round 1): `Test Files 131
passed (131)`, `Tests 1507 passed | 1 skipped (1508)`. The later commits
touch only `LineItemsPanel.tsx`, its pin and the changeset, covered by
the pin and sibling runs above.

Light gates, each exit 0 at `854e0922cc`: `check:new-line-citations`
(`VERDICT new-cross-file-line-citations: 0 new citation(s)`),
`check:control-bytes`; and at `ef16b93486` (no source token moved
since): `check:test-path-roots`, `check:vi-mock-specifiers`,
`check:vi-mock-inherit`, `check:vi-mock-override-shape`,
`check:shell-escape-residue`, `check:i18n-keys`,
`check:handler-key-reads`, `check:element-data-source-declaration`,
`check:self-import`, `check:unreferenced-sources`,
`type-check:coverage`, `lint:coverage`, `check:phantom-deps`,
`check:published-tsconfig-exclude`, `check:metadata-write-doors`.
Changeset gates at `854e0922cc`: `check-changeset-presence` (`2 source
file(s) of 1 released package(s) changed, and this change declares 1
changeset(s)`), `check-changeset-claims` (`No pending changeset names a
file this change touches`), `check-changeset-overwrite` (`No
pre-existing changeset was modified or deleted`),
`check-pending-changeset-literals`; `check-changeset-no-major` and
`check-changeset-fixed` at `ef16b93486`. `check-governed-merges.mjs
--test` over the three paths: NOT governed (0 of 3 paths hit the
register).

**eslint, narrowed to the 2 changed ts/tsx files** (`eslint
--no-inline-config --format json`): exit 0, the JSON counts 2 files, 0
errors. Narrowing evidence: the population is `eslint.config.js`'s
`files: ['**/*.{ts,tsx}']`; `--print-config` on `LineItemsPanel.tsx`
shows `parserOptions: {}` and no `project` / `projectService`, so no
rule is type-aware and this diff cannot move the verdict of a file it
does not touch. `LineItemsPanel.tsx` carries 18 warnings, the same count
and rule multiset as its base blob (14 `no-explicit-any`, 2
`set-state-in-effect`, 2 `exhaustive-deps`); the pin carries 12
`no-explicit-any`.

**NOT MEASURED locally, declared to CI**: the repo-wide `pnpm lint` and
the rest of the farm.

## Serial

At claim time no open PR touched `LineItemsPanel.tsx` (claim
`5852470959`). Before the round-1 pushes `origin/main` was `01700dcd7d`
(four commits past the base); before the round-4 push it is
`704e05b09d`, nine commits past the base. `git merge-tree --write-tree`
against it exits 0 with a clean tree (`be8cdeefbd`); at the round-5
review `origin/main` is `f308a655b8` (objectstack-ai#10708, eleven commits past the
base), against which the tree is `01802fbba7`, also clean. None of the
eleven touches a file this branch touches (objectstack-ai#10708 touched
`skills/objectui/` only); objectstack-ai#10752 (`704e05b09d`) touched
`packages/plugin-form` elsewhere (six form arms,
`recordInvalidation.ts`, `formArmsInvalidation-10715.test.tsx`, and the
header comment of the sibling pin
`recordFormsErrorClears-10682.test.tsx`), and objectstack-ai#10749 moved
`pnpm-lock.yaml`. objectui#10712's PR 2 is serial behind this PR, as the
claim says.

## H5 — pending changesets

`git grep` over `.changeset/` for `LineItemsPanel`, `line-items`, `line
items`: 14 pending files. The sentences that describe this panel's load,
rows or save were re-read against this change:
`10682-form-error-clears-2.md` (only the current load writes the banner;
a superseded load neither raises nor clears it — still true),
`10631-master-detail-save-in-flight.md` (the panel's grid is disabled
while its own save is in flight — still true),
`6194-line-items-row-fetch-decline.md` (the `childObject` declines and
`save`'s guard — still true), `6188`, `9050`, `9925`, `10163`, `8221`,
`9333` (each about another aspect of the panel — untouched). None
describes what a failed or declined load for another parent leaves on
screen, so no sentence is falsified and no dated note is needed; the new
changeset declares this change.

## objectui#10712, measured, not widened

The same probe took the two sequences objectui#10712's release comment
carries for its PR 2, at base and at this head:
- a late `p1` answer landing after `p2` committed: base draws `['p1
line']` under `p2`; head draws the placeholder (`rowsHeldFor` moved to
`p1` with the superseded rows, so they are refused), Save off. The
current answer, `p2`'s lines, is not kept: the run guard on the rows
commit is still that PR's to add.
- a save started on `p1` that lands after the swap to `p2`: its captured
`load` issues `find` with `po: 'p1'`; base draws `['p1 line edited']`
under `p2`; head draws the placeholder. The same partial mitigation, the
same remaining item.
objectui#10712 remains open; nothing here is scoped to it.

## Round 3

The round-2 head `11bf099f11` FAILED the contract review (`5852845813`)
on R7 — a line typed into a grid drawn with no adapter, adopted by the
first parent whose load later failed, then saved under it — and on four
wording items. Every other round-2 claim was reproduced by the review.

- **Round-3 range `11bf099f11..ef16b93`**, name-status / numstat: `M
packages/plugin-form/src/LineItemsPanel.tsx` (+34 / −14), `M
packages/plugin-form/src/LineItemsPanel.heldForAnotherParent-10740.test.tsx`
(+42 / −0), `M .changeset/10740-line-items-held-for-another-parent.md`
(+11 / −10). Two commits: `23f6bbc0` closed R7 in `onChange` and fixed
the wording; `ef16b93486` gave the `onChange` owner updater a type-safe
spelling (see Deviations).
- **The close.** `onChange` now writes the rows' owner beside the rows
when nothing is held yet — the seat's ruling permits the `onChange` form
as "strictly safer" because it covers any way a grid can be offered
before a load settles (the adapter-less decline, and a superseded run
releasing `loading`, objectui#10712's surface), not only the two the
ruling enumerated. `parentId` is narrowed in an `if (parentId)` block
before the updater closes over it.
- **The pin.** The new R7 row is red on the card base blob AND on the
round-2 head blob `47696a5819`, green at head, and reddened by A6 (the
`onChange` owner adoption deleted). Table above.
- **Round-3 wording follow-up, `854e0922cc`** (prose and comment only;
the round-3 contract review `5853196779` passed the code and failed the
published text). One commit, `M
.changeset/10740-line-items-held-for-another-parent.md` (+3 / −2), `M
packages/plugin-form/src/LineItemsPanel.tsx` (+4 / −4). The changeset
parenthetical now reads "(after a failed load a placeholder stands where
the grid would be, under the failure's banner; after a refused-filter
decline that filter's own notice stands there, as before; after a
lost-adapter decline the placeholder stands alone)"; its frontmatter is
byte-identical (md5 of the three frontmatter lines
`21fc281303c02040481bc4b368c13334` before and after). The `onChange`
comment's "The only grid offered before a load has settled…" became "The
grid this was found on is the one drawn when the load declined for want
of an adapter", which stays true against the superseded-release window
(the empty grid drawn while a later read is pending). No code token
moved: the commit's `.tsx` hunk has zero non-comment lines (`git diff
ef16b93 854e092 -- packages/plugin-form/src/LineItemsPanel.tsx`,
filtered to changed lines that do not start with `//`, is empty);
type-check and the dts build exit 0; and the three `dist/` artifacts
hash-equal before and after (Gates above).
- **Gates.** The plugin-form dependency-closure build, `type-check`
(both `tsc` programs) and `build` (the dts plugin) all exit 0 at
`854e0922cc`; the pin (9) is green there; the seven sibling pins plus
`recordFormsErrorClears-10682` (8 files / 102) and the light gates are
green at `ef16b93486`; the changeset gates, `check:control-bytes` and
`check:new-line-citations` are green at `854e0922cc`, listed above.

## Acceptance notes

- **The function-level guard is unpinned.** A2 moves no row, for the
structural reason under H2 and in the pin's header. Kept as the write
contract's own check; dropping it is a one-line change if the seat
prefers pins-only code.
- **The `catch` failure-adoption is unpinned since Round 3.** A5 now
moves no row: the `onChange` adoption covers the same typed-line rows,
and an empty grid left by a failed load is never saveable. Kept as the
documented adopt-on-failure behavior, parallel to A2.
- **B5.** After a FIRST load that fails with nothing typed, a swap to
another parent whose load also fails draws the placeholder, not the
empty grid (base drew the empty editable grid); the catch adoption's one
observable effect now that `onChange` adopts. Unpinned.
- **The refused state's placeholder** is hard-coded English, like this
panel's other placeholders (`Loading…`, `Save the record first to add
line items.`, the `childObject` hint); only the malformed-filter state
goes through `createSafeTranslation`. Observation, not filed.
- **A superseded save's failure** is still written unguarded (PR
objectui#10738's note); not re-measured here.
- **A first load that fails** still draws an empty editable grid under
the banner, as before this card; a line typed there now belongs to that
parent and stays with it (H2 item 4).
- No class (a), (b) or (c) finding beyond the objectui#10712 rows its
release comment already carries.

## Deviations

- **Attribution.** Commit trailers are the dispatch's model-free pair,
and this body ends with the role file's session-URL footer. The harness
attribution reminder asked for other lines.
- **The seat's prescribed close needed a type-safe spelling.** The
ruling's line `setRowsHeldFor((held) => held ?? parentId)` (and
equivalently the `onChange` form) does not type-check: in `onChange`,
`parentId` is `string | null | undefined` (`RecordContextValue.recordId`
is `string | null | undefined`) with no `load` guard above it to narrow
it, and the setter's state is `string | undefined`, so the updater's
`held ?? parentId` widens to include `null` — CI job 108556174339 red at
`src/LineItemsPanel.tsx` `error TS2345` on commit `23f6bbc0`, breaking
the plugin-form build and the six gates behind it. Fixed in `ef16b93486`
by capturing the narrowed value: `if (parentId) { const owner =
parentId; setRowsHeldFor((held) => held ?? owner); }`. Semantics
unchanged (a grid is only offered with a parent bound). The `catch`'s
copy of the line type-checks because `load`'s early `if (!dataSource ||
!parentId) return;` narrows `parentId` to a string before it.
- **The ablation legs run from inside the worktree**, because
`ablation-replace` resolves the repository from its cwd; run through the
lock wrapper's default cwd it exits 2 at its own prerequisite (nothing
written, nothing measured).
- **A removed pin row (Round 1).** The pin's first commit carried a
"defence in depth" row that cleared the Save button's `disabled` on the
DOM node and clicked. React filters a click by the fiber's `disabled`
prop, not the DOM property, so the click never reached `save` and the
row passed vacuously (A2 showed it). It was removed in `11bf099f11`
rather than kept as a false pin; the pin header states what it would
have pinned and why nothing can.
- **Round-4 body corrections (published text only).** The round-3 review
found four false evidence statements in the returned body and two
overstatements; all are replaced here with the record's text: the pin
table's "red under" column (A4 reddens only the p2-SUCCEEDS control and
the recovery row), the A4 bullet's cause, the Serial paragraph (main
re-read before the push, the merge-tree re-run at the head), the round
numbering (`11bf099f11` was round 2; `23f6bbc0` and `ef16b93486` are
round 3), H3's closing and H2 item 2.

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

---------

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