Anti-false-positive verification pipeline for AI agents testing web/HTTP products
执簿判官 · veripipe — 凭簿断案,无据不判 · evidence in, false positives out
An anti-false-positive verification pipeline for AI agents that test web/HTTP products.
An agent reports "done." The reply reads finished — confident and well-formed — but the task isn't actually complete, and nothing proved that it was. When the agents in question are testing a web or HTTP product, the same gap shows up as confident bug reports for behaviour that is in fact correct, and triaging those false positives often costs more than the real defects. veripipe treats the agent's wording as a claim, not as evidence: a candidate finding passes only when structured, reproducible evidence survives a fail-closed oracle chain.
The core is Python with a single runtime dependency — PyYAML, used to load semantic/code maps — and ships with a manifest-driven installer and a zero-dependency MCP server so any MCP host can drive it.
Who it's for: teams running AI agents against web/HTTP products who are tired of triaging confident-but-wrong bug reports.
Try it in one command (offline, no install, no product):
python3 examples/demo.py One contract, three agent runs — a real success, a false "done," and an unbacked claim. Only the machine-verified failure is filed: the confident-but-wrong "done" is caught, while the words-only claim is held inconclusive and filed nowhere.
A raw agent loop tends to fail in three ways:
veripipe answers each of these with a specific mechanism, described next.
product repo (private) veripipe (this repo, public) ┌────────────────────────────────┐ ┌────────────────────────────────────┐ │ adapter.config.json │ │ pipeline_v2/ product-neutral │ │ semantic-map.yaml │ ───▶ │ orchestrator, oracles L1–L3, │ │ Playwright specs / web app │ signals│ ledger, funnel, publishing, … │ │ runtime URLs, auth (never here)│ │ pipeline_v2_mcp/ MCP stdio server │ └────────────────────────────────┘ │ scripts/installer manifest installer│ └────────────────────────────────────┘ The product repository supplies runtime signals, adapter configuration, and publication command wrappers. This repository supplies the neutral engine, the MCP surface, the installer, and the tests. Product source, internal prompts, intranet addresses, project identifiers, run logs, queue payloads, credentials, and unreviewed product knowledge never live here.
git clone veripipe cd veripipe # The core is importable directly from the scripts root: export PYTHONPATH="$PWD/shared-skills/pipeline-v2/scripts:$PYTHONPATH" python3 -m pipeline_v2.orchestrator --help Install from PyPI:
pip install veripipe # installs pipeline_v2 + pipeline_v2_mcp (pulls PyYAML) Or install the latest main from GitHub:
pip install "git+https://github.com/zhangyy0423/veripipe" Quickstart Everything below is offline and side-effect-free (--dry-run writes intent to a queue file instead of pushing anywhere).
See the method in ~60 seconds on the neutral fixtures (no product, no network):
python3 examples/demo.py It walks one contract through three agent runs — a real success, a false "done," and an unbacked claim — and shows that only the machine-verified failure is filed. See docs/methodology.md for the reasoning.
Run the orchestrator against the mock executor:
python3 -m pipeline_v2.orchestrator \ --ledger /tmp/pipeline-v2.sqlite \ --queue /tmp/pipeline-v2-queue.jsonl \ --brief /tmp/pipeline-v2-brief.md Adapter-driven Playwright dry-run (parses a stored JSON reporter fixture, no product service required):
Any MCP host (Ducc, Claude Code, Codex, or your own client) can drive the pipeline over stdio. The server is zero-dependency — it implements the JSON-RPC 2.0 stdio transport directly, so it runs anywhere the core runs.
python3 -m pipeline_v2_mcp Server name: veripipe-pipeline-v2. Protocol versions: 2025-06-18 (default), 2025-03-26, 2024-11-05. Transport: newline-delimited JSON-RPC on stdin/stdout; logs go to stderr. Tools Tool Purpose Default safety preflight Check an adapter's runtime prerequisites read-only run_batch Run one verification batch dry_run=true run_loop Run the multi-iteration loop runner dry_run=true knowledge_audit Audit exported knowledge for gaps/drift read-only knowledge_export Export engine knowledge (no product data) read-only code_map_validate Validate a code map, fail-closed on drift read-only change_impact Compute change impact from a code map read-only query_ledger Query batches/cases/hits from a ledger read-only run_batch and run_loop default to dry_run=true; publishing requires an explicit opt-out and still only writes to the local queue. query_ledger refuses to run if the ledger file does not already exist — it never creates an empty database as a side effect.
A product plugs in by providing an adapter (adapter.config.json, semantic-map.yaml, spec whitelist) and optional agent thin-shells. The manifest-driven installer copies a product's thin-shells into the product working directory and tracks every managed file by SHA-256 so upgrades and uninstalls are safe:
python3 -m scripts.installer.installer --product --product-cwd /path/to/product python3 -m scripts.installer.installer doctor --product --product-cwd /path/to/product The installer is fail-closed: it rejects path traversal and symlink escape, refuses to touch its own sibling checkout, protects locally modified files (overwrite needs --force), removes only files it recorded in the manifest, and never deletes unmanaged runtime evidence.
Agent thin-shells today target Claude Code (.claude/commands, .claude/skills) and Codex (.codex/skills). A Ducc / dsh thin-shell mirrors the same symmetric design (.dsh/skills). See docs/adapters.md for the adapter layout and host mapping, and docs/dsh-plugin.md to wire the skills and MCP server into a dsh host.
Engine knowledge travels; product knowledge does not. The code_map, knowledge_audit, and knowledge_export capabilities are part of the neutral engine and move with the framework. Any product-specific graph, map, or knowledge content is generated in the product repo and stays private.
All gates run offline. PyYAML is the only third-party dependency (it loads the semantic/code maps); everything else is the standard library:
bash scripts/ci/run-gates.sh Gates: bash-syntax, python-syntax, secret-scan, contract (Playwright dry-run + MCP server smoke + product-neutrality scan), and unit (installer + engine + MCP server suites). A handful of product-bound suites are intentionally held out of this public repo; see docs/testing.md for the strategy.
This repository is deliberately free of product source, internal prompts, intranet addresses, project identifiers, run logs, queue payloads, and credentials. A secret-scan gate and a product-neutrality gate enforce the boundary in CI. Internal knowledge belongs in a separate private knowledge repository with its own clean history.
ai-agents verification testing oracle playwright mcp
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




