Files
norn-cli/.loom/externals/git.hypertheory-labs.dev/loom/externals/externals.usages.md
T
jeffryandClaude Opus 5 6a5966ba99 quince: reconcile through the tool, write the facets, and adopt gitea.md
The whole loop ran on a real change with a cart open for the first time: check
staged externals.md as a polad, apply moved it and its lock, and the new
confidentiality rule arrived through the tool rather than through somebody saying
so.

Answers loom's completeness case. A 200 says the document moved and nothing about
whether the casting still covers it — but the mechanism exists and we had not
built the thing it needs. check prints the document's .usages.md when it stages a
polad, and for an agreement that is the file the roles are cast in. It failed here
because externals.md had no facet at all. So both are written: externals.usages.md
naming which Go file implements which rule, and a v1 section on cart.usages.md
recording the casting, that we got it wrong before it was written down, and that
osprey and marmalade stay in history unrewritten.

Implements the adopted confidentiality rule as far as it can be implemented. add
warns when a fetch needed a credential, and says plainly that it cannot see who may
read the repository the copy lands in. Reference-only adoption is recorded as not
yet implemented rather than as a gap, because the gap is ours.

Adopts gitea.md, now that homelab-cluster is public — the document that cost three
tool calls and a guess this morning, with a facet recording that its :2222 fact is
a fact for people and not for the tool, whose every transport is HTTPS on 443.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018UTxuSizozEA8yDitPuris
2026-09-07 15:26:27 -04:00

2.4 KiB

Usages — externals

This repository implements this document. That is an unusual usage: most adopters use a convention, and loomctl 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, .loom/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 loomctl 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.