# Ports and Adapters
**Entity class:** Concept or analytic term
Ports-and-adapters architecture keeps core domain behavior independent of external systems. Ports declare what the core needs; adapters connect those ports to files, HTTP, databases, browsers, editors, or other hosts.
The X modernization uses this distinction directly: deterministic text, slug, parsing, and transformation capabilities belong in the core; Obsidian, Node, PHP, Python, Perl, filesystem, and network behavior belong in host adapters.
Related: [[wiki/Host Adapter|Host Adapter]], [[wiki/Portable Contract|Portable Contract]], [[projects/X and XApps - Drop the Folder and It Runs|X and XApps]].
Source: [AWS Prescriptive Guidance — Hexagonal architecture](https://docs.aws.amazon.com/prescriptive-guidance/latest/hexagonal-architectures/best-practices.html)
## Relationships
<!-- BEGIN HUMANIZED RELATIONSHIPS 2026-09-11 -->
This entry is routed through [[collections/Consciousness Continuity|Consciousness Continuity]], [[collections/Neurotech|Neurotech]], and [[collections/Machine Succession|Machine Succession]]. Its source context is developed in [[articles/Technologies for Consciousness Mapping and Transfer|Technologies for Consciousness Mapping and Transfer]] and [[articles/Mind Uploading and AI — The Host is Reusable and the Person is the Delta|Mind Uploading and AI — The Host is Reusable and the Person is the Delta]]. Status-qualified source edges are preserved in the terminal Research Edges section.
### Connections in this corpus
- [[wiki/Microsoft model-system separation|Microsoft model-system separation]] is connected in the corpus with **Ports and Adapters**. Harness/context/memory/action-space externalization is ports-and-adapters at AI-runtime scale.
### Additional Documented Relationships
- The technical comparison identifies a convergence: **Ports and Adapters** is connected in the corpus with [[wiki/Root of Trust Succession|Root of Trust Succession]]. Interpreter/model succession requires versioned authority and compatibility.
- The technical comparison identifies a convergence: **Ports and Adapters** is connected in the corpus with [[wiki/Re-entry Pathways|Re-entry Pathways]]. Continuity requires interpreter replacement without losing identity-bearing state.
- [[wiki/Microsoft Model System|Microsoft Model System]] is associated with **Ports and Adapters**. Microsoft explicitly cites business continuity and resilience.
<!-- END HUMANIZED RELATIONSHIPS 2026-09-11 -->
## Research Edges
<!-- BEGIN HOST RESIDUAL RELATIONSHIP GRAPH 2026-09-10 -->
#### Host–residual infrastructure patch — 2026-09-10
**Resolved aliases:** `model substitutability`
**Collections:** [[collections/Consciousness Continuity|Consciousness Continuity]] · [[collections/Neurotech|Neurotech]] · [[collections/Machine Succession|Machine Succession]]
**Canonical source article:** [[articles/Mind Uploading and AI — The Host is Reusable and the Person is the Delta|Mind Uploading and AI — The Host is Reusable and the Person is the Delta]]
**Related acquisition source:** [[articles/Technologies for Consciousness Mapping and Transfer|Technologies for Consciousness Mapping and Transfer]]
**Relationship source:** [[research/Mind Uploading and AI Host-Residual Ecosystem Relationship Graph - 2026-09-10|Mind Uploading and AI Host-Residual Ecosystem Relationship Graph — 2026-09-10]]
#### Outgoing typed edges
- **HR-0105 — `cross_threads` → [[wiki/Re-entry Pathways|Re-entry Pathways]]** — **ANALYTIC CONVERGENCE**; evidence `WEB_MS_MODEL_SYSTEM`, `WIKI_ARCHIVE`. Continuity requires interpreter replacement without losing identity-bearing state.
- **HR-0106 — `cross_threads` → [[wiki/Root of Trust Succession|Root of Trust Succession]]** — **ANALYTIC CONVERGENCE**; evidence `WEB_MS_MODEL_SYSTEM`, `WIKI_ARCHIVE`. Interpreter/model succession requires versioned authority and compatibility.
#### Incoming typed edges
- **HR-0103 — [[wiki/Microsoft Model System|Microsoft model system]] `enables` → this entry** — **VERIFIED EXTERNAL**; evidence `WEB_MS_MODEL_SYSTEM`. Microsoft explicitly cites business continuity and resilience.
- **HR-1407 — [[wiki/Microsoft Model System|Microsoft model-system separation]] `cross_threads` → this entry** — **HIGH VALUE CROSS THREAD**; evidence `ARTICLE`, `WIKI_ARCHIVE`. Harness/context/memory/action-space externalization is ports-and-adapters at AI-runtime scale.
<!-- END HOST RESIDUAL RELATIONSHIP GRAPH 2026-09-10 -->