Skip to main content

perishables

Point-in-time trust auditor for Open Knowledge Format bundles and seven analytics semantic layers, in zero-dependency Rust.

Verified claims have a shelf life. Schema validators check whether metadata fields parse. perishables checks whether those claims remain current, provenance-intact, acyclic, and computationally true at a pinned instant in time, with zero external crates in its dependency tree.

Docs · Architecture · OKF Trust Model · 7 Semantic Layers · Claims & Corpus · Releases

CI on main crates.io version PyPI version docs.rs 0 external dependencies MIT or Apache-2.0 license

A two-part view with live point-in-time evidence and corpus status above and real perishables CLI runs below, catching a lapsed verification, an Attested Computation mismatch, SHA-256 source drift, native LookML dangling references and name collisions, and passing all 19 reference corpus fixtures with zero mutations

Every terminal line above comes from real executions of the perishables release binary against checked-in corpus fixtures and LookML models.

Why perishables

Documentation bundles, AI context packs, and enterprise semantic layers rot quietly. A metric verified in June is regenerated in October while its frontmatter still reads human-reviewed. A raw CSV extract changes on disk while footnotes still cite the old numbers. A LookML measure references a deleted base field or introduces a duplicate business synonym. Schema validators pass every single one of those files because the syntax is still valid YAML, JSON, or LookML.

perishables evaluates whether trust claims still hold at an explicit --as-of instant.

  • Recomputed trust tiers. Ignores stale self-reported tiers when underlying content was regenerated after its last verification (LAPSED_VERIFICATION), and flags stable concepts whose stale_after horizon has passed (STALE_BUT_STABLE).
  • Cryptographic provenance and supersession integrity. Hashes bundled source files with in-tree FIPS 180-4 SHA-256 to catch silent byte drift (SOURCE_DRIFT), verifies every [^id] footnote and in-bundle path, and walks superseded_by graphs to convict cycles, missing targets, and root-escaping ../ paths.
  • Re-executed Attested Computation blocks. Pre-screens deterministic Python blocks through ast.parse, binds typed parameters safely inside an isolated 0700 scratch folder with memory and timeout bounds, and compares the live result against the claimed figure (ATTESTED_RESULT_MISMATCH, UNATTESTED_CLAIM). Pass --no-exec when auditing untrusted bundles without subprocess execution.
  • Format-blind grading across seven semantic layers. Hand-written JSON, YAML, JavaScript, and native LookML readers normalize definitions from dbt, Apache Ossie, Snowflake, Databricks Genie, Cube, Looker / LookML, and AtScale into one Definition graph, catching dangling references, name and synonym collisions, fan-trap joins, lapsed verified queries, and incomplete ground-truth benchmarks.
  • Zero external crates, zero ambient state, zero bundle writes. Cargo.lock contains only the three workspace crates. No check reads SystemTime::now() or filesystem mtime, and perishables corpus hashes all 19 reference fixtures before and after auditing to prove zero directory mutation.

Side-by-side comparison showing syntax-only schema validation passing four decayed or broken claims while perishables at --as-of 2026-11-20 convicts LAPSED_VERIFICATION, SOURCE_DRIFT, ATTESTED_RESULT_MISMATCH, and DANGLING_METRIC_REFERENCE

How it works

OKF bundles and seven analytics semantic ecosystems flow into perishables-core and perishables-semantic under a pinned AuditClock with zero external dependencies, emitting deterministic terminal, SARIF 2.1.0, GitHub Actions, and JSON verdicts

Crate Kind External runtime deps Role
perishables-core library none (std only) OKF bundle loader, YAML frontmatter and Markdown fence parser, proleptic Gregorian calendar math, FIPS 180-4 SHA-256, and the locked four-call trust surface.
perishables-semantic library none (std only) Hand-written JSON, YAML, JS, and native LookML readers plus format-blind semantic grading rules across seven analytics ecosystems.
perishables binary and library none (std only) CLI dispatcher (audit, drift, corpus, grade, grade-*), AST-screened Python sandbox executor, and text, json, sarif, and github formatters.

