What Is ProofGate?
ProofGate is a deterministic acceptance-gate MCP server sitting between your AI Coding Agent (Claude Code, Cursor, Antigravity...) and a real browser (Playwright / Chromium).
When delegating QA testing to AI normally, agents frequently cut corners: writing empty test cases, guessing CSS selectors, quietly weakening assertions when a step fails, skipping error branches, and declaring "100% PASSED".
ProofGate contains zero internal LLMs for subjective grading. It is a deterministic code-driven state machine: it inspects real DOM elements, locks execution step-by-step, rejects weak test cases at insertion time, and issues a final PASS/FAIL verdict across 28 acceptance gates.
Real-World Case Study: Verifying a "Customer Management" Module at http://localhost:3000
You give your AI agent a single instruction:
"Use ProofGate to test the Customer module at
http://localhost:3000againstdocs/requirements/customers.md."
Instead of skimming 1–2 happy paths and claiming success, ProofGate forces the agent through 5 strict checkpoints:
- Requirement Linting (Before Opening the Browser): The tool lints the spec first, catching that the "Delete Customer" use case lacks an exception flow and target screen declaration — blocking ingestion until the spec is complete.
- Source Surface Scanning & Live DOM Inspection (No Guessing):
The tool scans routes directly from source code (Next.js / SPA), opens a live browser to extract stable selectors for interactive elements, and probes API endpoints with/without tokens to detect authorization leaks (
.R). - Instant Rejection of Low-Value Test Cases:
- Adding a create-customer case without a reload/read-back verification confirming database persistence → rejected immediately.
- Writing weak assertions like "page contains text" (which still pass on an empty/404 control page) → blocked immediately.
- Testing a permission criterion (
.R) without using an unauthorized role on both UI and direct API calls → blocked immediately.
- Hard State-Machine Lock During Live Execution: Once the suite loads, the agent executes one step at a time. If step 4 fails, the state machine locks hard at step 4: the agent cannot skip to step 5 or load another suite to escape. The only valid exits are patching the failing step (logged in the audit trail) or aborting the suite with a permanent reason recorded in the report.
- Transparent
QA_REPORT.md& Failure Classification: Every failure is explicitly classified:TEST_DEFECT_SUSPECTED(broken script),ELEMENT_ABSENT(missing element),INFRA_SUSPECTED(network/server issue), orAPP_BEHAVIOR(real product bug candidate).
Screenshots & Real ProofGate Sample Files
1. Sample Input Requirement (M-CLASS-requirement.md)
One module per Markdown file. Suffixes .M (main flow), .A (alternative), .E (exception), .R (permission) along with Screen:, Writes to:, and API Gate: trigger deterministic acceptance checks automatically:

# Module M-CLASS — Class Management
## UC-CLASS-01 — Coordinator Creates a New Class
> **Actor:** Coordinator
> **Screen:** `/classes/new`
> **Writes to:** classes, class_mentors
> **API Gate:** POST /rpc/class.create
> **Precondition:** At least 1 active mentor and 1 classroom exist
> **Trigger:** Click "New Class" on the class list screen
| ID | Type | Acceptance Criterion | Suggested Selector |
| :--- | :--- | :--- | :--- |
| .M1 | Action | Fill class name, mentor, and room then click Save -> new class appears in list | `#class-name`, `#btn-save` |
| .A1 | Action | Click Cancel mid-way -> returns to list without creating a record | `#btn-cancel` |
| .E1 | Validation | Leave class name blank and click Save -> blocks save and shows validation error | `#class-name`, `.error` |
| .E2 | Validation | Select a mentor with a conflicting schedule -> blocks save with conflict error | `#mentor-select` |
| .R1 | Permission | Only Coordinator sees "New Class"; Mentor sees button hidden & direct API returns 403 | `#btn-new-class` |
2. Sample 28-Gate Verdict Report (QA_REPORT.md)
When a negative test uses weak assertions, skips direct API permission probing, or fails to read back written records, ProofGate blocks sign-off with exact diagnostics:

> ## NOT READY FOR ACCEPTANCE
> **Failed 3/28 control gates.** Pass rates below reflect only executed subsets — not system sign-off.
>
> - ❌ **Negative cases must prove BLOCKING** — 2/9 negative cases only assert generic element_visible; assert error banner or unchanged URL.
> - ❌ **API layer probed for authorization** — qa_probe_api not yet executed for permission criterion UC-CLASS-01.R1.
> - ❌ **Write operations verified via read-back** — Case TC-CLASS-01-01 clicked Save without a reload or api_response persistence check.
5 Gate Groups Inside the 28 Acceptance Gates
A test suite is marked PASS only when all 28 gates across 5 groups succeed:
- Requirement Traceability: Every acceptance criterion is covered by verified cases; no cramming multiple criteria into one; full coverage across main (
.M), alternative (.A), exception (.E), and role/permission (.R) flows. - Application Coverage: Source surface scanned; screen coverage and per-screen test depth meet thresholds; API layer probed for access control.
- Case Quality: Assertions at decisive steps; zero vacuous assertions; negative flows verify actual blocking; write operations verify read-back persistence; no copy-paste boilerplate duplication.
- Live Execution Integrity: Every case executed in the current run, no stuck login redirects, zero unresolved failures, and zero unexplained anomalies (console errors, HTTP 5xx,
undefined/NaNtext, layout overflow). - Report Reliability: If the majority of failures stem from mismatched selectors (test script defects rather than app bugs), the suite fails automatically and forbids filing those failures as product bugs.
(Alongside full acceptance runs, ProofGate includes a lightweight spotcheck mode to verify small daily edits with real execution — without issuing an acceptance sign-off).
What You Receive
- Lifetime Read Access to the private GitHub repository
the-tank-log/proofgate(GitHub account linking required), with free updates viagit pull. - Full TypeScript Source Code (20 MCP tools): Requirement linter, source surface scanner, Playwright step-locking state machine, assertion control validator, and
QA_REPORT.mdgenerator. - Requirement Templates (
templates/): StandardizedREQUIREMENT_TEMPLATE.mdplus prompts to convert existing SRS, User Stories, or Prodweave Feature Lists into ProofGate-ready specs. - Zero-Copy Agent Onboarding: On connection, the MCP server automatically pushes its core operating rules to your AI client — no manual
CLAUDE.mdpasting required. Supports isolated per-project evidence folders (QA_EVIDENCE_DIR).
Technical Requirements & Current Limitations
- Runtime: Node.js 18+, Git, Playwright Chromium (
npx playwright install chromium). Compatible with Claude Code, Cursor, Antigravity, and any JSON-configured MCP client. - Scope: Currently runs headless Chromium for Web and API applications (not Native Mobile Apps). Automatic route scanning works best with Next.js and common SPA routers; other frameworks simply declare screens in the requirement doc.
- Multi-Role Auth: Supports per-role
sessions(cookies,localStorage, orstorage_state) to test authenticated pages and RBAC boundaries. - Session State: Active run state resides in server RAM (if your IDE restarts, the test matrix and evidence remain safely on disk and can resume from the last case).
- License & Policy: Delivered as-is, one-time purchase with lifetime usage. Proprietary commercial software © 2026 Tank Lab — redistribution, resale, or offering as a third-party hosted service without written consent is prohibited.