# Build-time work stays out of requests

> For agents: start with the [agent guide](https://ratstack.sh/llms.txt). Every page is Markdown by default; add `Accept: text/html` for HTML.

Free workshop: [how to burn a trillion tokens and get good results](/tokenmaxx#interested).

The existing [asset writer](https://github.com/joelhooks/rat-stack/blob/main/apps/mischief/scripts/emit-assets.ts) emits content-addressed output.
The Worker reads that output through [static assets](https://github.com/joelhooks/rat-stack/blob/main/apps/mischief/src/static-assets.ts).

The [code-snippets design brief](/lore/code-snippets) keeps Git reads and highlighting in build-time work.
Request-time work receives static output.
It does not resolve Git objects or start Shiki.

The proposed gate checks that neither the snippet package nor Shiki enters the startup bundle.
The existing [startup budget](https://github.com/joelhooks/rat-stack/blob/main/apps/mischief/scripts/startup-budget.ts) limits:

- Entry JavaScript to 3,300,000 bytes.
- Complete JavaScript upload to 5,000,000 bytes.

A passing size check alone does not prove the import boundary.
Check the bundle graph too.

[Preflight](/lore/accumulate-independent-errors) finishes before asset emission.
[Pinned sources](/lore/pinned-sources-can-report-drift) require no generation-time network fetch.

See [the glossary](/glossary) for build-time work and request-time work.

## Sources

1. [Asset emission](https://github.com/joelhooks/rat-stack/blob/main/apps/mischief/scripts/emit-assets.ts)
   Primary source. Build output Accessed 2026-10-02.

2. [Static assets](https://github.com/joelhooks/rat-stack/blob/main/apps/mischief/src/static-assets.ts)
   Primary source. Request-time asset access Accessed 2026-10-02.

3. [Startup budget](https://github.com/joelhooks/rat-stack/blob/main/apps/mischief/scripts/startup-budget.ts)
   Primary source. Worker bundle limits Accessed 2026-10-02.

## Linked from

- Agent guide → An Effect stack so pure (aspirational) Kit Langton will blush. → [Read page](https://ratstack.sh/llms.txt)

- Change log → What changed in the files served here, newest first. → [Read page](https://ratstack.sh/log)

- Code snippets quote a pinned source → Design brief for a build-only code pipeline: pinned Git objects, typed diagnostics, and one snippet model for both views. → [Read page](https://ratstack.sh/lore/code-snippets)

- Full agent guide → An Effect stack so pure (aspirational) Kit Langton will blush. → [Read page](https://ratstack.sh/llms-full.txt)

- log.md → The generated change log as Markdown. → [Read page](https://ratstack.sh/log.md)

- Pin the source and report drift separately → A pinned excerpt stays fixed while a separate diagnostic compares it with HEAD. → [Read page](https://ratstack.sh/lore/pinned-sources-can-report-drift)

- Rat Stack lore | rat-stack → Short, source-grounded notes on the ideas and decisions behind rat-stack. → [Read page](https://ratstack.sh/lore)
