Astro Starlight over .loom/externals/. Every reference page is a copy of a document published by another loom repository, adopted with loomctl, locked to the etag it was fetched at. Nothing is written twice. Two kinds of page. Generated ones are overwritten every build because nobody typed them. Guides are hand-written, never overwritten, and stamped in frontmatter with the etags they were written against; when a source moves, the build renders a banner onto the page asking whether it is still true. It cannot answer that — only a person can — so it asks where a reader will see it too, and the site degrades honestly instead of reading as authoritative and being wrong. npm run ack is the person saying they re-read it. Declined: having the build stage a polad into the cart. loomctl external check does that and is right to, but a docs build runs in CI and in worktrees where there is no cart, and staging a polad is an act of judgment. The build reports; a person raises. The guides are worked examples rather than explanations, deliberately. An explanation is a second saying of a rule owned on the page beside it and goes stale silently; an example goes stale visibly, because the artifacts in it are the wrong shape. Generation is byte-deterministic — locks are walked in path order, no timestamps — because the diff is most of the value. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
3.0 KiB
Starting one of these in a repository
Make a .loom/ directory. Everything else follows from two questions.
What can a reader not already know?
That is what you publish, in .loom/published/, as ordinary documents.
Not what your service does — its code says that. Not how Kubernetes or Kafka or React work — that is somebody else's documentation, and a copy of it here goes stale silently while reading as though it were true.
Write the delta. "The default ingress class publishes to the internet, so omitting it is how you leak something." Nobody could have guessed that, and nothing else here will tell them.
A good page ends with how to check it is still true, and a date. Nothing serves the truth about a running system, so the only mechanism is somebody looking.
What do you need that nothing provides?
That is a gap, in .loom/gaps/.
The test: could you say whose job it is? If yes, it is a claim against them and belongs with them. If no, it is a gap.
Record what you are doing instead — "we are using Docker Hub for now." Forgetting it was provisional is the disease; the provisional answer is fine.
Then, only if you have something to say
.loom/externals/ — a copy of somebody's document you depend on, with what
you use and what you expected and did not find, beside it. See
externals.
.loom/venues/ — choices you made about something with no document to hang
them on. Kafka, React, HTTP.
.loom/event-log.md — decisions, if you are keeping them here.
A file that carries no delta should not exist. If you do exactly what somebody else's document says, write nothing — recording the adoption is ceremony.
Write a .loom/README.md
Say what is in published/ and why somebody would want it. Link the
documents. One line for the curious about what .loom is.
Nobody should need to understand any of this to use it — they are documents in a folder, and a reader who ignores the vocabulary entirely should still get what they came for.
Look at one instead of reading this
jeffry/homelab-cluster —
six documents, one gap, no decomposition. It describes what a home cluster
offers to somebody deciding whether to put something on it, and a reader who
has never heard of any of this still gets what they came for.
It was private, and being unable to link to it is what made the split obvious. The operational tree is a version inventory and a target list; the pages telling somebody what to decide are neither. So the manifests moved to a private sibling and the documents stayed — and the documents got better for being written to a stranger, which was not the reason for doing it.
A public page naming a private thing as its canonical answer is worse than no example, and this page did exactly that until somebody measured it.