Skip to main content

algovoi-refund-receipt-lite

Open, content-addressed refund references for the AlgoVoi substrate. The lite, Apache-2.0 origination tier of the commercial AlgoVoi Refund Receipt.

refund_ref = "sha256:" + SHA-256(JCS({ refund_amount, refund_result, subject_ref }))

It content-addresses the refund of a prior payment into a deterministic, recomputable reference:

  • subject_ref: the payment/decision being refunded, imported by hash. Typically the guardrail_ref of the pre-payment decision or a settlement reference, so the refund composes onto the decision chain and closes the lifecycle after settlement.
  • refund_result: a closed enum: FULL, PARTIAL, REJECTED.
  • refund_amount: the amount returned, as a string ("0" for a REJECTED refund).

All three fields are byte-load-bearing: change the subject, the result, or the amount and the refund_ref diverges, so a refund cannot be silently re-pointed to another payment and neither the outcome nor the amount can be changed. A result outside the enum, or an empty subject_ref/refund_amount, is rejected, not hashed.

Use

from algovoi_refund_receipt_lite import refund_ref

ref = refund_ref(
    subject_ref="sha256:2a444c629892f44fde1bd004aba9be01dd6cc7fe251eecdd545b82dca9f0bf97",
    refund_result="FULL",
    refund_amount="1000",
)

Lite vs commercial

Lite (this package) Commercial Refund Receipt
Licence Apache-2.0, open Commercial OEM
Reference content-addressed refund_ref the same, Falcon-1024 signed receipt
Carries result + amount + subject (by hash) + provider, timing, jurisdiction
Propagation bring your own closes original payment across settlement + retention chains
Verifier recompute offline maintained verifier

Adopters (pin → key)

If you build on algovoi-refund-receipt-lite, pin ==0.1.0, anchor a canonical refund_ref vector hash from refund_receipt_lite_v1, and keep the NOTICE, you qualify for a free v0 licence key for algovoi-mandate-auditor. The gate is scripts/check_v0_adoption.py. Apply: email chopmob@gmail.com with your import-by-hash evidence and a copy of the NOTICE.

Conformance

The refund_receipt_lite_v1 vector set is published in the public corpus, chopmob-cloud/algovoi-jcs-conformance-vectors, with Python and Node runners. Python and TypeScript reproduce every value byte-for-byte. rf-001, rf-002 and rf-003 refund the ALLOW guardrail_ref in spend_guardrail_lite_v1 / spend_decision_chain_v1.

Apache-2.0. Additive over the frozen canonicalisation substrate; sole AlgoVoi authorship.

Metadata

Release files for algovoi-refund-receipt-lite 0.4.1

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-refund-receipt-lite 0.4.1
File Size Uploaded Provenance Actions
algovoi_refund_receipt_lite-0.4.1.tar.gz 8.9 kB Without provenance Details for algovoi_refund_receipt_lite-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for algovoi-refund-receipt-lite 0.4.1
File Interpreter ABI Platform Actions
algovoi_refund_receipt_lite-0.4.1-py3-none-any.whl Python 3 none any Details for algovoi_refund_receipt_lite-0.4.1-py3-none-any.whl

Total release size: 19.5 kB

Release files / algovoi_refund_receipt_lite-0.4.1.tar.gz

Download URL algovoi_refund_receipt_lite-0.4.1.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c68c8a04ec971a95f7b00b4b6d4fb096a6eb76f3cc219f941182d90ec42d6e7b
BLAKE2b-256 checksum
How to use checksums
9ddb33f2ef2cd2b9c4ba950067bea6c8d73fac855fe8558ec8398c6c95362b89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / algovoi_refund_receipt_lite-0.4.1-py3-none-any.whl

Download URL algovoi_refund_receipt_lite-0.4.1-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a11c39927ba9a7015ee6ce4ba4874e16178e0738489705d4680454db6bc8f84b
BLAKE2b-256 checksum
How to use checksums
725e8bc4b6ba9e40c3619204bfb438fbe2344fe9ddb9678380508982f619c2b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for algovoi-refund-receipt-lite 0.4.1

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