AXIS ARCHITECTURE
MENTIC Cognitive Systems · Version 2026.05.22 Essence Expression

AXIS: Agentically eXtensible Instruction Structures

The Essence–Expression Meta-Architecture — A cognitive and structural model for organizing software according to how intent becomes behavior and behavior produces change.

Why AXIS Exists: A Meta-Architecture for Codified Logic Foundational Thesis

Most successful architectural styles—Clean Architecture, Domain-Driven Design, CQRS, Event Sourcing, MVC, Flux/Redux—have independently discovered the same useful patterns: pure business logic, explicit boundaries, immutable state, and event-driven workflows.

AXIS is not a replacement for those patterns. It is the underlying cognitive vocabulary that explains why they work and unifies them into composable, testable seams for both human engineers and synthetic coding agents.

Immutable Essence (Static)

Defines what something is: generative shapes, enduring identity, capability maps, relationship rules, pure logic, and declared effects.

Projected Expression (Dynamic)

Defines how it manifests at runtime: live state snapshots, scoped tokens, intents, graph hydration, orchestration, and IO execution.

The 6-Document AXIS Canon Interactive Deck Map

Click any guide below to jump directly to its architectural slides:

AXIS-Principles.md · Foundational Premise

The Cognitive Flow of Change

Software exists to produce change. Change is not produced directly—it emerges from behavior, which executes instructions refined from progressively higher levels of intent.

← Expresses Purpose & Meaning (Why) Click any stage to inspect its architectural mapping Expresses Runtime Execution (How) →
Why This Progression Matters Architectural Axiom
  • Downward Constraint: Each layer constrains and gives meaning to the layers beneath it.
  • Technology Independence: Architecture should not be organized around transport protocols, frameworks, or persistence engines.
  • Semantic Traceability: When an agent or engineer inspects an Action or Effect, its lineage back to an Intent, Facet, and Form invariant is explicit in code.
  • Closing the Loop: Dynamic behavior produces Change, and committed Change becomes the new declarative Instance state for the next cycle.
AXIS-Principles.md · Orthogonal Decomposition

The Essence–Expression Principle

Every architectural concern has a Static Essence (being, definition, contract) and a Dynamic Expression (doing, projection, runtime realization).

Immutable Essence — "What Something Is" Static · Generative · Pure

Essence consists of stable definitions, identities, capability surfaces, relationship rules, pure transformations, and causal descriptions.

  • FORM: Generative schema, defaults, and invariants (holds no live values).
  • IDENTITY: Immutable sameness and addressing policy across time.
  • FACET: Static capability map associating capability keys with Action delegates.
  • BOND: Declarative relationship topology, ownership, and cross-entity invariants.
  • ACTION: Pure, deterministic function (state, intent) → { delta, effects[] }.
  • EFFECT: Pure data value describing a desired side effect (never self-executing).
  • WRAPPER: Structural boundary (DOM root, Shadow DOM, HTTP server socket).
Projected Expression — "How It Manifests at Runtime" Dynamic · Temporal · Contextual

Expression consists of materialized state snapshots, scoped tokens, active interpretations, graph traversal, orchestration, and side-effect execution.

  • INSTANCE: Materialized, versioned state snapshot (all mutable state lives here).
  • TOKEN: Scoped, expirable, revocable temporal projection of Identity with claims.
  • INTENT: Normalized, replayable semantic artifact ("what someone meant to do").
  • LINK: Runtime traversal and graph hydration of a Bond within a query scope.
  • MANAGER: Boundary-scoped orchestrator (Composer + Conductor).
  • IMPACT: The sole site where IO, retries, and compensating rollbacks execute.
  • ADAPTER: Edge transformer normalizing raw events + raw auth into Intents.
The Generative Cycle of Essence & Expression Structural Loop
1. Static Structure Forms, Bonds, Facets, and Actions define what is valid and possible without executing IO.
2. Dynamic Behavior Adapters emit Intents; Managers route via Tokens & Facets to pure Actions.
3. Controlled Change Actions return { delta, effects[] }; Impact executes IO with retry & compensation.
4. New Declarative State Manager validates Form & Bond invariants and commits a new versioned Instance.
AXIS-Principles.md · Architectural Commandments

The 10 Principles of AXIS

The fourteen architectural components are not an arbitrary checklist—they are the natural consequences of these ten principles.

01. Organize around behavior, not technology Structure

Structure software according to responsibilities and behavior rather than frameworks, transport protocols, or persistence mechanisms.

02. Follow the Cognitive Flow of Change Cognition

Higher levels of intent (Values → Goals → Plans → Declaratives) progressively refine into executable instructions, actions, and change.

03. Separate Essence from Expression Duality

Explicitly separate definitions from execution (`Form` vs. `Instance`), enduring identity from temporal scope (`Identity` vs. `Token`), and declarations from realization (`Effect` vs. `Impact`).

04. Treat behavior as the engine of change Dynamics

State never mutates spontaneously or ambiently; behavior (`Action` transformations committed by a `Manager`) is the sole engine that transforms state.

05. Treat side effects as data until execution Testability

Describe change before performing it. `Action`s return pure `Effect` descriptors; only `Impact` touches the outside world.

06. Treat responsibility as a routing problem Policy

Every behavior has an explicit owner and execution path: `Intent` + `Token` claims route through a `Facet` capability map to an `Action` delegate.

07. Prefer composition over inheritance Modularity

Assemble systems from composable capability overlays (`Facet`s), action pipelines, and relational `Bond`s rather than deep class hierarchies.

08. Design explicit boundaries Encapsulation

Every component owns one responsibility with a strict contract. `Manager`s own a single consistency boundary and communicate across contexts only via `Effect`s.

09. Dependencies are supplied, not discovered Purity

Components receive pre-hydrated state (`Instance` + `Link` graph) and `Intent` payloads rather than reaching out to global singletons or service locators.

10. Form follows responsibility Clarity

Codebase topology should immediately reveal what the system does and where state, policy, and IO live—for both humans and machine agents.

AXIS-Specification.md · Section 0 & 1 · Interactive Matrix

The 7×2 AXIS Grid: 7 Axes × 14 Components

Along the diagonal: a thing exists (Being), is itself (Identity), is perceived (Meaning), has relationships (Relating), acts (Doing), causes change (Changing), and connects (Bridging). Click any component below to inspect its contract:

Axis (Concern)
Immutable Essence (Static)
Projected Expression (Dynamic)
AXIS-Specification.md · Section 2 & 3 · Interactive Pipeline

Canonical Flow & The 12 Non-Negotiable Contracts

Step through the runtime execution lifecycle below to inspect the exact data contract and architectural seam at every stage.

Runtime Trace Stepper Click any stage or use the step buttons:
Composition Time (Binding) vs. Runtime Setup Phase
// Composition Time (Manager Composer / Binder)
Wrapper.eventSlot  →  Adapter
Intent             →  Facet       (via Manager routing)
Facet              →  Action      (delegate resolution)
Bond               →  Manager     (relationship registration)
Effect             →  Impact      (handler registration)

Key Contract: Adapters never mint Tokens or call Actions directly. Actions always return { delta, effects[] }. Only the Manager commits state (checking Form & Bond invariants), and only Impact performs IO.

AXIS-Design.md & AXIS-Lite.md · Orchestration Discipline

Inside the Manager: Composer, Conductor & Bounded Contexts

A Manager is a boundary-scoped coordinator, never a catch-all service class. It owns one consistency boundary, one commit path, and one policy surface.

1. The Composer (Setup-Time Structure) manager/composer.*

Decides what is possible. Wires Adapters to Wrappers, registers Facets and Bonds, and installs Impact handlers. Runs at startup or when system structure dynamically changes (e.g., plugin/service registration).

// Composer API (Structure)
manager.bind(wrapper)
manager.registerFacet(facet)
manager.registerBond(bond)
💡 Diagnostic: Composer growing complex? Add more Facets, not more wiring conditionals.
2. The Conductor (Runtime Performance) manager/conductor.* + commit.* + policy.*

Decides what happens now. Resolves Tokens, selects Facets, hydrates Links, invokes pure Actions, validates Form & Bond invariants on commit, and hands declared Effects to Impact.

// Conductor API (Performance)
manager.dispatch(intent)
manager.commit(delta) → Instance // validates Form & Bond invariants
manager.issueToken(identity, scope, rawAuth) → Token
manager.resolveLink(link) → Link
💡 Diagnostic: Conductor growing branchy? Extract a Workflow sub-component or split Facets.
Cross-Boundary Communication: Managers Never Call Each Other Directly Bounded Contexts
[ Bounded Context A: Orders ]                     [ Bounded Context B: Billing ]
  Manager A (owns Order Instances)                  Manager B (owns Invoice Instances)
      ↓                                                 ↑
  Action → Effect { kind: "EMIT_EVENT" }            Adapter → Intent { kind: "order.placed" }
      ↓                                                 ↑
   Impact ────────── (Queue / HTTP / Event Bus) ────→ Wrapper
