Expand description
Tempus DDB: a fail-closed authorization gate for autonomous agent actions.
An agent signs an intent; the gate evaluates a signed tenant policy and issues a
single-use, expiring permit (ALLOWED or BLOCKED); a credential-isolated
executor consumes the permit exactly once and signs the outcome; the gate links
everything into a dual-signed receipt that anyone holding the gate public key can
verify offline. Unknown schemas, policies, identities and execution states are
refused or denied, never allowed, and with no installed policy every action is denied.
This crate is published mainly as the native extension behind the
tempus-ddb Python package (tempus_ddb._tempus_ddb,
built with PyO3 and maturin). The Rust API that is useful on its own:
verify_receipt,verify_bundleandverify_checkpoint: independent verification of exported evidence against a pinned gate public key, with no database.generate_keypair: Ed25519 key generation in the key-file format the CLI reads.StorageLayerandSqliteStorage: the storage boundary used by the gate and the legacy decision ledger.
Signed JSON documents are parsed strictly: duplicate object keys are refused, and
numbers must be exact (no floats, no integers beyond i64/u64).
Documentation: https://julio-patron.github.io/tempus-ddb/docs.html. Threat model, compatibility rules and changelog live in the repository: https://github.com/Julio-Patron/tempus-ddb.
Structs§
Traits§
Functions§
- gen_
keys - generate_
keypair - py_
verify_ bundle - Verify an evidence bundle without a database, against a pinned gate key.
- py_
verify_ checkpoint - Verify a checkpoint and event stream without a database, against a pinned key.
- py_
verify_ receipt - Verify a standalone receipt (trace, permit or outcome JSON) without a database.
- verify_
bundle - Verify an evidence bundle with no database, against a pinned gate public key.
- verify_
checkpoint - Verify a checkpoint and its event stream with no database. The signer must
equal
expected_public_key, which the verifier supplies out of band. - verify_
receipt - Verify a standalone receipt (trace, permit or outcome JSON) with no database, against a gate public key pinned by the verifier.