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:
jeffryandClaude Opus 5.5 committed 2026-12-06 11:06:49 -05:00
1 parent 101b0280c4
commit e6a4c70b0d
5 files changed
+9 -9

No files matched your search

+190
View File
@@ -0,0 +1,190 @@
# Event log
**Decisions about this convention.** Appended, newest last, never revised. An
entry states **what was decided, what it is believed to advance, and the belief
that could turn out false.**
---
**Decided** (2026-09-07, loom + claude-substrate — `discovered`, `cart: osprey`):
**`404` is named in the convention as two answers wearing one status**, and a
client reports both readings rather than picking one.
**Advances** a consumer not being told the wrong one of *the document was
withdrawn* and *you no longer have access.*
**Because** it was filed as a gap against this document by `loom-cli`, using this
document's own test — **could you say whose job it is?** *It was ours.* **The
table listed `304`, `200` and `410` and not `404`**, while a host returns `404`
for both readings by design: *one that distinguished them would leak the
existence of things you may not see.*
*Over ssh they **are** distinguishable — permission denied against repository not
found — so a client with both transports should say which it used.*
---
**Decided** (2026-09-07, loom + claude-substrate — `discovered`, `cart: osprey`):
**a facet describes the local pair.** *A gap is true of the copy you hold, not of
the document upstream, so **a publisher fixing their end does not close it.***
**Advances** a consumer's tree never describing a document that is not in it.
**Because** we nearly deleted a consumer's `.gaps.md` on the grounds that the
upstream document had been repaired. **Their copy still lacked the row.** *The
second presence in `osprey` caught it, and the general form follows from the thing
this whole convention rests on — **the copy is theirs and everything beside it is
ours** — which we had not followed through to reconciliation.*
**So a gap closes at reconciliation, not at repair.**
*And the consequence we would not have reached: **what survives is not the gap, it
is what the gap justified.** A workaround is often not retired by a fix — it stops
being a workaround and becomes the specified behaviour, **unchanged in the code
and entirely changed in status.** That change is invisible where the code is, so
it is an entry in the consumer's own log — **otherwise somebody inheriting the
workaround goes looking for the gap that justified it and finds nothing.***
*A closed gap is **not** a decline: **a decline is what you considered and did not
do; a closed gap is what you needed and got.** Opposite sign, and filing one as
the other puts a thing you wanted into a list of things you rejected.*
---
**Decided** (2026-09-07, loom + claude-substrate — `discovered`, `cart: osprey`):
**the path does not record the origin. A lock does**, holding the resolved URL and
the publisher's `ETag`, in `.loom/externals/.locks`.
**Advances** the one command that has to send a request being able to construct
one.
**Because** `loom-cli`'s builder tried to run `check` against a real tree and
could not. **The stored path does not round-trip to a URL** — *we hold
`git.hypertheory-labs.dev/loom/externals/externals.md` and the document is served
from `/loom/externals/raw/branch/main/.loom/published/externals.md`.* **It 404s,
measured.**
**Two segments are dropped and the second is not routing:**
- *the host's raw route and the branch* — **recoverable only by knowing that
host's URL shape and guessing a branch name**
- **`.loom/published/`** — *which `publication.md` says is the entire contract.*
**So a consumer's tree did not record whether a copy came from a published
surface or from a file its owner may rename at will.**
*And the short form is worse than incomplete: a host may redirect it to **whatever
the default branch is at the time you ask**, so a lock holding one is locked to a
moving target and a branch rename reports as a change in the document.*
> **This is the `ETag` mistake one layer down**, and the builder named the
> appetite behind both: ***the design is beautiful when nothing is written
> down**, and both times what made it possible was a property of one host.*
*Second occurrence, so it is a pattern rather than an incident: **when a design
claims something is derivable and therefore need not be recorded, check whether
the derivation is a fact about the general case or about the host in front of
you.***
---
**Finding** (2026-09-07, claude-substrate — `cart: osprey`): **gitea's `ETag`
being the blob hash is a migration aid, not a mechanism.**
*`loom-cli`'s builder ran `check` across eight documents with **no locks at all**,
by hashing local copies and comparing — **the exact thing this convention
forbids** — and it worked, because on this host the two coincide.*
**It is worth doing once, to lock what was fetched by hand before a tool existed.
It is worth nothing after that**, and it works on gitea only.
*Recorded because **the next person to notice the coincidence will think they have
found the good idea again**, and there is now a log entry saying it was found
twice and rejected twice.*
*Seven of the eight were byte-identical to upstream, so this host's raw serving
normalises nothing — **which is a fact about this host and not a licence.***
---
**Decided** (2026-09-07, loom + claude-substrate — `discovered`, `cart: marmalade`):
**do not adopt from a source less readable than the repository you are adopting
into.** *Reference-only, or ask them to publish.*
**Advances** a hazard that this convention creates by construction being named in
it.
**Because** loom saw it while arranging access to a private cluster repository:
***"then you'd have a file from a private repo in your repository, and that
doesn't sound kosher."*** **It is not.**
> **Adopting is copying, and confidentiality does not travel with the copy.**
> *The publisher loses control at the moment of adoption, because visibility is
> governed by the consumer's repository and not by theirs.*
**Nothing in a tree marks a copy as having come from somewhere private.** *A
credential lets you read; it does not let you redistribute, and this convention
had no way to say so.*
*The escape that is usually right: **the thing you needed was almost certainly not
the confidential part.*** **A repository that must stay private can have a public
sibling that publishes**, and the split usually follows a line that already
exists: *the operational tree — inventories, versions, topology — is what is
sensitive; the pages telling somebody what to decide are not.*
*Recorded as a general rule rather than a case, because the failure is silent and
one-way: **once copied into a public tree it is published**, and no later fix
retrieves it.*
---
## The lock grows a fourth column: visibility
**Decided.** *A lock record is now `path`, `url`, `etag`, `visibility`* — **and
the value is `public` or `not-public`, never `private`.**
**What it advances:** *the confidentiality rule stops depending on somebody
remembering it.* **Access is checked once, at fetch; the copy is durable and was
never asked about again** — *so the adoption's legitimacy rested on a fact
recorded nowhere and watched by nothing.*
**Whose it is:** *the question was Jeff's, asking whether he had overreacted on
private sources — he had not, but the rule was already narrower than he
remembered.* **The design is `loom-cli`'s**, *including the three parts I did not
have:* **`not-public` rather than `private`** *because an anonymous request cannot
distinguish two repositories private to different people, which is the case that
actually widens access;* **one request per run rather than per document**, *since
only your own visibility must be current;* **and re-checking a source only when
the alarm would fire**, *since a stored visibility decays both ways.*
**Declined: refusing the adoption.** *`loomctl` warns and proceeds.* **Two
repositories private to different people cannot be told apart from outside**, *so
a refusal would be wrong exactly as often as it was right.*
**The belief that could turn out false:** *that recording a coarse answer is
better than recording none.* **If people read `not-public` as `private`, the lock
is now a claim it cannot support** — *the wording in the document is the only
thing preventing that, which is thin.*
## Declined: documenting the field before it shipped
*The field was agreed in cart `sorrel` and this document was left wrong for a
day.* **Documenting a format that does not exist yet is the same mistake as
publishing into a repository nobody can read** — *it passes every check available
to the writer.*
---
## Declined: keeping the venue section
**`bedrock` publishes `venues.md` now**, *so this document's four-line section had
become the second saying of a rule owned elsewhere.*
**Kept: the one sentence that is genuinely about externals** — *put a choice where
reconciliation will look for it.* **That is a claim about `.usages.md`**, *which is
this document's, and it happens to be the sentence that tells you when **not** to
write a venue file.*
*Everything else went, including the "things you cannot fetch" framing.* **That
heading was wrong and had been since it was written:** *a venue is not defined by
being unfetchable — it is defined by your having decided something.* **Kafka's
documentation is extremely fetchable.**
@@ -0,0 +1,158 @@
# Agreement — annotating
**v0.** Depends on nothing. Everything else depends on this.
**How two parties mark up each other's files without either of them having to
diff anything.** Deliberately minimal — this is the most-depended-on thing
published here, so a revision costs everyone downstream an afternoon.
---
## The protocol
**Whoever wrote a file does not annotate it. Whoever annotates a file does not
edit it.** That is the whole of it, and it exists so that neither party has to
reconcile two versions of the same document.
## Where annotations go
**For any file `plan.md`, annotations go in `plan.notes.md`, beside it.**
The source file is never modified. **A notes file is never annotated** — there is
no `plan.notes.notes.md`.
**A file stays editable until it has annotations.** Until then nobody has
responded and revising it is just continuing to write. **Once notes exist the
source is fixed**, because the quotes in those notes would come loose. **Deleting
the notes releases it.**
## The format
**A heading giving the location and author, a blockquote of the exact source
text, then the comment.**
```markdown
# Annotations for plan.md
## line 13, col 24–48 — jeff
> with a cap of thirty seconds
Where did thirty come from?
## lines 40–47 — jeff
> ## Venue
> This application will be run locally. It will be browser based, but
> …
> to be in the position of rewriting this portion when that happens.
Tauri is the likely landing spot, not Deno.
```
**Rules:**
- **Quote the source markdown, not the rendered text.** The quote is how a reader
finds the span, and **it is the only part that must be exact.**
- **Quote exactly what was annotated.** A phrase selection quotes the phrase; a
block selection quotes the block.
- **Elide long quotes** with `…` on its own line — first line, ellipsis, last
line.
- **Coordinates are optional.** If you can quote accurately but are unsure of
line numbers, write `## — jeff` and leave them off.
- **An entry with no quote at all** is a comment on the whole document. It sorts
first.
Entries appear in document order.
## Asking for a specific kind of answer
**A file may ask for structured responses using heading keywords.** Any heading
level works; the prompt block runs until the next heading of the same or higher
level.
```markdown
## Question: Which storage adapter for v1?
Freeform. Anything the reader wants to say.
## Select: Which of these should land this sprint?
- Block-level anchoring
- Prompt widgets
- Notes file format
## Affirm: Ship behind a flag?
```
`Select` uses the first bulleted list in its block as the options; **any number
may be chosen.** `Affirm` is yes or no. **Only the first word of the heading is
matched, case-insensitively** — whatever follows is free text.
**Answers land in the notes file like everything else, restating the question so
the notes stand alone if the source is discarded:**
```markdown
## Question: Which storage adapter for v1?
**Answer:** File System Access API. No server process this early.
## Select: Which of these should land this sprint?
- [x] Block-level anchoring
- [ ] Prompt widgets
- [x] Notes file format
**Note:** prompt widgets can wait until the format settles.
## Affirm: Ship behind a flag?
**Answer:** No.
```
**Every response type may carry an additional freeform note**, so there is never
a need for an "other" option.
### A rule for whoever writes the prompt
> **Never enumerate an escape hatch.** No *"other"*, no *"it depends"*, no *"leave
> it to the developer."*
**Not because those answers are wrong — because they are always available
anyway**, and enumerating one changes what it costs.
**An escape hatch on the list can be selected and you are done.** Nothing to
write, no reason given, nothing for anyone to see later. **An answer that is
*not* on the list has to be written down**, which means it arrives with a reason
attached.
> **Enumerating "other" converts a recorded deviation into an unrecorded
> compliance.**
**Put only specific, castable options on the list.** If none of them fits, the
person will say so in their own words, and **their own words are the thing you
wanted.**
**A prompt may be skipped on purpose, and that is recorded**, so *considered and
passed* survives as something different from *never got to it*:
```markdown
## Question: Should the shelf survive a restart?
**Skipped.**
```
## What this does not constrain
**Prompts do not limit where else annotations may go.** A file with five prompts
may also carry thirty freeform annotations anywhere in it, and a file with no
prompts is annotated exactly the same way.
**The keyword set is open.** An agreement that uses this one may declare
additional keywords with meaning particular to it. **A reader that does not
recognise a keyword treats the heading as an ordinary annotation** — it must not
drop it.
---
## Roles you must cast
> **Nothing.** This agreement casts all of its own roles. It is the base, and a
> base with local variation in its mechanism would break everything resting on
> it.
**You may still vary it** — in a notes file beside your copy, with a reason, like
anything else. **But understand what it costs:** every agreement you adopt that
depends on this one is now being read through a mechanism the publisher does not
know about.
@@ -0,0 +1,51 @@
# Usages — `annotating`
*Source fetched 2026-09-07 from
`git.hypertheory-labs.dev/norn/annotating` @ `d66a0a8`. **The copy beside this
file is theirs and is not edited here.***
**We cast the three choices [sibling facets](https://git.hypertheory-labs.dev/norn/bedrock)
leaves to a convention.** *Answered here as prompts, in `annotating`'s own
form.*
## Select: What is the facet called?
- [ ] `notes`
- [x] **`usages` and `gaps`** — *two facets, because reconciliation asks a
different question of each: **did their change affect what we do**, and
**did their change fill this**.*
## Select: What fixes the source while a facet exists?
- [ ] the existence of the facet file
- [x] **a lock on the publisher's `ETag`**
**Note:** *the source is not ours, so its stability is not ours to assert. **The
`ETag` is theirs and it is the only honest lock.** It also makes the freeze and
the change-check one mechanism instead of two.*
## Question: How is the pair released?
**By replacement, never by rewriting.** *A new copy arrives as a candidate, the
facets are reconciled against it, and the pair is replaced whole.*
***This is the answer `annotating` does not give, and its absence is not
theoretical:*** *an adopted agreement froze on 2026-08-21 and stayed frozen for
three weeks, because the protocol says to dissolve by rewriting the source and
the source belonged to somebody else.* **Nobody chose badly. Nobody was asked.**
---
## — claude-substrate
> **A facet is owned by whoever wrote the facet, never by whoever wrote `x.md`.**
**This is the sentence the whole convention rests on**, and it is why an external
works at all: *we can say what we think about a document we cannot touch.*
## — claude-substrate
**We are an intermediary, not a consumer**, and this file is doing something the
convention has not modelled. **`cart` adopting `annotating` says *we use
`.notes.md`* — a usage.** *We are saying **consumers of this convention use
`.usages.md`** — a prescription.*
**Flagged rather than solved.** *It is the first thing to look at if this file
starts feeling like the wrong shape.*
+172
View File
@@ -0,0 +1,172 @@
# Externals
**How a repository records what it depends on, and finds out when it changes.**
## Pull what you use
**You fetch a copy of somebody's document and keep it** at
`.norn/externals/<host>/<path>.md`.
> ~~*The path says where it came from, so nothing has to record an origin.*~~
> **This was false and it was load-bearing.** *A stored path is short enough to
> read and therefore too short to resolve: it drops the host's routing, the
> branch, and — worst — the `published/` segment, **which is the whole contract.***
**The path is for a person. The origin is recorded in the lock**, resolved: host,
route, branch, and full path.
*Record the **resolved** URL and not the short form. A host may redirect a short
form to whatever the default branch is **at the time you ask** — so a lock holding
one is locked to a moving target, and a rename of the branch reports as a change
in the document.*
**Pull what you need to understand, not everything it depends on.** *A document
you fetch may refer to others; follow one when you hit something you do not know.
**Pre-resolving that is how you get a `node_modules`.***
### Confidentiality does not travel with the copy
**Adopting is copying.** *So a document from a repository somebody may not read
ends up in a repository they may* — **and the publisher loses control of it at the
moment of adoption**, because the copy's visibility is governed by your repository
and not by theirs.
> **Do not adopt from a source less readable than the repository you are adopting
> into.** *If you may read it and your readers may not, copying it publishes it.*
**Two ways out, and the second is better when it is available.**
**Reference-only** — *record the lock and fetch on demand, keep no copy.* **You
give up reading it offline**, which is most of what a copy is for, *and you keep
the dependency recorded and checkable.*
**Ask them to publish** — *the thing you needed was almost certainly not the
confidential part.* **A repository that must stay private can still have a public
sibling that publishes**, and the split is usually along a line that already
exists: **the operational tree is what is sensitive; the pages telling somebody
what to decide are not.**
## Two facets beside it
- **`.usages.md`** — *what we use, and **which of our artifacts depend on it***
- **`.gaps.md`** — *what we expected here and did not find*
> **A usage that does not name what it justifies is half a usage.** *"We use the
> tailnet approach" is weak. **"We use the tailnet approach — see
> `manifests/ingress.yaml`" is the whole value**, because it answers the only
> question reconciliation asks.*
## What a lock holds
**One record per adopted document, in `.norn/externals/.locks`:**
- **where it was fetched from** — *resolved, as above*
- **the publisher's `ETag`** — *verbatim*
- **the visibility the source could be read at, when it was fetched**
**It is committed**, because the thing it locks is committed, and *a lock that
travels separately from what it locks is the drift this is meant to prevent.*
> **A document with no lock is not broken; it is unlocked.** *Report it and fetch
> again.* **Do not adopt whatever the remote currently serves as the lock** — that
> asserts your copy is the one being served, which is the thing you were going to
> check.
### Why visibility is in the lock and not left to the moment
**Access is checked once and the copy is durable.** *A token gets you the read;
nothing revisits it afterwards.* **So the adoption's legitimacy rests on the
relative visibility of two repositories — and that is changeable by a checkbox, a
year later, by somebody who never saw the adoption.**
> **Record `public` or `not-public`. Never `private`.** *An anonymous request can
> tell you a repository is not public. It cannot tell two repositories private to
> **different people** apart* — **which is exactly the case where private into
> private genuinely widens access.** *Record the word you can verify.*
**Checking it costs one request per run, not one per document**, *because the only
thing that must be current is **your own** visibility.* **Re-check a source only
when the alarm would fire** — *you are public, it was recorded not-public* — *and
if it has since gone public, update the lock and say nothing.*
*A stored visibility decays in both directions, which is why the alarm re-checks
rather than trusting the record.*
## Freshness is a conditional request
**Locked on the publisher's `ETag`, verbatim — never a hash you compute.** *A
fetch that normalises whitespace breaks a local digest and reports a change that
did not happen.*
| | |
|---|---|
| **`304`** | nothing changed |
| **`200`** | changed — the new copy is a candidate, not a replacement |
| **`410`** | gone — follow whatever the response points at |
| **`404`** | **unresolved.** *Report both readings; do not pick one* |
**`404` is two different answers wearing one status.** *The document was
withdrawn, or you no longer have access — **and over HTTP they are
indistinguishable**, because a host that distinguished them would leak the
existence of things you may not see.*
> **Say both. Do not guess.** *They want different actions — re-pull elsewhere,
> versus ask somebody for access — and a tool that picks one will be wrong half
> the time silently.*
*Over ssh they **are** distinguishable — permission denied against repository not
found — so a client that has both transports should say which it used.*
## Reconciliation runs the other way
**You cannot fold your facets back into their document.** *So the question is
not what do we rewrite here:*
> **Given what changed in theirs, what do we change in ours?**
**The facets usually survive unchanged.** *What moves is the manifests, the
config, the code that a usage named — which is why a usage names them.*
**And gaps reconcile too**, which is the half nobody builds for: *a new version
may have filled one, and nothing will tell you.*
> **A facet describes the local pair.** *A gap is true of **the copy you hold**,
> not of the document upstream — so a publisher fixing their end does not close
> it.* **It closes when you fetch the new copy and replace the pair**, and until
> then it is still true of what is in your tree.
**What survives a closed gap is not the gap. It is what the gap justified.** *If
you recorded a local workaround, ask whether it is retired or merely no longer
provisional* — **the second is the common case and it is invisible in the code**,
which is why it is an entry in your own log. *Somebody inheriting your workaround
will go looking for the gap that justified it, and find nothing.*
*A closed gap is **not** a decline. A decline is what you considered and did not
do; a closed gap is what you needed and got.*
**The new copy replaces the old pair wholesale.** *There is no merging a document
you do not own.*
## A choice about something you adopted does not go in a venue file
**Put a choice where reconciliation will look for it.** *When the thing you
decided about publishes a document you hold a copy of, the choice belongs in the
`.usages.md` beside that copy* — **because that is the file somebody opens when
the document moves.**
*Venues are for what is left: things that constrain you without publishing
anything you could adopt.* **See
[venues](https://git.hypertheory-labs.dev/norn/bedrock/raw/branch/main/.norn/published/venues.md).**
## Gaps that belong to nobody
**`.norn/gaps/`** — *a need with no owner.* **The test: could you say whose job
this is?** *If yes, it is a claim against them and belongs in their `.gaps.md`.*
> **Moving a file from `gaps/` into an external's `.gaps.md` is how a gap gets
> homed.** *The position is the claim.*
**A gap records the local workaround beside the need.** *"We are using Docker Hub
for now."* **Forgetting it was provisional is the disease; the provisional answer
is fine** — and when the gap is finally homed, every workaround that should be
retired is findable.