The 5-Part Manager Boundary Contract AXIS-Lite Interface
  • 1. Owned State: Which Forms, Instances, and Identities it may commit.
  • 2. Accepted Intents: Exact command/intent kinds it accepts.
  • 3. Emitted Effects: The only outward requests it can make.
  • 4. Returned Outcomes: Acknowledgements, rejections, and follow-ups.
  • 5. Policy Scope: Token claims and roles it is allowed to interpret.
AXIS-Specification.md · Section 6 · Composition Patterns

Solving the Hard Problems: Reads, Relations & Failures

How does a system with strictly pure Actions fetch data, traverse entity graphs, and recover from partial IO failures? Select a pattern tab below:

AXIS-Design.md · Section 11 · Pattern Translation

How AXIS Unifies MVC, Flux, CQRS & Event Sourcing

AXIS splits traditional roles across the Essence–Expression boundary and names the four missing axes that classic patterns leave implicit.

MVC Decomposed into the 7×2 Grid What Changed
MVC Role AXIS Essence AXIS Expression Architectural Gain
Model FORM (shape) INSTANCE (state) Separates schema invariants from live versioned state
View FACET (capabilities) INTENT (meaning) Separates policy affordances from semantic user intent
Controller ACTION (logic) MANAGER (wiring) Separates pure state calculation from runtime routing
(Implicit) IDENTITY TOKEN First-class enduring sameness vs. scoped session/claims
(Implicit) BOND LINK Explicit aggregate boundaries vs. runtime graph hydration
(Implicit) EFFECT IMPACT Decouples declarative side-effect data from IO execution
(Implicit) WRAPPER ADAPTER Decouples UI/HTTP host surfaces from input normalization
From 1 Opaque Seam to 5 Testable Seams Event → Handler
Generic:  Event ─────────────────────────────────────────→ Handler
AXIS:     Event → Adapter → Intent → Manager → Facet → Action
          (raw)  (normalize) (meaning) (route)  (select) (pure fn)
Flux/Redux, CQRS, Event Sourcing & RBAC Natural Emergence
  • Flux / Redux: Replaces opaque Thunks/Middleware with pure EFFECT data + IMPACT handlers.
  • CQRS: Not a separate architecture—just a Write Facet vs. Read Facet selected by Token claims.
  • Event Sourcing: The Intent stream + committed deltas are the event log, surrounded by named validation (`Form`) and consequence (`Effect`) layers.
  • Roles & Capabilities: Token.claims (Who) → Manager (When/Where) → Facet.delegates (What) → Action (How).
AXIS-Lite.md · Pragmatic Default Profile

AXIS Lite: "Preserve the Discipline, Not the Ceremony"

Not every feature needs 14 files. Start with the smallest profile that preserves the 8 Hard Rules, and escalate only when you feel the absence.

Interactive Escalation Ladder (Select a Scenario) Progressive Adoption
The 5 Credibility Tests (AXIS-Lite.md) Quality Gate
  • 1. Zero-Mock Logic: Can a business rule be unit tested without network or DB mocks?
  • 2. Obvious IO: Can reviewers immediately tell where IO happens (`Impact`) and where it doesn't?
  • 3. Local Change: Can a new capability be added via a `Facet` without touching unrelated workflows?
  • 4. Context Isolation: Can one bounded context evolve without silently corrupting another?
  • 5. Net Clarity: Did adopting AXIS reduce ambiguity more than it increased ceremony? (If no, simplify the shape!)
AXIS-FrontEnd-Web.md · Browser Architecture

AXIS in the Browser: Projection & Composable Visual Facets

Treat the DOM as a rendered projection of the current Instance inside a Custom Element Wrapper, and decompose styling into orthogonal Layout Facets and Look Facets.

Live Visual Facet Composer (Try Switching Facets!) Interactive CSS Facets

Instead of monolithic CSS bundles, AXIS Front-End splits stylesheets into {component}.{layoutKind}.layout.css and {component}.{lookName}.look.css:

