Skip to content

docs(check-skill-examples): drop the stale zero-jsonc-fences claim - #7631

Merged
os-steve merged 1 commit into
mainfrom
claude/issue-7610-jsonc-docblock-count
Sep 4, 2026
Merged

docs(check-skill-examples): drop the stale zero-jsonc-fences claim#7631
os-steve merged 1 commit into
mainfrom
claude/issue-7610-jsonc-docblock-count

Conversation

@claude

@claude claude Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Fixes #7610

parseJsonFence's docblock (in scripts/check-skill-examples.mjs) said "There
are zero jsonc fences in the corpus today" as the reason the dialect is
recognised. That stopped being true at PR #7473 (16 comment-carrying fences
retagged jsonc) and PR #7608 moved it further. The sentence read as "this
branch has never run in anger" — the opposite of the truth, and a risk that a
reader deletes or weakens the branch as dead code (filed out of scope by the
#7474 dev seat working PR #7608, whose dispatch pinned this file to its
MARKED_FLOOR json row only).

Change

One sentence, no behaviour change:

Before:

There are zero jsonc fences in the corpus today; the language is
recognised so that adding one is not a silent no-op.

After:

The jsonc branch is exercised by fences already in the corpus, not merely
reserved for a hypothetical one; re-derive the population with --measure.

Went with the count-free form per the triage/dispatch preference: the
docblock's point (why the dialect is recognised, and that the branch is live)
survives without a number, and it matches the file's own convention for its
other counts elsewhere in the header ("Re-derive it with --measure" /
"Re-derive it with pnpm check:skill-examples").

Measured on this branch (same tree as origin/main at merge-base 11edab8)
with the gate's own scanner, node scripts/check-skill-examples.mjs --measure:
41 json and 29 jsonc fences under skills/objectui — a control
grep -c '^```jsonc' gives the same 29 but is not the measurement used.

Verification

  • node scripts/check-skill-examples.mjs (the gate, whole corpus) — exit 0,
    "Every marked skill example holds up against the built types."
  • node scripts/check-skill-examples.mjs --self-test — exit 0, "52 cases pass"
    (identical case count to origin/main).
  • pnpm exec vitest run scripts/__tests__/check-skill-examples.test.ts scripts/__tests__/check-skill-eval-tokens.test.ts — exit 0, "Test Files 2
    passed (2)", "Tests 120 passed (120)".
  • pnpm check:control-bytes — exit 0.
  • pnpm check:shell-escape-residue — exit 0.
  • pnpm lint (whole repo, heap-capped) — exit 0, 47/47 tasks, pre-existing
    warnings only, none touching this file.
  • node scripts/check-changeset-presence.mjs — "No source or published
    contract of a released package changed in this range, so no changeset is
    owed."

Scope: scripts/check-skill-examples.mjs only — not a governed surface here
(scripts/**), draft PR for in-seat review, ready + auto-merge by the seat.

Generated by Claude Code


Generated by Claude Code

`parseJsonFence`'s docblock said "There are zero `jsonc` fences in the
corpus today" as the reason the dialect is recognised. That stopped being
true at PR #7473 (16 comment-carrying fences retagged `jsonc`) and PR
#7608 moved it further (41 `json` / 29 `jsonc` today, confirmed with
`node scripts/check-skill-examples.mjs --measure`). The sentence read as
"this branch has never run in anger" — the opposite of the truth, and a
risk that a reader deletes or weakens the branch as dead code.

Rewritten to a count-free statement, in the same convention the file's
own header uses for its other counts ("Re-derive it with `--measure`"):
the branch is exercised by fences already in the corpus, not merely
reserved for a hypothetical one. No behaviour change.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019RfFHiRCSs3JXLK4cwcfox
@os-steve
os-steve marked this pull request as ready for review September 4, 2026 12:00
@os-steve
os-steve added this pull request to the merge queue Sep 4, 2026
Merged via the queue into main with commit 0b24d7f Sep 4, 2026
31 checks passed
@os-steve
os-steve deleted the claude/issue-7610-jsonc-docblock-count branch September 4, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[finding] parseJsonFence's docblock still says "there are zero jsonc fences in the corpus today" — there are 29

2 participants