Text Over Opaque Storage
Principle · Engineering№ 10

Text Over Opaque Storage

State lives in plain text files you can read. No database where a file will do, and no RAG.

LifeOS keeps what it knows as plain text on the filesystem: Markdown for notes and documents, JSONL for logs and records, YAML and JSON for configuration. You and the model can open any of it, read it, correct it, and see in git what changed and when.

Why it holds

A fact inside a database takes a query to see, a tool to change and a migration to reshape, and git can’t show you its history. A text file has none of those costs. Models read text better than anything else, it diffs cleanly, and it stays readable long after a storage engine has gone out of use.

The same reasoning keeps retrieval-augmented generation out. LifeOS has avoided RAG since it started in June 2025. Cutting documents into chunks and matching them by embedding similarity loses their structure and their exact wording, and it adds a whole system to maintain. Well-organized text with cross-references, searched with exact tools like ripgrep, gives what people want from RAG without that loss.

Say Sam asks Juno what he decided about floating times in the Lumen calendar import. She searches the archive and his earlier sessions, finds the note, and quotes the passage back to him. If the note is out of date, Sam opens the same Markdown file, fixes the line, and the change shows in git like any other edit.

The one standing exception is a database another program owns, such as the macOS Messages store, which LifeOS reads and never writes. Any new database, including an index that could be rebuilt from text, has to be justified in its project’s ISA, and the architecture doc lists each one.

Where it shows up

Cortex keeps its hot files and its Knowledge Archive as Markdown, and its search is keyword ranking over those files with no vector index.

Replay writes everything that happened as JSONL rows to one append-only record, and the views built from it can be thrown away and rebuilt.

Ledger records each change to the system as its own registry entry and generates the changelog from those entries.