This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
fix(skills): retire the four root-devdep rows by unmarking their fences - #7568
Merged
Merged
Conversation
…es (#7557) The root-manifest bound (#7554) refused four MARKED fences in skills/objectui/guides/testing.md and carried them as shrink-only debt in KNOWN_ROOT_DEVDEP_EXAMPLES. A declared row is uncovered debt, not a green: every run printed "13 of 17 ts fence(s) judged". Measured first, per the card's two options. check-skill-examples.mjs reads exactly ONE declaration on a fence -- MARKER, an exact-string match on the whole line, with no reason field, no install field and no capture group -- and check-doc-snippet-types.mjs's FRAGMENT_MARKER is not read by it at all (the word appears twice in the file, both times in prose about the docs gate's opposite opt-OUT design, never in code). The bound itself, resolvesOnlyThroughRootManifest, is a pure function of the specifier and two repository-wide maps with no per-block parameter to declare into. So there is no form in which a fence keeps its mark and names its install, and even the docs gate's fragment form routes a block AWAY from the compiled set -- the same coverage loss as the row, under a different name. That selects option 2. - unmark the four fences, reason written beside each: vitest and @playwright/test are the reader's own installs, not packages this repository publishes; - delete all four rows, leaving KNOWN_ROOT_DEVDEP_EXAMPLES empty, with its docblock recording the measurement and when a NEW row is still right; - lower MARKED_FLOOR ts 17 -> 13, reason beside the row, in this same PR -- the move #7550's ratchet allows only here. Not a precedent for unmarking a red fence: these four were type-checked by nothing at all for the whole of their life as rows. Before: Root bound 4 refused, 4 rows declared; Semantic phase 13 of 17. After: Root bound refuses nothing; Semantic phase 13 of 13; Marked 13 ts (floor 13), 39 json (floor 39). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019RfFHiRCSs3JXLK4cwcfox
Brings in PR #7569 (objectui#7555), which moved both gates' import reading onto the harness's moduleSpecifiersOfBlock. One textual conflict, in the header docblock of scripts/check-skill-examples.mjs: both branches add a paragraph at the same position. Both paragraphs kept, and nothing else in the resolution. Order reads with the prose above it: #7569's paragraph about the report OF the refusals comes first, since the paragraph before it ends on the Unmapped specifiers line that paragraph is about; this branch's paragraph about a refused fence not being type-checked follows, in the updated form that records the four rows' retirement. The other side's copy of that second paragraph is the pre-edit original and is superseded, not dropped. Verified across the merge: KNOWN_ROOT_DEVDEP_EXAMPLES stays an empty Set, MARKED_FLOOR ts stays 13, skills/objectui/guides/testing.md is byte-identical to this branch's commit, and the moduleSpecifiersOfBlock import and both of its call sites from the other side survive. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019RfFHiRCSs3JXLK4cwcfox
os-zhuang
approved these changes
Sep 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #7557
Retires the four
KNOWN_ROOT_DEVDEP_EXAMPLESrows the root-manifest bound (PR #7554) left behind, by unmarking the four fences inskills/objectui/guides/testing.mdand lowering thetsfloor to match.The measurement that selected the option
The card offered two options and the ruling was to measure first, then take the option the measurement selects. The question: does
scripts/check-skill-examples.mjshave a declaration form for a marked fence whose install the surrounding prose names — the docs gate's fragment mechanism, or any per-fence declaration the skills gate honours?Measured answer: no. Three independent readings, all at this branch's base:
scripts/check-skill-examples.mjs:769-782lines[markerLine].trim() === MARKER. An exact-string equality on the whole trimmed line — no reason field, no install field, no capture group. There is no second form.fragmentin that file:51and:274, both in prose describing the docs gate's opposite, opt-OUT design. It never appears in code, socheck-doc-snippet-types.mjs'sFRAGMENT_MARKER(:737-738) is not read by this gate at all.check-doc-snippet-types.mjs:1043-1050resolvesOnlyThroughRootManifest(specifier, { paths, rootDeclared })is a pure function of the specifier and two repository-wide maps.compileSnippetsapplies it per specifier at:1285with no block-level parameter. No marker of any spelling can widen it for one fence.And a fourth reading closes the remaining escape: even if the docs gate's fragment form were honoured here,
check-doc-snippet-types.mjs:1214routes a block with afragmentReasonintodeclaredFragments— away fromcompiled. That is the same coverage loss as the row it would replace, under a different name; it cannot deliver option 1's "stay marked and type-checked".⇒ Option 2.
What changed
1.
skills/objectui/guides/testing.md— four fences unmarked, reason beside each. Net zero lines: each marker line is replaced in place by a one-line HTML comment carrying its reason. The four sites are exactly the four rows::60vitest:94vitest:218vitest:258@playwright/testThe reason text, carried as an HTML comment on the line the marker used to occupy (inner text quoted, delimiters spelled out per the note above):
where RUNNER is
vitestfor the first three and@playwright/testfor the fourth. After this edittesting.mdcarries zero markers — and it already carried five unmarkedvitestfences (:9,:33,:130,:173,:342) beside the four marked ones, so unmarking makes the guide internally consistent rather than making it an exception.2.
scripts/check-skill-examples.mjs— the four rows deleted.KNOWN_ROOT_DEVDEP_EXAMPLESis now an emptySet. Its docblock records the measurement above, keeps the "gate weakens the guide to suit itself" rule intact as a still-live refusal, and states when a NEW row is still the right answer (the machinery is live;judge()still reds an undeclared refusal).3.
scripts/check-skill-examples.mjs—MARKED_FLOORts17 → 13, reason beside the row. The move objectui#7550's ratchet allows only in the PR that removes the marks. The reason is written on the constant itself and says which examples stopped being ones and why this was the honest call, with an explicit ⛔ that it is not a precedent for unmarking a fence that reds: these four were type-checked by nothing at all for the whole of their life as rows.No harness change: the root bound is untouched, no root-manifest exemption was added, and nothing changed about what a marked fence is checked against.
Summary lines, before and after
Before (at base
e304a4e):After (at
f7de6dc):Root bound: 0 fence(s) refused …; 0 row(s) declared …. That wording is the gate's non-zero branch (scripts/check-skill-examples.mjs:1354-1359); whenrun.boundFailures.length === 0the gate takes a dedicated zero-branch sentence instead — the line quoted above. It asserts the same fact more strongly, and theMarked:andSemantic phase:lines match the prediction exactly. Editing the gate to emit the predicted string would have been changing a gate to suit a report, so it was not done.The
Semantic phaseline is the one that measures this card: 13 of 17 → 13 of 13. The marked population and the verified population are now the same set, and the closing line lost its caveat.Reverse verification: the floor lowering is load-bearing
Run from the committed state, so the restore leg has a real reference point. With the four fences left unmarked and only the floor put back to 17:
exit 1 (
examplesFailed), the predicted direction. Mutation confirmed on disk before the run (['ts', 13]count 0,['ts', 17]count 1); restored under atrap … EXIT INT TERMusing absolute paths, and the restore proven rather than assumed —git diff HEADempty andgit hash-objecton the file equal to its HEAD blobbf2d77b393230fb0ee43947512ab559df5bfa42b.Gates
All run at head
f7de6dc, exit code captured by redirect before any pipe. Verdict lines are the gates' own, not a reading of$?.pnpm check:skill-examplesEvery marked skill example holds up against the built types.node scripts/check-skill-examples.mjs --self-testcheck-skill-examples self-test: 52 cases pass (marker adjacency both directions, orphans, nested illustration, json/jsonc, the bare-any guard in both directions with its shrink-only baseline, the ROOT BOUND in both directions with its own shrink-only baseline and control, and the compiler legs through the real harness).pnpm check:doc-snippetsEvery covered documentation snippet compiles against the built types.pnpm exec vitest run scripts/__tests__/check-skill-examples.test.ts scripts/__tests__/check-skill-eval-tokens.test.tsTest Files 2 passed (2)/Tests 117 passed (117)pnpm check:skills-paths✅ check-skills-paths: OK (88/89 stated path(s) resolve across 20 guide file(s); 1 baselined).pnpm check:skill-eval-tokensEvery must_contain token is taught by its own skill bundle.pnpm check:doc-fences✅ check:doc-fences — every TypeScript block in 227 document(s) is fenced ts/tsx/typescript, except 80 declared file(s) carrying 90 block(s) of objectui#5867's remaining population (⛔ SHRINK-ONLY). No unknown fence spelling hides one.pnpm check:control-bytes✅ check-control-bytes: OK (scanned 6237 tracked text file(s); skipped 85 binary).node scripts/check-changeset-presence.mjs✅ No source or published contract of a released package changed in this range, so no changeset is owed.pnpm lintTasks: 47 successful, 47 total(0 errors; the 2878 warnings are the repository's standingno-explicit-anypopulation, none in this diff)Notes on two of those:
check:doc-snippetsfirst exited 2 (PRECONDITION NOT MET— five packages unbuilt), which is "I could not run", never a verdict about a document. Built what its own--build-filternamed, re-ran, exit 0. The failing run is reported here rather than dropped, because a 2 that is quietly retried until green is indistinguishable from a 2 that was never noticed.check-changeset-presenceis the decider for this PR, per the card: it says no changeset is owed, so none is added and ⛔ noskip-changesetlabel is applied.scripts/check-skill-examples.mjswas also linted directly against the repository's own config (eslint --no-inline-config --format json), to showpnpm lint's green actually covers the edited file rather than merely not excluding it: 1 file in the population, 0 errors, 0 warnings.Governed surface
skills/objectui/**is the published skills catalog andscripts/**carries the gate, so this PR stays a draft for a human to merge — not flipped ready, no auto-merge, no merge queue, no reviewers requested. The seat reviews at the contract tier and requests the approvers.A parallel flight, objectui#7555, swaps the import reader in both gates. That is a different region of
check-skill-examples.mjs; this change is confined to the rows, the floor and the guide. Whichever lands second mergesmainfirst.Session:
https://claude.ai/code/session_019RfFHiRCSs3JXLK4cwcfoxMerge round —
mainmerged at5d27493PR #7569 (objectui#7555, the AST import reader) landed on
mainas78d592band conflicted with this branch in exactly one place. Mergedorigin/mainwith a merge commit (no rebase, no force-push); merge commit5d27493.The one conflict, and the resolution. Both branches add a paragraph at the same position in the header docblock of
scripts/check-skill-examples.mjs. Both paragraphs are kept and nothing else is in the resolution. Order follows the prose above them: #7569's paragraph — the report OF the refusals must be read the same way the refusals are, both now going through the harness'smoduleSpecifiersOfBlock— comes first, because the paragraph immediately before it ends on theUnmapped specifiersline that paragraph is about. This branch's paragraph, "a refused fence is NOT type-checked", follows in its updated form recording the four rows' retirement. The other side's copy of that second paragraph is the pre-edit original and is superseded by the updated one, not dropped.Both sides verified across the merge, by grep at the merged head rather than by assumption:
KNOWN_ROOT_DEVDEP_EXAMPLES = new Set([])(:622),MARKED_FLOORts13(:462),skills/objectui/guides/testing.mdbyte-identical to this branch's own commit (git diff f7de6dcon that path: zero lines) with 0 markers and 4 reason lines — and, from #7569, themoduleSpecifiersOfBlockimport (:311) and both of its call sites (:985,:1026), plus the definition and call site incheck-doc-snippet-types.mjs.Gate union re-run at the merged head
5d27493, exit captured by redirect before any pipe, verdict lines quoted from the gates themselves. Every one of the five values the seat's merge probe predicted came back exactly as predicted:pnpm check:skill-examplesUnmapped specifiers: none — every bare import of a selected fence is covered by the map above.·Marked: 13 ts fence(s) (floor 13), 39 json fence(s) (floor 39)·Root bound: no selected fence imports a specifier that resolves only through the repository's ROOT manifest.·Semantic phase: 13 of 13 ts fence(s) judged, 0 failed.·Every marked skill example holds up against the built types.node scripts/check-skill-examples.mjs --self-testcheck-skill-examples self-test: 52 cases pass (...)pnpm check:doc-snippetsSemantic phase: 455 of 455 block(s) judged, 0 failed.·Every covered documentation snippet compiles against the built types.pnpm exec vitest run scripts/__tests__/check-skill-examples.test.ts scripts/__tests__/check-doc-snippet-types.test.tsTest Files 2 passed (2)·Tests 154 passed (154)pnpm check:skills-paths✅ check-skills-paths: OK (88/89 stated path(s) resolve across 20 guide file(s); 1 baselined).pnpm check:skill-eval-tokensEvery must_contain token is taught by its own skill bundle.pnpm check:doc-fences✅ check:doc-fences — every TypeScript block in 227 document(s) is fenced ts/tsx/typescript ...pnpm check:control-bytes✅ check-control-bytes: OK (scanned 6238 tracked text file(s); skipped 85 binary).node scripts/check-changeset-presence.mjs✅ No source or published contract of a released package changed in this range, so no changeset is owed.(merge-base now78d592bb9; still 2 files changed, still none of them published source)pnpm lintTasks: 47 successful, 47 totalpnpm check:doc-snippetsneeded its own--build-filterset built first, as before; that build ran green ahead of the measurement.State after the push. Head moved to
5d27493,mergeable: true, andmergeable_stateisbehindrather thandirty— the conflict is gone.behindis only because one unrelated commit, PR #7571 (apackages/fieldstest change), landed onmainafter this merge; it does not touch this PR's surface, and the ACCEPT on objectui#7555 records that the queue's own merge absorbs that state. Chasing it with a second merge would just race the next landing, so it was left alone. Still a draft: not flipped ready, no auto-merge, reviewers (already requested) untouched, no labels, no assignees.Generated by Claude Code — session
https://claude.ai/code/session_019RfFHiRCSs3JXLK4cwcfox. This attribution is written as prose because thePATCHbehind a PR-body update is measured to delete the footer block; the block is still appended below, and this line is what survives if it goes.Generated by Claude Code
Generated by Claude Code