updated 2026-11-26·3 min read
Cryptographic Conformance & Audit Receipts
Machine-checked stokes.lock digests paired with human-readable CONFORMANCE.md pull request summaries.
Stokes splits boundary receipts into two files: stokes.lock (the machine-checked JSON digest verified by CI) and CONFORMANCE.md (the readable summary generated for pull request reviewers).

Verification Summary & Receipt Manifest
Verification Checks
- ClickHouse schema: 200 canonical features verified
- Transitive qualification:
WHERE database = currentDatabase()verified - Rust proxy:
[FeatureDescriptor; 200]stack buffer verified - Dual-zone partitioning: zone 0 (128 slots) + zone 1 (72 slots)
- 16-item slice micro-bench (
ingest_benchmark.rs):7.66 nsin-place vs29.74 nsheap - Full-struct deserialization (
CONFORMANCE.md):213.09 nsbounded stack (0 Bheap) vs134.19 nsheap - Property fuzz tests:
10,000 / 10,000passed (78adversarial float vectors)
Receipt Metadata
- Target Workspace:
cloudflame - Stokes Version:
0.2.0 - Upstream vs. Buffer:
280drifted cols vs200slots (Risk = 1.40caught before mitigation) - CI Enforcement: Strict pre-merge gate (
stokes verify --strict) - Master Semantic Digest:
sha256:1dfc7d7909530fa6b0c5b9df552315786642929620cd186bbcf1c22f76fc2fd8
How Lockfiles Stop Drift Before Deployment
- Normalized Semantic AST Hashing
Extracts column definitions, data types, and fixed array sizes and hashes them into a canonical root digest while ignoring comments and formatting.
- Machine-Checked stokes.lock
Committed to Git alongside code and checked by stokes verify --strict in CI/CD pipelines.
- Human-Readable CONFORMANCE.md
Markdown summary recording capacity margins, Criterion measurements, and fuzz coverage for PR reviewers.
- Deterministic PR Gate
Any PR altering analytical schemas without updating downstream buffers is rejected automatically.
Example stokes.lock Output (cloudflame/stokes.lock)
{
"stokes_version": "0.2.0",
"generated_at": "2026-09-27T13:53:43.402481+00:00",
"workspace": "cloudflame",
"risk_ratio": 1.0,
"status": "COMPLIANT",
"master_semantic_digest": "sha256:1dfc7d7909530fa6b0c5b9df552315786642929620cd186bbcf1c22f76fc2fd8",
"downstream_capacity": 200,
"upstream_cardinality": 200,
"verification_mode": "normalized_semantic_ast"
}Conformance & Audit Receipt FAQ
- What is the difference between
stokes.lockandCONFORMANCE.md?stokes.lockis the JSON digest checked bystokes verify --strict;CONFORMANCE.mdis the readable PR audit summary. - How does normalized hashing avoid false positives? It hashes only columns, types, nullability, fixed buffer bounds, and query predicates while stripping comments, whitespace, and private helpers.
- Should
stokes.lockbe committed to Git? Yes; committing it tracks boundary contracts across branches and staging environments. - What happens on uncontracted schema drift?
stokes verifyexits with code1and blocks merging in GitHub Actions. - How does
stokes.lockcoordinate separate Git repositories? Upstream exports its certified digest and downstream pinsupstream_schema_digestin its localstokes.lock, catching breaking upstream PRs before merge.
See Lockfile Specification (stokes.lock) for the complete field schema and normalization rules.