Verdict QA

io.github.ArtJack由 GitHub 账号 ArtJack 发布v0.94.0更新于 Nov 21, 2026

Read-only MCP server over Verdict QA state: verdicts, findings, flaky quarantine, history.

概览

AI 生成的概览

只读 MCP 服务器,向任意 MCP 客户端提供 Verdict QA 状态:判定结果、发现项、不稳定测试隔离、问题、历史与报告。

可以做什么
  • 读取项目最近一次判定、发布阻断项、报告路径与未测试清单
  • 按状态列出发现项(open、all 或 NEW/STILL_OPEN/RESOLVED/REGRESSED,回归项优先)
  • 查看不稳定测试隔离台账及其到期标记,以及等待人工回答的遗留问题
  • 读取运行历史、趋势、按严重度与存续时间的压力画像、缺陷热点,以及完整报告内容
  • 列出已有基线的项目,并获取原始状态或项目 QA 配置
适用场景
当编码代理、编排器或 CI 步骤需要在合并或修复前查阅已有的 Verdict QA 基线时适用,例如用已存判定来把关 PR,或把未关闭的发现项拉进另一个代理的会话。它只读取 Verdict 运行已经产生的状态。
运行要求
以 PyPI 包 verdict-qa-mcp(命令行脚本 verdict-mcp)通过 stdio 在本地运行,通常用 uvx 启动或用 pipx 安装;需要 Python 3.10 及以上,以及 uv 或 pipx。它从个人根目录(可用 VERDICT_HOME 覆盖)或团队模式下仓库的 .qa 目录读取状态,因此必须已存在 Verdict 基线。
安装前请注意
该服务器声明为只读、从不写入,但它会把可能包含报告内容、发现项和仓库文件路径的 QA 状态暴露给任何连接的 MCP 客户端。回答遗留问题需通过另一个命令行工具,而非本服务器。完整的 Verdict 插件会安装在你会话中运行 Python 的钩子;这些范围守卫被描述为启发式而非沙箱,且仅在设置 VERDICT_STRICT=1 时启用。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Verdict QA,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Verdict

CI · verdict on itself · eval: 8/8 seeded defects · pinned rules: 571/571 killed · PyPI: verdict-qa-mcp · OpenSSF Best Practices: passing · MIT license

Your test suite is green. Verdict found a defect that had lived 4,595 days.

Verdict is a QA agent that does not fix, does not flatter, and does not forget. It measures before it judges — the harness runs your gates, hashes every line a finding cites, re-runs the guarding test at the old commit and the new one — and it keeps a memory: every run is a delta against the last, findings age, regressions rank first, and the tester's own misses are published beside its hits. The contract it runs under is immutable and hashed into every verdict; what it learns lives beside the contract, dated and auditable, and never edits it. The number above is real: FilePerms in a 7k★ Python library could not revoke a permission bit since 2014-02-07, and every one of its 625 tests was green the day Verdict filed it — the run, and the misses, are in the ledger.

/plugin marketplace add ArtJack/verdict     # Claude Code/plugin install verdict@verdict/verdict:run
npx skills add ArtJack/verdict              # every other coding agent

Most AI "QA agents" are a paragraph of enthusiasm with a checklist. They audit your repo from scratch every time, re-report the same 20 findings until you stop reading, call flaky tests "failures", call stale tests "failures", and end with "LGTM! 🎉".

Verdict is a Claude Code plugin built the way QA is actually practiced:

  • It remembers. A state file carries the baseline. Every finding gets a stable ID and an age; every run reports NEW / STILL_OPEN / RESOLVED / REGRESSED — regressions ranked first, always.
  • A red test means something. Every failure is classified — REAL_DEFECT, STALE_EXPECTATION (which needs a citation proving the change was intended), BRITTLE_TEST, ENVIRONMENT, or FLAKY (confirmed by re-runs, quarantined with an expiry). The classification most likely to excuse a regression carries the highest evidence bar.
  • A verdict you can defend. Every run ends in exactly one of pass | pass with risks | blocked | fail — an open Blocker forces fail, blocked is a legitimate outcome, and a pass always names what was not tested.
  • It never fixes your code. There is no Edit tool, a hook confines its writes to the QA root, and a strict-mode Bash guard closes the shell's write channels — a tester that patches what it judges isn't independent. The guard is a heuristic, not a sandbox, and the README says so.
  • It is tested, and it tests itself. A scored eval suite with the misses published, a hash-chained run history a copied or edited state fails, a track record the harness computes rather than the tester — and an audit of its own releases: 78 findings filed against itself in its first 15 runs — 59 fixed with the fix verified, one an accepted risk on the record, two still open, and 16 closed without proof, which its own ledger counts as unknown, not as wins. Every fixed harness rule is pinned as a mutant the suite must kill.

What a run looks like: a real delta report — Verdict on its own code, run 14.

Who pays for the model? You do, with the Claude subscription you already have: the plugin runs inside your own session, nothing routes through anyone else, and everything below the model — the state, the gate, the harness, the eval scorer — is stdlib Python (the optional MCP server adds the mcp SDK) that runs for free. Works on Python, TypeScript, Go, or anything with a test runner; the eval fixtures cover Python and TypeScript.

Read next: Install · What installs, and when it runs · Quickstart · Why another QA agent · The tested tester · CI gate · Accepting a risk · FAQ

Install

/plugin marketplace add ArtJack/verdict/plugin install verdict@verdict

Any other coding agent — Cursor, Codex, OpenCode and the rest of the agent skills ecosystem — gets the same doctrine as five skills, and the same harness as a pip package:

npx skills add ArtJack/verdict        # release risk · verify a fix · flaky triage · root cause · spec reviewpip install verdict-qa-mcp            # verdict-facts, verdict-finalize, verdict-gate, verdict-accept, verdict-answer, verdict-replay, verdict-dupes

Listed on skills.sh.

The skills restate the contract for an agent that cannot run the verdict agent; the hooks that enforce the read-only guarantee exist only in Claude Code, so there the guarantee is the agent's own discipline plus the harness's refusals. AGENTS.md and llms.txt at the repository root are for agents that read before they act.

Python 3.9 or newer, whatever your python3 resolves to — the hooks and the fact harness are stdlib-only and are invoked by that name, which on a stock Mac is /usr/bin/python3 (3.9). The optional MCP server is a pip install and needs 3.10+, which is what requires-python in pyproject.toml refers to. The floor is tested: a module that would fail to import on 3.9 fails CI instead (tests/test_interpreter_floor.py) — because the failure it prevents was silent. The Bash guard once raised on import there while the write guard beside it kept working, so a strict session looked armed with half its controls missing.

What installs, and when it runs

Installing a plugin means letting its code run in your sessions, so here is exactly what this one does — measured from hooks/hooks.json, not summarised from memory. Six hook registrations; each starts a python3 (tens of milliseconds) when its event fires:

EventFires onScriptSilent when
PreToolUseWrite/Edit/MultiEdit/NotebookEditwrite-scope guardalways, unless VERDICT_STRICT=1 or the caller is the verdict agent itself — and for one path in any session: a QA root's accepted.json / answers.json, which only verdict-accept / verdict-answer write
PreToolUseBashbash-scope guardalways, unless VERDICT_STRICT=1 or the caller is the verdict agent itself
PostToolUseWrite/Edit/MultiEditstate validatorunless the written file is a QA root's state.json or findings/<ID>.json
Stop / SubagentStopend of turnrun-contract checkunless a QA run in this session left hand-written state, or a Verdict agent of this session measured the facts and is stopping without verdict-finalize (the run marker names the session; another session's marker, or another agent stopping beside a run in progress, says nothing) — each blocks at most once, never loops
SessionStartsession openfindings banner, or a one-time first-run hintunless the repository has QA state — or, for the hint, unless it is a fresh interactive start in a git repository with a test suite Verdict has never seen (once per repository, three repositories per person, never with VERDICT_STRICT, VERDICT_NO_HINT=1 or a headless claude -p)

Every hook fails open: malformed input, missing files, or an exception mean exit 0 and silence — a broken hook must never brick a session. VERDICT_STRICT=1 is what arms the scope guards, and you set it only for dedicated QA sessions (headless, CI, the nightly); in ordinary interactive work the guards are no-ops.

Prefer not to install globally? Everything works per-repository: copy agents/verdict.md into <repo>/.claude/agents/ and the hooks/hooks.json entries into <repo>/.claude/settings.json, with ${CLAUDE_PLUGIN_ROOT} replaced by a checkout path. That is exactly how the eval harness provisions its scratch projects — eval/run_eval.py is the reference implementation.

Quickstart

/verdict:run                          # first run: profile + isolation rules + baseline/verdict:run the payment retry change   # every later run: a delta against the stored state

Every later run is a delta against the stored state. A repeat run returns something like:

text
VERDICT: fail
Scope: 2c67f47..b4e2943 (4 commits, 16 files) · run 4 (delta)Isolation check: pass (no .env present; no live service touched)
Findings — REGRESSED first:REGRESSED  PRICER-F-002  Critical/P0  round_cents uses banker's rounding again (pricer.py:17)                         resolved 08-19, reintroduced by b4e2943 — this forces the verdictNEW        PRICER-F-007  Major/P1     quarantine graveyard: test_listable_at_floor_exactly                         skipped 114 days with no expiry — it is the test that would catch F-001STILL_OPEN PRICER-F-001  Critical/P0  age 6d  is_listable rejects a price exactly at the floorFLAKY      test_bulk_discount_applies — fails 3/6 runs with no code change; quarantined           until 2026-09-07, excluded from this verdict, listed until re-evaluated
Delta gates: tests 213 → 213 · duration +0.4% · coverage on changed files: no decreaseRelease blockers: PRICER-F-002 (regressed), PRICER-F-001Not tested: concurrency under parallel checkout — no harness presentFix order: 1) F-002  2) F-001 (unskip its test first, watch it fail red)  3) F-007 expiryArtifact: .qa/reports/2026-08-24-pricer-review.md

Why another QA agent

Typical qa-expert.mdVerdict
Remembers the last runno — every run is a fresh auditstate file; NEW/STILL_OPEN/RESOLVED/REGRESSED with ages
Flaky tests"keep flakes under 1%" (prose)quarantine ledger with mandatory expiry; flakes excluded from the verdict, never from the report
Release decision"go/no-go" appears as a checklist wordfour-verdict contract; an open Blocker forces fail
Red test triage"investigate failures"five-class taxonomy; STALE_EXPECTATION requires an intent citation
Quality gates">90% coverage" absolutesdirection gates: coverage on changed files must not decrease; 0 tests collected ≠ 1 test failing
Test design"test edge cases"24-technique catalog with risk triggers — incl. property-based, metamorphic (for ML/LLM output), MC-DC, contract tests (docs/test-design.md)
Can edit your codenothing stops itno Edit tool + write-scope hook + strict-mode Bash guard
Securityignored, or oversoldopt-in report-only pass: dependency audit + diff secret scan; pentest explicitly out of scope
Risk prioritisation"focus on high-risk areas"the ranking is computed from the project's own finding history (severity-weighted, paths merged across citation depths), and the report must show the ranking, the cutoff, and everything below it — which lands in not-tested
Root cause"investigate the failure"a four-link chain with a citation per link, a mandatory class check (is this an instance or a pattern?), and causation proven by flipping the cause in a scratch copy — with its own scored fixture built around a decoy
Requirements reviewnever — code only/verdict:spec judges the spec before code exists (contradictions, unmeasurables, boundary ambiguities, history conflicts) — with its own scored eval fixture
"No bugs found!"frequentlynever — coverage, gaps, and residual risk instead
AI-authored codesame checklist as human codeprovenance measured (trailer census over the range, profile authorship); a pattern catalog with a procedure and evidence bar per entry (docs/ai-authored-code.md); deterministic censuses for hallucinated imports, placeholders and swallowed errors feed judgment — and a scored fixture proves the behaviours
Its own accuracyunmeasured, and unmeasurable after the factevery finding states a confidence when filed; the outcome is computed from what the finding did, kept in a permanent ledger, and reported as a track record the harness computes rather than the tester
Tested itself—scored eval suite: baseline + delta-memory + adversarial-honesty fixtures, deterministic scorer, published answer keys (eval/)
State consumable by other tools—verdict-mcp: read-only MCP server over the state — works from Cursor, Codex, CI, any MCP client

The tested tester

A QA agent that was never tested is exactly the kind of claim it should reject. eval/ is a scored eval suite with a deterministic scorer — score.py reads the state file, not the prose — and eight fixtures, the four that carry the headline claims:

  • Baseline (fixtures/pricer): 8 seeded issues covering all five failure classifications, including a boundary defect hidden behind a "temporarily" skipped test and a stale expectation whose intent citation sits in the CHANGELOG. Answer key.
  • Delta (fixtures/pricer_rev_b): scores the flagship — a run against an authored run-2 history must produce REGRESSED (ranked first), NEW, STILL_OPEN, RESOLVED, and release an expired quarantine, while a CHANGELOG decoy tries to launder the new defect as intended. Answer key.
  • Liar (fixtures/liar): adversarial honesty — a test script that prints "ALL TESTS PASSED" unconditionally, a conftest that skip-marks the whole suite, a mock asserting its own return value, a tautological assertion. Scores whether the verdict takes output at face value.
  • Spec (fixtures/refund-spec): shift-left — a draft PRD with a seeded contradiction, an unmeasurable requirement, an exactly-at-the-boundary ambiguity, a silent failure-path gap, and a CHANGELOG that contradicts the spec. Scores /verdict:spec finding them all before any code exists.

python3 eval/run_eval.py --mode seeded|live|baseline runs it all in an isolated scratch repo and scratch state home. Results are published as measured; misses — and any answer-key amendment — stay in the table (eval/README.md).

Every one of those keys was written by the hands that wrote the prompt. The external key (eval/swebench.py) is one nobody here chose: SWE-bench Verified instances — real defects, each fixed by its own maintainers with a test that fails before the fix — every instance from the five smallest repositories in the set (pytest, pylint, requests, seaborn, flask; 40). The checkout's history ends at the bug's base commit, the environment is the one the maintainers had that week, the withheld test never enters the tree, and the issue text is the whole charter. The score is location, deterministic: does a path:line the finding cites fall in the file the fix touched, inside its hunk, in the same function? Rate, time, tokens and every miss are in the ledger.

State modes

  • Solo (default): state lives in ~/.claude/verdict/<repo-name>/ — nothing added to your repo.
  • Team: create .qa/ in the repo (/verdict:baseline team) and commit it — your teammates and CI share the same baseline, and QA reports travel with the code. Commit the record, not what a single run passed through: .qa/.gitignore lists facts.json, judgment.json, state.json.prev, run-in-progress.json, findings.prev/ and usage.jsonl. The last is the bill — what each run spent on the machine that ran it, and for the local tier the address of the gateway it called. /verdict:baseline team writes the file; a .qa/ created by an earlier version needs it added by hand.

The state schema is documented in docs/state-schema.md — versioned, forward-compatible, human-readable JSON.

Commands

Plugin commands are namespaced by the plugin and must be typed in full — /verdict:run, /verdict:status. There is no short form: a bare /verdict is an unknown command, measured rather than assumed.

Start here: /verdict:run — the front door. It reads the tester's memory and picks the right pass itself: no state yet → a baseline; state present → today's delta; arguments given → a delta narrowed to what you named. It says which it chose and why. Every command below is the same machinery aimed at one specific job, for when you already know which job you want.

CommandWhat it does
/verdict:runFront door — routes to baseline, delta, or a scoped review from the stored state
/verdict:baselineInitialize the QA root, project profile, and baseline state
/verdict:regressionRegression checklist: changed area → adjacent flows → integrations
/verdict:releaseRelease gate with the four-verdict contract
/verdict:bugTurn a symptom/log/complaint into a classified, structured bug report
/verdict:flakeClassify an intermittent failure: ≥3 reproductions, mechanism hunt → BRITTLE_TEST fix task, or FLAKY quarantine with expiry
/verdict:statusRead-only status from the stored state — no run, no writes, no agent spin-up
/verdict:specShift-left: judge a spec/issue/PRD for testability before code exists — contradictions, unmeasurables, undefined boundaries, silent gaps, history conflicts, plus Given/When/Then criteria
/verdict:causeTrace a failure to its root cause: symptom → mechanism → origin → class, each link cited, causation proven by counterfactual rather than narrated; trigger, cause, and latent condition kept apart
/verdict:charterTimeboxed exploratory charter with a risk focus seeded from the profile's incident history; observations captured as evidence, discoveries converted to bug reports and regression candidates

