Core Contracts
Shared interfaces, schema wrappers, constants, and orchestration boundaries.
ELKA-0 documentation
Spec first. Runtime ready.
Reference Guide
Memory-Native Reasoning
A model-engine layer for memory-native, multimodal, safety-scored reasoning.
This page documents ELKA-0 itself: how to run it, call it, integrate it, and evaluate it. ELKA-0 can power multiple runtimes, including Kael, but this documentation focuses on ELKA contracts and behavior.
Get Started
Start the service locally, verify health, then call inference. These commands reflect the current repo runtime layout.
pip install -r requirements.txt
uvicorn infrastructure.serving.app:create_service_app --factory --host 0.0.0.0 --port 8080
curl http://127.0.0.1:8080/health
API Reference
ELKA-0 currently exposes four production routes. Security guards can enforce API keys, signatures, tenant boundaries, and rate limits.
curl -X GET "http://127.0.0.1:8080/health"
Contracts
ELKA-0 is typed end to end. The integration surface is stable when you treat these structures as the source of truth.
{
"request": {
"session_id": "session-01",
"user_text": "Review backyard motion event and recommend next safe action",
"events": [
{
"kind": "text",
"text": "Motion alert received from backyard camera"
}
],
"permissions": ["observe", "notify"],
"profile_name": "core",
"allow_actions": true
},
"trace": true
}
{
"ok": true,
"response": {
"request_id": "...",
"status": "planned",
"natural_language_response": "...",
"confidence": 0.82,
"plan": { "objective": "...", "steps": [] },
"explanation": { "summary": "...", "evidence": [] },
"escalation": "notify",
"profile_name": "core"
},
"model_version": "v0",
"latency_ms": 91.4
}
System Design
Dependency direction is explicit: `core -> model -> cognition -> world_model -> policies -> safety -> infrastructure -> evaluation/tests`.
Shared interfaces, schema wrappers, constants, and orchestration boundaries.
Inference orchestration, retrieval-native memory usage, uncertainty handling, and explainability.
Permission checks, escalation scoring, refusal paths, and risk-aware action constraints.
FastAPI runtime, security middleware, observability hooks, and deployment entrypoints.
Input Context -> ELKA Reasoning -> Risk Score -> Structured Plan -> Runtime Execution
Governance
ELKA-0 is designed to prefer truthful, low-risk actions over fluent but unsafe behavior.
Runtime Modes
ELKA-0 supports local-first operation and can scale into hybrid or high-compute modes without changing core contracts.
uvicorn infrastructure.serving.app:create_service_app --factory --host 0.0.0.0 --port 8080
Quality Targets
Use both offline tests and live runtime telemetry to track real quality, not just response style.
pytest -q
Open Source
Treat this documentation as part of the engine contract. Improvements to docs, tests, schema notes, and integration examples are first-class contributions.
Release Path
v0 Core contract and baseline runtime.v0.1 Memory-native inference quality pass.v0.2 Multimodal event grounding expansion.v0.3 Safety policy and plan reliability hardening.v0.4 Runtime integration maturity and profiling.v1.0 Stable public release with documented guarantees.Build With ELKA