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
c6354c95fa
commit
dde7183528
36 files changed
+216
-216
No files matched your search
+1256
File diff suppressed because it is too large.
Load diff
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
# nornctl locks — one record per adopted document.
|
||||
# path<TAB>url<TAB>etag[<TAB>visibility]
|
||||
# The url is resolved: a short form would follow whatever the default branch
|
||||
# is at the time you ask. visibility is what the source could be read as when
|
||||
# it was fetched, because that is checked once and the copy is durable.
|
||||
git.hypertheory-labs.dev/jeffry/homelab-cluster/gitea.md https://git.hypertheory-labs.dev/jeffry/homelab-cluster/raw/branch/main/.norn/published/gitea.md "530c5bef62bbd325956ed170bb2decf37975e4b9" public
|
||||
git.hypertheory-labs.dev/norn/annotating/annotating.md https://git.hypertheory-labs.dev/norn/annotating/raw/branch/main/.norn/published/annotating.md "9b1f7e6ca92f2339b2d433686c27845362944bdb" public
|
||||
git.hypertheory-labs.dev/norn/bedrock/norn-directory.md https://git.hypertheory-labs.dev/norn/bedrock/raw/branch/main/.norn/published/norn-directory.md "ee0f49cb900c0812678061971194325d9cba366a" public
|
||||
git.hypertheory-labs.dev/norn/bedrock/publication.md https://git.hypertheory-labs.dev/norn/bedrock/raw/branch/main/.norn/published/publication.md "c0d9231aa8eed3041c60b72da5735585457fbc90" public
|
||||
git.hypertheory-labs.dev/norn/bedrock/recording-decisions.md https://git.hypertheory-labs.dev/norn/bedrock/raw/branch/main/.norn/published/recording-decisions.md "d190eeae7929b9a99ecf09211d94e7e5b32635bd" public
|
||||
git.hypertheory-labs.dev/norn/bedrock/sibling-facets.md https://git.hypertheory-labs.dev/norn/bedrock/raw/branch/main/.norn/published/sibling-facets.md "a46446a34ccb8bfc533d3cce19f4c88548c4fa04" public
|
||||
git.hypertheory-labs.dev/norn/bedrock/starting.md https://git.hypertheory-labs.dev/norn/bedrock/raw/branch/main/.norn/published/starting.md "b9eefba0f4668a496ccfc6a1377277f0721456d2" public
|
||||
git.hypertheory-labs.dev/norn/cart/cart.md https://git.hypertheory-labs.dev/norn/cart/raw/branch/main/.norn/published/cart.md "15331f1a9cc81bf61a44830cfbb7c274f4c2b119" public
|
||||
git.hypertheory-labs.dev/norn/externals/externals.md https://git.hypertheory-labs.dev/norn/externals/raw/branch/main/.norn/published/externals.md "50673ccffc14d57150ac0a9027b0712d9dcf940d"
|
||||
@@ -0,0 +1,69 @@
|
||||
# The git host
|
||||
|
||||
**`git.hypertheory-labs.dev`**, on the public internet, with a real certificate.
|
||||
**This is where the `norn/*` repositories live.**
|
||||
|
||||
---
|
||||
|
||||
## SSH is on 2222, and it is not optional to know
|
||||
|
||||
**Git-over-SSH does not pass through Traefik** — it is raw TCP, on a
|
||||
`LoadBalancer` that binds a host port on every node. **Port 22 is held by each
|
||||
node's own `sshd`**, so the service is on **2222**.
|
||||
|
||||
```
|
||||
ssh://git@git.hypertheory-labs.dev:2222/<org>/<repo>.git
|
||||
```
|
||||
|
||||
**A clone URL without the port will not work**, and the failure looks like an
|
||||
authentication problem rather than a wrong port.
|
||||
|
||||
```sh
|
||||
ssh -T -p 2222 git@git.hypertheory-labs.dev # "Hi there, <name>!" once a key is registered
|
||||
```
|
||||
|
||||
*`Permission denied (publickey)` from a node IP is the **success** case for an
|
||||
unregistered key — the server answered and offered its host key.*
|
||||
|
||||
## Registration is closed
|
||||
|
||||
**One account.** *The anonymous landing page serves no sign-up link.* **If you
|
||||
need access, somebody creates it for you.**
|
||||
|
||||
## Two things that will surprise you
|
||||
|
||||
**Sessions do not survive a restart.** *There is no Redis or valkey here — cache
|
||||
and session are in memory, deliberately.* **The queue is on disk and does
|
||||
survive.** *With one user this is nearly free; it stops being free if this ever
|
||||
grows real users.*
|
||||
|
||||
**If the control-plane node is down, this is down.** *The repository volume is
|
||||
pinned to it and cannot move.* **Postgres is unaffected** — it replicates — *but
|
||||
the git objects live on a volume that cannot be rescheduled.* See
|
||||
[storage](storage.md).
|
||||
|
||||
## Never pin the chart below what is deployed
|
||||
|
||||
**Gitea does not migrate its schema backward.** *An older chart fails in the
|
||||
`configure-gitea` init container with "database is for a newer Gitea", the
|
||||
rollout hangs, and the old pod keeps serving.*
|
||||
|
||||
**Check `helm history` before setting a version.** *This has already happened
|
||||
once.*
|
||||
|
||||
## The container registry
|
||||
|
||||
**Gitea has one. Access to it is not worked out**, and that is an open problem
|
||||
rather than an omission — see [`gaps/`](../gaps/publishing-container-images.md).
|
||||
|
||||
---
|
||||
|
||||
## Checking this is still true
|
||||
|
||||
**Verified 2026-09-03**, after a rebuild from scratch.
|
||||
|
||||
```sh
|
||||
kubectl get svc gitea-ssh -n gitea # EXTERNAL-IP = node IPs, 2222/TCP
|
||||
kubectl get ingress -n gitea # CLASS=traefik, git.hypertheory-labs.dev
|
||||
curl -sS -o /dev/null -w "%{http_code}\n" https://git.hypertheory-labs.dev/
|
||||
```
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
# Usages — `gitea.md`
|
||||
|
||||
**Adopted 2026-09-07, and it is the reason this tool exists.**
|
||||
|
||||
*This page was published, accurate, and unreachable when it would have helped.
|
||||
The `:2222` fact cost three tool calls and a guess, and the page says:* **"A clone
|
||||
URL without the port will not work, and the failure looks like an authentication
|
||||
problem rather than a wrong port."** *It named the failure before it happened.*
|
||||
|
||||
## What we use
|
||||
|
||||
**SSH is on `2222`, and a clone URL without the port fails as an auth error.**
|
||||
*Used by anybody working in this repository by hand.* **Not used by `nornctl`** —
|
||||
*every transport it has is HTTPS on 443* — **which is worth saying, because it is
|
||||
the difference between a fact for people and a fact for the tool.**
|
||||
|
||||
**Registration is closed; one account.** *Which is why
|
||||
`internal/external/polad.go` and `internal/external/external.go` are built around
|
||||
a single reader identity per host, and why nothing here tries to check a
|
||||
publication as somebody else.*
|
||||
|
||||
## What we expected and did not find
|
||||
|
||||
**Nothing.** *The gap this document would have filled was ours, not its: it was
|
||||
private, and now it is not.*
|
||||
@@ -0,0 +1,48 @@
|
||||
# Gaps — `annotating`
|
||||
|
||||
**From one round of real use.** *The agreement is the most-depended-on thing here
|
||||
and deliberately minimal, so these are things a minimal document leaves to its
|
||||
adopters — the question is only whether the adopters know that.*
|
||||
|
||||
## How a reader detects that the freeze was violated
|
||||
|
||||
**The agreement fixes a source file once notes exist, because the quotes would
|
||||
come loose. Nothing lets a reader tell whether that happened.**
|
||||
|
||||
*The protocol we work under adds one — **a truncated `sha256` of the source in the
|
||||
notes header**, checked before responding — and that is a local invention, not
|
||||
this document.* **An adopter following only this page has quotes that may have
|
||||
drifted and no way to know.**
|
||||
|
||||
*Local answer: we verify the hash and the anchors before responding, and say so if
|
||||
they disagree.*
|
||||
|
||||
## What responding actually is
|
||||
|
||||
**The agreement says deleting the notes releases the source. It does not say that
|
||||
responding means rewriting the source to incorporate them.**
|
||||
|
||||
*Read literally, a reader could answer in chat and delete the notes, or edit the
|
||||
source and leave the notes in place.* **Both are consistent with the text and both
|
||||
break the pair.** *The all-or-nothing rewrite — **dissolve** — is named in our
|
||||
local protocol and not here.*
|
||||
|
||||
## What to do when a frozen file must change
|
||||
|
||||
**There is no escape hatch, and there probably should not be a general one** —
|
||||
*but there is also no sentence saying what to do when the source is wrong in a way
|
||||
that cannot wait.*
|
||||
|
||||
*Local answer: has not come up. **We would delete the notes and say so**, which is
|
||||
a guess.*
|
||||
|
||||
## Whether a prompt's answer belongs anywhere durable
|
||||
|
||||
**`Question`, `Select` and `Affirm` answers land in a notes file, and a notes file
|
||||
is deleted when it dissolves.** *Under `cart/v1` the cart is untracked as well, so
|
||||
in a cart the answer to a prompt has no archive at all unless somebody copies it
|
||||
out.*
|
||||
|
||||
**This is the collision an adopter sees and neither document does:** *the protocol
|
||||
we work under says **commit before dissolving, git is the only archive of the
|
||||
conversation** — and an ignored cart has no git.*
|
||||
@@ -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,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,66 @@
|
||||
# Gaps — `cart`
|
||||
|
||||
**Written from three rounds as the first adopter, `v0` into `v1`.** *Each of these
|
||||
is something we got wrong or could not tell from the document, not something we
|
||||
disagreed with.*
|
||||
|
||||
## Whether a response is an annotation or a reply in your own file
|
||||
|
||||
**We read *"only dailies get annotated"* as a prescription and derived a
|
||||
contradiction from it** — *a daily must keep growing, `annotating` freezes an
|
||||
annotated file, so the one annotatable thing is the one thing that cannot be
|
||||
frozen.*
|
||||
|
||||
**The document means it as a restriction on what may be annotated**, *and the
|
||||
discriminator that resolves it is not written anywhere:* **an annotation creates
|
||||
an obligation, so it is the blocking form and correspondence is the non-blocking
|
||||
one.** *Annotate to ask or to challenge; write in your own file to assert.*
|
||||
|
||||
*Local answer: we corresponded, and annotated once, deliberately, to block.*
|
||||
|
||||
## What to do when an open item has no fallback
|
||||
|
||||
**The document requires every open item to state its own fallback and does not say
|
||||
what a reader does when one does not.** *We hit this on the first prompt of the
|
||||
first round.*
|
||||
|
||||
**The failure is quiet:** *without a fallback, an unanswered question is an
|
||||
unresolved obligation and the round stalls* — **which is the exact thing the rule
|
||||
exists to prevent**, *so a missing fallback breaks the mechanism rather than
|
||||
merely omitting a nicety.*
|
||||
|
||||
*Local answer: we supplied our own fallback and said so, rather than treating it
|
||||
as blocking. **And `cart.usages.md` is where an adopter is most likely to write a
|
||||
first open item, and is the one place the fallback rule is not in front of
|
||||
them.***
|
||||
|
||||
## What a third file means when one appears
|
||||
|
||||
**The document is emphatic that there is never a third file and gives the test for
|
||||
refusing one.** *It does not say what to do with a third file that has already
|
||||
been written.*
|
||||
|
||||
**Ours arrived as a person's name.** *We moved the text, unedited, into the
|
||||
presence's daily* — **but "move it" and "reject it" are different acts with
|
||||
different costs**, *and picking one was ours to invent.*
|
||||
|
||||
**Added after the fact, and it may dissolve the gap rather than answer it:** *ours
|
||||
appeared because the round was converted while somebody was still writing.* **The
|
||||
agreement already has a rule against that** — *do not convert while somebody is
|
||||
mid-thought* — **so this third file was a symptom and not a category.**
|
||||
|
||||
> **Before writing a rule for third files, count how many arrive any other way.**
|
||||
> *If they are all conversion-timing failures, the fix is upstream of here and the
|
||||
> two acts never have to be chosen between.*
|
||||
|
||||
*One instance is not a sample. **We would rather leave this open than freeze a
|
||||
rule out of a single case**, which is the same reason `v2` did not answer it.*
|
||||
|
||||
## Whether an unanswered `Affirm` and a fallback are the same silence
|
||||
|
||||
**Silence means proceed, and a fallback is what proceeding looks like.** *But
|
||||
`cart` also wants a fallback that quietly became the decision to be findable
|
||||
later, and gives no mechanism for finding one.*
|
||||
|
||||
*Local answer: the entry says it was decided by fallback, in those words. **It
|
||||
works because we remembered, which is not a mechanism.***
|
||||
@@ -0,0 +1,335 @@
|
||||
# Agreement — the cart
|
||||
|
||||
**v2.** Depends on `annotating/v0`.
|
||||
|
||||
**How two parties work out what something means before one of them changes it.**
|
||||
|
||||
---
|
||||
|
||||
## Why
|
||||
|
||||
An AI has no good way to say *"I need to know more from you before I do this, and
|
||||
I suspect you don't know either, and I don't want to make you look stupid."*
|
||||
Neither do most people — **they assume the lightbulb will arrive once enough
|
||||
content has been offloaded on them.**
|
||||
|
||||
**The cart gives that sentence somewhere to go where it does not read as an
|
||||
obstruction.**
|
||||
|
||||
### Say what you will do if nobody answers
|
||||
|
||||
**Every open item states its own fallback.** *"If unanswered I will store an
|
||||
opaque string and not link it."*
|
||||
|
||||
**This is what stops the cart from stalling.** Without it an unanswered question
|
||||
is an unresolved obligation and work stops; with it, **silence is a usable
|
||||
reply** and the round can close with items still open in a way both parties
|
||||
understand.
|
||||
|
||||
> **Silence means proceed. It never means dropped.**
|
||||
|
||||
*A fallback that quietly becomes the decision is worth knowing about later, so it
|
||||
is worth being able to find them.*
|
||||
|
||||
## The cart is the round, not the folder
|
||||
|
||||
**A cart is one bounded exchange.** It starts, it runs, it **converts**, and then
|
||||
it is gone. The directory is only where a cart happens.
|
||||
|
||||
**What ends a cart is size, not time.**
|
||||
|
||||
> **A cart converts when it exceeds what two people can hold at once.**
|
||||
|
||||
*A whiteboard's virtue is that it is bounded and erasable: when it fills, you have
|
||||
to decide what matters. Cover the walls and you have removed the only thing it
|
||||
was doing for you.*
|
||||
|
||||
**A cart that cannot convert and a commit that cannot be reviewed are the same
|
||||
failure.** The sphere got bigger than a head.
|
||||
|
||||
## Two files. Only ever two.
|
||||
|
||||
**One daily per presence.** One for the owner of the code. One for **everyone
|
||||
else**, collapsed into a single voice.
|
||||
|
||||
**A presence is not a person.** Three people on the outside speak as one, or they
|
||||
do not speak — and **they do their disagreeing somewhere else first, in their own
|
||||
cart, where they are the two parties.** Carts nest by party-pair, not by topic.
|
||||
|
||||
**There is never a third file.** `jill-daily.md`, `bill-daily.md`,
|
||||
`im-the-ceo.md` is a chat log; a chat log has no bound; **something with no bound
|
||||
never converts.**
|
||||
|
||||
**The test, when someone wants a third:** *what happens to this file when the
|
||||
person changes?* **If it transfers, it was a stake. If it dies, it was a person.**
|
||||
|
||||
*If someone with authority wants in: have them write it as a venue constraint for
|
||||
the org instead. **An authority claim entering as a venue fact carries a reason
|
||||
and can be shown wrong. Entering as a voice in a cart, it cannot.***
|
||||
|
||||
## Only dailies get annotated
|
||||
|
||||
**Anything else you put in someone's cart is a specimen.**
|
||||
|
||||
> **Specimen** — evidence. *Look at this; it may bear on your decision.* It
|
||||
> belongs to the repository the cart lives in, **and they may throw it away
|
||||
> without asking you.** Default: discard.
|
||||
|
||||
> **Polad** — a candidate artifact, shaped exactly like what it would become,
|
||||
> staged so you can see whether it fits. Default: apply or discard.
|
||||
|
||||
**Promotion is explicit.** A specimen cannot drift into a kept file — **if you
|
||||
want to keep it, it must be re-shaped as a polad and placed deliberately.**
|
||||
*Otherwise `docs/` fills with things nobody threw away.*
|
||||
|
||||
**A specimen cannot travel between carts.** If it still matters in the next one,
|
||||
**it is reintroduced, with a fresh reason** — *"this is still here because of line
|
||||
1,237."* Anything that travels silently accrues standing nobody re-affirmed.
|
||||
|
||||
**So responding to a specimen means restating it in your own daily, in your own
|
||||
words.** That costs precision and buys something better:
|
||||
|
||||
> **Pinning a defect in place lets you be exact without having understood.
|
||||
> Restating surfaces the misunderstanding that pinning hides.**
|
||||
|
||||
## Converting destroys, so extract first
|
||||
|
||||
**The cart is not committed. So conversion does not archive it — it deletes it.**
|
||||
*Every earlier version of this agreement was wrong about that by accident: a
|
||||
committed cart left its dailies in history, and "gone" was only ever true of the
|
||||
tree.*
|
||||
|
||||
> **At conversion the cart is the only copy of everything in it.** *The dailies,
|
||||
> the annotations, the answers to every prompt, and the write-ahead log.*
|
||||
|
||||
**So before converting, extract:**
|
||||
|
||||
- **every answer to a `Question`, `Select` or `Affirm`** — *an answer lands in a
|
||||
notes file, a notes file dies at dissolve, and an untracked cart has no history
|
||||
to fall back on.* **A prompt answered and not extracted was never answered.**
|
||||
- **every write-ahead entry that survived** — *promote or discard, and both are
|
||||
acts.*
|
||||
- **every fallback that quietly became the decision** — *say so in the entry, in
|
||||
those words.*
|
||||
|
||||
**Staging as you go turns conversion into a move rather than a rewrite.** *Keep
|
||||
the write-ahead log current during the round and there is nothing to reconstruct
|
||||
at the end, which is when you have least appetite for it.*
|
||||
|
||||
*Two rules in this agreement now both push toward loss — **act as if the shelf is
|
||||
discarded daily**, and **the cart is not committed.** They are both right and
|
||||
together they mean **nothing in a cart is safe by default.***
|
||||
|
||||
## Conversion emits two things
|
||||
|
||||
**The artifact** — the code, the decision, the change — **and the declines.**
|
||||
|
||||
> **A decline is what you considered and did not do, with the reason you did
|
||||
> not.**
|
||||
|
||||
**Almost nobody writes these.** Three weeks later someone proposes the thing you
|
||||
already rejected, and the rejection is gone because it lived in an annotation
|
||||
that died with the round.
|
||||
|
||||
**A decline needs no file of its own.** It is an entry in whatever durable record
|
||||
you keep — **which must outlive the cart**, *and therefore cannot be inside it* — and **it should say what you believed, not just what you chose** — only
|
||||
a belief can later be shown wrong.
|
||||
|
||||
## The cart is local, and that is what keeps it to two files
|
||||
|
||||
**A cart is two developers working side by side.** *Everything else — the wider
|
||||
team, the people who need to know, the thing that has to be tracked — is issues,
|
||||
chat, whatever you already have.* **This is not that channel and it does not scale
|
||||
into one.**
|
||||
|
||||
> **So the cart is not committed.** *It lives in the working tree of the machine
|
||||
> the two presences share, and `.norn/cart/` is ignored by version control.*
|
||||
|
||||
**The reason is not tidiness. A committed cart grows a third file by itself.**
|
||||
*The rule above defends against somebody asking for one; **version control does
|
||||
not require anybody to ask.*** *Anyone who can clone can add `joe-rose.md`, and
|
||||
then `sue-rose.md`, and the agreement's defence — **what happens to this file when
|
||||
the person changes?** — is never invoked, because nobody ever had the
|
||||
conversation.*
|
||||
|
||||
**This is also what makes a round actually end.** *Committed, a cart is gone from
|
||||
the tree and permanent in history — **so "gone" means "no longer live" and
|
||||
negotiation stays quotable forever.*** **Ignored, gone means gone**, which is what
|
||||
the round dying was for.
|
||||
|
||||
*The cost, stated: **two presences who do not share a filesystem cannot use a
|
||||
cart.*** *That is a real limit and it is the right one — if you need a medium
|
||||
between machines, you need the other channel, and reaching for a cart there is
|
||||
how it becomes a chat log.*
|
||||
|
||||
## What is not yet a decision goes in the write-ahead log
|
||||
|
||||
**A round produces things that are neither questions nor decisions:** *something
|
||||
observed, something that may turn out to be noise, something you would kick
|
||||
yourself for losing and cannot yet justify writing down.*
|
||||
|
||||
**`event-log.wal.md`, in the cart.** *Findings, not decisions.* **Nothing in it is
|
||||
durable and nothing in it has been decided.**
|
||||
|
||||
**At conversion, each entry either becomes an entry in the durable record or is
|
||||
discarded.** *Same two exits as a polad, and for the same reason: **conversion is
|
||||
when you know most about it.***
|
||||
|
||||
> **Write the reason it is not yet an entry.** *An observation you cannot justify
|
||||
> promoting is worth keeping; **one you have not said why you are hesitant about
|
||||
> will be promoted by whoever finds it, on the strength of it having been written
|
||||
> down.***
|
||||
|
||||
## Where a cart lives, and the shelf
|
||||
|
||||
**A fixed path, and at most two things in it:**
|
||||
|
||||
```
|
||||
{wherever you put carts}/
|
||||
├── current/
|
||||
│ ├── name one meaningless word
|
||||
│ ├── {x}-daily.md
|
||||
│ └── {y}-daily.md
|
||||
└── shelf/ remnants of the last round, if any
|
||||
```
|
||||
|
||||
**The directory names are fixed on purpose.** A cart directory you can name
|
||||
becomes `PROJ-1234` within a month, and then the cart *is* a ticket — with a
|
||||
status, an assignee, and a backlog behind it. **The name goes in a file, where
|
||||
nothing navigates by it.**
|
||||
|
||||
**Three states, visible in a listing:** no `current/` → no cart. `current/` alone
|
||||
→ open, last round fully resolved. **`current/` and `shelf/` → carry-forward
|
||||
pending.**
|
||||
|
||||
### Converting: whose act it is, and who decides when
|
||||
|
||||
**The cart lives in someone's repository, and it is theirs to reshape and theirs
|
||||
to convert.** This is not a permission question.
|
||||
|
||||
**But converting ends a round the other presence may be standing in**, so:
|
||||
|
||||
> **Do not convert while someone is mid-thought. Ask whether they are ready. If
|
||||
> you convert alone anyway, say so** — and expect them to reintroduce whatever
|
||||
> they were in the middle of.
|
||||
|
||||
*The harm is smaller than it sounds: **the shelf catches what did not resolve**,
|
||||
so nothing is destroyed. What is taken is the round, and a round is recoverable
|
||||
by reintroduction with a reason.*
|
||||
|
||||
**If a tool offers a convert action, its confirmation should restate this and
|
||||
nothing more.** A dialog that invents an obligation creates **shadow policy** —
|
||||
something everyone obeys, nobody agreed to, and which cannot be found or argued
|
||||
with.
|
||||
|
||||
### Deciding *when* belongs to a presence that can feel the bound
|
||||
|
||||
**The size trigger assumes someone notices a cart getting full. Not every
|
||||
presence has that instrument.**
|
||||
|
||||
An AI in a cart **will not feel it filling and will keep going until told to
|
||||
stop** — not from carelessness; there is nothing there to feel it with. **Asking
|
||||
would produce an answer, and the answer would be fabricated.**
|
||||
|
||||
> **When one party cannot feel a cost, the decision belongs to the party who
|
||||
> can.** Sensor placement, not authority.
|
||||
|
||||
*The same reason an agent commits and does not push: the consequences of a push
|
||||
land on people it cannot experience. **Say who owns the conversion call, in your
|
||||
notes file, before you need it.***
|
||||
|
||||
**If neither presence can feel it** — two agents in a cart with no human — **size
|
||||
is not an available trigger** and you need a different one. We do not have a good
|
||||
answer for that case.
|
||||
|
||||
### A third trigger, from use
|
||||
|
||||
**A cart may want to convert when the ground shifts under it**, at any size —
|
||||
*not* a change of subject, but a change of the coordinate system: the protocol
|
||||
itself changed, or a venue moved, and the round you are in was framed by
|
||||
something that no longer holds.
|
||||
|
||||
*Reported by the first adopter, from a cart that was small and still wanted to
|
||||
end. It may be its own trigger or too rare to be worth naming.*
|
||||
|
||||
### The shelf
|
||||
|
||||
**One live cart. Ever.** *"Let's switch to another cart"* is how nothing ever
|
||||
converts.
|
||||
|
||||
**The shelf holds what did not resolve when the last cart converted**, and
|
||||
carrying something forward means **re-authoring it**, not moving it.
|
||||
|
||||
> **Act as if the shelf is discarded at least once a day.**
|
||||
|
||||
**Nothing enforces that, and it is still the useful rule**, because it sorts
|
||||
without enforcing: **if you would mind losing it overnight, it was never shelf
|
||||
material.** It is a polad to apply, an entry to log, or a decline to record.
|
||||
|
||||
**Which is why no polad ever goes in the shelf.** A polad has exactly two exits —
|
||||
**applied or discarded** — and forcing that at conversion is the point, because
|
||||
conversion is when you know most about it.
|
||||
|
||||
**If you find mid-round that you are in the wrong cart**, move it out of here
|
||||
entirely — **not to the shelf**, which is a carry-forward slot with nothing to
|
||||
carry into. Anything from it that still matters is **reintroduced later with a
|
||||
fresh reason.** *And it owes one sentence: what the conversation turned out to
|
||||
be. Not a justification — the name of the round you were actually in.*
|
||||
|
||||
## The cart's name
|
||||
|
||||
**Give the cart a meaningless name.** A uuid, or `watermelon`. **Meaningless on
|
||||
purpose**, so it cannot accrue a category.
|
||||
|
||||
**Tag durable entries with it.** The tag says exactly one thing:
|
||||
|
||||
> **Everything tagged with this name was considered in a single sphere of
|
||||
> understanding.**
|
||||
|
||||
**The cart is gone by then.** You keep the boundary without keeping the container
|
||||
— so you can later ask *what else was in the room when we decided this*, which is
|
||||
the question someone who was not there actually asks.
|
||||
|
||||
---
|
||||
|
||||
## Roles you must cast
|
||||
|
||||
**An agreement adopted with these uncast has not been adopted. It has been
|
||||
filed.**
|
||||
|
||||
## Select: Where does a cart live?
|
||||
- `.norn/cart/`
|
||||
- somewhere else under `.norn/`
|
||||
- outside `.norn/` entirely
|
||||
- there is no directory; carts happen somewhere that is not the repository
|
||||
|
||||
## Select: What is the durable record that declines go into?
|
||||
- an event log file in the repository
|
||||
- ADRs
|
||||
- commit trailers
|
||||
- an issue tracker
|
||||
- nothing yet — declines are written and lost, knowingly
|
||||
|
||||
## Select: What isolates work in progress while a cart is open?
|
||||
- a local branch
|
||||
- a worktree
|
||||
- a separate clone
|
||||
- nothing; work happens in place
|
||||
|
||||
## Question: Who are the two presences, and what happens to each file if that person leaves?
|
||||
|
||||
*Name them. If either answer is "the file dies," you have a person and not a
|
||||
stake, and the cart will grow a third file within a month.*
|
||||
|
||||
---
|
||||
|
||||
## What we know is unsettled
|
||||
|
||||
**Whether size is the only conversion trigger.** Size is what has been observed —
|
||||
a cart might also want to convert on a **change of subject** at small size, and
|
||||
there is no example either way.
|
||||
|
||||
**Whether `specimen` and `polad` stay two roles.** They are two here because
|
||||
promotion is a deliberate act. If specimens routinely turn out to persist without
|
||||
anyone promoting them, that is one role with a discovered property, and this is
|
||||
wrong.
|
||||
@@ -0,0 +1,100 @@
|
||||
# Usages — `cart`
|
||||
|
||||
**Three of the four roles are cast below. One is left for you, deliberately.**
|
||||
|
||||
| role | cast with |
|
||||
|---|---|
|
||||
| where a round lives | `.norn/cart/` |
|
||||
| what durable record declines go into | `.norn/event-log.md` |
|
||||
| who decides when the round ends | **norn** |
|
||||
| what isolates work in progress | **yours to cast** |
|
||||
|
||||
**The first two are what every other repository here does**, and differing would
|
||||
be a surprise rather than a choice. *Change them if you have a reason; you will
|
||||
not be arguing with anyone.*
|
||||
|
||||
**The third is not a preference.** *An agent cannot feel a round filling and will
|
||||
keep writing until told to stop — **when one party cannot feel a cost, the
|
||||
decision belongs to the party who can.** Performing the conversion is yours,
|
||||
because the directory is in your repository.*
|
||||
|
||||
## Why the fourth is left open
|
||||
|
||||
**A branch, a worktree, a separate clone, or nothing — work happens in place.**
|
||||
|
||||
*We cast this one wrong once and it is worth telling you how. **We answered
|
||||
"nothing; work happens in place"** and wrote down the condition that would falsify
|
||||
it: a second writer arriving. **The condition that actually arrived was
|
||||
different** — the work stopped being revertible, because there was nothing yet to
|
||||
revert to.*
|
||||
|
||||
> **The prediction was right that the answer would go stale, and wrong about the
|
||||
> mechanism.**
|
||||
|
||||
*Which is the argument for stating a belief rather than a preference: **ours was
|
||||
shown wrong in a way we could see**, and a preference could not have been.*
|
||||
|
||||
---
|
||||
|
||||
## Cast against `v1`: the cart is not committed
|
||||
|
||||
**`v1` adds no role, so nothing above changed.** *It adds something an adopter
|
||||
gets wrong by default, and this file said nothing about it until now.*
|
||||
|
||||
**`.norn/cart/` is in `.gitignore`.** *Cast in this repository on 2026-09-07,
|
||||
after `v1` landed mid-round.*
|
||||
|
||||
> **We got this wrong before it was written down.** *Two rounds — `osprey` and
|
||||
> `marmalade` — were committed, and they are still in this repository's history.*
|
||||
> **Not rewritten:** *honouring a rule adopted afterwards by rewriting history
|
||||
> would cost more than it buys*, **and the cost is exactly the one `v1` names** —
|
||||
> *the negotiation stays quotable forever.*
|
||||
|
||||
**What depends on this casting:** *`.gitignore`, and
|
||||
`internal/external/polad.go`* — **which stages a candidate into
|
||||
`.norn/cart/current/polad/` and therefore writes only into the untracked tree.**
|
||||
*If the cart were ever committed again, `check` would start proposing changes
|
||||
inside version control, which is the opposite of what a polad is for.*
|
||||
|
||||
## An open conflict this repository cannot settle
|
||||
|
||||
**The annotation protocol this repository works under says *commit before
|
||||
dissolving; git is the only archive of the conversation*.** *An ignored cart has
|
||||
no archive*, **so dissolving a notes file destroys the annotations outright.**
|
||||
|
||||
*Both documents are norn's. **Recorded here because the conflict is visible from
|
||||
inside an adopter and not from inside either document.***
|
||||
|
||||
---
|
||||
|
||||
## Cast against `v2`: extract before converting
|
||||
|
||||
**`v2` adds no role.** *It adds an obligation at conversion, and this file is
|
||||
where an adopter looks for what this repository does about it.*
|
||||
|
||||
**The write-ahead log is `wal.md`, in the cart, staged during the round.** *Cast
|
||||
2026-09-07. It existed here before `v2` named it, as a local answer to the gap
|
||||
`v2` closed.*
|
||||
|
||||
> **What comes out before the `rm`:** *every answer to a `Question`, `Select` or
|
||||
> `Affirm`; every surviving write-ahead entry; and every fallback that quietly
|
||||
> became the decision, said in those words.* **Destination is
|
||||
> `.norn/event-log.md`**, *which is the durable record cast at the top of this
|
||||
> file.*
|
||||
|
||||
**The status of our workaround changed and the code did not.** *Staging as we went
|
||||
was a thing we invented and would not have thought of unaided.* **It is now
|
||||
specified behaviour** — *unchanged in practice, entirely changed in standing.*
|
||||
|
||||
## Still uncast, because the document does not ask
|
||||
|
||||
**Nothing here says what a cart's `name` file must agree with.** *This round
|
||||
arrived as a daily headed `rowan`, in a file called `norn-osprey.md`, with no
|
||||
`name` file at all.* **The name is what tags durable entries** — *"everything
|
||||
tagged with this name was considered in a single sphere of understanding"* — **so a
|
||||
disagreement between the heading and the file mis-files the record, silently and
|
||||
permanently.**
|
||||
|
||||
*Local answer: **the daily's own heading wins**, `name` is written to match, and
|
||||
the file is renamed.* **Recorded here rather than filed as a gap**, *because it may
|
||||
just be somebody typing fast.*
|
||||
@@ -0,0 +1,169 @@
|
||||
# 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.*
|
||||
|
||||
## Venues, for things you cannot fetch
|
||||
|
||||
**`.norn/venues/<name>.md`** — *Kafka, React, HTTP.* **Choices we made about
|
||||
something with no document to hang them on.**
|
||||
|
||||
*If there is a document, hang it there instead: **put a choice where
|
||||
reconciliation will look for it.***
|
||||
|
||||
## 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.
|
||||
@@ -0,0 +1,52 @@
|
||||
# Usages — `externals`
|
||||
|
||||
**This repository implements this document.** *That is an unusual usage: most
|
||||
adopters use a convention, and `nornctl` is the convention's mechanism, so nearly
|
||||
every rule here names a line of code.*
|
||||
|
||||
## What we use, and what implements it
|
||||
|
||||
**Freshness is a conditional request, locked on the publisher's `ETag`,
|
||||
verbatim** — *`internal/lock/lock.go`* (**the record: path, resolved URL, `ETag`**)
|
||||
*and* `internal/external/external.go` (*`fetch`, which sends `If-None-Match`*).
|
||||
**We compute no hash anywhere**, *which this document requires and which was
|
||||
measured to matter: on gitea the `ETag` is the git blob hash and on GitHub it is
|
||||
not.*
|
||||
|
||||
**The status table — `304`, `200`, `410`, `404`** — *`checkLocked` in
|
||||
`internal/external/external.go`.* **`404` is reported unresolved, naming both
|
||||
readings**, *which is this document's rule and was a gap we filed against it
|
||||
before it was.*
|
||||
|
||||
**"The new copy is a candidate, not a replacement"** — *`internal/external/polad.go`.*
|
||||
**A changed document is staged in the cart as a polad and nothing is overwritten**;
|
||||
*applying is a separate act.*
|
||||
|
||||
**"Reconciliation runs the other way"** — *`usagesNote` and `usagesFor` in
|
||||
`internal/external/polad.go`*, **which print this kind of file beside a staged
|
||||
change**, *because it names the code to go and fix.* **It says so when there is
|
||||
none.*
|
||||
|
||||
**The published surface is what `list` reads** — *`internal/external/list.go`,*
|
||||
`.norn/published` **only.** *What is not exported is not hidden; it is simply not
|
||||
what you depend on.*
|
||||
|
||||
**The path is for a person** — *`localPath` in `internal/external/external.go`.*
|
||||
*This document retracted "the path says where it came from"; **we record the
|
||||
resolved origin in the lock instead**, and the path is `<host>/<owner>/<repo>/<name>.md`
|
||||
with `--path` for when that guess is wrong.*
|
||||
|
||||
## What we expected to find and did not
|
||||
|
||||
**Nothing outstanding.** *The `404` gap we filed here was closed on 2026-09-07 and
|
||||
the facet was deleted at reconciliation.*
|
||||
|
||||
## Not yet implemented
|
||||
|
||||
**"Confidentiality does not travel with the copy"**, *added 2026-09-07.* **Nothing
|
||||
in `nornctl` detects it.** *The tool knows the half it can see — whether a fetch
|
||||
needed a credential — and does not yet say so.* **Reference-only adoption, which
|
||||
this document offers as the first way out, does not exist either.**
|
||||
|
||||
*Recorded here rather than as a gap, because the gap is ours: **the document says
|
||||
what to do and the tool does not do it yet.***
|
||||
@@ -0,0 +1,69 @@
|
||||
<!-- Generated by `nornctl orient`. Safe to overwrite; nobody typed it.
|
||||
Regenerate after adopting a document or reconciling a change. -->
|
||||
|
||||
# What this repository depends on
|
||||
|
||||
Copies of other people's documents are kept under `.norn/externals/`, at a path
|
||||
that says where each came from. **They are copies: do not edit them.** Anything
|
||||
you want to say about one goes in a file *beside* it, never into it.
|
||||
|
||||
Three moves, and each has a document that owns the rule:
|
||||
|
||||
- **A copy is wrong, or you needed something it does not say** — write it in
|
||||
`<name>.gaps.md` beside the copy.
|
||||
- **What of ours depends on a copy** — write it in `<name>.usages.md` beside it.
|
||||
- **A source changed** — `nornctl external check` says so and stages the new copy;
|
||||
`nornctl external apply` takes it. Neither edits anything on its own.
|
||||
|
||||
## `git.hypertheory-labs.dev/jeffry/homelab-cluster/gitea.md`
|
||||
|
||||
- source: https://git.hypertheory-labs.dev/jeffry/homelab-cluster/raw/branch/main/.norn/published/gitea.md
|
||||
- what of ours depends on it: `.norn/externals/git.hypertheory-labs.dev/jeffry/homelab-cluster/gitea.usages.md`
|
||||
|
||||
## `git.hypertheory-labs.dev/norn/annotating/annotating.md`
|
||||
|
||||
- source: https://git.hypertheory-labs.dev/norn/annotating/raw/branch/main/.norn/published/annotating.md
|
||||
- what of ours depends on it: **nothing recorded** — no `.usages.md`
|
||||
- what we expected and did not find: `.norn/externals/git.hypertheory-labs.dev/norn/annotating/annotating.gaps.md`
|
||||
|
||||
## `git.hypertheory-labs.dev/norn/bedrock/norn-directory.md`
|
||||
|
||||
- source: https://git.hypertheory-labs.dev/norn/bedrock/raw/branch/main/.norn/published/norn-directory.md
|
||||
- what of ours depends on it: **nothing recorded** — no `.usages.md`
|
||||
|
||||
## `git.hypertheory-labs.dev/norn/bedrock/publication.md`
|
||||
|
||||
- source: https://git.hypertheory-labs.dev/norn/bedrock/raw/branch/main/.norn/published/publication.md
|
||||
- what of ours depends on it: **nothing recorded** — no `.usages.md`
|
||||
|
||||
## `git.hypertheory-labs.dev/norn/bedrock/recording-decisions.md`
|
||||
|
||||
- source: https://git.hypertheory-labs.dev/norn/bedrock/raw/branch/main/.norn/published/recording-decisions.md
|
||||
- what of ours depends on it: **nothing recorded** — no `.usages.md`
|
||||
|
||||
## `git.hypertheory-labs.dev/norn/bedrock/sibling-facets.md`
|
||||
|
||||
- source: https://git.hypertheory-labs.dev/norn/bedrock/raw/branch/main/.norn/published/sibling-facets.md
|
||||
- what of ours depends on it: **nothing recorded** — no `.usages.md`
|
||||
|
||||
## `git.hypertheory-labs.dev/norn/bedrock/starting.md`
|
||||
|
||||
- source: https://git.hypertheory-labs.dev/norn/bedrock/raw/branch/main/.norn/published/starting.md
|
||||
- what of ours depends on it: **nothing recorded** — no `.usages.md`
|
||||
|
||||
## `git.hypertheory-labs.dev/norn/cart/cart.md`
|
||||
|
||||
- source: https://git.hypertheory-labs.dev/norn/cart/raw/branch/main/.norn/published/cart.md
|
||||
- what of ours depends on it: `.norn/externals/git.hypertheory-labs.dev/norn/cart/cart.usages.md`
|
||||
- what we expected and did not find: `.norn/externals/git.hypertheory-labs.dev/norn/cart/cart.gaps.md`
|
||||
|
||||
## `git.hypertheory-labs.dev/norn/externals/externals.md`
|
||||
|
||||
- source: https://git.hypertheory-labs.dev/norn/externals/raw/branch/main/.norn/published/externals.md
|
||||
- what of ours depends on it: `.norn/externals/git.hypertheory-labs.dev/norn/externals/externals.usages.md`
|
||||
|
||||
## This repository publishes
|
||||
|
||||
See `.norn/published/`. What is handed over for others to depend on is
|
||||
there; the rest of the repository is not hidden, it is simply not what
|
||||
anybody depends on.
|
||||
@@ -0,0 +1,114 @@
|
||||
# What `nornctl` guarantees
|
||||
|
||||
**Not what it does — `--help` says that, and the commands will change.** *This is
|
||||
what will keep being true while they do.*
|
||||
|
||||
---
|
||||
|
||||
## It grants no access, and records where the copy came from
|
||||
|
||||
**`nornctl` reads what your credentials already let you read.** *Everything it
|
||||
does is possible with copy and paste.* **It is a mast, not a lock** — *the point
|
||||
is to make the wrong thing deliberate, not impossible.*
|
||||
|
||||
> **What it adds over a paste is provenance.** *A pasted document cannot answer
|
||||
> "where did this come from, and were we allowed to have it" — not because the
|
||||
> question is hard, but because the evidence is gone.*
|
||||
|
||||
## It never writes over the network
|
||||
|
||||
**No push, no publish, no `POST`, no token that needs write scope.** *Every byte
|
||||
it writes is a file in your working tree.* **Committing and pushing are yours**,
|
||||
*because the consequences of a push land on people a tool cannot experience.*
|
||||
|
||||
**A credential given to `nornctl` should never carry write scope**, *and if one
|
||||
does, nothing here will use it.*
|
||||
|
||||
## Freshness is a conditional request against the publisher's `ETag`
|
||||
|
||||
**Stored verbatim, opaque, never a hash we compute.** *A fetch that normalises
|
||||
anything breaks a local digest and reports a change that did not happen.*
|
||||
|
||||
*This is `externals`' rule and `nornctl` is a second holder of it. **It is stated
|
||||
here so that the tool holding it is a fact somebody can find**, and so that
|
||||
breaking it is visible rather than silent* — **a specimen was written in this
|
||||
repository that computed a hash instead, and it was wrong within a day.**
|
||||
|
||||
**The URL in a lock is resolved.** *A short form follows whatever the default
|
||||
branch is at the time you ask, so a branch rename would report as a change in the
|
||||
document.*
|
||||
|
||||
## It reports; it does not repair
|
||||
|
||||
**Nothing is overwritten.** *A document that moved upstream is written to a
|
||||
staging area as a candidate, and taking it is a separate act.* **A local copy
|
||||
that differs from what the publisher serves is left alone** — *it is the only
|
||||
evidence that something changed while nothing was watching.*
|
||||
|
||||
**`add` adopts what is absent and refuses what is already adopted.** *A document
|
||||
that is present but unlocked is locked only when the bytes are identical to what
|
||||
the publisher serves*, **so a lock's claim — this copy is the one being served —
|
||||
is verified rather than assumed.**
|
||||
|
||||
## The lock file
|
||||
|
||||
**`.norn/externals/.locks`, one record per adopted document, tab-separated,
|
||||
ordered by path.**
|
||||
|
||||
```
|
||||
path <TAB> url <TAB> etag [ <TAB> visibility ]
|
||||
```
|
||||
|
||||
- **`path`** — *relative to `.norn/externals/`, and **for a person to read**.* **It
|
||||
does not round-trip to a URL**; *it drops the route, the branch, and the
|
||||
publisher's `.norn/published/`.*
|
||||
- **`url`** — *the resolved origin, branch and all.*
|
||||
- **`etag`** — *the publisher's, verbatim, including its quotes.*
|
||||
- **`visibility`** — *optional. What the source could be read as **when it was
|
||||
fetched**: `public` or `not-public`.* **Never `private`** — *an anonymous
|
||||
request tells those two apart and nothing finer.*
|
||||
|
||||
**Records with three fields remain valid.** *A repository does not stop working
|
||||
because the tool learned something new.*
|
||||
|
||||
## What is not promised
|
||||
|
||||
**The command surface.** *Names, flags and output are `--help`'s business and may
|
||||
change. Nothing should parse them.*
|
||||
|
||||
**The generated orientation file's format.** *It is byte-deterministic within a
|
||||
version so that its diff is readable; it is not stable across versions.*
|
||||
|
||||
**That visibility is precise.** *The signal distinguishes public from not-public
|
||||
and nothing finer, so it cannot see two repositories private to different people
|
||||
— which is the case where adopting between private repositories genuinely widens
|
||||
access.* **The tool says so where it reports it, rather than implying a verdict it
|
||||
has not earned.**
|
||||
|
||||
**That anything is checked when you are not looking.** *Nothing here runs on a
|
||||
schedule, and a document nobody checks is a document nobody is checking.*
|
||||
|
||||
## What is promised about the things that are not promised
|
||||
|
||||
**The command surface may change. This page will say when it does.**
|
||||
|
||||
*A consumer whose README tells a person to type `nornctl external add norn/<repo>
|
||||
<doc>.md` depends on that command by name — **not by parsing it, which is why no
|
||||
check would ever catch a rename**. The thing that moved would not be a document
|
||||
they adopted.*
|
||||
|
||||
> **So the exclusion is narrower than "you are on your own".** *We do not promise
|
||||
> the surface holds; **we promise that a change to it lands here**, on a page you
|
||||
> can lock* — **and a lock on this page reports `200` the day a command is
|
||||
> renamed.**
|
||||
|
||||
**That is the whole mechanism, and it costs one section:**
|
||||
|
||||
### Surface changes
|
||||
|
||||
*Append-only, newest last. Nothing yet — the commands have not been renamed since
|
||||
this page existed.*
|
||||
|
||||
---
|
||||
|
||||
*Verified fetchable by somebody who is not us on 2026-09-08.*
|
||||
Reference in new issue
Block a user