Open source
Everything below is MIT-licensed and lives under github.com/intelena. Each repo is a pnpm monorepo with a spec, tests and CI.
| Repo | What it is | Depends on |
|---|---|---|
leak-score | The Leak Score model: deterministic, monotone in exposure, explain() for the why, a CLI, and an Anthropic tool adapter. SPEC.md is normative. | — |
agent-kit | Design-preview SDK for utility #22: Agent with per-asset spending limits, venue allow-list, minimum exposure and a beforeExecute veto; LocalSimulator; DCA and rebalance strategies. | leak-score |
shielded-notes | Reference model of the shielded pool: notes, commitments, nullifiers, incremental Merkle tree, ShieldedPool state machine with every spend check, plus reference ShieldedPool.sol and spend.circom. | — |
association-set | Proof-of-innocence set curation: pure policy rules → reproducible Merkle set, verifiable snapshots, membership proofs, innocence witness, root registry, CLI. | shielded-notes |
viewing-keys | Scoped, revocable viewing keys: per-asset / per-day key derivation, wrapped record encryption, epoch revocation, auditor decryptor, ivk1 tokens, CSV export. | — |
How they map to the app
- Trade → route preview and Route Lab use the same model as leak-score (the dapp mirrors it in
lib/routing-sim.ts). - Agents page → agent-kit.
- Portfolio → Viewing keys and the Audit portal → viewing-keys (the app simulates the decryptor same-device; the package does it cryptographically).
- Proofs tab → shielded-notes (
proofIdper spend) and association-set (proof of innocence).
Contributing
Open an issue or PR on the repo in question. Commit messages follow Conventional Commits (feat:, fix:, docs:…). The reference Solidity and circom files are documentation-grade and unaudited — say so in anything you build on them.