Saffron Quality Gate (SQG)
The world's first executable AI-quality gate.
SQG is a production-grade quality enforcement engine that scans code, content, config, and design against 36 prohibited anti-slop patterns (A-001 through A-036) and scores deliverables across 14 quality dimensions — correctness, security, resilience, maintainability, usability, and more.
Built by the Saffron AI Group — the global leaders in AI quality engineering.
Quick Start
pip install saffron-quality-gate
# Scan your project
sqg scan --path .
# One-line summary
sqg scan --path . --format summary
# Full quality report
sqg audit --path . --format table
The 36 Anti-Slop Patterns
| ID | Pattern | Severity |
|---|---|---|
| A-001 | Happy-path-only implementation | 🔴 Blocker |
| A-002 | Placeholder logic (TODO/FIXME/HACK) | 🔴 Blocker |
| A-003 | Generic boilerplate | 🟡 Warning |
| A-004 | Unverified claims | ⚪ Info |
| A-005 | Cargo-cult architecture | ⚪ Skip |
| A-006 | Feature checklists without depth | ⚪ Info |
| A-007 | Verbose output / low info-density | ⚪ Info |
| A-008 | Inconsistent naming/styling | 🟡 Warning |
| A-009 | Tests-for-coverage (empty asserts) | 🔴 Blocker |
| A-010 | Polished surface, weak foundation | 🟡 Warning |
| A-011 | Excessive abstraction | ⚪ Info |
| A-012 | Dependency bloat | 🟡 Warning |
| A-013 | Default config shipped unchanged | 🔴 Blocker |
| A-014 | Silent failure (except: pass) | 🚨 Highest Priority |
| A-015 | Hardcoded values | 🔴 Blocker |
| A-016 | Inconsistent error handling | 🟡 Warning |
| A-017 | One-size-fits-all / copy-paste | 🟡 Warning |
| A-018 | Premature optimization | ⚪ Info |
| A-019 | Symmetry obsession | ⚪ Skip |
| A-020 | Semantic overload | ⚪ Info |
| A-021 | Performance theatre | ⚪ Info |
| A-022 | Negative code (workarounds) | 🟡 Warning |
| A-023 | Comment rot | ⚪ Info |
| A-024 | Framework lock-in | 🟡 Warning |
| A-025 | Premature generalization | ⚪ Info |
| A-026 | Implicit contracts | 🟡 Warning |
| A-027 | False laziness | 🔴 Blocker |
| A-028 | Code golf | ⚪ Info |
| A-029 | Copy-paste reuse (duplicates) | 🟡 Warning |
| A-030 | Error string parsing | 🔴 Blocker |
| A-031 | Numeric type abuse | 🟡 Warning |
| A-032 | Implicit null handling | ⚪ Skip |
| A-033 | Timezone neglect | 🔴 Blocker |
| A-034 | Side-effect mismatch | 🔴 Blocker |
| A-035 | Silent data loss | 🟡 Warning |
| A-036 | Callback pyramid / nested chains | 🟡 Warning |
Commands
sqg --help # Full help
sqg scan --path . # Anti-slop scan (A-001 to A-036)
sqg audit --path . # Full 14-dimension quality audit
sqg gate --path . # Unified gate runner (all checks)
sqg version # Version info
Integration
# As a pre-commit hook
echo '#!/bin/sh\nsqg scan --path . --format summary || exit 1' > .git/hooks/pre-commit
# As a CI step
- name: Quality Gate
run: sqg gate --path . --strict
The 14 Quality Dimensions
- Correctness (15%)
- Functional Excellence (12%)
- Architecture (10%)
- Resilience & Reliability (10%)
- Security (10%)
- Performance & Efficiency (8%)
- Usability (10%)
- Accessibility (5%)
- Maintainability (10%)
- Observability (5%)
- Test Quality & Coverage (5%)
- Aesthetic & Visual (3%)
- Documentation (4%)
- Strategic Value (3%)
Saffron AI Group — Setting the standard the rest of AI will be measured against.
Metadata
Release files for saffron-quality-gate 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| saffron_quality_gate-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for saffron_quality_gate-1.0.0-py3-none-any.whl |
Release files / saffron_quality_gate-1.0.0-py3-none-any.whl
| Download URL | saffron_quality_gate-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bcafaba04f146aa45bff64afef0198994656020eb237b18adb46a1d35d56e48f
|
|
BLAKE2b-256 checksum How to use checksums |
34ebd0e0c354fb6bd7a4f9c23e2434190e8ed48f4f58ad689784719a92e380e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for saffron-quality-gate 1.0.0
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.