artifact.py file-level

at main · View file ↗ · Intel ↗

History
1 files
1 commits
0 hotspots
0 🧊 dead
0 💥 blast risk
sha256:6 fix(ISR): default require_independent_second_reviewer to require Opera… · aaronrene · Sep 2, 2026
1 """Artifact digest helpers (§K9.8)."""
2
3 from __future__ import annotations
4
5 import hashlib
6 from pathlib import Path
7
8
9 def sha256_file_bytes(path: Path) -> str:
10 """Return lowercase hex SHA-256 of raw file bytes."""
11 digest = hashlib.sha256(path.read_bytes()).hexdigest()
12 return digest.lower()