A harness for working with AI collaborators — a metaproject that formalizes a maintainer's Claude Code workflow into queryable tools (SQL stores + logic programs) so that what an AI engineer needs to "do the right thing" is something it can pull on demand, not something the maintainer must re-explain every session.
It is deliberately general: its subject is doing the right thing, and documenting how, for concrete projects — including ones not yet conceived. Two real projects (an operations-research package and a Go-study web app) serve as the worked examples it is derived from, not as its scope.
Want the whole machine in one read? docs/ARCHITECTURE.md is the through-line — what the system is, end to end, and how an LLM + human use it to manage life-critical code. Start there; the research/ tree is the evidence behind it.
New to the vocabulary? Coined terms — Pillar, intent SSOT, Mechanization Discipline, … — are defined in GLOSSARY.md and linked on first use throughout the docs, so you never have to grep to learn what a term means.
Prose disciplines decay, because they are policed by one person's memory. The only durable corrective is a mechanism — a queryable, mechanical net that quantifies over the class of a defect, not the instance. autoharn is that net, generalized from a single existing precedent (a Postgres "anti-corruption layer" that replaced a hand-edited JSON file with a relational source-of-truth + invariant gate) into three pillars:
Capability registry (intent SSOT). What tools, services, venvs, and blessed methods are available — including automated-reasoning / optimization tools (Z3, OR-Tools) that yield provable results rather than statistical hunches. The agent queries this at point-of-need (pull), instead of leaning on stale injected memory (push) exactly when context is thinnest.
Provenance / accountability ledger. Attributable links between a git commit, a benchmark artifact, its environment, the hypothesis it tested, and the session that authored it — so a performance claim is a checkable fact, and a regression is traceable to the change that introduced it.
Logic safety net. Per-store invariant gates backed by real engines: classical
logic (SQL WITH RECURSIVE, Z3, OR-Tools CP-SAT) for provable invariants, and
non-classical logic (defeasible / temporal / paraconsistent) for the things prose
handles informally — superseded decisions, provisional records, conflicting advisories.
The unifying north star is a discipline the source projects already name "Mechanization Discipline": convert every executive lapse into a mechanism, so the same error is never seen twice. autoharn is, in one line, the CI sweep that discipline openly admits it lacks.
Early. The first artifact is the foundational map — a high-fidelity survey of the existing disciplines, the SQL/lint mechanisms already in use, the benchmark-attribution gap, and the tool/intent surface — which grounds the design so the harness grows out of existing conventions rather than imposing foreign ones.
00-synthesis.md.autoharn is intentionally neutral. The harness is built with, and currently tuned for,
Anthropic's Claude Code, but its design (pull-not-push capability SSOT, attributable
provenance, logic-backed invariant gates) is not specific to any one assistant.
Python
94.8%
PLpgSQL
1.7%
Lambdapi
1.4%
A harness for working with AI collaborators — a metaproject that formalizes a maintainer's Claude Code workflow into queryable tools (SQL stores + logic programs) so that what an AI engineer needs to "do the right thing" is something it can pull on demand, not something the maintainer must re-explain every session.
It is deliberately general: its subject is doing the right thing, and documenting how, for concrete projects — including ones not yet conceived. Two real projects (an operations-research package and a Go-study web app) serve as the worked examples it is derived from, not as its scope.
Want the whole machine in one read? docs/ARCHITECTURE.md is the through-line — what the system is, end to end, and how an LLM + human use it to manage life-critical code. Start there; the research/ tree is the evidence behind it.
New to the vocabulary? Coined terms — Pillar, intent SSOT, Mechanization Discipline, … — are defined in GLOSSARY.md and linked on first use throughout the docs, so you never have to grep to learn what a term means.
Prose disciplines decay, because they are policed by one person's memory. The only durable corrective is a mechanism — a queryable, mechanical net that quantifies over the class of a defect, not the instance. autoharn is that net, generalized from a single existing precedent (a Postgres "anti-corruption layer" that replaced a hand-edited JSON file with a relational source-of-truth + invariant gate) into three pillars:
Capability registry (intent SSOT). What tools, services, venvs, and blessed methods are available — including automated-reasoning / optimization tools (Z3, OR-Tools) that yield provable results rather than statistical hunches. The agent queries this at point-of-need (pull), instead of leaning on stale injected memory (push) exactly when context is thinnest.
Provenance / accountability ledger. Attributable links between a git commit, a benchmark artifact, its environment, the hypothesis it tested, and the session that authored it — so a performance claim is a checkable fact, and a regression is traceable to the change that introduced it.
Logic safety net. Per-store invariant gates backed by real engines: classical
logic (SQL WITH RECURSIVE, Z3, OR-Tools CP-SAT) for provable invariants, and
non-classical logic (defeasible / temporal / paraconsistent) for the things prose
handles informally — superseded decisions, provisional records, conflicting advisories.
The unifying north star is a discipline the source projects already name "Mechanization Discipline": convert every executive lapse into a mechanism, so the same error is never seen twice. autoharn is, in one line, the CI sweep that discipline openly admits it lacks.
Early. The first artifact is the foundational map — a high-fidelity survey of the existing disciplines, the SQL/lint mechanisms already in use, the benchmark-attribution gap, and the tool/intent surface — which grounds the design so the harness grows out of existing conventions rather than imposing foreign ones.
00-synthesis.md.autoharn is intentionally neutral. The harness is built with, and currently tuned for,
Anthropic's Claude Code, but its design (pull-not-push capability SSOT, attributable
provenance, logic-backed invariant gates) is not specific to any one assistant.
Python
94.8%
PLpgSQL
1.7%
Lambdapi
1.4%