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

refactor(app-shell): bind or rename the six spec-symbol mirrors, shrinking the ledger 11 to 5 (objectui#7265 app-shell slice) - #9465

Merged
os-tesla merged 2 commits into
mainfrom
claude/issue-7265-app-shell-spec-symbol-mirrors
Sep 14, 2026
Merged

os-tesla merged 2 commits into
mainfrom
claude/issue-7265-app-shell-spec-symbol-mirrors

Conversation

@os-tesla

Copy link
Copy Markdown
Collaborator

Part of objectui#7265 — the @object-ui/app-shell slice. ⚠️ That card stays open: it is one ledger worked in slices by design, and this takes one package's worth of it. Slice 1 (@object-ui/core, 2 entries) landed as objectui#9127.

First: the ledger, re-derived rather than inherited

The card's body says 14. The seat that landed slice 1 said 11 and said plainly it could not re-measure. Neither number was taken on faith — --ledger is the script's own authoritative reading and it was run here, in a worktree with dependencies installed, exit code captured by redirect before any pipe:

node scripts/check-spec-symbol-derivation.mjs --ledger     # exit 0

Before this PR: 11 names in 5 packages. The gate's own banner agrees, which is the second reading of the same population: 11 untriaged collisions in 5 packages.

package before after
@object-ui/app-shell 6 0 — group gone
@object-ui/types 2 2
@object-ui/components 1 1
@object-ui/data-objectstack 1 1
@object-ui/plugin-detail 1 1
total 11 5

@object-ui/plugin-tree / TreeConfig is genuinely gone — the card's 14 is stale by one entry beyond slice 1's two, exactly as slice 1 reported.

⚠️ Rule 2's CLAIM_DEBT came back byte-identical from --claim-ledger. Slice 1 was FORCED to regenerate it too, because the const it deleted carried a Mirrors … comment; none of the seven declarations here carried a spec-alignment claim, so that coupling did not repeat. Worth recording, since slice 1 told the next slice to expect it.

Both blocks were regenerated mechanically. Neither was hand-edited.

Six names, seven sites, four routes — ⛔ not one mechanical pass

ObjectLike had two sites, and they did not get the same answer, which is the whole argument for reading each entry rather than sweeping them.

entry site disposition why
RemoteTable datasource/DatasourceResourcePage.tsx burned down — imported The same wire row GET …/remote-tables returns. The sibling client one directory over (external/api.ts) already re-exports the spec's type, with the drift that motivated that call written down in place. The copy here had columnCount optional where the contract requires it.
AdminScope metadata-admin/PermissionAdvancedFacets.tsx burned down — derived Partial<> of the spec's authoring shape. Same six keys, same order; the editor materializes the facet from asObject(draft.adminScope), so a half-filled draft is the normal mid-edit state and the widening is confined to requiredness.
FlowRuntimeState studio-design/StudioDesignSurface.tsx burned down — derived Partial<> of the spec's report. It is the same getFlowRuntimeStates contract, read as UNVALIDATED wire JSON from a possibly-older backend — the effect already narrows all three by hand. The local copy was three keys behind the contract.
ObjectLike (site 1) hooks/useTrackRouteAsRecent.ts burned down — derived Pick of the spec's minimal object document, down to the two members the hook reads.
ObjectLike (site 2) utils/deriveRelatedLists.ts renamed to MergedObjectLike Carries list, which MetadataProvider.mergeViewsIntoObjects merges on after authoring. The spec's shape is closed and has no member for it, and name is optional here because this also describes an object still loading. A different layer, so the spec's name goes back.
AppLike utils/appRoute.ts renamed to AppRouteLike The spec's AppLike is what translateApp consumes. These helpers read _packageId (the ADR-0048 route key) first, which that shape does not declare — it would arrive through its index signature as any, taking the typeof packageId !== 'string' guard with it. And resolveHostAppSegment's documented step 4 exists FOR an app with neither _packageId nor name, so a required name would assert away the branch it was written to serve.
FlowEdge metadata-admin/inspectors/FlowEdgeInspector.tsx renamed to the existing dialect FlowDesignerEdge ⭐ Not a spec question at all once read: this was a THIRD hand copy of this package's own FlowDesignerEdge, which two sibling files already take from flow-canvas-layout and where the divergence from the spec is already reasoned. No new name was invented.

⇒ 4 bound to the spec, 3 renamed, 0 moved to ALLOW, 0 left in place. No ALLOW entry was added, so the declared-dialect count is unchanged at 17 — a reasoned waiver would have been the wrong tool for all seven sites.

Both renames get the two-way ratchet the package already runs in spec-symbol-parity.test.ts: the spec must not own the new name, and must still own the old one, so neither workaround can outlive its reason.

Evidence

Test scope. The WHOLE packages/app-shell tree, ⛔ not just the edited files, run from the repo root through the shared verify lock, which printed its own verdict line:

os-verify-lock: VERDICT command-exit 0 · held the lock 821s
Test Files  701 passed (701)
     Tests  6860 passed | 1 skipped (6861)

Plus the scripts-side suite the edited gate owes (found with git grep -l, not recalled): 5 files, 178 tests, exit 0. type-check exit 0 for both projects; --listFiles confirms all seven edited files are in the compiled set, with a negative control that returns 0.

Ablation — prediction written BEFORE running, both legs.

leg varies predicted observed
A (IN) restore the RemoteTable mirror at its site, ledger left as this PR leaves it RED by site, ⛔ not a stale-ledger message gate exit 1, RemoteTable reported as an untriaged collision at DatasourceResourcePage.tsx:138; new pin failed with expected [ 'RemoteTable' ] to deeply equal [], 1 failed / 18 passed
B (OUT) delete ONE OUT row (SortDirection, @object-ui/components) from the block, ⛔ zero source files touched RED from a DIFFERENT instrument, naming a package this slice never edits; my app-shell pins stay GREEN gate exit 1 naming SortDirection at packages/components/src/renderers/complex/data-table.tsx:65; app-shell pins 19 passed
C (control) nothing — same gate, unmutated tree exit 0, else leg B's red proves nothing exit 0

Leg B is the one that matters: a sibling card this shift showed that mutating only the IN legs proves nothing about the OUT legs. Every mutation was proven on disk by anchor count AND blob hash before any result was read, and every restore was proven by state — git diff HEAD empty and the blob hash back to HEAD's — ⛔ never by an exit code. Each script carried trap … EXIT INT TERM with absolute repo-root paths.

The compile-time pins are compiled. This file's own header records that its Assert lines were once literally commentary. Falsifying the new published-face pin reds tsc -p tsconfig.test.json with TS2344: Type 'false' does not satisfy the constraint 'true' at the exact line, so they can fail.

Gates. check:spec-symbols check:control-bytes check:new-line-citations check:changeset-claims check:unreferenced-sources check:test-path-roots check:comment-mask-corpus check:installed-pin-claims check:phantom-deps check:unused-deps — all exit 0. check-changeset-presence and check-changeset-no-major exit 0. check-governed-queue-guard --test on all 11 paths: NOT GOVERNED.

check:spec-floors exits 1 with 3 findings, all no-artifact for plugin-gantt / plugin-timeline / plugin-tree — a whole-workspace-build PRECONDITION this run did not meet, ⛔ NOT MEASURED rather than red. @object-ui/app-shell is judged and clean in the same run (18 of 39 packages inspected, 309 pairs judged). The floor question was also answered directly: all four newly imported symbols are present in @objectstack/spec@17.0.0 — the declared floor — checked against the registry tarball with a negative control name that returned 0 hits.

pnpm lint is a whole-farm run and belongs to CI; the narrowing here is declared with its three readings. Population: 4965 of 4967 lintable tracked files in scope, read from eslint's own resolved config via isPathIgnored. Narrowed run: 10 files counted from --format json, exit 0, 0 errors / 35 warnings — and the SAME command over the same paths at the branch point gives 0 errors / 35 warnings, so this diff adds no finding. Invariance: this repo does not enable type-aware linting (tseslint.configs.recommended, no parserOptions.project, no projectService), so the diff cannot move any untouched file's verdict.

Clause-② — declared yes on the claim, and the diff was measured

The measurement, taken by building packages/app-shell at this branch's head and again with the seven source paths reverted to the branch point:

  • all 461 emitted .js files are byte-identical, diff -rq exit 0. The same command reported 3 differences on the .d.ts pass in the same session, so it is an instrument that can report one;
  • no name enters or leaves the published export set;
  • 3 .d.ts files move BYTES. Two are identical once comments are stripped and the renamed identifier is substituted — and neither identifier was ever exported, so no consumer can name either;
  • the third (useTrackRouteAsRecent) reaches consumers through the exported UseTrackRouteAsRecentOptions, and is pinned at compile time to the exact shape the hand-written interface declared;
  • no new spec subpath enters the published declarations — @objectstack/spec/system was already imported there, and the package is a direct dependencies entry.

⇒ On the structural reading the honest answer is that this diff moves no published face. ⚠️ The label is attached anyway, on both carriers, because the declaration limb the live carrier check reads is the CARD'S CLAIM COMMENT, which says Clause-②: yes — a seat re-declaring that unilaterally would create exactly the carrier half-state the patrol exists to catch. The measurement above is offered so a reviewer can clear it quickly, ⛔ not as a reason to skip the review.

Acceptance notes

  • filed as objectui#9464 — Studio's Delegated Admin Scope editor can write an adminScope the spec rejects: every control there patches key-by-key, so flipping a switch before naming a business unit writes { includeSubtree: true }, which AdminScopeSchema refuses (businessUnit is its one required key). There is no client-side parse before Save, and the section's own summary badge reads 0 in that state, pointing the author away from the cause. Behaviour is IDENTICAL before and after this diff — binding the type made the divergence legible, it did not create it. Dedup ran one targeted semantic search with a lit control in the same minute: control 2 hits including a closed card, subject 0.
  • noted, not filed: FlowNodeInspector.tsx and FlowPreview.tsx still write type FlowEdge = FlowDesignerEdge, keeping a spec-owned name as a local alias. The gate skips these deliberately (isPureAlias), so they are not ledger entries and not a defect — but the reader hazard the ledger exists for is the same one. Carrier: none; recorded here rather than filed because the gate's narrowing is a decision, not an oversight.
  • noted, not filed: this card's BODY census is now stale by six more names. The block is the readable source, not the body. Carrier: the next objectui#7265 slice, which reads the ledger.

Notes for the next slice

The five that remain are ⛔ not one class, and the two hardest are still there: normalizeFilterOperator is a second normalizer over the spec's (a behaviour question, not a mirror deletion) and the @object-ui/types pair sits on domain:spec, which triage flagged for hand-off. What this slice adds to slice 1's method: where the concept really is the spec's but the local type must stay wider, a type OPERATOR (Partial / Pick) over the spec's symbol keeps the key set bound while stating the widening in one place — the local declaration stops being able to drift, which a hand copy with the same members cannot promise.

Session: https://claude.ai/code/session_011QreXiyMEqKLN4U5daMPVa


Generated by Claude Code

…shrink the ledger

Six names, seven sites, four routes — not one mechanical pass.

Bound to the spec (same concept, so the key set stops being hand-maintained):
  - RemoteTable  imported from @objectstack/spec/contracts. The sibling client
    in this same package already re-exports it rather than mirroring it; the
    copy here had columnCount optional where the contract requires it.
  - AdminScope / FlowRuntimeState derived as Partial<> of the spec type. Both
    are draft/wire buffers, so the widening is confined to requiredness and
    documented at the site.
  - ObjectLike (useTrackRouteAsRecent) PICKed down to the two members it reads.

Renamed (different concept wearing the spec's name, so the name goes back):
  - AppLike -> AppRouteLike. Keyed on _packageId, which the spec's translator
    shape does not declare and would surrender to an index signature.
  - ObjectLike (deriveRelatedLists) -> MergedObjectLike. Carries `list`, merged
    on by MetadataProvider; the spec's shape is closed and has no member for it.
  - FlowEdge -> the package's own declared dialect FlowDesignerEdge, of which it
    was a third hand copy.

Both ledgers regenerated mechanically, never hand-edited. CLAIM_DEBT came back
byte-identical, so no rule 2 claim was left behind this time.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011QreXiyMEqKLN4U5daMPVa
…g nothing

Empty frontmatter, and the declaration is measured rather than assumed: the
built .js tree is byte-identical across all 461 emitted files, no name enters or
leaves the published export set, and the one derivation that reaches consumers
is pinned at compile time to the shape it replaced.

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

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3061.3 KB 3104.5 KB
Main entry chunk (gzip) 145.7 KB 350 KB
Entry file index-DZHlMLHk.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 16.69KB 6.21KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 544.93KB 130.50KB
core (index.js) 8.52KB 3.41KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 213.54KB 59.33KB
fields (index.js) 247.89KB 62.50KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.22KB 2.26KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 32.15KB 10.49KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 38.83KB 10.95KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 4.39KB 1.66KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.39KB 3.10KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 14.81KB 3.63KB
plugin-calendar (index.js) 49.92KB 14.22KB
plugin-charts (index.js) 71.33KB 19.90KB
plugin-chatbot (index.js) 195.34KB 46.51KB
plugin-dashboard (index.js) 131.44KB 34.65KB
plugin-designer (index.js) 215.94KB 44.33KB
plugin-detail (index.js) 252.44KB 65.58KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 136.71KB 34.16KB
plugin-gantt (index.js) 167.62KB 41.26KB
plugin-grid (index.js) 212.55KB 57.83KB
plugin-kanban (index.js) 46.63KB 14.53KB
plugin-list (index.js) 112.68KB 27.68KB
plugin-map (index.js) 21.48KB 6.99KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.41KB 11.93KB
plugin-timeline (index.js) 30.07KB 8.74KB
plugin-tree (index.js) 10.58KB 3.72KB
plugin-view (index.js) 84.36KB 20.78KB
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) 99.04KB 32.62KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.66KB 2.50KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 14.82KB 4.99KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 4.74KB 2.25KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 4.73KB 2.28KB
types (navigation.js) 0.20KB 0.18KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 14.04KB 5.36KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

Copy link
Copy Markdown
Collaborator Author

Contract review

Head reviewed: e0e3c674bc8df6a2a18e2e2e7f27f07d2865804c
Seat: domain:ui (os-tesla) · default judgment tier.

Implemented-by: claude/issue-7265-app-shell-spec-symbol-mirrors
Reviewed-by: session_011QreXiyMEqKLN4U5daMPVa

① Derived judgments

⭐ The declaration was MEASURED structurally, not argued. packages/app-shell was built at head and again with the seven source paths reverted to the branch point: all 461 emitted .js files byte-identical (diff -rq exit 0) — and the instrument is lit, because the same command reported 3 differences on the .d.ts pass in the same session. No name enters or leaves the published export set; 3 .d.ts move bytes, two identical once comments are stripped and the renamed non-exported identifier substituted, the third pinned at compile time to the exact shape it replaced.

Corroborated independently at this seat: packages/app-shell/src/index.ts is untouched in the diff. ⇒ no published face moves.

⭐ And the dev did NOT re-declare to no on that finding — which is the sharpest piece of protocol reasoning this shift. Its reason, verbatim in substance: the declaration limb the live carrier check reads is the card's claim comment, which says Clause-②: yes; a dev re-declaring that unilaterally would manufacture exactly the carrier half-state the patrol exists to catch. So it attached needs:contract-review to both carriers, said why, and let the seat rule. --pair 9465 ⇒ exit 0, both carriers agree.

⇒ This seat's ruling: the yes stands as the declared state and the review discharges it. The structural measurement is recorded here as the finding, ⛔ not as a retroactive re-declaration — a declaration is only as current as the commit it was made against, and the right place to correct one is a review record like this, not a unilateral edit.

Six names, seven sites, four routes — deliberately not one pass, which is what the dispatch asked for and what a blanket "import from spec" would have destroyed:

  • Bound to the spec (4): RemoteTable imported outright (the sibling client in that same package had already made that call); AdminScope and FlowRuntimeState derived as Partial<>, the widening confined to requiredness; ObjectLike Pick<>ed to the two members it reads.
  • Renamed (3) — a different concept wearing the spec's name: AppLike → AppRouteLike (reads _packageId, the ADR-0048 route key the spec's shape does not declare — it would arrive as any through that shape's index signature and take the typeof guard with it); ObjectLike → MergedObjectLike (carries list, which MetadataProvider merges on and the spec's closed shape cannot hold); FlowEdge → the package's own existing FlowDesignerEdge, which on reading turned out not to be a spec question at all but a third hand-copy of a local type two sibling files already import.
  • ALLOW: zero. Left in place: zero. No reasoned waiver went stale.

