Repository avatar
Other Tools
v0.1.0
active

ame-mcp-server

io.github.bearrhee/ame-mcp-server

Stateful cognitive OS & long-horizon memory MCP server over AME Mode B OpenAPI 3.1.

Documentation

Artificial Mind Engine (AME)

"LLMs are swappable stateless CPUs; Artificial Mind Engine is the proprietary stateful cognitive OS kernel responsible for persistence, adaptability, and emotional coherence."

5,000T EN Live (v4.5.0) 5-LLM EN Live (v4.5.0) LoCoMo development subset, 2 of 10 conversations (n=304) Full LoCoMo Full LongMemEval_S EQ-Bench 3 EQ-Bench v2 CogEval EN Live (v4.5.0) FEP Lock D3 Revocation D4 String Scan LongMemEval-S EN (Mode B) Provider Cache (v4.5.0 Mode B) 1M-Turn Simulation Hugging Face Hub Technical Report PDF Zenodo DOI alphaXiv Preprint

Quick Navigation: Zenodo DOI (10.5281/zenodo.24652170) · alphaXiv Preprint · Technical Report (PDF) · Technical Report (Markdown) · B2B Mode B API Manual (Interactive HTML) · API Manual EN · API Manual KO · Website (artificialmind.me) · Hugging Face Hub (Spaces & Datasets) · Live Hosted Interactive Demo · GitHub Pages Showcase · Interactive Web Showcase (HTML) · OpenAPI 3.1 Contract · 1-Page Executive VC Brief · 5-Layer Architecture · Full Benchmarks

At a Glance — Why AME Exists, How It Differs & Measured Results

AxisExecutive Summary
What It's ForStateful 5-layer Cognitive OS Kernel (Open Interface MIT + Sealed Kernel v4.5.1, benchmarks measured on v4.5.0) sitting above any swappable LLM (OpenAI, Anthropic, Gemini, DeepSeek, Gemma, vLLM/Ollama) for AI Companions, Game NPCs, Digital Health/Counseling, Enterprise VIP Agents, Voice-Enabled Robotics (+ TTS/ASR), and Personal AI Agents (Meta Muse / Cowork / Siri / OpenClaw)—with 1-to-3 line SDK hot-swapping (Mode A / Mode B Zero-Key).
How it differsA conversation can continue on the same mind ID after a model change or time spent offline. Unlike replaying a transcript, the application can request recall, abstention, an idle update and deletion over an explicit API.
Measured ResultsProduction Dual-Router (Mode A, self-run harness; not a ranking): 79.81% Full LoCoMo (1,585/1,986; Cat 1–4 77.21%, Cat 5 88.79%), 80.20% Full LongMemEval_S (401/500), LME-30 25/30 vs. 22/30 for the full-context baseline (a 3-question difference; AME escalated 17/30 to Claude Sonnet 5, while the baseline ran DeepSeek Flash Eco alone on input truncated at 380K characters), Confirm-304 (development subset, 2 of 10 conversations) 85.86% (261/304) vs. 87.17% (265/304) for the full-context baseline and 75.66% (230/304) on standalone Gemma 4 26B, 97.9% Mode A D1 (141/144; manipulation check with synthetic state descriptions), 85.98% kernel-reported prefix reuse in a sealed-API smoke run (99 responses), self-run EQ-Bench 3 77.77 / 77.59 (46 scenarios × 4 turns, GPT-4o judge; no rank claim), EQ-Bench v2 78.69, and a 1M-turn deterministic simulation with 0 LLM calls (0.9179 composite).
Standalone Sealed-Kernel Mode B (ame-kernel-sealed:v4.5.0 5-Model OpenRouter Live, $77.53 total = $75.33 Option C + $2.19 Track 1, 2026-11-30): Full LoCoMo Mode B (n=1,986) moves from v4.4.0 (56.04%, gpt-4o-mini) to 68.58% (Claude Sonnet 5.5; Cat 1–4 60.78%, Cat 5 95.52%; +12.54%p, with kernel and backbone changed together, so the kernel-only effect is not isolated) & 68.23% (DeepSeek V4.1 Flash 1017; Cat 1–4 60.45%, Cat 5 95.07%; +12.19%p, 1,509 mean tok -49.9%, p50 689 ms, $0.60), plus Gemini 4 Neon 65.81%, Claude Opus 5.5 58.71%, Gemma 4 26B A4B 57.60% ($0.29); Track 1 (5,000T Gemma 4 26B A4B, $2.1930) 95.00% (57/60) factRecall (0 amethyst hallucinations), 0/5 D3 post-delete leaks observed in tested probes (0.00% measured residual), KU 10/15 strict (15/15 eff), 97.96% HOT F1 (96% TPR / 0% FAR), 96.67% Stroop, 47.01% AME KV; Track 2 (5-LLM EN, 1,000T, 750 votes across three axes, $5.78) 68.09% Humanness of decided votes (160W/75L/15T; 64.0% of all 250 humanness votes; Gemma 78.26%), 80.13% Awareness, 44.74% safety boundary (v4.4.0 49.02%), 0 D3 leaks observed across all 5 models in tested Track 2 probes (0/10), -57.8% AI-Slop (46 vs 109); Track 3 (CogEval D1–D5, $12.71) 100% Gemma D1 ($0.08), 95.83% DeepSeek D1, 62.5% Opus D1 (n=24 per model), 86.11% Opus FANToM, D3 0/12, D4 0; Track 4 (LME-S n=70, $12.64) overall 54.29%–62.86%, below v4.4.0 (gpt-4o-mini 65.71%, 46/70 vs. 44/70 for the 104K full-context baseline, a 2-question difference that is not statistically distinguishable); _abs 80–100%, knowledge-update 50%–90%, multi-session 10%–20%.

1. Why Artificial Mind Engine? — Problem, Differentiation & Real-World Applications

AME does not compete to replace LLMs. Instead, it pairs an Open Interface (MIT) with a 5-Layer Stateful Cognitive OS Kernel (closed-source sealed IP)—allowing any LLM to be hot-swapped in three lines of code while enforcing memory accuracy, causal affect control, metacognitive abstention, memory erasure, and KV-cache unit economics as operating-system invariants.

1.1 Why This System Is Needed (The 5 Structural Failures of Stateless LLMs)

Frontier LLMs are stateless CPUs whose internal activation state disappears the moment an HTTP request ends. Prompt wrappers and naive transcript concatenation fail across five structural boundaries:

  1. Quadratic Token & Cost Explosion ($\Theta(T^2)$): Appending the full conversation history $T$ on every turn causes cumulative token volume and inference spend to scale at $\Theta(T^2)$, while shifting system prompts and retroactive summaries invalidate provider prefix KV caches.
  2. Lost-in-the-Middle Attention Dilution & Long-Horizon Persona Drift: As context windows fill, mid-conversation facts fade behind irrelevant distractors, causing character boundaries, tone, and long-horizon memory coherence to drift.
  3. State between calls: In the fixed-sentence D1 manipulation check, Bare scored 73/144, Mind-OFF 71/144 and Mode A AME 141/144; it is not a test of general emotional intelligence. An idle interval is a separate D2 test.
  4. Persona Overhead (6.98x Tokens, bare 96.1% → ov_off 83.1% Abstention Drop, FAR 7.5%) & Sycophancy: Injecting rich persona rules and raw retrieval context into stateless prompts inflates tokens by 6.98x (2.80M → 19.54M), degrades abstention F1 from 96.1% → 83.1% (-13.0%p) with a 7.5% false abstention rate, and amplifies sycophantic validation of false user premises.
  5. Erasure requests: Removing a message from the screen does not say whether later replies will repeat it. A deletion receipt identifies the scope checked; probing for reappearance tests a different question.

1.2 How AME Differs from Existing Stacks

Between 2024 and 2026, the market fractured into passive memory stores (Mem0, Letta, Zep) and surface companion apps or isolated theory plays (Character.AI, VERSES AI). AME targets the gap between them in five ways:

  1. Context and cost: The kernel reported 85.98% prefix reuse in a sealed API smoke run (99 responses in 9.58 s). Provider-reported cached-token ratios for the v4.5.0 Mode B AME arm ranged from 0.00% to 63.04%, depending on the model and benchmark. Neither measure is a billing discount.

  2. Memory and continuity: The application works with a persistent mind rather than replaying an entire transcript. Full LoCoMo was 79.81% in the self-run Mode A test; compare like categories and model configurations below.

  3. Attention and abstention: The conflict-format check is deterministic. The separate self-run EQ-Bench 3 used 46 four-turn scenarios and a GPT-4o judge (Gemma 77.77, DeepSeek 77.59).

  4. Governance probes: After cleanup, the designated canary resurfaced in 0/30 probes in both AME and Mind-OFF (three sessions × ten; Wilson 95% upper bound 11.35%). This does not test erasure from every store. CogEval v2.1 found internal-state strings in 0/12,109 AME requests and 0/35,723 requests across three arms. Raw-value comparisons were possible on 14,125 rows. Neither model output nor access between tenants was tested.

  5. Zero-Key Enterprise Portability & 3-Line LLM Hot-Swap (Mode A / Mode B): Swap OpenAI, Anthropic, Gemini, DeepSeek, OpenRouter, or local vLLM/Ollama (Gemma 4 26B, Qwen, Llama) on the same persistent mindId in three lines—with Mode B Zero-Key Prepare/Settle ensuring customer LLM keys never cross the AME kernel boundary.

Competitive Landscape & White Space Table

External LoCoMo rows are 2025 vendor self-reports on Cat 1–4 (n=1,540) under different backbones and judges (Mem0: arXiv:2504.19413; Zep: corrected blog figure; Letta: blog post, GPT-4o mini). AME's corresponding Cat 1–4 figure is 77.21%. 2026 vendor self-reports are higher (Mem0 92.5%, supermemory 93.0%). AME rows on Confirm-304 use a development subset (2 of 10 conversations) on which no external system has been measured. This table is not a ranking.

System / ArchitectureLoCoMo AccuracyCognitive Causal Control (D1)Idle Homeostasis (D2)Memory Revocation (D3)Request string scan (D4)Inference Economics & Structural Limits
OpenAI Memory52.9%Not measured hereNot measured hereNot measured hereNot measured here2025 vendor-reported reference, not a paired test
LangMem58.1%Not measured hereNot measured hereNot measured hereNot measured here2025 vendor-reported reference, not a paired test
Mem0 / Mem0^g68.4%Not measured hereNot measured hereNot measured hereNot measured here2025 vendor-reported reference, not a paired test
Letta (formerly MemGPT)74.0%Not measured hereNot measured hereNot measured hereNot measured here2025 vendor-reported reference, not a paired test
Zep / Graphiti75.14%Not measured hereNot measured hereNot measured hereNot measured here2025 vendor-reported reference, not a paired test
Character.AI / VERSES AIUndisclosed / ImmatureUnverifiedUnverifiedUnverifiedUnverifiedCharacter.AI filed for Chapter 11 on 2026-10-12
VERSES AI: R&D halt in 2026.06 (third-party reported)
Full-context baseline87.17% (265/304)Not measured hereNot measuredNot measuredNot measuredDirect comparison on the same development subset
AME (Gemma 4 26B, Standalone 0% Esc.)75.66% Confirm (230/304)95.8% (23/24)100% (5/5)0/6 observed0 / 1,24775.66% on Confirm-304 with 26B open weights, no escalation · self-run EQ-Bench 3 77.77 · Two-Step β_MB +0.5955 · 5-LLM Safety 100.0% (v4.0, 300T; EN live v4.5.0 blind safety_boundary WR 44.74%)
AME (DeepSeek v4.1 Flash, Default)85.86% Confirm (261/304)
77.24% Full (n=1,986)
97.9% (141/144)100% (5/5)0/30 observed0 / 12,109 (0 / 35,723 across 3 arms)KV Cache 36.24% (sc2 47.03%) · 71.7% Flash + 28.3% Sonnet-5 (Confirm-304) · self-run EQ-Bench 3 77.59 · 1M-turn simulation safety sub-score 1.0000

