Loops HouseNEARGuard AI: Private AI Treasury Auditor & NEAR Intents Firewall

NEAR HACKATHON
Links
Team
1 member- IBOwner
Ibrahim Adel
Overview
NEARGuard AI (by Ibrahim Adel, MuseOS Labs) is an autonomous Private AI Treasury Auditor, 5-Gate SafeAgents Policy Engine, and Cross-Chain NEAR Intents (NEP-413 / 1Click) Settlement Firewall built for NEAR Business, SputnikDAO / Trezu multisig treasuries, and global enterprises.
PROBLEM: Giving AI agents a wallet or chain signatures creates two fatal risks: (1) Treasury Drain: static spending limits cannot read invoices, catch duplicate bills, detect sanctioned shell vendors, or flag +107% price gouging before broadcasting irreversible cross-chain transfers; (2) Privacy Leaks: cloud LLMs write confidential invoices, IBANs, and PII to disk.
4-ROOM ARCHITECTURE:
Room 1 — Private by Design (Zero-Retention RAM & TEE Attestation): Audits invoices strictly in ephemeral memory buffers (0 bytes written to disk), applies SenseMask PII redaction (IBAN/email masking), and emits a SHA-256 TEE attestation hash for NEAR AI Cloud.
Room 2 — Trust, But Verify (5-Gate SafeAgents Engine): Deterministically verifies (Gate 1) Math & tax integrity ($0.02 tol), (Gate 2) Cosine duplicate shield (>=0.85), (Gate 3) Live vendor sanction & due diligence screening, (Gate 4) Market price benchmarking (flags >25% markup), and (Gate 5) Dynamic SKILL.md rules.
Room 3 — Real-World Money via NEAR Intents (NEP-413 & 1Click Solver): Clean bills (Risk <35) compile into signed NEP-413 cross-chain intents settling USDC, USDT, or NEAR across NEAR, Ethereum, Solana, and Arbitrum in ~1.2s; flagged bills (Risk 35-69) lock a 15% dispute deposit in NEAR Escrow; attacks (Risk >=70) trigger a hard circuit breaker.
Room 4 — Self-Evolving SKILL.md & 20-Language Audio Briefing with tamper-evident SQLite hash-chain logging.
ZERO-CONFIG VERIFICATION FOR CLAUDE CODE & CODEX: Run python3 main.py --verify and python3 -m unittest test_nearguard.py -v (100% stdlib, 6/6 tests pass in 1ms).