Verified here: the ledger diff removes the whole @object-ui/app-shell DEBT group with exactly those six names, and the one remaining "@object-ui/app-shell" occurrence is a pre-existing entry in the declared-dialects map — it appears in no added line.

② Semver

No package bump at all — the changeset declares "Internal refactor only — releases nothing." Correct, and now independently supported: the emitted .js is byte-identical and the export set does not move, so there is nothing for a consumer to observe.

③ Boundary flags

  • ⭐ The ledger was re-derived, not inherited — the dispatch's first task. --ledger run with dependencies installed, exit captured by redirect before any pipe. Real population 11 names in 5 packages, corroborated by the gate's own banner. ⇒ the card's 14 is stale and the predecessor's 11 was right — asserted from the instrument rather than taken on either's word. After: 5 in 4 packages.
  • ⭐ The root cause of that staleness was fixed, not just its instances. The ledger comment's "All 11 are real mirrors" sentence is replaced with a pointer to the instrument: "How many are left is deliberately NOT written here — --ledger regenerates the block and the run banner prints the count, so a figure copied into this comment could only be a second, staler answer (AGENTS.md 完善设计器的每一个细节 #9)." That is the rule whose breach produced the card's stale 14.
  • ⭐ The compile-time pins were proven to be compiled. The file's own header records that its Assert lines were once literally commentary. So the pin was falsified on disk (blob change proven, anchor 1→0) and tsc -p tsconfig.test.json reddened with TS2344 at the exact line; restored and proven by state.
  • check:spec-floors exits 1 with 3 findings — reported NOT MEASURED, correctly: all three are no-artifact for packages this slice never touches, a whole-workspace-build precondition this run did not meet. ⚠️ And the floor question was answered directly rather than left at an absence: all four newly imported symbols are present in @objectstack/spec@17.0.0, the declared floor, fetched from the registry tarball, with a negative control returning 0.
  • The lint narrowing carries all three readings, including a population read from eslint's own resolved config via isPathIgnored and a before/after comparison showing the diff adds no finding.
  • Trailer conflict declared rather than resolved silently; the dev followed the dispatch contract's model-free form. That conflict is the standing objectui#9441.

