Rename loom → norn
The project is now norn: .loom/ is .norn/, loomctl is nornctl (NORNCTL_* env vars, ~/.config/nornctl), and the Gitea org is norn. Event logs moved with the directory but their text is unchanged — they are a record of what was decided at the time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
26f8b98dc6
commit
bd4069d575
8 files changed
+27
-27
No files matched your search
+3746
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,22 @@
|
||||
# The `.norn` directory
|
||||
|
||||
**A repository that uses norn keeps everything in `.norn/` at its root.**
|
||||
|
||||
> **Type is determined by location.** *The directory a file is in says what it
|
||||
> is.* **So frontmatter carries almost nothing, and often nothing at all.**
|
||||
|
||||
**A stream is a file. A collection of things with identity is a directory.** *A
|
||||
log is appended to and no entry is ever addressed; a thing that is referred to
|
||||
individually gets its own file.*
|
||||
|
||||
**Everything not recognised is shown rather than rejected.** *These files are
|
||||
edited by hand and by agents, constantly, and that is supported. A reader that
|
||||
fails on an unfamiliar directory is wrong.*
|
||||
|
||||
## What is fixed
|
||||
|
||||
**Only `.norn/` itself, and that a directory means a kind.** *Which kinds exist
|
||||
is not fixed here — conventions built on this one declare their own, and a
|
||||
repository has only the ones it uses.*
|
||||
|
||||
**Nothing outside `.norn/` is norn's business.**
|
||||
@@ -0,0 +1,68 @@
|
||||
# Publication
|
||||
|
||||
**What a repository has handed over for others to depend on lives in
|
||||
`.norn/published/`.**
|
||||
|
||||
> **Publishing is a change of kind, not a change of status.** *An unpublished
|
||||
> document is an implementation detail you may rename at will. **A published one
|
||||
> is a contract.***
|
||||
|
||||
**So publication is an act somebody performs** — a file moves in — **and the move
|
||||
is a diff that shows up in review.** *A flag in frontmatter is a line nobody
|
||||
notices; this is the moment a thing becomes somebody else's problem, and it
|
||||
should be unmissable.*
|
||||
|
||||
**`ls .norn/published/` is *what have we committed to?*** — and it is the question
|
||||
to ask before changing anything.
|
||||
|
||||
## Publishing is not an act you can complete alone
|
||||
|
||||
**A file in `.norn/published/` that its intended readers cannot fetch is not
|
||||
published.** *The move is the act, but the act is not finished until somebody who
|
||||
is not you can perform the read.*
|
||||
|
||||
> **The failure is invisible from the inside.** *Every check available to the
|
||||
> publisher passes — the file is there, the commit landed, the path is right.*
|
||||
> **Only a reader can detect it, and a reader who cannot fetch it does not know
|
||||
> the document exists to ask about.**
|
||||
|
||||
*The commonest form is a document that answers "why can you not see this?" and is
|
||||
published **inside** the thing that cannot be seen.*
|
||||
|
||||
**So publication has a visibility, and it is a property of the act rather than of
|
||||
the file.** *"Others" is not "everyone".* **Naming who the readers are is part of
|
||||
publishing**, because a repository that depends on this one has to know whether it
|
||||
is inside that set — *and because a reader who copies a document out inherits the
|
||||
copy without inheriting the visibility it was published under.*
|
||||
|
||||
**The test is a fetch you did not perform.**
|
||||
|
||||
## Doing it
|
||||
|
||||
1. **Decide it is a contract and not a detail.** *This is the whole decision and
|
||||
the rest is mechanics.*
|
||||
2. **Move the file into `.norn/published/`.** *One commit, so the diff carries it.*
|
||||
3. **Say who the readers are** — *if it is not obvious from where it landed.*
|
||||
4. **Fetch it.** *From somewhere that is not your machine and not your account.*
|
||||
5. **Record the decision**, if you keep a log.
|
||||
|
||||
**Step 4 is the one that gets skipped and the only one that can fail.** *Steps 1
|
||||
to 3 are things you do; step 4 is a fact about the world that you find out.*
|
||||
|
||||
*Then say what it depends on. A published document that quietly requires a private
|
||||
one has moved the problem rather than solved it.*
|
||||
|
||||
## What is published is a document
|
||||
|
||||
**Prose, in whatever form its readers need.** *If a repository organises its
|
||||
thinking some other way internally, that is its own business:* **a consumer
|
||||
cannot tell whether it did, and must not need to.**
|
||||
|
||||
> **What is not exported is not hidden.** *The rest of the repository is there to
|
||||
> read. It is simply not what you depend on.*
|
||||
|
||||
## There is no directory for what is unpublished
|
||||
|
||||
**Everything else is simply elsewhere in the repository.** *Naming the complement
|
||||
invents a category — and a directory called `internal/` would look like a
|
||||
security boundary and not be one.*
|
||||
@@ -0,0 +1,52 @@
|
||||
# Recording decisions
|
||||
|
||||
**An entry says what was decided, what it is believed to advance, and the belief
|
||||
that could turn out false.**
|
||||
|
||||
> **Only a stated belief can later be shown wrong.** *"To satisfy §4" is a
|
||||
> citation, not a reason — it points at a label.* **A constraint whose reason
|
||||
> cannot be found gets re-litigated as a defect by whoever inherits it.**
|
||||
|
||||
**Appended, newest last, never revised.** *A later entry supersedes an earlier
|
||||
one by saying so.* **A revised record cannot show that anybody changed their
|
||||
mind, which is most of what a reader wants from it.**
|
||||
|
||||
**No status, no assignee, nothing to process.** *The moment an entry can be "not
|
||||
yet applied", somebody must track which ones are — and the record becomes a work
|
||||
tracker, which is how a thing that outlives its authors turns into a queue nobody
|
||||
reads.*
|
||||
|
||||
## Declines belong here too
|
||||
|
||||
**What you considered and did not do, with the reason you did not.**
|
||||
|
||||
*Almost nobody writes these, and three weeks later somebody proposes the thing
|
||||
you already rejected — because the rejection lived somewhere that did not
|
||||
survive.*
|
||||
|
||||
## Compaction, and the entries it may never touch
|
||||
|
||||
**"Never revised" and "somebody must be able to read it" both hold, and far
|
||||
enough out they conflict** — *a log nobody can get through has stopped being a
|
||||
record.*
|
||||
|
||||
**Compaction is allowed. Dropping an entry is not the same as revising one**, and
|
||||
the uncompacted log is in git history, which is where a reader who needs it goes.
|
||||
|
||||
> **An entry may be dropped when a competent reader could recover it by reading
|
||||
> the artifact.**
|
||||
>
|
||||
> **An entry may never be dropped when it records a decline, a measurement, a
|
||||
> belief that was shown wrong, or one entry superseding another.**
|
||||
|
||||
*Which means **compaction is safe in exactly the cases where the entry was
|
||||
redundant with the artifact, and unsafe in exactly the cases the log exists
|
||||
for.*** **The four protected kinds are the ones with no other home:** *the code
|
||||
shows what was built and can never show what was refused, what was measured, what
|
||||
turned out false, or that somebody changed their mind.*
|
||||
|
||||
**A compaction is itself a decision, and gets an entry.**
|
||||
|
||||
## Where it lives
|
||||
|
||||
`.norn/event-log.md`. **A stream, so a file.**
|
||||
@@ -0,0 +1,28 @@
|
||||
# Sibling facets
|
||||
|
||||
**For any file `x.md`, other things said about it live beside it as
|
||||
`x.<facet>.md`.**
|
||||
|
||||
> **A facet is owned by whoever wrote the facet, never by whoever wrote `x.md`.**
|
||||
|
||||
**That is the whole of it.** *It exists so that two parties can both write about
|
||||
one document without either of them reconciling two versions of it.*
|
||||
|
||||
## What a convention using this must decide
|
||||
|
||||
**Three things, and it must say all three or its adopters will not know they had
|
||||
a choice.**
|
||||
|
||||
- **What the facet is called.** *`notes`, `usages`, `gaps` — the name is the
|
||||
contract; a reader recognises the pair on sight.*
|
||||
- **What fixes `x.md` while the facet exists.** *Something must, or the facet
|
||||
comes loose from what it is about.*
|
||||
- **How the pair is released.** *There must be an answer. **A convention that
|
||||
does not say leaves its adopters stuck**, and they will not notice, because a
|
||||
question nobody asks looks like a question already answered.*
|
||||
|
||||
## Why the facet is never owned by the source's author
|
||||
|
||||
**Because the source may not be theirs to change.** *An adopted document belongs
|
||||
to whoever published it; a facet beside it is the only place a reader has to put
|
||||
what they think.*
|
||||
@@ -0,0 +1,75 @@
|
||||
# Starting one of these in a repository
|
||||
|
||||
**Make a `.norn/` directory. Everything else follows from two questions.**
|
||||
|
||||
---
|
||||
|
||||
## What can a reader not already know?
|
||||
|
||||
**That is what you publish**, in `.norn/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 `.norn/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
|
||||
|
||||
**`.norn/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](https://git.hypertheory-labs.dev/norn/externals).
|
||||
|
||||
**`.norn/venues/`** — choices you made about something with no document to hang
|
||||
them on. *Kafka, React, HTTP.*
|
||||
|
||||
**`.norn/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 `.norn/README.md`
|
||||
|
||||
**Say what is in `published/` and why somebody would want it.** *Link the
|
||||
documents. One line for the curious about what `.norn` 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`](https://git.hypertheory-labs.dev/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.
|
||||
@@ -0,0 +1,81 @@
|
||||
# Venues
|
||||
|
||||
**`.norn/venues/<name>.md` — a choice you made about something that has no
|
||||
document of its own to hang it on.**
|
||||
|
||||
*Kafka. React. HTTP. The organisation you work for.* **Things that constrain what
|
||||
you build without ever being invoked, and without publishing anything at you that
|
||||
you could adopt.**
|
||||
|
||||
---
|
||||
|
||||
## Venue and external are two questions, not two kinds of thing
|
||||
|
||||
**`external` is *who published it*. `venue` is *whether you had to decide
|
||||
anything about it*.** *They are orthogonal. A thing may be both, either, or
|
||||
neither.*
|
||||
|
||||
| | published at us | we recorded a choice | files |
|
||||
|---|---|---|---|
|
||||
| Kafka, React, HTTP | yes, by the world | yes — *protobuf for schema* | venue only |
|
||||
| a service another team owns | yes, by them | not yet — the use is in the code | external only |
|
||||
| a cluster your own org publishes | yes | yes | both |
|
||||
| a library you use exactly as documented | yes | no | neither |
|
||||
|
||||
**Both files are governed by the same rule, applied to two different ambients:**
|
||||
|
||||
> **An external entry exists when the reader cannot be assumed to know the
|
||||
> thing.** *A venue file exists when you made a choice worth recording.*
|
||||
|
||||
**Nobody needs telling what Kafka is, so there is no external entry** — *but "we
|
||||
use protobuf for schema" is a choice, so there is a venue file.* **Nobody outside
|
||||
can know what your internal API is for, so there is an external entry** — *and
|
||||
until using it requires an exception or a preference, there is nothing to
|
||||
accommodate and no venue file, because the actual use is in the code.*
|
||||
|
||||
*This is why sorting things into two bins does not work and people keep trying.
|
||||
The bins were never the problem. The question was.*
|
||||
|
||||
## A venue file is an account of your own decisions
|
||||
|
||||
**Which is what makes it local by construction.** *An external is a copy of
|
||||
somebody's document and could in principle be centralised.* **A venue file has no
|
||||
upstream** — *there is nobody to reconcile with, because the only party who
|
||||
decided anything was you.*
|
||||
|
||||
**So it does not go stale the way a copy does.** *It goes stale when you change
|
||||
your mind and do not say so*, which no fetch will ever detect.
|
||||
|
||||
> **A venue file that carries no delta should not exist.** *If you use the thing
|
||||
> exactly as documented, write nothing.* **Recording the adoption is ceremony.**
|
||||
|
||||
## If there is a document, hang the choice on the document
|
||||
|
||||
**Put a choice where reconciliation will look for it.** *When the thing you
|
||||
decided about publishes something you have adopted, the choice belongs in the
|
||||
`.usages.md` beside that copy and not in a venue file* — **because that is the
|
||||
file somebody opens when the document moves**, *and a venue file is not.*
|
||||
|
||||
*The venue file is for what is left: the constraints of a thing that publishes
|
||||
nothing you can hold.*
|
||||
|
||||
## A venue is where an authority claim belongs
|
||||
|
||||
**Because a venue fact carries a reason and can therefore be shown wrong.**
|
||||
|
||||
*The alternative is worse and common: somebody with authority enters a
|
||||
conversation as a voice, and "we do it this way" arrives with no reason attached
|
||||
and nothing that could contradict it.* **Written as a venue constraint, the same
|
||||
instruction becomes a claim about the world**, *and a claim about the world is
|
||||
something a later reader can discover was false.*
|
||||
|
||||
## Checking it is still true
|
||||
|
||||
**Nobody will tell you.** *There is no publisher to ask, no `ETag`, and no
|
||||
conditional request that will ever come back `200`.*
|
||||
|
||||
**So a venue file needs what a published document needs: a date, and the reason
|
||||
underneath the choice.** *The reason is the whole of it* — **"we use protobuf for
|
||||
schema" is unfalsifiable a year later; "we use protobuf because the consumers are
|
||||
in three languages and JSON schema drift was costing us a release a quarter" can
|
||||
be checked against a world that may have changed.**
|
||||
Reference in new issue
Block a user