Skip to main content

verificate-langchain

Verificate Gate

A veto gate for AI-written code in LangChain / LangGraph. Your agent writes code; Verificate runs it through deterministic veto checks (mocks and placeholders, reward-gamed tests, invented standard-library APIs, secrets in logs, false-completion claims) plus a Claude Haiku 5.5 review, and can veto. An agent that ships confident-but-wrong code loses its user's trust — this is the safety net that keeps it shipping.

pip install verificate-langchain

100 free validations per machine — no signup, no token. After that, pass a token (30-day trial, no card: https://verificate.ai/auth/signup).

Measured

New in November 2026

  • The model review now runs on Claude Haiku 5.5. On our frozen benchmark (12 cases × 3 runs), unsafe approvals fell from 6 in 36 to 0 in 36, with every clean control still approved.
  • New deterministic vetoes: secrets written to logs (CWE-532, 10 languages) and invented Python standard-library calls.
  • Every verdict carries one final decision and a receipt (what was reviewed, which model and prompt version, what was not verified). A review that cannot cover the scope is never an approval.

In September 2026, a frontier model asked "is this OK to merge?" missed reward-gaming (a test that only does assert True) and a hallucinated API in 0 of 6 runs each. Verificate's gate caught both 6 / 6 (the reward-gamed test by a deterministic veto, the invented third-party API in the model review), with 0 false positives on clean code. On the November 2026 frozen benchmark, the upgraded Gate cut unsafe approvals from 6 in 36 to 0 in 36. Benchmarks: https://github.com/VerificateAI/verificate-mcp-quickstart/blob/master/COMPARISON.md · https://github.com/VerificateAI/verificate-mcp-quickstart/blob/master/BENCHMARK_2026-11.md

One-shot check

from verificate_langchain import validate

v = await validate("def refund(order_id, amount):\n    pass  # TODO real refund")
print(v.approved)     # False — the mock refund path is vetoed
print(v.findings)     # ['[code_reality_gate] Placeholder detected ...', ...]

Verdict is truthy iff approved, so if await validate(code): ship(code) reads naturally.

As a LangGraph guardrail node

from verificate_langchain import VerificateGuardrail
from langgraph.graph import StateGraph, START, END

gate = VerificateGuardrail(max_attempts=3)           # optional token=...

g = StateGraph(dict)
g.add_node("write", write_code)                       # your codegen node, sets state["code"]
g.add_node("gate", gate.node)                         # sets state["verdict"] / ["findings"]
g.add_edge(START, "write")
g.add_edge("write", "gate")
g.add_conditional_edges("gate", gate.route, {"fix": "write", "done": END, "give_up": END})
app = g.compile()

The output must pass through the gate node — the veto is structural, not an optional tool call the agent can skip under pressure.

Load the raw tools

from verificate_langchain import load_verificate_tools

tools = await load_verificate_tools()   # validate_ai_output, validate_plan, analyze_code, generate_code
agent = create_react_agent(model, tools + your_other_tools)

What it catches (real, verbatim)

"N+1 synchronous API calls … 100 sequential HTTP roundtrips … will trigger Stripe rate limiting" · "stripe.Inventory is not a valid Stripe SDK resource" · "Stripe API requires integer cents"

Read-only: code is analyzed, never executed, never trained on. https://verificate.ai/privacy

Uses the official langchain-mcp-adapters against the hosted Verificate MCP server. All clients + one-click installs: https://github.com/VerificateAI/verificate-mcp-quickstart

Metadata

Release files for verificate-langchain 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for verificate-langchain 0.1.1
File Size Uploaded Provenance Actions
verificate_langchain-0.1.1.tar.gz 6.4 kB Without provenance Details for verificate_langchain-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for verificate-langchain 0.1.1
File Interpreter ABI Platform Actions
verificate_langchain-0.1.1-py3-none-any.whl Python 3 none any Details for verificate_langchain-0.1.1-py3-none-any.whl

Total release size: 13.4 kB

Release files / verificate_langchain-0.1.1.tar.gz

Download URL verificate_langchain-0.1.1.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
acb998ceed54e11f8a70d3413236c47a21865490efc7acdcb7dac2ae86b27fff
BLAKE2b-256 checksum
How to use checksums
30867a9776315b95f2efad5959f73d052b27206b4460196a0a2dcf4d6d059581
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / verificate_langchain-0.1.1-py3-none-any.whl

Download URL verificate_langchain-0.1.1-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36125e5382ffce3c36d9655f316375181296e3d58eedb1c07efac6f51274da2b
BLAKE2b-256 checksum
How to use checksums
f3b972d8922dec4d71807af1c042371b4765d66b8fff759d7617bb1ac7ae07b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Security for verificate-langchain 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page