artifact.py
python
sha256:0e9549ec7b463911bc08b7d586dc320b1ac9b1f5c943ee7e3865dcc6cb0f6f83
chore(governance): sync handover+roadmap to 84db8c8 (drift:…
Human
2 days ago
| 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() |
File History
1 commit
sha256:6abcf1fa82a7a621ccbc945f19acdba5bc0db54569599404a1452fb4a096a199
fix(ISR): default require_independent_second_reviewer to require
Human
minor
⚠
2 days ago