Skip to content

mjshuff23/esco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESCO

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

What We Are Aiming For

The target system shape is a platform with these layers:

  1. local inference
  2. corpus and retrieval
  3. verification and claim routing
  4. policy and ethics gating
  5. audit, evaluation, memory, and orchestration
  6. 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.

Where The Project Is Right Now

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/
  • 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

What Comes Next

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:

  1. SocraBot
  2. BillBot

MedBot, ArchiveBot, Light Web, and other expansion work stay later on purpose.

Repo Map

Code

  • 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

Architecture and planning

  • 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

Diagrams

  • resources/diagrams/
    • exported architecture and roadmap diagrams

How To Get Oriented Quickly

Recommended read order:

  1. resources/roadmaps/esco-implementation-plan.md
  2. resources/roadmaps/esco-phased-roadmap.md
  3. resources/contracts/verification-and-policy-contract.md
  4. src/README.md
  5. tests/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.

Local Workflow

Set up a Python virtual environment:

python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip

Run the current checks from the repo root:

PYTHONPATH=src python3 -m unittest discover -s tests -v
python3 -m mypy src tests
pnpm test

Bring up the local infra stack when needed:

docker compose -f infra/compose.yaml up -d

Try the current local demo lane:

PYTHONPATH=src python -m esco_cli "Phase 2 is implemented in the repo."

Key Resources

Roadmaps and formal docs

Figma diagrams

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.

Archived root README

The previous long-form root README has been archived here:

About

ESCO (Ethics, Sovereignty, COherence): Ethical AI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors