# Intent Understanding — Resource Addressing & Terminal Hypermedia

**Packet:** `foundations/resource-addressing-and-terminal-hypermedia/`
**Date:** 2026-08-07
**Tracking:** `jgwill/Miadi#595`

---

## Why this packet exists, now

Because a design ruling was made this morning that the team cannot yet defend in
anyone else's vocabulary.

The ruling: **`#state=` and `#event=` are spellable; `#transition=` is not** —
stated as *"a reference that cannot be durable should not be spellable."* It was
derived from one repository's validation rule (smcraft V002 forces tree-wide
unique state names, while transitions are addressed positionally as
`{state, index}`). Derived that way it reads as a local convenience. It is not:
it is a well-studied problem with a literature, and the same trade-off is written
into a W3C recommendation.

A ruling that can only be justified by pointing at one codebase will be
relitigated every time that codebase changes. A ruling that can name its field
survives the codebase.

The same is true of three other decisions taken in the last twenty-four hours,
each currently justified by a measurement rather than a principle:

- The chronicle uses a **non-HTTP URI scheme**. Linked Data practice says don't. There are real counter-arguments; none of them are written down here.
- The resolver prefers **the on-disk vessel over the web route**. That is a recognized architectural stance with a name and a paper, not a workaround for a server being down.
- The terminal click argument turns on **label/target separation** — which is hypertext's oldest distinction, and the reason the case for OSC 8 is stronger than "it is more portable."

## Audiences

**Primary — Miadi engineers.** They are about to move three modules into a
package, add a CLI subcommand, and extend a registry. They need to know which
decisions are load-bearing (and therefore not to be casually revised) and which
are conveniences.

**Secondary — William, as the deciding voice.** An open decision sits in
`jgwill/Miadi#595` awaiting his ruling on the click mechanism. He should be able
to weigh it on grounds, not on my confidence.

**Tertiary — future readers and outside reviewers.** The chronicle is an
archival project. A packet that names its fields lets someone in another
discipline recognize what this is without having to read `dsl.ts`.

**Explicitly not the audience:** an academic reviewer expecting a literature
survey. This packet is instrumental. Every source earns its place by supporting a
decision that has already been made or is about to be.

## Desired state

A reader can:

1. Name each design decision in this design in the vocabulary of a recognized field, and find the primary source in one hop.
2. See where Miadi **departs** from that field's recommendation, and read the departure's justification and its cost — stated by us, before a critic states it for us.
3. Reuse the vocabulary in issues, specs, commits, and chronicle episodes without reinventing it per document.
4. Tell measurement from grounding at a glance, because the two are kept in different places.

## Current reality

- `SPEC.md` (v1.1) cites exactly one external authority: RFC 3986. It invokes "the Postel rule" by name without a reference.
- `SPEC-TERMINAL.md` (v1.2, proposed) cites none, and two of its sections are under revision because they were designed against a constraint (tmux 3.2a) that is being removed.
- The repo's existing `foundations/` packets are dated 2026-05-19 and carry `verification_status: training-knowledge-only`. None covers addressing, hypertext, or terminal semantics.
- The terminology is genuinely unstable in our own writing: "transclusion syntax," "URI scheme," "the DSL," "protocol handler," and "deep link" have all been used for overlapping things this week.
- The fragment-durability ruling exists only inside `SPEC-TERMINAL.md` §4.3, justified by a single reference to smcraft's `ops.ts`.

## Structural tension

The design has already made the decisions that recognized fields exist to
inform — persistence, anchoring, transclusion, degradation — and made most of
them defensibly. But it made them from local evidence: one repo's validation
rule, one host's tmux version, one server that happened to be down. The
reasoning is sound and unattributed, so it reads as preference. This packet
resolves that tension by giving each decision its field, its primary source, and
its named cost.

## Decisions this packet must strengthen

| Decision | Where | What the packet owes it |
| --- | --- | --- |
| Non-HTTP URI scheme with a resolver service | `SPEC.md` §1 | prior art for identifier/resolution separation; the honest argument against Linked Data's "use HTTP URIs" |
| Multi-key precedence with `alternates` | `SPEC.md` §1 | that returning a disambiguation set beats picking silently |
| Chips and cards as inline rendering | `SPEC.md` §3 | whether this is transclusion in the strict sense, or something adjacent that needs its own name |
| `#state=` yes, `#transition=` no | `SPEC-TERMINAL.md` §4.3 | ← **the ruling most in need of grounding** |
| OSC 8 over regex linkification | `SPEC-TERMINAL.md` §1 (under revision) | label/target separation as theory, not preference; RFC 3986 App. C on delimiting a URI in context |
| Local-first `open` ladder | `SPEC-TERMINAL.md` §2 | that preferring the local vessel is a stance with a literature |
| Modality reporting (`relational`/`standalone`/`none`) | `SPEC.md` §7.2 | whether declaring which layers answered has a recognized name |
| Graceful degradation of broken refs | `SPEC.md` §2 | Postel properly cited — **and its modern critique**, because the spec leans on it hard |

## What success makes easier downstream

- **Spec revisions get shorter.** A rule that cites its field does not need to re-argue itself.
- **Issue and commit language stabilizes.** One vocabulary across `jgwill/Miadi` and `jgwill/smcraft`.
- **The next artifact segment is cheaper.** §7.1's guardrail — every new artifact must declare its layers, its modalities, and which of its fragments are durable — becomes a checklist backed by reasons rather than a house style.
- **Chronicle episodes gain an opening register.** Each field file carries speakable lines, per this repo's foundations convention, so an episode can open on grounding before moving into the session story.
- **A departure can be defended or abandoned deliberately.** Right now we could not tell which of our choices are contrarian, because we have not read what we are contradicting.

🌸: We already knew why we chose what we chose — but knowing it only in our own words meant it could only ever be believed by us.