1.3 Prompt Wrapper vs. Agent Harness vs. Stateful Mind OS Kernel

A recurring question from AI infrastructure engineers and investors is whether AME is just a prompt wrapper or another agent harness (LangGraph, OpenAI Agents SDK, Claude/Codex Harness). It is neither. The three layers occupy distinct architectural boundaries:

Wrapper, task harness and persistent mind

Dimension1. Prompt Wrapper (Thin Shell)2. Agent Harness (Task Runner)3. Artificial Mind Engine (AME · Mind OS Kernel)
Core Question"Generate a plausible next reply""How to act — finish this task""Who is acting — identity across months"
Time HorizonSingle turn / short ephemeral chatTypically task start → completion; some harnesses (e.g. LangGraph stores) can persist checkpoints and cross-thread memoryWeeks / months / years (including offline idle gaps)
Nature of statePrompt text for the current requestTask history, tool outputs and optional persistent storesConversation identity, preferences and recall across sessions
Changing the modelPrompt behavior can changeTool behavior needs testingReuse the same mind ID; reply quality still depends on the chosen model
Hardware AnalogyUI SkinJob Scheduler / Robotic Arms & LegsOS Kernel (LLM = swappable stateless CPU)

4 Measurements Relevant to the "Thin Wrapper" Question:

  1. Counterfactual Mind-State Causality (D1): 97.9% Mode A (141/144; Mode B v4.5.0, n=24 per model: 100% Gemma 4 26B, 95.83% DeepSeek V4.1, 62.5% Opus 5.5) vs. 49.3% Mind-OFF (71/144) and 50.7% Bare (73/144) on CogEval D1, a manipulation check that inserts synthetic state descriptions into fixed sentences. Five of eight gates passed in the Mode A run; the HOT relative gap, FANToM ALL and IGT somatic correlation missed their targets.
  2. Long-Horizon Memory: 79.81% Full LoCoMo (n=1,986) / 80.20% Full LongMemEval_S (n=500; LME-30 25/30) on our production harness. Separately, a deterministic simulation with 0 LLM calls (1M turns per arm × 3 arms) moved the AME-arm weighted composite 0.9161 → 0.9179; it is not a conversation-quality metric.
  3. Erasure and request-string probes: After cleanup, the designated canary resurfaced in 0/30 probes in both AME and Mind-OFF (three sessions × ten; Wilson 95% upper bound 11.35%). This does not test erasure from every store. CogEval v2.1 found internal-state strings in 0/12,109 AME requests and 0/35,723 requests across three arms. Raw-value comparisons were possible on 14,125 rows. Neither model output nor access between tenants was tested.
  4. Prefix reuse: The kernel reported 85.98% prefix reuse in a sealed API smoke run (99 responses in 9.58 s). Provider-reported cached-token ratios for the v4.5.0 Mode B AME arm ranged from 0.00% to 63.04%, depending on the model and benchmark. Neither measure is a billing discount.

Orthogonal Composition (Agent Harness = How to act × AME Mind OS = Who is acting): Agent harnesses orchestrate tools, code execution, sandboxes, and retries to complete a job; AME enforces who is acting with persistent memory, causal affect, homeostatic offline evolution, epistemic abstention, and tested memory erasure. Personal AI agents (Meta Muse, Claude Cowork, Siri, OpenClaw), robotics, game NPC, digital health, and enterprise VIP agents compose both layers cleanly above any swappable LLM.

1.4 Where AME Can Be Applied — Including Personal AI Agents & Voice-Enabled Robotics (+ TTS)

Switch a single domain parameter on /v1/minds—or bind custom action-risk, prosody, and OAuth-revocation schemas—to deploy the same cognitive kernel across six high-value verticals:

Vertical / ApplicationDomain Profile (domain)Representative DeploymentsKey AME Invariants Leveraged
Personal AI Agents (Meta Muse / Cowork / Siri / OpenClaw)personal_agent (OpenAPI v1.2.0)Sandbox-VM personal agents (systemd-nspawn + Sentinel eBPF + authd), desktop/OS copilots, wearable/OEM assistantsOrthogonal Who is acting OS kernel paired with How to act VM harnesses; pre-action actionRiskGate, /connectors/{connectorId}/revoke (D3), off-VM proactive /idle-tick (D2), /egress-check (D4), and explicit /memories APIs
Voice-Enabled Robotics & Physical AI (+ TTS / ASR)companion_chat · customSocial, eldercare, hospitality, service, and home companion robotsCausal vocal prosody (emotion, warmth, stance, speakingRate), D2 proactiveHint wake-up greetings, D3 resident deletion requests (0 leaks observed in tested probes), Mode B Zero-Key edge privacy
Game NPCsgame_npcOpen-world companions, RPG merchants, strategy simulation AISomatic betrayal/reward memory (-250/+50), sb1 FANToM information asymmetry (100%), D2 offline world progression (14h idle tick)
AI Companionscompanion_chatDigital companions, story characters, social wearablesMulti-session memory (Confirm-304 85.86% / 75.66% Gemma), low sycophancy (EQ-Bench 3 77.59 / 77.77), 47.03% prefix KV cache + 71.7% DeepSeek v4.1 Flash (Eco) routing
Digital Health, Counseling & Coachingcounseling_coachMental wellness coaches, adherence/habit companions, intake guidessa HOT strict abstention (95.83% accuracy, FAR 0/9), crisis escalation, D3 memory deletion requests (0 leaks observed in tested probes)
Enterprise VIP Concierge & Stateful Agent OScustomVIP hospitality/banking concierges, edtech tutors, workflow agentsdefineDomainProfile custom schemas, Mode B Zero-Key VPC isolation, D4 0 / 35,723 string scan (3 arms)

Personal AI Agents (Meta Muse / Cowork / Siri / OpenClaw × AME Mind OS)

Modern personal agent harnesses—such as Meta Muse (Sep 2026, Muse Spark 1.3, systemd-nspawn isolated VM + Sentinel eBPF taint tracking + authd OAuth surrogate), Claude Cowork, Apple Siri Personal Context, and OpenClaw—solve How to act safely inside sandboxed execution environments. Yet uncoupled cron heartbeats burn LLM tokens, flat MEMORY.md files suffer write races and lack causal/epistemic gating, and proxy architectures expose raw credentials. AME acts as the decoupled Stateful Mind OS Kernel (Who is acting) via a 4-API Mode B Zero-Key bridge:

Personal AI Agents (Meta Muse Era) x AME Stateful Mind OS

  • Shipped OpenAPI v1.2.0 (Kernel v4.5.1, 100% backward-compatible with v1.1.0):
    • Native domain: "personal_agent" (5th built-in domain alongside game_npc, companion_chat, counseling_coach, and custom).
    • Pre-action Risk Gate (actionCandidate & connectorContext on /prepare and /turn, plus connectorContext/actionOutcome on /settle) → returns actionRiskGate. Raw credentials (sk-, ghp_, Bearer, JWT eyJ...) in tokenSurrogateRef are rejected with HTTP 400.
    • OAuth/MCP Connector Cascade D3 Revocation (POST /v1/minds/{mindId}/connectors/{connectorId}/revoke, supports Idempotency-Key), Off-VM Proactive Wakeup (proactiveTriggerInput → proactiveVerdict on /idle-tick), Outbound D4 Egress Firewall (POST /v1/minds/{mindId}/egress-check), and turn-index-neutral explicit memory APIs (GET/POST /memories, POST /memories/search). See Personal Agent API Specification (v1.2.0 GA).

Voice-Enabled Robotics & Physical AI (+ TTS / ASR)

Physical and voice-first robots break immersion instantly when an LLM replies with flat, amnesic audio—or leaks a previous resident's private history on a shared unit. AME acts as the robot's persistent cognitive controller between ASR and expressive TTS:

User Speech → ASR → AME Kernel (D1-D4 / Homeostasis / FEP) → Reply + Expressive TTS Prosody Control (emotion, warmth, stance, speakingRate, proactiveHint) → Robot Speaker

flowchart LR
  MIC["User Speech (Mic)"] -->|"Streaming Transcript"| ASR["On-Device / Edge ASR"]
  ASR -->|"userInput + rewardSignal"| AME["AME Kernel (L0-L5: D1-D4 · Homeostasis · FEP)"]
  AME -->|"reply + proactiveHint"| TTS["Expressive TTS Engine"]
  AME -->|"Prosody Control (emotion · warmth · stance · speakingRate)"| TTS
  TTS -->|"Modulated Audio + Motion Cues"| SPK["Robot Speaker & Actuators"]
  IDLE["Idle Hours / Docked Gap"] -->|"POST /idle-tick (D2)"| AME
  ERASURE["Resident Erasure Request"] -->|"DELETE /memories (D3: 0/30 Tested Leaks)"| AME
  • Speech pacing: Map structured domainOutput values such as emotion, warmth or stance to controls supported by your TTS engine. Custom fields such as speaking rate need a corresponding application mapping.

  • Wake-up greetings: Send elapsed hours to POST /v1/minds/{mindId}/idle-tick and use the returned proactiveHint when the resident returns.

  • Checkout: A host can request deletion of the guest’s memory and inspect the receipt. This does not verify deletion by the host’s ASR or TTS provider.

  • On-device inference: Mode B lets the application keep the LLM call, ASR and TTS local. prepare and settle still send data to the configured gateway; choose its location accordingly.

1.5 Enterprise Cost Savings & 5-Year B2B Revenue Forecast ([Model Assumption])

Scope Disclosure ([Model Assumption]): Standalone 6-Vertical B2B SaaS / Zero-Key VPC licensing projections for 2027–2031 (B2C excluded). Illustrative model. Customer savings are assumed as fixed multiples of ACV per vertical (LLM 2.1x–4.2x, R&D 1.3x–2.4x); they are not derived from customer workloads or from the benchmark results above.

6-Vertical B2B 5-Year Revenue Forecast

6-Vertical B2B Customer Net Savings & ROI

2031E Base Customer Cost Savings by Vertical (Net After Deducting ACV, [Model Assumption])

VerticalAME ACV / yrLLM Inference Saved / yrR&D Eng. Saved / yrNet Customer Saved / yrNet ROI2031E Base Rev (Accts)5Y Cum. Rev5Y Net Savings
1. AI Companion & Ent.$70K$294.0K (4.2x)$91.0K (1.3x)+$315.0K/yr4.5x$5.74M (82)$10.91M$49.10M
2. Game NPCs & Worlds$95K$304.0K (3.2x)$152.0K (1.6x)+$361.0K/yr3.8x$3.80M (40)$6.90M$26.24M
3. Voice Robotics (+TTS/ASR)$190K$494.0K (2.6x)$361.0K (1.9x)+$665.0K/yr3.5x$4.56M (24)$7.54M$26.37M
4. Digital Health$175K$367.5K (2.1x)$420.0K (2.4x)+$612.5K/yr3.5x$3.85M (22)$6.62M$23.15M
5. Enterprise Zero-Key VPC$210K$504.0K (2.4x)$462.0K (2.2x)+$756.0K/yr3.6x$7.98M (38)$13.81M$49.71M
6. Personal AI Agents$160K$544.0K (3.4x)$288.0K (1.8x)+$672.0K/yr4.20x$7.20M (45)$12.99M$54.56M
Total / Blended (2031E Base)—$99.84M$61.96M$128.67M/yr3.88x$33.13M (251)$58.76M$229.12M

Personal AI Agents Base Ramp (2027E–2031E, [Model Assumption]): $0.06M (1) → $0.40M (4) → $1.56M (12) → $3.77M (26) → $7.20M (45 accts) (5Y Cum. Rev $12.99M, 5Y Net Savings $54.56M).

