# Synthesis

## Findings

### F1. The shape runs three times, not twice

The request named two instances: charts into Asterion (built) and circles into Asterion
(drafted). A third is built and closer to the circle case than the first:
`@medicine-wheel/honcho` already projects ceremonies into Honcho with `projectCeremony(ceremony: CeremonyLog)`,
and returns derived conclusions to the wheel with `memoryProjectionNode`.

### F2. The factory already uses the word "projection"

Asterion's mapper: "A coaia-narrative JSONL memory is the record. Asterion holds a projection of
it" (`app/lib/asterion/coaia-projection.mjs`). The chart-path skill: "The file is the record.
Asterion only holds a projection of it." `@medicine-wheel/honcho`: "the wheel's projection into
Honcho", "The wheel is canonical". The name is taken from the code, not invented for it.

### F3. Eight invariants hold in both built instances

| code | invariant | evidence |
|---|---|---|
| I1 | The record stays in its domain. The other product holds a projection, never the record. | chart-path skill; honcho header ("The wheel is canonical") |
| I2 | The projector reads through the domain's published, versioned contract. It never re-derives the record's shape. | `coaia-narrative/contract` header: a hand-written reader "quietly renders LESS" (73 entities where the writer read 76); asterion `23471ab` moved the mapper onto `parseStore` |
| I3 | Every projected row names the record it came from. | asterion rows carry `external_source = 'coaia-narrative:<key>'` and `external_id` = the record's name; honcho carries `wheel_id` in metadata |
| I4 | One authority feeds each projected unit. | asterion `78cdb9b`: a project is fed by the door or by the registry sync, never both, and the door answers 409 for the other kind. Its first review found "two transports able to undo each other" |
| I5 | Projecting again is repeatable and deletes nothing. | asterion `78cdb9b`: a plan equal to the last one is a no-op, absent charts are archived and come back; `MAPPER_VERSION` re-projects every project |
| I6 | The domain never fails because the other product is down. | `asterion-bridge.ts`: "Asterion being down must never cost a chart" |
| I7 | A change made in the other product goes back through the domain's own writer, carrying its source and who made it. | chart-path skill (a chart is steered without Asterion writing its file); honcho's "project back" writes a node with source ids, status `inferred`, `confirmed` or `rejected`, and who derived it |
| I8 | Visibility is decided per source, before the first projection. | chart-path skill: `--private` in the same command that first registers a project |

### F4. In Asterion a ceremony is a room, and its concerns are threads