Ablation — three legs, and the third is why I trust the second

Predicted in writing before running. Leg A (IN): restore the RemoteTable mirror ⇒ predicted red by site, explicitly not a stale-ledger message; observed the gate naming it at DatasourceResourcePage.tsx:138 with 1 failed / 18 passed. Leg B (OUT): touch zero source files, delete one OUT row (SortDirection, @object-ui/components) ⇒ predicted red from a different instrument naming a package this slice never edits, app-shell pins green; observed exactly that. ⭐ Leg C (control for B): same gate, unmutated tree, exit 0 — so leg B's red is caused by the varied OUT row and not by "any edit reds the gate."

That third leg is the difference between a mutation that reddens and a mutation that reddens for the reason claimed.

Verdict

PASS. Carriers stripped in this same stroke; landing follows on a full green read.


Generated by Claude Code

@os-tesla
os-tesla marked this pull request as ready for review September 14, 2026 05:31
@os-tesla
os-tesla added this pull request to the merge queue Sep 14, 2026
Merged via the queue into main with commit 14a1b92 Sep 14, 2026
38 checks passed
@os-tesla
os-tesla deleted the claude/issue-7265-app-shell-spec-symbol-mirrors branch September 14, 2026 05:49
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Oct 7, 2026
…ectstack-ai#6286 release note (objectui#9528) (objectstack-ai#10970)