Quickstart

Install perishables from PyPI, from crates.io, with cargo binstall perishables, or from the prebuilt Linux, macOS, and Windows archives on GitHub Releases.

pip install perishables
# or run directly without installing
uvx perishables --version
# or install from crates.io
cargo install perishables

The PyPI wheel bundles the native Rust perishables binary alongside a typed standard-library Python SDK.

import perishables

report = perishables.audit("corpus/fixtures/clean-team-verified", as_of="2026-11-20")
report.raise_for_findings()

Audit an OKF knowledge bundle

Every audit run takes an explicit --as-of date or RFC 3339 timestamp so results stay reproducible forever across clones and machines.

perishables audit ./bundle --as-of 2026-11-20
perishables audit ./bundle --as-of 2026-11-20 --format sarif --output audit.sarif
perishables audit ./untrusted-bundle --as-of 2026-11-20 --no-exec
perishables drift ./bundle
perishables corpus

Exit code 0 means zero gate findings, 1 means one or more gate findings, and 2 means a command usage or input parse error.

Grade semantic layers across seven ecosystems

Run ecosystem-specific subcommands or the unified perishables grade command with --format text|json|sarif|github.

perishables grade-dbt manifest.json
perishables grade-ossie model.yaml
perishables grade-snowflake view.yaml --changed-at 2026-11-20
perishables grade-databricks space.json
perishables grade-cube model.js
perishables grade-looker orders.view.lookml customers.view.lookml sales.model.lookml
perishables grade-atscale model.json
perishables grade model.yaml orders.view.lookml --format sarif --output semantic.sarif

Finding codes at a glance

Surface Finding codes enforced
OKF bundle audit (12 codes, 19 corpus fixtures) LAPSED_VERIFICATION, MALFORMED_VERIFICATION, SUPERSESSION_CYCLE, DANGLING_SUPERSEDED_BY, SUPERSEDED_WITHOUT_DEPRECATED, STALE_BUT_STABLE, UNPARSEABLE_STALE_AFTER, ATTESTED_RESULT_MISMATCH, UNATTESTED_CLAIM, UNRESOLVED_CITATION, MISSING_SOURCE, SOURCE_DRIFT
Cross-ecosystem semantic grade (6 rule codes + notes) DANGLING_METRIC_REFERENCE, NAME_COLLISION, LAPSED_VERIFIED_QUERY, DANGLING_RELATIONSHIP, BENCHMARK_WITHOUT_ANSWER, AMBIGUOUS_JOIN_PATH

Embed in Rust or GitHub Actions

use perishables_core::{
    AuditClock, Bundle, check_currency, check_drift, check_freshness,
    check_provenance, check_supersession, recompute_tier,
};
use std::path::Path;

let clock = AuditClock::parse("2026-11-20").expect("valid date");
let bundle = Bundle::load(Path::new("corpus/fixtures/clean-healthy-chain"))
    .expect("bundle loads");

for concept in &bundle.concepts {
    let tier = recompute_tier(concept, &clock);
    println!("{} -> {}", tier.concept_id, tier.recomputed_tier.name());
}
assert!(check_currency(&bundle, &clock).is_empty());
assert!(check_supersession(&bundle).is_empty());
assert!(check_freshness(&bundle, &clock).is_empty());
assert!(check_provenance(&bundle).is_empty());
assert!(check_drift(&bundle).is_empty());
- uses: david-engelmann/perishables@v0.1.0
  with:
    command: audit
    path: ./knowledge-bundle
    as-of: "2026-11-20"
    format: github

Verification

Run the full zero-dependency gate locally across formatting, Clippy, unit and integration suites, the 19-fixture planted-defect corpus, rustdoc, and the library example.

cargo fmt --all -- --check
cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
cargo test --workspace --all-features --locked
cargo run --locked -- corpus
RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --locked
cargo run -p perishables-core --example audit_bundle --locked

Documentation

If you want to... Read
Browse every specification and guide Documentation index
Understand crate boundaries and determinism guarantees Architecture · Decisions
Read the OKF trust-tier, currency, and provenance specification OKF trust design · Attested Computation
See how all seven analytics ecosystems map into one grading model Cross-ecosystem grading · Native LookML reader
Verify every claim against its corpus fixture or test Claims and corpus traceability · Reference corpus
Review Python sandbox hardening, --no-exec, and release notes Security policy · Changelog

Contributing

CONTRIBUTING.md details the zero-dependency rule, planted-defect fixture requirements, and local verification gates.

License

Licensed under either of MIT or Apache License, Version 2.0 at your option.

Metadata

Release files for perishables 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for perishables 0.1.0
File Size Uploaded Provenance Actions
perishables-0.1.0.tar.gz 109.7 kB With provenance Details for perishables-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for perishables 0.1.0
File Actions
perishables-0.1.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for perishables-0.1.0-py3-none-win_amd64.whl
perishables-0.1.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for perishables-0.1.0-py3-none-manylinux_2_28_x86_64.whl
perishables-0.1.0-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for perishables-0.1.0-py3-none-manylinux_2_28_aarch64.whl
perishables-0.1.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for perishables-0.1.0-py3-none-macosx_11_0_arm64.whl
perishables-0.1.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for perishables-0.1.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 2.8 MB

Release files / perishables-0.1.0.tar.gz

Download URL perishables-0.1.0.tar.gz
Size 109.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bf3675e7a28c7cd66c807206e497aa6535c0ae67e35853db61ed58e74991951d
BLAKE2b-256 checksum
How to use checksums
7f0008d8f461dcd2da63bd41c3c8e31a1d158e6adf723405c9cf19f98cd5abac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / perishables-0.1.0-py3-none-win_amd64.whl

Download URL perishables-0.1.0-py3-none-win_amd64.whl
Size 486.0 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
3b2025f4f4e5dc4ebcfd16d8e41c98ffe7128b62a966ab47530e73060a15def2
BLAKE2b-256 checksum
How to use checksums
ad4ebf476bd0b049e745a8729ec3b5812235200cd47b8816086de585480c7fad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / perishables-0.1.0-py3-none-manylinux_2_28_x86_64.whl

Download URL perishables-0.1.0-py3-none-manylinux_2_28_x86_64.whl
Size 562.8 kB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
de5eb2157fd16816e746984d28d8bb402713addab32542a8c0071ecac3bd4b3e
BLAKE2b-256 checksum
How to use checksums
ba8ca663216398b548e714eb441007c0e1e87ffc1972e30b8d69fa1d4e60785b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / perishables-0.1.0-py3-none-manylinux_2_28_aarch64.whl

Download URL perishables-0.1.0-py3-none-manylinux_2_28_aarch64.whl
Size 529.2 kB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
46695dff6a9f9b07d1a2abb0cdf90614610f9900d3ea2c0bdefdbda967ad5b1e
BLAKE2b-256 checksum
How to use checksums
86e55523efd489fe6e23eb5156c1ddadb3816ee27a92624a5d5b6d600258c407
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / perishables-0.1.0-py3-none-macosx_11_0_arm64.whl

Download URL perishables-0.1.0-py3-none-macosx_11_0_arm64.whl
Size 520.8 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
36889922778f77e108de32a9580c11d2824c35c96ee263685c097feb3737e205
BLAKE2b-256 checksum
How to use checksums
dc446f269322f356379dabf99a0613d9da0e614bb6f6f2faccd1aedc1c612f43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / perishables-0.1.0-py3-none-macosx_10_12_x86_64.whl

Download URL perishables-0.1.0-py3-none-macosx_10_12_x86_64.whl
Size 546.0 kB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
61e226e9a1d506df471da789434b371acc420781fccc0606b8c9b92826289270
BLAKE2b-256 checksum
How to use checksums
9dbe2fe7f5251f34f8d85848fd3c6d6380535542f227d64038f4cd903b45c356
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for perishables 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for perishables-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

6 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page