Skip to content

Consume exact docs runtime artifacts - #4673

Closed
hellovai wants to merge 1 commit into
codex/docs-versioned-runner-artifactfrom
codex/docs-runtime-consumer
Closed

Consume exact docs runtime artifacts#4673
hellovai wants to merge 1 commit into
codex/docs-versioned-runner-artifactfrom
codex/docs-runtime-consumer

Conversation

@hellovai

@hellovai hellovai commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Outcome

Fumadocs now consumes the exact browser runtime associated with its selected default toolchain, while continuing to render several immutable language and CLI reference versions together.

The build:

  • resolves runtime.json from the curated version index or explicit file/URL inputs;
  • validates payload, version, source revision, JS/WASM hashes, and delivery budgets;
  • downloads only the default version's runtime, not every retained toolchain;
  • materializes same-origin content-addressed assets for the worker;
  • hard-fails provenance mismatches instead of pairing the wrong compiler and reference;
  • removes the 17 MB checked-in WASM snapshot, generated JS, and serving manifest from Git.

Pull-request CI builds metadata and WASM from the same exact source SHA, verifies native/WASM output parity, uploads both as one preview input, and gives Vercel a TypeScript-only prebuilt artifact flow.

End-user impact

When the docs selector/default points at a released toolchain, runnable examples now execute the matching runtime rather than a repository snapshot from an unrelated version. Historical reference versions remain visible; old entries created before runtime publishing are supported during migration.

Verification

  • 42 docs tests pass.
  • Derived-content policy confirms no reference, book, or runtime artifact is tracked.
  • Fresh bridge_wasm source build packaged as BAML 0.18.0 from commit e4381e9….
  • Metadata generation found 13 packages, 1,433 language items, and 29 CLI commands.
  • Native CLI/WASM parity returned "hello from BAML".
  • Typecheck and production build pass.
  • Chromium runner smoke passes: cold p95 4.48 s, warm p95 2 ms.

@vercel

vercel Bot commented Sep 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
beps Ready Ready Preview Sep 1, 2026 7:44am UTC
developer-docs Ready Ready Preview Sep 1, 2026 7:44am UTC
promptfiddle2 Ready Ready Preview Sep 1, 2026 7:44am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

⏭️ Performance benchmarks were skipped

Perf benchmarks (CodSpeed) are opt-in on pull requests — they no longer run on every push. They always run automatically after merge to canary/main.

To run them on this PR, do any of the following, then push a commit (or re-run CI):

  • Add RUN_CODSPEED=1 to the PR description, or
  • Include run-perf or /perf in the PR title or any commit message.

@vercel
vercel Bot temporarily deployed to Preview – developer-docs September 1, 2026 07:15 Inactive
@vercel
vercel Bot temporarily deployed to Preview – beps September 1, 2026 07:16 Inactive
@vercel
vercel Bot temporarily deployed to Preview – promptfiddle2 September 1, 2026 07:24 Inactive
@hellovai
hellovai force-pushed the codex/docs-versioned-runner-artifact branch from e4381e9 to 9de6800 Compare September 1, 2026 07:24
@hellovai
hellovai force-pushed the codex/docs-runtime-consumer branch from b2d1ef7 to 6c366e2 Compare September 1, 2026 07:24
@vercel
vercel Bot temporarily deployed to Preview – developer-docs September 1, 2026 07:25 Inactive
@vercel
vercel Bot temporarily deployed to Preview – beps September 1, 2026 07:26 Inactive
@vercel
vercel Bot temporarily deployed to Preview – promptfiddle2 September 1, 2026 07:34 Inactive
@hellovai
hellovai force-pushed the codex/docs-versioned-runner-artifact branch from 9de6800 to 3fb1257 Compare September 1, 2026 07:34
@hellovai
hellovai force-pushed the codex/docs-runtime-consumer branch from 6c366e2 to 312727d Compare September 1, 2026 07:35
@vercel
vercel Bot temporarily deployed to Preview – developer-docs September 1, 2026 07:35 Inactive
@vercel
vercel Bot temporarily deployed to Preview – beps September 1, 2026 07:36 Inactive
@vercel
vercel Bot temporarily deployed to Preview – promptfiddle2 September 1, 2026 07:44 Inactive
@hellovai

hellovai commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Closing at the author's request; the docs work will restart from scratch.

@hellovai hellovai closed this Sep 1, 2026
@hellovai
hellovai deleted the codex/docs-runtime-consumer branch September 1, 2026 09:33
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