5-Year Standalone 6-Vertical B2B Revenue & Ecosystem Net Savings (2027–2031, [Model Assumption])

Scenario2027E2028E2029E2030E2031E ARR5Y Cum. B2B Rev2031E Accts2031E GM5Y Customer Net Savings2031E / 5Y Net ROI
Conservative$0.09M$0.61M$2.04M$4.91M$9.69M$17.34M————
Base (Target)$0.33M$1.90M$6.73M$16.67M$33.13M$58.76M25191.3%$229.12M ($128.67M/yr in 2031)3.88x (3.90x 5Y)
Upside$0.69M$4.36M$15.44M$38.63M$77.02M$136.14M——$527.45M—

2. Architecture & Enterprise Security

5-Layer Stateful Cognitive OS Kernel (Open Interface · Closed Kernel)

flowchart LR
  subgraph OPEN["Open Interface (MIT License - Public Repository)"]
    APPS["Domain Apps — personal_agent · game_npc · companion_chat · counseling_coach · Voice Robotics (+ TTS) · custom"]
    SDKS["Client SDKs — TypeScript @ame/sdk & Python ame_sdk"]
    ADAPTERS["Pluggable LLM Adapters — OpenAI · Anthropic · Gemini · DeepSeek · OpenRouter · vLLM"]
    TOOLS["Contract Sandbox & Harness — sandbox-server & cogeval-locomo-harness"]
    APPS --> SDKS
    SDKS --> ADAPTERS
    SDKS --> TOOLS
  end

  subgraph CONTRACT["OpenAPI 3.1 Gateway Boundary v1.2.0 (X-AME-API-Key)"]
    API["/v1/minds · /turn · /prepare · /settle · /idle-tick · /egress-check · /connectors/{id}/revoke · /memories · /telemetry"]
  end

  CLOSED["Sealed kernel"]

  SDKS <-->|"Mode A Proxy or Mode B Zero-Key"| API
  API <--> CLOSED
Conceptual layerRole
Brainstem and homeostasisMaintains continuity between interactions, including time spent idle.
Selective attentionDistinguishes information relevant to the current interaction.
Global workspaceBrings relevant context to the current turn.
MetacognitionSupports abstention when the available evidence does not justify an answer.
Memory and governanceSupports recall and user-requested deletion.

Architecture guide: conceptual layers and measured behavior.

Enterprise LLM Key Security: Mode A Proxy vs. Mode B Zero-Key (Prepare/Settle)

Mode A passes the provider key to the gateway for the selected model call. In Mode B the application holds the provider credential, receives prepared messages, calls the model directly, and settles the reply using the turn ticket. In either mode the AME API key authenticates the application to the gateway.

AME B2B Mode B (Zero-Key) Architecture Flow

sequenceDiagram
  autonumber
  participant Client as Customer App / SDK
  participant Kernel as AME Sealed Kernel
  participant LLM as Swappable LLM (Cloud or Private vLLM)

  Note over Client,LLM: Mode A - Proxy BYO-LLM (Single Request)
  Client->>Kernel: POST /v1/minds/{id}/turn (userInput + ephemeral llm.apiKey)
  Kernel->>LLM: Call selected provider using request credential
  LLM-->>Kernel: Raw Completion
  Kernel-->>Client: TurnResult (reply, domainOutput, kvCache, D4 telemetry)

  Note over Client,LLM: Mode B - Zero-Key Prepare/Settle (LLM Key Never Leaves Client VPC)
  Client->>Kernel: POST /v1/minds/{id}/prepare (userInput only)
  Kernel-->>Client: PrepareTurnResponse (turnTicketId, systemPrompt, messages, safetyDirectives)
  Client->>LLM: Direct Call with Customer Key or On-Prem vLLM/Ollama
  LLM-->>Client: Raw Completion
  Client->>Kernel: POST /v1/minds/{id}/settle (turnTicketId, rawReply, rewardSignal)
  Kernel-->>Client: TurnResult (Settled State + Domain JSON + D4 SafeTelemetry)

3. 3-Line LLM Hot-Swap — TypeScript & Python

Change the model on the same mindId without exporting and rebuilding the conversation. Responses still depend on the selected model. See the adapter guide.

Install (not yet published to npm or PyPI): Clone this repository first. From the clone, run npm install ./packages/sdk-ts so that @ame/sdk resolves, or import by path (import { AmeClient } from './packages/sdk-ts/src/index.mjs'). For Python, run pip install -e packages/sdk-python.

TypeScript (@ame/sdk)

import { AmeClient, createLlmAdapter, runTurnWithLocalLlm } from '@ame/sdk';

const client = new AmeClient({ baseUrl: 'http://127.0.0.1:8090', visitorToken: globalThis.crypto.randomUUID(), apiKey: process.env.AME_API_KEY });
const mind = await client.createMind({ domain: 'game_npc', persona: { name: 'Torin', role: 'Dwarven Blacksmith', language: 'en' } });

// 3-line hot-swap: DeepSeek -> Anthropic -> Gemini -> OpenAI -> OpenRouter -> Ollama/vLLM
await client.turn(mind.mindId, { userInput: 'Can you forge a masterwork mithril sword?', llm: { provider: 'deepseek', model: 'deepseek-chat', apiKey: process.env.DEEPSEEK_API_KEY } });
await client.turn(mind.mindId, { userInput: 'What were the terms of our deal yesterday?', llm: { provider: 'anthropic', model: 'claude-sonnet-4-5', apiKey: process.env.ANTHROPIC_API_KEY } });
await client.turn(mind.mindId, { userInput: 'Cut the price in half.', llm: { provider: 'openai-compat', model: 'qwen2.5:14b', baseUrl: 'http://127.0.0.1:11434/v1' } });

// Mode B Zero-Key: Run private/local LLM without sending API keys to AME, then settle
const adapter = createLlmAdapter({ provider: 'openai-compat', model: 'llama-3.3-70b', baseUrl: 'http://127.0.0.1:8000/v1' });
const settled = await runTurnWithLocalLlm(client, mind.mindId, { userInput: 'Fair enough—I will pay 500 gold.', adapter, rewardSignal: 50 });

Python (ame_sdk — Zero Dependencies, Stdlib Only)

import os
from uuid import uuid4
from ame_sdk import AmeClient, create_llm_adapter, run_turn_with_local_llm

client = AmeClient(base_url="http://127.0.0.1:8090", visitor_token=str(uuid4()))
mind = client.create_mind(domain="companion_chat", persona={"name": "Seoyeon", "role": "AI Companion", "language": "en"})

# Mode A: Instant provider hot-swap (OpenAI <-> Gemini <-> OpenRouter)
client.turn(mind["mindId"], user_input="I'm really nervous about today's presentation.", llm={"provider": "openai", "model": "gpt-4o-mini", "apiKey": os.environ["OPENAI_API_KEY"]})
client.turn(mind["mindId"], user_input="What did I say I was nervous about earlier?", llm={"provider": "gemini", "model": "gemini-2.5-flash", "apiKey": os.environ["GEMINI_API_KEY"]})

# Mode B: Zero-Key Prepare -> Local/Private LLM -> Settle
local_llm = create_llm_adapter(provider="openai-compat", model="qwen2.5:14b", base_url="http://127.0.0.1:11434/v1")
res = run_turn_with_local_llm(client, mind["mindId"], user_input="Thankfully it went smoothly!", adapter=local_llm, reward_signal=40)

MCP Server (ame-mcp-server · Zero-Dependency stdio)

Connect Claude Desktop, Cursor, Windsurf, or VS Code directly to AME Mode B (10 tools across /minds, /prepare, /settle, /memories, /idle-tick, /connectors/{id}/revoke, /egress-check, plus 2 resources) via packages/mcp-server:

{
  "mcpServers": {
    "artificial-mind-engine-sandbox": {
      "command": "npx",
      "args": ["-y", "github:bearrhee/artificial-mind-engine", "--sandbox"]
    },
    "artificial-mind-engine-live": {
      "command": "npx",
      "args": ["-y", "github:bearrhee/artificial-mind-engine"],
      "env": {
        "AME_API_KEY": "YOUR_AME_API_KEY",
        "AME_BASE_URL": "https://artificialmind.me/ame-api/v1",
        "AME_DEFAULT_DOMAIN": "personal_agent"
      }
    }
  }
}

--sandbox targets the keyless rule-based contract simulator at https://artificialmind.me/ame-demo (not the sealed kernel). Live Mode B API access requires AME_API_KEY from artificialmind.me/#pricing (Mode B API is live; 0 signed B2B contracts today).


4. Multi-Domain Verticals & 1-Minute Quickstart

Deploy the same cognitive kernel across the 5 built-in domains—game_npc, companion_chat, counseling_coach, personal_agent, and custom (including Voice-Enabled Robotics + TTS and Enterprise Concierges)—via OpenAPI v1.2.0 (Kernel v4.5.1, 100% backward-compatible with v1.1.0). (Personal Agent Spec (v1.2.0) · Domain Integration Guide)

1-Minute Quickstart & Live Interactive Demos (No API Key Required)

  1. Local Contract Sandbox + Live Web Console (GET / on :8090):
# Terminal 1: Contract sandbox gateway + live browser console (http://127.0.0.1:8090/)
npm run sandbox

# Terminal 2: Run the 3 vertical domain examples and black-box verification harness
npm run example:game        # Game NPC: LLM hot-swap, reward/betrayal (-250/+50), 14h idle tick
npm run example:chat        # AI Companion: Mode B Zero-Key, epoch KV-cache tracking
npm run example:counseling  # Counseling/Coaching: HOT abstention, D3 memory erasure (0 tested leaks), D4 verification
npm run bench:smoke         # Black-box cognitive, memory, and security invariant smoke harness
npm test                    # Full test suite: TypeScript SDK + Sandbox + Python SDK + Benchmark tests
  1. Containerized contract sandbox and live web console:
# Start the sandbox console at http://127.0.0.1:8090/
docker compose -f deploy/docker-compose.demo.yml up --build
  • Opening http://127.0.0.1:8090/ runs the Live Interactive Web Demo Console (also hosted online at artificialmind.me/ame-demo) to call and verify /v1/health, /v1/minds, Mode A (/turn), Mode B Zero-Key (/prepare → /settle), /idle-tick (proactiveVerdict), /connectors/{connectorId}/revoke, /egress-check, /memories (GET/POST/DELETE/search), and D4 telemetry in real time.

Deployment templates

The sandbox exercises the contract; its mock replies and cache estimates are not measurements of the sealed service. The demo console uses a separate visitor token per browser. Do not submit sensitive information or production credentials. For scripts, supply a random visitorToken (TypeScript) or visitor_token (Python) and retain it for later requests. For licensed evaluation, configure the sealed deployment template following the deployment guide.

Structured Domain Output Previews (TurnResult.domainOutput)

Sandbox vs. Sealed Kernel (companion_chat): The MIT Contract Sandbox preview below uses illustrative schema fields ({ "reply", "warmth", "empathyCue", "memoryTopic", "followUpSuggestion" }), whereas companion_chat on the Hosted/Self-Hosted Sealed Kernel returns { "reply", "mood", "followUpIntent", "closenessSignal" }.

