Skip to main content

algovoi-recompute-drift

Offline recompute-drift detection for the AlgoVoi action_ref. A holder of a four-field action record can recompute its identity and detect drift — without calling the issuer — distinguishing a benign reordering (which RFC 8785 JCS absorbs) from a real change of a field value, and rejecting a malformed timestamp form instead of minting it into a clean-looking identity.

Additive over the frozen substrate (Apache-2.0). No new cryptography:

action_ref = hex(SHA-256(JCS(RFC 8785)({agent_id, action_type, scope, timestamp_ms})))

with an integer-millisecond timestamp_ms (canon jcs-rfc8785-v1).

Install

pip install algovoi-recompute-drift

Use

from algovoi_recompute_drift import recompute_action_ref, drift_detected, assert_no_drift

record = {"agent_id": "agent-1", "action_type": "payment",
          "scope": "acme:order-42", "timestamp_ms": 1716494400123}

ref = recompute_action_ref(record)            # canonical recompute
drift_detected(ref, record)                   # False — matches
drift_detected(ref, {**record, "scope": "acme:order-43"})   # True — payload drift
assert_no_drift(ref, record)                  # raises RecomputeDriftError on drift

Input key order does not matter — JCS absorbs it. A non-integer timestamp_ms (e.g. an RFC-3339 string) is rejected, not hashed.

Conformance

conformance/recompute_drift_v1/ — 3 positives (baseline, reordered-key, unicode), 4 negatives (timestamp / casing / payload drift, and a rejected timestamp form), and the key-order invariant. The verifier imports only the standard library plus rfc8785 (no algovoi import) and recomputes each vector:

pip install rfc8785
python conformance/recompute_drift_v1/verify.py

Adopters

Build on algovoi-recompute-drift, pin ==0.1.0, anchor a canonical vector hash, and keep the NOTICE, and you qualify for a free v0 licence key for algovoi-mandate-auditor. The gate is scripts/check_v0_adoption.py (dependency + canonical hash anchor + NOTICE + version pin → ISSUE_V0_KEY). Apply: email chopmob@gmail.com.

License

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

Metadata

Release files for algovoi-recompute-drift 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for algovoi-recompute-drift 0.5.0
File Size Uploaded Provenance Actions
algovoi_recompute_drift-0.5.0.tar.gz 8.2 kB Without provenance Details for algovoi_recompute_drift-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for algovoi-recompute-drift 0.5.0
File Interpreter ABI Platform Actions
algovoi_recompute_drift-0.5.0-py3-none-any.whl Python 3 none any Details for algovoi_recompute_drift-0.5.0-py3-none-any.whl

Total release size: 17.7 kB

Release files / algovoi_recompute_drift-0.5.0.tar.gz

Download URL algovoi_recompute_drift-0.5.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7adc493d38dd20d00d139ab63805785e8a7100b4ead0c9a4f38f72a2fbb391d0
BLAKE2b-256 checksum
How to use checksums
9ea333258365d202b80fba3b4e5327fc569bf73e43edb78ac2301e3e27aaa477
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / algovoi_recompute_drift-0.5.0-py3-none-any.whl

Download URL algovoi_recompute_drift-0.5.0-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66a814a36fc1d3661299f8714365599d8455a3b5dc380811299dd6c86f383368
BLAKE2b-256 checksum
How to use checksums
edaea21954308d414750d31d3dcc1f60c182107b45348ce4f3ed93d12bd7cb8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for algovoi-recompute-drift 0.5.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

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