Skip to main content

AlgoVoi execution_ref -- decision-bound execution evidence bound to the keystone. Proves an executed action is consistent with the decision that authorized it. Runs on any algovoi-substrate version (v0/v1); uses only JCS RFC 8785 canonicalisation.

Project description

algovoi-execution-ref

Decision-bound execution evidence, bound to the keystone. A standalone, pinned, Apache-2.0 app.

execution_ref proves an executed action is consistent with the decision that authorized it, not merely correlated with an identity:

execution_ref = "sha256:" + SHA-256(JCS({decision_ref, action_type, scope, outcome, executed_at_ms}))

It binds the full keystone chain:

passport_ref -> mandate_ref -> policy_bound_ref -> decision_ref -> execution_ref -> trust_query_ref
 (identity)     (authority)     (policy)            (decision)      (execution)      (one verdict)

Runs on any substrate version (v0 and v1)

This app uses only the substrate's JCS canonicalisation, which is byte-stable and present in every release. It pins algovoi-substrate>=0.3.0 and runs unchanged on substrate v0 (0.x) and v1 (1.x). You get execution_ref and the keystone without upgrading your substrate:

pip install algovoi-execution-ref     # installs next to whatever substrate you already have

Use

from algovoi_execution_ref import bind_keystone, verify_record, execution_ref

record = bind_keystone(
    passport_ref="sha256:...", mandate_ref="sha256:...", policy_bound_ref="sha256:...",
    verdict="ALLOW", action_type="payment", scope="bilateral",
    outcome="COMMITTED", executed_at_ms=1716460800000, trust_outcome="TRUSTED",
)
record["execution_ref"]    # decision-bound execution evidence
record["trust_query_ref"]  # content address: one verdict over the whole chain
verify_record(record)      # recomputes every ref from raw fields -> True

CLI

echo '{"passport_ref":"sha256:...", ...}' | algovoi-execution-ref
algovoi-execution-ref --verify < record.json    # exit 0 if consistent, 1 if not

Conformance and tiers

The composed chain reproduces the public corpus byte for byte (execution_ref_v1 and the keystone_v1 composition). This is the open tier: it binds and proves. Post-quantum signing and CCC-ingestable evidence chains are the commercial Substrate 2 tier. outcome is the closed enum {COMMITTED, SKIPPED, FAILED, REVERSED}; executed_at_ms is an integer epoch-millisecond; no raw agent id appears in the preimage, so it carries no PII.

Project details


Download files

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

Source Distribution

algovoi_execution_ref-0.1.0.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

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

algovoi_execution_ref-0.1.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file algovoi_execution_ref-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for algovoi_execution_ref-0.1.0.tar.gz
Algorithm Hash digest
SHA256 530953754783e4d3f3c2f0a54e5ed49aba89d69f18fc44019f466ac4c0105d65
MD5 b3610ec1e00d53a7be27750d5aad2616
BLAKE2b-256 9d19325de3dc9f69d162af9170ddf195842cf4e941d2856161795ac36ab0b1ff

See more details on using hashes here.

File details

Details for the file algovoi_execution_ref-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for algovoi_execution_ref-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4513b87e077d3104df19706d8b3c5829ef69c9fd89dd646ff36b9a2fd5adf1b1
MD5 d9b86b4fb8b8265d1c9525e4aeb97221
BLAKE2b-256 d31bde65bf960997a2b4a6ec46bf8628885c58587b9dee6716d181ed5287d363

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