Decided on 2026-10-07: Guillaume answered D12 to D17 in session `6b82364a` ("all make sense, do
it"), and that session applies them to miadisabelle/asterion#20, #21 and #22. A ceremony is a
room. Its turns form a discussion, in the order they were spoken. A thread is a concern a reader
follows, and one room can hold several. The definitions come from Episode 339 (2026-08-25), where
Guillaume objected to closing a dialogue when one of its topics resolved.

What this changes for the circle projection:

- The projector built on 2026-10-06 (asterion `db394de`) maps a ceremony to one thread
  (`thread_type 'ceremony'`) and its turns to beats held by that thread. Migration `001`
  (asterion `524b0bd`) lets a beat be held by a thread instead of a tension, which resolves the
  schema limit this finding first named. The ceremony-as-thread mapping is what D14 replaces.
- Which concern a turn belongs to is not on the wheel. A ceremony is a `CeremonyLog`, and a turn
  is a beat with `ceremonies[]`, `speaker` and `witnesses`, with no discussion record and no
  thread reference (miadisabelle/asterion#22, comment of 2026-10-06). Under I1 and I2 that link is
  added to the record first, as a field on the beat in jgwill/medicine-wheel or through Mia's
  thread ledger (miadisabelle/asterion#21, A45). The projector does not infer it from a turn's words.

### F5. Where the projector lives follows who owns the target's tables

Asterion owns its tables, so the chart projector lives in Asterion and reads coaia-narrative's
contract. Honcho is a third-party product, so its projector lives on the wheel's side, in
`@medicine-wheel/honcho`. Circles into Asterion matches the first case and was built that way on 2026-10-06:
`circle-projection.mjs` lives in Asterion and reads the circle through `@medicine-wheel/client`,
`@medicine-wheel/community-identity` and `@medicine-wheel/consent-lifecycle`. In the terms of the field (Evans 2003), the projector is the consumer's
anticorruption layer when the consumer is ours.

## Names

Each entry is under 55 words.

### N1. projection (chosen on Guillaume's behalf, 2026-10-06)

A Miadi domain keeps its record. Another product holds a projection, read through the domain's
published contract, each row naming its source. The bridge is the projector: one repeatable
mapper that deletes nothing. Changes return through the domain's writer. Kleppmann (2017);
already used in `coaia-projection.mjs` and `@medicine-wheel/honcho`.

### N2. open host

Evans's context map: the domain publishes an Open Host Service in a Published Language
(`coaia-narrative/contract`, `@medicine-wheel/community-identity` schemas). The bridge is the
consumer's anticorruption layer, translating that language into the product's model. It names
the supplier side well, the record-and-projection rule less. Evans (2003), chapter 14.

### N3. boundary resource

The contract and its package are boundary resources: what a Miadi team hands another product so
it can build on the domain without the team present. The chart or circle that crosses is a
boundary object, one identity in both products. Ghazawneh & Henfridsson (2013); Star & Griesemer
(1989).

## Fields, read against the Miadi words

| Miadi word | field term | source |
|---|---|---|
| the record, the domain's store | system of record; bounded context | Kleppmann 2017; Evans 2003 |
| the contract | published language; design by contract; information hiding; boundary resource | Evans 2003; Meyer 1992; Parnas 1972; Ghazawneh & Henfridsson 2013 |
| the door (Asterion's ingest endpoint) | open host service; channel adapter | Evans 2003; Hohpe & Woolf 2003 |
| the projector (the mapper) | anticorruption layer; message translator | Evans 2003; Hohpe & Woolf 2003 |
| the projection | derived data; read model | Kleppmann 2017; Fowler 2011 (CQRS) |
| a row naming its source | `prov:wasDerivedFrom` | Moreau & Missier 2013 (PROV-DM) |
| the chart or circle that crosses | boundary object | Star & Griesemer 1989 |
| a team offering its contract to another team | X-as-a-Service interaction | Skelton & Pais 2019; Conway 1968 |

"Door" carries two meanings in the factory: Asterion's ingest endpoint, and
`@medicine-wheel/honcho`'s description of itself ("the door between the two"). The table uses
it for the endpoint only.

## What the four reviews contributed

| review | contributed |
|---|---|
| `miadi-review:09de3362-2418-4172-8250-fdcd913c0aa0` v11 (operating levels) | L3, "define the contracts of your system" (4:30), places the contract. Its team table puts T4 · Chart path at "L3: the Asterion writer and mapper". Guillaume's note 003 asks for Miadi's actions "published into Asterion", which is the circle case. The rule of three (20:19, 21:03) says a third instance is the point to move up a level: write the practice down |
| `miadi-review:6c3f477f-3606-47bf-871c-29bf66a3988e` v14 (provenance and resumption) | W3C PROV-DM and chain of custody, behind I3 and I4. Its give-back spec, a retelling returns to the person in their circle, is behind R3 |
| `miadi-review:80f50d5b-d5f3-4c82-a6b5-5302db559f5a` v9 (decision engineering) | Guillaume's intent, "LLM are not type-safe outputs", agents "not forced at desired-output (matching a specific JSON type)", is the failure I2 prevents at a product boundary |
| `miadi-review:fcb78dc0-5b8f-4e84-a818-06cab3f70925` v5 (Remotion pipeline) | nothing to this shape. It publishes generated media to a third-party platform. No domain keeps a record that another product projects |

## Cautions

### R1. A projection is not a sync

Two-way synchronisation makes both products writers of the same unit and breaks I1 and I4.
Asterion's first review found exactly that failure. A change goes back through the domain's
writer (I7), and the next projection carries it.

### R2. Name the practice, do not build a generic projector

Three instances justify naming the shape and writing its invariants (Fowler 1999, the rule of
three). They do not justify a shared projector package: each instance maps into a different
target model, and the mapping is the part that differs.

### R3. Projecting a circle discloses people's words

A chart is an agent's working record. A circle holds people's turns. Under I8 a circle's
projection is decided per circle before the first pass, and the people seated in it are the
ones who decide (`@medicine-wheel/consent-lifecycle` is the package that records such consent).
Asterion's public addresses answer anyone. The circle projector holds to this: the facilitator's
consent carries the circle and its ceremonies, each speaker's consent carries their own turns, and
nothing is written for a person who has not consented (`circle-projection.mjs`, asterion `db394de`).
