Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Argus

A record of what your agent did that shows if anyone changed it. Argus appends every action to a linear SHA-256 hash chain. Verification names the first edited event, and checking against an anchor kept elsewhere catches a history that was rewritten from start to finish.

CI License: MIT MSRV: 1.85

Argus is one of the three Telarch libraries from Perseus Computing LLC. Harpe decides what goes into each model call, and Kibisis keeps the agent's memory. Each one works on its own. The crate and the Python package are published as argus-ledger.

Why

Agents run commands, call APIs and edit files. Afterwards the log is the only account of what happened, and an ordinary log can be edited without a trace. Argus makes the edit visible and tells you where it is.

What you get

  • Edits found, with their position. Verification walks the chain and reports the first event whose hash or link does not check out.
  • Anchors for full rewrites. Keep the latest sequence number and hash somewhere the writer cannot change. Verifying against that anchor catches a history that was rewritten, rolled back or truncated.
  • Optional signatures. With a signing key, each event also carries an HMAC-SHA256 or Ed25519 signature that verification checks.
  • Local storage. The Python package writes a JSON Lines file under a file lock; the Rust crate keeps the ledger in memory.
  • No network code. The ledger runs locally and sends nothing anywhere.

Install

This README describes 0.1.0-alpha.5 (0.1.0a5 on PyPI). It is a pre-release, so name the version.

# Rust: Cargo.toml
[dependencies]
argus-ledger = "0.1.0-alpha.5"
# Python
pip install argus-ledger==0.1.0a5

Quickstart

Rust

use argus_ledger::{AuditLedgerWriter, AuditVerifier, InMemoryLedger, VerificationPolicy};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let ledger = InMemoryLedger::new();
    ledger.append("tool.call", "agent_1", r#"{"command":"cargo test","tool":"bash"}"#)?;
    let ev2 = ledger.append("file.patch", "agent_1", r#"{"file":"Cargo.toml","status":"modified"}"#)?;
    let policy = VerificationPolicy { anchor: Some(ev2.anchor()), ..Default::default() };
    let report = ledger.verify_chain_with(&policy)?.ensure_valid()?;
    println!("Ledger verified intact: {} events chained to head {}", report.total_events, &ev2.event_hash[0..16]);
    Ok(())
}

Python

from argus_ledger import AppendOnlyLedger

ledger = AppendOnlyLedger("audit.jsonl")
ev1 = ledger.append("tool.call", "agent_1", {"command": "cargo test", "tool": "bash"})
ev2 = ledger.append("file.patch", "agent_1", {"file": "Cargo.toml", "status": "modified"})
report = ledger.verify_chain(anchor=ev2.anchor())
assert report.valid is True
print(f"Audit log verified: {report.total_events} events chained up to sequence {ev2.sequence}")

Try it without installing anything: telarch.ai/argus runs the crate in your browser. Edit an event and watch verification stop at it.

Measured

Medians of five runs of telarch-benchmarks at the v0.1.0-alpha.3 release, with synthetic data on one shared server. Every run, its range and the command that reproduces it are on telarch.ai/evidence.

Measurement Result
Appends per second, 1,000,000 events, in memory 864,364
Events verified per second, full walk 2,567,911
Time to find an edit at event 500,000 183.6 ms
A fully re-hashed history passes a check without an anchor yes
The same history is caught by the anchor yes

How it works

  • Linear SHA-256 hash chain. Each event's hash covers its sequence number, event ID, timestamp, event type, actor, the previous event's hash and a digest of its canonical JSON payload (compute_event_hash in src/argus_ledger/hasher.py; src/lib.rs).
  • Tamper detection. verify_chain walks the chain from genesis and reports the first sequence whose hash or link does not check out (first_broken_sequence, src/argus_ledger/ledger.py).
  • Anchors and signatures. Verifying against an anchor, a sequence number and hash kept outside the ledger, catches a ledger that was rewritten and re-hashed from genesis. With a signing key, each event also carries an HMAC-SHA256 or Ed25519 signature that verification checks (src/argus_ledger/hasher.py, src/argus_ledger/ledger.py; Rust: VerificationPolicy in src/lib.rs). To check an Ed25519-signed ledger without its private key, open it with AppendOnlyLedger(path, verify_key=public_key): it checks Ed25519 signatures only and cannot append. Never pass a public key as signing_key, which is an HMAC secret: anyone who knows the public key could then sign events.

Limits

  • Alpha release: APIs and formats are subject to revision before 1.0.
  • Detection, not prevention: Argus cannot stop someone with write access from editing storage. It makes the edit visible.
  • Linear chain: Verification reads every event, so it takes time proportional to the ledger's length, and there are no inclusion proofs for single events.
  • Anchoring requirement: An unanchored chain that is rewritten and re-hashed from genesis is internally consistent. Keep the latest sequence number and hash somewhere the writer cannot change, and verify against it, to detect a complete rewrite.
  • Storage scope: The Rust crate provides InMemoryLedger. The Python package writes a local JSONL file locked with fcntl, so it runs on Linux and macOS, not Windows.
  • Not independently assessed: No security review or certification has been completed. Designed for local and disconnected use.

Security

Report a vulnerability to contact@perseuscomputing.com with [SECURITY] in the subject; please do not open a public issue. See the security policy for response times.

License

Released under the MIT License © 2026 Perseus Computing LLC.

Metadata

Release files for argus-ledger 0.1.0a5

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

Source distribution (sdist)

Source distribution for argus-ledger 0.1.0a5
File Size Uploaded Provenance Actions
argus_ledger-0.1.0a5.tar.gz 46.8 kB Without provenance Details for argus_ledger-0.1.0a5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for argus-ledger 0.1.0a5
File Interpreter ABI Platform Actions
argus_ledger-0.1.0a5-py3-none-any.whl Python 3 none any Details for argus_ledger-0.1.0a5-py3-none-any.whl

Total release size: 67.3 kB

Release files / argus_ledger-0.1.0a5.tar.gz

Download URL argus_ledger-0.1.0a5.tar.gz
Size 46.8 kB
Tags Source
SHA-256 checksum
How to use checksums
47477077adc1dbb2ea3bf2f2bef8ffa21afd6c07d6f543b0ceb45a7867ab7f83
BLAKE2b-256 checksum
How to use checksums
10ac5a7a27155a1668e4b18e64fb668e714c96738724ec5c91491baba05154f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / argus_ledger-0.1.0a5-py3-none-any.whl

Download URL argus_ledger-0.1.0a5-py3-none-any.whl
Size 20.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
502c16eb9174914cc91080135ddd8b1c58e26d4d03efc867ba0d4a62ccf6ade7
BLAKE2b-256 checksum
How to use checksums
10de6a508c3f1978a5ab5966560fb051ced461e6c2592500a348b5f5a1555c61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for argus-ledger 0.1.0a5

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