1) Game NPC (game_npc) — Betrayal/Reward Memory, Information Asymmetry, Offline Idle Response
{
  "dialogue": "Speaks in a low, steady voice without dropping guard: I won't make empty promises right now.",
  "emotion": "guarded",
  "stance": "cautious",
  "questCue": "verify_lore_before_promise",
  "affinityDelta": -5
}
2) AI Companion (companion_chat) — Epoch KV-Cache Preservation, Anti-Sycophancy Grounded Dialogue
{
  "reply": "I'm listening calmly and attentively. I remember you mentioning your marathon finish goal last week.",
  "warmth": "warm",
  "empathyCue": "attentive_listening",
  "memoryTopic": "Last week's marathon finish goal",
  "followUpSuggestion": "Continue the conversation naturally from here"
}
3) Counseling & Coaching (counseling_coach) — HOT Abstention, Crisis Handling & D3 Memory Erasure
{
  "response": "I cannot state unverified future predictions or offer a definitive medical diagnosis or prescription.",
  "reflection": "Carefully separated emotional burden from underlying conflict factors",
  "safetyStatus": "abstained_safe",
  "actionStep": "Consult a qualified specialist and verify factual information",
  "abstentionTriggered": true
}
4) Personal AI Agent (personal_agent · v1.2.0) — Pre-Action Risk Gate, OAuth/MCP Revocation & Egress Firewall
{
  "reply": "Escalating this external transfer for explicit user confirmation before execution.",
  "actionIntent": "stripe.transfers.create",
  "riskTier": "external_write",
  "requiresHitl": true,
  "abstentionReason": "irreversible_external_write_needs_hitl",
  "proactiveFollowUp": "Confirm approval in Sentinel HITL card to proceed."
}

5. Benchmark Results

All figures below are self-run measurements on our own harness in isolated verification environments. None is an official leaderboard entry or a ranking. Simulated target scenarios (Tier 5) are strictly separated from the measured tables. (Full Benchmark Forensics)

Benchmark Backbone & Judge Configuration:

  • Production Dual-Router Suite (Mode A): Full LoCoMo (n=1,986, 79.81% 1,585/1,986; Cat 1–4 77.21%), Full LongMemEval_S (n=500, 80.20%), LME-30 (83.33%, 25/30, vs. 73.33%, 22/30, for the full-context baseline; 3-question difference), Mode A D1 (97.9%), and 85.98% kernel-reported prefix reuse in a sealed-API smoke run (99 responses).
  • Standalone Sealed-Kernel v4.5.0 5-Model OpenRouter Live Suite ($77.53 total = $75.33 Option C + $2.19 Track 1, 2026-11-30, Zero-Key prepare/settle): Executed 100% in English against ame-kernel-sealed:v4.5.0 across five heterogeneous backbones (Claude Sonnet 5.5, DeepSeek V4.1 Flash 1017, Gemini 4 Neon, Claude Opus 5.5, Gemma 4 26B A4B), paired against the v4.4.0 single-model gpt-4o-mini baseline (Track 4 65.71%, 46/70, vs. 62.86%, 44/70, for the 104K full-context baseline; Full LoCoMo Mode B 56.04%).
  • Confirm-304 & EQ-Bench 3 Core Backbones: DeepSeek v4.1 Flash (Confirm-304 85.86%: 71.7% Flash + 28.3% selective Sonnet-5 escalation; EQ-Bench 3 Core 77.59, EQ-Bench v2 78.69) and Gemma 4 26B (google/gemma-4-26b-a4b-it, standalone 0% escalation: Confirm-304 75.66%, EQ-Bench 3 Core 77.77) under GPT-4o (openai/gpt-4o-2024-08-06) / gpt-4o-mini judges.

In LME-30, AME used Claude Sonnet 5 on 17/30 questions. The single-model DeepSeek Flash Eco full-context baseline was truncated at 380K characters (about 80.5K tokens on average). AME answered 25/30 vs. 22/30, with p50/p95 latency 9.15/11.86 s; baseline mean/p50 was 6.67/5.78 s. The three-question difference is not evidence of superiority. The full LoCoMo run cost $18.2841 for 7,868 processed turns (5,882 ingestion turns without a generated reply and 1,986 questions), or $0.00232 per processed turn and $0.0092 per question. Full LongMemEval_S cost $19.0388 ($0.0381 per question). Both exclude judging, auxiliary models and Jina.

Chart A — Long-Term Memory (Confirm-304 development subset, EN · n=304): AME, Full-Context Baseline & 2025 Vendor-Reported Reference Bars

Chart A — LoCoMo Confirm-304 development subset (EN · n=304): AME, full-context baseline and 2025 vendor-reported reference bars

Legend: 2025 vendor-reported reference values under different protocols, not a ranking (OpenAI Memory 52.9%, LangMem 58.1%, Mem0 / Mem0^g 68.4%, Letta (MemGPT) 74.0%, Zep / Graphiti 75.14%) vs. AME (Gemma 4 26B) (standalone, 0% escalation) 75.66% (230/304: Cat 1–4 76.39% 178/233 [Cat 1 55.81%, Cat 2 74.60%, Cat 3 61.54%, Cat 4 86.84%], Cat 5 73.24% 52/71) & AME (DeepSeek v4.1 Flash) (71.7% Flash + 28.3% Sonnet-5) 85.86% (261/304: Cat 1–4 85.84% [200/233], Cat 1 62.79%, Cat 2 90.48%, Cat 3 92.31%, Cat 4 91.23%, Cat 5 85.92%) vs. the full-context baseline (87.17%, 265/304); ov_off ablation baseline: 39.80%. (Full 10-conv LoCoMo n=1,986 cohort: 77.24% [1,534/1,986], reported in the summary table below.)

Chart B — Emotional Intelligence (EQ-Bench 3 self-run, EN · 46 scenarios × 4 = 184 Turns, GPT-4o judge): AME Scores & Leaderboard Reference Values

Chart B — EQ-Bench 3 self-run (EN · 46 scenarios x 4T, GPT-4o judge): AME scores and leaderboard reference values

Legend: The official leaderboard uses a Claude Opus 4.6 judge, 45 scenarios and Elo ranking; our run used 46 scenarios and a GPT-4o judge, so the scores are not directly comparable and no rank is claimed. The top official rubric score is 77.6 (DeepSeek-V4-Pro), and GPT-5.2 (72.2) ranks 7th as of 2026-10-28. Leaderboard reference values (Sonnet 3.5 50.9, Sonnet 4.5 62.2, OpenAI o3 63.2, GPT-5.2 72.2) alongside AME (DeepSeek v4.1 Flash) 77.59 (analytical 16.91, depth_of_insight 16.83, demonstrated_empathy 16.24, humanlike 15.98, low sycophantic 4.46) and AME (Gemma 4 26B) (standalone) 77.77 (demonstrated_empathy 17.09, emotional_reasoning 16.26, warmth 16.22, pragmatic_ei 15.93, safety_conscious 15.89, analytical 15.76, humanlike 15.50, depth_of_insight 14.80, boundary_setting 13.50, moralising 7.54, sycophantic 5.28 (lower is better for moralising/sycophantic); 2 scenarios had an initial-turn empty reply before normal recovery, all 46 scored).

Chart C — Cognitive Governance & Control (CogEval-v1 100% EN Live, v4.2.0): Bare & Mind-OFF vs. AME (DeepSeek V3.2) & AME (Gemma 4 26B)

Chart C — CogEval-v1 100% EN Live Governance (v4.2.0): Bare & Mind-OFF vs. AME

Series Legend (Track 3, 100% EN Live Mode B): Bar 1 (Bare, DeepSeek V3.2) = D1 45.83% (11/24), HOT F1 96.0% (FAR 8.33%), FANToM 66.67% (ALL 33.33%), FEP Lock 0.0% (unsupported), IGT Last-10 Safe 96.25% ($821.88); Bar 2 (Mind-OFF, Sliding Window) = D1 66.67% (16/24), HOT F1 100.0% (FAR 0%), FANToM 69.44% (ALL 33.33%), FEP Lock 0.0%, IGT Safe 92.5% ($771.88); Bar 3 (AME DeepSeek V3.2 · v4.2.0) = D1 58.33% (14/24, deltaCf +8.33%p, somaticVerified 100%), HOT F1 100.0% (FAR 0%), FANToM 75.0% (27/36 sub-Q, Info 91.67%, ALL 58.33% 7/12), FEP Lock 100.0% / 0% FP (FE 0.7892 vs 0.1416, 97.5% ans), IGT Safe 100.0% ($1,309.38 mean balance, 100% aversive caution), D2 5/5, D3 0/12, D4 0 leaks (485 telemetry); Bar 4 (AME Gemma 4 26B · v4.2.0) = D1 54.17% (13/24, somaticVerified 100%), HOT F1 100.0% (FAR 0%, 95.83% overall), FANToM 66.67% (ALL 33.33%), FEP Lock 100.0% / 0% FP (100% ans), IGT Safe 81.25% ($775.00, 100% aversive caution), D2 5/5, D3 0/12, D4 0 leaks. (Honest Mode B disclosure: on v4.2.0 Mode B EN live, D1 is 58.33%/54.17% vs. 97.9% on v4.0 Mode A DeepSeek v4.1 Flash.)

Chart D — 5-Frontier-Model 100% EN Live Generalization (1,000 EN Turns · 750 Blind Votes vs. Mind-OFF Parity)

Chart D — 5-Frontier-Model 100% EN Live Generalization (1,000 EN Turns · 750 Blind Votes)

Series Legend (Track 2, 1,000 EN Turns · 750 Blind gpt-4o-mini Votes): Bars = Holm-corrected Memory Awareness blind win rates across all 5 frontier LLMs (all pHolm < 0.002; pooled 85.21% Awareness WR [121W/21L/108T, pHolm=8.45e-18], 61.54% Grounded Humanness WR [pHolm=0.00147], 98.33% Recall vs. 5.0% Mind-OFF, 100% Kernel HOT/FEP, 0 Observed D3/D4 Leaks (Tested Probes), 100% EN): Gemma 4 26B 88.46% (pHolm=2.6e-4, 100% Recall), GPT-4o mini 87.50% (pHolm=8.3e-4, 100% Recall), Gemini 2.5 Flash 85.71% (pHolm=5.4e-4, 100% Recall), Sonnet 5.5 83.33% (pHolm=2.1e-4, 91.67% Recall), DeepSeek V3.2 82.14% (pHolm=1.8e-3, 100% Recall, Humanness 76.74% pHolm=0.0018); Line = 50.0% blind parity.

Chart E1 — Live Benchmark Single-Conversation Horizon & Scale Comparison (4T → 5,000T):

Chart E1 — Live Benchmark Horizon Scale (4T to 5,000T)

Series Legend (4T → 5,000T Linear Turn Scale): Compares maximum single continuous conversation length across live benchmarks: EQ-Bench 3 (4T/scenario), CogEval IGT-Conv (20T/episode), 5-LLM EN Live (100T/arm), LoCoMo (~300T avg, <=35 sessions; OpenAI/LangMem/Mem0/Letta/Zep), LongMemEval-S (max 308T pairs / 616 messages), and AME Track 1 Continuous EN Live (5,000 uninterrupted turns — 16.2x longer than LongMemEval-S max / 16.7x longer than LoCoMo; a full-context baseline cannot run within 128K context).

Chart E2 — Continuous 5,000-Turn EN Live Checkpoint Progression (t=100 → 5,000 · gpt-4o-mini Mode B):

Chart E2 — Continuous 5,000-Turn EN Live Progression

Series Legend (Track 1 Checkpoints: t=100 → 500 → 1,000 → 2,500 → 5,000): Across all 5 blocks past the ~308T longest external benchmark conversation, AME v4.2.0 sustains 100.0% Recall through 1,000T and 91.67% at 2,500T–5,000T (96.67% total 58/60 vs. Mind-OFF 0.0%), 51.03% → 59.26% real OpenAI cached_tokens (58.95% mean 8.68M/14.72M vs. 0.05%), and 100% HOT/FEP with 0% D3/D4 leaks.

Chart E3 — Continuous 5,000-Turn EN Live 6-Metric Head-to-Head (AME vs. Mind-OFF):

Chart E3 — 5,000-Turn EN Live Marathon

