wringer 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. wringer-0.1.0/LICENSE +201 -0
  2. wringer-0.1.0/PKG-INFO +256 -0
  3. wringer-0.1.0/README.md +226 -0
  4. wringer-0.1.0/pyproject.toml +54 -0
  5. wringer-0.1.0/setup.cfg +4 -0
  6. wringer-0.1.0/src/wringer/__init__.py +8 -0
  7. wringer-0.1.0/src/wringer/__main__.py +8 -0
  8. wringer-0.1.0/src/wringer/cli.py +652 -0
  9. wringer-0.1.0/src/wringer/config.py +208 -0
  10. wringer-0.1.0/src/wringer/detect.py +301 -0
  11. wringer-0.1.0/src/wringer/evidence.py +329 -0
  12. wringer-0.1.0/src/wringer/gates.py +225 -0
  13. wringer-0.1.0/src/wringer/git.py +175 -0
  14. wringer-0.1.0/src/wringer/redact.py +82 -0
  15. wringer-0.1.0/src/wringer/summary.py +160 -0
  16. wringer-0.1.0/src/wringer.egg-info/PKG-INFO +256 -0
  17. wringer-0.1.0/src/wringer.egg-info/SOURCES.txt +32 -0
  18. wringer-0.1.0/src/wringer.egg-info/dependency_links.txt +1 -0
  19. wringer-0.1.0/src/wringer.egg-info/entry_points.txt +3 -0
  20. wringer-0.1.0/src/wringer.egg-info/requires.txt +5 -0
  21. wringer-0.1.0/src/wringer.egg-info/top_level.txt +1 -0
  22. wringer-0.1.0/tests/test_cli.py +25 -0
  23. wringer-0.1.0/tests/test_config.py +192 -0
  24. wringer-0.1.0/tests/test_detect.py +176 -0
  25. wringer-0.1.0/tests/test_evidence.py +281 -0
  26. wringer-0.1.0/tests/test_explain.py +189 -0
  27. wringer-0.1.0/tests/test_gates.py +183 -0
  28. wringer-0.1.0/tests/test_git.py +248 -0
  29. wringer-0.1.0/tests/test_init.py +84 -0
  30. wringer-0.1.0/tests/test_interrupt.py +162 -0
  31. wringer-0.1.0/tests/test_redact.py +81 -0
  32. wringer-0.1.0/tests/test_schema.py +165 -0
  33. wringer-0.1.0/tests/test_summary.py +193 -0
  34. wringer-0.1.0/tests/test_verify.py +767 -0
wringer-0.1.0/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
wringer-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,256 @@
1
+ Metadata-Version: 2.4
2
+ Name: wringer
3
+ Version: 0.1.0
4
+ Summary: One command that proves whether this change is mergeable — wring verify, a standalone evidence compiler
5
+ Author: Marc Oakes
6
+ License: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/marcoakes/wringer
8
+ Project-URL: Repository, https://github.com/marcoakes/wringer
9
+ Project-URL: Roadmap, https://github.com/marcoakes/wringer/blob/main/ROADMAP.md
10
+ Keywords: ai-dlc,verification,evidence,gates,ci
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Operating System :: MacOS
16
+ Classifier: Operating System :: POSIX :: Linux
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Software Development :: Quality Assurance
22
+ Requires-Python: >=3.11
23
+ Description-Content-Type: text/markdown
24
+ License-File: LICENSE
25
+ Requires-Dist: PyYAML>=6.0
26
+ Provides-Extra: dev
27
+ Requires-Dist: pytest>=8.0; extra == "dev"
28
+ Requires-Dist: ruff>=0.6; extra == "dev"
29
+ Dynamic: license-file
30
+
31
+ <div align="center">
32
+
33
+ # 🗜️ Wringer
34
+
35
+ **The vendor-neutral AI-DLC harness — a control plane for AI-driven development.**
36
+
37
+ *Put every change through the wringer.*
38
+ *The harness runs the gates, keeps the receipts, and never writes the code itself.*
39
+
40
+ [![tests](https://github.com/marcoakes/wringer/actions/workflows/tests.yml/badge.svg)](https://github.com/marcoakes/wringer/actions/workflows/tests.yml)
41
+ [![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
42
+ [![v0.1.0: Sep 30, 2026](https://img.shields.io/badge/v0.1.0-Sep%2030%2C%202026-orange.svg)](ROADMAP.md)
43
+ [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](CONTRIBUTING.md)
44
+
45
+ [Quickstart](QUICKSTART.md) · [v0 spec](SPEC_VERIFY_V0.md) · [90-day roadmap](ROADMAP.md) · [Security](SECURITY.md) · [vs LangGraph](docs/wringer-vs-langgraph.md) · [Build plan](wringer-ai-dlc-harness-plan.md) · [RFCs](https://github.com/marcoakes/wringer/issues?q=is%3Aissue+RFC)
46
+
47
+ </div>
48
+
49
+ ---
50
+
51
+ 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.
52
+
53
+ 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.
54
+
55
+ ## What ships first
56
+
57
+ **Proof beats orchestration.** v0.1.0 is a standalone evidence compiler — one command:
58
+
59
+ > *One command that proves whether this change is mergeable, and leaves behind evidence a human or agent can inspect.*
60
+
61
+ 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):
62
+
63
+ ```
64
+ $ wring verify
65
+ ✓ lint passed 0.0s
66
+ ✗ test failed 0.1s
67
+
68
+ --- gates/002_test/stdout.log ---
69
+ def test_add():
70
+ > assert add(2, 2) == 4
71
+ E assert 5 == 4
72
+ E + where 5 = add(2, 2)
73
+
74
+ FAILED test_calc.py::test_add - assert 5 == 4
75
+ 1 failed in 0.01s
76
+
77
+ Evidence written to:
78
+ .wringer/runs/20260730-210750-b3ec/
79
+
80
+ Next:
81
+ open .wringer/runs/20260730-210750-b3ec/summary.md
82
+ rerun wring verify --gate test
83
+ ```
84
+
85
+ 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](QUICKSTART.md).
86
+
87
+ 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, no cloud, no uploads. 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](SPEC_VERIFY_V0.md)** — including the release bar: *Wringer verifies Wringer, in CI, with the demo bundle committed, before v0.1.0 tags.*
88
+
89
+ > ⚠️ **`.wringer.yaml` is code.** `wring verify` runs the commands a repository declares, through a shell, with your privileges — the same trust you extend to its `Makefile`. Read a stranger's `.wringer.yaml` before running `wring verify` in their repo. Gates are not sandboxed in v0.1; see [SECURITY.md](SECURITY.md), which also explains why an evidence bundle should be read before you share it.
90
+
91
+ 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. **`v0.1.0` no later than September 30, 2026** — see the [90-day roadmap](ROADMAP.md) and the [quickstart](QUICKSTART.md).
92
+
93
+ ## Wringer verifies Wringer
94
+
95
+ The claim is checkable, not rhetorical. This repo declares its own gates in
96
+ [`.wringer.yaml`](.wringer.yaml), CI runs `wring verify` on every push and
97
+ uploads the bundle, and a real one is committed at
98
+ [`.wringer.example/`](.wringer.example/) — manifest, timestamped event log,
99
+ summary, diff, and both gates' logs, exactly as produced:
100
+
101
+ ```
102
+ $ wring verify
103
+ ✓ lint passed 0.1s
104
+ ✓ test passed 17.6s
105
+
106
+ Evidence written to:
107
+ .wringer/runs/20260730-231645-a57c/
108
+ ```
109
+
110
+ That is the run committed at
111
+ [`.wringer.example/runs/20260730-231645-a57c/`](.wringer.example/runs/) — the
112
+ same id, so the transcript and the bundle are the same event rather than two
113
+ similar ones. That bundle is the answer to "how do I know?" — read it rather
114
+ than trust the badge.
115
+
116
+ ## The format is targetable, not just readable
117
+
118
+ The bundle is the interface, so it is [published as JSON
119
+ Schema](schema/) — `manifest.json`, each `evidence.jsonl` event, and each
120
+ gate's `result.json`, in draft 2020-12. Write a tool against the schema
121
+ rather than against this implementation. A test fails the build if the code
122
+ ever writes a field the schema does not declare.
123
+
124
+ ## It is not a Python tool
125
+
126
+ Wringer is *written* in Python; nothing about it is *for* Python. It runs the
127
+ commands your repo already declares. [`docs/beyond-python.md`](docs/beyond-python.md)
128
+ is the receipt — real captured output from a Make project whose test suite is
129
+ a shell script, and a Node project's detected gates, neither containing a line
130
+ of Python.
131
+
132
+ ## Put an agent's edits through it
133
+
134
+ `wring verify --json` exists so an agent can act on the result rather than
135
+ read prose about it. [`examples/claude-code-hook/`](examples/claude-code-hook/)
136
+ wires that into a coding session: after every edit, the gates run; if one
137
+ fails, the agent is handed the structured verdict and `wring explain`'s
138
+ diagnosis and fixes it before carrying on. Passing gates say nothing.
139
+
140
+ That is the v0.1 shape of the v0.2 loop — worker, gate, evidence — with the
141
+ loop still driven by the agent rather than by `wring run`.
142
+
143
+ ## Why
144
+
145
+ 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.
146
+
147
+ Wringer is:
148
+
149
+ - **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.
150
+ - **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.
151
+ - **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.
152
+ - **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.
153
+ - **Vendor-neutral by construction.** The Graph IR references *capabilities*, never vendor resources. Adapters map capabilities to runtimes; a conformance suite proves each mapping.
154
+
155
+ Already using LangGraph, CrewAI, or Microsoft Agent Framework? Read the [honest comparison](docs/wringer-vs-langgraph.md) — they're compile targets and peers here, not competitors.
156
+
157
+ ## A loop is a contract
158
+
159
+ ```yaml
160
+ loop:
161
+ kind: repair # repair | evaluator_optimizer | convergence | explore | evolve
162
+ budgets:
163
+ max_iterations: 6
164
+ max_cost_usd: 4.00
165
+ max_wall_clock: 45m
166
+ max_tokens: 800k
167
+ verify: # gates run in order, cheapest first
168
+ - gate: build
169
+ - gate: test
170
+ - gate: lint.custom.architecture-boundaries
171
+ - judge: rubric.acceptance-criteria # only if gates pass
172
+ exit:
173
+ on_pass: continue
174
+ on_budget_exhausted: escalate.human
175
+ on_oscillation: escalate.human # same-failure-signature repeated N times
176
+ on_plateau: best_effort_deliver
177
+ evidence: full # every iteration captured to the run bundle
178
+ ```
179
+
180
+ 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](https://github.com/marcoakes/wringer/issues?q=is%3Aissue+RFC).
181
+
182
+ ## A graph is an organization
183
+
184
+ ```mermaid
185
+ flowchart LR
186
+ I([Intent<br/>issue · PRD · Slack]) --> S[agent_step<br/>scope]
187
+ S --> P[agent_step<br/>plan]
188
+ P --> H{human<br/>approve?}
189
+ H -- low-risk auto --> L
190
+ H -- approved --> L
191
+ subgraph L [loop: repair]
192
+ direction LR
193
+ W[worker<br/>writes code] --> G[gates<br/>build · test · lint]
194
+ G -- fail --> W
195
+ G -- pass --> J[judge<br/>isolated context]
196
+ J -- revise --> W
197
+ end
198
+ J -- pass --> D([deliver<br/>MR + evidence bundle])
199
+ L -. budget exhausted /<br/>oscillation .-> E{escalate<br/>to human}
200
+ ```
201
+
202
+ 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.
203
+
204
+ ## Architecture (the north star)
205
+
206
+ 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](wringer-ai-dlc-harness-plan.md)**. 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](ROADMAP.md)**.
207
+
208
+ ```
209
+ ┌─────────────────────────────────────────────────────────────────┐
210
+ │ L1 INTENT GitHub/GitLab issues · Linear · Jira · Slack │
211
+ ├─────────────────────────────────────────────────────────────────┤
212
+ │ L2 HARNESS wringer-ir · wringer-engine · wringer-loops · wringer-verify │
213
+ │ wringer-context · wringer-policy │
214
+ ├─────────────────────────────────────────────────────────────────┤
215
+ │ L3 WIRES ACP → coding agents · MCP → tools · │
216
+ │ A2A → other agents │
217
+ ├─────────────────────────────────────────────────────────────────┤
218
+ │ L4 PLANES runtime · gateway · identity · model · memory │
219
+ │ (adapters — all swappable, conformance-tested) │
220
+ ├─────────────────────────────────────────────────────────────────┤
221
+ │ L5 SANDBOX Docker/Podman · VM · gVisor · microVM │
222
+ ├─────────────────────────────────────────────────────────────────┤
223
+ │ CROSS-CUTTING OTel GenAI traces · cost ledger · audit JSONL │
224
+ └─────────────────────────────────────────────────────────────────┘
225
+ ```
226
+
227
+ ## Roadmap
228
+
229
+ | When | What | Proof |
230
+ |---|---|---|
231
+ | **Days 1–30** | **v0.1.0 — the evidence compiler** ([spec](SPEC_VERIFY_V0.md)): `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** |
232
+ | **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 |
233
+ | **Days 61–90** | Graph of loops (scope → plan → repair → deliver), one `human` interrupt node, **Wringer ships a Wringer PR** | the dogfooded PR, public |
234
+
235
+ **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](ROADMAP.md#rulings-that-changed-from-the-v10-plan).
236
+
237
+ ## Design principles (the short version)
238
+
239
+ 1. The harness never writes code.
240
+ 2. Separate the worker from the judge.
241
+ 3. Deterministic gates are the contract.
242
+ 4. Vendor-agnostic at every layer — no lock-in, ever.
243
+ 5. Loops are contracts; graphs are organizations.
244
+ 6. Audit trail as byproduct.
245
+ 7. Cost per task is a first-class metric.
246
+ 8. Build to delete.
247
+
248
+ The full eleven, with rationale, are in [the plan](wringer-ai-dlc-harness-plan.md#3-design-principles).
249
+
250
+ ## Contributing
251
+
252
+ 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](https://github.com/marcoakes/wringer/issues?q=is%3Aissue+RFC). Code has started landing (`wring init` and `wring verify` work — see [AGENTS.md](AGENTS.md) for state and setup); green tests are the only law. See [CONTRIBUTING.md](CONTRIBUTING.md).
253
+
254
+ ## License
255
+
256
+ [Apache-2.0](LICENSE). Vendor-neutral, conformance-tested, built to be donated.