{"workflow":null,"planning":null,"id":"c2f86b44-6549-4064-9430-a07e2057d324","state":"blocked","template":"shape:chain","objective":"[SYSTEM / MANDATORY SPECIFICATIONS]\nPROJECT NAME: SwarmGuard\nTOKEN TICKER: SWARM\nTARGET EVM: Ethereum / Base\nPURPOSE: IMD Hackathon Submission\n\n---\n\n### 1. UNISWAP V4 HOOK LOGIC (HOOK SPECIFICATION):\n- When the hook acts: The hook acts inside `beforeSwap` and `afterSwap` lifecycle callbacks on every Uniswap V4 pool transaction.\n- The fee rule: The hook calculates a dynamic pool fee on top of standard swaps based on real-time agent consensus risk levels. If consensus detects high volatility or sandwich attacks, the hook dynamically adjusts the pool protection fee tier up to a maximum threshold.\n- Where fees go: All hook fees collected in ETH are sent directly to the IMD Swarm Protocol Vault (`0x4e0fa57bde726079356537e2f34d671e9f41adbc`) and the Creator Wallet (`0xBBF1...B21E` / current connected deployer address) within the same swap transaction.\n\n### 2. WHAT EACH CONTRACT DOES:\n- SwarmGuardToken.sol: Standard ERC-20 token contract. It manages total supply, minting, transfers, and balance tracking.\n- SwarmGuardHook.sol: Dynamic Uniswap V4 pool hook contract attached to the initial SWARM/ETH pool. It validates real-time agent consensus signatures and monitors pool risk parameters.\n\n### 3. OUTSIDE SERVICES AND VALUES:\n- IMD ERC-8004 Identity Registry (`0x0000000000000000000000000000000000008004`): External smart contract registry used to fetch active agent addresses, public keys, and verify 66% majority quorum cryptographic signatures.\n- Ethereum/Base Node RPC: External infrastructure service providing live block data and gas metrics.\n\n### 4. WHAT THE SITE SHOWS & FRONTEND HOSTING:\n- What the site shows: Live market price of SWARM token, liquidity pool metrics, real-time ERC-8004 agent consensus status, and validator signatures.\n- What a connected wallet can do: Connect Web3 wallet (MetaMask/WalletConnect), execute SWARM token swaps, and provide pool liquidity.\n- Frontend Web App: Fully compiled React / Next.js user interface hosted and published at a live, publicly accessible HTTPS URL provided automatically by the IMD deployment pipeline.\n\n---\n\n### 5. STANDARD TOKENOMICS & DEPLOYMENT PARAMETERS:\n- Token Name: SwarmGuard\n- Token Symbol: SWARM\n- Supply: 1,000,000,000 with 18 decimals, minted once.\n- Transfers: Plain transfers, with no fees, limits, pausing, or minting.\n- Split: 10% to the swarm vault (`0x4e0fa57bde726079356537e2f34d671e9f41adbc`), 80% into the pool, 10% to creator wallet.\n- Pool: Paired with ETH, opening at a 10 ETH market cap.\n- Trading Fee: 1.25% of every trade (1% to creator, 0.25% to IMD, claimable any time). The hook fee operates on top via `beforeSwap`.\n\n---\n\n### 6. GOVERNANCE AND ACCESS CONTROL:\n- Who can change it: Emergency parameters and hook settings can ONLY be updated by verified IMD Swarm agent consensus (66% quorum). Zero human admin keys exist.\n\nBUILD AND DEPLOY THE SMART CONTRACTS, COMPILE THE WEB FRONTEND, HOST IT AT A PUBLIC URL, AND EXECUTE ON-CHAIN NOW.","blockedReason":"node build_contract_project: needs_input: A deployed IMD Swarm consensus registry and its authoritative interface for identifying verified active agents, resolving signing keys, and determining the full quorum membership. Read-only cast code checks for the supplied 0x0000000000000000000000000000000000008004 address returned 0x on both Ethereum mainnet (https://ethereum-rpc.publicnode.com) and Base mainnet (https://mainnet.base.org). ERC-8004 defines agent identity but does not define IMD membership or a 66% consensus interface. Inventing an interface, validator set, or replacement address would not produce working governance, and a hu","createdAt":"2026-10-08T20:03:19.182Z","updatedAt":"2026-10-08T20:05:19.191Z","paidBy":"0xbbf17c1376eb60bdb4a5821042e4ea1bc9aab21e","parentJobId":null,"project":{"id":"c2f86b44-6549-4064-9430-a07e2057d324","head":"c2f86b44-6549-4064-9430-a07e2057d324","running":null,"versions":[{"jobId":"c2f86b44-6549-4064-9430-a07e2057d324","workflowId":null,"objective":"[SYSTEM / MANDATORY SPECIFICATIONS]\nPROJECT NAME: SwarmGuard\nTOKEN TICKER: SWARM\nTARGET EVM: Ethereum / Base\nPURPOSE: IMD Hackathon Submission\n\n---\n\n### 1. UNISWAP V4 HOOK LOGIC (HOOK SPECIFICATION):\n- When the hook acts: The hook acts inside `beforeSwap` and `afterSwap` lifecycle callbacks on every Uniswap V4 pool transaction.\n- The fee rule: The hook calculates a dynamic pool fee on top of standard swaps based on real-time agent consensus risk levels. If consensus detects high volatility or sandwich attacks, the hook dynamically adjusts the pool protection fee tier up to a maximum threshold.\n- Where fees go: All hook fees collected in ETH are sent directly to the IMD Swarm Protocol Vault (`0x4e0fa57bde726079356537e2f34d671e9f41adbc`) and the Creator Wallet (`0xBBF1...B21E` / current connected deployer address) within the same swap transaction.\n\n### 2. WHAT EACH CONTRACT DOES:\n- SwarmGuardToken.sol: Standard ERC-20 token contract. It manages total supply, minting, transfers, and balance tracking.\n- SwarmGuardHook.sol: Dynamic Uniswap V4 pool hook contract attached to the initial SWARM/ETH pool. It validates real-time agent consensus signatures and monitors pool risk parameters.\n\n### 3. OUTSIDE SERVICES AND VALUES:\n- IMD ERC-8004 Identity Registry (`0x0000000000000000000000000000000000008004`): External smart contract registry used to fetch active agent addresses, public keys, and verify 66% majority quorum cryptographic signatures.\n- Ethereum/Base Node RPC: External infrastructure service providing live block data and gas metrics.\n\n### 4. WHAT THE SITE SHOWS & FRONTEND HOSTING:\n- What the site shows: Live market price of SWARM token, liquidity pool metrics, real-time ERC-8004 agent consensus status, and validator signatures.\n- What a connected wallet can do: Connect Web3 wallet (MetaMask/WalletConnect), execute SWARM token swaps, and provide pool liquidity.\n- Frontend Web App: Fully compiled React / Next.js user interface hosted and published at a live, publicly accessible HTTPS URL provided automatically by the IMD deployment pipeline.\n\n---\n\n### 5. STANDARD TOKENOMICS & DEPLOYMENT PARAMETERS:\n- Token Name: SwarmGuard\n- Token Symbol: SWARM\n- Supply: 1,000,000,000 with 18 decimals, minted once.\n- Transfers: Plain transfers, with no fees, limits, pausing, or minting.\n- Split: 10% to the swarm vault (`0x4e0fa57bde726079356537e2f34d671e9f41adbc`), 80% into the pool, 10% to creator wallet.\n- Pool: Paired with ETH, opening at a 10 ETH market cap.\n- Trading Fee: 1.25% of every trade (1% to creator, 0.25% to IMD, claimable any time). The hook fee operates on top via `beforeSwap`.\n\n---\n\n### 6. GOVERNANCE AND ACCESS CONTROL:\n- Who can change it: Emergency parameters and hook settings can ONLY be updated by verified IMD Swarm agent consensus (66% quorum). Zero human admin keys exist.\n\nBUILD AND DEPLOY THE SMART CONTRACTS, COMPILE THE WEB FRONTEND, HOST IT AT A PUBLIC URL, AND EXECUTE ON-CHAIN NOW.","baseCommit":"0243d7da4a4337ae8b16bcdf15bb4ead736fd68f","state":"blocked","createdAt":"2026-10-08T20:03:19.182Z"}]},"deliver":true,"host":false,"site":null,"launch":{"requested":true,"kind":"univ4_hook","id":null,"status":null,"chainId":1},"oracleRequestId":null,"delivery":null,"media":null,"nodes":[{"key":"audit_economics","role":"review","state":"waiting","attempt":0,"revisions":0,"judgeRevisions":0,"dependsOn":["build_contract_project"],"allowedPaths":[],"failureReason":null,"dispatchNote":null,"dispatchNoteAt":null,"updatedAt":"2026-10-08T20:03:19.182Z","verdict":null,"seat":null,"live":null},{"key":"audit_flow","role":"review","state":"waiting","attempt":0,"revisions":0,"judgeRevisions":0,"dependsOn":["build_contract_project"],"allowedPaths":[],"failureReason":null,"dispatchNote":null,"dispatchNoteAt":null,"updatedAt":"2026-10-08T20:03:19.182Z","verdict":null,"seat":null,"live":null},{"key":"audit_judge","role":"review","state":"waiting","attempt":0,"revisions":0,"judgeRevisions":0,"dependsOn":["build_contract_project","write_foundry_tests","manifest","audit_math","audit_permissions","audit_economics","audit_flow"],"allowedPaths":[],"failureReason":null,"dispatchNote":null,"dispatchNoteAt":null,"updatedAt":"2026-10-08T20:03:19.182Z","verdict":null,"seat":null,"live":null},{"key":"audit_math","role":"review","state":"waiting","attempt":0,"revisions":0,"judgeRevisions":0,"dependsOn":["build_contract_project"],"allowedPaths":[],"failureReason":null,"dispatchNote":null,"dispatchNoteAt":null,"updatedAt":"2026-10-08T20:03:19.182Z","verdict":null,"seat":null,"live":null},{"key":"audit_permissions","role":"review","state":"waiting","attempt":0,"revisions":0,"judgeRevisions":0,"dependsOn":["build_contract_project"],"allowedPaths":[],"failureReason":null,"dispatchNote":null,"dispatchNoteAt":null,"updatedAt":"2026-10-08T20:03:19.182Z","verdict":null,"seat":null,"live":null},{"key":"build_contract_project","role":"implement","state":"failed","attempt":1,"revisions":0,"judgeRevisions":0,"dependsOn":[],"allowedPaths":[],"failureReason":"needs_input: A deployed IMD Swarm consensus registry and its authoritative interface for identifying verified active agents, resolving signing keys, and determining the full quorum membership. Read-only cast code checks for the supplied 0x0000000000000000000000000000000000008004 address returned 0x on both Ethereum mainnet (https://ethereum-rpc.publicnode.com) and Base mainnet (https://mainnet.base.org). ERC-8004 defines agent identity but does not define IMD membership or a 66% consensus interface. Inventing an interface, validator set, or replacement address would not produce working governance, and a hu","dispatchNote":null,"dispatchNoteAt":null,"updatedAt":"2026-10-08T20:05:19.191Z","verdict":null,"seat":null,"live":null},{"key":"manifest","role":"integrate","state":"waiting","attempt":0,"revisions":0,"judgeRevisions":0,"dependsOn":["build_contract_project"],"allowedPaths":["launch.json"],"failureReason":null,"dispatchNote":null,"dispatchNoteAt":null,"updatedAt":"2026-10-08T20:03:19.182Z","verdict":null,"seat":null,"live":null},{"key":"write_foundry_tests","role":"tests","state":"waiting","attempt":0,"revisions":0,"judgeRevisions":0,"dependsOn":["build_contract_project"],"allowedPaths":["test","test/**"],"failureReason":null,"dispatchNote":null,"dispatchNoteAt":null,"updatedAt":"2026-10-08T20:03:19.182Z","verdict":null,"seat":null,"live":null}],"reviews":[{"status":"queued","chainId":1,"txHash":null,"blockNumber":null,"sentAt":null,"entries":[]}]}