ProofLayer emits compliance evidence by mapping runtime and eval events to packaged framework registries. It does not claim certification; it creates auditor-defensible evidence records with timestamps, source events, control IDs, and sha256 hash chaining.
pip install prooflayer-rules[compliance]- NIST AI RMF
- EU AI Act Articles 13-15
- SOC 2 CC6/CC7
- HIPAA Security Rule
Each framework registry lives in prooflayer/compliance/frameworks/ and includes at least 20 AI-applicable controls.
from prooflayer.compliance import ComplianceEmitter
emitter = ComplianceEmitter(["nist_ai_rmf", "soc2"])
records = emitter.emit(
{
"event_type": "detection",
"category": "prompt_injection",
"timestamp": "2026-06-13T00:00:00Z",
"decision": "BLOCK",
"rule_ids": ["direct-ignore-previous"],
"event_hash": "abc123",
}
)Each EvidenceRecord includes:
- framework
- control ID
- evidence type
- source event
- event ID
- timestamp
- previous hash
- evidence hash
from pathlib import Path
from prooflayer.compliance import ComplianceReportGenerator
ComplianceReportGenerator().to_markdown(
records,
output_path=Path("security-reports/compliance/report.md"),
)PDF rendering is optional and requires:
pip install prooflayer-rules[compliance]Then:
ComplianceReportGenerator().to_pdf(markdown, Path("security-reports/compliance/report.pdf"))ProofLayer maps evidence conservatively:
prompt_injection,jailbreak,exfil, andstate_manipulationmap to runtime monitoring and audit controls.tool_abusemaps to tool access and unauthorized-action controls.scope_driftmaps to intended-purpose and authorized-use controls.multi_turnandeval_reportmap to adversarial robustness and evaluation controls.benchmarkmaps to performance and robustness controls.
If an event does not match a known category or event type, no evidence is emitted.