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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file saffron_quality_gate-1.0.0-py3-none-any.whl.
File metadata
- Download URL: saffron_quality_gate-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcafaba04f146aa45bff64afef0198994656020eb237b18adb46a1d35d56e48f
|
|
| MD5 |
a7ab6fd72b16e0b58648a7a623631988
|
|
| BLAKE2b-256 |
34ebd0e0c354fb6bd7a4f9c23e2434190e8ed48f4f58ad689784719a92e380e3
|