ESCO stands for ethics, sovereignty, and coherence.
This repository is the build-out of a local-first, evidence-governed AI platform. The long-term goal is not just to run a model locally. The goal is to build a system that:
- routes claims carefully instead of bluffing
- separates evidence from interpretation
- surfaces inspectable support through a Support Profile
- applies policy before asserting something as fact
- stays modular enough to support later domain bots such as SocraBot and BillBot
The target system shape is a platform with these layers:
- local inference
- corpus and retrieval
- verification and claim routing
- policy and ethics gating
- audit, evaluation, memory, and orchestration
- domain-specific bots built on top of the shared platform
The platform comes before the bots. That is a deliberate design choice.
Today the repo is focused on making the platform contracts executable and testable before any polished product surface exists.
As of 2026-04-10, the project is in the foundation-to-kernel transition:
- Phase 0 is done
- architecture decisions, schemas, and contracts are written under
resources/
- architecture decisions, schemas, and contracts are written under
- Phase 1 is implemented in the repo
- shared contracts, retrieval seams, local model registry, local infra scaffolding, and foundation tests exist
- Phase 2 is implemented in the repo
- verification, claim routing, and policy gating are now part of the executable platform baseline
- Phase 3 is next
- audit, evaluation, secure retrieval, memory consent, and orchestration are the next build target
In practical terms, the repo already has the beginnings of:
esco_contracts- shared types and constants
esco_retrieval- ingestion, retrieval, provenance, and test doubles
esco_runtime- local model config and adapter seams
esco_verifier- deterministic routing and Support Profile logic
esco_policy- deterministic evidence-governed policy outcomes
esco_audit- append-only audit entry scaffolding
esco_orchestrator- a local-only orchestration seam and CLI demo path
The next major step is Phase 3:
- audit logging
- evaluation harnesses
- secure retrieval and prompt-injection containment
- memory consent handling
- orchestration between retrieval, verification, policy, and runtime
Only after the shared platform is stable do we move into the first domain pilots:
- SocraBot
- BillBot
MedBot, ArchiveBot, Light Web, and other expansion work stay later on purpose.
src/esco_contracts/- shared typed records and locked public constants
src/esco_retrieval/- retrieval interfaces, service logic, and in-memory testing helpers
src/esco_runtime/- local model configuration and runtime seams
src/esco_audit/- append-only audit entry scaffolding
src/esco_orchestrator/- local orchestration and CLI demo helpers
resources/adrs/- architecture decisions
resources/contracts/- locked behavior contracts
resources/schemas/- JSON schemas for stable records
resources/roadmaps/- current phased roadmap and implementation plan
resources/validation/- validation matrix for early architecture assumptions
resources/diagrams/- exported architecture and roadmap diagrams
Recommended read order:
resources/roadmaps/esco-implementation-plan.mdresources/roadmaps/esco-phased-roadmap.mdresources/contracts/verification-and-policy-contract.mdsrc/README.mdtests/README.md
If you are new to the Python side of the repo, src/README.md is the fastest way to understand how the packages fit together.
Set up a Python virtual environment:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pipRun the current checks from the repo root:
PYTHONPATH=src python3 -m unittest discover -s tests -v
python3 -m mypy src tests
pnpm testBring up the local infra stack when needed:
docker compose -f infra/compose.yaml up -dTry the current local demo lane:
PYTHONPATH=src python -m esco_cli "Phase 2 is implemented in the repo."- Implementation Plan
- Phased Roadmap
- Verification and Policy Contract
- Private Core vs Transparent Surface ADR
- Language Boundary Strategy ADR
Repo-local exported snapshots in resources/diagrams/ are the tracked references used in this repository.
The links below are the original 2026-04-10 Figma create-diagram URLs and should be replaced with stable board URLs before they are treated as the canonical live references.
- ESCO Current Architecture Foundation
- ESCO Target Architecture By Phase
- ESCO Near-Term Roadmap Zoom In
The previous long-form root README has been archived here: