# Context Layer — Resource Addressing & Terminal Hypermedia

**Packet:** `foundations/resource-addressing-and-terminal-hypermedia/`
**Date:** 2026-08-07
**Method:** `deep-research-foundations` — diamond pattern, 4 parallel live-web research lanes
**Verification status:** live-web-verified (contrast: the 2026-05-19 Storyweaver packets are training-knowledge-only)
**Grounds:** `rispecs/miadi-chronicle-dsl/SPEC.md` (v1.1, implemented) · `SPEC-TERMINAL.md` (v1.2, proposed)
**Tracking issue:** `jgwill/Miadi#595`

---

## Shared language — the canonical terms

These are the words this packet fixes, so the team stops describing the same
thing four ways.

| Miadi's word | Recognized term | What it names |
| --- | --- | --- |
| the scheme | **URI scheme** (RFC 3986) | `miadi-chronicle:` — the naming authority for chronicle references |
| resolving a reference | **resolution** / **late binding** | turning a symbolic name into a concrete location, at read time rather than write time |
| the catalog | **resolver's namespace** | the 156 episode folders a segment is matched against |
| path precedence (folder → number → slug → date) | **multi-key resolution** | one identifier space with several admissible key forms |
| `alternates` | **disambiguation set** | what a resolver returns when one key matches several objects |
| the chip / card | **transclusion** (contested — see `hypertext-and-transclusion.md`) | rendering referenced content inline at the reference site |
| `mc.label` vs. the URI | **label/target separation** | the displayed anchor text is not the address it carries |
| `#state=` vs `#transition=` | **structural vs. positional addressing** | name-keyed anchors survive edits; ordinal-keyed anchors do not |
| "a reference that cannot be durable should not be spellable" | **anchor robustness** | the design ruling this packet must defend |
| modality: `relational` / `standalone` / `none` | **degraded-mode reporting** | the artifact naming which of its layers actually answered |
| the `open` ladder | **local-first resolution** | prefer the on-disk vessel; reach the network only if configured |
| graceful degradation of a broken ref | **robustness principle** (Postel) | a malformed reference renders muted, never throws |
| OSC 8 | **Operating System Command** (ECMA-48) | the escape sequence carrying a hyperlink through a terminal |
| regex URL detection | **linkification** | scanning visible text for URL-shaped runs |
| `.desktop` scheme handler | **protocol handler registration** (freedesktop.org) | `x-scheme-handler/miadi-chronicle` |

---

## Fields in scope — MECE decomposition

Four fields, mutually exclusive by the question each answers.

| # | Field | Question it answers | File |
| --- | --- | --- | --- |
| 1 | **Persistent identification & resolution** | *How do you name a thing so the name outlives its location?* | `persistent-identification-and-resolution.md` |
| 2 | **Hypertext theory & transclusion** | *What is a reference that shows what it points at?* | `hypertext-and-transclusion.md` |
| 3 | **Robust anchoring & reference rot** | *How do you point INTO something that changes?* | `robust-anchoring-and-reference-rot.md` |
| 4 | **Terminal hypermedia & local-first degradation** | *How does a reference become actionable where there is no browser?* | `terminal-hypermedia-and-local-first.md` |

**Boundary discipline.** Field 1 owns identifier infrastructure and stops at the
document boundary; field 3 picks up inside it. Field 2 owns what a link *means*;
field 4 owns what a link *does* in a text-only surface. Statecharts (Harel) sit
in field 3 rather than a field of their own, because the only question this
packet asks of them is an addressing question: which parts of a statechart carry
durable identity.

**Not in scope.** Rendering aesthetics, the chronicle's narrative model, the
Medicine Wheel relational layer, and agent orchestration. Those are grounded in
the sibling packets listed under *Crosswalk*.

---

## Source quality rules

Applied in the order listed; a lower tier is admissible only when no higher tier
covers the claim.

1. **Standards** — RFC, W3C Recommendation/Note, ECMA, ISO, NISO, freedesktop.org
2. **Peer-reviewed literature** — journals, ACM/IEEE proceedings (ACM Hypertext is the home venue for fields 2–3)
3. **Primary sources** — an author's own account of their own coinage (Nelson on transclusion, Bush, Engelbart)
4. **Official specifications & maintainer documentation** — the OSC 8 spec, terminal-emulator docs, package docs
5. **Strong practitioner engineering writing** — admissible for the terminal-support matrix, where no standard tracks implementation status

