Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.1.3 instead.
Reason given by maintainers: software

algovoi-policy-binding

Additive policy-snapshot binding for the AlgoVoi substrate. Binds a content-addressed policy snapshot over an existing AlgoVoi reference: a settlement-action binding_ref (v1) or a retention_chain ref (v0/v1), making a decision verifiable against the exact policy version in force and a policy rotation detectable by recomputation. The canonicalisation base and the underlying binding/chain are frozen and untouched; this layer only references them by hash.

policy_ref       = "sha256:" + SHA-256(JCS(policy_document))
policy_bound_ref = "sha256:" + SHA-256(JCS({policy_ref, subject_ref}))

Install

pip install algovoi-policy-binding==0.1.0

Use

from algovoi_policy_binding import policy_ref, policy_bound_ref

policy = {"policy_id": "aml.transfer", "version": 1, "max_amount": 1000, "deny_jurisdictions": ["XX"]}
pref = policy_ref(policy)

# subject_ref is any AlgoVoi reference: a binding_ref, or a retention_chain ref (v0/v1)
binding_ref = "sha256:7dc4a2bf62b3c5eabd10fc875ff7fc10f188666f15838c4a51464cc72e80f6ca"
pbr = policy_bound_ref(binding_ref, pref)

Version-agnostic: the same call binds over retention_chain v0, v1, or a binding_ref; subject_ref is imported purely by hash.

Conformance

conformance/policy_binding_v1/ contains the canonical vectors and a standalone verify.py (stdlib + rfc8785, no package import). Recompute is the test:

pip install rfc8785
python conformance/policy_binding_v1/verify.py

It checks positives byte-for-byte, the P→P' rotation negative on every subject, key-order invariance, and subject-binding. The subjects are the published canonical references from chopmob-cloud/algovoi-jcs-conformance-vectors.

Adoption

This package is itself an adopter of the AlgoVoi substrate, and asks the same of those who build on it. To qualify for a free v0 licence key for algovoi-mandate-auditor, your project must pass four checks (scripts/check_v0_adoption.py):

  1. Dependency: algovoi-policy-binding declared in your lockfile/manifest.
  2. Vector hash anchor: at least one canonical policy_ref / policy_bound_ref hash from the conformance set appears in your project (you ran our vectors).
  3. NOTICE: preserve the NOTICE file; it must name AlgoVoi and algovoi-policy-binding.
  4. Version pin: pin algovoi-policy-binding==0.1.0 (or a wheel --hash), not a bare range.
python scripts/check_v0_adoption.py /path/to/your/project

Contact chopmob@gmail.com with your import-by-hash evidence and a copy of the NOTICE.

License

Apache-2.0. (c) 2026 AlgoVoi. Preserve the NOTICE file in any distribution.

Download files

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

Source Distribution

algovoi_policy_binding-0.1.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

algovoi_policy_binding-0.1.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file algovoi_policy_binding-0.1.1.tar.gz.

File metadata

  • Download URL: algovoi_policy_binding-0.1.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for algovoi_policy_binding-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4b8749568fa3cb0bf736905c0496a9c816e4a4cc276025b47431c09698a2e9ad
MD5 ffa848eb2da35e2ba40c489de00705af
BLAKE2b-256 ad8b385eab058e3fd0aba291dbfcfa21695723c428deb03abb05cf4783559153

See more details on using hashes here.

File details

Details for the file algovoi_policy_binding-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for algovoi_policy_binding-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f107b78cdc7be0a17d2e227b10436a8b5011acb7c2022c107a49959eabe80c36
MD5 aa75b7783fe4b5d65aa892b226db105a
BLAKE2b-256 1e90d534b189b709086dc5d2d7564c04333dfdddebb6bf8981ceb8acd2e77580

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.3

1 file

0.1.2

1 file

This release

0.1.1 This release

2 files

0.1.0

2 files

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