🗜️ Wringer
The vendor-neutral AI-DLC harness — a control plane for AI-driven development, for product managers, designers and engineers.
Put every change through the wringer. The harness runs the gates, keeps the receipts, and never writes the code itself.
Quickstart · Changelog · v0 spec · 90-day roadmap · Security · vs LangGraph · Build plan · RFCs
Everyone else in this space is selling capability and asking for trust. Wringer is built on the opposite premise: trust nothing — including itself. Not the worker's exit code, not the agent's summary, not even the tests the agent wrote — and soon, provably, not even its own ledgers. That stance came out of a real eight-hour burn, it is welded into eight invariants a fleet already obeys, and it gets more valuable with every step frontier models take — because autonomy without receipts is exactly what everyone is about to be terrified of.
Wringer (CLI: wring) compiles intent — tickets, PRDs, Slack messages — into verified outcomes: reviewed merge requests with evidence. It treats loops and graphs of loops as first-class, portable primitives, and runs the same workflow definition on your laptop today and on durable runtimes (Temporal first) tomorrow.
Every cloud's harness locks you to its runtime, its identity system, its gateway. Nobody owns the neutral layer. That's the bet — Kubernetes-vs-managed-containers, replayed one layer up.
A real session, not a mock-up: a planted bug, one worker turn, the gates
green — and a bundle on disk to check the claim against. Regenerate it with
scripts/demo.sh; the recorded transcript is committed beside it at
docs/demo.cast.json.
What ships first
Proof beats orchestration. pip install wringer — 0.3.0, seventeen commands, out now.
It began as one command, and that command is still the core of it:
One command that proves whether this change is mergeable, and leaves behind evidence a human or agent can inspect.
A real run, pasted unedited from a scratch Python repo (ruff and pytest as the two declared gates, with a bug planted in the code):
$ wring verify
✓ lint passed 0.0s
✗ test failed 0.1s
--- gates/002_test/stdout.log ---
def test_add():
> assert add(2, 2) == 4
E assert 5 == 4
E + where 5 = add(2, 2)
FAILED test_calc.py::test_add - assert 5 == 4
1 failed in 0.01s
Evidence written to:
.wringer/runs/20260730-210750-b3ec/
Next:
open .wringer/runs/20260730-210750-b3ec/summary.md
rerun wring verify --gate test
Exit code 1, and a bundle on disk that a human or an agent can read: summary.md for the person reviewing, timestamped evidence.jsonl for the machine, diff.patch and status.txt for what was being verified, per-gate logs for what happened. wring explain replays the diagnosis without an LLM; wring verify --json emits one object for an agent to act on. The full transcript — and what is still unbuilt — is in the quickstart.
It runs your project's declared gates (build · test · lint) in order and writes a portable evidence bundle — manifest.json, evidence.jsonl, summary.md, diff.patch, status.txt, and per-gate stdout/stderr/result.json — around any session: Claude Code, Codex CLI, Gemini CLI, or a human. No LLM and no network in any command that proves anything — verify, run, resume, fleet and plan cannot reach one. Nothing leaves your machine without a flag you type: wring judge --send, wring spec --send, wring deliver --send and wring graph run --send are the four that send, each writes the exact bytes to disk first, and each needs a section your repo declared — the graph one only ever by calling the same deliver.send, with no socket and no merge request of its own. Three commands fetch, because fetching is what they are for: wring get clones, wring issue reads one issue, and wring start --clone clones one — then stops, because a fresh clone is untrusted input and running its gates in the same breath as downloading them is the one thing a guided launch must not do. Every socket in the program lives in two functions you can find with one grep. After an AI coding session, wring verify leaves a cleaner, more reviewable truth trail than the agent's own summary. The binding implementation contract is SPEC_VERIFY_V0.md — including the release bar it had to clear before tagging: Wringer verifies Wringer, in CI, with the demo bundle committed. It did, and still does on every push.
⚠️
.wringer.yamlis code.wring verifyruns the commands a repository declares, through a shell, with your privileges — the same trust you extend to itsMakefile. Read a stranger's.wringer.yamlbefore runningwring verifyin their repo. Gates are not sandboxed in v0.1; see SECURITY.md, which also explains why an evidence bundle should be read before you share it.
Then the loop closes: wring run is just a loop that keeps calling wring verify until the evidence says stop — worker (your existing coding agent; Wringer never ships its own) → gates → isolated rubric judge → iterate or exit → MR with the receipts attached. All of that ships today: run, resume, fleet, judge, spec, plan, get, issue, deliver — see the changelog and the quickstart.
Wringer verifies Wringer
The claim is checkable, not rhetorical. This repo declares its own gates in
.wringer.yaml, CI runs wring verify on every push and
uploads the bundle, and a real one is committed at
.wringer.example/ — manifest, timestamped event log,
summary, diff, and both gates' logs, exactly as produced:
$ wring verify
✓ lint passed 0.1s
✓ test passed 17.6s
Evidence written to:
.wringer/runs/20260730-231645-a57c/
That is the run committed at
.wringer.example/runs/20260730-231645-a57c/ — the
same id, so the transcript and the bundle are the same event rather than two
similar ones. That bundle is the answer to "how do I know?" — read it rather
than trust the badge.
The loop is real now — wring run
wring verify proves a change; wring run closes the loop around it. While
the gates fail it writes the failure into a brief, hands it to your coding
agent as a subprocess, and verifies again. Wringer still never calls an LLM
itself. Captured from a scratch repo with a planted bug and a scripted worker:
$ wring run
iteration 1/3
✗ test failed 0.2s
→ worker 0.0s (exit 0)
iteration 2/3
✓ test passed 0.1s
Converged in 2 iterations.
Loop evidence: .wringer/loops/20260730-234410-7c70/
A worker's exit code never ends the loop — the evidence decides — and a worker
that changes nothing stops it without re-running the gates to prove the
obvious. wring run never touches git. Contract:
SPEC_RUN_V0.md; walkthrough in the
quickstart.
Describe what you want built — wring spec
The front door for someone who does not write the config. A product manager
writes a PRD in plain language; wring spec drafts acceptance criteria, gates
and a build plan as a file; a human reads and approves that file; wring plan compiles it into work the fleet already knows how to run.
$ wring spec PRD.md --send
Drafted wringer.spec.yaml — CSV export on the reports page
4 criteria (1 need a human) · 2 proposed gates · 2 tasks
1 required question it could not answer for you
approved: false ← nothing runs until you change this by hand
The dangerous failure here is not a bad build; it is a confident build of
the wrong thing. So: approved: false is an interlock no flag, environment
variable or model reply may flip — there is deliberately no --yes —
anything the drafter had to assume comes back as a question that blocks
planning until a person answers it in the file, and gates are proposed as a
diff rather than installed, because a harness that quietly widens its own
definition of "verified" is worth nothing. Criteria no test can decide are
carried as human: true and are then never sent to a judge at all.
The whole loop, captured end to end — PRD in, verified change out, receipts
attached — is docs/pm-loop.md. Contract:
SPEC_INTENT_V0.md.
An issue in, a reviewed branch out — wring deliver
Every box names the command that runs it, and a test asserts each of those commands exists — a diagram that outlived the program it describes would be the same failure as a summary nobody checked. The two blue boxes name no command on purpose: approving a spec and reviewing a merge request are where this stops and waits for a person.
$ wring deliver --task csv-export --send
Branch: wringer/csv-export
Commit: 6a56db91b556
Pushed: yes
MR: https://github.com/acme/reports/pull/7
Until this slice Wringer never wrote git history at all. It does now, and the power is bought with five conditions rather than assumed: only a branch it created · never the default branch · no force push assemblable anywhere in the program · dry run by default — the patch, commit message, branch name, MR body and literal commands land on disk with git untouched — and a ledger event appended before every git write, so a process killed mid-delivery still says what it was attempting. The MR body carries the gate table and the run id; it never carries gate logs, because a bundle may hold whatever a gate printed and an MR body is public.
wring get <url> clones a repo into a declared workspace and records where
it came from. wring issue <url> turns an issue into a file — which is
how untrusted text from the internet should be handled, and why wring spec
needed no changes to accept one. The captured loop is
docs/issue-to-mr.md. Contract:
SPEC_GET_V0.md.
Graphs of loops
A real session, captured. The graph stages a brief, parks at the interlock —
exit 5, and nothing on that screen is a flag — then a person writes
approved: true into a file and the graph resumes, runs the loop, routes on
what the loop actually found, and reaches done.
wring graph composes the primitives above into one resumable, evidence-driven
workflow file: intent → human → loop → router → deliver, executed until it is
done, failed, or waiting for a person, and resumable from the ledger after a
kill -9. A node names a capability; there is no command: key and no
expression engine, so running a stranger's graph is exactly as safe as running
the same Wringer commands by hand. State routes, but only bundles gate — a
graph that lies about build-status in an approved decision file delivers
nothing, because delivery re-reads the evidence. The walkthrough is
docs/graphs.md. Contract:
SPEC_GRAPH_V0.md.
Prove the gates can fail
A real session, captured. The worker was handed a real bug and a real test
that caught it, and it made the failure go away by rewriting the assertion
into multiply(3, 4) == multiply(3, 4). The loop converged. The gates went
green. The bug is still there. Regenerate it with scripts/demo.sh; the
transcript is committed at docs/vacuous.cast.json.
The failure everyone in this field fears: the agent writes tautological tests,
its gates pass, and the green tick means nothing. wring verify --prove is the
deterministic counter — it re-runs the same gates against the pre-change tree
in a scratch worktree, and a gate that passes on both proved nothing about
your change. Every required gate passing on both is the verdict
gates_vacuous, and wring deliver refuses that bundle: exit 1, naming the
insensitive gates and the fix. There is no --allow-vacuous.
Switched on in .wringer.yaml, not by a flag — run.prove: true. The audited
party does not get to choose whether the audit runs, and that invoker is
increasingly the agent itself. --prove tightens for one run; there is no
--no-prove. Captured both ways, with the limits stated, in
docs/prove-the-gates-can-fail.md.
Contract: SPEC_VACUITY_V0.md.
Set this up and start your first build
wring start is the guided launch: preflight, the gates your repo already
declares, the agent that will drive the loop, and a first build that ends on a
receipt. Every answer has a flag, so an agent can run the whole thing
non-interactively — and with no terminal and a missing answer it exits 2
naming what it wanted, rather than guessing.
Wringer never stores a credential. wring start will ask for your API key
so it can hand it to the build it launches; it keeps it in memory for that
session, folds it into the redactor so it cannot reach a bundle, and writes it
nowhere. Your config records the name of an environment variable, never a
key. Nothing else in Wringer ever asks.
Two things it refuses, both on purpose. It never installs an agent — it
names the one you chose and prints the command for you to run. And
wring start --clone fetches a repository, records where it came from, and
stops: a fresh clone is untrusted input, its .wringer.yaml is code, and
running a stranger's gates in the same breath as downloading them is the one
thing a guided launch must not do. Read the file, then run wring start
inside it. Contract: SPEC_START_V0.md.
And a claim you can check without trusting anyone
wring attest assembles the provenance claim — change C, authorized by spec
S, proven by gates G against tree T, judged against rubric R, delivered as
branch B, and every bundle backing that is byte-identical to when it was
written. wring audit checks it offline, with no config, by someone who
trusts nobody involved. Neither calls an LLM and neither opens a socket.
Change one byte in one gate log and audit names that file and exits 1. The
attestation is unsigned, by decision, and says so in its own limits
array — delete that sentence and audit refuses it, because a green artifact
stripped of its own caveats reads as a stronger claim than it is. The captured
transcript, including the tamper detection, is
docs/attest-and-audit.md. Contract:
SPEC_PROVENANCE_V0.md.
The format is targetable, not just readable
The bundle is the interface, so it is published as JSON
Schema — manifest.json, each evidence.jsonl event, and each
gate's result.json, in draft 2020-12. Write a tool against the schema
rather than against this implementation. A test fails the build if the code
ever writes a field the schema does not declare.
It is not a Python tool
Wringer is written in Python; nothing about it is for Python. It runs the
commands your repo already declares. docs/beyond-python.md
is the receipt — real captured output from a Make project whose test suite is
a shell script, and a Node project's detected gates, neither containing a line
of Python.
Put an agent's edits through it
wring verify --json exists so an agent can act on the result rather than
read prose about it. examples/claude-code-hook/
wires that into a coding session: after every edit, the gates run; if one
fails, the agent is handed the structured verdict and wring explain's
diagnosis and fixes it before carrying on. Passing gates say nothing.
That is the v0.1 shape of the v0.2 loop — worker, gate, evidence — with the
loop still driven by the agent rather than by wring run.
Why
The substrate is converging. Every serious AI-DLC implementation lands on the same five-layer architecture — and the frontier labs are each selling their piece of it. The code layer is commoditizing. What stays defensible is governance, deterministic verification, audit trails, and execution speed on top of the substrate.
Wringer is:
- Verified, not vibed. Deterministic gates (build / test / lint / custom linters) always run before any LLM judge. A loop cannot claim "done" without passing its declared verifier.
- A graph of loops. A node isn't a function call — it's a loop-bearing agent with a contract: budget, verifier, exit conditions. The graph wires those loops into an organization with typed edges and explicit inter-loop feedback paths.
- Physically worker/judge separated. The judge sees the rubric, the diff, and the gate outputs — never the worker's chain of reasoning. Engine guarantee, with tests.
- Auditable as a byproduct. Every run emits intent → plan → steps → evidence → delivery as queryable JSONL plus OpenTelemetry GenAI traces, with a per-loop cost ledger.
- Vendor-neutral by construction. The Graph IR references capabilities, never vendor resources. Adapters map capabilities to runtimes; a conformance suite proves each mapping.
Already using LangGraph, CrewAI, or Microsoft Agent Framework? Read the honest comparison — they're compile targets and peers here, not competitors.
A loop is a contract
loop:
kind: repair # repair | evaluator_optimizer | convergence | explore | evolve
budgets:
max_iterations: 6
max_cost_usd: 4.00
max_wall_clock: 45m
max_tokens: 800k
verify: # gates run in order, cheapest first
- gate: build
- gate: test
- gate: lint.custom.architecture-boundaries
- judge: rubric.acceptance-criteria # only if gates pass
exit:
on_pass: continue
on_budget_exhausted: escalate.human
on_oscillation: escalate.human # same-failure-signature repeated N times
on_plateau: best_effort_deliver
evidence: full # every iteration captured to the run bundle
Anti-thrash machinery is core, not optional: failure-signature hashing, score-plateau detection, judge-disagreement tracking, per-loop cost ledgers. The schema is an open spec — RFC discussion here.
A graph is an organization
flowchart LR
I([Intent<br/>issue · PRD · Slack]) --> S[agent_step<br/>scope]
S --> P[agent_step<br/>plan]
P --> H{human<br/>approve?}
H -- low-risk auto --> L
H -- approved --> L
subgraph L [loop: repair]
direction LR
W[worker<br/>writes code] --> G[gates<br/>build · test · lint]
G -- fail --> W
G -- pass --> J[judge<br/>isolated context]
J -- revise --> W
end
J -- pass --> D([deliver<br/>MR + evidence bundle])
L -. budget exhausted /<br/>oscillation .-> E{escalate<br/>to human}
The worker never sees the judge; the judge never sees the worker's chain of reasoning. Feedback edges are declared, not implied, so coupled-loop conflicts (speed loop vs quality loop) are inspectable instead of emergent.
Architecture (the north star)
The full five-layer architecture — protocol wires (ACP/MCP/A2A), swappable runtime/gateway/identity/memory planes, sandbox layer, self-evolution loop — is specified in the build plan. We are shipping it inside-out: the differentiated core first, the plumbing when the loop has earned it. Execution order is governed by ROADMAP.md.
┌─────────────────────────────────────────────────────────────────┐
│ L1 INTENT GitHub/GitLab issues · Linear · Jira · Slack │
├─────────────────────────────────────────────────────────────────┤
│ L2 HARNESS wringer-ir · wringer-engine · wringer-loops · wringer-verify │
│ wringer-context · wringer-policy │
├─────────────────────────────────────────────────────────────────┤
│ L3 WIRES ACP → coding agents · MCP → tools · │
│ A2A → other agents │
├─────────────────────────────────────────────────────────────────┤
│ L4 PLANES runtime · gateway · identity · model · memory │
│ (adapters — all swappable, conformance-tested) │
├─────────────────────────────────────────────────────────────────┤
│ L5 SANDBOX Docker/Podman · VM · gVisor · microVM │
├─────────────────────────────────────────────────────────────────┤
│ CROSS-CUTTING OTel GenAI traces · cost ledger · audit JSONL │
└─────────────────────────────────────────────────────────────────┘
Roadmap
| When | What | Proof |
|---|---|---|
| Days 1–30 | v0.1.0 — the evidence compiler (spec): wring init · wring verify · wring explain, evidence bundles, Python/pipx. Then the loop closes: wring run = verify-in-a-loop with your existing agent as worker |
Wringer verifies Wringer in CI + committed demo bundle |
| Days 31–60 | Durable execution (SQLite event log, wring resume), anti-thrash (oscillation + plateau detection), cost ledger, OTel GenAI traces |
crash-and-resume on camera |
| Days 61–90 | Graph of loops (scope → plan → repair → deliver), one human interrupt node, Wringer ships a Wringer PR |
the dogfooded PR, public |
Q3 2026 OKR: a GitHub issue becomes a passing MR for Python repos under $2.00 LLM spend. Q4 2026: TypeScript targets + the Temporal adapter. Everything else in the plan — gateway plane, policy, context autogen, skills, self-evolution — is deferred behind the working loop, with reasons.
Design principles (the short version)
- The harness never writes code.
- Separate the worker from the judge.
- Deterministic gates are the contract.
- Vendor-agnostic at every layer — no lock-in, ever.
- Loops are contracts; graphs are organizations.
- Audit trail as byproduct.
- Cost per task is a first-class metric.
- Build to delete.
The full eleven, with rationale, are in the plan.
Contributing
The highest-value contributions right now are design review and prior art on the open RFCs — the loop-contract schema, the gate plugin interface, and the evidence-bundle format. Code has started landing (wring init and wring verify work — see AGENTS.md for state and setup); green tests are the only law. See CONTRIBUTING.md.
License
Apache-2.0. Vendor-neutral, conformance-tested, built to be donated.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wringer-0.3.0.tar.gz.
File metadata
- Download URL: wringer-0.3.0.tar.gz
- Upload date:
- Size: 476.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
063783ec0e4ec9a2b5563638ecbd942a601b2bd9122e857e8236de1c16b5c671
|
|
| MD5 |
5ff7de7fce26890c0588ea1d3a14006f
|
|
| BLAKE2b-256 |
4fa2c3c7a4fcfff6a81efba5c81458774b1016eb2fb4b5d54e613111911a74cf
|
Provenance
The following attestation bundles were made for wringer-0.3.0.tar.gz:
Publisher:
release.yml on marcoakes/wringer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wringer-0.3.0.tar.gz -
Subject digest:
063783ec0e4ec9a2b5563638ecbd942a601b2bd9122e857e8236de1c16b5c671 - Sigstore transparency entry: 2387109143
- Sigstore integration time:
-
Permalink:
marcoakes/wringer@c41dd0770088730200686ed104658d69bc379dc7 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/marcoakes
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c41dd0770088730200686ed104658d69bc379dc7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file wringer-0.3.0-py3-none-any.whl.
File metadata
- Download URL: wringer-0.3.0-py3-none-any.whl
- Upload date:
- Size: 217.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
179df2a43761c12bfb63c7468f3373de65f2f1df162a70c2afb3be738f986714
|
|
| MD5 |
7816d99dfd07494785cb7d254ba10eb1
|
|
| BLAKE2b-256 |
15579f1e5e62b8caa25ff45d1808b42acc66deb987cc9b86ff3480084617ce05
|
Provenance
The following attestation bundles were made for wringer-0.3.0-py3-none-any.whl:
Publisher:
release.yml on marcoakes/wringer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wringer-0.3.0-py3-none-any.whl -
Subject digest:
179df2a43761c12bfb63c7468f3373de65f2f1df162a70c2afb3be738f986714 - Sigstore transparency entry: 2387109150
- Sigstore integration time:
-
Permalink:
marcoakes/wringer@c41dd0770088730200686ed104658d69bc379dc7 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/marcoakes
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c41dd0770088730200686ed104658d69bc379dc7 -
Trigger Event:
push
-
Statement type: