architecture.artof.link

Architecture Blueprint (Schema)

This page is the public architectural map of Adaptive Experience Architecture. It defines how the core components connect, how customer interactions are validated, and how responsibilities are divided.

In Plain English: When an AI assistant helps a shopper, it shouldn't be an unconstrained chatbot making up answers. This blueprint shows the scaffolding that wraps around the AI: checking real store databases, executing a strict 4-step loop (Interpret → Act → Verify → Remember), and using specialized quality checks to prevent mistakes.

Formula · Six layers · The loop · Agent coordination · Decision layer · Agentic workflows · Team roles · Journeys · Stack


The Core Formula

Adaptive Experience = Shared Understanding + Domain Services + Outer Harness.

The Golden Rule: AI may interpret customer intent, but domain services always make the decisions. Status claims require empirical proof. Formal IDs (FR/ADR) already exist in docs/; this page does not invent them.

Adaptive Experience formula

The Six Layers

The outer harness wraps around domain services and shared understanding across six functional layers:

  1. Guides (Playbooks & Rules): Explicit instructions and guardrails loaded before work starts, defining what actions are permitted and who owns which surface.
  2. Sensors (Smoke Alarms): Automated tests and checks that observe state and detect errors before customers encounter them.
  3. Loop (Execution Cycle): The repeatable pattern for every transaction: interpret intent, take an action, verify the result, and remember the agreed state.
  4. Memory (Persistent Context): Structured storage that keeps customer selections, carts, and occasions intact across page reloads without amnesia.
  5. Permissions (Access Control): Strict security controls ensuring only authorized services can modify inventory, process funds, or touch code.
  6. Observability (Hard Evidence): Real-time telemetry and telemetry dashboards. If a claim has not been tested, it remains labeled Unknown.
The six layers of the outer harness

The Execution Loop

Every interaction between a customer and the system follows a disciplined 4-step cycle:

StepPlain-English ActionWhat It Guarantees
1. InterpretExtract customer intent into Shared UnderstandingAI structures the conversation without guessing or making decisions
2. ActCall deterministic Domain ServicesReal inventory, verified pricing, available delivery slots, and payment
3. VerifyRun automated checks and journey probesNo action is marked complete without proof on real screens and servers
4. RememberPersist agreed state to session memoryThe customer's cart, occasion, and preferences survive page reloads
The four-step execution loop: Interpret, Act, Verify, Remember


Agent coordination (Harness / Loop / Graph)

Path B / Lily's Florist remains the product case study on this site. This section is about how AEA agents and the Outer Harness operate when work is multi-step or multi-role — vocabulary adopted via Keep Learning from an external agent-OS article (0xwhrrari, 2026-09-03). It is not a product endorsement of any vendor Bot feature, and it invents no FR/NFR IDs. Status until Pages probe: Documented.

External writing often names three control layers around a model: Harness (environment), Loop (improvement), Graph (coordination), plus an approval boundary. AEA already owns those jobs inside the six Outer Harness layers — this map makes the correspondence explicit:

External control layer (learning)AEA Outer Harness homeWhat AEA already does
Harness (world the agent may enter)Guides + Memory + Permissions + ObservabilityPlaybooks, committed vault memory, access gates, telemetry
Loop (when work may continue)Loop + SensorsInterpret→Act→Verify→Remember; 1 finding→1 issue→1 MR; probes before status words
Graph (who owns what)Guides + Permissions (+ team roles)Stakeholder specialists, MRC ≠ implementer, fail-closed ownership
Approval boundaryPermissions + ObservabilityHuman/MRC gates; irreversible actions parked

Adopted thin vocabulary (see Glossary):

  1. Autonomy ladder (0–4) — Observe → Prepare → Execute-with-approval → Schedule-or-trigger → Coordinate-specialists; promote by evidence, demote on degradation.
  2. Approval by reversibility — finish reversible work; park send / publish / purchase / delete / production / legal.
  3. Handoff packet — compact from / to / objective / artifacts / decisions / constraints / open_questions / next_gate (not full transcripts).
  4. Account connection ≠ role authority — plumbing is not permission.
  5. Independent checker — builder ≠ verifier (same spirit as MRC vs implementer).

Multi-agent work is a graph: specialists own lanes; a coordinator owns intake, routing, and escalation; handoff packets pass ownership. Do not grow the graph for spectacle — add a specialist when context noise, weak self-review, or divergent permissions create a real bottleneck.



Decision layer (typed judgments)

Path B / Lily's Florist remains the product case study. This subsection adopts thin vocabulary from external decision-model writing (Codila, 2026-09-18; related public TypeSafe System One / Jev framing) via Keep Learning — not an endorsement, not a Path B runtime dependency, and not runtime code in this docs change. Status until Pages probe: Documented. Implementation, if ever warranted, is separate GitLab issues (1 finding → 1 issue).

Thinking vs deciding vs executing

RoleWhat it doesAEA home
Generative LLMWrites, explains, drafts, researchesAI Engineer tools; not Domain Services truth
Decision layerCheap typed Choice · Score · Gate judgmentsLoop + Graph routing; Permissions approval
Code / Domain ServicesExecutes, validates stock/payment, fail-closedDomain Services + Sensors

Adopted thin vocabulary (see Glossary):

  1. Decision layer — named surface separate from generative text.
  2. Typed decision (Choice · Score · Gate) — constrained answer shapes; Gate ≈ stop/continue / yes-no probability (external “Noul”).
  3. Rebuild option menu — Choice options from current worker/tool/state.
  4. Cost per decision — $/completed decision or task, not only $/MTok; vendor demos ≠ AEA evidence.
  5. Parallel independent typed questions — when state is shared, fan-out independent judgments (same spirit as Graph: parallelize only independent work).
  6. Keep irreversible park list from agent-OS adopt (#441): send / publish / purchase / delete / production / legal.
  7. Model-tier Choice (2026-09-21 Keep Learning) — Choice of model tier before spend (Cost Guardian); external ModelRouterMiddleware spirit (LangChain harness-with-Jev). Documented pattern — not Live middleware.
  8. AutoMode pre-tool Gate (2026-09-21) — Gate before side-effecting tools; maps to #441 park list; external AutoModeMiddleware spirit. Documented pattern — not Live SDK.
  9. Holmberg recipe families (Documented map only; full pack = open #472): second-brain classify/dedupe; content anti-slop/voice Gate; post Score vs history; SEO draft vs SERP Score (Holmberg).

Outer Harness Decision Layer map (Archify) — generate vs decide vs execute (Documented aid — not Live; not a Path B runtime map).

decision layer (Archify) — Documented documentation aid (not Live). Open full page

Explicit rejects: install Jev/TypeSafe as AEA Path B runtime; claim Browser Use $0.0039 (or similar) as AEA evidence; weaken Probe / Honesty / Unknown; invent FR/NFR; claim Live before Pages probe; treat LangChain Typesafe middleware as Path B dependency.


Agentic workflows (Anthropic map)

Path B / Lily's Florist remains the product case study. This subsection maps Anthropic Building effective agents (Dec 2024; X summary pointer slash1sol) onto AEA Outer Harness via Keep Learning (#460–#463) — not an Anthropic endorsement, not a cookbook install, not Path B shop UI, and not runtime code in this docs change. Status until Pages probe: Documented. Does not absorb #441 / #446 flags by being newer.

Workflow vs Agent vs Augmented LLM

Anthropic ideaMeaningAEA home
WorkflowPredefined code/guide pathGuides + fixed CF/sensor sequences
AgentModel directs process/toolsLoop inside Permissions + park list + autonomy ladder
Augmented LLMRetrieval + tools + memoryMemory/vault + Domain Services/ACI + DATE_RE

Five composable workflows → AEA

PatternAnthropic gistAEA correspondence (already / adopt name)
Prompt chainingSequential calls + gatesGuide / skill sequences; Interpret→Act→Verify gates
RoutingClassify → specialized pathCF queue + decision-layer Choice routing; hat skills
ParallelizationSectioning or votingGraph: parallelize independent work; parallel typed questions (#446); voting ≈ independent checker / multi-sensor
Orchestrator-workersDynamic decompose → workers → synthesizeFourteen hats + Graph coordination; MRC synthesizes merge truth
Evaluator-optimizerGenerate ↔ critique loopSensors + independent MRC / Independent Checker; clip re-record ratchet

Principles that fit AEA honesty

  1. Environment ground truth each step → Sensors + Probe / Honesty / Unknown.
  2. Measured complexity → When Not to Grow the Harness + cost per decision; prefer simple composable patterns over heavy frameworks.
  3. ACI → Guides document tools clearly; Permissions bound what tools may do.

Explicit rejects: install Anthropic/LangChain/etc. agent frameworks as Path B runtime from this learning alone; claim florist UI “is” orchestrator-workers; Live claim before Pages probe; weaken Unknown; invent FR/NFR IDs.

See Glossary — Agentic workflows.

Team Roles and Responsibilities

To keep engineering rigorous, AEA divides responsibilities across 14 specialized lenses (hats) grouped into 5 functions:

Work flows through 3 executable jobs: implement, verify, and merge. To prevent conflicts of interest, the engineer or AI that writes code is never the one who merges it. Only the independent Merge Request Coordinator merges.


Honesty, Knowledge, and Antifragility


Tested Customer Journeys

We test the live reference shop at aea.artof.link against 4 named customer scenarios: