Skip to content

chore(docs): phase 0 guardrails: current SDKs, sample/anchor/prose checks, PR CI - #201

Merged
vilenarios merged 1 commit into
mainfrom
docs/phase-0-guardrails
Nov 16, 2026
Merged

vilenarios merged 1 commit into
mainfrom
docs/phase-0-guardrails

Conversation

@vilenarios

Copy link
Copy Markdown
Contributor

Phase 0 of the docs audit fix plan. It adds the checks that later phases rely on, plus a few fixes those checks turned up. It doesn't touch any published page except two broken anchors.

What changes

  • The SDK versions readers actually install. The repo was type-checking against pre-Solana @ar.io/sdk 3.20 and turbo-sdk 1.31. It now pins @ar.io/sdk 4.5.2, @ardrive/turbo-sdk 2.2.0, Wayfinder 2.0.2, turbo-upload 0.7.0 and ardrive-core-js 5.1.1 as devDependencies. Removed: aoconnect, dotenv, the typedoc packages, the dead test-arns/test-signer scripts, and scripts/delete-arns-undername.mjs. That script was an AO-era utility nothing ran, and it signed with an Arweave key.
  • yarn check-samples type-checks every ts/js code sample that imports an SDK, against the pinned versions. It allows names a fragment never defines, except an SDK export, which means a missing import. Known failures are listed in scripts/code-samples-baseline.json, so CI fails only on new breakage. Today: 129 samples, 87 pass, 42 in the baseline.
  • yarn check-links now validates #anchors, including same-page anchors, which it skipped before. Heading ids come from github-slugger, matching Fumadocs. Broken anchors in generated SDK pages are warnings until the generator is fixed. In hand-written pages they are errors.
  • yarn lint-prose reports the mechanical subset of the writing guidelines (1,558 issues today). It's report-only until the style pass.
  • .github/workflows/checks.yaml runs lint, tsc, links, samples and the prose report on every PR and on every push to main.
  • public/SKILL.md is rewritten for the 4.x API (ARIO.init, await ANT.init({ rpc, ... }), full 64-byte Solana key for Turbo). Its samples now pass the checker.
  • CLAUDE.md is updated to match. 13 pages are reopened in working/MIGRATION_STATUS.md, with the reason for each.

Verification

yarn install --frozen-lockfile, yarn lint, npx tsc --noEmit, yarn check-links (0 errors), yarn check-samples (0 new failures), and yarn build (353 pages) all pass on Node 22.14.0.

Notes

  • generateBuildId hashes yarn.lock, so the first deploy after this merges re-uploads every page once. Plan to deploy after Phase 1, not after this PR.
  • PRs opened with GITHUB_TOKEN (the weekly regenerate workflow) don't trigger checks.yaml. A regenerated sample that is still broken will need yarn check-samples --update-baseline.

🤖 Generated with Claude Code

…ecks, PR CI

- Pin the SDKs readers install (@ar.io/sdk 4.5.2, turbo-sdk 2.2.0,
  wayfinder 2.0.2, turbo-upload 0.7.0, ardrive-core-js 5.1.1) as
  devDependencies; drop aoconnect, dotenv, typedoc and dead scripts.
- check-samples: type-check every SDK code sample against those versions,
  with a baseline of known failures so CI fails only on new breakage.
- check-links: validate same-page and cross-page #anchors using
  github-slugger heading ids.
- lint-prose: report mechanical writing-guideline violations (report-only).
- checks.yaml: run lint, tsc, links, samples and prose report on every PR.
- Rewrite public/SKILL.md for the SDK v4 API; fix two broken anchors.
- Update CLAUDE.md and reopen 13 rows in MIGRATION_STATUS.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vilenarios
vilenarios requested a review from a team as a code owner November 16, 2026 14:00
@vilenarios
vilenarios merged commit fe1fc06 into main Nov 16, 2026
1 check passed
@vilenarios
vilenarios deleted the docs/phase-0-guardrails branch November 16, 2026 21:14
vilenarios added a commit that referenced this pull request Nov 16, 2026
Resolve the CLAUDE.md conflict with #201: keep its <Image> (next/image)
and Lucide-shadowing lines, and this branch's Mermaid, Math and Brand lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant