QWED GitHub Action
Neurosymbolic verification for your CI/CD pipelineWhat is QWED?
QWED combines Neural Networks (LLMs) with Symbolic Reasoning (SymPy, Z3) to provide deterministic verification of AI outputs. Use cases:- ✅ Verify mathematical calculations in PRs
- ✅ Check logical reasoning in documentation
- ✅ Detect unsafe code patterns
- ✅ Validate LLM outputs before deployment
Quick Start
Add this to your.github/workflows/verify.yml:
Extension GitHub Actions
Use these extension-specific actions when you want domain-focused checks in your pipeline.| Icon | Action | Description |
|---|---|---|
| 💰 | QWED Finance Guard | Verify financial calculations and compliance signals before merging. |
| ⚖️ | QWED Legal Verification | Validate legal reasoning, deadlines, citations, and clause consistency. |
| 🧾 | QWED Protocol Verification | Verify protocol-level logic and deterministic rule conformance. |
| 🛒 | QWED Commerce Auditor | Audit checkout math, pricing, and transaction integrity in commerce flows. |
Inputs
| Input | Description | Required | Default |
|---|---|---|---|
query | Question or statement to verify | ✅ Yes | - |
provider | LLM provider (openai, anthropic, gemini) | No | openai |
api-key | API key for LLM provider | No | - |
model | Model name (e.g., gpt-4o-mini) | No | gpt-4o-mini |
mask-pii | Enable PII masking (true/false) | No | false |
verification-type | Type: auto, math, logic, code | No | auto |
Outputs
| Output | Description |
|---|---|
verified | Verification result (true/false) |
value | Verified value or result |
confidence | Confidence score (0.0-1.0) |
evidence | JSON evidence of verification |
Examples
Verify Math in PRs
Verify Logic
Check Code Security
Privacy & Security
- 🔒 PII Masking: Automatically mask sensitive data (emails, SSNs, credit cards)
- 🏠 Local Option: Use local LLMs (Ollama) for zero cloud exposure
- 🔐 API Keys: Use GitHub Secrets for secure credential management
- ✅ Open Source: Full transparency, no black boxes
How It Works
- Query: “What is the derivative of x^2?”
- LLM says: “2x”
- SymPy computes:
diff(x**2, x) = 2*x - QWED: ✅ MATCH! Verified with 100% confidence
Requirements
API Keys (choose one):- OpenAI:
OPENAI_API_KEY - Anthropic:
ANTHROPIC_API_KEY - Google:
GOOGLE_API_KEY
Documentation
Support
- Issues: GitHub Issues
- PyPI: qwed
- Twitter: @rahuldass29
License
Apache 2.0 - See LICENSEMade with 💜 by QWED-AI