Bulla
Create, verify, and reconcile portable receipts for consequential agent actions.
Glyph defines a portable receipt for consequential agent actions. Bulla is the Python reference implementation. It creates and verifies ActionReceipts locally and computes coverage against a separately supplied action record.
Receipt verification detects changes in the records supplied to the verifier. Coverage reports actions in a supplied action record that have no matching receipt. These checks answer different questions and remain separate.
Install
Bulla supports Python 3.10 and later. Core receipt creation and digest verification require no hosted service.
python -m pip install "bulla==0.47.1"
bulla demo
Run one action
bulla demo runs one fixed local action through Bulla, emits its receipt
automatically, and retains every artifact in a new directory. It then changes a
copy of the receipt, sends a second action around the receipting boundary, and
compares the receipt set with the constructed receiver record.
FIRST ACTION DEMO · CONSTRUCTED LOCAL SCENARIO
ACTION
recorded action payments.charge
amount USD 125.00
declared limit USD 200.00
ALTERATION CONTROL
record integrity FAILED
original receipt UNCHANGED
OMISSION CONTROL
coverage before 1/1
coverage after 1/2
unreceipted action pay_demo_043
original integrity VERIFIED
The receipt caught alteration. The receiver's action record caught omission. The receiver is constructed, and neither record establishes that funds moved. The final stage runs Bulla and the retained standalone checker with network access denied.
Use bulla demo --out DIR to choose a new output directory, or
bulla demo --format json for the versioned CLI report. Bulla refuses to
replace an existing path.
In application code, wrap_action emits the JSON record. Applications do not
hand-author the wire format.
Why retain the receipt
A bulla was the clay envelope sealed around a record so it could survive the absence of the parties who made it. Bulla applies that discipline to agent actions: the action may finish in milliseconds, but a retained receipt keeps its declared authority, evidence, limits, and challenge path available to the next system or institution.
The format is intended for the customer, auditor, dispute forum, or underwriter who arrives after the agent and its runtime are gone and applies its own checks.
Verify one receipt
Download the constructed canonical payment receipt and verify it locally:
curl -fsSLo constructed-payment-authorization-v0.2.json \
https://glyphstandard.com/examples/payment-authorization-v0.2.json
bulla receipt verify constructed-payment-authorization-v0.2.json --format json
The constructed receipt records a USD 125.00 charge, declares a USD 200.00 limit, and carries an executable convention that recomputes conformance. The checked result is:
integrity VERIFIED
authenticity UNVERIFIED
authority UNAUTHENTICATED
declared_bounds CONFORMS
grounding SELF_ASSERTED
recourse NAMED
reachability UNVERIFIED
reliance_decision NOT_COMPUTED
The same receipt is available offline at
spec/vectors/payment-authorization.json. Its expected result is pinned in
spec/vectors/expected.json and recomputed in CI.
Change amount_minor from 12500 to 12501 without recomputing the hashes.
The verifier returns nonzero, reports a content-hash mismatch, and suppresses
content-dependent conclusions.
Retain the verification kit
The package carries the v0.2 specification, constructed vectors, expected dimensional verdicts, and a zero-dependency checker as one immutable archive:
bulla receipt kit --out action-receipt-v0.2-verification-kit.zip
Expected archive digest:
sha256:8f2cdd16bcbd1a1121f49545b6a6512872b188221ca30ec054dfd6b2fb2142ab
After extracting the archive, run python3 verify.py to check the kit itself,
or run its zero-dependency checker against a retained v0.2 receipt:
python3 verify.py receipt RECEIPT.json --format text
The checker imports no Bulla code and makes no network request. The manifest checks the retained contents; authenticate the archive itself with the detached digest or the signed release receipt.
Rehearse verification without dependencies
bulla receipt drill checks one normative v0.2 receipt with Bulla and with the
retained standalone checker while network access is denied:
bulla receipt drill RECEIPT.json --format text
The report separates facts recomputed from retained bytes from claims that need another record and dimensions that cannot be decided from the supplied material. It does not establish event occurrence, live authority, recourse reachability, receipt coverage, or a reliance decision.
When --kit is used, the detached digest checks the supplied bytes and Bulla
also requires those bytes to match the kit retained inside the installed
distribution before it executes the standalone checker. The sidecar alone does
not establish publisher identity or authorize unfamiliar code.
Create one receipt
bulla receipt create \
--type demo.write \
--subject path=/tmp/example.txt \
--forum-endpoint https://example.invalid/challenge \
--forum-root fixture:independently-pinned-root \
--out receipt.json
bulla receipt verify receipt.json --format json
The unsigned result reaches the digest verification rung. It does not authenticate the authority or compute a reliance decision.
Check coverage
event_coverage compares valid receipts with an action record supplied outside
the receipt set. For an exact retained-record match, add record_sha256 using
observed_record_sha256; the receipt must carry the same digest in its result
or evidence references. Without that field, coverage is action-id correlation:
from bulla.action_receipt import verify_receipt
from bulla.coverage import event_coverage
from bulla.wrap import receipt_for
receipt = receipt_for("network.egress", {"event_id": "action-001"})
assert verify_receipt(receipt).ok
complete = event_coverage([{"id": "action-001"}], [receipt])
assert complete["coverage"] == 1.0
assert complete["unreceipted_delta"] == []
with_gap = event_coverage(
[{"id": "action-001"}, {"id": "action-002"}],
[receipt],
)
assert with_gap["coverage"] == 0.5
assert with_gap["unreceipted_delta"] == ["action-002"]
Receipt integrity remains unchanged in the second comparison. The supplied action record contains one action with no matching receipt.
Where Bulla fits
- Payments: record authorization, amount bounds, evidence, and recourse.
- Permissions and writes: bind a consequential operation to its principal and policy.
- Gateways and provider handoffs: retain the action and authority references that crossed the boundary.
ActionReceipt v0.2 remains the normative and default format. ActionReceipt v0.4 is available as an opt-in experimental draft. Source-only research profiles remain inspectable on GitHub but are excluded from the installed package unless the distribution policy explicitly lists them as released.
Limits
- Receipt integrity does not establish the truth of every recorded field.
- Coverage is relative to the supplied action record.
- Bulla does not establish that the supplied action record is complete.
- Unsigned receipts remain unauthenticated.
- Reliance remains
NOT_COMPUTEDunless a reliance policy is supplied.
Multidimensional verification results reject Boolean coercion. Callers must inspect the named dimensions or apply an explicit reliance policy.
Documentation
- Verification-first quickstart
- Bulla documentation
- ActionReceipt standard
- Status and evidence
- Complete capability reference
- Source-only experimental research
- Changelog
- Release lineage
- Security policy
License and security
Bulla is licensed under the Apache License 2.0. Report vulnerabilities privately through GitHub Security Advisories or the security policy.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bulla-0.47.1.tar.gz.
File metadata
- Download URL: bulla-0.47.1.tar.gz
- Upload date:
- Size: 5.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67146b3fef5bbab092c3c546e79f5220c831a9384d3f1278fbb82cd75c93344f
|
|
| MD5 |
143c9dbecdde731d7aced6a0724aaf21
|
|
| BLAKE2b-256 |
97f6f96e44b79f6f6bd3e7aab7f2d15b1cd21543a5e85cf76fb4b2f49d41efd9
|
Provenance
The following attestation bundles were made for bulla-0.47.1.tar.gz:
Publisher:
publish.yml on jkomkov/bulla
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bulla-0.47.1.tar.gz -
Subject digest:
67146b3fef5bbab092c3c546e79f5220c831a9384d3f1278fbb82cd75c93344f - Sigstore transparency entry: 2341134333
- Sigstore integration time:
-
Permalink:
jkomkov/bulla@4af79d08ef72e2cff5dc950093d21ee9f6d0b10e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jkomkov
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4af79d08ef72e2cff5dc950093d21ee9f6d0b10e -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file bulla-0.47.1-py3-none-any.whl.
File metadata
- Download URL: bulla-0.47.1-py3-none-any.whl
- Upload date:
- Size: 792.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2d451fe91e6cf34e57ffcea76ef045e2467ee7748e74811c152d3b743080e1f
|
|
| MD5 |
e5cb9b83f77353b22c321f12d446e704
|
|
| BLAKE2b-256 |
fef333a0cddb4e0b1f87edc0406718aadd3956f7a53c39ed4b7621d8dc7510d9
|
Provenance
The following attestation bundles were made for bulla-0.47.1-py3-none-any.whl:
Publisher:
publish.yml on jkomkov/bulla
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bulla-0.47.1-py3-none-any.whl -
Subject digest:
e2d451fe91e6cf34e57ffcea76ef045e2467ee7748e74811c152d3b743080e1f - Sigstore transparency entry: 2341134340
- Sigstore integration time:
-
Permalink:
jkomkov/bulla@4af79d08ef72e2cff5dc950093d21ee9f6d0b10e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jkomkov
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4af79d08ef72e2cff5dc950093d21ee9f6d0b10e -
Trigger Event:
workflow_dispatch
-
Statement type: