Skip to content

tooling: compile @example blocks in .ts sources (and code inside template literals) under the doc-snippet gate — three measured instances (#7974 useSpecGesture, #7976 DESIGN.md, #7977 mdx Output Example) share the blind spot #8258

Description

@os-zhuang

Filed by the director seat under the #7974 ruling (decision batch #70, 2026-09-07). Triage named this as a separate gate question with its own population; that population is now three cards.

The blind spot

check-doc-snippet-types.mjs compiles fenced blocks in Markdown documents. It does not read:

Scope

  • Extend the gate (or add a sibling) to extract @example blocks from exported symbols' JSDoc under packages/*/src/** and compile them against the built types, with the same ledger / exemption discipline the Markdown gate uses (UNGATED_DOCS-style burn-down if the first run is large).
  • Template-literal code: decide per case whether to extract (a fenced marker inside the literal) or to exempt with a reason; do not attempt to parse arbitrary strings.
  • First run: report the count of failing examples on this card before enforcing; enforce with a ledger that only shrinks.

Acceptance

Refs #7974, #7976, #7977, #5174.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain:devxobjectui devx stream: fix lands on .github/, scripts/ or release pipeline — devx lane cross-repofindingpriority:p3tooling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions