Skip to content
Projects

thePM001/AEP-agent-element-protocol

View on GitHub

About

AEP (Agent Element Protocol) v2.9 | Deterministic zero-trust total control and governance protocol for AI agents. | Reduce hallucinations to zero through architecture in all constrained domains of application. | LLMs gave you the engines, AEP gives you the control thrusters.

AI & Machine Learning

How these counts are measured

Measured star growth

in 24h
Collecting history
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

AEP v 2.9 - Agent Element Protocol

Total AI Output Control - Vertically integrated protocol for all agentic setups

Version 2.9 Author: thePM_001 (https://x.com/thePM_001)
Licence: Apache-2.0
Public repository: https://github.com/thePM001/AEP-agent-element-protocol

AEP page on the NLA website: https://aep.newlisbon.agency

How to best explore the basics of AEP ? - Copy the repo URL into your LLM chat of choice that has internet search capability (Grok, Gemini, ChatGPT, Opus, etc.) and let the AI explain it to you.

AEP secure deployment guide


What AEP does

Total AI output control

AEP (Agent Element Protocol) is an advanced deterministic mechanism for total control of AI output. An agent does not get to run a tool, change a screen, fire a workflow, call an API, move money or change infrastructure until the Base Node, the local kernel, allows that output. Unapproved model output remains unapproved and does not become a live action, when it violates the policies encoded in your AEP policy hyperlattice.

Every surface the agent can touch

The control mechanism sits in front of interfaces, workflows, REST APIs, event systems, infrastructure as code, smart contracts and agent commerce. The AI proposes work, AEP validates it and only compliant output executes.

How one action is judged

Every action follows one path. The numbers are the numbers of the 20 main components in the next section.

flowchart LR
  P[Agent proposal] --> C[Sealed capsule on the Lattice Channels 08]
  X[External system] --> U[UCB 02]
  U --> C
  C --> D[Dock of the Base Node 01]
  D --> T[Base Node Pulse 10 freezes and waits 1000 ms]
  T --> E[Unified Validation Envelope 03]
  E --> A[Admit Gate 04 with Scanners 12 and GAP policy 06]
  A --> R[Ledger row then the allowed action]
  1. An agent or a component writes a proposal: the action it wants and the data for it.
  2. The proposal is sealed in a capsule, an encrypted and signed message, on the Lattice Channels (08).
  3. A component of this tree sends the capsule straight to a dock, a socket of the Base Node (01). An external system hands its work to UCB (02), which checks the task contract and seals the capsule for it.
  4. The dock verifies the seal, the age of the capsule and that the same bytes were not sent before. A plain message without a seal is refused and logged.
  5. The Base Node Pulse (10) freezes the clock when the capsule arrives and keeps the capsule for 1000 ms.
  6. The proposal enters the Unified Validation Envelope (03), which collects 15 walls. A wall is one named check with an open or closed result.
  7. The Admit Gate (04) judges every wall in one pass, together with the result of the Scanners (12) and the written GAP policy (06). The order of the walls does not change the answer and a missing answer counts as deny.
  8. A deny lists every closed wall with its reason. A retry must seal a new capsule.
  9. On allow the Base Node first writes a row to its runtime ledger, the SQLite lattice log. It then applies the action. The CAW (11) runs each host command of an agent inside its own gVisor sandbox, see section 11.
  10. The client asks for the result with the hash of its capsule on the same dock.

AEP 2.9 is a reference protocol library: a set of working components a builder attaches to a system. The Base Node is the kernel. Every other folder is a protocol component, a runtime installer or a document.

20 main components

The numbers and names follow the AEP page at https://aep.newlisbon.agency. The data file AEP-Components/component-map.json lists every folder of each component.

flowchart TB
  subgraph ENTRY[Entry and transport]
    C02[02 UCB]
    C08[08 Lattice Channels]
    C13[13 AgentMesh]
  end
  subgraph KERNEL[Kernel]
    C01[01 AEP Base Node]
    C10[10 Base Node Pulse]
    C03[03 Unified Validation Envelope]
    C04[04 Admit Gate]
  end
  subgraph POLICY[Policy and content]
    C06[06 GAP]
    C07[07 dynAEP]
    C12[12 Scanners]
    C18[18 TLA+]
  end
  subgraph RUN[Execution]
    C05[05 Graph Engine]
    C11[11 CAWs]
    C17[17 Model Gateway]
    C14[14 Economics]
  end
  subgraph CODE[Coding governance]
    C19[19 AEP Workspaces]
    C20[20 EDEs]
  end
  subgraph RECORD[Record]
    C09[09 Evidence Ledger]
    C15[15 Lattice Memory]
    C16[16 Intent Ledger]
  end
  ENTRY --> KERNEL
  POLICY --> KERNEL
  KERNEL --> RUN
  CODE --> KERNEL
  CODE --> RUN
  KERNEL --> RECORD
  RUN --> RECORD
  CODE --> RECORD

Readiness scale (implementation vs plan - estimated by Gemini 4 Neon on 29.11.2026 and 30.11.2026):

  • Active - Hardening: Live and wired in the default runtime; core architecture works while specific security or edge-case hardening items remain open.
  • Active - Partial: Live for a core subset of the concept; major planned features or parity gaps remain open.
  • Standalone / Early: Working library or CLI with tests; unwired from the default Base Node runtime and missing key planned enforcement.
  • Prototype / Unwired: Early code or skeleton with zero production callers and major unbuilt capabilities vs plan.
No Component Readiness Vs plan What it is Home folder README
01 AEP Base Node Active - Hardening 80 % The local governance kernel that opens every sealed capsule, judges it and applies only the allowed action AEP-Base-Node/ README
02 UCB Active - Hardening 94 % The Universal Connect Bridge, the airlock through which the work of an external system reaches the Base Node as a sealed capsule AEP-Base-Node/AEP-Docks/ucb/ README
03 Unified Validation Envelope Active - Hardening 92 % The single container in which every validation target of an action is checked in a single pass AEP-Components/envelope/ README
04 Admit Gate Active - Hardening 93 % The pass in which every wall of an action is collected and judged together, with deny as the default AEP-Components/admit/ README
05 Graph Engine Active - Hardening 86 % The workflow runner behind every run, with parallel joins and hash-chained checkpoints after each node AEP-Components/graph-engine/ README
06 GAP Active - Hardening 92 % Governed Agentic Programming, the instruction language of every policy and agent profile, with native Rust aep-gap Draft 2020-12 v1.3 validator, gapdsl evaluator and policy-engine bridge AEP-Components/gap/ README
07 dynAEP Active - Hardening 92 % The runtime for time rules and causal event order, with the hyperlattice as its policy wrap AEP-Components/dynAEP/ README
08 Lattice Channels Active - Hardening 80 % The encrypted transport on which every message travels to the Base Node as a sealed capsule AEP-Components/lattice-channels/ README
09 Evidence Ledger Active - Hardening 92 % Coupled Double-Helix Dual-DAG audit and attestation layer (EntryDAG + VerificationDAG), 5-axis product-poset coordinates, RFC 6962 Merkle consistency proofs, native ML-DSA-65 + Ed25519 witnesses and read-only Base Node anchor bridge AEP-Components/evidence-ledger/ README
10 Base Node Pulse Active - Hardening 95 % Compiled 1000 ms discrete-time pulse with dual-clock freeze, clamped 50 ms / 5000 ms bounds, O(N log N) _sequenceNumber batch beat, poison-safe 1 Hz interval driver, event-driven collect and CLI binary AEP-Components/base-node-pulse/ README
11 CAWs Active - Hardening 70 % The host sandboxes in which an agent process runs under the written policy. The Rust CAW runs each command in gVisor, on the host or in the Docker image AEP-CAWs-RustGvisor/ README
12 Scanners Active - Hardening 90 % The content scanners, which read the text of a proposal for secrets, personal data, injection and more AEP-Components/scanners/ README
13 AgentMesh Active - Hardening 92 % Hardened local issuance X.509 CA, CRL revocation, SPIFFE Workload API UDS client, signed W3C did:aep, mTLS and trust-anchored TypeScript SDK in AEP-Components/agentmesh/crate/ AEP-Components/agentmesh/ README
14 Economics Active - Hardening 92 % Exact integer micro-USD accounting, durable hierarchical and velocity budgets, hardened x402 payments and native Evidence Ledger, Scanners, dynAEP and GAP Admit integration AEP-Components/economics/ README
15 Lattice Memory Active - Hardening 93 % Non-hyperbolic verdict and trajectory memory with sublinear 13-band Multi-Index Hashing, Bitset256 FCA concept closures, segmented logs, policy-scoped 16-shard ExactMemo, WIT aep:[email protected] WASM core, @aep/lattice-memory TypeScript parity and Double-Helix Evidence Ledger anchoring AEP-Components/lattice-memory/ README
16 Intent Ledger Active - Hardening 92 % Append-only signed canonical provenance chain and public Dual-Galois geometric verifier (Morpho-Logic, Bounded FCA, Ultrametric, Tropical and Betti-0) in AEP-Components/intent-ledger/ AEP-Components/intent-ledger/ README
17 Model Gateway Active - Hardening 88 % The governed route for model calls to several providers, with checks on the stream AEP-Components/model-gateway/ README
18 TLA+ Active - Hardening 90 % The formal models of the kernel rules and the checker for their shape AEP-Components/tla/ README
19 AEP Workspaces Active - Partial 70 % The declarative multi-repository topology layer that pairs EDE drafts with isolated CAW sandboxes across dev, review and release lanes AEP-Workspaces/ README
20 EDEs Active - Hardening 75 % Enforced Draft Environments, in which a coding agent proven by its registered ML-DSA-65 key changes a repository only through a scanned draft whose git folder and sealed record remain outside the editable tree AEP-Components/ede/ README

Quick start

Docker (recommended)

cp .env.example .env
docker compose up -d --build

Lattice transport, the registry and conformance stay on the public path.

The image runs as the user aep, which is not root. A data volume of an earlier image that ran as root needs one chown to that user and the container prints the command. To run agent commands in the gVisor sandbox of the CAW (11) inside the image, add docker-compose.caw.yml. The gVisor pin covers amd64. On a host that restricts user namespaces through AppArmor, such as Ubuntu 23.10 and later, run sudo bash AEP-CAWs-RustGvisor/proof/install-runsc.sh once and add -f docker-compose.caw-apparmor.yml as well:

docker compose -f docker-compose.yml -f docker-compose.caw.yml up -d --build

Coding agents (Claude Code, Cursor, Codex)

After Base Node activation, initialize governance using the CLI baked into the Docker image:

docker compose -f docker-compose.public.yml exec aep aep init codex
docker compose -f docker-compose.public.yml exec aep aep init claude-code
docker compose -f docker-compose.public.yml exec aep aep init cursor

COSHELL Basic (aep-coshell)

AEP 2.9 ships COSHELL Basic (AEP-COSHELL/, README), a bounded Apache-2.0 session cell runner that unites the Rust and gVisor CAW (11), AEP Base Node kernel dock admission (01) plus Scanners (12), embedded dynAEP 2.0 (07) and AEP Workspaces (19) into one single-shot CLI (spawn, exec, deliver, status, terminate, audit-verify and doctor) with SHA-256 hash-chained local audit logs. Adding docker-compose.caw.yml enables COSHELL=1 alongside CAW=1. You can also test it from source:

cargo test -p aep-coshell
bash AEP-COSHELL/proof/coshell-basic-e2e.sh

Local development (source build)

# Rust workspace (artifacts in rust/target/)
cargo test --workspace
cargo build --release -p aep-base-node
./rust/target/release/aep-base-node --self-test

# Checks that block a merge
cargo fmt --all --check
RUSTFLAGS="-D warnings" cargo clippy --workspace --all-targets

# TypeScript and mjs components
npm ci
npm run typecheck
npm run lint
npm test

# Fresh Docker test stack (isolated volume, visual install wizard)
docker compose -f docker-compose.test-fresh.yml up -d --build
open http://$AEP_HOST:8524/install

# Root check and conformance battery
node aep-check.mjs
./AEP-Components/conformance/runner/run.sh

01 / AEP Base Node

What it is: The Base Node is the governance kernel of AEP. It runs on your own machine as one daemon and no action of an agent becomes live before it allows the action.

flowchart TB
  T1[Kernel zone: docks and the kernel pulse pass]
  T2[Wall set: every written wall judged together]
  T3[Dispatch: runtime ledger, registry and Apply]
  T4[Potomitan mesh crate below the node]
  T1 --> T2 --> T3 --> T4

What ships in 2.9: The daemon aep-base-node listens on four Unix socket docks named inference, validation, regulation and future. It verifies each sealed capsule, keeps it for one pulse, judges every wall in one pass, writes the runtime ledger and only then applies the action. The Data Dock serves admitted records as JSON on port 8413. The component registry, the Agent Control Hub and the Potomitan mesh crate live in the same folder. The Potomitan crate ships a packet plane with tests. The shipped daemon reads the mesh peer file and reports the mesh mode in its health answer. Mesh traffic from the daemon is planned. A multi base node mode exists as an optional experimental crate outside the default build.

Readiness vs plan: Active - Hardening (80 %, estimated by Gemini 4 Neon on 29.11.2026) - Live daemon with four docks, ML-KEM/ML-DSA, Hub and Data Dock; rate-limit order, TLS handshake timeout, Data Dock async offload, Potomitan packet authentication and multi-node federation remain open.

Where it lives: AEP-Base-Node/ with the crate in AEP-Base-Node/AEP-Crate/, plus AEP-Components/kernel-types/, AEP-Components/live-entry/ / AEP-Components/one-live-evaluation/ and AEP-Components/wall-set-backpressure/.

Run and test: cargo build --release -p aep-base-node / ./rust/target/release/aep-base-node --self-test and cargo test -p aep-base-node --lib. The component README has the detail: AEP-Base-Node/README.md.

02 / UCB

What it is: The Universal Connect Bridge (UCB) is the airlock for systems outside AEP, for example LangGraph, an MCP server, AutoGen, CrewAI or a custom HTTP agent. It lets such a system hand work to the Base Node without access to a dock socket.

flowchart LR
  EXT[External system] --> ING[UCB ingest on port 8412]
  ING --> MAN[Task manifest check]
  MAN --> VAL[Confined validator process]
  VAL --> CAP[Sealed capsule]
  CAP --> DOCK[Validation dock of the Base Node]

What ships in 2.9: The service aep-ucb listens on port 8412 with constant-time reloadable key authentication, optional client-certificate mTLS and fair rate/slot quotas. Every ingest needs a task manifest, the written contract of the external agent, staged under isolated .staging/ leases until Admit completes. UCB invents none: without a manifest the ingest is refused. UCB_PROVENANCE_STRICT=1 is on by default for signed ML-DSA-65 provenance (=0 opts into legacy unsigned mode). Each ingest and egress check runs in a separate process confined by seccomp W^X and RLIMIT bounds using raw-byte collect-all scanning (perimeter-v1, plus opt-in paper005-vsa). UCB also ships model delegation with Draft 2020-12 JSON Schema validation and a ProposerGrader circuit breaker, atomic inverse-delta rollback over an O(1) node-keyed HMAC-SHA256 journal with persistent ReplayIndex, a pre-Admit gated egress proxy and an MCP adapter. Both UCB and the Base Node internal Unix-socket docks share the native aep-dock-transport crate for in-process PQ frame sealing and length-bounded transport. Components of this tree talk to the Base Node docks directly, so UCB is optional and UCB=0 turns it off.

Readiness vs plan: Active - Hardening (94 %, estimated by Gemini 4 Neon on 02.12.2026) - Hardened airlock with strict egress header allowlist and pre-Admit UCB_EGRESS gating plus confined outbound/inbound scanning, delegate Draft 2020-12 JSON Schema, ProposerGrader circuit breaker and env allowlist, default UCB_PROVENANCE_STRICT=1 ML-DSA-65 provenance, live AgentMesh did:aep plus optional mTLS, constant-time reloadable auth and fair rate/slot quotas, raw-byte sandboxed collect-all validation with depth-32/4096-key caps and seccomp W^X plus RLIMIT confinement, isolated .staging/ manifest leases, O(1) node-keyed HMAC-SHA256 journal with persistent ReplayIndex and atomic inverse-delta rollback, shared native aep-dock-transport in-process PQ sealing, opt-in paper005-vsa profile, THREAT_MODEL UB-1 through UB-12, conformance CC-38/CC-39 and TLC-verified UcbAirlock.tla.md.

Where it lives: AEP-Base-Node/AEP-Docks/ucb/, the dock specs in AEP-Base-Node/AEP-Docks/, plus AEP-Components/dock-line-reader/, AEP-Components/dock-post-beat-collect/, AEP-Components/dock-request-poison/ / AEP-Components/dock-transport/ and AEP-Components/egress-address/.

Run and test: cargo build --release -p aep-ucb and cargo test -p aep-ucb. The component README has the detail: AEP-Base-Node/AEP-Docks/ucb/README.md.

03 / Unified Validation Envelope

What it is: The envelope is the one container for everything the kernel checks about an action. All checks see the same frozen snapshot and run in a single pass, so no rule can depend on the order of another rule.

flowchart LR
  ACT[One action with agent, scene, time and channel] --> SNAP[One frozen snapshot]
  SNAP --> WALLS[15 walls evaluated in one pass]
  WALLS --> RES[One result with every closed wall]

What ships in 2.9: The crate aep-envelope evaluates 15 walls for each action: membership and parents in the action lattice, agent permission, writing, scene, time, channel dock, session rate, the scanner result, three policy walls, covenant tools, causal sequence and the anomaly forecast. A missing scene, timestamp or sequence number closes a wall. The crate aep-evaluation-chain derives a record of 15 named rows from the same evaluation for a later reader.

Readiness vs plan: Active - Hardening (92 %, estimated by Gemini 4 Neon on 01.12.2026) - Rust aep-envelope and zero-subprocess JavaScript lib/admit.mjs enforce all 15 walls with shared golden conformance vectors, sliding-window rate.session, live rego.output_ceiling with Base Node pulse resets, serde-true gap.writing, strict monotonic causal.sequence, non-finite forecast.anomaly closure, live aep-evaluation-chain 15-row projection, expanded CLI, JS-aware source gates, TLC-verified UnifiedValidationEnvelope.tla.md and an end-to-end-run stage.

Where it lives: AEP-Components/envelope/, plus AEP-Components/envelope-walls/ / AEP-Components/evaluation-chain/ and AEP-Components/unbound-field-close/.

Run and test: cargo test -p aep-envelope -p aep-evaluation-chain and npx vitest run AEP-Components/envelope. The component README has the detail: AEP-Components/envelope/README.md.

04 / Admit Gate

What it is: Admit is the judgement itself. It collects every wall of an action and closes the action when any wall is closed. It never stops at the first closed wall, so one answer lists every failed rule.

flowchart LR
  W1[Envelope walls] --> ALL[Collect every wall]
  W2[Policy walls from GAP] --> ALL
  W3[Writing, time, channel and budget walls] --> ALL
  ALL --> Q{Any wall closed}
  Q -->|yes| DENY[Deny with every closed wall and its reason]
  Q -->|no| ALLOW[Allow, then ledger row and Apply]

What ships in 2.9: The crate aep-admit contains the one collect-all function for every caller. The writing rules, the agent permissions written in GAP, the time bounds, the channel order, the window budgets and the policy files of AEP-Policy-System/reference/ compile into walls of the same pass. Covenants are the permit, forbid and require rules of an agent. They belong to this component together with the data permission system. An empty action lattice closes the membership wall, so nothing passes without written rules.

Readiness vs plan: Active - Hardening (93 %, estimated by Gemini 4 Neon on 01.12.2026) - Rust and JavaScript Admit Gate runs live with Base Node non-opt-in LRP binding, strict frame-wire mandatory channel enforcement, DENY-on-miss unknown invariants across all GAP and LRP frameworks, full 11-rule Rust/JS parity, partitioned causal/order walls, hardened Rust and TypeScript collect-all covenants, complete AEP-Registry coverage, golden conformance vectors, extended TLC-verified AdmitConjunction TLA+ proof and live end-to-end-run verification.

Where it lives: AEP-Components/admit/, plus AEP-Components/admit-budget-window/, AEP-Components/admit-channel-order-walls/, AEP-Components/admit-live-dock/, AEP-Components/admit-temporal-bounds/, AEP-Components/admit-writing-walls/, AEP-Components/policy-system-admit/ / AEP-Components/covenant/ and AEP-Components/permissions/.

Run and test: cargo test -p aep-admit -p aep-admit-live-dock and npx vitest run AEP-Components/admit. The component README has the detail: AEP-Components/admit/README.md.

05 / Graph Engine

What it is: The Graph Engine is the workflow runner of AEP. It moves a run through the nodes of a workflow graph and saves a checkpoint after each node, so a stopped run resumes at the last checkpoint.

flowchart LR
  S[Start node] --> AG{Admit function allows}
  AG -->|no| STOP[Node does not run]
  AG -->|yes| RUNN[Run node: action, decision, wait, parallel or loop]
  RUNN --> CP[Checkpoint]
  CP --> NEXT[Next node]

What ships in 2.9: Dual Rust workspace crate (aep-graph-engine) and TypeScript GraphEngine with six node kinds (action, decision, wait, parallel, join and loop), strict DENY-on-miss node guards, Tarjan SCC cycle analysis, bounded parallel frontier and join barriers, SHA-256 hash-chained Lattice Memory checkpoints with state-restoring resume(), first-party Base Node Admit, GAP Policy, dynAEP, Evidence Ledger and sibling hooks, Layer 9 end-to-end-run verification and a TLC-verified TLA+ safety model.

Readiness vs plan: Active - Hardening (86 %, estimated by Gemini 4 Neon on 01.12.2026) - Rust aep-graph-engine workspace crate and TypeScript GraphEngine ship with DENY-on-miss node guards, bounded parallel frontier and join barriers, SHA-256 hash-chained Lattice Memory checkpoint resume, first-party Base Node Admit, GAP Policy, dynAEP, Evidence Ledger and sibling hooks, golden cross-language parity, Layer 9 end-to-end-run verification and a TLC-verified TLA+ safety model; raw .tla placement under AEP-Components/tla awaits operator delimiter policy allowlist.

Where it lives: AEP-Components/graph-engine/, plus AEP-Components/decomposition/ / AEP-Components/session/ and AEP-Components/recovery/.

Run and test: npx vitest run AEP-Components/graph-engine and cargo test -p aep-graph-engine. The component README has the detail: AEP-Components/graph-engine/README.md.

06 / GAP

What it is: GAP (Governed Agentic Programming) is the instruction language of AEP. Policies, agent profiles, sandbox profiles and task manifests are all written as GAP instructions and GAP is the only form the Admit Gate loads.

flowchart LR
  GAPF[GAP files] --> REF[Reference policies]
  GAPF --> PROF[Sandbox profiles]
  GAPF --> TM[Task manifests]
  REF --> ADM[Walls of the Admit Gate 04]
  PROF --> COMP[gap-compile.mjs]
  COMP --> CAW[CAW sandbox settings 11]
  TM --> UCB[UCB ingest 02]

What ships in 2.9: The GAP meta-schema in version 1.3 with six composition types: atomic, sequence, conditional, loop, parallel and abstraction. The tree ships the native Rust aep-gap runtime crate (full Draft 2020-12 JSON Schema v1.3 validation, pure-std gapdsl parser, static type checker and deterministic evaluator, plus 6-type composition checks), live aep-policy-system-admit integration, normalized v1.3 policies across AEP-Policy-System/, a compiler from GAP profiles to CAW sandbox settings (gap-compile.mjs), Cedar and OPA Rego transpilers wired into PolicyEvaluator (gap-bridge.ts), cross-language golden conformance vectors, the Policy Builder and the Schema Builder. A runtime for Layer 1 constrained decoding and autonomous self-generation of policies through LRT and MLE remains planned.

Readiness vs plan: Active - Hardening (92 %, estimated by Gemini 4 Neon on 02.12.2026) - Native Rust aep-gap Draft 2020-12 v1.3 validator and gapdsl evaluator, policy-system-admit wiring, normalized top-level .gap policies, policy-engine Cedar/Rego/GAP bridge and Rust/JS golden conformance vectors are live; Layer 1 constrained decoding and autonomous LRT/MLE self-generation remain planned.

Where it lives: AEP-Components/gap/ (crate in AEP-Components/gap/crate/) and AEP-Policy-System/, plus AEP-Components/gap-schema-profile-v13/ / AEP-Components/policy-engine/ and AEP-Components/policy-leftover-skins/.

Run and test: cargo test -p aep-gap -p gap-schema-profile-v13 -p aep-policy-system-admit / node AEP-Components/gap/lib/gap-compile.mjs --list-profiles and npx vitest run AEP-Components/gap AEP-Components/policy-engine. The component README has the detail: AEP-Components/gap/README.md.

07 / dynAEP

What it is: dynAEP (dynamic AEP) governs events at run time: which actions exist, what must happen before each action and how old an event may be. It serves use cases such as live interfaces, where events arrive all the time.

The hyperlattice wrap composes from the most permissive node to the most restrictive one and all applicable nodes must pass together:

SYSTEM (most permissive)
  |-- governance
  |-- deployment
  |-- writing
  |-- security
  |-- compliance modules
  |-- action-path nodes
SANDBOX (most restrictive)
flowchart LR
  EV[Event with an action path] --> TIME[Time checks: drift, future and staleness]
  TIME --> ORD[Causal order: parents completed first]
  ORD --> LAT[Action Lattice]
  LAT --> OUT[Delivered to interested agents]

What ships in 2.9: The Action Lattice, the one live graph of actions with their parents and constraints, in TypeScript with a Rust crate beside it. Events pass time checks and causal order checks. Observers bring in webhook, SSE and poll events. The hyperlattice is the wrap around one governed system: scene, action paths, written policy, compliance modules and dock channels are nodes and edges of one graph and all of them must pass together. A wrap coverage report lists which parts of a deployment sit inside the wrap. The 1000 ms kernel wait belongs to the Base Node Pulse (10) and is no dynAEP setting.

Readiness vs plan: Active - Hardening (92 %, estimated by Gemini 4 Neon on 02.12.2026) - Full dynAEP 2.0 Rust and TypeScript runtime with HLC plus IETF TIM clock tracking, MTL temporal windows, canonical sparse VectorClock DAG, SQLite WAL crash recovery, 8-modality dynAEP-TA-P v2 live UI safety, System-1 GLiNER-2 loopback guardrails, TLC-verified TLA+ model, golden conformance vectors and Layer 19 E2E.

Where it lives: AEP-Components/dynAEP/, plus AEP-Components/hyperlattice/ and AEP-Components/wrap-coverage/. The guide for a domain of your own is CUSTOM-SUBLATTICE.md.

Run and test: npx vitest run AEP-Components/dynAEP AEP-Components/hyperlattice and cargo test -p aep-dynaep. The component README has the detail: AEP-Components/dynAEP/README.md.

08 / Lattice Channels

What it is: Lattice Channels are the only transport of AEP. Every message to the Base Node travels as a sealed capsule with post-quantum encryption and a signature.

flowchart TB
  subgraph BUILDER[Builder attach]
    APP[Native AEP component]
    UCB[UCB for external systems]
  end
  subgraph TRANSPORT[Lattice channels]
    LC[Sealed encrypted capsule]
  end
  subgraph KERNEL[Base Node kernel]
    DOCK[Dock opens the capsule]
    EVAL[Wait one second, then every check, then Apply]
    LEDGER[Runtime ledger row]
  end
  APP --> LC
  UCB --> LC
  LC --> DOCK
  DOCK --> EVAL
  EVAL --> LEDGER

What ships in 2.9: The crate aep-lattice-channel seals and opens capsules with ML-KEM-768 for the key exchange, AES-256-GCM for the content and ML-DSA-65 for the signature. A dock accepts sealed capsules only. A plain ping, event or register message is refused and logged as an attempt to bypass the seal. The same capsule bytes are never judged twice. JavaScript helpers seal capsules for clients and send outbound web requests of an agent through the Base Node.

Readiness vs plan: Active - Hardening (80 %, estimated by Gemini 4 Neon on 29.11.2026) - Pure-Rust ML-KEM/ML-DSA/AES-GCM v2 framing and DNS-pinned gated fetch are live; secret zeroization, no-proxy enforcement, encoded path normalization, JS TLS helper hardening and wasm-lattice wiring remain open.

Where it lives: AEP-Components/lattice-channels/, plus AEP-Components/lattice-crypto/ and AEP-Components/lattice-gated-fetch/.

Run and test: cargo test -p aep-lattice-channel -p aep-lattice-crypto and npx vitest run AEP-Components/lattice-channels. The component README has the detail: AEP-Components/lattice-channels/README.md.

09 / Evidence Ledger

What it is: Evidence Ledger is a Coupled Double-Helix Dual-DAG audit and attestation layer. Strand A (EntryDAG) records multi-parent causal evidence vertices hashed canonically across all fields, while Strand B (VerificationDAG) records independent verification rungs with RFC 6962 roots, append-only consistency proofs, native ML-DSA-65/Ed25519 witness signatures and read-only Base Node anchors. Forward rungs seal Strand A frontiers and backward rungs embed anchor_verif_id inside subsequent Strand A headers over a 5-axis product-poset coordinate lattice.

flowchart LR
  subgraph STRAND_A["Strand A: EntryDAG (G_E)"]
    E1["Entry 1 (causal_depth=1)"] --> E2A["Entry 2a (agent-a)"]
    E1 --> E2B["Entry 2b (agent-b)"]
    E2A --> E3["Entry 3 (join, turn=2)"]
    E2B --> E3
  end
  subgraph STRAND_B["Strand B: VerificationDAG (G_V)"]
    V1["Rung 1: RFC 6962 Root + ML-DSA-65"] --> V2["Rung 2: Consistency Proof + Ed25519 + Base Node Anchor"]
  end
  E2A -->|Forward rung| V1
  E2B -->|Forward rung| V1
  V1 -->|Backward anchor_verif_id| E3
  E3 -->|Forward rung| V2
  V2 --> PB["Signed ProofBundle + OTLP Spans"]

What ships in 2.9: Zero-unsafe pure-Rust workspace crate and CLI aep-evidence-ledger plus TypeScript parity implementing a Coupled Double-Helix Dual-DAG (EntryDAG braided with VerificationDAG over 5-axis product-poset coordinates), RFC 6962 domain-separated Merkle inclusion and append-only consistency proofs, native ML-DSA-65 and Ed25519 witness attestations, read-only Base Node SQLite lattice_log anchoring, durable rollback, persistent offline 2-parent merge, verified TSA receipts, hardened ProofBundle and SSRF-checked OTLP telemetry export, cross-language golden conformance vectors, Rust proptest algebraic proofs, TLC-verified TLA+ safety model and Layer 16 end-to-end-run verification. The runtime ledger of the kernel remains the SQLite lattice log of the Base Node (01).

Readiness vs plan: Active - Hardening (92 %, estimated by Gemini 4 Neon on 02.12.2026) - Pure-Rust aep-evidence-ledger crate and CLI plus TypeScript parity ship Coupled Double-Helix Dual-DAG, RFC 6962 inclusion and consistency proofs, native ML-DSA-65 and Ed25519 attestations, read-only Base Node anchor bridge, durable rollback and offline merge, hardened ProofBundle and SSRF-checked OTLP exporter, golden conformance, proptest proofs, TLC-verified TLA+ spec and live Layer 16 E2E proof.

Where it lives: AEP-Components/evidence-ledger/, plus AEP-Components/proof-bundle/ and AEP-Components/telemetry/.

Run and test: cargo test -p aep-evidence-ledger -p aep-conformance -p aep-end-to-end-run and npx vitest run AEP-Components/evidence-ledger AEP-Components/proof-bundle AEP-Components/telemetry. The component README has the detail: AEP-Components/evidence-ledger/README.md.

10 / Base Node Pulse

What it is: The pulse is the fixed interval of the kernel. The Base Node freezes the clock when a capsule arrives, keeps the capsule for 1000 ms and then runs every check against the frozen time.

flowchart LR
  ARR[Capsule arrives] --> FRZ[Clock frozen for this capsule]
  FRZ --> WAIT[Wait of 1000 ms]
  WAIT --> CHK[Every check against the frozen time]
  ARR --> REF{Stamp over 50 ms ahead or over 5000 ms old}
  REF -->|yes| OUT[Refused before the queue]

What ships in 2.9: The crate aep-base-node-pulse with the compiled constants: a hold of 1000 ms, an allowed clock drift of 50 ms and a maximum age of 5000 ms. A timestamp ahead of the Base Node clock by more than the drift is refused. A timestamp older than the age is refused too. The queue has room for 256 capsules and one signer may fill at most half of it. The wait is no environment variable and no configuration key. A builder who wants another wait rebuilds the Base Node.

Readiness vs plan: Active - Hardening (95 %, estimated by Gemini 4 Neon on 02.12.2026) - Compiled 1000 ms discrete-time velocity governor with dual-clock wall/monotonic freeze isolation, clamped 50 ms drift and 5000 ms age ceilings, O(1) signer-share accounting and O(N log N) canonical _sequenceNumber beat release, fixed-cadence 1 Hz interval driver with poison-safe beat_lock DENY on miss and event-driven collect wakeup, LastApplied BookExact monotonic TTL, reconciled aep-dock-post-beat-collect wire contract, standalone aep-base-node-pulse CLI binary, proptest proofs, expanded TLC PulseQueueBounds byte/share model plus mutants, golden conformance vectors and Layer 18 E2E proof.

Where it lives: The whole component lives in the one folder AEP-Components/base-node-pulse/ and no other folder belongs to it.

Run and test: Run cargo test -p aep-base-node-pulse from the repository root. The component README has the detail: AEP-Components/base-node-pulse/README.md.

11 / CAWs

What it is: CAWs (Containerized Agentic Workflows) are the sandboxes on the host in which an agent process runs. A CAW confines the shell commands, files, network connections and processes of the agent under the written policy.

What ships in 2.9: The Rust CAW plus COSHELL Basic (aep-coshell). The program aep-caw runs every agent command inside gVisor (runsc, systrap platform) as a user that is not root, after the kernel dock of the Base Node admitted a sealed ping. Profiles, egress policies and toolsets are written in GAP (06). Every denied file, program or destination is an event in a hash chained audit log. COSHELL Basic wraps the Rust CAW with bounded session cell management, workspace boundary verification, embedded dynAEP 2.0 parent closure and SHA-256 hash-chained session audit logs. The Go CAW of earlier releases is retired. The CI job caw-gvisor proves the sandbox on a GitHub runner and THREAT_MODEL.md Layer 4 names the check behind every claim.

Readiness vs plan: Active - Hardening (70 %, estimated by Gemini 4 Neon on 29.11.2026) - Rootless Rust gVisor sandbox, pinned rootfs, DNS-pinned egress and hash-chained audit are live; full command authorization at the kernel dock, read-only egress socket mount, file masks, HTTP proxy hardening, memory/CPU rlimits and intercept/mcp-security wiring remain open.

Where it lives: AEP-CAWs-RustGvisor/ with the programs aep-caw and aep-caw-init and four crates, plus AEP-COSHELL/ for the COSHELL Basic bounded session cell runner (aep-coshell, README), AEP-Components/isolation/, AEP-Components/intercept/ / AEP-Components/mcp-security/ and AEP-Components/caw-cve-demo-trees/.

Run and test: Install the pinned gVisor once with sudo bash AEP-CAWs-RustGvisor/proof/install-runsc.sh, then run cargo test -p aep-caw-policy -p aep-caw-runtime -p aep-caw-egress -p aep-caw-dock -p aep-coshell and bash AEP-COSHELL/proof/coshell-basic-e2e.sh. The component READMEs have every command: AEP-CAWs-RustGvisor/README.md and AEP-COSHELL/README.md.

12 / Scanners

What it is: The scanners read the content of a proposal or of a model answer and report findings such as a leaked secret or an injection attempt. Their result is one wall of the envelope (03).

flowchart LR
  TXT[Content of a proposal or a model answer] --> PIPE[Pipeline of 13 scanners]
  PIPE --> FIND[Findings with a severity]
  FIND --> WALL[Wall scanner.bundle in the envelope 03]
  WALL --> ADM[Admit Gate 04]

What ships in 2.9: A Rust workspace crate (aep-scanners) wired into the kernel envelope scanner.bundle wall, admit-live-dock / policy-system-admit and UCB perimeter-v1, paired with 14 hardened TypeScript scanners sharing one unified JSON rule table (scan-rule-table.json, 92 rules at 100 % parity). Multi-pass canonical normalization defeats URL, HTML, Unicode, homoglyph, invisible-character and Base64 evasions; matched secrets and PII are redacted by default; O(N) sliding-window scanning guards streams and MCP tool payloads; and ScannerWall.tla is TLC-verified.

Readiness vs plan: Active - Hardening (90 %, estimated by Gemini 4 Neon on 01.12.2026) - Rust aep-scanners workspace crate is live in the kernel envelope scanner.bundle wall, admit-live-dock, policy-system-admit and UCB perimeter-v1; unified v2 rule table at 100 % Rust/TypeScript parity with multi-pass normalization, mandatory secret/PII redaction, READ 13 supply-chain/malware/SSRF rules, O(N) sliding-window streaming, MCP payload scanning, TLC-verified ScannerWall.tla model, differential corpus and Layer 15 end-to-end run.

Where it lives: AEP-Components/scanners/ (Rust crate in crate/, shared rule table in rules/, TypeScript scanners in lib/, TLA+ model in docs/).

Run and test: Run cargo test -p aep-scanners and npx vitest run AEP-Components/scanners from the repository root. The component README has the detail: AEP-Components/scanners/README.md.

13 / AgentMesh

What it is: AgentMesh gives each agent an identity issued on the local node. The Base Node and the docks use it to know which agent signed a capsule.

What ships in 2.9: Pure-Rust crate and CLI aep-agentmesh (zero unsafe_code) providing local issuance X.509 certificates from a constrained (pathlen=0) dual-root rotating CA, signed RFC 5280 CRL revocation with live Base Node mTLS hot-reload, strict SPIFFE URI SAN and EKU peer binding, opt-in pure-Rust SPIFFE Workload API UDS client (SPIFFE_ENDPOINT_SOCKET, DENY on miss) and signed W3C did:aep documents wired to UCB. The TypeScript @aep/identity package adds trust-anchored verification, verifiable CompactIdentity, X.509/SPIFFE/DID/CRL parity and in-process node:tls Lattice transport.

Readiness vs plan: Active - Hardening (92 %, estimated by Gemini 4 Neon on 01.12.2026) - Zero-unsafe Rust CA with pathlen=0, dual-root rotation, atomic 0600 storage, key zeroization, live hot-reloading CRL revocation, strict SPIFFE SAN/EKU/DID mTLS binding, real Rust SPIFFE Workload API UDS client, signed W3C did:aep wired to real UCB keys, trust-anchored TypeScript @aep/identity plus AgentMesh SDK, in-process node:tls transport, standalone aep-agentmesh CLI, cross-language conformance vectors, Rust proptest state-machine proofs and live end-to-end-run stage.

Where it lives: AEP-Components/agentmesh/, plus AEP-Components/agentmesh-local-issuance/ and AEP-Components/identity/.

Run and test: cargo test -p aep-agentmesh -p aep-agentmesh-local-issuance and npx vitest run AEP-Components/identity. The component README has the detail: AEP-Components/agentmesh/README.md.

14 / Economics

What it is: Economics is the cost control of AEP. It estimates the cost of a model call before the call, enforces budget caps and handles x402 payments, the payments an agent makes in answer to an HTTP 402 reply.

What ships in 2.9: Zero-unsafe pure-Rust crate and CLI aep-economics (AEP-Components/economics/crate/) alongside TypeScript parity implementing exact integer micro-USD cost estimation with cached prompt token pricing, strict unknown-model DENY on miss, advisory-locked durable WAL hierarchical and sliding-window velocity budgets, a governed-block spend circuit breaker, hardened HTTP 402 x402 nanopayments with Ed25519 and ML-DSA-65 AgentMesh verification, Evidence Ledger (09) Double-Helix spend auditing, Scanners (12) and egress-address facilitator SSRF and secret redaction guards, dynAEP (07) causal and bridge-clock enforcement, GAP v1.3 collect-all Admit walls (AEP-Policy-System/reference/economics.gap), sliding-window fallback, deterministic cost/latency routing, fair bounded concurrency and policy-scoped exact-match caching. Both the Rust aep-model-gateway and TypeScript Model Gateway (17) call these hooks before and after model calls.

Readiness vs plan: Active - Hardening (92 %, estimated by Gemini 4 Neon on 02.12.2026) - Zero-unsafe pure-Rust aep-economics crate and CLI plus TypeScript parity ship exact integer micro-USD accounting with cache-token pricing, unknown-model DENY on miss, durable WAL hierarchical/velocity budgets, hardened HTTP 402 x402 with Ed25519/ML-DSA-65 AgentMesh verification and SSRF/redaction Scanners guards, Evidence Ledger Double-Helix audit, dynAEP causal/bridge-clock checks, GAP v1.3 collect-all Admit walls, sliding-window fallback, deterministic cost/latency routing, fair concurrency, exact-match cache, golden conformance, proptest proofs, TLC-verified EconomicsGovernance.tla.md and live Layer 20 E2E proof; live external price feed and payment facilitator network remain deployment-configured.

Where it lives: The whole component lives in the one folder AEP-Components/economics/ and no other folder belongs to it.

Run and test: Run cargo test -p aep-economics -p aep-model-gateway and npx vitest run AEP-Components/economics from the repository root. The component README has the detail: AEP-Components/economics/README.md.

15 / Lattice Memory

What it is: Lattice Memory is the record of what the Admit Gate (04) judged. A recorded verdict is one record in an append-only log with a hash chain and accepted records form attractors with support counts. A stored shape never replaces a check: a proposal similar to an earlier allow still passes every wall of the Admit Gate.

What ships in 2.9: Zero-unsafe pure-Rust crates (aep-lattice-memory-core compiling to wasm32-wasip2 under WIT aep:[email protected] and aep-lattice-memory) plus strict TypeScript parity (@aep/lattice-memory) with zero database engine, zero floating-point similarity math and zero hyperbolic geometry. aep-lattice-memory-core computes bounded canonical JSON shape digests, 256 bit SimHashes, quantized int8 embeddings, 13-band round-stratified Multi-Index Hashing with 8-pivot discrete shells and Cauchy-Schwarz block bounds, Bitset256 Ganter Formal Concept Analysis (FCA) concept closures, RFC 6962 Merkle proofs, dynAEP 2.0 CausalStamp labels and a 16-shard GAP-policy-scoped ShardedExactMemo. aep-lattice-memory adds full-chain prefix-tamper anchor verification, symlink containment, online segmented epoch rotation (<domain>.lmmanifest and <domain>.lmseg.<epoch>), persistent serve-stdio JSON-lines service, native Rust Intent Ledger (16) knot coupling and dual-signed (Ed25519 + ML-DSA-65) Coupled Double-Helix Evidence Ledger (09) anchoring.

Readiness vs plan: Active - Hardening (93 %, estimated by Gemini 4 Neon on 02.12.2026) - Zero-unsafe pure-Rust aep-lattice-memory-core (wasm32-wasip2 and WIT aep:[email protected]) and aep-lattice-memory plus strict TypeScript @aep/lattice-memory ship 13-band round-stratified Multi-Index Hashing, 8-pivot discrete shells and Cauchy-Schwarz int8 bounds passing all 5 record_flat_cost_vs_n scaling gates under 2.0x at 100000 attractors, Bitset256 Ganter FCA concept closures, RFC 6962 Merkle proofs, full-chain prefix-tamper anchor verification, online segmented epoch retention, 16-shard GAP-policy-scoped ExactMemo, dynAEP 2.0 CausalStamp trajectory coupling, native Rust Intent Ledger knot linkage, dual-signed Ed25519/ML-DSA-65 Double-Helix Evidence Ledger anchoring, GAP v1.3 reference policy, cross-language conformance vectors, proptest proofs, TLC-verified LatticeMemorySafety.tla.md and live Layer 21 E2E proof; distributed cross-node attractor gossip remains deployment-scoped.

Where it lives: The whole component lives in the one folder AEP-Components/lattice-memory/. The Base Node side is AEP-Base-Node/AEP-Crate/src/lattice_memory.rs and the reference GAP policy is AEP-Policy-System/reference/lattice-memory.gap.

Run and test: Run cargo test -p aep-lattice-memory-core -p aep-lattice-memory and npx vitest run AEP-Components/lattice-memory from the repository root. The component README has the detail: AEP-Components/lattice-memory/README.md.

16 / Intent Ledger

What it is: The Intent Ledger is the provenance record for code changes. A coding agent first declares what it intends to change and the ledger later links the commit to this declaration.

What ships in 2.9: Pure-Rust zero-unsafe crate and standalone CLI aep-intent-ledger plus TypeScript parity implementing a 100 % public non-hyperbolic Dual-Galois discrete geometry engine (Complete-Lattice Morpho-Logic dilation/erosion/closing/opening/breach/distance, Bounded-Window Formal Concept Analysis NextClosure concept lattice and missing-artifact implications, Ultrametric Path Containment with DENY on miss, Tropical min-plus dependency distance and Alexandrov Betti-0 split-commit detection), signed canonical-JSON solidify chains, safe read-only Git HEAD/diff capture, Evidence Ledger (09) cross-links, Lattice Memory (15) intent knots and geometric IntentDriftDetector.

Readiness vs plan: Active - Hardening (92 %, estimated by Gemini 4 Neon on 02.12.2026) - Zero-unsafe Rust crate and standalone aep-intent-ledger CLI with public non-hyperbolic Dual-Galois geometry (Complete-Lattice Morpho-Logic, Bounded-Window FCA, Ultrametric Path Containment, Tropical Dependency Distance and Betti-0 Connectedness), signed canonical-JSON hash chain, live Git diff capture, TypeScript parity, geometric IntentDriftDetector, cross-language golden conformance, Rust proptest algebraic proofs and Layer 14 end-to-end-run stage.

Where it lives: AEP-Components/intent-ledger/, plus AEP-Components/intent/.

Run and test: Run npx vitest run AEP-Components/intent-ledger AEP-Components/intent from the repository root. The component README has the detail: AEP-Components/intent-ledger/README.md.

17 / Model Gateway

What it is: The Model Gateway is the one route for model calls. A call to any provider passes the policy first and the answer is checked while it streams.

flowchart LR
  REQ[Model request] --> POL[Policy and input scan]
  POL --> ECO[Budget and cost hooks of Economics 14]
  ECO --> AD[Provider adapter: Anthropic, OpenAI, Ollama or custom]
  AD --> OUT[Output scan and stream checks]
  OUT --> LED[Evidence Ledger 09]

What ships in 2.9: Dual TypeScript (createGovernedModelGateway, GovernedModelGateway) and pure-Rust (aep-model-gateway crate and local OpenAI/Anthropic-compatible HTTP proxy daemon) implementations with hardened Anthropic, OpenAI, Ollama and Custom adapters. Pre-call checks enforce ModelRequestSchema, Session/KillSwitch, GAP policy and Covenant evaluation and collect-all Base Node Admit walls. AEP-Components/streaming/ wires collect-all stream validation with sliding holdback buffering, upstream abort cancellation, redacted SHA-256 abort receipts and OTEL telemetry. Economics hooks add budgeted recovery retries, exact spend settlement on governed blocks, lowest-latency selection, multi-provider fallback and governed parallel dispatch (race, hedged, consensus) over route-bounded 120 s Base Node inference dock timeouts. Verified by cross-language golden conformance vectors, Layer 10 of end-to-end-run and a TLC-verified ModelGateway.tla specification.

Readiness vs plan: Active - Hardening (88 %, estimated by Gemini 4 Neon on 01.12.2026) - Dual Rust and TypeScript runtime with local proxy daemon, pre-call Admit/Policy/KillSwitch gating, collect-all streaming holdback, hardened provider adapters, latency fallback, parallel dispatch, golden conformance, Layer 10 E2E proof and TLC-verified TLA+ safety model.

Where it lives: AEP-Components/model-gateway/, plus AEP-Components/streaming/.

Run and test: Run npx vitest run AEP-Components/model-gateway AEP-Components/streaming AEP-Components/economics and cargo test -p aep-model-gateway -p aep-lattice-gated-fetch -p aep-end-to-end-run from the repository root. The component README has the detail: AEP-Components/model-gateway/README.md.

18 / TLA+

What it is: TLA+ is a language for formal models of a system. AEP writes the central kernel rules as TLA+ models, so a model checker can search every state of a rule for a violation.

What ships in 2.9: Ten models (five raw .tla modules: AdmitConjunction, DockPulse, WrapComplete / TemporalBounds and LastApplied, plus five literate specs/*.tla.md modules: GraphEngine, PulseQueueBounds, EdeLifecycle / CawKernelGate and BudgetWindow) and 18 negative mutants. Every configuration switches CHECK_DEADLOCK TRUE on, names safety invariants and liveness properties and states weak fairness. The checker aep-tla-verify validates module shape, comment-stripped fairness, symbol declarations, combined .tla plus .cfg SHA-256 digests, optional GAP metadata.tla_plus sibling links and TLC plus optional Apalache/Z3 under warn and strict. CI (baseline.yml) runs all 10 models, 18 mutants and strict aep-tla-verify on SHA-256 pinned tla2tools.jar, alongside Rust constant pinning, live trace conformance, proptest suites, conformance CC-01 through CC-37 (including live CC-08 rate-limit verification and dock-deny vectors) and trust-anchored replay-safe counterparty verification with Rust ML-DSA-65 parity.

Readiness vs plan: Active - Hardening (90 %, estimated by Gemini 4 Neon on 01.12.2026) - Ten TLC-verified TLA+ models (five .tla and five literate specs/*.tla.md) and 18 negative mutants run in CI on SHA-256 pinned tla2tools.jar with strict CLI state-count summaries, combined .tla/.cfg digests, GAP metadata.tla_plus links, optional Apalache/Z3 solver, Rust constant pins, trace conformance, admit/envelope proptest suites, CC-37 conformance, live CC-08 rate-limit verification, dock-deny vectors and trust-anchored replay-safe verification handshakes with Rust ML-DSA-65 parity; full mechanized Rust-to-TLA+ refinement proofs and default CI Apalache execution remain open.

Where it lives: AEP-Components/tla/, plus AEP-Components/verification/ and AEP-Components/conformance/.

Run and test: cargo test -p aep-tla-verify, cargo test -p aep-tla-verify --test model_check where TLC is installed and ./AEP-Components/conformance/runner/run.sh. The component README has the detail: AEP-Components/tla/README.md.

19 / AEP Workspaces

What it is: AEP Workspaces is the declarative multi-repository topology layer of AEP. It organizes single or multi-repository deployments into isolated workspaces and lanes (dev, review, release), pairing EDE drafts (20) outside the sandbox with isolated gVisor CAW sessions (11) mounted strictly on the editable draft tree.

flowchart LR
  GAPW[aep-workspaces.gap and workspace.gap] --> CLI[aep-workspace CLI]
  CLI --> OPEN[aep-workspace open]
  OPEN --> EDE20[EDE draft outside sandbox 20]
  OPEN --> CAW11[CAW gVisor session on draft tree 11]
  CAW11 --> VER[aep-workspace verify binds green tree digest]
  EDE20 --> PROM[aep-workspace scan and promote]
  VER --> PROM
  PROM --> LEDW[Hash-chained workspace-ledger.jsonl]

What ships in 2.9: The Rust library aep-workspaces and CLI aep-workspace (init, check, check --live, list, open, exec, scan, verify, promote, expire / status and ledger-check). Every control lives in operator-owned GAP manifests (aep-workspaces.gap and per-workspace workspace.gap) validated with DENY on miss parsing and exclusive mutable repository ownership. aep-workspace open atomically pairs an EDE draft with a CAW session, verifies zero .git exposure inside the sandbox mount and rolls back the draft automatically if CAW startup fails. Toolset variables come strictly from lane manifests. aep-workspace verify runs declared verify_commands inside gVisor and binds the green SHA-256 tree digest into the pairing record and workspace-ledger.jsonl, invalidating promote on any later edit. The tree ships AEP-Workspaces/templates/default-workspace/, the 3-workspace reference topology AEP-Workspaces/examples/default-topology/, the host deployment guide AEP-User-Experience/docs/AEP-WORKSPACES-DEPLOYMENT-GUIDE.md and the end-to-end proof AEP-Workspaces/proof/workspace-e2e.sh.

Readiness vs plan: Active - Partial (70 %, estimated by Gemini 4 Neon on 30.11.2026) - Pure-Rust aep-workspace CLI, GAP manifest validation, atomic EDE plus CAW pairing, verified-tree digest binding, hash-chained ledger and e2e proof are live; default Docker image packaging, CI gVisor proof wiring, shell pipeline verification and multi-host orchestration remain open.

Where it lives: The whole component lives in the one folder AEP-Workspaces/ with the crate in AEP-Workspaces/crate/, templates, examples and proof script, plus the reference schema AEP-Components/gap/policies/reference/workspace-default.gap.

Run and test: cargo test -p aep-workspaces / cargo build -p aep-workspaces --bin aep-workspace and bash AEP-Workspaces/proof/workspace-e2e.sh. The component README has the detail: AEP-Workspaces/README.md.

20 / EDEs

What it is: Enforced Draft Environments (EDEs) govern how a coding agent changes any repository. Every edit occurs inside a dedicated draft clone whose .git directory, sealed record and keys remain outside the editable working tree. Changes land only after a collect-all policy scan as one audited commit or pull request.

flowchart LR
  ID[ML-DSA-65 signed agent frame] --> SEED[aep-ede seed draft]
  SEED --> EDIT[Edit draft tree inside CAW 11]
  EDIT --> SCAN[aep-ede scan: Admit writing walls 04 and dynAEP 07]
  SCAN --> PROM[aep-ede promote: single commit or PR]
  PROM --> STAGE[Optional provisional host stage, check and confirm]
  PROM --> LEDE[Sealed record and hash-chained ledger]

What ships in 2.9: The Rust binary and library aep-ede running under a dedicated host EDE user (aep-ede) with operator controls held solely in /etc/aep-ede (operator.conf, GAP agent profiles, registered ML-DSA-65 public keys, forge tokens and ede.key). Every verb (seed, path, diff, status, refresh, scan, promote, expire / sweep and ledger-check) verifies the agent's signed frame, checks the GAP profile verb grant via gap-schema-profile-v13 and enforces the EDE lifecycle wall of dynAEP (07). scan evaluates git tree blobs collect-all through the writing walls of Admit (04), binds the tree to a SHA-256 scan id and rejects symlinks, submodules and over-quota drafts. promote merges onto branch tips, rescans and lands the exact scanned tree with audit trailers on GitHub or any Git remote. Provisional host staging (stage, stage-check, stage-revert / stage-confirm and stage-status) applies deploy manifests with saved rollback snapshots and operator confirmation. AEP-CAWs-RustGvisor/proof/ede-pairing.sh proves pairing with CAWs (11).

Readiness vs plan: Active - Hardening (75 %, estimated by Gemini 4 Neon on 30.11.2026) - Pure-Rust aep-ede CLI, ML-DSA-65 signed frames, GAP profile grants, collect-all Admit writing scan, dynAEP lifecycle wall, GitHub/Git forges, provisional host staging and chained ledger are live; CI manifest and session binding in scan ids, live Base Node dock coupling and default Docker packaging remain open.

Where it lives: The whole component lives in the one folder AEP-Components/ede/ with the crate in AEP-Components/ede/crate/ and identifier vectors in AEP-Components/ede/identifier-vectors.rec, plus the reference profile AEP-Components/gap/policies/reference/ede-coding-agent.gap.

Run and test: cargo test -p aep-ede and cargo build --release -p aep-ede. The component README has the detail: AEP-Components/ede/README.md.

Shared parts

Four folders under AEP-Components/ serve more than one component:

Folder Role
AEP-Components/datasets/ A file based store of evaluation datasets with simple versions
AEP-Components/platform-core/ Shared path helpers and the catalog of regulation modules
AEP-Components/source-check/ The one Rust source check of the workspace, parsing crates with syn to prove kernel rules
AEP-Components/ucm/ The Universal Computation Module, the exact calculation engine with signed receipts

Repository layout

Directory Role
AEP-Base-Node/ Kernel: daemon, registry, Potomitan mesh, Agent Control Hub and the docks with UCB
AEP-Components/ Protocol components, EDEs (component 20) and the component map
AEP-CAWs-RustGvisor/ Rust CAW host sandboxes running agent commands inside gVisor, component 11
AEP-Workspaces/ Declarative multi-repository workspaces and atomic EDE plus CAW orchestration, component 19
AEP-Policy-System/ GAP policies, presets, Policy Builder and Schema Builder
AEP-User-Experience/ Harness, operator documents and examples
AEP-Research-Paper/ DAL-AEP research paper assets (PDF + OTS proof)
docker/ Container entrypoint and runtime dependencies
rust/ Build output folder of the Rust workspace

The root keeps the workspace files: Cargo.toml, package.json, Dockerfile, docker-compose.yml, docker-compose.public.yml, docker-compose.test-fresh.yml, .env.example, aep-check.mjs, vitest.config.mjs, tsconfig.json, LICENSE, CHANGELOG.md / BIOSECURITY.md and THREAT_MODEL.md. THREAT_MODEL.md is the engineering threat model of every layer and each mitigation in it cites the test or conformance check behind it. CHANGELOG.md lists the release history.

Key services and ports

Service Default port Notes
UCB 8412 Optional. Foreign attach only. Disable with UCB=0. See the UCB README
WASM sandbox wasm_sandbox socket Set WASM_SANDBOX=1 in Docker
Base Node sockets /data/aep/sockets Inference, validation, future, regulation docks

Conformance and official run sequence

Public repository is https://github.com/thePM001/AEP-agent-element-protocol. GitHub is a public mirror. GitHub does not run CC-01 through CC-15.

Factory checks on the official tree:

cargo test -p aep-base-node --lib
./AEP-Components/conformance/runner/run.sh
docker compose up -d --build

Docker is the packaged run path. The conformance runner is the public-tier battery and public tier vendors run it before claiming AEP compliance.

Manifest: AEP-Components/conformance/tests/manifest.json. Every listed check runs on every run and the runner fails when one does not. Checks in the planned list make no compliance claim. The Rust kernel is normative and the language neutral vectors in AEP-Components/conformance/vectors/v1 let an implementation in any language check itself without a Rust toolchain.

Documentation index

Doc Topic
AEP-Base-Node/README.md 01 AEP Base Node: kernel, docks, outbound request and operator guide
AEP-Base-Node/AEP-Docks/ucb/README.md 02 UCB: foreign attach, task manifest and HTTP interface
AEP-Components/envelope/README.md 03 Unified Validation Envelope: the 15 walls and the derived record
AEP-Components/admit/README.md 04 Admit Gate: collect-all judgement and wall families
AEP-Components/graph-engine/README.md 05 Graph Engine: workflow runner and checkpoints
AEP-Components/gap/README.md 06 GAP: language, compile pipeline and CAW profile authoring
AEP-Components/dynAEP/README.md 07 dynAEP: event governance protocol
AEP-Components/lattice-channels/README.md 08 Lattice Channels: sealed transport and its security rules
AEP-Components/evidence-ledger/README.md 09 Evidence Ledger: hash chain, Merkle proofs and rollback
AEP-Components/base-node-pulse/README.md 10 Base Node Pulse: compiled clocks of the kernel
AEP-CAWs-RustGvisor/README.md 11 CAWs: the Rust CAW that runs every agent command inside gVisor
AEP-Components/scanners/README.md 12 Scanners: the scanner pipeline and the rule table
AEP-Components/agentmesh/README.md 13 AgentMesh: local identity issuance
AEP-Components/economics/README.md 14 Economics: cost, budgets and x402
AEP-Components/lattice-memory/README.md 15 Lattice Memory: record log and attractors
AEP-Components/intent-ledger/README.md 16 Intent Ledger: provenance of code changes
AEP-Components/model-gateway/README.md 17 Model Gateway: governed model calls
AEP-Components/tla/README.md 18 TLA+: models and checker
AEP-Workspaces/README.md 19 AEP Workspaces: declarative multi-repository topology, lanes and atomic EDE plus CAW orchestration
AEP-Components/ede/README.md 20 EDEs: enforced draft environments, signed drafts, scan, promote and provisional host staging

Operator guides:

Doc Topic
AEP-User-Experience/docs/AEP-2.9-SECURE-DEPLOYMENT-GUIDE.md Secure deployment guide
AEP-User-Experience/docs/AEP-WORKSPACES-DEPLOYMENT-GUIDE.md AEP Workspaces deployment guide: topology, lanes, in-sandbox verification and host setup
AEP-Components/README.md Component map, status lines and TypeScript checks
AEP-Components/hyperlattice/CUSTOM-SUBLATTICE.md How to attach a custom sub-lattice
AEP-Components/dynAEP/CONFIG.md dynAEP configuration reference
AEP-Base-Node/AEP-Agent-Control-Hub/README.md GAP capability profiles and CAW sandbox routing on Base Node
AEP-Base-Node/AEP-Docks/README.md Socket docks, UCB and UCD
AEP-Policy-System/README.md Policy files, presets and builders
AEP-Policy-System/SETUP.md Live Admit GAP node setup
AEP-Policy-System/schema-builder/README.md Schema Builder
AEP-Policy-System/policy-builder/README.md Policy Builder
AEP-User-Experience/README.md Harness and operator documents
THREAT_MODEL.md Threat model per layer with traced mitigations
PUBLIC_CLAIMS.md Public capability claims traced to tests or planned status
SECURITY.md Vulnerability reporting policy and release verification
CONTRIBUTING.md Contributor verification checklist and standards
CODE_OF_CONDUCT.md Contributor Covenant code of conduct
NOTICE Apache-2.0 copyright and third-party attribution notice
AEP-Research-Paper/README.md DAL-AEP paper + OTS proof
rust/README.md Rust workspace build

Research and licence

Research paper: AEP-Research-Paper/ - GitHub mirror

Licensed under Apache License 2.0. See LICENSE.


AI-Eligibility Status

To win the fight against the synthetic nano-parasites (SNP/NanoSinp) alien WMD, we must be intelligent and biosecure. It is recommended that bioinsecure humans do not use the provided technology/protocol to avoid bad techno-spiritual AI outcomes for them. [*"bioinsecure" = has installed injectable synthetic nano-parasites growth medium controllers - SNP GMCs]

See also: BIOSECURITY.md

Explore related projects

Loading…