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
| Crate | Direct | Which | All packages | Python package needs |
|---|---|---|---|---|
Harpe (harpe) | 0 | none | 0 | pydantic>=2 |
Kibisis (kibisis) | 0 | none | 0 | cryptography>=42, kibisis-native==0.1.0a19, pydantic>=2, sqlcipher3>=0.5 |
Argus (argus-ledger) | 6 | ed25519-dalek, getrandom, libc, serde, serde_json, sha2 (libc declared but not used by the 0.1.0-alpha.11 source) | 27 | pydantic>=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 itemArgus
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: failKibisis
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 theTokenCountertrait. - Kibisis:
LeaseCoordinatorandMemoryVaulttraits 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::verifyandChainAnchor.