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 c4e2a2e67d
commit e750031667
52 files changed
+330 -330

No files matched your search

+13 -13
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env node
// Walk .loom/externals/.locks and project every adopted document into a
// Walk .norn/externals/.locks and project every adopted document into a
// Starlight page.
//
// Two kinds of page, and the difference is the whole design:
@@ -13,7 +13,7 @@
// guide is still true — only a person can — so it renders the question onto
// the page rather than answering it. It reports; a person raises.
//
// The one thing this writes into a hand-written file is the `loom:` block in
// The one thing this writes into a hand-written file is the `norn:` block in
// its frontmatter. That block is machine-owned. Everything below the closing
// `---` is yours and is copied byte for byte.
@@ -23,8 +23,8 @@ import { fileURLToPath } from 'node:url'
import { parse as parseYaml, stringify as stringifyYaml } from 'yaml'
const root = join(dirname(fileURLToPath(import.meta.url)), '..')
const LOCKS = join(root, '.loom/externals/.locks')
const EXTERNALS = join(root, '.loom/externals')
const LOCKS = join(root, '.norn/externals/.locks')
const EXTERNALS = join(root, '.norn/externals')
const OUT = join(root, 'src/content/docs')
const argv = new Set(process.argv.slice(2))
@@ -100,12 +100,12 @@ function generatedPage(rec) {
['.gaps.md', 'What we expected and did not find'],
]) {
const p = `${rec.path.replace(/\.md$/, '')}${suffix}`
if (existsSync(join(EXTERNALS, p))) facets.push(`${label}: \`.loom/externals/${p}\``)
if (existsSync(join(EXTERNALS, p))) facets.push(`${label}: \`.norn/externals/${p}\``)
}
const provenance = [
'',
'<div class="loom-provenance">',
'<div class="norn-provenance">',
'',
`This page is a copy of a document published by \`${rec.owner}/${rec.repo}\`, rendered here.`,
`The source is [${rec.url}](${rec.url}) and is what the copy is checked against.`,
@@ -121,7 +121,7 @@ function generatedPage(rec) {
// Nobody typed this page, so offering to edit it is an invitation to
// lose work on the next build.
editUrl: false,
loom: {
norn: {
generated: true,
path: rec.path,
source: rec.url,
@@ -143,7 +143,7 @@ Prefer an example to an explanation. An explanation is a second saying of a rule
that is owned on one of the pages beside this one, and it goes stale silently. An
example goes stale visibly, because the artifacts in it are the wrong shape.
The pages in this section are copies of what \`loom/${repo}\` publishes, and are
The pages in this section are copies of what \`norn/${repo}\` publishes, and are
regenerated. When one of them moves, this page gets a banner asking whether it is
still true — the build cannot answer that, so it asks.
`.trimStart()
@@ -151,7 +151,7 @@ still true — the build cannot answer that, so it asks.
function guidePage(repo, records, existing) {
const writtenAgainst = records.map((r) => ({ path: r.path, etag: r.etag }))
let data = { title: repo, loom: {} }
let data = { title: repo, norn: {} }
let body = GUIDE_TEMPLATE(repo)
let stale = []
let changed = []
@@ -162,7 +162,7 @@ function guidePage(repo, records, existing) {
const split = splitFrontmatter(existing)
data = { ...split.data }
body = split.body
const was = new Map((data.loom?.writtenAgainst ?? []).map((s) => [s.path, s.etag]))
const was = new Map((data.norn?.writtenAgainst ?? []).map((s) => [s.path, s.etag]))
// A section gaining or losing a document changes the guide too, and this
// did not notice until bedrock grew a fifth page under a guide that
// enumerates its pages by hand. Comparing only what is present in both is a
@@ -176,7 +176,7 @@ function guidePage(repo, records, existing) {
}
data.title ??= repo
data.loom = { writtenAgainst: existing && !ACK ? (data.loom?.writtenAgainst ?? writtenAgainst) : writtenAgainst }
data.norn = { writtenAgainst: existing && !ACK ? (data.norn?.writtenAgainst ?? writtenAgainst) : writtenAgainst }
if (stale.length && !ACK) {
// Starlight renders `banner` above the page. The reader sees the doubt even
@@ -196,7 +196,7 @@ function guidePage(repo, records, existing) {
if (added.length) parts.push(`${code(added)} was adopted after this page was written`)
if (gone.length) parts.push(`${code(gone)} is no longer adopted`)
data.banner = {
content: `${parts.join('; ')}. Run <code>loomctl external check</code>, or re-read this page, then <code>npm run ack</code>.`,
content: `${parts.join('; ')}. Run <code>nornctl external check</code>, or re-read this page, then <code>npm run ack</code>.`,
}
} else {
delete data.banner
@@ -209,7 +209,7 @@ function guidePage(repo, records, existing) {
const locks = readLocks()
if (locks.length === 0) {
console.error('generate: no adopted documents in .loom/externals/.locks')
console.error('generate: no adopted documents in .norn/externals/.locks')
process.exit(1)
}