Target architecture¶
Last updated: 2026-04-17 (aligned with Phase 1 roadmap).
Vision¶
A markdown-first, git-native system that stores ideas, experiments, evaluations, prompts, and reports as structured, validated artifacts. It produces pairwise comparison matrices, weighted scores, and weekly reports, with reproducible pipelines for ingest, evaluate, compare, and summarize across browser, CLI, and repository-governed workflows.
Target components¶
| Layer | Responsibility |
|---|---|
| Schemas | JSON Schema for thought, event, experiment, evaluation, matrix, report, and registry objects |
| Prompt registry | Versioned prompts with semver-style IDs and validation |
| Providers | BaseProvider with OllamaProvider, OpenAI-compatible (llama.cpp) HTTP, and MockProvider |
| Browser evidence | Abstraction over captured traces/screens; mock + file-backed fixtures first |
| Pipelines | Ingest raw markdown → structured records → rubric evaluation → persisted evaluations → matrices |
| Reporting | Weekly summaries; model/provider comparisons; agent-stack comparisons; browser-evidence comparisons |
| Orchestration | Docker Compose profiles: dev, test, benchmark; optional Ollama service; volume layout for data/cache |
| Build | Docker Buildx Bake: linux/amd64 + linux/arm64 default; extension points for other ARM variants only when tested |
Target data flow¶
flowchart TB
subgraph inputs [Inputs]
RAW[Raw markdown notes]
FIX[Fixtures / browser evidence files]
end
subgraph core [Core pipelines]
ING[Ingest]
EV[Evaluate against rubric]
CMP[Compare / pairwise matrix]
SUM[Summarize / reports]
end
subgraph backends [Model backends]
MOCK[Mock provider]
OLL[Ollama]
OAI[OpenAI-compatible HTTP]
end
RAW --> ING
FIX --> ING
ING --> EV
EV --> CMP
CMP --> SUM
MOCK --> EV
OLL --> EV
OAI --> EV
Non-goals (near term)¶
- Assuming arm/v7 compatibility without explicit images and tests.
- Hard-coding vendor APIs without adapter interfaces and mocks.
Phasing¶
See docs/implementation-log.md for completed work and upcoming phases (2–7).