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

lookml = perishables.grade_looker(["orders.view.lookml", "sales.model.lookml"])
lookml.raise_for_findings()

sarif = perishables.audit_sarif(
    "corpus/fixtures/t1-lapsed",
    as_of="2026-11-20",
    output="audit.sarif",
)

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());

Configure the composite GitHub Action (action.yml) in your workflow:

- uses: david-engelmann/perishables@v0.1.1
  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.1

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.1
File Size Uploaded Provenance Actions
perishables-0.1.1.tar.gz 110.7 kB With provenance Details for perishables-0.1.1.tar.gz

Built distributions (wheels)

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

Total release size: 2.8 MB

Release files / perishables-0.1.1.tar.gz

Download URL perishables-0.1.1.tar.gz
Size 110.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b2999acdc504eec9ad27707b0dc96f55cb9cc1596cf1074473d1b2c07f640d84
BLAKE2b-256 checksum
How to use checksums
2a95f7ba41e617e1cb94167a50914247aea51c00bbc7ccf1e455b636c556db50
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.1-py3-none-win_amd64.whl

Download URL perishables-0.1.1-py3-none-win_amd64.whl
Size 486.9 kB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
2061d359afd20cda03bab77d52db38dc1583b706d2a3da5a2103244b0b6ffeac
BLAKE2b-256 checksum
How to use checksums
31b08f6bfe17ef5a70b4297f367aab1feb754d1e5047936d137c81fb8c089d66
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.1-py3-none-manylinux_2_28_x86_64.whl

Download URL perishables-0.1.1-py3-none-manylinux_2_28_x86_64.whl
Size 563.6 kB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
0222ad8cbbd4bf104aef7cb85d19b61bcaf9acda201ee61bb325c3160eb755ad
BLAKE2b-256 checksum
How to use checksums
fa5196c089ab514c3e2b3fb59c83779378f7f023e3f5bef868158d9e62e499d4
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.1-py3-none-manylinux_2_28_aarch64.whl

Download URL perishables-0.1.1-py3-none-manylinux_2_28_aarch64.whl
Size 530.1 kB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
26e580e21d6828f367c2ace1404de3c9bc3da3b8edf753381653868ba3340028
BLAKE2b-256 checksum
How to use checksums
17c0ccc80c4e5efbe90af6d21ff35028f7092bfab950f8e58accd3ef16ddc0ed
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.1-py3-none-macosx_11_0_arm64.whl

Download URL perishables-0.1.1-py3-none-macosx_11_0_arm64.whl
Size 521.7 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bd3fe89d9592906d8ee0334f96f62a36f1068907d9832e3eaf08086a39cda7c4
BLAKE2b-256 checksum
How to use checksums
07eaebd870ba3f30c8d60deb0c879d3250be063bc78adc7922ea78920c229520
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.1-py3-none-macosx_10_12_x86_64.whl

Download URL perishables-0.1.1-py3-none-macosx_10_12_x86_64.whl
Size 547.0 kB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
ecbd59c4534ba736436ba908f500110a70fb7e60f3ea54c56ed475e061e80eef
BLAKE2b-256 checksum
How to use checksums
443724971f39d19c907121af955cdf81e8fb881609585d6006003dc27ad48f53
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.1

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