Architecture

July 9, 2026 · View on GitHub

High-level map of the outerloop monorepo. For schemas, CLI design, and implementation detail, see SPEC.md.

Data flow

flowchart LR
  Run[Agent run] --> Evidence[EvidencePackage]
  Evidence --> Verdict[Verdict + rationale]
  Verdict --> Ledger[Ledger entry]
  Ledger --> Answer[ledger why]
  Taste[Taste profile] --> Verdict
  Policy[Backpressure policy] --> Verdict
  Harness[Harness boundary] --> Evidence

Packages

PackageResponsibilityStatus
@cobusgreyling/outerloop-coreZod schemas, types, paths, EvidencePackage builder
@cobusgreyling/outerloopCLI entrypoint (outerloop)
evidenceGenerators, normalizers, risk scorers
verdictReview TUI, decision recorder
ledgerStorage, query, provenance reconstruction
tasteCapture, versioning, rule matching
policyBackpressure DSL parser and enforcer
harnessBoundary spec parser and validator
cognitiveDebt estimators, narrative generators
integrateloop-engineering, Cursor, GitHub adapters
attentionPending verdict routing
brownfieldLegacy codebase introspection
auditGovernance health scoring
dashboardText, Ink TUI, web views
coordinationMulti-loop registry

On-disk layout

Projects initialized with outerloop init store artifacts under .outerloop/:

.outerloop/
├── evidence/
├── verdicts/
├── ledger/
├── manifests/
├── harness/
├── policy/
├── taste/
└── coordination/

Monorepo tooling

  • pnpm workspacespackages/*
  • Turborepobuild, test, dev pipelines
  • Changesets — versioned npm releases for @cobusgreyling/outerloop

Package map (all modules)

See the full table in this file's Packages section above. The README intentionally omits the 14-package breakdown — start with concepts.md instead.

Further reading