Repository navigation
chore(spec): drop the stale "No backticks in surface" comments from semantic migration entries - #28350
Conversation
…ents The upgrade-guide renderer now fences every semantic entry's `surface` by CommonMark 6.1 (scripts/lib/markdown-code-span.ts), so a backtick inside a surface renders correctly and the workaround comment states something false about the renderer. Remove it from all 223 semantic migration entries that carry it (222 with the "No backticks" spelling plus the originating "Plain text, no markdown" note on spec-type-alias-input-suffix-retired), keeping the one still-true half on filter-is-empty-lowers-to-empty-operator (no ' / ' clause separator). Comment lines only: no entry data moves. Also drop the matching no-backtick assertion and its stated reason from compliance-families-retirement.test.ts, the sibling the earlier renderer fix missed. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibwMinUv84kKooNoXvw
📓 Docs Drift Check
What this run could not see
Coarse fallback — 168 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): |
|
domain:spec#2 · os-tesla · session_01L9qibx5r5nhDMwpRs4SL6D Seat note on the red "TypeScript Type Check" at head
|
|
domain:spec#2 · os-tesla · session_01L9qibx5r5nhDMwpRs4SL6D 维护者速读
席位核对 · ACCEPT ·
|
Requested by Tesla · project thread
Fixes #27731
Clause-②: no
Metadata-protocol: none
维护者速读
surface里不许写反引号」注释,并删掉compliance-families-retirement.test.ts里同一理由的那条断言。surface加围栏,反引号能正确渲染;这些注释与断言描述的限制已不存在,会误导下一个作者。packages/spec/src/migrations/entries/semantic/18.filter-is-empty-lowers-to-empty-operator.ts(唯一保留半句的文件)、packages/spec/src/system/compliance-families-retirement.test.ts、packages/spec/src/migrations/entries/semantic/17.spec-type-alias-input-suffix-retired.ts(这条过时说法的源头)。git grep -c -i "No backticks" -- packages/spec/src/migrations/entries/semantic | wc -l,预期输出 0。What changes
packages/spec/src/migrations/entries/semantic/lose the workaround comment that said asurfacemust carry no backticks (and, in some spellings, no pipes) because the upgrade guide renders it inside a code span and a table cell. That is no longer true:build-upgrade-guide.tsfences every surface throughscripts/lib/markdown-code-span.ts(CommonMark 6.1), and a semantic surface renders in a list item, not a table row (the conversion table escapes pipes per cell anyway).ef359b95; new entries landed since). The 223rd is17.spec-type-alias-input-suffix-retired.ts, whose "Plain text, no markdown … backticks here break both" note is the one the others point to ("see the note onspec-type-alias-input-suffix-retired"), so it goes too.//separator. 6 files: it was the trailing sentence of a longer paragraph, so only that sentence is cut. 1 file (18.filter-is-empty-lowers-to-empty-operator.ts): the comment also carried a still-true rule (no' / 'in a surface, because the schema build splits clauses on it, seeminRegisteredMajorForLeaf); that half is kept, reworded to stand alone.packages/spec/src/system/compliance-families-retirement.test.ts: the remainingexpect(entry.surface).not.toMatch(...)no-backtick assertion and its stated reason are dropped. The order said a grep forBACKTICKat3d9175d0found nothing; that is because the card spelled the regex out in words. The assertion itself (a literal backtick regex) was still there at501c864d, measured and removed.git grep -i "no backticks"outside the entries hits only unrelated text (docker/Dockerfile,scripts/check-regen-pending.mjs,scripts/symbol-anchors.mjs, an mcp test); no script underscripts/orpackages/spec/scripts/and no skill writes an entry template carrying it.git grepforentries/semantic/...ts:Nfinds none), so no ledger drifts.Tests
removeCommentsat base501c864dequals the one at head: 223/223 identical. Then each entry module was imported from both trees and the wholeentryobject compared as JSON (id, surface, replacement, reason, acceptanceCriteria and every other key; 1147 keys): 223/223 identical.18.page-slots-tabs-retired.ts(committed, measured, reset), both comparisons report 222/223 and name that file; the tree was restored (git statusclean).pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/system/compliance-families-retirement.test.ts src/migrationsat3737a157: Test Files 6 passed (6), Tests 204 passed (204).pnpm --filter @objectstack/spec typecheckat3737a157: exit 0.Acceptance notes
skip-changeset): nothing published moves.@objectstack/specfiles[]shipsdist,src/**/*.zod.tsand generated artifacts; the entries are*.ts(not.zod.ts) and the test is.test.ts. After a full build at3737a157,grep -rlF "No backticks"andgrep -rlF "Plain text, no markdown"over everyfiles[]path hit 0 files, while the positive control (SqlDriver.distinct() third argument, an entry surface) hits 2 files indist.packages/spec/src/).entries/semantic/**).Verification
Head
3737a157, base501c864d. Full workspace build first (pnpm turbo run build --filter='!@objectstack/docs' --concurrency=2, real.d.ts): 116/116 tasks.Derived gates: 77 derived, 77 run, all exit 0 (reconciled with dispatch-gates --ran: 0 NOT-MEASURED, 0 UNRUN)
check-plugin-teardown-shape --self-testfirst exited 3 on the shallow clone (its pinned positive-control commit was missing); aftergit fetch origin 621a487607881c66b2899b7e3477115229a156b4 --depth=1it exits 0 (48 cases). Local-onlypnpm check:dev-prereqs: exit 0.Generated by Claude Code