1. Select Look Facet (*.look.css)
2. Select Preview Layout (*.layout.css)
Wrapper <profile-editor> Shadow DOM boundary
Token 5d9f...look.active Scoped view handle
Impact dom.impact.js Swaps stylesheet links
6 Front-End Rules from AXIS-FrontEnd-Web.md Browser Discipline
  • 1. Wrappers Are UI Boundaries: Custom Elements / Shadow DOM own event slots and rendering slots, never business rules.
  • 2. Adapters Normalize Browser Noise: Convert raw DOM events, URL changes, or storage signals into replayable Intents (e.g. todo.toggle).
  • 3. Divs Are Projections, Not Domain Objects: Instance is the authoritative snapshot; the DOM is merely a visible projection.
  • 4. Actions Stay Pure: Never touch document, fetch, or localStorage inside an Action.
  • 5. Impact Owns Browser IO: DOM patches, stylesheet swaps, IndexedDB/localStorage, and network calls happen exclusively in Impact.
  • 6. Browser Token Families: Use GUID.name.value tokens (sessionToken, routeToken, viewToken, selectionToken) when runtime scope matters.
AXIS-Code.md · Machine Agent Rules & CodeMaps Pipeline

Agentic Engineering: CodeMaps & Anti-Pattern Guardrails

AXIS turns software architecture into small, deterministic Generation Units and provides a metadata lens for analyzing and refactoring existing repositories.

Interactive Anti-Pattern Inspector (10 Common Mistakes) Code Review Guardrails
AXIS Shape Analysis for Existing Repos CodeMaps Stage 1 & 2

You don't have to rewrite a legacy repo to use AXIS. Map native structures into codemaps/axis-map.json roles first:

// Generation Units for Scoped Agent Execution
axis.intent  → normalized command/event shape
axis.form    → state shape & invariant rules
axis.action  → pure state transition (0 mocks!)
axis.effect  → declarative side-effect data
axis.impact  → IO behind host boundary
axis.adapter → normalize raw edge input
axis.test    → layer-specific verification

Functional Forms: Capture a capability's portable closure (Forms, Intents, Actions, Effects) so agents know "what must survive the transplant" when harvesting code across repos.

Worked Example Live Sandbox · User Profile Editor & Dynamic Server

Live Interactive AXIS Runtime Simulator

Interact with a real AXIS loop below. Change the Token Claims, dispatch Intents, or simulate an Impact IO Failure to watch how compensations and invariants behave as pure data.

1. Wrapper Surface & Token Control Wrapper + Adapter → Intent
ACTIVE SESSION TOKEN (Identity Projection)
Active Facet: editableFacet { save, cancel, load }
PROFILE EDITOR WRAPPER INPUTS
LATEST ACTION OUTPUT: { delta, effects[] }
// Click a button above to dispatch an Intent...
LIVE INSTANCE SNAPSHOT (user:u-1234)

              
2. Semantic Intent & Impact Execution Stream
Closing Synthesis · MENTIC Cognitive Systems

The 9 Core Mental Shifts & Architectural Takeaways

AXIS does not begin with software components. It begins with cognition—asking how meaning becomes action, then deriving software structure from that progression.

1. Events Express Intent

Events don't do work directly—Adapters normalize them into loggable, replayable Intent artifacts.

2. Effects Are Data; Impact Is IO

Side effects have two distinct phases: pure declaration in Actions and runtime execution in Impact.

3. Changes Are Values, Not Mutations

Actions compute delta values; only the Manager's Committer produces a new versioned Instance.

4. Identity Is Permanent; Tokens Expire

Identity is timeless sameness; Tokens project identity into a specific session, scope, and claim set.

5. Forms Generate; Instances Hold

Forms define shape, defaults, and invariants without behavior; Instances hold all live mutable state.

6. Facets Are Capability Maps

Access control and lifecycle modes are data maps (capability → Action) selected by the Manager, not scattered if/else branches.

7. Bonds Structure; Links Traverse

Bonds declare aggregate invariants externally; Links pre-hydrate entity graphs before pure Actions run.

8. Composition Is Runtime Orchestration

Dynamic extensibility is simply committing a new Identity + Facet into a live Manager's Instance state.

9. Failures Are Alternate Effects

Rejections, retries, and compensating rollbacks flow through the same testable data pipeline as happy paths.

Attribution & License — AXIS, formulated by Matthew Quarneri — MENTIC Cognitive Systems. © 2026 MENTIC LLC
Originally published at mentic.com/AXIS · Licensed under Creative Commons Attribution 4.0 International (CC BY 4.0) · Advisory & Workshops: consulting@mentic.com · www.mentic.com
If you found these ideas useful you could Buy Me a Coffee to show your support.
Presented by Argon