Skip to main content

Open, content-addressed flow-point hardening refs for the AlgoVoi keystone (decision audit binding + guard context + freshness window; L1 frozen)

Project description

algovoi-keystone-secure-lite

The open, lite flow-point hardening layer for the AlgoVoi keystone. Several canonical keystone flow points emit a ref that proves a fact was recorded, but not that it was recorded correctly or freshly. This package closes that with three securing refs, each a deterministic, offline-recomputable content address. Moves no funds; adds no new crypto.

decision_audit_ref = "sha256:" + SHA-256(JCS({decision_ref, passport_credential_ref, mandate_ref, policy_bound_ref[, screen_binding_ref]}))
guard_context_ref  = "sha256:" + SHA-256(JCS({canon_version, type, guard_timestamp_ms, policy_ref, mandate_ref, passport_credential_ref}))
with_validity / check_freshness  -- attach + enforce an integer-millisecond validity window on any ref preimage

Each input is imported by hash. Swap the passport, the mandate, the policy, the screen, or the moment and the ref diverges: a decision audited under policy P does not recompute under a rotated policy P', and a guard context is bound to the exact instant the gate evaluated it. Timestamps are epoch-millisecond integers hashed directly (Substrate Rule 2) -- no floating point, no RFC 3339 strings.

Lite vs commercial

Lite (this package) Keystone Secure
Licence Apache-2.0, open Commercial OEM
Hardening refs content-addressed, recompute offline same construction, Falcon-1024 signed
Evidence bring your own signed, hash-linked chain into the Compliance Command Center posture tiers
Enforcement recompute + compare fail-closed decision-audit, freshness, and guard-context enforcement

The lite ref you pin is byte-identical to the ref the commercial tier signs: pin lite, anchor a vector hash, carry the NOTICE → free v0 key; upgrade for post-quantum signing + CCC posture + enforcement.

Install & use

pip install algovoi-keystone-secure-lite
from algovoi_keystone_secure_lite import (
    decision_audit_ref, verify_decision_audit, guard_context_ref, with_validity, check_freshness,
)

# each input is imported by hash: a decision_ref, a passport_ref, a mandate_ref, a policy_bound_ref, a screen_ref
audit = decision_audit_ref(decision_ref, passport_ref, mandate_ref, policy_bound_ref, screen_binding_ref)
verify_decision_audit(audit, decision_ref, passport_ref, mandate_ref, policy_bound_ref, screen_binding_ref)  # True

# pin what the admission gate saw at a moment in time
gc = guard_context_ref(guard_timestamp_ms, policy_ref, mandate_ref, passport_ref)

# attach + enforce a validity window on any preimage
policy = with_validity({"required_scope": "payments.send"}, issued_at_ms=1_720_000_000_000, expires_at_ms=1_720_003_600_000)
check_freshness(policy, now_ms=1_720_000_060_000)   # True, inside the window

A decision audited under policy P returns a different decision_audit_ref if recomputed against the policy_bound_ref under a rotated P'; rotation is detectable. Malformed refs and non-integer timestamps are rejected, not hashed.

Conformance

  • conformance/keystone_decision_audit_v1/: 2 positives, 3 divergence/omission negatives, 1 rejection negative, 2 invariants.
  • conformance/keystone_guard_context_v1/: 1 positive, 2 divergence negatives, 2 rejection negatives, 2 invariants.

Each verifier imports only stdlib + rfc8785:

pip install rfc8785
python conformance/keystone_decision_audit_v1/verify.py
python conformance/keystone_guard_context_v1/verify.py

Adopters

The 4-check gate is scripts/check_v0_adoption.py (dependency + canonical hash anchor + NOTICE + version pin → ISSUE_V0_KEY). Apply: chopmob@gmail.com.

License

Apache-2.0. Copyright 2026 AlgoVoi. Preserve the NOTICE in any distribution.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

algovoi_keystone_secure_lite-0.2.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (226.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

algovoi_keystone_secure_lite-0.2.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (241.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

algovoi_keystone_secure_lite-0.2.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (215.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

algovoi_keystone_secure_lite-0.2.0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (206.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

File details

Details for the file algovoi_keystone_secure_lite-0.2.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for algovoi_keystone_secure_lite-0.2.0-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6d8ee63ee253b247d028da0e0ee381c2bb6887c1f21969ab9af7e8903a45c1f2
MD5 41a9b4d46c833d6e4ccb01fce8d957c0
BLAKE2b-256 663195f10dc932eab7ab638ea0be8e23e7ac0ca03934de866970323ae63b3a40

See more details on using hashes here.

File details

Details for the file algovoi_keystone_secure_lite-0.2.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for algovoi_keystone_secure_lite-0.2.0-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d868c18f060342447a2baee488097ee519d9e6ec4f167cbb7023c5eff918c500
MD5 74219d297cc206d2e59cba6e8a8252ae
BLAKE2b-256 1b32984d594997dd803620d5d3ca324a778dfaf05edd35b69c13714ad362513b

See more details on using hashes here.

File details

Details for the file algovoi_keystone_secure_lite-0.2.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for algovoi_keystone_secure_lite-0.2.0-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4be8b3479c6f35b804c05095da9853e5f035c8ecc74be719392440b4ecbb7bd4
MD5 d1c9d759ef8f68c09b066dbbf1afc605
BLAKE2b-256 888cd354546fc7722e90b9e96a70314365033f970d3cb32871c41bb59be7101b

See more details on using hashes here.

File details

Details for the file algovoi_keystone_secure_lite-0.2.0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for algovoi_keystone_secure_lite-0.2.0-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 742f93b97511da64da1fc26e248f6c62a763dd7beb417046004b05f57f93d7de
MD5 1a8082105bd0b0ed63e5bfd2e69d03db
BLAKE2b-256 2125fbc0d9d55e94d707a452cef139957015a5e5a727c25de033205a8951aa2d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page