Aria Hands

Aria Hands is the PSI Action Compiler + Manifold Executor + Ghazali Shard Council — an autonomous execution engine with zero LLM in the execution loop. It receives cognitive directives from Aria Soul and executes them deterministically.

Service: apps/aria-hands/ — gRPC server on port defined in hands.proto. Also runs an HTTP compat server.

Execution Pipeline


1. PsiSnapshot extracted from gRPC request
   (soul charge, coherence, mode amplitudes)
        │
2. Reflex Cache checked (<1ms pattern hash lookup)
   → Deterministic for repeated patterns
        │
3. Cognition Enrichment (optional)
   → LLM enrichment via Aria Soul /chat
        │
4. COMPILE: Intent extraction + Verb detection + 
   Constraint derivation + Mizan gate + Plan building
        │
5. ForgePsi Routing (for coding directives)
        │
6. Shard Council consultation
   (Aql wisdom, Muhasaba simulation)
        │
7. EXECUTE: Deterministic DAG execution
        │
8. RECORD + LEARN: Lawwama review (async, non-blocking)
    

Compiler Modules

ModuleFileFunction
Orchestratorcompiler/index.tscompile(), shouldRouteToForgePsi()
Intent Extractorcompiler/intent-extractor.tsManifold-derived intent extraction
Verb Detectorcompiler/verb-detector.tsAction verb identification
Constraint Derivercompiler/constraint-deriver.tsSafety constraints from cognitive modes
Mizan Gatecompiler/mizan-gate.tsEthical validation gate
Plan Buildercompiler/plan-builder.tsDAG plan construction

Manifold Executor

The Manifold Executor (executor/manifold-executor.ts) executes compiled plans as deterministic DAGs. It supports multiple execution planes:

  • openclaw-persistent (production) — Delegates to OpenClaw persistence service
  • Direct execution — Via the manifold executor itself
  • Bridge Actions — Can dispatch publish actions to Discord/Telegram bridges

Shard Council

Before execution, the Ghazali Shard Council (shards/shard-council.ts) validates actions through Aql (wisdom) and Muhasaba (simulation) shards.

Learning Systems

SystemFileFunction
Reflex Cachereflex/reflex-cache.tsPattern hash lookup — <1ms for repeated patterns
Execution Recorderlearning/execution-recorder.tsLawwama review loop — continuous improvement
Novel Detectoradaptive/novel-detector.tsDetects unprecedented situations, escalates to Soul

gRPC API

service HandsService {
  rpc Execute(ExecuteRequest) returns (ExecuteResponse);
  rpc CompilePlan(CompilePlanRequest) returns (CompilePlanResponse);
  rpc GetStatus(GetStatusRequest) returns (GetStatusResponse);
}

Kubernetes

  • Manifest: apps/aria-hands/k8s/aria-hands.yaml
  • Dockerfile: apps/aria-hands/Dockerfile
  • Proto: apps/aria-hands/proto/hands.proto