Simplicity

Small enough to read in an afternoon.

Each library does one job, adds few dependencies and no outbound network code, and runs algorithms short enough to check by reading.

Dependencies, counted

CrateDirectWhichAll packagesPython package needs
Harpe (harpe)0none0pydantic>=2
Kibisis (kibisis)0none0cryptography>=42, kibisis-native==0.1.0a19, pydantic>=2, sqlcipher3>=0.5
Argus (argus-ledger)6ed25519-dalek, getrandom, libc, serde, serde_json, sha2 (libc declared but not used by the 0.1.0-alpha.11 source)27pydantic>=2, cryptography>=42

Counted with cargo tree -e normal in each repository at its release tag (Harpe v0.1.0-alpha.15, Kibisis v0.1.0-alpha.19, Argus v0.1.0-alpha.11); Python requirements from each pyproject.toml.

No outbound network code

0 outbound network calls in the crates, their Rust dependencies and the Python packages' own source, and 2 opt-in servers in Kibisis: aml-serve, for leaderboard runs, and mcp-http-serve, for a shared vault. aml-serve --dense, with an optional extra, can download an embedding model. Details on the security page.

The algorithms, in a few lines each

Harpe

keep = pinned items
left = budget - tokens(pinned)
for item in order(policy):
    if item.tokens <= left:
        keep item; left -= item.tokens
    else:
        drop item

Argus

prev = zero hash
for event in chain:
    if event.prev != prev: broken at event
    if hash(event fields, prev) != event.hash:
        broken at event
    prev = event.hash
if anchor and chain[anchor.seq] != anchor: fail

Kibisis

acquire(r, holder, ttl):
    cur = leases[r]
    if cur not expired and cur.holder != holder:
        refuse
    token = (cur.token if cur else 0) + 1
    leases[r] = (holder, token, now + ttl)

Small surface

  • Harpe: ContextItem, TokenBudget, PrunePolicy, ContextBudgetEngine, and the TokenCounter trait.
  • Kibisis: LeaseCoordinator and MemoryVault traits with in-memory implementations in Rust; the Python package's vault is SQLite-backed and its lease coordinator is the Rust file coordinator.
  • Argus: append, all_events, VerificationPolicy::verify and ChainAnchor.