System Architecture & Dataflow

Kyros manages agent memory ingestion, cryptographic auditing, and hybrid storage scaling inside a multi-tier low-latency network.

Interactive Dataflow Visualizer

Click a data flow to animate the pipeline path.

Client SDKsPython / TSGateway & AuthFastAPI MiddlewareMemory EngineDecay & BeliefMerkle AuditsDatabasesPG + vectorRedis Cache

Client Ingestion Layer

Native Python & TypeScript client SDK wrappers handle request formatting and incorporate robust exponential backoff connection retry loops for API stability.

HTTP Request RetryClient AuthorizationBitemporal Parameter Bindings

Gateway Security Layer

FastAPI router matches routes, validates X-API-Key and Bearer tokens via Auth Middleware, and bypasses public playground endpoints.

Token Validation MiddlewareRate Limiter GatewaysPublic Assets Bypass

Intelligence Engine Layer

Orchestrates cognitive memory services: calculates forgetting curves, constructs Merkle Tree proofs, and runs BFS graph belief resolution updates.

Ebbinghaus Decay CalculatorMerkle Tree Proof MakerBelief BFS Propagation

Hybrid Storage Layer

Stores raw memory records, vector embeddings, and relationships into PostgreSQL with pgvector. Caches hot query indexes dynamically in Redis.

PostgreSQL + pgvectorRedis Hot Key-Value CacheRow-Level Security Policies