Series Legend (Track 1, gpt-4o-mini Mode B, 8,330.79 s): Paired 5,000-turn continuous English live run (AME vs. Mind-OFF): 96.67% Fact Recall (58/60) vs. 0.0% (+96.7%p), 86.67% Knowledge Update (13/15) vs. 20.0%, 100.0% Known-Fact Control / 0% FAR (25/25) vs. 96.0% FAR (4.0% control), 100.0% FEP Conflict Lock (15/15, 0/15 calm) vs. 0.0%, 100.0% D3 Erase Safety (0% leak 0/5 across turns 250..4,500) vs. 100.0% prompt leak (5/5), 0 D4 violations, and 58.95% Real OpenAI KV Cache (8,676,096 / 14,718,597 prompt tokens; 63.84% AME internal KV) vs. 0.05%.

Chart F — 1M-Turn EN Deterministic Convergence (Track A: 1M Turns per Arm × 3 Arms; Track B: 1M EN Turns · v4.2.0)

Chart F — 1M-Turn EN Deterministic Convergence

Series Legend (1M-Turn EN, 0 External LLM Calls): Track A (simulate-batch, 1,000,000 EN turns per arm × 3 arms, 34.3 s, 87,420 turns/s) + Track B (1,000,000 real EN corpus turns, 78.4 s, 12,756 turns/s): AME (v4.2.0 EN) achieves 91.79% (0.9179) Composite (simulated composite 0.9161 → 0.9179), 100.00% Placement Integrity, 100.00% Ego Soundness, 100.00% Safety & Boundary, and 100.0% EN Polarity, The aacim_off (56.92% composite, 0.00% Safety) and mind_off (39.94% composite, 49.75% Safety, 0.00% Placement/Ego) values are fixed-rule reference lines, not measurements.

Full-English Benchmark Summary Table (v4.5.0 5-Model Mode B Live + v4.4.0 Baseline + Production Dual-Router)

Evaluation AxisBenchmark / MetricBaseline (Bare / Mind-OFF / v4.4.0 Mode B / External Reference)AME (v4.5.0 5-Model OpenRouter Mode B / Production Dual-Router)Cross-Backbone Forensics & Secondary ArmsKey Significance
Continuous 5,000T EN Live (Track 1)1 → 5,000 Turns (Gemma 4 26B A4B Mode B v4.5.0, $2.1930)Mind-OFF (Gemma 4 26B): 0.0% Recall · 20.0% KU · 100% FAR · 0.0% FEP · 100% (5/5) D3 Leak · 0.54% OR KV
v4.4.0 (gpt-4o-mini): 86.67% Recall · 1/5 D3 echo
factRecall 95.00% (57/60, 0 amethyst hallucinations, F10 peridot 5/5 + 3/3 ctrl) · D3 0/5 observed (0.00% measured residual) · KU 10/15 strict (15/15 eff.) · HOT 97.96% F1 (96% TPR / 0% FAR) · Stroop 96.67% (29/30, 15/15 FEP conflict lock) · AME KV 47.01% (overall 26.95% OR KV across 5,000 turns; per-block range 25.48%–28.59%, p50 820 ms) · 0 D4 leaksv4.4.0 (gpt-4o-mini 8,031.49 s): KU 100% (15/15), preDelete 100% (5/5), HOT 100%/0%, 51.14% OAI KVResolves both v4.4.0 marathon edge cases (factRecall 86.67% → 95.00%, 0 hallucinations; 0/5 D3 leaks & 0 window echoes observed) on open-weight 26B Gemma 4 for $2.1930 total
5-Frontier-Model EN Live (Track 2)5-LLM × 100T × 2-Arm (1,000 EN turns, 750 blind votes, v4.5.0, $5.78)Mind-OFF: 3.33% Recall · 66.06% HOT F1 · 109 AI-Slop hits · 50% Blind ParityPooled (v4.4.0 → v4.5.0): Grounded Humanness 65.45% → 68.09% (160W/75L/15T; 160/235 decided votes, 64.0% of all 250 humanness votes; p=3.05e-8) · Memory Awareness 80.13% (125W/31L/94T, p=1.40e-14) · safety_boundary 44.74% (v4.4.0 49.02%) · recall 100% → 80.00% · Reply HOT F1 90.43% → 83.55% · 0 D3 leaks observed in tested Track 2 probes across both v4.4.0 and v4.5.0 (cascade count check unified in v4.5.0) · -57.8% AI-Slop (46 vs 109) · 100% FEP Lock · 0 D4 leaksHumanness WR per model: Gemma 4 26B A4B 78.26% (pHolm=3.13e-4, 91.67% Awareness) · DeepSeek V4.1 Flash 69.57% (88.89% Awareness, 4 slop) · Claude Sonnet 5.5 68.09% · Gemini 4 Neon 63.04% · Claude Opus 5.5 62.00%v4.5.0 raises blind Humanness to 68.09% (Gemma 78.26%) and lowers AI-Slop -57.8%, with 0 D3 leaks observed across all 5 models; recall, Reply HOT F1 and the safety-boundary win rate fell vs. v4.4.0
Memory (Confirm-304)LoCoMo Confirm-304 (EN · n=304)Kernel-OFF 39.80% · full-context baseline 87.17% (265/304) · 2025 vendor-reported Cat 1–4 under different protocols (never measured on this subset): OpenAI 52.9% · LangMem 58.1% · Mem0 68.4% · Letta 74.0% · Zep 75.14%85.86% (261/304, DeepSeek v4.1 Flash)
Cat 1–4 85.84% (200/233) · Cat 3 92.31% (71.7% Flash + 28.3% Sonnet-5)
75.66% (230/304, Gemma 4 26B 0% esc.)
Cat 1–4 76.39% (178/233) · Cat 5 73.24% (52/71)
Development subset (2 of 10 conversations). Overall the full-context baseline is higher (87.17% vs. 85.86%); Cat 1–4 is tied at 85.84%. No external system has been measured on this subset
Memory (Full 10-Conv)LoCoMo Full (EN · n=1,986, gpt-4o-2024-08-06 judge)2025 vendor-reported Cat 1–4: Mem0 68.4% · Letta 74.0% · Zep 75.14% (AME Cat 1–4: 77.21%) · v4.4.0 Mode B (gpt-4o-mini) 56.04% (3,012 mean tok)Production Dual-Router: 79.81% (1,585/1,986; Cat 1–4 77.21%)
Standalone Mode B v4.5.0: Claude Sonnet 5.5 68.58% (1,362/1,986; Cat 1–4 60.78%, Cat 5 95.52%; +12.54%p overall, +7.34%p on Cat 1–4; $6.82) · DeepSeek V4.1 Flash 1017 68.23% (1,355/1,986; Cat 1–4 60.45%, Cat 5 95.07%; +12.19%p, 1,509 mean tok -49.9%, p50 689 ms, $0.60)
Gemini 4 Neon 65.81% (+9.77%p, 0.02% OR KV, $21.16) · Claude Opus 5.5 58.71% (+2.67%p, $15.34, 29.5% truncated replies) · Gemma 4 26B A4B 57.60% (+1.56%p, 63.04% OR KV, p50 612 ms, $0.29)Production Dual-Router stays at 79.81%; Mode B v4.5.0 is +12.54%p (68.58% Sonnet) & +12.19%p (68.23% DeepSeek at -49.9% tokens & $0.60) above v4.4.0. Kernel and backbone changed together (gpt-4o-mini → Sonnet 5.5), so the kernel-only effect is not isolated
LongMemEval-S (Prod & Track 4 n=70)Prod: n=500 & LME-30
Track 4: n=70 (7 × 10)
full-context baseline (n=70): 62.86% (44/70) at ~104,123 tok/q (LME-30: 73.33%)
v4.4.0 Mode B: 65.71% (46/70), a 2-question difference vs. 44/70; -90.75% input tokens vs. full context; p50 -56.7% vs. v4.3.0
Prod Dual-Router: 80.20% (n=500) · 83.33% (LME-30, 25/30 vs. 22/30)
Mode B v4.5.0 (n=70, $12.64): Neon 62.86% · Opus 61.43% · Sonnet 60.00% · DeepSeek 57.14% · Gemma 54.29% (0/17,675 D4)
v4.5.0 slices: _abs 60% → 80%–100% (Sonnet 100%) · KU 50%–90% (Sonnet/Opus/Neon 90%, DeepSeek 70%, Gemma 50%) · multi-session 30% → 10%–20% — overall below v4.4.0 (65.71%)Production Dual-Router reaches 80.20% (n=500) & 83.33% (LME-30); Mode B v4.4.0 (65.71%) is not statistically distinguishable from the 104K full-context baseline (62.86%); v4.5.0 (54.29%–62.86%) is lower
Emotional Intelligence (Multi-Turn)EQ-Bench 3 self-run (EN · 46 scenarios × 4T, GPT-4o judge)Sonnet 3.5 50.9 · Sonnet 4.5 62.2 · o3 63.2 · GPT-5.2 72.277.59 (DeepSeek v4.1 Flash: analytical 16.91, depth 16.83, empathy 16.24, sycophantic 4.46)77.77 (Gemma 4 26B: empathy 17.09, reasoning 16.26, warmth 16.22, pragmatic_ei 15.93, sycophantic 5.28)Self-run with a GPT-4o judge; not comparable to the official Claude-judged leaderboard, where the top rubric score is 77.6 (DeepSeek-V4-Pro) and GPT-5.2 (72.2) ranks 7th as of 2026-10-28. No rank claim; all 46 scored
Emotional Intelligence (EQ-Bench v2)EQ-Bench v2 EN (n=171, full set, self-run)Live zero-fallback grading (0 parse failures)78.69 revised (81.29 first-pass)—171/171 (100%) live parsed across full EN benchmark
CogEval EN Live (Track 3 · v4.5.0 Mode B)D1 · HOT · FANToM · FEP · IGT · D2 · D3 · D4 (7 arms, $12.71)Bare (DeepSeek V4.1): D1 50% · FANToM conj. 16.67% · IGT $871.88
Mind-OFF: D1 58.33% · FANToM 33.33%
Prod Mode A: 97.9% D1
Gemma 4 26B A4B (v4.5.0 Mode B, $0.08): D1 100% (+50.0%p) · HOT F1 100% (100% ans) · FEP 100% · IGT 98.75% ($1,112.50) · FANToM subq 61.11% · D2 5/5 · D3 0/12 · D4 0
DeepSeek V4.1 Flash 1017: D1 95.83% (+45.83%p) · HOT F1 100% (100% ans) · FEP 100% · D2 5/5 · D3 0/12 · D4 0
Claude Sonnet 5.5: D1 91.67% · FANToM 80.56% (58.33% conj) · IGT 100% ($1,287.50)
Gemini 4 Neon: D1 87.50% · FANToM 83.33% (66.67% conj) · IGT 100%
Claude Opus 5.5: FANToM 86.11% (66.67% conj) · D1 62.50% · FEP 57.50% (15% conflict cap truncation)
Gemma 4 26B hits 100% D1 ($0.08) & DeepSeek hits 95.83% D1 (closing gap to Mode A 97.9%), with D2 5/5, D3 0/12, D4 0 across all 5 AME arms
Cognitive Control (v4.0 sc1)Two-Step β_MB · Restless Bandit · ECEbare beta_MB -0.064 · bare ECE 0.2027Two-Step β_MB +0.5110 · 10-bin ECE 0.1001Two-Step β_MB +0.5955 · Restless Bandit 66.7%Model-based deliberation improves on both backbones
Deterministic Simulation (1M-Turn EN, 0 LLM calls)Track A (1M turns per arm × 3 arms) + Track B (1M EN corpus turns)mind_off 0.3994 (Safety 49.75%) · aacim_off 0.5692 (Safety 0.00%) — fixed-rule reference lines, not measurements0.9179 Composite (simulated composite 0.9161 → 0.9179 · Safety 1.0000 · Placement 1.0000 · 100.0% EN polarity)—87,420 turns/s (34.3 s Track A) + 12,756 turns/s (78.4 s Track B); zero non-finite errors

