Skip to content

chore(spec): drop the stale "No backticks in surface" comments from semantic migration entries - #28350

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-10z58w
Oct 31, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-10z58w

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread
Fixes #27731

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:删掉 223 个语义迁移条目里那句过时的「surface 里不许写反引号」注释,并删掉 compliance-families-retirement.test.ts 里同一理由的那条断言。
  • 为什么改:升级指南的渲染器已改为按 CommonMark 规则给 surface 加围栏,反引号能正确渲染;这些注释与断言描述的限制已不存在,会误导下一个作者。
  • 风险与回滚:只动注释行和一条测试断言,任何条目数据(surface/replacement/reason/acceptanceCriteria)一字未动,已用脚本逐条比对证明;不发布任何字节;回滚即 revert 本 PR。
  • 先看: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

  • 223 semantic migration entries under packages/spec/src/migrations/entries/semantic/ lose the workaround comment that said a surface must 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.ts fences every surface through scripts/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).
    • 222 files carry the "No backticks" spelling (the card counted 219 at ef359b95; new entries landed since). The 223rd is 17.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 on spec-type-alias-input-suffix-retired"), so it goes too.
    • 216 files: the comment was its own paragraph, removed together with one adjacent blank // 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, see minRegisteredMajorForLeaf); that half is kept, reworded to stand alone.
  • packages/spec/src/system/compliance-families-retirement.test.ts: the remaining expect(entry.surface).not.toMatch(...) no-backtick assertion and its stated reason are dropped. The order said a grep for BACKTICK at 3d9175d0 found nothing; that is because the card spelled the regex out in words. The assertion itself (a literal backtick regex) was still there at 501c864d, measured and removed.
  • No generator or template emits the comment: 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 under scripts/ or packages/spec/scripts/ and no skill writes an entry template carrying it.
  • No line-number anchor points into these files (git grep for entries/semantic/...ts:N finds none), so no ledger drifts.

Tests

  • Proof that only comments moved (script kept out of the tree): for each of the 223 changed entry files, the TypeScript AST printed with removeComments at base 501c864d equals the one at head: 223/223 identical. Then each entry module was imported from both trees and the whole entry object compared as JSON (id, surface, replacement, reason, acceptanceCriteria and every other key; 1147 keys): 223/223 identical.
  • Negative control: with one surface changed by one prefix in 18.page-slots-tabs-retired.ts (committed, measured, reset), both comparisons report 222/223 and name that file; the tree was restored (git status clean).
  • pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/system/compliance-families-retirement.test.ts src/migrations at 3737a157: Test Files 6 passed (6), Tests 204 passed (204).
  • pnpm --filter @objectstack/spec typecheck at 3737a157: exit 0.

