crossproof 0.0.0-stage → 0.1.0

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.
package/LICENSE ADDED
@@ -0,0 +1,27 @@
1
+ Crossproof License (Early Access)
2
+
3
+ Copyright (c) 2026 Crossproof. All rights reserved.
4
+
5
+ 1. Grant. You may download, install and use this software free of charge, for
6
+ personal or internal business purposes, including on commercial projects.
7
+
8
+ 2. Restrictions. You may not, without prior written permission:
9
+ a) redistribute, sublicense, sell or rent the software or a modified version
10
+ of it, or offer it as a hosted or managed service;
11
+ b) modify, decompile, de-minify or reverse engineer the software, except to
12
+ the extent applicable law expressly permits it.
13
+
14
+ 3. Ownership. The software is licensed, not sold. All rights not expressly
15
+ granted are reserved.
16
+
17
+ 4. Early access. Features, terms and pricing may change in future versions.
18
+ This license applies to the versions it is distributed with.
19
+
20
+ 5. No warranty. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21
+ EXPRESS OR IMPLIED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM,
22
+ DAMAGES OR OTHER LIABILITY ARISING FROM THE USE OF THE SOFTWARE.
23
+
24
+ 6. Third-party components. The bundled file includes open-source components
25
+ (such as @modelcontextprotocol/sdk and zod) under their own licenses.
26
+
27
+ Contact: crossproofdev@gmail.com
package/README.md CHANGED
@@ -1,3 +1,73 @@
1
- # Temporary Holding Version
1
+ # Crossproof
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **Don't trust "all tests pass". One model writes, a model from another provider reviews, Crossproof runs every claim itself — and you have the final say.**
4
+
5
+ Crossproof is a local verification bench for AI coding agents (Claude Code, OpenCode, or any MCP-capable agent you run yourself). It sits between the agent and your main branch:
6
+
7
+ ```
8
+ task ─► writer agent (own git worktree) ─► submit_for_review(claims)
9
+ ─► Crossproof runs the checks itself ─► [you: send to review?]
10
+ ─► reviewer agent from another provider ─► findings + criteria status
11
+ ─► [you: which findings are real?] ─► fix round (max N) or
12
+ ─► [you: approve] ─► merge commit with provenance
13
+ ```
14
+
15
+ > Early access (v0.1). Linux is the tested platform. Feedback: crossproofdev@gmail.com
16
+
17
+ ## What it checks
18
+
19
+ | Check | How |
20
+ |---|---|
21
+ | **Claim check** | The writer submits *typed* claims (`tests_pass`, `build_ok`, `lint_ok`, `typecheck_ok`, `files_changed`, `custom`). Crossproof runs the project's own commands in a **network-less sandbox** (bubblewrap → `unshare -n` → plain, with a warning) and marks each ✅ verified, ❌ refuted or ⚪ unverifiable. A refuted claim becomes a confirmed finding. Writer-defined `custom` commands only run if they are on your allowlist. |
22
+ | **Verification surface** | If the writer touched tests, CI, lint/test config or `package.json` scripts — the easiest way to make checks pass without fixing anything — you and the reviewer are told explicitly. |
23
+ | **Scope** | Files changed outside the task's `--scope` globs are flagged. |
24
+ | **Hallucinated dependencies** | Every *new* dependency in `package.json`, `requirements*.txt`, `pyproject.toml` or `Cargo.toml` is looked up on npm / PyPI / crates.io: missing → critical, brand-new → high, barely downloaded → medium. |
25
+ | **Provenance** | On approval, a `--no-ff` merge commit carries `Crossproof-*` trailers and `.crossproof/provenance/<task>.json` (who wrote, who reviewed, claim results, finding counts, diff SHA-256, who approved). No prompts, code or review text. |
26
+ | **Stats** | `crossproof stats`: false-claim rate per writer, finding precision per reviewer. |
27
+
28
+ ## Quick start
29
+
30
+ Requirements: Node ≥ 20, git, and at least one agent CLI you are already signed in to (e.g. `claude`, `opencode`). On Linux, install `bubblewrap` for the strongest sandbox.
31
+
32
+ ```bash
33
+ cd your-repo
34
+ npx crossproof init --check # discover test/build/lint commands, try them once
35
+ git add .crossproof/config.json && git commit -m "crossproof config"
36
+
37
+ npx crossproof task new --title "Add slugify" \
38
+ --criteria "slug.js exports slugify" --scope slug.js --scope test/ \
39
+ --writer claude --reviewer opencode:opencode/big-pickle
40
+
41
+ npx crossproof run <task-id> # asks you at every gate; --yes accepts the defaults
42
+ npx crossproof stats
43
+ ```
44
+
45
+ ### Agents
46
+
47
+ | Spec | Runs |
48
+ |---|---|
49
+ | `claude` / `claude:<model>` | Claude Code, headless (`claude -p`), with an MCP config scoped to this session only and a restricted tool allowlist |
50
+ | `opencode:<provider/model>` | `opencode run --pure` with a session-only `OPENCODE_CONFIG` |
51
+ | `manual` | Crossproof prints an MCP config and a prompt; **you** start any MCP-capable agent yourself, interactively, on your own subscription |
52
+
53
+ Crossproof never reads, copies or proxies agent credentials, and never touches your global agent configuration. Note that headless `claude -p` may be billed differently from interactive use on some plans — check your provider's terms; `manual` is the most conservative option.
54
+
55
+ ### The MCP bus
56
+
57
+ Agents connect to a local MCP server (Streamable HTTP on `127.0.0.1`, random port) with a per-session bearer token. Each role only sees its own tools:
58
+
59
+ - writer: `get_task`, `submit_for_review`, `get_findings`
60
+ - reviewer: `get_task`, `get_diff`, `report_finding`, `review_done`
61
+
62
+ ## Files
63
+
64
+ | Where | What |
65
+ |---|---|
66
+ | `.crossproof/config.json` | verify commands, sandbox, thresholds, `customAllowlist` (commit it) |
67
+ | `.crossproof/provenance/` | provenance records (part of the merge commit) |
68
+ | `~/.crossproof/state/` | tasks, findings, audit log |
69
+ | `~/.crossproof/worktrees/` | task worktrees (your checkout stays clean) |
70
+
71
+ ## License
72
+
73
+ Free to use for personal and internal business purposes; see [LICENSE](LICENSE). Bundled open-source components are listed in `bundle/THIRD_PARTY_NOTICES.txt`.
@@ -0,0 +1,280 @@
1
+ Crossproof bundles the following third-party packages:
2
+
3
+ ========================================================================
4
+ @hono/node-server@2.1.11 — MIT
5
+ ========================================================================
6
+ MIT License
7
+
8
+ Copyright (c) 2022 - present, Yusuke Wada and Hono contributors
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ ========================================================================
29
+ @modelcontextprotocol/sdk@1.32.2 — MIT
30
+ ========================================================================
31
+ MIT License
32
+
33
+ Copyright (c) 2024 Anthropic, PBC
34
+
35
+ Permission is hereby granted, free of charge, to any person obtaining a copy
36
+ of this software and associated documentation files (the "Software"), to deal
37
+ in the Software without restriction, including without limitation the rights
38
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
39
+ copies of the Software, and to permit persons to whom the Software is
40
+ furnished to do so, subject to the following conditions:
41
+
42
+ The above copyright notice and this permission notice shall be included in all
43
+ copies or substantial portions of the Software.
44
+
45
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
46
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
47
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
48
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
49
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
50
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
51
+ SOFTWARE.
52
+
53
+ ========================================================================
54
+ ajv@8.20.0 — MIT
55
+ ========================================================================
56
+ The MIT License (MIT)
57
+
58
+ Copyright (c) 2015-2021 Evgeny Poberezkin
59
+
60
+ Permission is hereby granted, free of charge, to any person obtaining a copy
61
+ of this software and associated documentation files (the "Software"), to deal
62
+ in the Software without restriction, including without limitation the rights
63
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
64
+ copies of the Software, and to permit persons to whom the Software is
65
+ furnished to do so, subject to the following conditions:
66
+
67
+ The above copyright notice and this permission notice shall be included in all
68
+ copies or substantial portions of the Software.
69
+
70
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
71
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
72
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
73
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
74
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
75
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
76
+ SOFTWARE.
77
+
78
+ ========================================================================
79
+ ajv-formats@3.0.1 — MIT
80
+ ========================================================================
81
+ MIT License
82
+
83
+ Copyright (c) 2020 Evgeny Poberezkin
84
+
85
+ Permission is hereby granted, free of charge, to any person obtaining a copy
86
+ of this software and associated documentation files (the "Software"), to deal
87
+ in the Software without restriction, including without limitation the rights
88
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
89
+ copies of the Software, and to permit persons to whom the Software is
90
+ furnished to do so, subject to the following conditions:
91
+
92
+ The above copyright notice and this permission notice shall be included in all
93
+ copies or substantial portions of the Software.
94
+
95
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
96
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
97
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
98
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
99
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
100
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
101
+ SOFTWARE.
102
+
103
+ ========================================================================
104
+ content-type@1.0.5 — MIT
105
+ ========================================================================
106
+ (The MIT License)
107
+
108
+ Copyright (c) 2015 Douglas Christopher Wilson
109
+
110
+ Permission is hereby granted, free of charge, to any person obtaining
111
+ a copy of this software and associated documentation files (the
112
+ 'Software'), to deal in the Software without restriction, including
113
+ without limitation the rights to use, copy, modify, merge, publish,
114
+ distribute, sublicense, and/or sell copies of the Software, and to
115
+ permit persons to whom the Software is furnished to do so, subject to
116
+ the following conditions:
117
+
118
+ The above copyright notice and this permission notice shall be
119
+ included in all copies or substantial portions of the Software.
120
+
121
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
122
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
123
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
124
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
125
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
126
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
127
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
128
+
129
+ ========================================================================
130
+ fast-deep-equal@3.1.3 — MIT
131
+ ========================================================================
132
+ MIT License
133
+
134
+ Copyright (c) 2017 Evgeny Poberezkin
135
+
136
+ Permission is hereby granted, free of charge, to any person obtaining a copy
137
+ of this software and associated documentation files (the "Software"), to deal
138
+ in the Software without restriction, including without limitation the rights
139
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
140
+ copies of the Software, and to permit persons to whom the Software is
141
+ furnished to do so, subject to the following conditions:
142
+
143
+ The above copyright notice and this permission notice shall be included in all
144
+ copies or substantial portions of the Software.
145
+
146
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
147
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
148
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
149
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
150
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
151
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
152
+ SOFTWARE.
153
+
154
+ ========================================================================
155
+ fast-uri@3.1.9 — BSD-3-Clause
156
+ ========================================================================
157
+ Copyright (c) 2011-2021, Gary Court until https://github.com/garycourt/uri-js/commit/a1acf730b4bba3f1097c9f52e7d9d3aba8cdcaae
158
+ Copyright (c) 2021-present The Fastify team <https://github.com/fastify/fastify#team>
159
+ All rights reserved.
160
+
161
+ Redistribution and use in source and binary forms, with or without
162
+ modification, are permitted provided that the following conditions are met:
163
+ * Redistributions of source code must retain the above copyright
164
+ notice, this list of conditions and the following disclaimer.
165
+ * Redistributions in binary form must reproduce the above copyright
166
+ notice, this list of conditions and the following disclaimer in the
167
+ documentation and/or other materials provided with the distribution.
168
+ * The names of any contributors may not be used to endorse or promote
169
+ products derived from this software without specific prior written
170
+ permission.
171
+
172
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
173
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
174
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
175
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY
176
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
177
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
178
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
179
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
180
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
181
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
182
+
183
+ * * *
184
+
185
+ The complete list of contributors can be found at:
186
+ - https://github.com/garycourt/uri-js/graphs/contributors
187
+
188
+ ========================================================================
189
+ hono@4.13.23 — MIT
190
+ ========================================================================
191
+ MIT License
192
+
193
+ Copyright (c) 2021 - present, Yusuke Wada and Hono contributors
194
+
195
+ Permission is hereby granted, free of charge, to any person obtaining a copy
196
+ of this software and associated documentation files (the "Software"), to deal
197
+ in the Software without restriction, including without limitation the rights
198
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
199
+ copies of the Software, and to permit persons to whom the Software is
200
+ furnished to do so, subject to the following conditions:
201
+
202
+ The above copyright notice and this permission notice shall be included in all
203
+ copies or substantial portions of the Software.
204
+
205
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
206
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
207
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
208
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
209
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
210
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
211
+ SOFTWARE.
212
+
213
+ ========================================================================
214
+ json-schema-traverse@1.0.0 — MIT
215
+ ========================================================================
216
+ MIT License
217
+
218
+ Copyright (c) 2017 Evgeny Poberezkin
219
+
220
+ Permission is hereby granted, free of charge, to any person obtaining a copy
221
+ of this software and associated documentation files (the "Software"), to deal
222
+ in the Software without restriction, including without limitation the rights
223
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
224
+ copies of the Software, and to permit persons to whom the Software is
225
+ furnished to do so, subject to the following conditions:
226
+
227
+ The above copyright notice and this permission notice shall be included in all
228
+ copies or substantial portions of the Software.
229
+
230
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
231
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
232
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
233
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
234
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
235
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
236
+ SOFTWARE.
237
+
238
+ ========================================================================
239
+ zod@4.6.7 — MIT
240
+ ========================================================================
241
+ MIT License
242
+
243
+ Copyright (c) 2025 Colin McDonnell
244
+
245
+ Permission is hereby granted, free of charge, to any person obtaining a copy
246
+ of this software and associated documentation files (the "Software"), to deal
247
+ in the Software without restriction, including without limitation the rights
248
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
249
+ copies of the Software, and to permit persons to whom the Software is
250
+ furnished to do so, subject to the following conditions:
251
+
252
+ The above copyright notice and this permission notice shall be included in all
253
+ copies or substantial portions of the Software.
254
+
255
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
256
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
257
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
258
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
259
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
260
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
261
+ SOFTWARE.
262
+
263
+ ========================================================================
264
+ zod-to-json-schema@3.25.2 — ISC
265
+ ========================================================================
266
+ ISC License
267
+
268
+ Copyright (c) 2020, Stefan Terdell
269
+
270
+ Permission to use, copy, modify, and/or distribute this software for any
271
+ purpose with or without fee is hereby granted, provided that the above
272
+ copyright notice and this permission notice appear in all copies.
273
+
274
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
275
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
276
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
277
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
278
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
279
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
280
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.