[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107572":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":13,"contributorsCount":14,"subscribersCount":14,"size":14,"stars1d":14,"stars7d":13,"stars30d":15,"stars90d":14,"forks30d":14,"starsTrendScore":13,"compositeScore":16,"rankGlobal":9,"rankLanguage":9,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":20,"topics":21,"createdAt":9,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":14,"starSnapshotCount":14,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},107572,"verdict","Balanov\u002Fverdict","Balanov","A 197 KB local semantic verifier for AI agent tool calls. Exit code 0 is not proof.",null,"Python",41,3,1,0,25,44.81,"Apache License 2.0",false,"main",true,[],"2026-11-15 01:00:44","2026-11-21 09:05:09","\u003Cdiv align=\"center\">\n  \u003Cimg src=\"assets\u002Flogo.svg\" alt=\"Verdict logo\" width=\"104\">\n  \u003Ch1>VERDICT\u003C\u002Fh1>\n  \u003Cp>\u003Cstrong>Exit code 0 is not proof.\u003C\u002Fstrong>\u003C\u002Fp>\n  \u003Cp>A 197 KB local model that reads a CLI tool call and returns\u003Cbr>\u003Ccode>success\u003C\u002Fcode>, \u003Ccode>failure\u003C\u002Fcode>, \u003Ccode>blocked\u003C\u002Fcode>, or \u003Ccode>unknown\u003C\u002Fcode>.\u003C\u002Fp>\n\u003C\u002Fdiv>\n\nVerdict is a research preview of a semantic outcome layer for coding agents, CI runners, and tool-using systems. It looks beyond the process exit code and reads the command, stdout, and stderr. Inference runs locally on CPU with **no Python dependencies**.\n\n> **Important:** Verdict is an advisory classifier, not proof that a task or environment mutation completed. Keep deterministic checks and authoritative state verification as the source of truth.\n\n## Why\n\nA process can exit successfully while running zero tests, returning an HTTP 500, waiting for a worker, or producing incomplete output. Conversely, a non-zero exit can describe an environment blocker rather than a failed assertion. Agents need that distinction before they retry, stop, or claim completion.\n\n## Benchmark\n\nEvaluated on **192 synthetic examples from 48 CLI families entirely absent from training**. Training used 1,440 synthetic examples from 60 different families.\n\n| Model | Accuracy | Macro-F1 | Size | Median inference |\n|---|---:|---:|---:|---:|\n| **Verdict 0.1 (int8)** | **93.2%** | **93.2%** | **197 KB** | **0.54 ms** |\n| Exit-code baseline | 47.9% | 31.9% | — | — |\n\nLatency is the median of 576 predictions on Windows 11 \u002F AMD64 \u002F Python 3.12, including feature extraction and the Python API call. These are reproducibility measurements, not cross-hardware promises. See [`bench\u002Fresults.json`](bench\u002Fresults.json) and reproduce with `python training\u002Ftrain.py`.\n\n**The corpus is synthetic and English-biased.** The benchmark measures generalization across held-out templates, not reliability on production agent traces. Real-trace validation is the next milestone.\n\n## Install and run\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FBalanov\u002Fverdict.git\ncd verdict\npython -m pip install .\n```\n\n```python\nfrom verdict_tiny import Verdict\n\nmodel = Verdict()\nresult = model.predict(\n    command=\"pytest tests\u002F\",\n    exit_code=0,\n    stdout=\"collected 0 items\\nno tests ran in 0.01s\",\n)\nprint(result)\n```\n\n```json\n{\n  \"label\": \"unknown\",\n  \"confidence\": 0.999981,\n  \"probabilities\": {\n    \"success\": 0.000019,\n    \"failure\": 0.0,\n    \"blocked\": 0.0,\n    \"unknown\": 0.999981\n  },\n  \"advisory\": true\n}\n```\n\n### CLI\n\n```bash\nprintf 'collected 0 items\\nno tests ran\\n' | verdict \\\n  --command 'pytest tests\u002F' --exit-code 0\n```\n\nUse `--stdout output.log`, `--stderr error.log`, and `--weights \u002Fpath\u002Fto\u002Fverdict-q8.bin` when needed.\n\n### Browser demo\n\nThe [project page](https:\u002F\u002Fbalanov.pro\u002Fresearch\u002Fverdict\u002F) runs the same quantized weights in your browser. Logs are not uploaded.\n\n## Output contract\n\n| Label | Meaning |\n|---|---|\n| `success` | Output contains positive evidence that the operation completed. |\n| `failure` | The operation ran and reported a concrete failure. |\n| `blocked` | Permissions, dependencies, network, quota, or environment prevented execution. |\n| `unknown` | Evidence is absent, incomplete, skipped, dry-run-only, or otherwise inconclusive. |\n\nProbabilities come from a linear multiclass model and are not calibrated confidence in a safety-critical sense. Use thresholds and human or deterministic review for consequential actions.\n\n## Model\n\n- **Architecture:** hashed character 3–5-grams and word 1–3-grams → multiclass logistic regression.\n- **Parameters:** 196,608 int8 weights plus four biases and per-class scales.\n- **Input:** command, exit code, stdout, stderr; UTF-8 text, bounded to 12,288 characters per output stream with explicit head\u002Ftail clipping.\n- **Runtime:** pure Python standard library; no tokenizer files, GPU, network calls, or telemetry.\n- **Weights:** [`weights\u002Fverdict-q8.bin`](weights\u002Fverdict-q8.bin), also on [Hugging Face](https:\u002F\u002Fhuggingface.co\u002FBalanovAN\u002Fverdict).\n\nVerdict is deliberately narrow: it classifies observed CLI evidence; it does not judge task completion, code correctness, safety, or truthfulness.\n\n## Reproduce\n\n```bash\npython -m pip install -e '.[train,dev]'\npython training\u002Ftrain.py\npytest -q\n```\n\nThe training script regenerates the public corpus, trains from scratch, exports int8 weights, evaluates the quantized artifact, and writes benchmark metrics.\n\n## Repository layout\n\n```text\nassets\u002F              logo and editable vector source\nbench\u002F               measured metrics\ndata\u002F                synthetic train and held-out test JSONL (CC0)\nsrc\u002Fverdict_tiny\u002F    zero-dependency inference and CLI\ntraining\u002F            corpus, features, training and export\nweights\u002F             release weights and config\nsite\u002F                multilingual research page and browser demo\n```\n\n## License\n\nCode and model weights: **Apache-2.0**. Synthetic dataset: **CC0-1.0**. Fork it, modify it, ship it. See [`LICENSE`](LICENSE) and [`data\u002FLICENSE`](data\u002FLICENSE).\n\n## Cite\n\n```bibtex\n@misc{balanov2026verdict,\n  title  = {Verdict: Tiny Semantic Outcome Verification for AI Agents},\n  author = {Balanov, Anton},\n  year   = {2026},\n  url    = {https:\u002F\u002Fbalanov.pro\u002Fresearch\u002Fverdict\u002F}\n}\n```\n","Verdict 是一个轻量级（197 KB）本地语义验证器，用于判断 AI 代理调用 CLI 工具后的实际执行结果是否符合预期。它不依赖进程退出码，而是综合解析命令、标准输出和标准错误内容，输出 success\u002Ffailure\u002Fblocked\u002Funknown 四类语义判定，并附带置信度。模型纯 CPU 运行，无 Python 依赖，支持 Python API 和命令行调用。适用于需要精细化结果归因的场景，如 AI 编程代理的工具调用反馈、CI 流水线状态解释、自动化运维脚本的语义级失败诊断等。",2,"2026-11-24 04:32:17","CREATED_QUERY"]