# Index — Atrium corpus

The front door. What lives where.

## Navigation
- [../CLAUDE.md](../CLAUDE.md) — repo-root guide: project one-liner, corpus schema + conventions, design enforcement
- [log.md](log.md) — chronological change record
- [routing.md](routing.md) — orchestrate routing profile

## Wiki (synthesis)

Catalog generated from each page's `summary:` frontmatter — run
`bash corpus/lint.sh --index` to regenerate; do not hand-edit between the markers.

<!-- BEGIN wiki-catalog (generated by lint.sh --index) -->
- [api-layering.md](wiki/api-layering.md) — How apps/api is organised since D47 — the domain modules (lookup's outbound clients included), what a controller/service/model may and may not do, the tagged-union outcome convention, profile scoping in SQL, how Knex migrations are registered, and how the API test harness keeps tests off the real library.
- [architecture.md](wiki/architecture.md) — How the app is put together — the npm-workspaces monorepo (web/api/shared), the API's module/controller/service/model layering, Knex migrations, the auth guard, and the upload→store→read data flow.
- [conversion.md](wiki/conversion.md) — Convert — the same book in either format, as linked library rows produced by an async Calibre job. Both directions, cancellable, quality-graded, and read in-app.
- [decisions.md](wiki/decisions.md) — Locked tech/design decisions (D1–D59) — the settled calls future briefs and reviews must not relitigate without an explicit revisit + log note.
- [design.md](wiki/design.md) — The enforced "Reading Room" visual language (D33) — warm neutrals, four kind tints, the Newsreader/Archivo type split, motion rules, and the frontend conformance checklist. Replaces Quiet Paper.
- [glossary-authoring.md](wiki/glossary-authoring.md) — Naming authority for authored content — Notes (note, page, stroke, text box) and LaTeX (project, draft, published document, version, typesetting engine, supported subset, diagnostic); the collected-media half lives in glossary.md.
- [glossary-jukebox.md](wiki/glossary-jukebox.md) — Naming authority for the Jukebox, atrium's remote control for the Discord bot's music. Defines jukebox, player, track, playlist, queue, queue entry and the bot account. just-a-bot's glossary repeats these terms and defers to this page.
- [glossary.md](wiki/glossary.md) — The project's vocabulary — one canonical name per concept Atrium uses in a specific way, with the synonyms it displaces; the page that stops the same thing being called three names.
- [jellyfin-comparison.md](wiki/jellyfin-comparison.md) — Jellyfin 12.2.0 next to Atrium's media half, axis by axis (ingest, metadata, artwork, playback, music, video, books, people, resume and home, search, offline and clients, ops), with a verdict per axis, what Atrium already does better, and a ranked shortlist of ten things worth taking or adapting. Seen on a running instance on 2026-10-09. Read before proposing media features.
- [jukebox.md](wiki/jukebox.md) — How the Jukebox works end to end — the bot account's allowlist, atrium-owned Players in SQLite, the command long-poll, the next-Track and status rules (restart, lost voice, stale reports), and the /jukebox page. Read before touching modules/jukebox, apps/web/src/jukebox or just-a-bot's link.
- [latex.md](wiki/latex.md) — The /latex destination — projects, the compile job, publishing into the library as versioned documents, where the sandbox actually lives now that the engine is pure, and the worker thread the engine is hosted on.
- [open-questions.md](wiki/open-questions.md) — The genuinely unresolved threads only — each deleted the moment it's answered (history lives in status.md + log.md). Nothing open as of 2026-10-28: the Jellyfin study's four questions are D59.
- [overview.md](wiki/overview.md) — What Atrium is in a paragraph — a personal cloud space: a household media library (books, music, video) plus authored Notes and LaTeX documents; the orientation page.
- [performance.md](wiki/performance.md) — Recorded live + build-time performance baseline of the current (post-code-split) build — initial JS transfer, chunk sizes, cover→first-page for PDF and EPUB, and EPUB open phases — plus how to reproduce the numbers.
- [pwa.md](wiki/pwa.md) — The PWA layer (2026-07-16) — installable shell via vite-plugin-pwa/generateSW with prompt-mode updates, cover-only runtime caching, and offline reading via a three-store IndexedDB (metadata/blobs/progress) with explicit per-book downloads and last-write-wins progress sync.
- [reader.md](wiki/reader.md) — The reader experience — PDF + EPUB renderers sharing one Kindle-style frame: nav, TOC, search, themes, progress rail, resume, a paged⇄scroll mode toggle, and a shared running header.
- [status-history-v1.md](wiki/status-history-v1.md) — Archive of Atrium's earliest shipped phases — the v1 build through profiles (2026-08-25), July–August 2026. Split off status-history.md, which holds the more recent archive.
- [status-history-v2.md](wiki/status-history-v2.md) — Archive of Atrium's shipped phases of 2026-08-26 to 2026-08-27 — Convert, the typesetting engine, LaTeX and derived storage paths, plus the grill session that closed every open question. Split off status-history.md on 2026-10-03.
- [status-history.md](wiki/status-history.md) — Archive of Atrium's most recent shipped phases — 2026-08-29 to 2026-08-30 (the engine's math, the worker thread, the Knex move) — what each run delivered, fixed and verified. Split out of status.md, which keeps the current snapshot.
- [status.md](wiki/status.md) — Dated snapshot (2026-11-02) of Atrium, per area — the media library (books, music, video) and its readers, Notes, the LaTeX editor on its own typesetting engine, profiles, accounts (local plus "Sign in with Ward", in production since 2026-10-13), the Jukebox, the two improvement sweeps (done 2026-10-03 and 2026-10-27), the metadata lookup (2026-10-28); what is deployed, what the owner still owes, and where the older history lives.
- [typeset-math.md](wiki/typeset-math.md) — How Atrium's engine sets mathematics — MathJax v4 SVG, the SVG-to-PDF emitter, the subset gate, and the three MathJax behaviours that had to be switched off (one of them a purity hole).
- [typeset-scope.md](wiki/typeset-scope.md) — The typesetting engine's declared scope — what it promises to set (the foundation, figures/tables/bibliography, and mathematics) and what it refuses with a diagnostic, including the permanent Out list and the math gate (D41). Code comments that say "the declared scope" or "the Out list" mean this page.
- [typeset.md](wiki/typeset.md) — The typesetting engine — Atrium's own TypeScript LaTeX-subset compiler. Pipeline, what it sets (prose, floats, images, tables, bibliography), the scope line, the loud-failure contract, and why it performs no I/O.
<!-- END wiki-catalog -->

Triage on the summaries: read `index.md`, then **at most 2–3** wiki pages
(the retrieval budget — see [../CLAUDE.md](../CLAUDE.md)).

## Work
One queue. Capture and spec are the same act — a new idea is written straight
into `briefs/todo/` as a numbered brief (see [../CLAUDE.md](../CLAUDE.md)).

- [briefs/todo/](briefs/todo/) — everything not yet built, ready-to-build specs, run in number order (restarted at 01 on 2026-11-02)
- [briefs/done/](briefs/done/) — completed (immutable)
- [briefs/superseded/](briefs/superseded/) — replaced by a later brief

