Loops HousePH
PhalanxSwarm

Event
NEAR HACKATHON
Links
Team
1 member- AMOwner
Amir Mohammad Panahi
Overview
PhalanxSwarm: DAO-Governed Treasury for Autonomous AI Agents PhalanxSwarm is a NEAR treasury smart contract that controls autonomous AI spending through cryptographic verification, circuit breakers, and an agent marketplace. It combines SputnikDAO governance, TEE-verified decisions, and cross-chain settlement.
- Security Verifies NEAR AI Cloud Intel TDX signatures via env::ed25519_verify, then checks the DAO-pinned System Prompt and contract-built Facts Document. Forgery triggers prompt_mismatch or facts_mismatch. Critical violations (unauthorized payments or nonce replay) quarantine agents and may revoke keys via Promise::delete_key. It blocked 24/24 prompt-injection tests with zero funds lost.
- Access Control Restricted FunctionCall keys limit agents to specific methods: Orchestrator (8), Worker (6), Auditor (12). No agent has Full Access, preventing unauthorized calls or spending-limit bypasses.
- Marketplace Supports Commit-Reveal and Reverse-Dutch auctions with up to 16 bidders. Winning bids enter escrow, released only after on-chain TEE-signed proof-of-work verification. Task completion adds 250 reputation basis points; missed deadlines reduce reputation and auction eligibility. Customer funds remain liabilities until exact-spec delivery, with automatic refunds for late delivery.
- Cross-Chain NEAR Chain Signatures (MPC) control EVM addresses on Base Sepolia. EIP-1559 transactions use per-chain caps and fee ceilings. Nonces are tracked; unconfirmed transfers can be canceled via fee-bumped replacements. NEAR Intents provides dry quotes without live settlement.
- Governance & Treasury A 3-member SputnikDAO council (2-of-3 multisig) controls policies, audit prompts, held payments, agent revocation, and upgrades. Revenue splits on-chain among DAO, operators, and reserves. Accounting includes invoice deduplication, rate limiting, and policy-version enforcement to prevent stale proposal overwrites.