Back to Tank Lab
Trả phí — Mua đứt mã nguồnFeatured Product

ProofGate — Deterministic AI QA Acceptance Gate

Deterministic MCP server forcing AI coding agents to run honest E2E tests in a real browser (Playwright) — from requirement linting to 28 acceptance gates. One-time purchase, self-hosted.

Node.js 18+TypeScriptMCPPlaywright (Chromium)
Pricing
990.000 ₫

590.000 ₫

Sale

Mua đứt — dùng trọn đời, cập nhật miễn phí

Delivered via GitHub — Read access to the source repo
Buy once, use forever • no profit guarantee

Chống AI làm tắt khi kiểm thử

Khóa cứng từng bước chạy bằng code giữa agent và trình duyệt — bước nào lỗi là dừng tại chỗ, không nhảy bước hay nạp bộ test khác để lách

28 cổng kiểm soát chất lượng

Chia thành 5 nhóm rõ ràng — agent không tự báo PASS được, kết quả đi kèm báo cáo phân loại từng lỗi cụ thể

Từ tài liệu yêu cầu đến bằng chứng thật

Rà soát requirement, tạo ma trận test rồi chạy kiểm thử E2E bằng Chromium thật qua Playwright

Chặn ngay ca test hời hợt

Kiểm tra kiểu "trang có chữ", nhập sai không kiểm bị chặn, bấm Lưu không đọc lại dữ liệu… đều bị từ chối ngay lúc thêm

Gắn vào IDE là chạy

Hỗ trợ Claude Code / Cursor / Antigravity; server tự gửi quy tắc cho agent, không phải chép vào CLAUDE.md

Báo cáo & tài liệu tiếng Việt

Thông báo lỗi, hướng dẫn và báo cáo nghiệm thu đều viết bằng tiếng Việt

Technical Documentation & Architecture

Product Specifications & Architecture

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:3000 against docs/requirements/customers.md."

Instead of skimming 1–2 happy paths and claiming success, ProofGate forces the agent through 5 strict checkpoints:

  1. 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.
  2. 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).
  3. 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.
  4. 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.
  5. 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), or APP_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:

ProofGate Requirement Template — Module M-CLASS

# 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:

Sample QA_REPORT.md showing the 28 acceptance gates verdict

> ## 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:

  1. 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.
  2. Application Coverage: Source surface scanned; screen coverage and per-screen test depth meet thresholds; API layer probed for access control.
  3. 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.
  4. 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/NaN text, layout overflow).
  5. 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 via git pull.
  • Full TypeScript Source Code (20 MCP tools): Requirement linter, source surface scanner, Playwright step-locking state machine, assertion control validator, and QA_REPORT.md generator.
  • Requirement Templates (templates/): Standardized REQUIREMENT_TEMPLATE.md plus 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.md pasting 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, or storage_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.