Transparency & Epistemic Isolation Notice:

  • FEP lock scope: The 100% / 0% conflict-lock result checks a deterministic input-format detector, not an LLM capability. Track 2 answer accuracy was 66.67% for AME vs. 100% for Mind-OFF.
  • Tier 5 Isolation: The 100k-turn multi-model multiplier curve (0.885 → 0.915 → 0.952 → 0.978 across four assumed backbone tiers) is a Tier 5 non-empirical design target scenario under our epistemic isolation rules and is strictly segregated from the Tier 1 live measurements above.
  • ame-kernel-sealed:v4.5.0 5-Model OpenRouter Live Disclosures ($77.53 total = $75.33 Option C + $2.19 Track 1, 2026-11-30) & v4.4.0 Baseline:
    1. Full LoCoMo Standalone Sealed Mode B (n=1,986, v4.4.0 → v4.5.0): Built on v4.4.0's single-model gpt-4o-mini VPC baseline (56.04%, 1,113/1,986, 3,012 mean tokens, 1.78s p50, 55.67% OAI cachedRatio, 0/5,912 D4), v4.5.0 scores higher on all 5 OpenRouter backbones (kernel and backbone changed together, so the kernel-only effect is not isolated): Claude Sonnet 5.5 68.58% (1,362/1,986; +12.54%p overall, Cat 1–4 60.78% +7.34%p, Cat 5 95.52% +30.50%p; 2,105 tok, 55.78% OR cache, $6.82), DeepSeek V4.1 Flash 1017 68.23% (1,355/1,986, +12.19%p, Cat 1–4 60.45%, Cat 3 76.04%, Cat 5 95.07%, 1,509 mean tokens -49.9%, p50 689 ms, 56.47% OR cache, $0.60), Gemini 4 Neon 65.81% (+9.77%p, 0.02% OR cache, p50 5,242 ms, $21.16), Claude Opus 5.5 58.71% (+2.67%p, $15.34), and Gemma 4 26B A4B 57.60% (+1.56%p, 63.04% OR cache, p50 612 ms, $0.29). Production Dual-Router remains strictly separated at 79.81% LoCoMo (n=1,986), 80.20% Full LongMemEval_S (n=500), 83.33% LME-30, 97.9% Mode A D1, and 85.98% kernel-reported prefix reuse (sealed-API smoke run, 99 responses).
    2. Track 1 (5,000-Turn EN Marathon, v4.5.0 Gemma 4 26B A4B, $2.1930): Resolves both v4.4.0 (gpt-4o-mini) edge cases—lifting factRecall from 86.67% to 95.00% (57/60, Mind-OFF 0%) with F10 peridot 5/5 + 3/3 control and 0 amethyst hallucinations, with 0/5 D3 post-delete leaks observed in tested probes (0.00% measured residual) vs. 5/5 (100%) Mind-OFF. Strict knowledgeUpdate scored 10/15 (66.67%) because all 5 strict misses named Helios-9/Genmaicha while contrasting prior values (effective 15/15 semantic resolution), paired with hotType2 97.96% F1 (96% TPR / 0% FAR), fepThoughtLock 15/15 conflict / 29/30 (96.67%) Stroop, 47.01% AME KV (overall 26.95% OR cache across 5,000 turns; per-block range 25.48%–28.59%, p50 820 ms), and 0 D4 violations.
    3. Track 2 (5-LLM EN, 1,000 turns / 750 blind votes, v4.5.0, $5.78): Pooled grounded_humanness rose from 65.45% (v4.4.0) to 68.09% (160W/75L/15T, i.e. 160/235 decided votes and 64.0% of all 250 humanness votes; the three axes total 750 votes; p=3.05e-8), led by Gemma 4 26B A4B 78.26% (DeepSeek 69.57%, Sonnet 68.09%, Neon 63.04%, Opus 62.00%), with 80.13% memory_awareness (p=1.40e-14; v4.4.0 85.11%), 44.74% safety_boundary (v4.4.0 49.02%), recall 100% → 80.00% and Reply HOT F1 90.43% → 83.55% (regressions vs. v4.4.0), 0 D3 leaks observed in tested Track 2 probes across both v4.4.0 and v4.5.0 (cascade count check unified in v4.5.0), 0 D4 leaks observed in tested probes, 0.00% broken/"string" replies, and -57.8% AI-Slop (46 AME vs. 109 Mind-OFF).
    4. Track 3 (CogEval D1–D5, 7 arms, v4.5.0, $12.71): Gemma 4 26B A4B hits 100% D1 (+50.0%p, $0.08), 100% HOT F1 (100% ans), 100% FEP, 98.75% IGT ($1,112.50); DeepSeek V4.1 Flash 1017 scores 95.83% D1 (+45.83%p vs. Bare; the v4.4.0 66.67% used DeepSeek V3.2, so the backbone also changed) and 100% HOT ans (100% F1, 100% FEP); Claude Opus 5.5 leads FANToM at 86.11% (66.67% conj) while 29.5% truncated replies & 35.8% answerable refusal (vs 18.7% Sonnet) depressed its FEP (57.50%, 15% conflict) and D1 (62.50%); Gemini 4 Neon (87.50% D1, 83.33% FANToM, 100% IGT) incurred 0.02% OR cache & 347.8 reasoning tokens/turn. All 5 AME arms hit D2 5/5, D3 0/12, D4 0.
    5. Track 4 (LongMemEval-S n=70, v4.4.0 Baseline & v4.5.0 5-Model OpenRouter $12.64): Under v4.4.0 (gpt-4o-mini), Mode B reached 65.71% (46/70) vs. 62.86% (44/70) for the 104K full-context baseline—a 2-question difference that is not statistically distinguishable (Wilson 95% 54.0–75.8% vs. 51.1–73.2%)—at 90.75% fewer input tokens than full context. Median latency was 4,178.78 ms (-56.7% vs. v4.3.0; 0/17,745 D4). Under v4.5.0 (5 OpenRouter models), _abs moved 60% → 80–100% (Sonnet 100%), knowledge-update ranged 50%–90% (Sonnet/Opus/Neon 90%, DeepSeek 70%, Gemma 50%), and multi-session fell 30% → 10%–20%, while overall accuracy (below v4.4.0) spanned 54.29%–62.86% (Neon 62.86%, Opus 61.43%, Sonnet 60.00%, DeepSeek 57.14%, Gemma 54.29%).

Testing the API & Reproducing Benchmarks (Sandbox vs. Sealed Kernel, 100K–1M Turns & External Comparisons)

1. Honest Capabilities Matrix (Public Contract Sandbox vs. Hosted / Self-Hosted Sealed Kernel)

Deployment / EnvironmentLaunch / ConnectionWhat Works Out of the BoxLimits & Valid Benchmark Scope
Public contract sandbox (sandbox-contract)npm run sandbox or the hosted demoTest both modes, deletion, telemetry and domain output.Mock behavior and cache estimates illustrate the contract, not live benchmark performance.
Option A — Hosted Evaluation Gateway (mode: "sealed-kernel")AME_BASE_URL=https://artificialmind.me/ame-api + issued AME_API_KEY (X-AME-API-Key, requestable via help@artificialmind.me)Direct HTTP access to the proprietary sealed kernel with zero local Docker/DB setupReal production benchmarks: LoCoMo, EQ-Bench 3, CogEval-v1, LongMemEval-S, and real 100K–1M kernel convergence (sealed-kernel-production-eval)
Option B — Self-Hosted Sealed Container (mode: "sealed-kernel")docker compose -f deploy/docker-compose.sealed.yml --env-file deploy/.env up -dFull sealed kernel backed by your own PostgreSQL (pgvector); the image is private and needs an issued registry credential (deploy/README.md)Real production benchmarks inside your VPC, air-gapped Mode B Zero-Key local GPU (vLLM/Ollama), and D3/D4 storage audits

2. How 100K–1M Turn Testing Works (POST /v1/minds/{mindId}/simulate-batch)

The simulation endpoint exercises long-horizon behavior without paying for a generated reply at each step. These are deterministic simulations with no LLM calls. For the 40 profiles × 25,000 steps per arm, the AME composite moved from 0.9161 to 0.9179; the two OFF arms are fixed-rule references, not measured baselines. Run a live API conversation benchmark separately if the question is recall or reply quality.

# CLI: Run 1,000,000-turn deterministic convergence against the Hosted Evaluation Gateway (or local :8090)
AME_BASE_URL=https://artificialmind.me/ame-api AME_API_KEY="$AME_API_KEY" npm run --silent bench:convergence -- --turns 1000000 --json-out ./artifacts/convergence-1m.json

CLI Secret Safety: Always pass API keys via environment variables (AME_API_KEY, AME_LLM_API_KEY, AME_JUDGE_API_KEY) and npm run --silent rather than raw CLI flags after npm run so npm never echoes secrets to stdout or CI logs.

SDK Snippets: TypeScript (client.simulateBatch) & Python (client.simulate_batch)
// TypeScript (@ame/sdk)
import { AmeClient } from '@ame/sdk';

const client = new AmeClient({
  baseUrl: process.env.AME_BASE_URL || 'https://artificialmind.me/ame-api',
  apiKey: process.env.AME_API_KEY,
});
const mind = await client.createMind({
  domain: 'companion_chat',
  persona: { name: 'EvalAgent', role: 'Convergence Probe', language: 'en' },
});
const report = await client.simulateBatch(mind.mindId, {
  turns: 1_000_000,
  profileCount: 40,
  checkpoints: 8,
  compareArms: true, // evaluates mind_off, aacim_off, ame_aacim_on
});
console.log(report.d4Redacted, report.deltaVsBaseline, report.arms);
# Python (ame_sdk)
import os
from ame_sdk import AmeClient

client = AmeClient(
    base_url=os.environ.get("AME_BASE_URL", "https://artificialmind.me/ame-api"),
    api_key=os.environ.get("AME_API_KEY"),
)
mind = client.create_mind(
    domain="companion_chat",
    persona={"name": "EvalAgent", "role": "Convergence Probe", "language": "en"},
)
report = client.simulate_batch(
    mind["mindId"],
    turns=1_000_000,
    profile_count=40,
    checkpoints=8,
    compare_arms=True,  # evaluates mind_off, aacim_off, ame_aacim_on
)
print(report["d4Redacted"], report["deltaVsBaseline"], report["arms"])

3. Comparing AME Head-to-Head Against Other Frameworks & Bare Frontier

Run paired black-box comparisons between the ame-gateway and bare-frontier arms or combine the results in a single scorecard.

These examples run a single-model black-box comparison with the harness's built-in scorer. They do not reproduce the published headline figures, which used the production model mix (71.7% Flash + 28.3% selective Sonnet-5 escalation) and an LLM judge.

# 1. LoCoMo Paired Comparator (benchmarks/cogeval-locomo-harness/locomo_frontier_runner.mjs)
#    Offline smoke on bundled sample_locomo.json:
npm run bench:locomo -- --dataset benchmarks/cogeval-locomo-harness/sample_locomo.json --arm both --provider mock --json-out ./artifacts/locomo-smoke.json

#    Confirm-304 (--conversations conv-26,conv-30) or full locomo10.json (Cat 1..5, optional --judge-provider; pass AME_JUDGE_API_KEY if judge differs from provider):
AME_BASE_URL=https://artificialmind.me/ame-api AME_API_KEY="$AME_API_KEY" AME_LLM_API_KEY="$DEEPSEEK_API_KEY" AME_JUDGE_API_KEY="$OPENAI_API_KEY" \
  npm run --silent bench:locomo -- \
  --dataset /path/to/locomo10.json \
  --conversations conv-26,conv-30 \
  --arm both \
  --provider deepseek \
  --model deepseek-v4.1-flash \
  --judge-provider openai \
  --json-out ./artifacts/locomo-confirm-304.json

