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.1.2

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

Built distribution (wheel)

Table of built distributions (wheels) for algovoi-recompute-drift 0.1.2
File Interpreter ABI Platform
algovoi_recompute_drift-0.1.2-cp311-cp311-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64, Linux glibc 2.5+ x86-64 Details

Release files / algovoi_recompute_drift-0.1.2-cp311-cp311-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl

Download URL algovoi_recompute_drift-0.1.2-cp311-cp311-manylinux1_x86_64.manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_5_x86_64.whl
Size 165.9 kB
Tags CPython 3.11 Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
ecacc8891e752a8b0ef99e07dd8c5004b7fe54cd0f80daa90ae372c703e8b838
BLAKE2b-256 checksum
How to use checksums
e2717a899bab7a8dd0deeba210ea947e31d1b6f06c4ea34943ebe14bfaba11a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for algovoi-recompute-drift 0.1.2

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.

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file No provenance

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