| name | auditability |
| description | AI Auditability ensures that all AI decisions are logged, traceable, Use when this capability is needed. |
| metadata | {"author":"amnadtaowsoam"} |
Auditability
Skill Profile
(Select at least one profile to enable specific modules)
Overview
AI Auditability ensures that all AI decisions are logged, traceable, and explainable. This is critical for regulatory compliance, debugging, bias detection, and incident investigation.
Core Principle: "If it's not logged, it didn't happen. Every AI decision must be auditable."
This skill provides comprehensive guidance on implementing auditability across AI systems.
Why This Matters
Core Concepts & Rules
1. Core Principles
- Follow established patterns and conventions
- Maintain consistency across codebase
- Document decisions and trade-offs
2. Implementation Guidelines
- Start with the simplest viable solution
- Iterate based on feedback and requirements
- Test thoroughly before deployment
Inputs / Outputs / Contracts
- Inputs:
- <e.g., env vars, request payload, file paths, schema>
- Entry Conditions:
- <Pre-requisites: e.g., Repo initialized, DB running, specific branch checked out>
- Outputs:
- <e.g., artifacts (PR diff, docs, tests, dashboard JSON)>
- Artifacts Required (Deliverables):
- <e.g., Code Diff, Unit Tests, Migration Script, API Docs>
- Acceptance Evidence:
- <e.g., Test Report (screenshot/log), Benchmark Result, Security Scan Report>
- Success Criteria:
- <e.g., p95 < 300ms, coverage ≥ 80%>
Skill Composition
- Depends on: None
- Compatible with: None
- Conflicts with: None
- Related Skills: None
Quick Start
Assumptions
- AI decisions can be logged with metadata
- Storage backend is available and scalable
- Team has capacity to review audit logs
- Compliance requirements are well-defined
- Query patterns are predictable
Compatibility
- Works with any AI system
- Compatible with all logging frameworks
- Framework-agnostic approach
- Adaptable to different storage backends
Test Scenario Matrix
| Scenario | Test Case | Expected Outcome |
|---|
| Decision logged | AI prediction recorded | Queryable in audit logs |
| User queries | Retrieve user decisions | Complete audit trail returned |
| PII anonymized | Sensitive data hashed | Protected in logs |
| Compliance check | Audit passes requirements | System compliant |
Technical Guardrails & Security Threat Model
1. Security & Privacy (Threat Model)
- Top Threats: Injection attacks, authentication bypass, data exposure
2. Performance & Resources
3. Architecture & Scalability
4. Observability & Reliability
Agent Directives
- Log everything - Never skip logging AI decisions
- Anonymize PII - Always protect sensitive data
- Use structured format - Queryable, consistent schema
- Explain decisions - Document reasoning for predictions
- Maintain traceability - Chain of custody for all data
- Immutable logs - Never modify audit records
Definition of Done
AI auditability implementation is complete when:
Anti-patterns
- Selective logging - Log only important decisions
- Unstructured logs - Free-form text without schema
- Missing context - Not logging input features
- No PII protection - Sensitive data in plain text
- No query interface - Cannot search audit logs
- Short retention - Logs deleted before analysis
Reference Links
Versioning
This skill follows semantic versioning (MAJOR.MINOR.PATCH):
- MAJOR: Breaking changes to procedures or standards
- MINOR: New audit methods or significant enhancements
- PATCH: Bug fixes or documentation updates
Converted and distributed by TomeVault — claim your Tome and manage your conversions.