Fugacity
Agent Flight Recorder: tamper evident records of what AI agents actually do.
Status: v0.1.0, alpha. The record format follows the draft spec in docs/spec.md (AFR-ES-001) and may still change.
When an AI agent buys something, signs something, or moves money, someone eventually asks: what happened, and who is responsible? Fugacity records every action an agent takes in a hash-chained log that no one can quietly edit afterward, including the people who run the agent.
Quick start
Requires Python 3.10 or later. There are no other dependencies.
git clone https://github.com/TheQuantumCowboy/fugacity.git
cd fugacity
pip install .
python examples/tamper_demo.py
If you only want the library and the fugacity verify command, pip install fugacity is enough. The examples live in the repository, not in the package.
The demo records a simulated agent buying a laptop for $412.50 (the worked session in Appendix C of the spec), saves the record's head hash, then tampers with copies of the record in three acts. In act 1, someone changes the payment to $41.25; the hash chain breaks and the limit checks no longer match the amount, so verify fails. In act 2, a more careful attacker changes the agreed condition grade from A to C and then recomputes every hash, and the file passes verify on its own: a file can't vouch for itself against someone who can rewrite all of it. In act 3, the same rewritten file is checked against the head hash saved when the session ended, which seals the whole record, and the rewrite is caught.
To see the full purchase record, event by event, run python examples/appendix_c.py.
To check any session file:
fugacity verify session.jsonl
fugacity verify session.jsonl --profile profile.json --expect-head sha256:...
What v0.1.0 does
- Agent profiles: declare the pinned model version, tools, and hard limits an agent runs under. Any change produces a new profile ID.
- Event chain: every tool call, external input, approval, commitment, and payment, each one hashing the last, written as JSON Lines.
- Limit checks: spending caps and approval thresholds enforced in code, outside the model. Every check is recorded, and a failed check blocks the action.
- Verification:
fugacity verifychecks the schema, the sequence, the hash chain, the limit checks, and the profile, and prints pass or fail for each.
Planned
- Ed25519 signatures on events and profiles
- Anchoring head hashes to a public transparency log (Sigstore Rekor, RFC 3161)
- Encryption and redaction of payloads
- The counterparty handshake, an MCP proxy, and framework integrations
Why "Fugacity"
In thermodynamics, fugacity measures how far a real system strays from ideal behavior. This project measures how far a real agent strays from what it was authorized to do.
License
Apache 2.0
Metadata
Release files for fugacity 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fugacity-0.1.0.tar.gz | 57.6 kB | With provenance | Details for fugacity-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fugacity-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for fugacity-0.1.0-py3-none-any.whl |
Total release size: 93.4 kB
Release files / fugacity-0.1.0.tar.gz
| Download URL | fugacity-0.1.0.tar.gz |
|---|---|
| Size | 57.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d3f249a8b30ca3ae4b5962c10f3837bec25d8d05139c0caff1e99795ea40fa2
|
|
BLAKE2b-256 checksum How to use checksums |
f87cf0c42d70380c7aa9df0697fc624875176e020837c4a3ba2f9ae5805442bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / fugacity-0.1.0-py3-none-any.whl
| Download URL | fugacity-0.1.0-py3-none-any.whl |
|---|---|
| Size | 35.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8195b235462a6e9d84baaac3bc57129cd27ced97c4fe1e860c6aaad7d895f804
|
|
BLAKE2b-256 checksum How to use checksums |
f17ce9e87e160971ce77bc97a6cb5cf05709522ff5d06b1abdad6c139b8e439d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for fugacity 0.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for fugacity-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA 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.