惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
阮一峰的网络日志
阮一峰的网络日志
博客园_首页
Last Week in AI
Last Week in AI
The Cloudflare Blog
IT之家
IT之家
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
S
SegmentFault 最新的问题
量子位
大猫的无限游戏
大猫的无限游戏
Recent Announcements
Recent Announcements
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
云风的 BLOG
云风的 BLOG
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
I
InfoQ
人人都是产品经理
人人都是产品经理
G
Google Developers Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Engineering at Meta
Engineering at Meta

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
"Prove your AI-written code — or get the exact input that...
IshvaTheGuru · 2026-06-24 · via DEV Community

tags: python, opensource, ai, devtools

cover_image: https://raw.githubusercontent.com/ishvaproducts-png/ishvacerto/main/assets/social-preview.png

AI coding assistants are fast, and they ship confident bugs. The output looks right, the explanation sounds right, and the failing case turns up in production. The missing piece isn't a smarter generator — it's something that can check the generated code and refuse to bluff when it can't.

ishvacerto is that gate. Give it a function and a way to check it — its own doctests, your tests, or a reference implementation — and it returns exactly one of three answers:

  • VERIFIED — it passed the captured spec on every input the gate could exercise.
  • REFUTED — it fails, and here is the exact failing input. Not "looks suspicious." For example: REFUTED [doctest] fn=square counterexample: square(3) (got 6, expected 9).
  • 🤷 ABSTAIN — no checkable spec could be captured, so it says so instead of rubber-stamping.

The whole promise lives in that third answer. Never wrong, sometimes silent. It verifies what it can check and abstains on the rest — which is exactly why it never false-alarms on correct code.

Try it

pip install ishvacerto

from ishvacerto import verify, verify_against_reference

verify(open("f.py").read())                    # uses the code's own doctests
verify(code, tests=[("f(3)", "9")])            # against your tests
verify_against_reference(ai_code, ref, "f")    # where does it diverge from a reference?

From the command line (exits 1 on REFUTED, so it gates CI directly):

ishvacerto my_function.py
ishvacerto --ref reference.py --entry my_func ai_generated.py   # differential
ishvacerto --json my_function.py                                # machine-readable

Measured, not asserted

You can reproduce the headline numbers yourself — there's a script in the repo:

python benchmarks/humaneval_gate.py

On the real HumanEval benchmark (164 problems), the gate produces 0 false alarms on the canonical correct solutions, captures a checkable doctest spec on 76/164 (~46%) of problems, and abstains on the rest. It even flags HumanEval's own wrong doctest (problem 47) as a spec/code conflict rather than a false alarm — it caught a benchmark bug instead of blaming the code.

Coverage grows with the spec or reference you give it. The roadmap is a reference proposer that retrieves a same-task verified reference for code that ships with no tests, widening reach while keeping false alarms at zero.

How it decides

  • VERIFIED only if the captured spec passed on every input it could exercise.
  • REFUTED only on a clean mismatch — and it tells you the input.
  • ABSTAIN if it couldn't capture a usable spec. That discipline is what keeps it from false-alarming on good code.

The differential mode is the fun part: it generates inputs, runs the candidate and the reference, and shows the first input where they disagree. Input generation is signature-agnostic — it produces generic argument tuples, lets the reference filter the valid ones, and abstains if it can't exercise at least one.

Engineering

Pure Python standard library, zero dependencies, 13/13 tests, CI green on Python 3.9 / 3.11 / 3.12, MIT. It runs entirely on your machine — no account, no cloud, no telemetry, your code never leaves the box. There's also a VS Code extension that shows the counterexample inline.

Honest scope

It verifies what it can check and abstains on the rest — coverage is a function of the spec or reference you give it, never a guess. And the subprocess timeout guards against hangs; it is not a security sandbox, so verify code whose source you trust (your own assistant's output) or run it in a container.

It doesn't compete with your AI coder — it makes its output safe to ship.

⭐ MIT, free, and the measurements are reproducible: https://github.com/ishvaproducts-png/ishvacerto

pip install ishvacerto