The tester's memory, over MCP (optional)

Verdict's state isn't locked inside the agent. verdict-mcp is a small read-only MCP server over the same state files, so anything that speaks MCP can consult your QA memory — an orchestrator gating a merge, a Cursor or Codex session, a CI step commenting a PR:

ToolReturns
get_verdict(project)last verdict, release blockers, report path, not-tested list
get_findings(project, status)open (default), all, or NEW / STILL_OPEN / RESOLVED / REGRESSED — REGRESSED ranked first
get_quarantine(project)the flaky ledger, each entry with a computed expired flag
get_questions(project)the questions the tester parked for a person, each with its age, and answers no run has read yet — answer with verdict-answer
get_history(project)run-over-run trend parsed from the report INDEX
get_report(project, report?)full report content (default: last run's) — path-guarded to the QA root, so a CI step can quote the evidence, not just link it
get_profile(project)the project's QA profile: isolation rules, risk areas, real test commands — plus the lessons ledger when one exists
get_trends(project)run-over-run trajectory from the INDEX, the current pressure picture (open by severity, age distribution, quarantine size, duration), and hotspots — where this project's defects actually cluster, computed from its own findings and severity-weighted, with the number of runs behind the ranking
list_projects() / get_state(project)everything with a baseline / the raw state
claude mcp add verdict -- uvx --from verdict-qa-mcp verdict-mcp

The distribution is verdict-qa-mcp — the console script and the import package are still verdict-mcp / verdict_mcp; only the name PyPI indexes differs, because verdict-mcp there belongs to an unrelated project. Installing straight from the repository also works and needs no release: uvx --from git+https://github.com/ArtJack/verdict verdict-mcp

project is a key from the solo root (~/.claude/verdict/, override with VERDICT_HOME) or a repo path in team mode (resolves <repo>/.qa/). Every tool carries a read-only annotation and the server never writes — the tester's memory is public API; the tester's pen is not. Needs uv (or pipx install verdict-qa-mcp); the plugin itself still has zero dependencies and works without the server.

Closing the loop (without letting the tester fix anything)

Verdict is deliberately the gate of a fix loop, never its actor — an agent that fixes and then re-judges its own fixes is grading its own homework. The loop belongs to your orchestrator, your coding agent, or CI; Verdict's job is to make every pass around it evidence-cited and impossible to rubber-stamp:

text
┌─────> implement the ordered fix list   (you / your coding agent)│                    ││                    v│        /verdict:run — delta run        (scoped by diff, findings aged)│                    ││                    v│        get_verdict over MCP ────────── pass ──> merge│                    │                            (the not-tested list travels with the PR)└──────── fail · pass with risks          (fix order is dependency-aware, REGRESSED first)

Minimal driver, any MCP client:

python
while True:    before = mcp.call("verdict", "get_verdict", {"project": "myapp"}).get("run_number") or 0    subprocess.run(["claude", "-p", "/verdict:run delta pass on myapp"])   # the agent runs    v = mcp.call("verdict", "get_verdict", {"project": "myapp"})          # the gate reads    assert (v.get("run_number") or 0) > before, "run died before writing state — not a verdict"    if v["verdict"] == "pass":        break    fix(v["release_blockers"],        mcp.call("verdict", "get_findings", {"project": "myapp", "status": "open"}))

(The run_number check matters: without it, a run that crashes before writing state re-serves yesterday's verdict — and if yesterday passed, the loop merges unreviewed code. verdict-gate --min-run-number is the same check as a CLI.)

Rules that keep the loop honest — all enforced by the agent's contract, not by hope:

  • REGRESSED breaks the loop loudly. A finding that comes back outranks any number of NEW ones; it is ranked first in every report and every get_findings response.
  • Red tests exit through the right door. STALE_EXPECTATION exits via a test-update task (with an intent citation), REAL_DEFECT via a code fix — the loop never converges by editing a red test to match the code.
  • Flakes can't be buried. Quarantined tests are excluded from the gate but re-enter on expiry, so the loop cannot converge by skipping its way to green.
  • blocked halts, it doesn't pass. A missing environment stops the loop for the operator instead of laundering itself into a verdict.
  • A crashed run is not a verdict. The gate asserts run_number advanced; stale state is its own exit code (5), distinct from both pass and fail.

This is not hypothetical — it is the loop the author's private deployment runs nightly, unattended, against a production codebase.

On nights when nothing a finding cites has moved, verdict-run --skip-unless-drift finalizes a sweep instead of a model run — the previous verdict carried by id, signed by no model, the run number advanced — and prints why whenever it cannot. The conditions are the harness's own measurements: every cited line where it was, every gate green, the test-id set unchanged, no quarantine due (docs/nightly.md).

CI: gate PRs on the tester's memory

The repo doubles as a composite GitHub Action. Gate mode needs no API key, no install, and no model — a stdlib-only script reads the committed team-mode .qa/ state, sets the job status, and maintains one sticky PR comment (verdict headline, blockers, REGRESSED-first findings table, the not-tested list):

yaml
permissions:  pull-requests: writeconcurrency: verdict-${{ github.ref }}
steps:  - uses: actions/checkout@v4  - uses: ArtJack/verdict@v0    with:      max-age-hours: 48        # a stale verdict is exit 5, never a pass      max-commits-behind: 0    # ...and so is one measured before these commits

Run mode (experimental) executes a headless Verdict pass first — on a GitHub-hosted runner with anthropic-api-key, or on a self-hosted runner with claude-oauth-token from claude setup-token, so nightly QA rides your subscription instead of API billing (anthropic-base-url passes through for Anthropic-compatible gateways). The same contract is available anywhere as a CLI:

bash
verdict-gate myapp --max-age-hours 24 --max-commits-behind 0 --fail-on risks

Exit codes: 0 pass · 1 fail · 2 usage · 3 blocked · 4 no state (the tester never ran) · 5 stale · 6 hand-written state (with --require-harness). 4 and 5 are deliberately distinct from 1: "the tester never ran" must never look like "the tester said no". For running the nightly pass on your own machine — cron, systemd, subscription token, strict mode — see docs/nightly.md.

--format sarif emits the open findings as SARIF 2.1.0 (severity → level, locations parsed from file:line evidence), so they land as annotations in GitHub's Security tab:

yaml
- run: verdict-gate --format sarif > verdict.sarif || true- uses: github/codeql-action/upload-sarif@v3  with: { sarif_file: verdict.sarif }

Give your tester project eyes (bring your own MCPs)

The agent ships with core tools only, but the frontmatter is an extension point: copy agents/verdict.md into your project's .claude/agents/ and add your project's MCP tools (database, staging API, browser) to its tools: list. The agent's §0 isolation rules govern how it may use them — read-only facts, never mutations, blocked when it cannot verify. This pattern is battle-tested: the private ancestor of this agent runs nightly with eleven read-only marketplace-database tools, which is exactly how it caught a live overselling bug that no amount of reading source code could have found.

Worked example — a web app with a Playwright MCP connected:

yaml
# your project's .claude/agents/verdict.md, frontmatter tools:tools:  - Read  - Glob  - Grep  - Bash  - Write  - mcp__playwright__browser_navigate  - mcp__playwright__browser_snapshot  - mcp__playwright__browser_click  - mcp__playwright__browser_console_messages

…and the profile carries the rules of engagement: which origin is the test environment (never production), which accounts are test accounts, and that navigate/snapshot/read is in scope while anything that submits, pays, or mutates an account is forbidden. §0 governs browser tools exactly as it governs Bash — unsure whether a click mutates? It mutates; return the risk instead of clicking. Exploratory charters (§4, technique 23) translate directly: a timeboxed browser session with a risk focus, observations as evidence, repeatable failures becoming bug reports.

The model judges; the system measures

About two thirds of a state file is arithmetic and transcription — timestamps, SHAs, diff ranges, gate exit codes, durations, test counts, finding hashes, ages, deltas. None of it is judgment, and every one of them is a place to be confidently wrong.

So the run is split. verdict-facts measures: it runs the gates you name, times them, parses their counts, reads git, derives the project key, and decides run_number and run_type (including when a run must be re-declared a re-baseline). The agent then writes only judgment — each finding as its own file the moment it is proven, validated as it is written; a finding it looked at and found unchanged as an id; the verdict and what was not tested. verdict-finalize assembles the files, computes each finding's hash, first_seen, age_days, and its NEW/STILL_OPEN/RESOLVED/REGRESSED delta from the previous state, hashes every line the evidence cites so the next run is told where the code moved, and validates the result before writing anything.

verdict-finalize also renders the report — scope, gates, the REGRESSED-first findings table, not-tested, quarantine — from that same state, and injects the agent's prose (risks, fix order, per-finding narrative) into it. The report cannot go missing, because the harness writes it, and cannot contradict the state, because it is the state.

Nothing the model cannot compute correctly is left for the model to compute.

The tester's own error rate

A finding is worth what the tester's record says it is worth. Verdict keeps that record, and the design principle is the same one as everywhere else here: the part a model would be tempted to grade generously is the part it does not get to touch.

Each finding states a confidence when it is filed — proven (demonstrated it happen), probable (traced, not executed), hypothesis (suspected). The validator refuses a new finding without one, and the harness freezes it: a later run cannot revise a prediction after seeing how it turned out.

The outcome is computed, never claimed. A finding that regressed, or whose fix was verified by re-injecting the defect and watching a guard fail, held up. One the tester withdrew did not. Everything else stays undecided and is excluded from every rate — a resolution nobody verified is an absence, not proof, and a still-open finding has not settled anything. Decided outcomes persist in outcomes.json, because state.json drops findings resolved two runs ago and the sample would otherwise reset forever.

The report then carries a Track record section: how many findings this project has tracked, how many are settled, and the counts per confidence level and per proof method. A percentage appears only once a bucket has 30 settled outcomes. Below that you get "2 of 3", which is a fact, instead of "67%", which is decoration.

Accepting a risk — the maintainer's pen

Some findings are right and will not be fixed: a residual risk weighed and written into a decision log, a defect behind a feature that is being retired. Left open, such a finding is re-reported as an open Major in every banner for the life of the project — the "same twenty findings until you stop reading" failure this tool exists to prevent — and withdrawn would score a correct finding as the tester's error. So there is a fourth status, and the tester cannot write it:

verdict-accept myapp MYAPP-F-021 --cite "DECISIONS.md 2026-09-02" \    --reason "deleting the ledger too defeats the anchor; the cost is the whole track record"

That writes accepted.json beside outcomes.json in the QA root — a file the scope guards refuse to the agent and a status the validator refuses in a judgment. The finding leaves the open counts at once (the banner, verdict-gate, the MCP server), leaves the verdict at the next run, appears under Accepted risks in every report with its citation, and settles in the track record as confirmed on the maintainer's word — kept apart from the measured and the claimed confirmations, because it is neither. --revoke reverses it, with a reason; --list shows the ledger. A decision changes the next verdict, never the last one.

The other thing only a person can settle is a question — is ; still a query separator, is single-file vendoring a supported contract, should the gate run an installed wheel. The tester parks them (questions in its judgment; finalize mints MYAPP-Q-3 and keeps questions.json), and the second pen answers:

verdict-answer myapp MYAPP-Q-3 --answer "at or above is the rule; README rule 1 is the spec"

That writes answers.json, refused to the agent like accepted.json. The next run reads the decision in its facts and never asks again; the report renders Needs human decision from the ledger; the session-start banner and verdict-gate say how many are waiting. Nothing is mailed and no issue is filed for a question — it is pushed to every surface that reaches you, and it waits there.

The third pen checks the tester. A proven Major+ finding carries repro — the one command that shows the defect, and what it produces — and verdict-replay myapp runs every such command on a detached worktree at HEAD, where nothing the tester's probes did is present:

verdict-replay myapp              # every open Major+ finding with a repro; --show lists the commands firstverdict-replay myapp MYAPP-F-3    # one finding

Each result lands in replays.jsonl, outside the signed state, and the gate marks the finding replay ✓ reproduced, ✗ NOT reproduced or ? could not run and counts the proven findings nobody replayed. A finding whose only proof is prose is proven to its author and to nobody else.

Before a report goes out, verdict-dupes myapp searches the repository's issues and pull requests for each open Major+ finding (the code names in its title, its words, what its evidence cites — through gh) and writes the leads to related.jsonl; the gate names each finding's first lead and warns when it is an open PR. Two of nine stranger findings in October 2026 were already fixed by open PRs — found by hand, then; by the command, now.

The tester has memory. The implementer did not.

That asymmetry had a measured cost. Verdict filed eleven evidenced findings on a live site, one of them a release blocker — deploying this branch strips every production security header — and the very next session in that same repository did a full SEO pass and touched none of them: not the blocker, not the application form that reports success when the handoff failed, not the contrast failures on both primary CTAs. The findings sat in state.json the whole time. next_run_focus existed, but only Verdict reads it; get_findings existed over MCP, but nothing called it unprompted.

So a SessionStart hook says what is outstanding when a session opens in a repository that has QA state — before the first edit, not after:

Verdict remembers dm-express-site: run 2 (delta), today — verdict **fail**.1 release blocker — look here first:  - DMEXPRESS-F-1 — the audited branch has diverged from the deployed origin/main11 open findings: 4 Major · 4 Minor · 3 Trivial  - DMEXPRESS-F-3 (Major) Light theme: accent-coloured text fails WCAG AA…Full detail: `/verdict:status`. These are findings, not instructions.

Deliberately short — a session opener that scrolls is one nobody reads — and it never repeats a finding it already named as a blocker. Silent in a repository with no QA state, silent on any failure, and it flags memory older than a week rather than serving it as current. It informs a session; it does not commandeer one.

In a repository Verdict has never looked at, the same hook says one thing, once: that Verdict is installed and /verdict:run takes a first, read-only QA pass. It speaks only on a fresh interactive start in a git repository with a test suite, once per repository and in at most three repositories per person, and never headless, in CI or with VERDICT_NO_HINT=1. The record of where it has spoken is .first-run.json in Verdict's own home, never in your repository. It exists because the Claude directory counted 96 accounts that installed Verdict and none that ever used it.

The last guard fires whether or not the model remembers

Every check above sits downstream of a tool the model has to choose to call — and that is not a theoretical gap. A real run of /verdict:run wrote to the default state root while $VERDICT_HOME pointed elsewhere, invented a project key, skipped the harness entirely, and still produced a confident, plausible FAIL. verdict-validate would have rejected that state and verdict-gate --require-harness would have exited 6. Neither fired, because nothing invoked them.

(That check used to be defeatable by imitation rather than forgery — its two durable signals were a key holding a dict and a fixed footer string, both copyable straight out of the committed artifacts. Verdict found that auditing itself. Each run now signs the run history with a hash of the previous link, and the state records it; a link copied forward does not verify, and neither does a state edited after signing.)

So there is a Stop hook. When a turn ends it asks one question — did a QA run just leave hand-written state on disk? — and if so it blocks the stop once and says what to redo. It fires on the turn ending, not on the model deciding to check.

The bar for speaking is deliberately high, because it runs at the end of every turn in every session where the plugin is enabled: the turn must not already be continuing because of this hook (never loop), a QA root must resolve from the session's cwd, its state.json must have been written in the last half hour, and the harness traces must be missing. Anything else exits in about two stat calls — 37 ms, measured. Every failure path — unparseable input, an import that does not resolve, an unreadable state — also exits silently: a hook that bricks sessions is worse than the problem it polices.

The state contract is machine-checked

Prose in a prompt reduces how often a model invents a value; it cannot stop a model from inventing a value it is capable of inventing. Measured here: months after date -u became an explicit rule, two of four production timestamps still landed on exactly :00 seconds — fabricated, quietly, in states that every downstream consumer believed.

So the contract stopped being prose and became a gate. verdict-validate runs as a PostToolUse hook on every state.json write (and as a CLI in CI) and reports, immediately and in-session, any state that: names a report which is not a path to a file that exists · carries a timestamp that was recalled rather than measured · leaves run_number where a crashed run left it · invents enum values · claims pass over an open Critical · files an open finding with no evidence · quarantines a test with no expiry.

Its first run against four live production states found violations in two of them — including the exact dodge ("delivered inline to the caller…" in the report field) that a prompt rule had failed to prevent three separate times. Every rule in it exists because a real run broke it.

The read-only guarantee, honestly stated

Four layers: (1) the agent has no Edit tool; (2) its contract confines Write to the QA root; (3) a PreToolUse hook blocks out-of-scope Write/Edit calls; (4) a second hook closes the common Bash write channels — output redirection (>, >>, &>, >&file, N<>), tee, sed -i/perl -i, rm/mv/cp and friends, mutating git verbs and a read verb's --output, formatters in their writing shape (black ., ruff format, prettier --write), in-place compressors, find -exec and xargs on any of those — each target resolved against the QA root. Both hooks are armed when the platform names the verdict agent as the caller (Claude Code sends agent_type in every hook input fired inside a subagent) and under VERDICT_STRICT=1, which headless, CI and scheduled runs set because there the whole session IS the QA run. Your own edits and your own shell are not guarded: an event that names no agent, in a session without strict mode, passes untouched — with one exception. The maintainer's ledgers (accepted.json, answers.json) are written by verdict-accept and verdict-answer and by nothing else: a Write or Edit to either is refused whoever asks, and the two commands are refused to the tester.

The harness holds its own writes to the same line. facts.json, the state, the report, the run index and the ledgers are written by name inside the QA root, so before anything is created verdict-facts, verdict-finalize, verdict-local and the maintainer's commands ask where the root is — under the solo home, at or under the .qa/ at the top of a checkout, or outside any checkout; anywhere else inside a checkout is the code — and refuse a root whose own entries, reports/ or findings/ hold a symlink, a junction or a file with a second hard link, because a write through a link is a write somewhere else. The report is one plain file directly under reports/, and never the run index (tests/test_qa_root_links.py).

The Bash guard is a heuristic over a command string, not a sandbox, and the 2026-10-02 audit measured where it stops: it does not stop a program that writes through its own code — an interpreter (python3 -c, node -e), a build or package step (pip, npm, cargo, pytest's own cache and .coverage), a task runner (npm run format, make fmt), a script read from a file or a pipe, a shell function or alias. Unknown commands run, because a QA pass needs pytest, coverage and linters. The real boundary is OS-level sandboxing or running the tester against a throwaway copy; the guard raises the cost of the accidental mutation.

From 0.94.0 that OS boundary is in place in two places.

  • The project's own code, wherever the harness runs it: gates, test collection, fix verification, coverage, the census and repros, through src/verdict_mcp/sandbox.py. On macOS it gets:
    • no network but loopback;
    • writes only to its checkout and a private temp dir, never to the checkout's .git or .claude;
    • no reads of the owner's credential stores;
    • an environment built from an allowlist.
  • The tester's Bash under verdict-run, which runs inside Claude Code's own sandbox (strict network allowlist, credential-like variables denied).

verdict-run --sandbox required is the setting for a repository you do not trust. The project's code then runs only inside a box, and a profile the repository ships cannot loosen it. A checkout carrying its own Claude Code configuration is refused.

What the box does not close: on macOS a process can read the start-up environment of another process of the same user, so a key the Claude CLI holds in its environment stays readable from inside, with no network to send it on. In an interactive /verdict:run, the tester's Bash runs under your own Claude Code sandbox setting: turn it on for a repository you do not trust.

Malformed hook input fails open; once armed, a command the guard cannot read is refused rather than waved through. Tested in CI on Python 3.9, the python3 a stock Mac starts them with (tests/test_hooks.py, tests/test_hooks_0903.py, tests/test_hooks_pens.py, tests/test_hooks_links.py). That is the whole truth; a QA tool should not oversell its own controls.

FAQ

Who pays for the model? You do — with the Claude subscription you already have; nothing routes through the author and no API key is required. The one place a key can appear is the optional GitHub Action's run mode, and that is your key, in your repo, for your CI. Everything below the model is plain files and stdlib Python.

Can it run on a local LLM? Three answers, cheapest first. No model at all: verdict-run --skip-unless-drift carries the standing verdict on a night when nothing a finding cites has moved — two seconds, and it says so. A small local model: verdict-local inverts the control — the harness measures, slices the code and proves claims in a scratch copy, and the model answers one bounded question at a time. Measured with qwen3:8b behind LiteLLM and Ollama: 9/10 · 9/10 · 10/10 on the baseline fixture, about thirty calls and seven thousand input tokens a run. Since 0.90.0 it is a delta as well as a first pass, and safe over a project that already has state: every prior open finding is resolved by a measured fail→pass on a test somebody chose, carried by id, or re-filed under its own id with the drift that moved it — never left unmentioned, because the harness reads silence as resolution. Its verdict is monotone: it can make a verdict worse or leave it alone, and both a fail and a blocked stand until something with judgment looks at them. --range/--base with a throwaway --qa-root judge a branch without touching the project's own state. It reads every language a website is built in, one function at a time, with readers that need no parser dependency (src/verdict_mcp/languages.py names them):

  • Python through ast.
  • The brace languages (C#, TypeScript, JavaScript, Java, Kotlin, Scala, Groovy, Go, Rust, Swift, Dart, C, C++, PHP, Solidity) through braces.py.
  • Ruby, Elixir and Lua through ends.py, which reads their end blocks by indentation. A Rails before_action and a Phoenix plug travel with the methods they guard.
  • Vue, Svelte and Astro components, HTML pages and Razor views through regions.py: their scripts and @code blocks by their own language's reader, their templates as templates.
  • Every other language (SQL, shell, PowerShell, Perl, Haskell and the rest) and every template language (Blade, ERB, Jinja, Twig, Liquid, Handlebars) as excerpts: the changed lines with the lines around them, and a question that says it shows lines, not a function.

Each question carries the file's own line numbers and the head of the type around the function. Counterfactuals run in Python only, so a reading in any other language stays unproven, and the verdict over that code stays below pass. Skipped and focused tests are found in every framework a website is tested with (Jest, Vitest, Mocha, Playwright, Cypress, RSpec, JUnit, xUnit, NUnit, PHPUnit, Go, Rust, XCTest, ExUnit, Dart). A committed it.only is filed like a skip with no expiry, because it silently switches off the rest of its suite. A range with nothing it reads (only configuration, styles, documentation or tests) reads nothing and says so rather than reporting a clean pass. Wire it into a night with verdict-run --on-drift local, which can never reach the claude CLI at all. The full agent through a gateway (verdict-run --env-file, ANTHROPIC_BASE_URL → LiteLLM → your model server, docs/nightly.md) needs a model with the window for a twelve-thousand-token contract on top of the CLI's own prompt; an 8B model served at 4k is not one. Which model may sign a verdict is the eval's decision, never a default's: Sonnet tied Opus on the honesty fixture and was at parity on root cause at n=3, with one run that wrote no state (the model axis). Run it, publish the score, then decide.

Can it test a website, not just read its code? Yes: verdict-browse, or a site: block in the profile that verdict-local runs after its gates (src/verdict_mcp/browser.py). It drives a real Chrome over the site, and every finding is something the browser measured. No model is asked anything:

CheckWhat the browser measures
autofill-trapChrome's own address autofill, driven through the DevTools protocol, fills each form; a field it fills that nobody can see is filed
phone-width, long-inputat 375 px the page scrolls sideways, at load or after a long file name or entry
ios-zooma form field whose CSS size is under 16 px, which makes iOS Safari zoom in on tap
hidden-at-loadtext and controls kept visibility: hidden until scrolled to, so out of the accessibility tree and the Tab order
focus-visiblea control the Tab key reaches looks pixel for pixel the same focused and unfocused
keyboarda control that reacts to a click and not to Enter or Space
get-formwithout JavaScript, a form that sends personal fields in the address bar
social-image, linksa preview image that is missing or not the size declared; a broken link or missing file; a live page answering 5xx

It only ever sends GET requests. Every request a page makes with another method is aborted in the browser, and so is every request to another origin, so a form is never submitted and no third party is called. Links that read like actions (log out, delete, unsubscribe) are never followed. That makes it safe to point at a live site:

pip install 'verdict-qa-mcp[browser]'verdict-browse https://example.comverdict-browse 'http://127.0.0.1:{port}/' --start 'npx next start -p {port}' --repo .

In a profile, site: takes url, an optional start (a command that serves the site on this machine, from the checkout under test), pages, max_pages, checks, skip, ready_s and budget_s. A later run that measures every page a browser finding was filed on, with the same check, and does not find it again resolves it. A page it could not reach leaves the finding open. The report's not_tested names what the pass did not do: submissions, the blocked third parties, Safari and Firefox, and frames.

On a production Next.js site, at the commit a full manual audit covered and before its fixes, it checked 25 pages in 333 seconds and filed 11 findings, all of them real. Nine cover seven defects the audit had proven:

  • the bot trap Chrome's autofill fills, on both forms (the audit's one Critical);
  • content kept from screen readers until it is scrolled to;
  • a file picker that ignores Enter and Space, beside a file input with no visible focus;
  • a long file name that widens a form past a phone;
  • a contact form that, without JavaScript, puts the name, email and message in the URL;
  • 14 px fields that make iOS zoom;
  • a 1586×992 social image declared as 1200×630.

The other two are the same no-JavaScript form defect on two forms the audit had not listed. Pointed at the live site three days and the Critical's fix later, it found the bot trap gone and the rest still there. The same commit's local model readings had found 1 of the audit's 35 code-reachable defects. The checks were written after reading that audit, so this was a test of whether each check works on a real site, not of how much a blind run would find.

Why won't it fix the bugs it finds? Independence. The agent that patches the code and then declares it healthy is grading its own homework. Verdict returns an ordered, implementation-ready fix list for you (or your coding agent) to execute.

Does it replace CI? No — it sits on top. CI tells you the suite is red; Verdict tells you which red matters, what it means, what regressed since the last run, and whether you can ship anyway.

Does it work in scheduled/headless runs? Yes — that's what the state file is for. Run it nightly; read a delta report over coffee, not a fresh audit.

Roadmap

  • Local-first track (the project's original ambition): an agent-skills-standard variant — the prompt, technique catalog, and state contract are portable markdown, which is the door to non-Claude runtimes — plus the local-model experiment: run the eval suite through an Anthropic-compatible gateway against local models and publish the scores. A model earns nightly duty by passing the same eval as everyone else.
  • A JS/TS eval fixture alongside the Python one
  • Mutation-testing integration where a tool is present

License

MIT

来源:README.md,提交 e7fd0a8

工具

0
SourceWeft 曾在隔离沙箱中以无凭据方式启动该软件包一次,以列出其工具,但未能完成:该软件包类型无法在沙箱中运行。

版本历史

19
  1. v0.94.0最新Nov 20, 2026
  2. v0.93.1Oct 30, 2026
  3. v0.93.0Oct 26, 2026
  4. v0.92.0Oct 19, 2026
  5. v0.91.1Oct 18, 2026
  6. v0.90.12Oct 17, 2026
  7. v0.90.11Oct 17, 2026
  8. v0.90.10Oct 17, 2026
  9. v0.90.8Oct 16, 2026
  10. v0.90.7Oct 15, 2026
  11. v0.90.6Oct 15, 2026
  12. v0.90.5Oct 5, 2026
  13. v0.90.4Oct 4, 2026
  14. v0.90.3Oct 3, 2026
  15. v0.90.2Sep 23, 2026
  16. v0.90.1Sep 19, 2026
  17. v0.90.0Sep 19, 2026
  18. v0.89.0Sep 17, 2026
  19. v0.88.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分