Skip to content

Docs snippet-check hardening (AST-based) #94

Description

@truthixify

Extra labels: ci, dx
Tier: M (2-4 days) | Type: ci

Context. The snippet-check gate compiles each fence in isolation. That catches syntax errors but misses import-resolution errors. Move to a small monorepo that installs the current SDK + tries to type-check each snippet against real types.

Scope.

  • scripts/snippet-check/ sets up a project per language (ts + tsx).
  • Fetches SDK from workspace or latest published.
  • Runs tsc --noEmit per snippet.
  • Preserves the no-check opt-out for pseudo-code.

Acceptance.

  • Real broken import in a fence fails CI
  • Existing 438 passing fences still pass
  • Wall-clock still < 3 minutes

Files. scripts/snippet-check/, .github/workflows/snippets.yml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programcidocsDocumentationdripsFunded via Drips NetworkdxDeveloper experiencehelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions