zyntry-verdict 0.1.6 → 0.1.8
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/README.md +59 -16
- package/bin/zv.mjs +37 -0
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -11,46 +11,89 @@ Zero dependencies. Node >= 18.
|
|
|
11
11
|
## Quick start
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npx zyntry-verdict signup # API key + $
|
|
14
|
+
npx zyntry-verdict signup # API key + $1 trial credit (no card)
|
|
15
15
|
npx zyntry-verdict provider meta --key <YOUR_MODEL_KEY> # BYOK: your model, your tokens
|
|
16
16
|
npx zyntry-verdict run multi-tenant-auth # watch the courtroom live
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
Or point it at **your own repo**:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
cd your-repo
|
|
23
|
+
npx zyntry-verdict init # scans your repo, generates .zyntry.case.json
|
|
24
|
+
npx zyntry-verdict run # three agents review YOUR code, live
|
|
25
|
+
```
|
|
26
|
+
|
|
19
27
|
The run streams the proceedings in your terminal — every proposal, APPROVED /
|
|
20
|
-
REJECTED rulings, claim transitions (
|
|
21
|
-
|
|
22
|
-
and CI.
|
|
28
|
+
REJECTED rulings, claim transitions (asserted → refuted → verified) — and exits
|
|
29
|
+
0 only when the verdict is `resolved-verified`, so it composes with scripts
|
|
30
|
+
and CI. If the stream is interrupted, the verdict completes server-side and
|
|
31
|
+
the CLI polls it to the end.
|
|
23
32
|
|
|
24
33
|
## Commands
|
|
25
34
|
|
|
26
35
|
```
|
|
27
|
-
|
|
36
|
+
init scan YOUR repo and generate .zyntry.case.json
|
|
37
|
+
signup create an API key with trial credits [--email <addr>]
|
|
28
38
|
balance credits + usage
|
|
29
39
|
topup <amount 5-500> pay via hosted checkout (card, bank transfer, mobile
|
|
30
40
|
money, crypto) — credits land automatically
|
|
31
41
|
provider [name] show or set YOUR model provider (meta | openai | ollama |
|
|
32
|
-
custom) — [--key <KEY>] or ZV_PROVIDER_KEY env
|
|
42
|
+
custom) — [--key <KEY>] [--baseUrl <url>] or ZV_PROVIDER_KEY env
|
|
33
43
|
cases list available case packs
|
|
34
|
-
run
|
|
35
|
-
[--mode route|courtroom]
|
|
44
|
+
run [caseId] open the courtroom and stream the verdict live
|
|
45
|
+
(auto-detects .zyntry.case.json) [--mode route|courtroom]
|
|
46
|
+
watch [caseId] auto-verdict on file change (the safety net)
|
|
47
|
+
gate [caseId] one-shot for git pre-commit hooks
|
|
48
|
+
(exits 0 only on resolved-verified)
|
|
49
|
+
stats <caseId> per-repo dashboard: win rate, escalation rate, spend
|
|
50
|
+
certify <verdictId> export a signed verdict certificate (compliance proof)
|
|
51
|
+
explain <verdictId> the full trial: verdict reasoning, every claim,
|
|
52
|
+
what the challenger proved
|
|
53
|
+
standards <caseId> show the sealed standard's growth (the visible moat)
|
|
36
54
|
```
|
|
37
55
|
|
|
38
56
|
## How it works
|
|
39
57
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
58
|
+
- **Route** — a cheap triage pass checks the work first ($0.03). If the sealed
|
|
59
|
+
standard passes, you're done. If it fails, the full courtroom opens ($0.75).
|
|
60
|
+
- **Court** — an Investigator builds the picture, a Challenger writes exploit
|
|
61
|
+
tests to break claims, a Proponent defends and fixes the code. Claims are
|
|
62
|
+
only verified when an executed test proves them.
|
|
63
|
+
- **Verdict** — streamed live, persisted, exportable as a signed certificate.
|
|
64
|
+
Every exploit test the Challenger ever proved is promoted into the sealed
|
|
65
|
+
standard: the bar rises with every run, and `standards` shows the timeline.
|
|
47
66
|
|
|
48
67
|
Bring your own model key (Meta, OpenAI, Ollama, or any OpenAI-compatible
|
|
49
68
|
endpoint). You pay your own token costs at cost — Zyntry charges only the
|
|
50
69
|
verdict fees.
|
|
51
70
|
|
|
71
|
+
## MCP for your AI coding agent
|
|
72
|
+
|
|
73
|
+
The same gateway is an MCP server (10 tools). One config line gives any
|
|
74
|
+
MCP-capable tool — Claude Code, Cursor, Windsurf, VS Code Copilot, Cline, Zed —
|
|
75
|
+
a verifier it cannot charm:
|
|
76
|
+
|
|
77
|
+
```json
|
|
78
|
+
{
|
|
79
|
+
"mcpServers": {
|
|
80
|
+
"zyntry-verdict": {
|
|
81
|
+
"url": "https://verdict.zyntry.space/v1/mcp",
|
|
82
|
+
"headers": { "Authorization": "Bearer zv_live_YOUR_KEY" }
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
The agent can then generate its own case (`zyntry_init_case`), submit its
|
|
89
|
+
work, read structured fix instructions (`zyntry_verify_and_fix`), explain the
|
|
90
|
+
verdict with evidence (`zyntry_explain_verdict`), and hand you a signed
|
|
91
|
+
certificate — the full self-correction loop without a human touching a terminal.
|
|
92
|
+
|
|
52
93
|
## Links
|
|
53
94
|
|
|
54
95
|
- Gateway: https://verdict.zyntry.space
|
|
96
|
+
- Docs: https://zyntry.space/products/zyntry-verdict/docs
|
|
97
|
+
- Public records — benchmarks, dogfood, security audit: https://github.com/devspak-s8/zyntry-verdict
|
|
55
98
|
- MCP: same gateway, `/v1/mcp`
|
|
56
|
-
- GitHub Action: submit PRs to the courtroom from CI
|
|
99
|
+
- GitHub Action: submit PRs to the courtroom from CI
|
package/bin/zv.mjs
CHANGED
|
@@ -580,6 +580,39 @@ async function cmdInit(flags) {
|
|
|
580
580
|
console.log(` ${DIM("npx zyntry-verdict watch")} ${DIM("(auto-verdict whenever files change)")}`);
|
|
581
581
|
}
|
|
582
582
|
|
|
583
|
+
async function cmdExplain(config, flags, positional) {
|
|
584
|
+
const verdictId = positional[0];
|
|
585
|
+
if (!verdictId) {
|
|
586
|
+
console.error("usage: zyntry-verdict explain <verdictId>");
|
|
587
|
+
console.error(" the full trial explained: verdict, every claim with its status, what the challenger proved");
|
|
588
|
+
process.exit(2);
|
|
589
|
+
}
|
|
590
|
+
const body = await api(config, flags, `/v1/verdicts/${verdictId}/explain`, { headers: authHeaders(config) });
|
|
591
|
+
const v = body.verdict ?? {};
|
|
592
|
+
console.log("");
|
|
593
|
+
console.log(GOLD(`⚖ ZYNTRY VERDICT — ${v.caseId ?? "?"} (${v.mode ?? "?"})`));
|
|
594
|
+
console.log(` status: ${v.status} · verdict: ${v.verdict ?? "n/a"} · ${v.calls ?? 0} calls / ${v.rounds ?? 0} rounds${v.escalated ? " · escalated to the courtroom" : ""}`);
|
|
595
|
+
if (v.verdict_reason) console.log(DIM(` reason: ${v.verdict_reason}`));
|
|
596
|
+
console.log("");
|
|
597
|
+
console.log(` ${body.summary ?? ""}`);
|
|
598
|
+
console.log("");
|
|
599
|
+
const claims = body.claims ?? [];
|
|
600
|
+
if (claims.length > 0) {
|
|
601
|
+
console.log(BOLD(" Claims:"));
|
|
602
|
+
for (const c of claims) {
|
|
603
|
+
const color = c.status === "verified" ? GREEN : c.status === "refuted" ? RED : c.status === "disputed" ? GOLD : DIM;
|
|
604
|
+
console.log(` ${color(`${c.status.padEnd(9)} ${c.id ?? ""}`)} ${(c.text ?? "").slice(0, 90)}`);
|
|
605
|
+
}
|
|
606
|
+
console.log("");
|
|
607
|
+
}
|
|
608
|
+
const failed = body.whatFailed ?? [];
|
|
609
|
+
if (failed.length > 0) {
|
|
610
|
+
console.log(BOLD(" What the challenger proved:"));
|
|
611
|
+
for (const c of failed) console.log(` ${RED("✗")} ${(c.text ?? "").slice(0, 90)}`);
|
|
612
|
+
console.log("");
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
|
|
583
616
|
async function cmdCertify(config, flags, positional) {
|
|
584
617
|
const verdictId = positional[0];
|
|
585
618
|
if (!verdictId) {
|
|
@@ -1051,6 +1084,7 @@ function printHelp() {
|
|
|
1051
1084
|
(exits 0 only on resolved-verified)
|
|
1052
1085
|
stats <caseId> per-repo dashboard: win rate, escalation rate, spend
|
|
1053
1086
|
certify <verdictId> export a signed verdict certificate (compliance proof)
|
|
1087
|
+
explain <verdictId> the full trial: verdict, every claim, what failed
|
|
1054
1088
|
standards <caseId> show the sealed standard's growth (visible moat)
|
|
1055
1089
|
|
|
1056
1090
|
git hook: zyntry-verdict gate --case my-case # in .git/hooks/pre-commit
|
|
@@ -1085,6 +1119,9 @@ switch (command) {
|
|
|
1085
1119
|
case "certify":
|
|
1086
1120
|
await cmdCertify(config, flags, positional);
|
|
1087
1121
|
break;
|
|
1122
|
+
case "explain":
|
|
1123
|
+
await cmdExplain(config, flags, positional);
|
|
1124
|
+
break;
|
|
1088
1125
|
case "standards":
|
|
1089
1126
|
await cmdStandards(config, flags, positional);
|
|
1090
1127
|
break;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zyntry-verdict",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Thin client for the Zyntry Verdict hosted AI courtroom — submit code, watch the adversarial courtroom stream live, get a verdict that can withstand scrutiny.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -35,3 +35,5 @@
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
+
|
|
39
|
+
|