Loops HouseZI
ZiniPay

Event
NEAR HACKATHON
Links
Team
1 member- KEOwner
Kelvin Mba
Overview
Autonomous AI agents are increasingly tasked with managing bounties, contributor payouts, and treasury workflows. However, granting agents raw private keys or direct treasury access creates critical vulnerability to prompt injection, hallucinated deliverables, unbounded wallet draining, and double-claim replay attacks.
What We Built: ZiniPay is a fail-closed, multi-agent treasury governance layer that lets AI agents propose payouts while mathematically preventing them from taking funds. It enforces a strict Three-Way Release Gate:
- Gate 1 (Deliberation): Dual-agent inspection (Inspector + Risk Arbiter) verifies merged GitHub PR commit hashes, author identity, and canonical IPFS CIDs while rejecting adversarial prompts.
- Gate 2 (Policy): A custom Rust smart contract (PolicyHelper) enforces reputation-scaled spend caps (Bronze 10N / Silver 15N / Gold 20N), a 60s cooldown, and permanently burns deliverable CIDs against replays.
- Gate 3 (Human Quorum): The agent holds 0 voting keys and 0 council seats. Proposals dispatch to Sputnik DAO v2, where funds are only disbursed upon mandatory 2-of-2 human council approval.
How NEAR Fits In: ZiniPay is built natively on NEAR Protocol testnet. It leverages:
- Sputnik DAO v2 (zinipay-demo.sputnikv2.testnet) for multi-sig human governance.
- Custom NEAR Rust Smart Contract (zinipay-policy2.testnet) for on-chain policy and spend cap enforcement.
- Fast, keyless RPC verification (24/24 on-chain testnet assertions verifiable in 60s without an API key or .env).