Artifact Pinning & Hash Gate
Chunk Provenance Stamping
Jump & context
Week 3: Memory Security, Trajectory Ledger Contract, Supply-Chain SBOM & Vector Foundations
The five hours
- 01
Concepts & system design
60 min· read · map the mechanismR37 — SLSA provenance & Sigstore concepts
R12 — Safetensors
R39 — Threat modeling provenance
R13 — Qdrant payload indexing
Read the assigned sections; map the mechanism, threat model and trade-offs.
- 02
Project implementation
120 min· build · integrate · debugImplement revision pinning and SHA-256 hash verification for model/embedding artifacts (
D12). *Lab:* Modify a single byte in a local model/config file and prove the startup integrity gate rejects it.Build document chunking that stamps every chunk with immutable
document_id,chunk_id,sha256_hash,tenant_id,source_uri, andingestion_version.Build, integrate, debug and improve the increment in the active project.
- 03
Security lab
60 min· attack your own systemNo separate task text for this block on day 17 — the sourced work sits in the block above. Keep the time box.
Test the abuse case, failure path, authorization bypass or resource limit.
- 04
Verification & evidence
30 min· test · record evidenceHash-gate tampering rejection test + chunk provenance metadata unit tests.
Add or run regression tests; record the 9-point evidence record.
- 05
Deliberate practice & Socratic review
30 min· explain aloud · update gapsAnswer the 8 Socratic questions without notes: What? Why? How? What if? Why not? How can I prove it? Where can it break? What have I learned?
Re-explain the hardest concept aloud, inspect one edge case, update the gap log.
- total5 h
Read today · inside the concepts block
R12 R13 R37 R39Zero-copy safe tensor format overview vs. unsafe pickle deserialization risks.
Collections, payload metadata indexing, pre-filtering, multitenancy partitioning, and snapshots.
Supply-chain Levels for Software Artifacts (SLSA), build provenance attestations, and Cosign artifact signing.
Four-question framework & STRIDE: assets, trust boundaries, data flows, threat identification, and mitigation tracking.
Read only the named sections needed for today's task. Reading sits inside the 60-minute concepts block; it is not extra time.
Free resources for this day
5 curated- docsslsa.dev (OpenSSF) · framework overviewSLSA • Supply-chain Levels for Software Artifacts
Defines build provenance tracks and levels, the vocabulary you need to state what your artifact hash gate actually proves about how a model or embedding artifact was produced.
R37moved 2026-11-11 - videoCNCF [Cloud Native Computing Foundation] · 34 minSecuring the Supply Chain with Sigstore Artifacts Signatures at Scale
Shows keyless Sigstore signing and verification of artifacts at scale, the operational counterpart to pinning a model revision and checking a SHA-256 digest at startup.
R37checked 2026-11-11 - videoAdam Shostack · 1 minThe Four Question Framework For Threat Modeling
The 60-second statement of what/where/response/review that frames the artifact-pinning gate as a threat-model decision rather than a checksum checkbox.
R39checked 2026-11-11 - articleChainguard Academy · short procedureHow to sign blobs and standard files with Cosign
Concrete cosign sign-blob / verify-blob commands with bundles, the exact primitive you reuse to sign and later verify a model or config artifact byte-for-byte.
R37checked 2026-11-11 - labSigstore Documentation · hands-on quickstartSigstore Quickstart with Cosign
Guided signing and verification of a blob you create, which you can adapt into the D12 integrity gate that must reject a single flipped byte.
R37moved 2026-11-11
Evidence record · 9-point standard
A lab is complete only when it produces evidence. Installing PyRIT, Garak, Presidio or TransformerLens is not completion. Saved on this device only.
Day notes
emptyThe two source formulations
verbatim · nothing summarisedProject & Deliverable Target
P2 (C2) | `D12` (AI Supply-Chain SBOM Scanner) | M1, S4
Focus 1 (Artifact Pinning & Hash Gate — Orig. Day 21)
Implement revision pinning and SHA-256 hash verification for model/embedding artifacts (D12). *Lab:* Modify a single byte in a local model/config file and prove the startup integrity gate rejects it.
Focus 2 (Chunk Provenance Stamping — Orig. Day 22)
Build document chunking that stamps every chunk with immutable document_id, chunk_id, sha256_hash, tenant_id, source_uri, and ingestion_version.
Verification & Evidence
Hash-gate tampering rejection test + chunk provenance metadata unit tests.
Read Today (60m Concepts Block)
R37 (SLSA provenance & Sigstore concepts), R12 (Safetensors), R39 (Threat modeling provenance), R13 (Qdrant payload indexing).
---