Cette page est affichée en anglais. Une traduction française est en cours.
SkillsMay 12, 2026·2 min de lecture

QWED Protocol — Deterministic LLM Verification

QWED Protocol is a deterministic trust boundary for LLMs: verify math/logic/code/SQL claims and block unverified outputs before they hit production.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Asset
Commande d'installation directe
npx -y tokrepo@latest install 6165783d-912f-5860-aca7-3066e1d0724a --target codex

À exécuter après confirmation du plan en dry-run.

Introduction

QWED Protocol is a deterministic trust boundary for LLMs: verify math/logic/code/SQL claims and block unverified outputs before they hit production.

  • Best for: agent teams that want deterministic gates (math/logic/code/SQL) before shipping outputs
  • Works with: Python SDK + CLI; optional Docker; model-agnostic verification boundary (per README)
  • Setup time: 10–25 minutes

Practical Notes

  • Per README: pip install qwed installs core engines (Math, Code, Facts); qwed[full] adds SQL + logic/Z3 and more.
  • Per README: qwed test runs 12 deterministic tests as a pre-production gate.
  • Treat verification failures as product signals: log failures, route to fallback, and add tests for recurring mistakes.

Main

A safe integration pattern:

  1. Wrap your model call with a verification step (or verify the final answer + key tool outputs).
  2. Classify failures into: correctable (auto-fix), requires human review, and block.
  3. Start with deterministic domains: math, SQL, code safety checks, logic constraints.
  4. Add a CI gate: if your “golden tests” fail, don’t deploy the agent prompt/toolchain update.

Verification works best when it’s explicit: decide what must be true (constraints) instead of hoping the model “usually” gets it right.

FAQ

Q: Does verification reduce hallucinations? A: Per README: it focuses on making hallucinations irrelevant by catching/blocking unverified outputs before production.

Q: What’s a good first use case? A: Math and SQL checks are low-cost and high-impact. Add code-safety checks for tools that run commands.

Q: How strict should I be? A: Start strict on critical facts/tool actions, but allow fallbacks (re-ask model, different tool, or human review) to avoid dead ends.

🙏

Source et remerciements

Source: https://github.com/QWED-AI/qwed-verification > License: Apache-2.0 > GitHub stars: 57 · forks: 9

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires