ISAF Logger
Automatic compliance logging for AI systems. Add 3 lines of code, get EU AI Act-ready documentation with deterministic SHA-256 hash chain verification. Works with PyTorch, TensorFlow, JAX, and scikit-learn.
Why ISAF Logger?
AI regulations are here. EU AI Act, Colorado AI Act, NYC Local Law 144 all require documentation of how your AI systems were trained. ISAF automates this.
3 Lines of Code
Full Stack Coverage
Cryptographic Verification
Compliance Ready
Framework Agnostic
Flexible Storage
Quick Start
Get compliance logging in under 5 minutes
1Install
pip install haiec-isaf-logger2Add to Your Code
import isaf
# Initialize ISAF (one line)
isaf.init()
# Add decorators to your training functions
@isaf.log_data(source="customer_data", version="3.2.1")
def load_training_data():
return pd.read_csv("data.csv")
@isaf.log_objective(
name="binary_crossentropy",
constraints=["fairness < 0.05"]
)
def train_model(data):
model = create_model()
model.fit(data)
return model
# Run training as normal
data = load_training_data()
model = train_model(data)
# Export compliance report (one line)
isaf.export("compliance_report.json")3What Gets Logged
Layer 6: ML Framework
Framework versions, CUDA availability, default parameters, numerical precision
Layer 7: Training Data
Data source, version, shape, dtypes, missing values, preprocessing operations
Layer 8: Objective Function
Loss function, mathematical form, constraints, hyperparameters, justification
Cryptographic Hash Chain
Every layer is linked with SHA-256 hashes. Tamper-evident audit trail.
Regulatory Compliance Mappings
ISAF automatically maps your logged data to specific regulatory requirements
EU AI Act
NIST AI RMF
ISO 42001
Colorado AI Act
CLI Tools
Inspect and verify lineage files from the command line
isaf inspect
isaf verify
isaf export-from-db
Deterministic Verification
How the hash chain works and why it is reproducible
SHA-256 Hash Chain
Each layer is serialized with canonical JSON (sorted keys, compact separators). The previous layer hash is prepended to the canonical payload, then SHA-256 is computed. This makes the chain deterministic: the same input always produces the same root hash.
Verification Process
isaf.verify_lineage() reloads the exported JSON, rebuilds the hash chain from the stack trace, and compares the computed root hash to the stored root hash. If any layer was modified after export, the root hashes will not match.
API Surface
Research Foundation
ISAF is based on a technical methodology published as a preprint on Zenodo with a registered DOI
Published Whitepaper
The Instruction Stack Audit Framework (ISAF): A Technical Methodology for Tracing AI Accountability Across Nine Abstraction Layers
KC, S. (2025). Version 1.0. Zenodo. DOI: 10.5281/zenodo.18080355
This framework addresses the fundamental traceability gap in AI governance by providing technical specifications for documenting the full instruction stack from hardware substrate to emergent behavior. Includes a 127-checkpoint audit protocol and cryptographic verification methodology.
Built by HAIEC - Holistic AI Ethics & Compliance