# 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.

New on /news: [Foldkit 0.171.0 requires result Message schemas](/news).

The existing [asset writer](https://github.com/joelhooks/rat-stack/blob/main/apps/site/scripts/emit-assets.ts) emits output identified by a hash of its content.
The Worker reads that output through [static assets](https://github.com/joelhooks/rat-stack/blob/main/apps/site/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 check verifies that neither the snippet package nor Shiki enters the startup bundle.
The [startup report](https://github.com/joelhooks/rat-stack/blob/main/apps/site/scripts/startup-report.ts) fails the build when a build-only module enters a Worker upload, and logs each Worker's size.

Check the modules included in the bundle, as well as its size, to verify which packages it includes.

[Checks before writing output](/lore/accumulate-independent-errors) finish before assets are written.
[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/site/scripts/emit-assets.ts)
   Primary source. Build output Accessed 2026-10-02.

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

3. [Startup report](https://github.com/joelhooks/rat-stack/blob/main/apps/site/scripts/startup-report.ts)
   Primary source. Worker bundle report and build-only module check Accessed 2026-10-02.

## Lore on this page

- [Workers answer requests; Durable Objects own named state](/lore/workers-answer-requests-durable-objects-own-named-state)

## 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 → Shipped design brief: pinned Git objects, typed diagnostics, and one build-only 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)

- 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)

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

## Unlinked mentions

- [Code snippets quote a pinned source](https://ratstack.sh/lore/code-snippets) → Content-addressed output and Turbo provide reuse between builds.¶