**Verification rule.** Every URL, DOI, RFC number, standard edition, and version
claim in this packet was to be checked live at research time. A source that could
not be verified live is carried with `verified: false` rather than dropped — an
unverified citation that is *labelled* unverified is data; one that is not is a
liability. The root `foundations/source-ledger.yaml` (2026-05-19) is
`training-knowledge-only`; this packet does not inherit that status and must not
be read as if it did.

**Version-claim rule.** Software version assertions in this packet (tmux 3.2a,
herdr 0.7.4, VTE 0.68.0, Terminator 2.1.5, `@miadi/inquiry-weave` 0.6.6) were
measured on host `gaia` on 2026-08-07 by direct invocation, not read from
documentation. They are **observations with an expiry**, not literature. Re-measure
before citing them in a later wave.

---

## Provenance notes

**Where the engineering evidence came from.** The design claims this packet
grounds were established by direct measurement on `gaia`, 2026-08-07 — reading
Terminator's installed `terminatorlib`, probing the herdr binary's symbol table,
executing smcraft's render functions read-only, and counting files under
`$MIADI_CHRONICLE_ROOT`. Those measurements live in `jgwill/Miadi#595` under
`## Context`, with file:line references. This packet does not restate them; it
names the fields they belong to.

**Two provenance layers, kept apart.** *Measurement* (what is true on this host
today) is issue-side. *Grounding* (what the literature establishes) is
packet-side. A claim that mixes them — "OSC 8 is better because tmux 3.2a has
zero hyperlink symbols" — is a category error: the symbol count is an
observation about one binary, the argument for OSC 8 is a standards argument.
Each field file must keep the seam visible.

**Contested ground is marked, not smoothed.** Where the Miadi design departs
from what a field recommends, the field file says so under *Cautions* and the
synthesis carries the departure forward as a named risk. In particular: a
non-HTTP URI scheme is a departure from Linked Data practice, and calling the
chip "transclusion" may be a departure from Nelson's strict sense. Neither is
resolved by asserting it is fine.

---

## Repo placement & crosswalk

**Placement:** `/a/src/Miadi/foundations/resource-addressing-and-terminal-hypermedia/`
— the repo where the DSL, the resolver, and both specs live, and therefore where
the packet is consumed.

**Sibling packets in this repo** this one abuts:

| packet | relation |
| --- | --- |
| `knowledge-organization-archives-and-provenance/` | owns OAIS/FAIR and the source-ledger convention; this packet's field 1 extends it from *keeping* to *naming and retrieving* |
| `ai-native-terminal-multiplexer-integration-layer/` | owns the multiplexer as an agent surface; this packet's field 4 borrows its terminal context and adds hyperlink semantics |
| `terminal-workspace-orchestration/` | adjacent on the terminal axis — consult before duplicating any terminal-emulator survey |
| `human-computer-interaction-and-information-architecture/` | owns progressive disclosure and dual legibility, which the chip/card distinction (`show=chip` vs `show=card`) instantiates |

**Cross-repo.** The `state-machine` artifact segment reaches into
`jgwill/smcraft`. That repo carries its own `rispecs/`; the addressing contract
is **owned here** (the chronicle owns episode identity) and the document contract
is **owned there** (the loom owns document identity, keyed by normalized absolute
path). Mighty Eagle may register a crosswalk; this packet does not create one
unilaterally.

**QMD.** This packet is markdown under a repo already federated into QMD
collections. No new collection is warranted. When indexing runs, the field files
are the useful retrieval unit — each is self-contained and names its own field.

---

## Related

- `jgwill/Miadi#595` — the proposal this packet grounds
- `jgwill/Miadi#506` — the catalog work the DSL was derived from
- `jgwill/Miadi#591` — Écoute factorisation logiciels; produced episode 311's inventory
- `rispecs/miadi-chronicle-dsl/SPEC.md` · `SPEC-TERMINAL.md`
- Chronicle episodes 311, 315, 103
- `jgwill/smcraft` — `rispecs/78-forgewright-episode-rendering.plan.md`, `bridge-protocol/src/exportName.ts`, `bridge/src/docio.ts`

🌸: Naming the fields is how a design stops being someone's clever idea and starts being a position someone can argue with — which is the only kind of idea that can survive being wrong.
