# Context-layer

## Words

| word | means here |
|---|---|
| domain | a body of records one Miadi package or service owns and writes: charts, circles, ceremonies, beats |
| record | the domain's own copy, the one that is canonical |
| contract | what the domain publishes so another product can read its records without knowing how they are stored: types, schemas, a version |
| projection | the other product's rows derived from the record. It can be rebuilt from the record and is never written to as if it were the record |
| projector | the one mapper from contract to the other product's model |
| door | an endpoint where the domain's writer posts records to the other product (Asterion's `POST /api/ingest/coaia-narrative`) |
| project back | a change or a derived conclusion returning to the domain through its own writer, carrying its source |

## Fields (MECE)

1. **Software architecture: bounded contexts and contracts.** Where one model ends and another
   begins, and what crosses between them. Evans 2003, Parnas 1972, Meyer 1992.
2. **Data systems and integration: system of record and derived data.** Which copy is
   authoritative, how derived copies are rebuilt, how messages are translated between models.
   Kleppmann 2017, Fowler 2011, Hohpe & Woolf 2003, with provenance from Moreau & Missier 2013.
3. **Platform ecosystems and the organisation of teams.** What a platform hands outside
   developers so they can build on it, the objects that keep one identity across groups, and how
   team structure shapes interfaces. Ghazawneh & Henfridsson 2013, Star & Griesemer 1989,
   Skelton & Pais 2019, Conway 1968. Fowler 1999 (the rule of three) sits outside the three fields: it
   is cited only for when a repeated shape is worth naming.

The three do not overlap: the first is about model boundaries inside software, the second about
copies of data, the third about the organisations on each side of the boundary.

## Source quality

Peer-reviewed papers and canonical books first, then one practitioner essay on
martinfowler.com and Conway's own page, marked as such in the ledger. No
vendor documentation. Every DOI was resolved on Crossref and every ISBN on Open Library on
2026-10-06. What each source is cited for was written from knowledge of the text, not re-read.

## Placement

jgwill/Miadi `foundations/`, because the domains being offered (circles, ceremonies) are Miadi's
and the factory vocabulary is maintained here. Asterion's own packet
(`miadisabelle/asterion` `foundations/asterion-substrate/`) stays the reference for what happens
inside Asterion.

## Related

- jgwill/Miadi#591: relational software factory inquiry ("que la réutilisation ne déracine pas le savoir de sa provenance").
- miadisabelle/asterion#1: Asterion integrates through published packages.
- miadisabelle/asterion#10: a seat thread as an Asterion narrative thread.
- miadisabelle/asterion#11: a Miadi circle's ceremonies in Asterion, with each person's consent.
- miadisabelle/asterion#21 and miadisabelle/asterion#22: a thread is a concern a reader follows, and a ceremony is a room.
- `jgwill/miadi-orchestration-kit` `skills/chart-path/SKILL.md` and `teams/README.md` (T4).
- The four reviews applied: `miadi-review:09de3362-2418-4172-8250-fdcd913c0aa0` v11, `miadi-review:6c3f477f-3606-47bf-871c-29bf66a3988e` v14, `miadi-review:80f50d5b-d5f3-4c82-a6b5-5302db559f5a` v9, `miadi-review:fcb78dc0-5b8f-4e84-a818-06cab3f70925` v5 (dropped, see `synthesis.md`).
