Architecture overview
A concise view of the architecture that powers konf.dev — modular, observable, memory-aware, and adapter-driven.
Core pillars
Sutra (execution)
Declarative workflow compiler & runtime delivering deterministic routing, retries, and rich traces.
Smrti (memory)
Multi-tier memory (working, vector, episodic) with provenance, lifecycle controls, and cost-aware context shaping.
Astra (adapters)
Adapter registry exposing tools, providers, and MCP endpoints through typed, testable contracts.
Key flows
- Author: Visual flow created (versioned artifact).
- Compile: Sutra builds an executable graph with typed nodes.
- Execute: Graph runs with traces + spans; memory consulted.
- Persist: Smrti stores vectors & episodic records with provenance.
- Integrate: Astra adapters call external services safely.
Security & reliability
Sandboxed templating
Strict Jinja environment prevents arbitrary code execution.
Typed tool contracts
Protocol-driven definitions restrict inputs/outputs and enforce validation.
Isolation
Executors remain stateless; storage & secrets externalized for tenancy safety.
Observability
Per-run spans, token accounting, latency metrics, and provenance trails.