Status history — 2026-08-26 to 2026-08-27
This page is generated from the project corpus and rewritten on every docs build. Edit the source in corpus/, not here.
Moved out of status-history.md on 2026-10-03, when that page passed the corpus 200-line rule. Newest first, as written at the time. The v1 era is in status-history-v1.md.
2026-08-27 — ✅ The LaTeX editor (2026-08-27) shipped — LaTeX in Atrium. You can
write a multi-file project at /latex, compile it with our own engine (no
TeX, no binary), preview the PDF beside the source, and publish it into the
library as a document that accumulates versions — press publish ten times
and you get ten versions on one card, verified on real data. Diagnostics carry
file and line and clicking one jumps the caret; an unimplemented construct reads
as "not supported yet" and is visibly distinct from a typo. The engine's
purity means the remaining attack surface is one path-confinement module, which
rejects traversal, absolutes, escaping symlinks and — the case naive
implementations write straight through — dangling symlinks.
10 chunks, 3 finders, 13 findings (3 Critical), all fixed. Every serious one
crossed chunk boundaries and none tripped a gate: the compile preview
overwriting the real reader's saved position, a stale cache reverting a saved
edit, a fire-and-forget flush() letting publish immortalise stale bytes, and
publish racing itself into two cards. Details in
briefs/done/38-latex-editor.md and
latex.md.
Was known, now fixed: compile() blocking the API process for its duration
was the LaTeX editor's standing limitation. The compile worker (2026-08-28) closed it — the engine is
hosted on a worker_thread and compile()'s synchronous contract is unchanged.
Earlier (2026-08-26): ✅ The engine foundation (2026-08-26) shipped — the typesetting engine.
Atrium compiles LaTeX with its own TypeScript engine (D38), not Tectonic and
not any TeX: packages/typeset takes a .tex file map and returns PDF bytes as
a pure function with no filesystem, network or processes. That purity is the
sandbox — \write18 cannot execute because no shell escape is written, and
\input{/etc/passwd} has no filesystem to reach. 10,708 lines of engine, 5,335
of tests, 332 tests — the repo's first test suite. Prose, sections, ToC,
lists, footnotes, cross-references, \newcommand and verbatim all set
correctly; figures/tables/bibliography are the figures, tables and bibliography work (2026-08-29) and math is the math work (2026-08-29), and
every construct outside the subset reports a diagnostic with file and line
rather than failing silently. Details in
briefs/done/37-engine-foundation.md
and typeset.md.
Earlier (2026-08-27): ✅ The storage-paths work (2026-08-27) shipped — storage paths are derived, and
testing is finally sandboxable. All three storage roots are env overrides, so
a scratch database and scratch files move together; the file_path/cover_path
columns are dropped and every location derives from paths.ts. hasCover
is now a disk stat, which makes DB/disk drift unrepresentable and deleted
reconcileMissingCovers outright. The offline store is at v5 with the field
renamed fraction → progress. The review's best catch was against the brief
itself: dropping a stored path unread destroys the only record of where a
misplaced file actually is, so the migration now warns and names every drifted
row first. Your real database is untouched — it migrates on the next API
boot, and note it is still pre-brief-34, so that boot runs two briefs'
migrations at once (tested together, converges cleanly).
Earlier (2026-08-27): 🧭 Grill session — every open question closed.
The three threads in open-questions.md, two of them open
since July, are now D39 and D40 and are specified as the work of 2026-08-27 to 2026-08-29. The
headline: the API stored absolute paths while two of its three storage roots
could not be redirected, which is why pointing a test at a copied database
still reached the real files — the hazard that destroyed a book on
2026-08-25. Paths become derived and all three roots become overridable, so a
scratch database and scratch files finally move together. cover_path is
dropped and hasCover becomes a disk check, which deletes
reconcileMissingCovers outright. Also settled: the offline store's fraction
→ progress rename (IndexedDB v5), and video covers captured in the browser
— no ffmpeg, since what the media library (2026-07-16) declined was the binary, not the feature.
Nothing is built yet; 41 is the next build and gates 38.
Earlier (2026-08-26): ✅ The convert work (2026-08-26) shipped — Convert. A PDF now offers a
reflowable EPUB twin and an EPUB offers a PDF, as linked books rows (D34)
— one card per book, each format with its own resume position, and reopening
lands in the format that reader last used. Conversion is an async job: one at a
time, cancellable, 24h reaper, restart-safe. A quality gate flags a likely scan
poor and warns without ever blocking, because the honest answer to a bad
conversion is that the source is one tap away. The stateless POST /convert,
its temp-file workspace and convert-api.ts are deleted — D1's export-only
rule is revised, its reason having been direction-specific all along.
Three finders caught 7 findings (1 Critical), all fixed but two Minor. The Critical was reported by two finders independently: deleting a book never cancelled its running conversion, wedging conversion app-wide behind a slot held for a row that no longer existed. Details in briefs/done/34-convert.md.
Incident: an agent destroyed a real book during verification (a copied DB
still points at the real files) — recovered from a duplicate; config.ts and
open-questions.md now record the hazard, and a manual
backup exists outside the repo.
Not verified: this machine's Calibre has an lxml/html5-parser ABI
mismatch, so anything with an outline fails to convert. The two-column and
scanned-PDF readability checks await a working install.
Everything through the profiles work (2026-08-25) — the v1 build, the PWA phases, the perf
briefs, the media library and the first grouped-library work — is in
status-history-v1.md. Split off on 2026-08-29 when this
page passed the 200-line rule, the same way it was split off status.md.