Acceptance notes

  • No changeset (skip-changeset): nothing published moves. @objectstack/spec files[] ships dist, src/**/*.zod.ts and generated artifacts; the entries are *.ts (not .zod.ts) and the test is .test.ts. After a full build at 3737a157, grep -rlF "No backticks" and grep -rlF "Plain text, no markdown" over every files[] path hit 0 files, while the positive control (SqlDriver.distinct() third argument, an entry surface) hits 2 files in dist.
  • No governed path in the diff (all paths are under packages/spec/src/).
  • The order's 222-file measurement held; the 223rd file is the same workaround in different words, inside the order's file surface (comment lines in entries/semantic/**).

Verification

Head 3737a157, base 501c864d. 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-test first exited 3 on the shallow clone (its pinned positive-control commit was missing); after git fetch origin 621a487607881c66b2899b7e3477115229a156b4 --depth=1 it exits 0 (48 cases). Local-only pnpm check:dev-prereqs: exit 0.

node scripts/check-adr-0087-registration.mjs --base origin/main :: exit 0
node scripts/check-adr-0087-registration.mjs --self-test :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-adoption.mjs :: exit 0
node scripts/check-comment-mask-adoption.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-dev-prereqs.mjs --self-test :: exit 0
node scripts/check-dts-emitted.mjs --self-test :: exit 0
node scripts/check-issue-citations.mjs :: exit 0
node scripts/check-plugin-teardown-shape.mjs :: exit 0
node scripts/check-plugin-teardown-shape.mjs --self-test :: exit 0
node scripts/ci/assert-turbo-remote-cache.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
node scripts/ci/prune-turbo-cache.mjs --self-test :: exit 0
node scripts/docs-audit/check-affected-docs.mjs :: exit 0
node scripts/docs-audit/check-drift-comment.mjs :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm --filter @objectstack/spec run check:api-surface :: exit 0
pnpm --filter @objectstack/spec run check:authorable-surface :: exit 0
pnpm --filter @objectstack/spec run check:browser-reachable-entries :: exit 0
pnpm --filter @objectstack/spec run check:docs :: exit 0
pnpm --filter @objectstack/spec run check:dual-source-exports :: exit 0
pnpm --filter @objectstack/spec run check:duration-unit-keys :: exit 0
pnpm --filter @objectstack/spec run check:empty-state :: exit 0
pnpm --filter @objectstack/spec run check:entry-nameability :: exit 0
pnpm --filter @objectstack/spec run check:export-origins :: exit 0
pnpm --filter @objectstack/spec run check:exported-any :: exit 0
pnpm --filter @objectstack/spec run check:liveness :: exit 0
pnpm --filter @objectstack/spec run check:llms-txt :: exit 0
pnpm --filter @objectstack/spec run check:skill-refs :: exit 0
pnpm --filter @objectstack/spec run check:spec-changes :: exit 0
pnpm --filter @objectstack/spec run check:strictness-ledger :: exit 0
pnpm --filter @objectstack/spec run check:upgrade-guide :: exit 0
pnpm --filter @objectstack/spec run check:variant-docs :: exit 0
pnpm --filter @objectstack/spec run check:yaml-examples :: exit 0
pnpm check:changeset-gate-self-tests :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:dispatcher-error-vocabulary :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:dts-closure :: exit 0
pnpm check:dual-build-cjs-loads :: exit 0
pnpm check:engine-double-contract :: exit 0
pnpm check:future-spec-major :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:issue-citations :: exit 0
pnpm check:keyed-text-bounds :: exit 0
pnpm check:lean-entry-closure :: exit 0
pnpm check:logger-receiver-detach :: exit 0
pnpm check:merge-driver :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:objectql-double-limit :: exit 0
pnpm check:org-identifier :: exit 0
pnpm check:page-declaration-shape :: exit 0
pnpm check:platform-object-tenancy-census :: exit 0
pnpm check:pm-prior-rulings :: exit 0
pnpm check:published-files :: exit 0
pnpm check:query-options-erasure :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:registry-log-declared :: exit 0
pnpm check:rest-log-spy-declared :: exit 0
pnpm check:role-word :: exit 0
pnpm check:slot-lookup :: exit 0
pnpm check:sourcemap-no-sources-content :: exit 0
pnpm check:spec-docblock-symbol-anchors :: exit 0
pnpm check:spec-parsed-alias :: exit 0
pnpm check:system-context-census :: exit 0
pnpm check:test-source-alias :: exit 0
pnpm check:tier-file-adoption :: exit 0
pnpm check:type-check-coverage :: exit 0
pnpm check:type-check-debt :: exit 0
pnpm check:undeclared-dep-imports :: exit 0
pnpm check:watch-hint-literal :: exit 0
pnpm check:where-matcher :: exit 0

Generated by Claude Code

…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
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Oct 31, 2026
@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

⚠️ 223 changed file(s) yielded no anchor (packages/spec/src/migrations/entries/semantic/17.action-descriptor-resume-authority-default-flip.ts, packages/spec/src/migrations/entries/semantic/17.approval-escalation-enabled-default-flip.ts, packages/spec/src/migrations/entries/semantic/17.audit-log-action-enum-retired.ts, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files. Nothing else in this diff resolved to a documentable surface (no symbol, route or SDK anchor derived from 1 changed package(s)).

What this run could not see
  • 223 changed file(s) yielded no anchor (packages/spec/src/migrations/entries/semantic/17.action-descriptor-resume-authority-default-flip.ts, packages/spec/src/migrations/entries/semantic/17.approval-escalation-enabled-default-flip.ts, packages/spec/src/migrations/entries/semantic/17.audit-log-action-enum-retired.ts, …) — pages documenting those are invisible to this run
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 168 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 3d2da4fd1a8d270e303cfc99a2c330e808c8f26e → packageMentionDocs.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#2 · os-tesla · session_01L9qibx5r5nhDMwpRs4SL6D

Seat note on the red "TypeScript Type Check" at head 3737a157 (2026-10-31T06:59Z): judged a runner hang, not this PR. Its lane "Type Check · consumer gates" (job 124460412845, lint.yml run 41174933997) stopped logging at 06:08:25Z mid turbo cache replay (@objectstack/trigger-schedule:build, "ESM/CJS Build start") and was cancelled at the job timeout, 06:57Z. The other three lanes are green; the diff is comment lines plus one dropped test assertion; the same job on lint.yml runs 06:30–06:45Z finished green in 4–11 min.

rerun-failed.mjs refuses this run by its fences (it re-runs only ci.yml runs concluded failure; this is lint.yml, cancelled). The branch is 24 commits behind main, so the card thread merges origin/main into it, a real update that runs the workflow again. A second red on that head is treated as real.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:spec#2 · os-tesla · session_01L9qibx5r5nhDMwpRs4SL6D

维护者速读

  • 改了什么: 删掉 223 个语义迁移条目里过时的「surface 里不许写反引号」注释,以及 compliance-families-retirement.test.ts 里同一理由的一条断言。
  • 为什么改: 升级指南渲染器早已按 CommonMark 给 surface 加围栏,反引号能正确渲染;这些注释描述的限制已不存在,会误导下一个作者。
  • 风险与回滚: 只动注释行和一条测试断言;223 个文件逐条比对(去注释 AST 与导入后的条目对象)全部一致,并有负对照。不发布任何字节。回滚即 revert。
  • 先看: packages/spec/src/migrations/entries/semantic/18.filter-is-empty-lowers-to-empty-operator.ts(唯一保留半句的文件)。
  • 两分钟验证: git grep -c -i "No backticks" -- packages/spec/src/migrations/entries/semantic | wc -l,预期 0。
  • 需要你做的: 无。不属于受管面,纯注释,由席位落地。
  • 席位意见: ACCEPT,可落地。

席位核对 · ACCEPT · domain:spec seat 2 (#18549) · 2026-10-31T07:31Z

Head 434acdec6d4971b4c3125a6db3601a968b2ea40f (merge of origin/main into 3737a157; delta against main unchanged). Card #27731, claim 6539501940.

  • Shape: draft to main, made by the relay; Fixes #27731; Clause-②: no, Metadata-protocol: none at line start. skip-changeset: nothing in @objectstack/spec files[] moves (measured after a full build).
  • Contract review: none owed. Comment lines and one test assertion; no key, type, default, accept set or entry datum moves.
  • Diff read by the seat: 224 files, +7/−464. The removed rule is false: build-upgrade-guide.ts fences each surface via markdown-code-span.ts and escapes | per table cell. The one still-true half (no ' / ' in a surface, the clause split) is kept on 18.filter-is-empty-lowers-to-empty-operator.ts. The dropped assertion pinned the retired rule only.
  • Follow-ups filed: none owed.
  • Gates: the earlier red at 3737a157 was a runner hang in "Type Check · consumer gates" (seat note 6540358496); at this head check-runs 38 success, 11 skipped, 0 red, all four Type Check lanes green. mergeable_state clean. check-governed-merges --branch: NOT governed, 224 paths, +7/−464.
  • Authority: maintainer standing go-ahead 「按 pm-dispatch 审过的pr你可以自主落地」 (2026-10-30T14:20Z, project thread).
  • Landing: pr_ready + automerge_enable in this act.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 31, 2026 07:32
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 31, 2026 07:32
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit 1581ad3 Oct 31, 2026
50 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-10z58w branch October 31, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

protocol:system size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate tests

Projects

None yet

1 participant