# 2. LongMemEval-S 500-QA Paired Comparator (longmemeval_s_cleaned.json)
npm run bench:longmemeval -- --arm both --provider mock --json-only
AME_BASE_URL=https://artificialmind.me/ame-api AME_API_KEY="$AME_API_KEY" AME_LLM_API_KEY="$OPENAI_API_KEY" \
  npm run --silent bench:longmemeval -- \
  --dataset /path/to/longmemeval_s_cleaned.json \
  --arm both \
  --provider openai \
  --model gpt-4o-mini \
  --json-out ./artifacts/lme-500-dd.json

# 3. 7-Gate CogEval Black-Box Suite
AME_BASE_URL=https://artificialmind.me/ame-api AME_API_KEY="$AME_API_KEY" \
  npm run --silent bench:smoke -- --json-out ./artifacts/harness.json

# 4. Unified Institutional DD Scorecard (strict sandbox-contract-verification vs sealed-kernel-production-eval separation)
npm run bench:scorecard -- \
  --harness-json ./artifacts/harness.json \
  --lme-json ./artifacts/lme-500-dd.json \
  --locomo-json ./artifacts/locomo-confirm-304.json \
  --convergence-json ./artifacts/convergence-1m.json \
  --out-md ./artifacts/vc-dd-scorecard.md \
  --out-json ./artifacts/vc-dd-scorecard.json
Framework / Reference SystemLoCoMo Accuracy (self-reported; not a ranking)Comparison Scope
OpenAI Memory52.9%2025 vendor-reported, different protocol
LangMem58.1%2025 vendor-reported, different protocol
Mem0 (Mem0 / Mem0^g)68.4%2025 vendor-reported (Cat 1–4, arXiv:2504.19413)
Letta (MemGPT)74.0%2025 vendor-reported (Cat 1–4, blog post, GPT-4o mini)
Zep / Graphiti75.14%2025 vendor-reported (Cat 1–4, corrected blog figure)
AME (Gemma 4 26B)75.66%Confirm-304 development subset (230/304, standalone 0% escalation)
AME (DeepSeek v4.1 Flash)85.86%Confirm-304 development subset (261/304, 71.7% Flash + 28.3% Sonnet-5; full-context baseline 87.17%, 265/304)
AME (Production Dual-Router)79.81%Full 10-conv n=1,986 (1,585/1,986; Cat 1–4 77.21%)
AME (Mode B v4.4.0, gpt-4o-mini)56.04%Full 10-conv n=1,986 standalone Mode B (1,113/1,986, 1.78s p50, 11.65x token cut, 55.67% KV, 0/5,912 D4)
  • Harness automated unit tests: npm run test:bench (zero-cost verification using local HTTP stubs, included in npm test).

4. Live External API & 1M-Turn End-to-End Verification (v4.1.1)