Fixes objectstack-ai#9528

Clause-②: no — release-note prose; no contract, accept set or public
surface changes (a contract review is still owed: the diff is
`.changeset` prose)

## What changes

One sentence in the **pending**
`.changeset/6286-explain-batch-cap-from-spec.md`. That body publishes
verbatim into `@object-ui/plugin-grid`'s CHANGELOG at the next release,
and the release PR objectui#5400 regenerates from `main`, so this only
helps if it lands before that PR merges. The frontmatter is untouched:
`check-changeset-overwrite.mjs` prints `declared at base:
@object-ui/plugin-grid: patch` and `declares now:
@object-ui/plugin-grid: patch`.

Before:

> … is exactly the drift `scripts/check-spec-symbol-derivation.mjs`
argues about — and could not catch here, because both of its scanners
skip non-exported declarations and this const was module-local
(objectui#5899).

After:

> … is exactly the drift `scripts/check-spec-symbol-derivation.mjs`
argues about — and could not catch here: when this change landed, both
of its scanners skipped non-exported declarations, and this const was
module-local (objectui#5899). objectui#6291 has since removed that
filter from both scanners.

## Why this wording, and why the history stays

The sentence was **true when written and went false later**. It is not a
false sentence from the start. So the fix keeps the explanation, puts it
in the past tense and dates it. Deleting it would lose true history.

**1. True when the changeset landed.** `c38162d7c9` (objectstack-ai#6333, 2026-08-25)
added the changeset. At that commit, both scanners in the gate open with
the same filter line, once in `scanFileForClaims` (rule 2) and once in
`scanFile` (rule 1):

```
if (!hasExportModifier(stmt)) continue;
```

The table below counts that line and two related markers in each
revision of the gate file (`git show
REV:scripts/check-spec-symbol-derivation.mjs | grep -c …`):

| revision | `if (!hasExportModifier(stmt)) continue;` | `const
hasExportModifier` | `// No export filter` |
|---|---|---|---|
| `c38162d7c9` (objectstack-ai#6333 lands) | 2 | 1 | 0 |
| `9207c53e45^` | 2 | 1 | 0 |
| `9207c53e45` (objectstack-ai#7274, objectui#6291) | 0 | 1 | 2 |
| `b120b66077` (this PR's base) | 0 | 0 | 3 (two code comments plus one
header mention of them) |

**2. False since `9207c53e45`** (objectstack-ai#7274, objectui#6291, 2026-09-02). On
the base, the two scanners now carry `// No export filter: a
module-local declaration carrying a spec-alignment` in
`scanFileForClaims` and `// No export filter (objectui#6291). A
module-local declaration under a spec` in `scanFile`. The gate's own
header says the same thing: "⛔ HISTORY, NOT BEHAVIOUR. Neither scanner
has an export filter today."

The order of the two commits was checked on a shallow checkout, so it
needs a control leg:
- `git merge-base --is-ancestor c38162d 9207c53` exits 0.
- The reverse check exits 1.
- Control leg: `git merge-base --is-ancestor 62311b6 c38162d`
exits 0. `62311b6419` is the gate's first commit (2026-07-30), older
than both.

**3. Which rule would catch this const, then and now.** I measured this
with a 2×2 probe, not read it off the header:
- **Fixture A** is the pre-objectstack-ai#6333 hook source, `git show
c38162d^:packages/plugin-grid/src/hooks/useRecordCrudVerdicts.ts`. In
it, `const EXPLAIN_BATCH_MAX_RECORD_IDS = 200;` is module-local.
- **Fixture B** is the same file with `export` added. It is the control.
- Both fixtures were fed to the scanners of both gate versions, using
today's spec export set (5085 names; `EXPLAIN_BATCH_MAX_RECORD_IDS` maps
to `@objectstack/spec/security`).
- The only change to the `c38162d7c9` copy was exporting its `scanFile`.
The anchor count was checked on disk: 1 plain before and 0 after; 0
exported before and 1 after.

| fixture | gate at `c38162d7c9`: rule 1 | rule 2 | gate at
`b120b66077`: rule 1 | rule 2 |
|---|---|---|---|---|
| A — module-local (verbatim) | none | none | `const` finding | none |
| B — `export` added (control) | `const` finding | none | `const`
finding | none |

What the probe shows:
- **When objectstack-ai#6286 landed, the export filter is what hid the const from rule
1.** The control proves the old rule 1 flags the const as soon as it is
exported.
- **Today rule 1 (the name match) reports it.** `DEBT` is empty and no
`ALLOW` key names it, so it would be a fresh finding and the gate would
exit 1.
- **Rule 2 reports it in no cell, and no filter is involved.**
`findClaim` returns `null` on the const's doc comment. The comment names
`@objectstack/spec@17.0.0-rc.6` but contains none of the
`CLAIM_PATTERNS` phrases.
- So for this const, the card is right that rule 1 is the operative
rule. The claim note's point is also true: both scanners dropped the
filter. But that matters for rule 2 only in general, not for this const.

The new sentence therefore states only history: the filter existed when
the change landed, and objectui#6291 removed it from both scanners. It
asserts no live capability of the gate, so a later change to the gate
cannot make it false the way the old sentence became false (AGENTS.md
objectstack-ai#9).

## The other pending changesets that name the gate

`git grep -l check-spec-symbol-derivation b120b66 -- .changeset`
lists **seven** files. As a positive control, the same form of search
for `plugin-grid` in the 6286 file counts 1. I widened the search to
every spelling of the gate (`spec-symbol`, `check:spec-symbols`), which
gives **17** files, and read all 17 in full. I also grepped every
pending body for `non-exported|unexported|not exported|export
filter|hasExportModifier|export modifier|exported only` and for
`module-local`. **Only the 6286 file states the export-filter
property.** The other 16 say nothing about it:

- `7265-core-context-token-mirrors`,
`7265-data-objectstack-filter-operator-rename`,
`7265-components-sort-direction-bound`,
`7265-plugin-detail-record-alert-renderer-props`,
`spec-symbol-mirrors-app-shell-7265`,
`7265-types-user-filter-field-derives`,
`9596-debt-issue-anchor-truthiness`: these describe module-local mirrors
that the rule-1 `DEBT` ledger carried, which fits today's behaviour.
- `console-form-container-specs-one-declaration-5596`: says derivation
is the gate's sanctioned form.
- `listview-comment-pair-4559`: says rule 2 reads the *attached* comment
block.
- `9542-result-dialog-i18nlabel`: names the rule-2 failure class.
- `3162-types-ledger-batch8-verdicts`, `spec-pin-17-1-0-5328`,
`spec-refresh-17-2-0-5668`: ledger and pin history.
- `ci-decide-markdown-trace-9241`: says the gate opens
`content/docs/**`.
- `8841-tree-view-config-derive` and
`date-range-default-range-binding-4984`: explain a miss by **name
matching** (and, in 4984, rule 2's tie test). That is a different
property, which I did not re-measure here.

## Gates (all read at HEAD `25b8b6eeb2`, the only commit on this branch)

| command | exit | verdict line |
|---|---|---|
| `pnpm check:changeset-claims` | 0 | `✅ No pending changeset names a
file this change touches.`; self-contradiction: `Every package declared
across those 1 body(ies) is either not negated in its own prose, …`;
born-false: `Line addresses read in them: 0.` |
| `node scripts/check-changeset-presence.mjs` | 0 | `✅ No source or
published contract of a released package changed in this range, so no
changeset is owed.` |
| `node scripts/check-changeset-overwrite.mjs` | 0 (report-only) | `1
modified` — case 2, "CORRECTING a declaration on purpose … prose that no
longer matches the change"; the declared package set is unchanged |
| `node scripts/check-changeset-no-major.mjs` | 0 | ✅ No changeset
declares a major bump. |
| `node scripts/check-changeset-fixed.mjs` | 0 | `✅ All workspace
packages are in the changeset fixed group.` |
| `pnpm check:control-bytes` | 0 | `✅ check-control-bytes: OK (scanned
9240 tracked text file(s); skipped 85 binary).` |
| `pnpm check:new-line-citations` | 0 | `VERDICT
new-cross-file-line-citations: 0 new citation(s), enforcement
report-only -> exit 0` |
| `pnpm exec vitest run --maxWorkers=2` on the 24
`scripts/__tests__/*.test.ts` that mention `.changeset` (via
`os-verify-lock.sh`) | 0 | `Test Files 24 passed (24)` / `Tests 914
passed (914)` / `VERDICT command-exit 0` |

The 24-file set is a superset of what `node
scripts/markdown-test-inputs.mjs --changed -` returns for this file.
That helper records `.changeset/**` as the input of
`check-changeset-no-major.test.ts`; the positive control is
`packages/plugin-dashboard/README.md`, which it echoes back. No package
source, gate or test is touched, so nothing else is owed. `node
scripts/check-governed-queue-guard.mjs --test` on the file answers `✅
NOT GOVERNED`.

## Acceptance notes

- `spec-symbol-mirrors-app-shell-7265` reads "held six declarations …
Four are now bound … and three were renamed". That is 4 + 3 against six.
Its commit (`14a1b92035`, objectstack-ai#9465) removes six app-shell names from
`DEBT`, so one name may have held two declarations. **I did not measure
this.** That changeset has empty frontmatter, so it publishes nothing.
Nobody is carrying this; it is only noted here.
- The 24-file test run printed one `fatal: Invalid symmetric difference
expression 0000…` line on stderr while every test passed. The SHA in it
is all zeros; `check-changeset-overwrite.test.ts` and
`docs-build-trigger.test.ts` are the two files in the set that spell
such a SHA. I did not trace it further. It is not a failure.

## Contract review

A contract review is owed and the PM seat commissions it. Everything
above is meant to be re-runnable: every quoted code string, commit and
command reproduces on this repo. This PR touches no gate, adds no
checker, and leaves the frontmatter and bump level unchanged.

Session: `https://claude.ai/code/session_01EBx9rvB7dufCz4at53x35U`

---

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

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

Development

Successfully merging this pull request may close these issues.

2 participants