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

docs(types): date the rotted tsconfig.test.json invariant and name the carve-out it stopped covering - #9750

Merged
os-sales merged 1 commit into
mainfrom
claude/issue-9737-tsconfig-test-invariant-rotted
Sep 18, 2026
Merged

os-sales merged 1 commit into
mainfrom
claude/issue-9737-tsconfig-test-invariant-rotted

Conversation

@os-sales

Copy link
Copy Markdown
Collaborator

Fixes #9737

Clause-②: no

packages/types/tsconfig.test.json closed with an invariant in the imperative — "Every test file in this package is compiled; keep it that way." — which is false today, and false in the file that states it. This amends that one comment, and nothing else.

The verdict was measured, not inherited — ROTTED, not born false

Orphans = files under packages/types/src/__tests__/ matching neither src/**/*.test.ts nor src/**/*.test.tsx. Re-derived per ref with git ls-tree in this branch's worktree, never from a working tree. Every zero carries a lit control on the same instrument and the same corpus — the files that DO match — so a zero is a reading, not a dead probe.

ref date what it is orphans [LIT CTRL] files in the program
c35fed098 2026-08-07 the sentence's write-time ref (PR #3574) 0 28
dd5b01b59 2026-09-02 DIST_PIN_GLOB / the dist project lands (PR #7291) 0 85
8195905bf 2026-09-09 the commit immediately before the falsifier 0 152
1ccfc235e 2026-09-09 the falsifier — PR #8646 adds the file 1 153
1cfdff814 today origin/main at branch point 1 204

The orphan is packages/types/src/__tests__/zod-subpath-single-module-8598.dist.spec.tsx.

Two independent legs establish ROTTED rather than BORN FALSE:

  1. The include line at the write-time ref is byte-for-byte the one in force today (diff of the two lines exits 0) ⇒ the sentence did not drift by its own config moving; the population moved under it.
  2. Tree-wide at c35fed098, the count of .dist.spec.tsx files is 0 (lit control: 3716 tracked files at that ref) ⇒ the construction that falsifies the sentence did not yet exist anywhere in the repo when it was written. This leg holds whichever commit is taken to be the write-time ref, so the verdict does not rest on git log -S in a shallow checkout.

git log -S'Every test file in this package is compiled' over that path returns c35fed098 and nothing else in the fetched window.

⇒ TRUE when written, true for thirty-three days, falsified on 2026-09-09 by a single identified commit. So the sentence is kept and dated, not overwritten — overwriting it would erase that it was ever true (#9713).

What the repair says now

The exclusion the sentence stopped covering is a construction with a stated reason and a cited card, not a hole — and a declared exclusion and a hole look identical in a directory listing. The amended invariant therefore states all three things a reader would otherwise have to re-derive:

Two repo rules shaped the wording:

  • AGENTS.md 完善设计器的每一个细节 #9 — no count is written into the prose. The comment points at pnpm type-check:coverage (scripts/check-type-check-coverage.mjs), which re-derives the claim and happens to share the same *.test.ts(x) definition, so the two agree by construction rather than by coincidence.
  • AGENTS.md [WIP] Update documentation for project #11 — vitest.config.mts is cited by the DIST_PIN_GLOB symbol, never by a cross-file line address. pnpm check:new-line-citations prints 0 new citation(s) for this branch.

⛔ What did NOT change — measured, not asserted

No include, no exclude, no compiler option, no test file moved. Proven at the level of program inputs rather than of the diff:

tsc -p CONFIG --noEmit --listFiles, run for all three legs of this package's type-check script, before and after the edit:

program exit --listFiles diff, before vs after
tsconfig.json 0 diff exit 0 — byte-identical
tsconfig.examples.json 0 diff exit 0 — byte-identical
tsconfig.test.json 0 diff exit 0 — byte-identical

On that same --listFiles output for tsconfig.test.json: the orphan pin appears 0 times, and the lit control src/__tests__/base-bind-declared.test.ts appears 1 time — the carve-out read directly off the real program, not off the globs.

Gates

Exit codes captured to disk before any pipe.

gate exit verdict line
pnpm --filter @object-ui/types type-check (all three legs) 0 tsc --noEmit && tsc -p tsconfig.examples.json && tsc -p tsconfig.test.json
pnpm exec vitest run packages/types/ (repo root) 0 Test Files 204 passed (204) · Tests 4771 passed (4771)
pnpm type-check:coverage 0 test type-check coverage: 43/43 packages compile their tests, 0 declared debt
node scripts/check-changeset-presence.mjs 0 No source or published contract of a released package changed in this range
pnpm check:new-line-citations 0 0 new citation(s), enforcement report-only
pnpm check:control-bytes 0 OK (scanned 7840 tracked text file(s))
pnpm check:published-tsconfig-exclude 0
pnpm check:self-import 0
pnpm check:changeset-claims 0
pnpm check:pending-changeset-literals 0
pnpm check:comment-mask-corpus 0
pnpm census:tsconfig-test-parity 0
node scripts/check-governed-queue-guard.mjs --test (both changed paths) 0 NOT GOVERNED — 2 path(s) checked against 5 governed surface(s); [LIT CTRL] AGENTS.md ⇒ exit 3, GOVERNED

All figures above were taken at 837cea2f9, this branch's final commit.

Repo-wide pnpm lint is CI's run; the local narrowing is declared and proven. eslint's own flat config declares its universe as **/*.{ts,tsx} (plus **/*.tsx) and nothing else; run over the two changed paths with --no-inline-config --format json it reports 2 files, 0 errors, and for each one its own message "File ignored because no matching configuration was supplied." No .ts/.tsx file changed at all, and no tsconfig program input moved (table above), so no untouched file's verdict can move either.

The changeset grade is MEASURED

packages/types' files[] is ["dist", "README.md", "CHANGELOG.md", "LICENSE"], so anything reaching dist publishes. After pnpm --filter @object-ui/types build, scanning all 130 emitted dist files:

probe hits
DATED READING (bytes this PR adds) 0
Every test file in this package is compiled (bytes this PR keeps and quotes) 0
DIST_PIN_GLOB (bytes this PR adds) 0
[LIT CTRL] source-comment prose known to ship (registry key) 5 — field-types.d.ts, zod/node-derivation.d.ts, …
[ABSENT CTRL] a nonsense token 0

The lit control proves the instrument is connected on the same corpus, and the absent control proves it is not matching everything. ⇒ nothing published moved, and the changeset declares that with empty frontmatter — which is the claim, made explicitly rather than by analogy to a base.ts comment (whose prose does ship into dist/base.d.ts, and would have been graded patch).

A count is invariant under quotation — probed separately, both reported

The repair quotes the old sentence, so quoted position and assertion position were probed apart with a whitespace-tolerant whole-content scan (git grep is line-anchored and this is wrapped JSON-with-comments):

position occurrences
total, any position 1 (packages/types/tsconfig.test.json)
quoted position (opens with a double quote) 1
assertion position (total − quoted) 0
[LIT CTRL] DATED READING, known present and unquoted 1
[ABSENT CTRL] a nonsense token 0

The changeset body carries one further occurrence, also in quoted position. ⇒ no live, undated assertion of the sentence survives anywhere in the tree.

Acceptance notes

  • Measured in passing, and it dissolves rather than opens the second card. The dispatch fenced out "every package with a .dist.spec.tsx pin and a tsconfig.test.json may carry the same sentence-vs-population question". Tree-wide there are exactly 2 .dist.spec.tsx files (lit control: 7925 tracked files), in packages/types and packages/components, and both packages do have a tsconfig.test.json. But the whole-content scan for the invariant sentence returns 1 hit, in packages/types only: packages/components/tsconfig.test.json states no such invariant. ⇒ there is no second site to repair. Noted, not filed; handed back to the dispatching seat.
  • The triage seat's optional escalation probe (has anyone already widened an include on the strength of this sentence ⇒ p1) reads negative in the fetched window: the only two commits touching packages/types/tsconfig.test.json are c35fed098 and 4e96becf5, and the latter moved lib only. ⚠️ The checkout is shallow, so this is a NOT-FULLY-MEASURED negative rather than a proven absence.

Generated by Claude Code

…the carve-out it stopped covering

`packages/types/tsconfig.test.json` closed with an invariant in the imperative:

> Every test file in this package is compiled; keep it that way.

It is false today, and it is false in the file that states it.

## ROTTED, not born false — the falsifier is one commit

Orphans = files under `packages/types/src/__tests__/` matching neither
`src/**/*.test.ts` nor `src/**/*.test.tsx`. Re-derived here per ref with
`git ls-tree`, each zero carried by a lit control on the same instrument
and the same corpus (the files that DO match):

| ref | date | what it is | orphans | [LIT CTRL] in the program |
|---|---|---|---|---|
| `c35fed098` | 2026-08-07 | the sentence's write-time ref (PR #3574) | 0 | 28 |
| `dd5b01b59` | 2026-09-02 | `DIST_PIN_GLOB` / the `dist` project lands (PR #7291) | 0 | 85 |
| `8195905bf` | 2026-09-09 | the commit before the falsifier | 0 | 152 |
| `1ccfc235e` | 2026-09-09 | the falsifier — PR #8646 adds the file | 1 | 153 |
| `1cfdff814` | today | `origin/main` | 1 | 204 |

The `include` line at the write-time ref is byte-for-byte the one in force
today, so the sentence did not drift by its own config moving — the
population moved under it. Independently of which commit wrote the sentence:
tree-wide, zero `.dist.spec.tsx` files existed at `c35fed098` (lit control:
3716 tracked files), so the construction that falsifies it did not yet exist.
TRUE when written, falsified on 2026-09-09.

⇒ kept and dated rather than overwritten (#9713). Overwriting it would erase
that it was ever true.

## The exclusion is a construction, not a hole

The `.dist.spec.tsx` suffix keeps the built-artifact pins out of this program
deliberately: turbo's `type-check` waits on `^build` (the DEPENDENCIES'
builds) and must never be handed a program that reads this package's own
`dist` — #4801 removed a self-referencing `paths` entry for that reason. The
pins are still RUN, by the opt-in `dist` vitest project (`DIST_PIN_GLOB`,
#7183). A declared exclusion and a hole look identical in a directory
listing, and the false sentence pointed at the wrong one, so the amended
invariant now states the carve-out, its reason and its runner.

No count is written into the prose (AGENTS.md #9): the comment points at
`pnpm type-check:coverage`, which re-derives the claim and shares the same
`*.test.ts(x)` definition. `vitest.config.mts` is cited by the `DIST_PIN_GLOB`
symbol, never by line (AGENTS.md #11).

## Nothing a program reads changed — measured

`tsc -p <cfg> --noEmit --listFiles` for all three of this package's
`type-check` legs (`tsconfig.json`, `tsconfig.examples.json`,
`tsconfig.test.json`) is byte-identical before and after; `diff` exits 0 on
each. No `include`, no `exclude`, no compiler option, no test file moved.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UanLVj6xvbS6puBCewLr8L
@os-sales os-sales changed the title docs(types): date the rotted invariant and name the carve-out it stopped covering docs(types): date the rotted tsconfig.test.json invariant and name the carve-out it stopped covering Sep 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

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

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


📦 Bundle Size Report

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

Size Limits

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

@os-sales
os-sales marked this pull request as ready for review September 18, 2026 01:26
@os-sales
os-sales added this pull request to the merge queue Sep 18, 2026
Merged via the queue into main with commit f73521f Sep 18, 2026
38 checks passed
@os-sales
os-sales deleted the claude/issue-9737-tsconfig-test-invariant-rotted branch September 18, 2026 01:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

2 participants