Esta página se muestra en inglés. Una traducción al español está en curso.
SkillsMay 12, 2026·2 min de lectura

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.

Listo para agents

Instalación lista para agent

Este activo puede instalarse después de elegir el runtime, revisar el plan y ejecutar el comando correspondiente.

Native · 98/100Política: permitir
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Single
Confianza
Confianza: Established
Entrada
Asset
Comando de instalación directa
npx -y tokrepo@latest install 6165783d-912f-5860-aca7-3066e1d0724a --target codex

Ejecutar después de confirmar el plan con dry-run.

Introducción

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.

🙏

Fuente y agradecimientos

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

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados