lietzsche;stokes

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).

Stokes conformance certificate view showing verification battery status, attestation manifest, and SHA-256 digest
conformance attestation: verification checks sealed into stokes.lock and conformance.md.

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 ns in-place vs 29.74 ns heap
  • Full-struct deserialization (CONFORMANCE.md): 213.09 ns bounded stack (0 B heap) vs 134.19 ns heap
  • Property fuzz tests: 10,000 / 10,000 passed (78 adversarial float vectors)

Receipt Metadata

  • Target Workspace: cloudflame
  • Stokes Version: 0.2.0
  • Upstream vs. Buffer: 280 drifted cols vs 200 slots (Risk = 1.40 caught before mitigation)
  • CI Enforcement: Strict pre-merge gate (stokes verify --strict)
  • Master Semantic Digest: sha256:1dfc7d7909530fa6b0c5b9df552315786642929620cd186bbcf1c22f76fc2fd8

How Lockfiles Stop Drift Before Deployment

  1. 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.

  2. Machine-Checked stokes.lock

    Committed to Git alongside code and checked by stokes verify --strict in CI/CD pipelines.

  3. Human-Readable CONFORMANCE.md

    Markdown summary recording capacity margins, Criterion measurements, and fuzz coverage for PR reviewers.

  4. 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.lock and CONFORMANCE.md? stokes.lock is the JSON digest checked by stokes verify --strict; CONFORMANCE.md is 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.lock be committed to Git? Yes; committing it tracks boundary contracts across branches and staging environments.
  • What happens on uncontracted schema drift? stokes verify exits with code 1 and blocks merging in GitHub Actions.
  • How does stokes.lock coordinate separate Git repositories? Upstream exports its certified digest and downstream pins upstream_schema_digest in its local stokes.lock, catching breaking upstream PRs before merge.

See Lockfile Specification (stokes.lock) for the complete field schema and normalization rules.

Search wiki and portfolio

type to search across all entries.