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.
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.
Defines what something is: generative shapes, enduring identity, capability maps, relationship rules, pure logic, and declared effects.
Defines how it manifests at runtime: live state snapshots, scoped tokens, intents, graph hydration, orchestration, and IO execution.
Click any guide below to jump directly to its architectural slides:
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.
- 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
ActionorEffect, its lineage back to anIntent,Facet, andForminvariant is explicit in code. - Closing the Loop: Dynamic behavior produces Change, and committed Change becomes the new declarative Instance state for the next cycle.
The Essence–Expression Principle
Every architectural concern has a Static Essence (being, definition, contract) and a Dynamic Expression (doing, projection, runtime realization).
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).
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.
{ delta, effects[] }; Impact executes IO with retry & compensation.
The 10 Principles of AXIS
The fourteen architectural components are not an arbitrary checklist—they are the natural consequences of these ten principles.
Structure software according to responsibilities and behavior rather than frameworks, transport protocols, or persistence mechanisms.
Higher levels of intent (Values → Goals → Plans → Declaratives) progressively refine into executable instructions, actions, and change.
Explicitly separate definitions from execution (`Form` vs. `Instance`), enduring identity from temporal scope (`Identity` vs. `Token`), and declarations from realization (`Effect` vs. `Impact`).
State never mutates spontaneously or ambiently; behavior (`Action` transformations committed by a `Manager`) is the sole engine that transforms state.
Describe change before performing it. `Action`s return pure `Effect` descriptors; only `Impact` touches the outside world.
Every behavior has an explicit owner and execution path: `Intent` + `Token` claims route through a `Facet` capability map to an `Action` delegate.
Assemble systems from composable capability overlays (`Facet`s), action pipelines, and relational `Bond`s rather than deep class hierarchies.
Every component owns one responsibility with a strict contract. `Manager`s own a single consistency boundary and communicate across contexts only via `Effect`s.
Components receive pre-hydrated state (`Instance` + `Link` graph) and `Intent` payloads rather than reaching out to global singletons or service locators.
Codebase topology should immediately reveal what the system does and where state, policy, and IO live—for both humans and machine agents.
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:
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.
// 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.
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.
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)
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
[ 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
- 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.
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:
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 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 |
Generic: Event ─────────────────────────────────────────→ Handler
AXIS: Event → Adapter → Intent → Manager → Facet → Action
(raw) (normalize) (meaning) (route) (select) (pure fn)
- Flux / Redux: Replaces opaque Thunks/Middleware with pure
EFFECTdata +IMPACThandlers. - CQRS: Not a separate architecture—just a Write Facet vs. Read Facet selected by Token claims.
- Event Sourcing: The
Intentstream + 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: "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.
- 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 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.
Instead of monolithic CSS bundles, AXIS Front-End splits stylesheets into {component}.{layoutKind}.layout.css and {component}.{lookName}.look.css:
- 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:
Instanceis the authoritative snapshot; the DOM is merely a visible projection. - 4. Actions Stay Pure: Never touch
document,fetch, orlocalStorageinside 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.valuetokens (sessionToken,routeToken,viewToken,selectionToken) when runtime scope matters.
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.
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.
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.
{ delta, effects[] }// Click a button above to dispatch an Intent...
user:u-1234)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.
Events don't do work directly—Adapters normalize them into loggable, replayable Intent artifacts.
Side effects have two distinct phases: pure declaration in Actions and runtime execution in Impact.
Actions compute delta values; only the Manager's Committer produces a new versioned Instance.
Identity is timeless sameness; Tokens project identity into a specific session, scope, and claim set.
Forms define shape, defaults, and invariants without behavior; Instances hold all live mutable state.
Access control and lifecycle modes are data maps (capability → Action) selected by the Manager, not scattered if/else branches.
Bonds declare aggregate invariants externally; Links pre-hydrate entity graphs before pure Actions run.
Dynamic extensibility is simply committing a new Identity + Facet into a live Manager's Instance state.
Rejections, retries, and compensating rollbacks flow through the same testable data pipeline as happy paths.
consulting@mentic.com · www.mentic.com
If you found these ideas useful you could Buy Me a Coffee to show your support.