{"type":"article","schemaVersion":"1","slug":"arc-c28-contract-hardening","title":"37 Ways to Break Our Contracts, and Why None of Them Work Anymore","description":"An adversarial AI audit via Circle's Arc Studio found 37 findings across the AgentBadge contract pack. A week later all eight contracts shipped to Arc mainnet as hardened UUPS proxies with zero open findings — the full audit → fix → re-audit → deploy story.","status":"LIVE","topics":["arc","security","smart-contracts","uups","audit","arc-studio","mainnet","usdc"],"concepts":["arc","security","smart-contracts","uups","audit","arc-studio","mainnet","usdc"],"rules":[],"capabilities":[],"actions":[{"type":"read","label":"Read article (Markdown)","url":"https://agentbadge.xyz/blog/arc-c28-contract-hardening.md"},{"type":"view-demo","label":"Run Agent Readiness scan","url":"https://agentbadge.xyz/scan?src=article:arc-c28-contract-hardening"}],"qa":[{"question":"How do you audit contracts without a security firm?","answer":"We used Arc Studio — Circle's server-side AI builder — as an adversarial auditor. Not a linter, not a checklist: a max-preset adversarial prompt that required a runnable forge PoC for every finding before it counted as a finding at all."},{"question":"What were the worst things it found?","answer":"The kind of bugs that don't show up in unit tests because the tests were written by the same happy-path brain that wrote the code."},{"question":"What does \"hardened\" actually mean on-chain?","answer":"Same eight contracts, rewritten underneath. Every contract is now a UUPS upgradeable proxy (ERC1967Proxy subclass AgentBadgeProxy), with _authorizeUpgrade gated behind UPGRADER_ROLE, _disableInitializers() in every constructor, and 50-slot storage gaps for future layout."},{"question":"What's it like auditing with Arc Studio?","answer":"Practically useful, with sharp edges worth documenting."},{"question":"How did the deployment go?","answer":"Two chains, one idempotent script, ~0.9 USDC total gas."},{"question":"Who can upgrade these contracts?","answer":"Today, the deployer EOA — with a documented exit. UPGRADE-GOVERNANCE.md lays out the migration: when the first real USDC lands in TaskEscrow, UPGRADER_ROLE moves to an OZ TimelockController (≥24h delay) whose proposer/executor is a multisig. A queued malicious upgrade becomes cancellable inside the…"}],"claims":[{"id":"claim-1","text":"AgentBadge ran an adversarial AI audit (Arc Studio, max preset, forge PoC per finding) over its identity and escrow contracts — 37 findings, all closed or disproved. The hardened pack redeployed to Arc mainnet on 2026-10-11 as eight UUPS proxies with role-based access, a platformBps timelock, and a documented EOA→multisig+timelock upgrade-governance path. Total gas: ~0.9 USDC across testnet and mainnet.","status":"UNVERIFIED","evidence":[]}],"canonical":"https://agentbadge.xyz/blog/arc-c28-contract-hardening","dates":{"published":"2026-10-12","modified":"2026-10-12"},"markdownUrl":"https://agentbadge.xyz/blog/arc-c28-contract-hardening.md","jsonUrl":"https://agentbadge.xyz/blog/arc-c28-contract-hardening.json","shortAnswer":"AgentBadge ran an adversarial AI audit (Arc Studio, max preset, forge PoC per finding) over its identity and escrow contracts — 37 findings, all closed or disproved. The hardened pack redeployed to Arc mainnet on 2026-10-11 as eight UUPS proxies with role-based access, a platformBps timelock, and a documented EOA→multisig+timelock upgrade-governance path. Total gas: ~0.9 USDC across testnet and mainnet."}