tamper-proof invariants
cryptographic schema hashing guarantees that any unreviewed field change or buffer size adjustment immediately invalidates the lockfile.
conformance
bridge machine-readable schema lockfiles with human-readable audit attestations. immutable sha-256 digests for cross-team compliance.
e3b0c44298fc1c14...855"signature": "stokes-sig-v1:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
tamper-proof boundaries
in modern distributed systems, analytical schemas and microservice buffers live in separate repositories. stokes binds them cryptographically into a two-tier contract system: a machine-authoritative lockfile (stokes.lock) for ci enforcement, and a human-readable audit certificate (CONFORMANCE.md) for pr reviews.
every column definition, analytical data type, and array buffer size is extracted from the AST and hashed into a canonical root digest. comments, docstrings, and code formatting are discarded to prevent false breaks.
committed directly into git alongside code. evaluated by stokes verify --strict in ci/cd pipelines to block prs on uncontracted drift.
self-documenting markdown certificate summarizing capacity margins, benchmark timings (7.66 ns), and fuzz test coverage for pr reviewers.
any pull request that adds or modifies analytical schema without updating the corresponding proxy buffers is automatically rejected.
{
"$schema": "https://stokes.dev/schema/v1.json",
"version": "1.0.0",
"workspace": "dirichlet-l7-proxy",
"root_digest": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"verification_mode": "normalized_semantic_ast",
"invariants": {
"max_features": 200,
"downstream_capacity": 200,
"cardinality_risk_ratio": 1.40,
"zero_panics_verified": true
},
"targets": [
{
"id": "clickhouse-schema",
"path": "migrations/001_bot_signals.sql",
"digest": "sha256:4b227777d4dd1fc61c6f884f48641d02b4d121d3fd328cb08b5531fcacdabf8a"
},
{
"id": "rust-proxy-buffer",
"path": "crates/dirichlet-proxy/src/engine/feature_ingest.rs",
"digest": "sha256:ef2d127de37b942baad06145e54b0c619a1f22327b2ebbcfbec78f5564afe39d"
}
]
}cryptographic schema hashing guarantees that any unreviewed field change or buffer size adjustment immediately invalidates the lockfile.
runs as an automated, non-bypassable github actions check on every pull request, ensuring production deployments never inherit drift.
produces a self-contained markdown audit manifest (CONFORMANCE.md) detailing schema hashes, benchmark numbers, and test results for pull request review.
conformance faq
details on sha-256 digests, tamper resistance, and ci/cd compliance policies.
install stokes to run autonomous cross-compiler verification across ClickHouse, Python, and Rust in your pre-commit hooks and ci pipelines.