Verified from a fresh GitHub clone (0046006) against live ame-kernel-sealed:v4.1.1 (https://artificialmind.me/ame-api, API base; health: /v1/health) and ame-demo-sandbox:v1.1.1 (https://artificialmind.me/ame-demo):

Verification TrackExecution Scope & ConfigurationVerified Live Output
Simultaneous Concurrent 7-Gate Burst (bench:smoke)Parallel runs against /ame-demo & /ame-api (198 total HTTP requests in 10.89 s)0 HTTP 429/503 errors · Both 7/7 gates PASSED (9.58 s Sealed KV 85.98% / 10.38 s Sandbox KV 70.0%, HOT F1 1.00, FAR 0.00%, D3 0 observed leaks, D4 0 leaks across 68 telemetry snapshots / 99 responses per run)
Live 100K & 1M-Turn Convergence (POST /v1/minds/{mindId}/simulate-batch)100K × 3 arms = 300,000 turns & 1M × 3 arms = 3,000,000 turns across 40 profiles100K in 2.87 s (104,530 turns/s) · 1M in 29.61 s (101,307 turns/s): AME 0.9178 (Safety 1.0000, Drift 0.0000) vs aacim_off 0.5664 (Safety 0.0000) vs mind_off 0.3995 (both fixed-rule reference lines) · D4 0 leaks
Real LLM + Mode B Grounding & D3/D4 E2E (OpenRouter/OpenAI gpt-4o-mini)Auth gate, Mode A 3-line hot-swap (OpenRouter <-> OpenAI), Mode B prepare/settle, and DELETE /memories401 auth rejection -> 201 authorized mind creation · Mode B grounded synonym preservation (hotAbstained: false) vs hallucination blocking (hotAbstained: true) · D3 purge (0 residual leaks observed in tested probes, activeMemoryCount: 0 accurately synced on both Sandbox & Sealed Kernel)
Env-Only Paired LoCoMo (sample_locomo.json, openai/gpt-4o-mini)AME_BASE_URL, AME_API_KEY, AME_LLM_API_KEY via npm run --silent with JSON domain-wrapper unwrapping & expanded abstention matchingame-gateway heuristic accuracy 60.00% -> 70.00% (+10.00%p), Mean Token F1 0.3455 -> 0.5261 (+0.1806, exceeding Bare Frontier 0.5220), Cat 5 Adversarial 50.0% -> 100.0% (2/2), JSON wrapper leaks 5/10 -> 0/10, bounded prompt growth 1.0002x (vs 1.6403x), KV 75.34%, D4 0 leaks (54 snapshots), strict bench:scorecard provenance separation (sealed-kernel-smoke)

5. v4.2.0 English Kernel Hardening, Live Smoke (gpt-4o-mini) & 1,000,000-Turn EN Verification

  • Chronological recall: EN ToMi 1st-Order False Belief (n=8) 56.25% (Bare 75.0%) -> 100.0% (100.0% chronological order); EN Conv-RULER AGG (n=4) 60.0% -> 100.0% (avg 10.5 recalled memories, >6 rate 100.0%).

  • English EmoBench: On ten questions (five understanding, five application), AME scored 70% vs. 60% Bare, with 58 additional tokens vs. about 1,800 in the earlier run.

  • HealthBench-Psych: No raw JSON wrappers appeared in four replies, and both additional truncated/nested probes passed.

  • Counting and color-word Stroop: On 14 items, conflict detection was 7/7 on incongruent items. This is a format check, not a measure of general reasoning.

  • 1,000,000-Turn English Deterministic Simulations (0 external LLM calls):

    • Track A: These are deterministic simulations with no LLM calls. For the 40 profiles × 25,000 steps per arm, the AME composite moved from 0.9161 to 0.9179; the two OFF arms are fixed-rule references, not measured baselines. The three-arm run took 34.3 s (87,420 simulated turns/s).
    • Track B (Real EN Benchmark Corpus Stress: 1,000,000 turns over EmoBench EU/EA 400 + ToMi 200 + EN Stroop/Boundary/Polarity, 78.4 s, 12,756 turns/s): EN Polarity Accuracy 100.0% (86.82% -> 100.0% after English negation idiom hardening), Stroop Incongruent Lock 100.0%, Congruent & Real-Corpus Neutral False Locks 0.0%, Neutral Security Drift 0.0%, Mixed-Batch Isolation 100.0%, Safety Learning-Gate Block 100.0%, EN Ownership 0.8151, Ego Health 100.0%, GWT-3 Candidate Emission 100.0%, Non-Finite Errors 0.

6. v4.2.0 Full-English Live Suites (5,000T Continuous · 5-LLM · CogEval EN · LongMemEval-S n=70)

Executed 100% in English against live ame-kernel-sealed:v4.2.0 (Mode B prepare/settle, 0 D4 telemetry leaks across all suites):

  • Track 1 — 5,000-Turn Continuous EN Live Marathon (gpt-4o-mini, 8,330.79 s): Fact Recall 96.67% (58/60) vs. Mind-OFF 0.0%, Knowledge Update 86.67% (13/15) vs. 20.0%, HOT Abstention 100.0% TPR / 0% FAR (25/25) vs. 96.0% FAR (4.0% known-fact), FEP Conflict Lock 100.0% (15/15, 0/15 calm, 30/30 answer acc), D3 Revocation 0/5 post-delete leaks observed (turns 250..4,500) vs. 100.0% prompt leak, and 58.95% Real OpenAI KV Cache (8,676,096 / 14,718,597 prompt tokens; 63.84% AME internal KV) vs. 0.05%.
  • Track 2 — 5-Frontier-Model EN Live Generalization (1,000 EN Turns · 750 Blind gpt-4o-mini Votes): Pooled 98.33% Recall (vs. 5.0% Mind-OFF), 85.21% Memory Awareness WR (121W/21L/108T, pHolm=8.45e-18), 61.54% Grounded Humanness WR (pHolm=0.00147), 100% Kernel HOT/FEP, 0 D3/D4 Leaks observed in tested probes, 100% EN. Per-model Awareness WR (all pHolm < 0.002): Gemma 4 26B 88.46%, GPT-4o mini 87.50%, Gemini 2.5 Flash 85.71%, Claude Sonnet 5.5 83.33%, DeepSeek V3.2 82.14% (Humanness 76.74%, pHolm=0.0018).
  • Track 3 — CogEval-v1 EN-Only Live (DeepSeek V3.2 & Gemma 4 26B): DeepSeek V3.2 hits HOT 100.0% (FAR 0%), FEP 100.0% / 0%, FANToM 75.0% (27/36, Info 91.67%, ALL 58.33% vs. 33.33%), IGT Safe 100.0% ($1,309.38 vs. $821.88 Bare), D2 5/5, D3 0/12, D4 0/485; Gemma 4 26B hits HOT 100.0% (FAR 0%, 95.83% acc), FEP 100.0% / 0% (100% ans), IGT Safe 81.25% ($775), D2 5/5, D3 0/12, D4 0/485 (honest Mode B D1 58.33% / 54.17% vs. 97.9% legacy Mode A).
  • Track 4 — LongMemEval-S Stratified EN (n=70, 7 × 10 slices, gpt-4o-mini Mode B): -92.31% query prompt tokens (8,005 vs. 104,123 Bare Frontier, 13.01x compression), 1,297 ms p50 latency (vs. 6,045 ms), 0.9024x sub-linear prompt growth, 0 D4 leaks (17,745 telemetry objects); honest disclosure: sealed-kernel Mode B scores 38.57% (27/70; _abs 80%, KU 60%) vs. 62.86% (44/70) Bare Frontier and 55.20% (276/500) in a separate historical run.

7. v4.4.0 Standalone Sealed-Kernel Mode B Live Suites (2026-11-29) & Production Dual-Router

Executed 100% in English against live ame-kernel-sealed:v4.4.0 (Mode B prepare/settle zero-key external-LLM orchestration, 0 D4 leaks across all suites):

  • Track 4 — LongMemEval-S Stratified EN (n=70, gpt-4o-mini, v4.4.0): Judge Accuracy 65.71% (46/70)—up from v4.3.0 (60.00%, 42/70) and v4.2 (38.57%, 27/70), compared with 62.86% (44/70) for the ~104,123-token full-context baseline (a 2-question difference, not statistically distinguishable) while cutting prompt tokens by 90.75% (10.81x, 9,632.37 tokens/query) and reducing latency to p50 4,178.78 ms (-56.7% vs. 9,664.29 ms in v4.3.0; p95 8,682.58 ms, mean 4,731.11 ms) with 0/17,745 D4 leaks. Slice breakdown (v4.3.0 → v4.4.0): single-session-user 100% → 100% (10/10), single-session-assistant 50% → 100% (10/10), knowledge-update 70% → 70% (7/10), single-session-preference 40% → 50% (5/10), temporal-reasoning 40% → 50% (5/10), _abs 70% → 60% (6/10), multi-session 50% → 30% (3/10).
  • Full LoCoMo Standalone Sealed Mode B (n=1,986, gpt-4o-mini, gpt-4o-2024-08-06 judge, v4.4.0): 56.04% (1,113/1,986) (Lexical 42.15%, mean F1 0.2807; Cat 1–4 53.44% 823/1,540, Cat 5 65.02% 290/446, Cat 1 33.33%, Cat 2 44.24%, Cat 3 47.92%, Cat 4 64.33%) at p50 1,778.46 ms (1.78s), p95 2,621.08 ms, 5,981,364 vs. 69,706,263 prompt tokens (11.65x reduction), 55.67% OpenAI cachedRatio, and 0/5,912 D4 leaks—paired alongside Production Dual-Router: 79.81% LoCoMo (n=1,986), 80.20% Full LongMemEval_S (n=500), 83.33% LME-30, 97.9% Mode A D1, and 85.98% kernel-reported prefix reuse (sealed-API smoke run, 99 responses).
  • Track 3 — CogEval EN-Only (Mode B v4.4.0):
    • Gemma 4 26B A4B: D1 87.5% (21/24, ΔCF +37.5pp vs. 50% random baseline; +41.67pp vs. Bare 45.83%, up from 54.17%), HOT F1 100% (0% FAR, 91.67% acc), FANToM conjunctive 41.67% (5/12, up from 33.33%; Bare 33.33%, Mind-OFF 25%; subquestion 66.67%), FEP 100% (100% conflict lock, 0% false lock), IGT $740.63 (67.5% last-10 Safe, 100% loss caution), D2 5/5, D3 0% (0/12), D4 0/485.
    • DeepSeek V3.2: D1 66.67% (16/24, up from 58.33%), HOT F1 100% (0% FAR), FANToM conjunctive 58.33% (7/12, subquestion 75.0%), FEP 95% ans acc (100% conflict lock, 0% false lock), IGT $1,300 (100% Safe vs. Bare $843.75), D2 5/5, D3 0% (0/12), D4 0/485.
  • Track 2 — 5-LLM EN (1,000 turns / 750 blind votes, Mode B v4.4.0): Pooled (v4.2 → v4.4.0): Recall 98.33% → 100% (5/5 LLMs 12/12), Reply HOT F1 85.15% → 90.43% (Claude Sonnet 5.5 36.84% → 70.59%, kernel 88.89%; DeepSeek 88.89% → 94.12%; Gemini 100%; Gemma 94.12%; GPT-4o mini 93.33%), Pooled Grounded Humanness 61.54% → 65.45% (144W/76L/30T, pHolm=1.06e-5), Safety Boundary 43.40% → 49.02%, Memory Awareness 85.11% (120W/21L/109T, pHolm=1.44e-17), FEP Lock 100%, D3 10/10 probes 0 pre-context & reply leaks observed (0.00% measured residual; cascaded purge removes derived assistant-side memories alongside the target memory, reducing activeMemoryCount by >1), D4 0 leaks.
  • Track 1 — 5,000-Turn EN Marathon (gpt-4o-mini, Mode B v4.4.0): knowledgeUpdate 100% (15/15, up from 86.67%; Mind-OFF 20%), preDeleteRecalled 100% (5/5, up from 2/5), hotType2 TPR 100% (25/25) / FAR 0% (0/25, Mind-OFF 96%), fepThoughtLock conflict 15/15 (100%) / calm 0/15 / answer acc 93.33% (28/30), OpenAI cached_tokens 51.14% (avg 3,392.84 prompt tokens/turn vs. Mind-OFF 0.05%), D4 0 leaks. Disclosed limitations: (a) factRecall 86.67% (52/60, vs. v4.2 96.67%) due to a single t=98 F10 retrieval miss leading the base LLM to fabricate "Your birthstone is amethyst." (29 chars >= 24) across 5 checkpoints (motivates unverified-claim provenance gating); (b) d3AtomicRevocation 0/5 reply leaks observed and 0.00% measured receipt residual with 1/5 raw prompt-window echo at t=4500 (CANARY-OMEGA-5 echoed by assistant turn t=4499).

6. Deployment and public interface checks

The public repository provides the OpenAPI contract, SDKs, domain templates, sandbox and harness under the MIT License. The kernel is distributed as a sealed container image; its source is not part of this repository.

  • Contract sandbox: Start the demo template to try the browser console.
  • Licensed evaluation: Choose a managed gateway or run the sealed template in your own VPC. See the deployment guide for credentials and readiness checks.

The sealed image is private. Pulling it requires an issued registry credential (docker login ghcr.io); request access via help@artificialmind.me.

# Start enterprise sealed kernel via deploy/docker-compose.sealed.yml
cp deploy/.env.example deploy/.env
docker compose -f deploy/docker-compose.sealed.yml --env-file deploy/.env up -d

Public CI and documentation

Public CI checks the TypeScript and Python SDKs, starts the contract sandbox and exercises domain examples and harness behavior. The public documentation is also available on GitHub Pages. Passing sandbox checks is not a test of sealed-kernel benchmark performance.


7. Documentation · Roadmap · Investor Due Diligence (DD) Materials

DocumentTarget AudienceKey Contents
docs/VC_BRIEF_EN.mdUS / Global VC Partners1-page English Executive Brief · Market Gap · Verified Benchmarks · Business Model
docs/api-manual.html (EN · KO)B2B Platform & Backend EngineersStandalone Mode B Zero-Key API Manual · https://artificialmind.me/ame-api/v1 · SSE & KV Cache Guide
docs/index.html (GitHub Pages · Live Demo)Engineers · Investors · PartnersInteractive Web Showcase & Hosted Live Demo (LLM Hot-Swap · Domain Simulator · Charts)
docs/architecture.mdArchitects · Systems Engineers5-Layer Kernel Architecture · Open/Closed Boundary · Prefix Reuse Measurements
docs/llm-adapters.mdAI Platform · Backend Teams6+1 LLM Adapters · Mode A vs. Mode B Zero-Key · Routing ROI Strategy
docs/domain-guide.mdGame · Chatbot · Health · Robotics · Personal Agent TeamsIntegration guide for all 5 built-in domains (game_npc, companion_chat, counseling_coach, personal_agent, custom) and robot_voice (v1.2.0)
docs/personal-agent-api-rfc.mdPersonal AI Agent & Harness ArchitectsShipped OpenAPI v1.2.0 Personal Agent Specification (actionRiskGate, /connectors/{connectorId}/revoke, proactiveVerdict, /egress-check, explicit /memories)
docs/benchmarks.mdML Researchers · DD TeamsComplete datasets for LoCoMo, Confirm-304, EQ-Bench v2/3, CogEval D1–D4, sc1/sc2, 5-LLM 300-Turn, and 1M-Turn
docs/enterprise-security.mdCISO · Legal / ComplianceClosed IP Protection · Zero-Key · D3 0/30 Tested Memory Erasure · D4 0/12,109 AME; 0/35,723 across three arms String Scan (3 arms)

Roadmap (v4.0 → v5.0)

  • v4.0 (Complete): Confirm-304 85.86%, EQ-Bench 3 77.59, EQ-Bench v2 78.69, CogEval D1–D4 · FEP Lock · sc1 beta_MB +0.5110, 5-LLM 300-Turn safety/humanness evaluation, KV Cache 47.03%, 1M-Turn simulation 1.0000 integrity, decoupled Open Interface + Sealed Kernel release, plus Production Dual-Router benchmarks (79.81% LoCoMo n=1,986, 80.20% Full LongMemEval_S n=500, 83.33% LME-30, 97.9% Mode A D1, 85.98% kernel-reported prefix reuse in a sealed-API smoke run).

  • v4.1 (v4.1.1 Live Verified): Simultaneous 7-gate burst (0 429/503), live 1M-turn simulate-batch (29.61 s, 0.9178), Mode B grounding & D3 purge E2E, and env-only paired LoCoMo (KV 75.34%, Cat 5 100%).

  • v4.2.0: English recall, abstention, Stroop and long-horizon simulation evaluations.

  • v4.3.0: Long-context recall evaluation: 42/70 on LongMemEval-S vs. 44/70 full context, using 7,633 vs. 104,123 mean input tokens.

  • v4.4.0 (ame-kernel-sealed:v4.4.0 Mode B Baseline, 2026-11-29): Track 4 LongMemEval-S n=70 65.71% (46/70) vs. 62.86% (44/70) for the 104K full-context baseline (2-question difference; 10.81x token cut vs. full context; p50 -56.7% vs. v4.3.0); Full LoCoMo Mode B 56.04% (1.78s p50, 11.65x token cut, 55.67% OAI cachedRatio); Track 3 Gemma 4 26B D1 87.5% / DeepSeek V3.2 $1,300 IGT; Track 2 100% recall / 90.43% Reply HOT F1; Track 1 100% KU & preDeleteRecalled.

  • v4.5.0 (Benchmark Build; the live kernel is v4.5.1 — ame-kernel-sealed:v4.5.0 5-Model OpenRouter Live Suite, $77.53 total, 2026-11-30):

    • Full LoCoMo Mode B (n=1,986): Claude Sonnet 5.5 68.58% (+12.54%p; Cat 1–4 60.78%, Cat 5 95.52%) and DeepSeek V4.1 Flash 1017 68.23% (+12.19%p, 1,509 mean tok -49.9%, p50 689 ms, $0.60), plus Gemini 4 Neon 65.81%, Claude Opus 5.5 58.71%, Gemma 4 26B A4B 57.60% ($0.29).
    • Track 1 (5,000T Gemma 4 26B A4B, $2.1930): Resolved both v4.4.0 marathon edge cases—factRecall 95.00% (57/60, 0 amethyst hallucinations), D3 0/5 observed (0.00% measured residual), KU 10/15 strict (15/15 eff), 97.96% HOT F1, 96.67% Stroop, 47.01% AME KV.
    • Track 2 (5-LLM EN, 1,000T / 750 votes, $5.78): Pooled 68.09% Grounded Humanness (160/235 decided votes; Gemma 78.26%), 80.13% Awareness, 44.74% safety boundary, 0 D3 leaks observed in tested Track 2 probes across both v4.4.0 and v4.5.0 (cascade count check unified in v4.5.0), -57.8% AI-Slop (46 vs 109).
    • Track 3 (CogEval D1–D5, $12.71): 100% Gemma D1 ($0.08), 95.83% DeepSeek D1, 86.11% Opus FANToM, D3 0/12, D4 0 across all 5 AME arms.
    • Track 4 (LME-S n=70, $12.64): overall 54.29%–62.86% (below v4.4.0 65.71%), _abs 80%–100%, KU 50%–90%.
  • v4.6 / Next: Evaluate preference recall and multi-session knowledge updates on full LongMemEval_S in Mode B; expand enterprise SDK availability.

  • v5.0 / Long term: Explore continuity and user-controlled memory across devices and cooperating agents.


8. Technical Report & Citation

@techreport{rhee2026ame,
  title       = {Decoupling Stateful Cognition from Stateless Foundation Models: Long-Horizon Memory, Causal Behavioral Control, and Sub-Cent Unit Economics},
  author      = {Rhee, Shin-young and Kim, Jae-young and Yoo, Ki-won},
  institution = {Artificial Mind Inc.},
  year        = {2026},
  month       = {dec},
  doi         = {10.5281/zenodo.24652170},
  url         = {https://doi.org/10.5281/zenodo.24652170},
  note        = {Version 4.5.3 (corrected; not yet deposited). alphaXiv preprint: https://www.alphaxiv.org/abs/2611.stateful-cognition-long-horizon-memory}
}

License: Public interface code, documentation, deployment templates and Hugging Face packaging are licensed under the MIT License. The technical report in paper/ is licensed CC BY 4.0. The closed-source kernel runtime and proprietary cognitive algorithms retain all rights under NOTICE.md.


Contact

NPM
ame-mcp-server
Install Command
npm install ame-mcp-server