📦 RESOURCE: AI-Code-Integrity-Auditor — catch what linters won't
If you've ever shipped AI-generated code that looked right but silently broke at runtime, this tool is for you.
🔗 github.com/bellatrix11176/AI-Code-Integrity-Auditor
What it is:
A local static analysis tool built specifically to catch the failure patterns that ChatGPT and Claude produce — code that passes syntax checks but is logically unreliable, incomplete, or fabricated.
This is not a linter. It's a governance layer.
What it catches:
🐍 Python files:
• structural_hallucination — names used but never defined or imported
• silent_failure_risk — bare except blocks that swallow errors
• placeholder_logic — pass, NotImplemented, TODO/FIXME stubs left in
• terminal_state_failure — functions that imply a return value but have inconsistent return paths
• narrative_state_risk — print("success") with no matching state change; docstrings claiming to write/save but the function doesn't
• control_flow_drift — unreachable code after return / break / continue
• path_to_nowhere — hardcoded local file paths not in the uploaded batch
🗂️ JSON files:
• json_integrity_issue — placeholder values (todo, temp, your-api-key), sample credentials or URLs
• schema_drift — duplicate keys, mixed camelCase/snake_case, null density ≥ 35%
How it works:
Upload your files through a Streamlit UI → get categorized findings with severity labels → fix before it hits production.
Built for anyone using AI codegen in real pipelines who needs a trust-but-verify layer before deployment.
Feedback, issues, and stars welcome 🙏
#resources #tools #python #mlops #aigenerated
https://github.com/bellatrix11176/AI-Code-Integrity-Auditor
Don't run in Microsoft OneDrive, must have been ran outside OneDrive so it works properly.