…y remainder of objectui#5867 as ts, 31 blocks across 31 component pages (batch 8) (objectstack-ai#11346)
Refs objectstack-ai#5867 (batch 8)
Clause-②: no. A docs fence-language and compile pass; no contract or
accept set moves.
Batch 8 of objectui#5867's lane, the last five subgroups of the
components remainder. Every TypeScript block that triage's classifier
reads as code under
`content/docs/components/{complex,disclosure,layout,navigation,overlay}/**`
was fenced `plaintext`, so `check-doc-snippet-types` never compiled it.
All 31 of them are now fenced `ts`. 24 then failed to compile, all on
one name, and each is fixed in the block itself. None is marked as a
fragment, and no component type or gate logic moved.
Session: `https://claude.ai/code/session_01TdiauJaVCHuj45EzZGUxHh`
## Population, re-measured on `main` `5262f7dd3`
Measured with `node scripts/check-doc-fence-languages.mjs --list` (the
gate's own walk and triage's classifier). The whole remainder on `main`
was 72 blocks in 72 files. The five subgroups hold **31 blocks in 31
files**, and the batch takes all of them. Neither excluded page
(`basic/text.mdx`, `form/file-upload.mdx`) is in these subgroups.
| subgroup | before (blocks / files) | re-fenced `ts` | red on first
compile (TS2304 `SchemaNode` only) | after |
| --- | --- | --- | --- | --- |
| complex | 9 / 9 | 9 | 4: `carousel`, `resizable`, `scroll-area`,
`view-switcher` | 0 |
| disclosure | 3 / 3 | 3 | 2: `accordion`, `collapsible` | 0 |
| layout | 8 / 8 | 8 | 8: all eight | 0 |
| navigation | 1 / 1 | 1 | 1: `header-bar` | 0 |
| overlay | 10 / 10 | 10 | 9: all but `menubar` | 0 |
| **total** | **31 / 31** | **31** | **24** (59 diagnostics, all TS2304
`SchemaNode`) | **0** |
The handover predicted about 25 red, with `ReactNode` in
`complex/data-table.mdx`. That did not reproduce. The block in the
population is the `TableColumn` / `DataTableSchema` listing, and it
compiles untouched. The page's other `plaintext` fence, which ends in
`ReactNode`, opens `renderCellEditor?: (ctx: {`. The classifier reads
that as prose, so it was never in the population and is not in this
batch.
These figures are readings at the heads named below. The live number is
that `--list`, and nothing re-derives this table.
All 31 blocks are self-declared `interface` listings, so they belong to
the separate objectstack-ai#6143 own-interface count. The compile now proves that
every member type resolves. It does not judge the member rows against
the shipped schema; the three `@object-ui/types` doc pins below still do
that for the overlay pages.
## The fix, 24 times
Each red block used `SchemaNode` without declaring it. Each now opens
with `import type { SchemaNode } from '@object-ui/types';`, which is
what `layout/box.mdx` and batch 7's `list.mdx` / `empty.mdx` already do.
The import is the block's first line, and triage's classifier reads
`import`, so if one of these blocks is ever fenced `plaintext` again the
fence gate still flags it. The ablation below measures exactly that.
## `KNOWN_UNHIGHLIGHTED_TS_FENCES`: 31 rows deleted, none added
This follows the card's standing rule (authorisation comment
5905984416): a batch deletes the zero-count rows of its own re-fenced
pages. `scripts/check-doc-fence-languages.mjs` has 0 lines added and 31
deleted, every one a map row. No number was raised and the gate logic is
untouched. The deleted rows, all under `content/docs/components/`:
- `complex/`: `carousel`, `data-table`, `filter-builder`, `filter-ui`,
`resizable`, `scroll-area`, `sort-ui`, `table`, `view-switcher` (9)
- `disclosure/`: `accordion`, `collapsible`, `toggle-group` (3)
- `layout/`: `aspect-ratio`, `card`, `container`, `flex`, `grid`,
`page`, `stack`, `tabs` (8)
- `navigation/`: `header-bar` (1)
- `overlay/`: `alert-dialog`, `context-menu`, `dialog`, `drawer`,
`dropdown-menu`, `hover-card`, `menubar`, `popover`, `sheet`, `tooltip`
(10)
Each row is the page's `.mdx` with a count of 1. The map goes from 72
rows to 41 on `main`.
## The doc-pin readers, re-pointed with no assertion change
The three `packages/types/src/__tests__` readers batch 7 named extract
an overlay page's interface from its schema fence by regex. All three
threw once the fence became `ts`: `Test Files 3 failed | 1 passed (4)`,
every failure `expected exactly one plaintext fence in ..., found 0`.
`filter-builder-mirror-6939.test.ts` also reads a page in this batch
(`complex/filter-builder.mdx`), but it locates `interface X {` across
the whole page. It is fence-agnostic and stayed green.
- `alert-dialog-read-dialect-7104.test.ts` and
`overlay-trigger-union-7081.test.ts`: `schemaFence` now reads the page's
one `ts` fence. Every page they read is in this batch.
- `overlay-node-slot-doc-types-7082.test.ts` takes batch 7's per-subject
fence language (`Subject.fence`). The header, `schemaFence`, the
`Subject` field, the call site and the counter-probe use **the same text
PR objectstack-ai#11341 introduced**. The only difference from objectstack-ai#11341's version of the
file is the six `SUBJECTS` values: the five overlay subjects are `ts`.
`EmptySchema` stays `plaintext` here, because on `main`
`feedback/empty.mdx` is still plaintext until objectstack-ai#11341 lands.
- The one `expect(` line touched is the counter-probe's call, which
gains the fence argument exactly as in objectstack-ai#11341. Its assertion
(`toThrow(/found 2/)`) is unchanged.
Because these tests sit under `packages/types/src`,
`check-changeset-presence` counts them as published source and goes red
without a changeset (measured: exit 1, naming the three files).
`.changeset/5867-plaintext-fenced-ts-batch8.md` therefore has an **empty
frontmatter**, so nothing is released. No `skip-changeset` label is
applied.
## Serial with PR objectstack-ai#11341 (batch 7)
At this PR's opening, objectstack-ai#11341 is still an open draft (head `1f9701afc`)
and `main` has not moved from `5262f7dd3`, so the pre-PR `git merge
origin/main` was a no-op (`Already up to date.`). A dry run, `git
merge-tree --write-tree` of this head against objectstack-ai#11341's head, shows
exactly two conflicts. Both are mechanical, and everything else merges
cleanly:
1. **`scripts/check-doc-fence-languages.mjs`, the map:** keep both
sides' deletions. The map then holds exactly two rows:
`content/docs/components/basic/text.mdx` and
`content/docs/components/form/file-upload.mdx`, the two excluded pages.
2. **`overlay-node-slot-doc-types-7082.test.ts`, the `SUBJECTS` block:**
set all six subjects to `fence: 'ts'`.
Once objectstack-ai#11341 lands, this branch merges `main` (merge, never rebase) with
that resolution, and the gates re-run on the new head.
## Verification at `77e90204`
The tree was clean for every reading. Heavy runs went through
`os-verify-lock.sh` inside a memory watchdog (kill below 2500 MB
available), which never fired. Exit codes were captured by redirect
before any pipe.
- **Build:** `turbo run build` over the snippet gate's own
`--build-filter` closure, `--concurrency=2`: `Tasks: 35 successful, 35
total`, VERDICT command-exit 0. The filter re-derived at the final head
is byte-identical (md5 equal), so the closure did not move.
- **Snippet gate before** (`5262f7dd3`): exit 0, `245 covered (129 of
them hold a ts/tsx block), 4 ungated`, `Covered blocks: 854 — 698 to
compile, 156 declared fragment(s).`, `698 of 698 block(s) judged, 0
failed.`
- **Round 1** (`fb370a45`, re-fence only): exit 1, `729 to compile`,
`729 of 729 block(s) judged, 24 failed.` All 59 diagnostics were
`TS2304: Cannot find name 'SchemaNode'`, across exactly the 24 files in
the table.
- **Snippet gate after** (`77e90204`): exit 0, `245 covered (160 of them
hold a ts/tsx block), 4 ungated`, `Covered blocks: 885 — 729 to compile,
156 declared fragment(s).`, `Syntax phase: every block parsed`, `729 of
729 block(s) judged, 0 failed.`, `Every covered documentation snippet
compiles against the built types.`
- Deltas: to-compile +31, exactly the batch. Documents holding a `ts`
block +31. Covered, ungated and fragments are unchanged.
- **Fence gate:** `--self-test` gave `26 cases pass`. The run gave exit
0, `41 declared file(s) carrying 41 block(s)` (base: 72 / 72).
- **Other gates, each exit 0:**
- `check:doc-types`: `Every documented component type is registered.`
- `check-prompt-component-keys`
- `check:doc-example-ids`: `414 real reference(s) all resolve`
- `check:doc-examples`
- `docs:check-links`: `Links are valid across 17 scan roots.`
- `check:docs-route-closure`
- `check-shell-escape-residue`
- `check:control-bytes`: `OK (scanned 9806 tracked text file(s); skipped
85 binary)`. A grep self-scan of the 36 changed files found 0 control
bytes.
- `check:new-line-citations`: `0 new citation(s)`
- `check-changeset-presence`: `declares 1 changeset(s)`, EMPTY
frontmatter
- `check-changeset-no-major`
- `check-governed-queue-guard --test` over the 36 paths: `NOT GOVERNED`
- **Tests, run from the repo root with `vitest --maxWorkers=2`:**
- The readers of these pages are the union of `markdown-test-inputs.mjs
--list` (the `content/docs/**` and `content/docs/components/**` readers,
plus the named overlay and filter-builder readers) and a `git grep` for
the five subgroup paths. That union is 21 files: `Test Files 21 passed
(21)`, `Tests 1001 passed (1001)`.
- `vitest run scripts/__tests__/` (the fence script's own test file plus
every scripts test that greps its name): `Test Files 177 passed | 2
skipped (179)`, `Tests 5371 passed | 2 skipped (5373)`, VERDICT
command-exit 0.
- **Type-check:** `pnpm --filter @object-ui/types type-check` (`tsc
--noEmit`, then `tsconfig.examples.json`, then `tsconfig.test.json`)
exits 0 with 0 `error TS`. `tsc -p tsconfig.test.json --listFiles`
includes all three edited tests.
- **Lint narrowing:** `eslint --no-inline-config --format json` over the
36 changed files gives 36 results.
- 32 are `File ignored because no matching configuration was supplied`
(31 `.mdx`, 1 `.md`). `eslint.config.js` matches `ts`/`tsx` plus the
default JavaScript set.
- 4 are linted (the three tests and
`scripts/check-doc-fence-languages.mjs`), with 0 errors and 2 warnings.
Both warnings are `no-explicit-any` on an untouched pre-existing line of
`overlay-trigger-union-7081.test.ts`; the same line is present at base.
- `eslint.config.js` configures no `project` or `projectService`, so
type-aware linting is off and this diff cannot move any untouched file's
verdict. Repo-wide `pnpm lint` is left to CI.
## Ablation: one fixed block re-fenced `plaintext`
The fix was committed first. The tool was objectstack's
`ablation-replace.mjs` in wrap mode, with an EXIT/INT/TERM restore on
the absolute path. The target was `overlay/dialog.mdx`, one of the
import-fixed blocks. The anchor `` ```ts `` went x1 to x0, ``
```plaintext `` went x0 to x1, and the blob changed (`742584d2` to
`6b0085f6`). On-disk counts taken while mutated were 0 / 1.
- **Predicted:** `check:doc-fences` red, one block beyond the baseline
naming `dialog.mdx`; `check:doc-snippets` green but one block fewer.
- **Observed:** `check:doc-fences` exit 1: `1 TypeScript block(s) under
an unhighlighted fence, beyond the baseline:
content/docs/components/overlay/dialog.mdx:12 ```plaintext — import type
{ SchemaNode } from '@object-ui/types';`. `check:doc-snippets` exit 0
with `728 to compile` and `0 failed`. That is the silent hole the fence
gate closes.
- **Restore proven:** the blob after restore equals HEAD (`742584d2`),
and `git diff HEAD` is empty.
## Not measured
- **Site render:** no site build was run. The re-fenced blocks go
through the same highlighter as the `ts` fences these pages' siblings
already render.
- **External link check (lychee):** CI-only workflow.
- **The merged tree with objectstack-ai#11341:** that PR has not landed. Only the
conflict shape was computed (the dry run above); the gates are owed
again on the merged head.
- **`e2e/docs-smoke.spec.ts`** (Playwright) and the full `pnpm test`:
CI-owned.
## Acceptance notes
- **After objectstack-ai#11341 lands and this merges,**
`KNOWN_UNHIGHLIGHTED_TS_FENCES` holds only the two excluded rows
(`basic/text.mdx`, PR objectstack-ai#11069 parked; `form/file-upload.mdx`, its own
labelled line). That is the whole of the card's remaining fence debt.
- **Observation, not filed (carrier: none).**
`scripts/markdown-test-inputs.mjs` does not record
`overlay-trigger-union-7081.test.ts` as a reader of the overlay pages.
The test builds its path from a template (`${DOCS}/${type}.mdx`), so the
scanner never makes it a candidate, and `--audit` passes. It has no
effect today: `content/docs/**` is already a recorded input, so
`--changed` answers non-empty for any of these pages and CI takes the
full run.
- **Brief note:** the dispatch's gate list expected "no changeset is
owed", while its binding ruling ordered the empty-frontmatter changeset.
The presence gate is red without one (measured above), so the ruling
holds.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01TdiauJaVCHuj45EzZGUxHh)_
## Update after PR objectstack-ai#11341 landed (seat addendum, 2026-10-01)
- PR objectstack-ai#11341 (batch 7) landed as `92bcc82`. This branch merged it at
`9e698f3e` (a merge, never a rebase) with the keep-both resolution
declared above:
- `KNOWN_UNHIGHLIGHTED_TS_FENCES` now holds only `basic/text.mdx` and
`form/file-upload.mdx`;
- all six `overlay-node-slot-doc-types-7082` SUBJECTS read `fence:
'ts'`;
- both batch changesets are kept.
- "Not measured" item 3 (the merged tree with objectstack-ai#11341) is now measured at
`9e698f3e`, in the dev's follow-up report on objectui#5867
(`5927398586`). These readings supersede the `77e90204` verification
above:
- `check:doc-fences`: 2 declared files;
- `check:doc-snippets`: 768 of 768 judged, 0 failed;
- 32 reader test files and `scripts/__tests__/`: green.
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: 黄怡 <huangyi@hotoa.com>
Refs #5867 (batch 7)
Clause-②: no. A docs fence-language and compile pass; no contract or accept set moves.
Batch 7 of objectui#5867's lane. Every TypeScript block that triage's classifier reads as code under
content/docs/components/{basic,data-display,feedback,form}/**was fencedplaintext, socheck-doc-snippet-typesnever compiled it. All 39 of them are now fencedts. Three then failed to compile, and each is fixed in the block itself; none is marked as a fragment, and no component type or gate logic moved.Session:
https://claude.ai/code/session_01TdiauJaVCHuj45EzZGUxHhPopulation, re-measured on
main5262f7dd3Measured with
node scripts/check-doc-fence-languages.mjs --list(the gate's own walk and triage's classifier). The whole remainder was 72 blocks in 72 files, all undercontent/docs/components/**. The four subgroups held 41; two are excluded by the claim, so the batch is 39 blocks in 39 files.tsbasic/text.mdx, excluded while PR #11069 is openlist.mdx, TS2304SchemaNodeempty.mdx, TS2304SchemaNodecalendar.mdx, TS2304Dayx8form/file-upload.mdx, its own labelled ledger lineThe other five subgroups (complex 9, disclosure 3, layout 8, navigation 1, overlay 10) are batch 8 and are untouched. After this PR the fence gate's remainder is 33 blocks in 33 files. These figures are readings at the heads named below; the live number is that
--list, and nothing re-derives this table.All 39 blocks are self-declared
interfacelistings, so they belong to the separate #6143 own-interface count. The compile now proves that every member type resolves; it does not judge the member rows against the shipped schema.The three fixes
data-display/list.mdxandfeedback/empty.mdxusedSchemaNodewithout declaring it. Both now import it withimport type { SchemaNode } from '@object-ui/types';, which is whatlayout/box.mdxalready does.form/calendar.mdxusedDay, a prose alias. The shippedCalendarDayinpackages/types/src/form.tsis not exported, so the block declarestype Day = Date | string;locally, with the page's own gloss as a trailing comment. The declaration sits on the block's first line, so if this block is ever fencedplaintextagain, the fence gate's classifier still flags it (the classifier readstype X =).KNOWN_UNHIGHLIGHTED_TS_FENCES: 39 rows deleted, none addedThis follows the card's standing rule (authorisation comment 5905984416): a batch deletes the zero-count rows of its own re-fenced pages.
scripts/check-doc-fence-languages.mjshas 0 lines added and 39 deleted, every one a map row; no number was raised and the gate logic is untouched. The deleted rows, all undercontent/docs/components/:basic/:button-group,html,icon,image,navigation-menu,pagination,separator,sidebar(8)data-display/:alert,avatar,badge,breadcrumb,kbd,list,statistic,tree-view(8)feedback/:empty,loading,progress,skeleton,sonner,spinner,toast,toaster(8)form/:button,calendar,checkbox,combobox,command,date-picker,form,input-otp,input,label,radio-group,select,slider,switch,textarea(15)basic/text.mdxandform/file-upload.mdxkeep their rows. This time the edit was not refused.Beyond the claim's file surface: two test readers and an empty changeset
Two
@object-ui/typestests parse a page's interface out of itsplaintextfence by regex. They threw once the fence becamets, so each one now follows its page. This is outside the claim's declared surface; it is stated here so the seat can amend the surface.button-group-doc-surface-6347.test.tsreadsbasic/button-group.mdx's onetsfence. No assertion changed.overlay-node-slot-doc-types-7082.test.tsreads six pages.feedback/empty.mdxis nowts, while the five overlay pages stayplaintextuntil batch 8. Each subject now names its fence language (fence: 'ts'forEmptySchema,'plaintext'for the overlay subjects), and the reader takes it as a required argument. No assertion changed.Both files live under
packages/types/src/, socheck-changeset-presencecounts them as published source..changeset/5867-plaintext-fenced-ts-batch7.mdhas an empty frontmatter and declares that nothing is released.Verification
Every reading is at head
1f9701af(tree clean,mainunmoved at5262f7dd3, so the merge oforigin/mainis a no-op), unless a line says otherwise. Heavy runs went throughos-verify-lock.sh, with a memory watchdog.turbo run buildover the gate's own--build-filterclosure: 35/35 tasks, exit 0. After that build, only the two test files underpackages/types/src/__tests__changed inpackages/, and the published build excludes them.check:doc-snippets:0960c9fb): exit 1, 737 to compile, 3 failed, all TS2304 (SchemaNodein list and empty,Dayx8 in calendar);icon.mdxalready held one), fragments 156 and ungated 4 unchanged,Semantic phase: 737 of 737 block(s) judged, 0 failed.check:doc-fences:--self-test26 cases pass. The gate exits 0, with 33 declared files carrying 33 blocks (it was 72 / 72 at base).ablation-replace.mjsturnedlist.mdx'stsopener back toplaintext. The anchor went 1 to 0 and the blob changed.check:doc-fencesexited 1 with1 TypeScript block(s) under an unhighlighted fence, beyond the baseline, namingcontent/docs/components/data-display/list.mdx. That is the FRESH mode, because the file's row is gone. The restore was proven: blob equal to HEAD, andgit diff HEADempty.check:doc-typesexit 0 (Every documented component type is registered.) ·check-prompt-component-keysexit 0 ·check:doc-example-idsexit 0 ·docs:check-linksexit 0 (Links are valid across 17 scan roots.) ·check:doc-examplesexit 0 ·check:docs-route-closureexit 0 ·check:control-bytesexit 0, plus a self-scan of the 43 changed files with 0 hits ·check:new-line-citations0 new.check-changeset-presenceexit 0 (one empty-frontmatter changeset) ·check-changeset-no-majorexit 0.markdown-test-inputs.mjs --list(everycontent/docs/**andcontent/docs/components/**reader, plus the named button-group and empty readers) and agit grepfor the four subgroup paths: 28 files. Run from the repo root:Test Files 28 passed (28),Tests 1009 passed (1009).1 failed | 27 passedonoverlay-node-slot-doc-types-7082.test.ts.vitest run scripts/__tests__/:Test Files 177 passed | 2 skipped (179),Tests 5371 passed | 2 skipped (5373).pnpm --filter @object-ui/types type-check: exit 0.tsconfig.test.json --listFilesincludes both edited tests.eslint --no-inline-config --format jsonover the 43 changed files gives 43 results. 40 areFile ignored because no matching configuration was supplied.(the 39 mdx pages and the changeset), and 3 are linted with 0 errors and 0 warnings. NoprojectorprojectServiceis configured, so type-aware linting is off and this diff cannot move the verdict on any untouched file. Repo-widepnpm lintis left to CI.basic/icon.mdxandlayout/box.mdxalready render atsfence through the same highlighter).Acceptance notes (observed, not filed)
basic/div.mdxandbasic/span.mdxeach hold aplaintextfence whose body is a TypeScriptinterface. Each block's first line is a// DEPRECATEDcomment, so triage's first-line classifier reads them as prose. They are outside the fence gate's population and its ledger, and outside this batch. The gate's header quotes the classifier on purpose rather than extending it, so this is its declared edge, not a defect.plaintextfence:overlay-node-slot-doc-types-7082.test.ts(flip the fivefence: 'plaintext'subjects),alert-dialog-read-dialect-7104.test.tsandoverlay-trigger-union-7081.test.ts.Generated by Claude Code