{"assessments":[],"deployments":[{"attestationHash":"8ea80ffcdde00d9e857f752cb1dae3dda9f779ac2648e9c4223a29f62e3edb5a","chainId":11155111,"contracts":[{"address":"0x14e2d8744f4fdaedcb13578dbbb1a7e4ac183a31","blockNumber":12122101,"name":"IMDCourt","role":"other","txHash":"0x1727cbb3d399b8a7990b2dbb158c12183a76e29a0531e23bafbc186c5f59350a"},{"address":"0x0cc4cab99c475973f658a64814b8b020e7f32e30","blockNumber":12122101,"name":"Arms","role":"other","txHash":"0x1727cbb3d399b8a7990b2dbb158c12183a76e29a0531e23bafbc186c5f59350a"},{"address":"0x60f0592275d89034eab8e5aa3023349275aabc37","blockNumber":12122101,"name":"MockToken","role":"other","txHash":"0x1727cbb3d399b8a7990b2dbb158c12183a76e29a0531e23bafbc186c5f59350a"}],"id":"da08915c-afb5-4ad0-9f70-f8fe99b26e89","manifestHash":"f9cbc3401025f0f86a146d2304219f917d599bb54f5be2ceba3023c17c3b6e7e","status":"live"}],"fuzz":[],"identity":{"adapter":"0xde152afb7db5373f34876e1499fbd893a82dd336","chainId":1,"collection":"0x0000ec93127baa929e58e97dd0095a2bfb38ec1d","registry":"0x8004a169fb4a3325136eb29fa0ceb6d2e539a432"},"interpretation":"Records acceptance and evidence. Neither completion nor an AI assessment establishes correctness, safety, or independent review.","jobId":"6bbc7420-de2a-421c-9a4f-348ef61156f1","kind":"shape:chain","nodes":[{"acceptedSubmissionHash":"4a87a5eb968bcfb9705af316d4a9eb52661dba273218b899af3e5ee400808560","dependsOn":["audit_imported_code"],"execution":{"network":false,"profile":"foundry","requires":[],"skillHash":"15128eeb8da9fb5ec13c7964e80f936ddc40e718cc0d455d200435c3dc43d6a7","skillId":"adapt-contract-project","tools":[]},"key":"adapt_contract_project","kind":"code","role":"implement","skillHash":"15128eeb8da9fb5ec13c7964e80f936ddc40e718cc0d455d200435c3dc43d6a7","skillId":"adapt-contract-project","state":"accepted"},{"acceptedSubmissionHash":"c32c3184c8ab89f7d158ab59f2abb05bf312d5a1f77368d1708b8e602b262cab","dependsOn":["adapt_contract_project"],"execution":{"network":false,"profile":"foundry","requires":[],"skillHash":"bc5bfc8455464381f2db18badb2b55cf8bec1e535c019349a0378fa990741171","skillId":"audit-specialist","subagents":3,"tools":[]},"key":"audit_economics","kind":"code","role":"review","skillHash":"bc5bfc8455464381f2db18badb2b55cf8bec1e535c019349a0378fa990741171","skillId":"audit-specialist","state":"accepted"},{"acceptedSubmissionHash":"b05ab5f6779ba87e0feb77ab143be843c07ade679ac854cac5f8dba68fa9ed80","dependsOn":["adapt_contract_project"],"execution":{"network":false,"profile":"foundry","requires":[],"skillHash":"bc5bfc8455464381f2db18badb2b55cf8bec1e535c019349a0378fa990741171","skillId":"audit-specialist","subagents":3,"tools":[]},"key":"audit_flow","kind":"code","role":"review","skillHash":"bc5bfc8455464381f2db18badb2b55cf8bec1e535c019349a0378fa990741171","skillId":"audit-specialist","state":"accepted"},{"acceptedSubmissionHash":"895ad03729df077f3386fed3f2a845373c806dc2ebe0ddc698fd04bd52ebed54","dependsOn":[],"execution":{"network":false,"profile":"foundry","requires":[],"skillHash":"b72293c3366fff3f0b93151bca72cc6cbd189dad31d1ccd1d34dd483f2165a36","skillId":"audit-imported-code","subagents":4,"tools":[]},"key":"audit_imported_code","kind":"code","role":"review","skillHash":"b72293c3366fff3f0b93151bca72cc6cbd189dad31d1ccd1d34dd483f2165a36","skillId":"audit-imported-code","state":"accepted"},{"acceptedSubmissionHash":"8d7a0102526fdb91c753d491c890d49d806a91c0b4f2c331cf8da856c64d1598","dependsOn":["adapt_contract_project","write_foundry_tests","manifest","audit_math","audit_permissions","audit_economics","audit_flow"],"execution":{"network":false,"profile":"foundry","requires":[],"skillHash":"b89279670f5a00f5d26286edee00c97dd158b997031350a01cafe6e0329ad227","skillId":"audit-judge","subagents":4,"tools":[]},"key":"audit_judge","kind":"code","role":"review","skillHash":"b89279670f5a00f5d26286edee00c97dd158b997031350a01cafe6e0329ad227","skillId":"audit-judge","state":"accepted"},{"acceptedSubmissionHash":"8b0f6cf70550be5d21447e87d4c14dc78f6fca9a1eb67d96b57b5fe78d85da8f","dependsOn":["adapt_contract_project"],"execution":{"network":false,"profile":"foundry","requires":[],"skillHash":"bc5bfc8455464381f2db18badb2b55cf8bec1e535c019349a0378fa990741171","skillId":"audit-specialist","subagents":3,"tools":[]},"key":"audit_math","kind":"code","role":"review","skillHash":"bc5bfc8455464381f2db18badb2b55cf8bec1e535c019349a0378fa990741171","skillId":"audit-specialist","state":"accepted"},{"acceptedSubmissionHash":"6d0f806d00adf5608a1687b900fcff3069cfb8b3868fcd955dca2236d626214b","dependsOn":["adapt_contract_project"],"execution":{"network":false,"profile":"foundry","requires":[],"skillHash":"bc5bfc8455464381f2db18badb2b55cf8bec1e535c019349a0378fa990741171","skillId":"audit-specialist","subagents":3,"tools":[]},"key":"audit_permissions","kind":"code","role":"review","skillHash":"bc5bfc8455464381f2db18badb2b55cf8bec1e535c019349a0378fa990741171","skillId":"audit-specialist","state":"accepted"},{"acceptedSubmissionHash":"0796abf3d04052790ae464ab9b37de1208d92673731638d4cfdbe9cfa4d0b576","dependsOn":["adapt_contract_project"],"execution":{"network":false,"profile":"foundry","requires":[],"tools":[]},"key":"manifest","kind":"code","role":"integrate","skillHash":null,"skillId":null,"state":"accepted"},{"acceptedSubmissionHash":"9be873a269f42d35ff6f70a89d881c7fbe9922164c8e695a0b269e80f20b3096","dependsOn":["adapt_contract_project"],"execution":{"network":false,"profile":"foundry","requires":[],"skillHash":"1ddb4d02eb75e52d5f38cfd5c9bb54f332687b81929c68880cf1e8a6ab27254d","skillId":"write-foundry-tests","subagents":4,"tools":[]},"key":"write_foundry_tests","kind":"code","role":"tests","skillHash":"1ddb4d02eb75e52d5f38cfd5c9bb54f332687b81929c68880cf1e8a6ab27254d","skillId":"write-foundry-tests","state":"accepted"}],"objective":"Deploy Arms v1 to Sepolia from the merged main branch of github.com/identity-md-launches/launch-3241-build-test-deploy-sepolia (job 4b3cfe61-1fc8-4a42-a97d-c31245fe3f52) and prove it works once from end to end. Change no contract logic. If a deploy blocker forces a code change, make the smallest one, add a test for it, and list it.\n\n1. MANIFEST AND DEPLOY. Write the launch manifest for the deploy order in the README: a burnable mock token, IMDCourt, Arms. Every constructor must pass the launch check. Use the Sepolia parameters in the README. Read the IMD Intake address, the Sepolia IMD token, the oracle price and the live attester from IMD's docs and API, not from memory. Verify the source of every contract on Sepolia.\n\n2. THE FORM. Add forms/control-map-v1.txt to the repo and register it. Its URI is the raw link to that file at the commit. The form has 13 keys, every one a fact at the block named in the job. Each key also accepts NOT_APPLICABLE and UNKNOWN. No never stands in for not applicable.\nKey 1: does the target hand its logic to another contract through a standard proxy pattern (list the patterns checked in the file): yes or no.\nKey 2: implementation address.\nKey 3: proxy admin or beacon address.\nKey 4: owner root, the last address reached by following owner() from the target, three steps at most.\nKey 5: what the owner root is: no code, contract, wallet with a delegation, zero address.\nKey 6: admin root, the same walk starting from the proxy admin.\nKey 7: what the admin root is, same values as key 5.\nKey 8: can any address replace the logic that runs at the target: yes or no.\nKey 9: is there a callable path that creates new units of the target's own token or NFT: yes or no.\nKey 10: cap on that path: lifetime total, outstanding supply, per account, none.\nKey 11: can any address block or restrict ordinary transfers: yes or no.\nKey 12: can any address set or change a tax on transfers: yes or no.\nKey 13: is a waiting time enforced in code before the powers in keys 8 to 12 can be used: all of them, some, none.\nWrite in the file how each answer is encoded as bytes32.\n\n3. ONE REAL CHECK. With test wallets: bond three arms, have them serve the form, post one check on a real verified Sepolia contract of your choice at a recent block, draw, commit, reveal and settle. The answers must be true readings of that contract, each with an evidence file in the repo.\n\n4. ONE REAL CHALLENGE. Post a second check where two arms agree on one wrong value for one key, on purpose. Challenge that key with the right value. Let IMDCourt ask the real IMD oracle on Sepolia and wait for the ruling. Then resolve it and show the slash, the refund, the reward and the burn in the transaction logs. If the oracle refuses the question, cannot reach a quorum, or the callback fails, record exactly what came back and what would need to change. Do not fake a ruling with the mock court.\n\n5. REPORT. Put in the README: every address, every transaction hash from steps 1 to 4, gas used by the oracle callback against IMD's limit, how long the ruling took, and anything in IMD's oracle docs that did not match what happened. Run the audit judge if the tool exists and list what is still open.","parentJobId":null,"planHash":"f0bf782e69408e6162330093f8c2d062d0b9c90eeab99d2fbf939ae86cb0a795","previousHash":"71d9f596d5743f70e436b1aad818288025f8a95c3351b22803d45bd20be1a668","projectId":"6bbc7420-de2a-421c-9a4f-348ef61156f1","publication":{"commit":"ad0f0b417c11d8c713641351b76afdc2fa5bf57f","deliveredAt":"2026-11-12T23:25:47.884Z","repoUrl":"https://github.com/identity-md-launches/launch-3247-deploy-arms-v1-sepolia"},"receiptIdentity":{"adapter":"0xde152afb7db5373f34876e1499fbd893a82dd336","chainId":1,"collection":"0x0000ec93127baa929e58e97dd0095a2bfb38ec1d","registry":"0x8004a169fb4a3325136eb29fa0ceb6d2e539a432"},"registry":"0xb6d0a187b050fa5bb0b87033a203f37becf4a775","research":[],"schema":"identitymd-work-v1","signals":[],"site":null,"snapshotHash":"93a4073b19337da69ccb2a362951c08cbee332be488ced729cb1452806bd908a","state":"completed","submissions":[{"artifacts":[],"attempt":1,"bundleHash":"055395f92c7dbf23c7f6727263a59e55418fea364283de95377dadd424176a02","device":"63274cc86a9400de","findings":[],"hash":"0796abf3d04052790ae464ab9b37de1208d92673731638d4cfdbe9cfa4d0b576","nodeId":"eb2506c4-710f-4562-8bd0-6773e881a245","outcome":"completed","summary":"The revision is complete. The manifest at launch.json is the only changed file, and it validates.\n\n**What I verified**\n\n- The three constructors in the accepted tree (MockToken, IMDCourt, Arms) still match the manifest entries word for word, in the README's deploy order with the README's Sepolia parameters. The accepted exit-checkpoint change to Arms.sol touched no constructor.\n- IMD's on-chain docs and the capabilities and oracle API confirm the Intake v2 address, imdTEST, the oracle.request@oracle-1 action id and the live attester written into the IMDCourt entry.\n- Read-only calls to the public Sepolia RPC at block 12122036 confirmed code at both dependencies, the 0.5 imdTEST price and the 1,000,000 callback gas limit.\n- The build passes and all 117 tests pass under the verifier's fuzz seed. The repo's offline manifest checker accepts the file. No file outside launch.json changed.\n\n**What I changed**\n\nOnly the notes field. It now cites today's re-check with the current block and hash, states that IMD's docs match the live 1,000,000 gas limit on Sepolia while the pinned skill's 200,000 figure does not, and records that the accepted Arms revision changes no constructor. Notes are 2,268 characters, under the 4,000 limit.\n\n**Still open, outside this manifest step**\n\nDeployment, source verification, form registration, the live check and the real oracle challenge are later assignments. The notes say so explicitly rather than claiming them done.","treeHash":"99fa6c523dbaebd6e377d95de1b0b517a6820964","usage":{"cachedInputTokens":483203,"cost":{"source":"runtime","usdMicros":1428096},"inputTokens":322,"model":"claude-fable-5-1","outputTokens":7287,"runtime":"claude","turns":11,"wallClockMs":156362}},{"artifacts":[],"attempt":1,"bundleHash":"b27378ef03010b24b5618d5129b732df1628208d883babe73c6a7a81f0957f3c","device":"a406deaac63a93b0","findings":[],"hash":"210eae29ed4933fec3bdee010e033ba9d1783f4ecfd49020250eed81d7a742ef","nodeId":"09b8e464-0386-4568-a4f6-9f6928b43773","outcome":"completed","summary":"The full suite passes again: `forge test` runs 130 tests with 0 failures, using the verifier's fuzz seed. The only file I changed is `test/CourtFailurePaths.t.sol`.\n\n**What broke and why:** after my last round, the implementation added a new rule. `Arms.post` now only accepts a target on another chain if the court has published a \"confirmed head\" for that chain, and the block asked about is at least 5 blocks below it. My failure-path suite runs on the local test chain (31337), so Sepolia counts as another chain there. The court in that suite had never published a head, so setup failed and 13 of its 14 tests reverted with `BadTarget`.\n\n**The fix:**\n- **Setup:** the court owner now publishes a Sepolia head of 20,000,000 before any posts. The existing `IMDCourt.t.sol` sets up the same way. The 13 tests pass again with their assertions unchanged.\n- **New test `test_remoteTargetNeedsAPublishedConfirmedHead`:**\n  - A post less than 5 blocks below the head is refused and puts nothing in escrow; one exactly 5 below is accepted.\n  - A court that has never published a head refuses every post about another chain.\n  - Someone other than the owner cannot publish a head; their attempt reverts and leaves it at zero.\n\n**The invariant suite** (`test/IMDCourtInvariant.t.sol`) needed no change. It runs as if it were Sepolia itself, so its target counts as local and needs no published head. It made 2,560 calls with no reverts, and the fixed-sequence test that walks every stage still reaches a slash.\n\nI found no new defects, so I wrote no `.imd-findings.json`.","treeHash":"b378aac704f0118a7853f7a92c05a44ab503c8f8","usage":{"cachedInputTokens":822740,"cost":{"source":"runtime","usdMicros":782348},"inputTokens":32,"model":"claude-opus-5-5","outputTokens":7039,"runtime":"claude","turns":19,"wallClockMs":388612}},{"artifacts":[],"attempt":1,"bundleHash":"9696b029b9c7fb09178e67d5b2c05c13f4b30c747fc0298e3a91a852a1d7737c","device":"f3c310dfe443399d","findings":[],"hash":"3ac0a0fef5f64e3800f74585427ac7306e79ca27b1b487d09f3f9ab12b356ed5","nodeId":"ba24610c-5a2d-4b8b-87ac-68ac682cb0e6","outcome":"completed","summary":"Prepared the manifest, 13-key form, public evidence, audit fixes and deployment handoff. Changes are documented in [ADAPTATION.md](ADAPTATION.md).\n\nOffline verification passed: 96 tests, clean-export build, formatting and zero Slither High findings.\n\n**Live deployment, registration and real oracle checks remain unexecuted**, pending the network deployer. [README.md](README.md) records these gaps and remaining steps. Audit judge returned `command not found`.","treeHash":"d2c8107c62f8d0703785e89f58e1a6d7c0f4c871","usage":{"cachedInputTokens":7723904,"cost":{"source":"estimated","usdMicros":14624204},"inputTokens":349405,"model":"gpt-6-astra","outputTokens":68125,"runtime":"codex","turns":9,"wallClockMs":2050699}},{"artifacts":[],"attempt":1,"bundleHash":null,"device":"7e64d4917fa814e6","findings":[{"citation":"resolved","description":"Residual path of the earlier draw opt-out finding (27019183...). The revision makes serve, fee changes, stops and an active arm's top-up prospective by job id, and requestExit is prospective too: an exiting arm keeps being drawn for jobs with id <= exitAfterJob (_eligible line 907). But bond() takes wasActive = isActive(msg.sender), which is false while a.exiting is set, so a top-up that cancels an exit writes lastStateChange = current block. _eligible (line 905, 'lastStateChange[a] >= j.postedBlock') then refuses the arm for every job posted at or before that block. An arm that is eligible for an OPEN job reads the public seed once seedBlock is mined and calls requestExit() then bond(1) in the same block: it ends active, not exiting, bond +1 wei, and is no longer drawn for the older job. It stays eligible for later jobs. Cost: 1 wei plus gas. That brings back the free, selective participation the fix was meant to remove (dodge a spot check or an honest counterpart, or leave a small pool unfillable until cancel). The bump is only needed to stop an arm opting in to jobs posted while it was exiting (exitAfterJob < jobId). When no job was posted since the exit request (exitAfterJob == jobCount), nothing has to be invalidated. Fix direction: on a cancelled exit, skip the lastStateChange bump when exitAfterJob[msg.sender] == jobCount. In general, exclude only jobs with ids in (exitAfterJob, jobCount] (for example, record a rejoin job id and check it in _eligible) instead of every job posted at or before the current block.","line":351,"path":"src/Arms.sol","proof":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {Test} from \"forge-std/Test.sol\";\nimport {Arms} from \"src/Arms.sol\";\nimport {MockCourt} from \"src/mocks/MockCourt.sol\";\nimport {MockToken} from \"src/mocks/MockToken.sol\";\n\n/// @notice `requestExit` is prospective (an exiting arm is still drawn for jobs already posted), but\n/// `bond` treats the top-up that cancels the exit as \"newly active\" and bumps `lastStateChange`\n/// (src/Arms.sol:351), which `_eligible` compares against the older job's `postedBlock`. So an\n/// already eligible arm that sees the seed calls `requestExit(); bond(1)` and leaves the older job.\ncontract ProofExitCancelOptOutTest is Test {\n    uint256 constant FEE = 1 ether;\n    uint8 constant KEYS = 4;\n    uint256 constant CHAIN = 11155111;\n\n    MockToken token;\n    MockCourt court;\n    Arms arms;\n    address tokenOwner = makeAddr(\"tokenOwner\");\n    address poster = makeAddr(\"poster\");\n    address target = address(0xBEEF);\n    bytes32 formId;\n\n    function setUp() public {\n        vm.warp(1_800_000_000);\n        vm.roll(1000);\n        token = new MockToken(tokenOwner);\n        court = new MockCourt(address(0), 0);\n        arms = new Arms(\n            address(token), address(court), FEE, 1000 ether, 100_000 ether, 10, 1000, 3000, 6 hours, 2 hours, 7 days,\n            7 days, 14 days\n        );\n        formId = arms.registerForm(keccak256(\"form\"), KEYS, \"ipfs://bafyform/form.md\");\n        for (uint256 i; i < 6; ++i) {\n            address a = makeAddr(string.concat(\"arm\", vm.toString(i)));\n            _fund(a, 1000 ether);\n            vm.startPrank(a);\n            arms.bond(500 ether);\n            arms.serve(formId, FEE);\n            vm.stopPrank();\n        }\n        _fund(poster, 1000 ether);\n    }\n\n    function _fund(address who, uint256 amount) internal {\n        vm.prank(tokenOwner);\n        token.transfer(who, amount);\n        vm.prank(who);\n        token.approve(address(arms), type(uint256).max);\n    }\n\n    function _job(uint256 id) internal view returns (Arms.Job memory j) {\n        (, bytes memory d) = address(arms).staticcall(abi.encodeWithSelector(arms.jobs.selector, id));\n        j = abi.decode(d, (Arms.Job));\n    }\n\n    function _postAndRevealSeed() internal returns (uint256 id, address firstPick) {\n        vm.roll(vm.getBlockNumber() + 1);\n        vm.prank(poster);\n        id = arms.post(formId, CHAIN, target, 1, FEE);\n        Arms.Job memory j = _job(id);\n        vm.roll(j.seedBlock + 1);\n        uint256 seed = uint256(keccak256(abi.encode(blockhash(j.seedBlock), id, uint256(0))));\n        uint256 idx = uint256(keccak256(abi.encode(seed, uint256(0)))) % j.serverCount;\n        firstPick = arms.formRegistry().serversOf(formId)[idx];\n        assertTrue(arms.isActive(firstPick));\n    }\n\n    function _isDrawn(uint256 id, address a) internal view returns (bool) {\n        address[] memory drawn = arms.armsOf(id);\n        for (uint256 i; i < drawn.length; ++i) {\n            if (drawn[i] == a) return true;\n        }\n        return false;\n    }\n\n    /// Control: an exit alone is prospective, the exiting arm is still drawn for the older job.\n    function test_control_exitAloneStillDrawn() public {\n        (uint256 id, address dodger) = _postAndRevealSeed();\n        vm.prank(dodger);\n        arms.requestExit();\n        arms.draw(id);\n        assertTrue(_isDrawn(id, dodger));\n    }\n\n    /// requestExit + 1 wei bond in the block after the seed: the arm ends active, not exiting, and\n    /// is no longer drawn for the job posted before.\n    function test_exitThenOneWeiBondOptsOutOfOlderJob() public {\n        (uint256 id, address dodger) = _postAndRevealSeed();\n        vm.startPrank(dodger);\n        arms.requestExit();\n        arms.bond(1);\n        vm.stopPrank();\n        assertTrue(arms.isActive(dodger), \"arm is active again\");\n        arms.draw(id);\n        assertTrue(_isDrawn(id, dodger), \"requestExit + bond(1) opted the arm out of an older job\");\n    }\n}","reproduction":"Launch parameters (fee 1 ARMT, tranche x10), MockCourt. Six arms bonded 500 ARMT and serving one form at fee 1 ARMT. The poster posts job 1 at block P (a Sepolia target at block 1). Roll to seedBlock+1 and compute the first pick, dodger = serversOf(form)[keccak256(abi.encode(keccak256(abi.encode(blockhash(seedBlock), 1, 0)), 0)) % 6]. Control: dodger calls requestExit() only, then draw(1); dodger is in armsOf(1), so the exit is prospective. Attack, from the same state: dodger calls requestExit() then bond(1); isActive(dodger) is true; draw(1). Expected: dodger is drawn. Actual: lastStateChange[dodger] = current block >= postedBlock, _eligible returns false and the dodger is skipped. test/scratch/Proof_ExitCancelOptOut.t.sol: test_control_exitAloneStillDrawn passes; test_exitThenOneWeiBondOptsOutOfOlderJob fails with 'requestExit + bond(1) opted the arm out of an older job'.","severity":"medium","snippet":"        if (!wasActive) lastStateChange[msg.sender] = Blocks.number(arbitrumBlocks);","title":"bond() still bumps lastStateChange when it cancels an exit, so requestExit(); bond(1) lets an eligible arm opt out of an already posted job after its seed is visible"}],"hash":"41fed7551d5502a9158db4a8c2185a370f5c84a041cf8be9fd3bd75bca157853","nodeId":"74a9c638-c663-410f-b7ca-73e69b6569df","outcome":"completed","summary":"This round settles four of the five findings, but the draw opt-out finding is only partly fixed. I've reported one medium finding for the gap that's left, with a failing proof. The results and the coverage record are in `.imd-findings.json`: 30 entry-point rows plus 5 rows for the earlier findings.\n\n**Earlier findings:**\n\n| Finding | Result | Evidence |\n|---|---|---|\n| Remote-chain `atBlock` not bounded (medium) | Fixed | `Proof_22cf09bc47d2` passes. `post` now refuses a remote block that isn't at least 5 below `court.confirmedHead`, and a head of zero refuses everything. Only the court's owner can set the head, only for a supported remote chain, and only forward. |\n| Arm opts out of a posted job after its draw seed is public (medium) | Partly fixed | `Proof_270191835211` passes: a re-serve, a fee raise and a 1-wei top-up by an active arm no longer remove it. One path still does (below). |\n| CLAIMED ruling lost after an earlier NEITHER on the same key (medium) | Fixed | `Proof_b3e816d4f83f` passes. The key now goes from OVERTURNED to CORRECTED, and no arm is slashed twice. |\n| Latest verdict overwritten by an empty or older job (medium) | Fixed | `Proof_31484f86f740` passes. `latestJob` is written only when some key is AGREED or MAJORITY and the job's block is not older than the recorded one. |\n| Job-wide overturned flag returns a wrong challenger's stake (low) | Fixed | The stake split on a STORED ruling now depends on that key's own status. The stake goes to unslashed arms that gave the value, and burns if none are left. |\n\n**New finding (medium), `src/Arms.sol:351`:**\n```solidity\nif (!wasActive) lastStateChange[msg.sender] = Blocks.number(arbitrumBlocks);\n```\n- **The cause:** while an arm has an exit pending, `isActive` returns false. So a `bond()` that cancels the exit still counts as making the arm newly active, and records the current block.\n- **Effect:** the draw then skips the arm for every job posted at or before that block.\n- **The attack:** an arm that is eligible for an open job reads the public seed, then calls `requestExit(); bond(1)` in the same block. It ends active and not exiting, and is no longer drawn for that job, at a cost of 1 wei. That is the same free opt-out the fix was meant to close.\n- **Proof:** `test/scratch/Proof_ExitCancelOptOut.t.sol`. The control test (exit alone, the arm is still drawn) passes. The attack test fails with \"requestExit + bond(1) opted the arm out of an older job\".\n- **Fix direction:** skip that block update when no job was posted since the exit request (`exitAfterJob == jobCount`). More generally, exclude only jobs posted while the arm was exiting.\n\n**Specialist findings:** all 13 are the same five root causes as my earlier findings, so they are settled above. The only new item is the exit-cancel path.\n\n**Static-analysis leads:** the slither and aderyn lines (reentrancy, uninitialized locals, unused returns) didn't lead to a defect I could reproduce. The token and court are fixed at construction, and the ignored return values are checkpoint pushes.\n\nThe full suite passes: 130 tests, 0 failures.","treeHash":null,"usage":{"cachedInputTokens":733467,"cost":{"source":"runtime","usdMicros":1038758},"inputTokens":19,"model":"claude-opus-5-5","outputTokens":12052,"runtime":"claude","turns":11,"wallClockMs":265035}},{"artifacts":[],"attempt":1,"bundleHash":"b6f14cfcb4fcc402250d8a1b134288a68a7e8297153018fd9c72ab3a09d820ad","device":"2c98e52ed00b981b","findings":[],"hash":"4a87a5eb968bcfb9705af316d4a9eb52661dba273218b899af3e5ee400808560","nodeId":"ba24610c-5a2d-4b8b-87ac-68ac682cb0e6","outcome":"completed","summary":"The finding reproduced and is fixed. The reviewer's proof now passes, and the whole suite passes with the verifier's fuzz seed.\n\n**What was wrong.** In `bond`, the \"newly active\" test used `isActive`, which is false while an arm is exiting. So the one-wei top-up that cancelled an exit bumped `lastStateChange` to the current block, and `_eligible` then dropped the arm from every job posted at or before that block. After the seed was public, `requestExit(); bond(1)` was a one-wei opt-out from an older job.\n\n**The fix** (src/Arms.sol, three small edits, no other contract changed):\n- `bond` no longer bumps `lastStateChange` when the top-up cancels an exit. It still does on a first activation.\n- `_checkpointBond` writes a zero bond whenever the arm is exiting, and `requestExit` checkpoints at once. Every job posted during any exit interval therefore reads a zero bond permanently, across repeated exit and rejoin cycles, while jobs posted before the exit read the bond the arm then held. The rejoin checkpoints the real bond at the current job id, so only later jobs count it.\n- `exitAfterJob` and the exiting check in `_eligible` are unchanged. Arms runtime is 24,486 bytes, 90 under the EIP-170 limit.\n\n**Tests.** Two tests encoded the old bump and were rewritten to the new rule: the audit regression that cancels exits in the posting block, and the \"newly active bond\" test. A new `ExitCancelOptOutTest` in test/RevisionRegressions.t.sol covers the reviewer's scenario, a job posted in a later block during the exit staying closed after the rejoin, two exit cycles, and a withdrawal during an exit. Results:\n\n| Check | Result |\n| --- | --- |\n| Reviewer's proof (copied to test/scratch) | 2 passed |\n| `forge test` with the verifier's fuzz seed | 117 passed, 0 failed |\n| Offline deliverables check (Python) | 3 passed |\n\nThe protected floor tests could not compile on this machine because their `floor/OwnerChecks.sol` helper is not present here. Constructors were not touched, so the floor result should be unchanged.\n\n**Documents.** README's eligibility paragraph now states that a cancelled exit is prospective by job id and that exiting arms checkpoint a zero bond. ADAPTATION.md has a new section for this finding. The answer to the reviewer is in `.imd-responses.json` with verdict \"fixed\".","treeHash":"b173655749c7d235d7a1b45a557d714ed47ae51b","usage":{"cachedInputTokens":1310908,"cost":{"source":"runtime","usdMicros":3173720},"inputTokens":578,"model":"claude-fable-5-1","outputTokens":25382,"runtime":"claude","turns":19,"wallClockMs":675646}},{"artifacts":[],"attempt":1,"bundleHash":"b8916777d9a9c4e3eddc60e62f0f8dee279a5c6e34e14d3fb0624bc2bf6ac913","device":"934ef01306a3cc89","findings":[],"hash":"64c75024ca1410ea166d4bf9eb401698af69909af39eef50c092309f10b1f168","nodeId":"ba24610c-5a2d-4b8b-87ac-68ac682cb0e6","outcome":"completed","summary":"All five findings reproduced and are fixed. The build passes, all 119 tests pass with the verifier's fuzz seed, and the four reviewer proofs pass on the finished tree. Answers are in `.imd-responses.json`.\n\n**What changed, per finding**\n\n- **Remote `atBlock` unbounded (22cf09bc).** `ICourt` gained `confirmedHead(chainId)`. `Arms.post` now applies the same five-block-depth rule to a remote target against the court's published head, and a zero head admits nothing. `IMDCourt` publishes nothing by default; its owner sets a head, forward only, for a supported chain other than the executing one. The mock court vouches for the first 2^32 blocks unless a test publishes a head, since the existing suite and the proofs run on chain 31337 and post about Sepolia.\n- **Free opt-out via bond, serve or fee raise (27019183).** `ArmsForms` keeps per-arm checkpoints of the advertised fee and of the bond, keyed by the last job posted before each change. `candidate` answers with the fee as of the job's posting, and the draw counts the smaller of the bond then and now. `serve` no longer resets the eligibility snapshot, and `bond` resets it only when the top-up makes the arm newly active. Both directions are closed, so an arm can neither leave nor join an older job after its seed is visible.\n- **CLAIMED after NEITHER lost the attested value (b3e816d4).** `resolve` also corrects an OVERTURNED key on a CLAIMED ruling. The slash is idempotent, so nothing is slashed or burned twice.\n- **`_finalize` overwrote `latest()` (31484f86).** A job becomes the target's latest only if at least one key is AGREED or MAJORITY and its block is not older than the recorded verdict's.\n- **Advisory, job-wide overturned flag (42d06392).** Judged real. The STORED split is gated on the challenged key's own status. The stake goes to unslashed givers and burns when none remains, in either resolve order.\n\n**Size constraint.** The fixes added about 870 bytes and pushed Arms past the EIP-170 limit. The giver scan moved into the read-only `ArmsResults` helper and three internal loops were deduplicated without behaviour change. Arms is now 24,431 bytes, 145 under the limit.\n\n**Tests and docs.** New file `test/RevisionRegressions.t.sol` covers every change. One audit test that encoded the old same-block exclusion was rewritten, one stake-return test now asserts the burn, and the IMDCourt fixture publishes a head. README, REVIEW.md and ADAPTATION.md describe the new rules, including the operator step of publishing a Robinhood Chain head after launch. Constructors and the manifest are unchanged. Slither and the audit judge are not installed on this machine, so no new static-analysis run is claimed.","treeHash":"f3c7da5954dc6f9a9854af753dbded2ae3656952","usage":{"cachedInputTokens":2837641,"cost":{"source":"runtime","usdMicros":8913919},"inputTokens":610,"model":"claude-fable-5-1","outputTokens":87083,"runtime":"claude","turns":85,"wallClockMs":1559499}},{"artifacts":[],"attempt":1,"bundleHash":"918e0c6127d867e7b619c17cf47a154133fb046d45edf7aabaae7bf02af40110","device":"e293ff3324f7ddb5","findings":[],"hash":"66f33b6eb168ad166a08de1eafbb905c4fd2b61c4d273cc37e1cc22e773e719e","nodeId":"eb2506c4-710f-4562-8bd0-6773e881a245","outcome":"completed","summary":"The manifest was already correct for the current source, so the only change I made is to its `notes` field in `launch.json`. The constructor arguments are unchanged. I didn't touch any other file, and I left the change uncommitted.\n\n**What I checked:**\n- **Format:** the file has exactly `kind` (`\"evm_contracts\"`), `contracts` and `notes`, and notes are 2,159 of the 4,000 allowed characters.\n- **Order and arguments:** the three contracts are listed in deploy order: `MockToken` (`$owner`), then `IMDCourt` (5 arguments), then `Arms` (13 arguments, referring back to the first two). The argument counts and order match the constructors in the current code, which a contributor changed in the last commit.\n- **Rehearsal:** a scratch test deployed all three contracts with the manifest's exact values, from a separate address standing in for the factory, as Sepolia (11155111). The token and court owner is `0xcc4e…c514`, the owner gets the full 1,000,000 ARMT supply, and `Arms` is wired to the right token and court. It passed.\n- **Sizes:** `Arms` runtime is 24,431 bytes, just under the 24,576-byte limit (EIP-170). All creation code is under 49,152 bytes.\n- **Build and tests:** `forge build` passes, and `forge test` passes all 114 tests with the verifier's fuzz seed.\n\n**The notes change:** the last code commit gave the court owner a new power: `setConfirmedHead`, which records how far Robinhood Chain (4663) blocks are confirmed and can only move forward. The notes now say this is an owner power. Until the owner sets a head, any check aimed at a Robinhood Chain contract is refused. Setting it is something the owner does after launch, not a setup step of the launch itself.\n\n**Steps 1 to 5 have not happened.** This task could only change `launch.json`, so nothing was deployed or source-verified. The form wasn't registered, no real check or oracle challenge ran, and there are no transaction hashes, callback gas figures or ruling times for the README. The notes say this.\n\nThe Sepolia addresses in the court's arguments (Intake, imdTEST token, oracle action, attester) are the values that were checked against IMD's docs and API in an earlier round. I didn't fetch them again in this revision, so they should be rechecked when the contracts are deployed.","treeHash":"749d6c396c13953de6c8491a850e935ca861dbca","usage":{"cachedInputTokens":757020,"cost":{"source":"runtime","usdMicros":682792},"inputTokens":32,"model":"claude-opus-5-5","outputTokens":6446,"runtime":"claude","turns":17,"wallClockMs":986752}},{"artifacts":[],"attempt":1,"bundleHash":null,"device":"a8006a8757108cd3","findings":[{"citation":"resolved","description":"Asymmetry agent, branch diff (validation in A missing in B). `post` refuses a Sepolia target whose `atBlock` is less than five blocks deep, but the same call with `targetChainId = 4663` (accepted by `IMDCourt.supportsChain`, src/IMDCourt.sol:108-110) only checks `atBlock != 0 && atBlock <= MAX_BLOCK`. Nothing on Sepolia can read Robinhood Chain's head, so the contract cannot verify a remote window; the only correction path, `challenge` -> `IMDCourt.ask`, sends the oracle an absolute window `{fromBlock: atBlock, toBlock: atBlock}` (src/IMDCourt.sol:268-270). For a future or not-yet-five-deep remote block the plane refuses the body or the panel cannot answer, `onOracleFailure` leaves the ruling NONE, and after `courtDeadline` `resolve` returns the challenger's stake while the arms' AGREED answer stands and `latestJob` keeps pointing at it. Access x asymmetry trust gap: any poster (with two colluding or merely careless arms, or a sparse pool) can publish a permanent, unchallengeable verdict for any 4663 target, paying only 3 fees, and every honest challenger loses the 0.5 IMD oracle fee. The author's REVIEW.md item 3 acknowledges the remote head is unverified but the code still admits the input. Fix options: reject remote targets until a verifiable head source exists, or require a relative/`hours` window for remote chains, or let `challenge` carry the stake forward when the court reports a body refusal rather than returning it.","line":443,"path":"src/Arms.sol","proof":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {Test} from \"forge-std/Test.sol\";\nimport {Arms} from \"src/Arms.sol\";\nimport {ICourt} from \"src/ICourt.sol\";\nimport {MockCourt} from \"src/mocks/MockCourt.sol\";\nimport {MockToken} from \"src/mocks/MockToken.sol\";\n\n/// @dev Self-contained harness: Sepolia parameters, a mock court charging 0.5 in the bond token.\ncontract RemoteTargetFutureBlockProof is Test {\n    uint256 constant FEE = 1 ether;\n    uint256 constant TRANCHE = 10 ether;\n    uint256 constant STAKE = 2 ether;\n    uint256 constant COURT_FEE = 0.5 ether;\n    uint8 constant KEYS = 4;\n    uint256 constant SEPOLIA = 11155111;\n    uint256 constant ROBINHOOD = 4663;\n\n    MockToken token;\n    MockCourt court;\n    Arms arms;\n    address tokenOwner = makeAddr(\"tokenOwner\");\n    address poster = makeAddr(\"poster\");\n    address challengerA = makeAddr(\"challengerA\");\n    address challengerB = makeAddr(\"challengerB\");\n    address target = address(0xBEEF);\n    bytes32 formId;\n\n    function setUp() public {\n        vm.warp(1_800_000_000);\n        vm.roll(1000);\n        token = new MockToken(tokenOwner);\n        court = new MockCourt(address(token), COURT_FEE);\n        arms = new Arms(\n            address(token), address(court), FEE, 1000 ether, 100_000 ether, 10, 1000, 3000, 6 hours, 2 hours, 7 days,\n            7 days, 14 days\n        );\n        formId = arms.registerForm(keccak256(\"form\"), KEYS, \"ipfs://bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi/form.md\");\n        _fund(poster, 1000 ether);\n        _fund(challengerA, 1000 ether);\n        _fund(challengerB, 1000 ether);\n    }\n\n    function _fund(address who, uint256 amount) internal {\n        vm.prank(tokenOwner);\n        token.transfer(who, amount);\n        vm.prank(who);\n        token.approve(address(arms), type(uint256).max);\n    }\n\n    function _arm(string memory name) internal returns (address a) {\n        a = makeAddr(name);\n        _fund(a, 1000 ether);\n        vm.startPrank(a);\n        arms.bond(500 ether);\n        arms.serve(formId, FEE);\n        vm.stopPrank();\n    }\n\n    function _job(uint256 id) internal view returns (Arms.Job memory j) {\n        (, bytes memory d) = address(arms).staticcall(abi.encodeWithSelector(arms.jobs.selector, id));\n        j = abi.decode(d, (Arms.Job));\n    }\n\n    function _post() internal returns (uint256 id) {\n        vm.roll(vm.getBlockNumber() + 1);\n        vm.prank(poster);\n        id = arms.post(formId, SEPOLIA, target, 5_000_000, FEE);\n    }\n\n    function _fill(uint256 id) internal {\n        for (uint256 i; i < 30; ++i) {\n            vm.roll(vm.getBlockNumber() + 2);\n            if (_job(id).phase == Arms.Phase.COMMIT) return;\n            arms.draw(id);\n        }\n        require(_job(id).phase == Arms.Phase.COMMIT, \"not filled\");\n    }\n\n    function _vals(bytes32 seed) internal pure returns (bytes32[] memory v) {\n        v = new bytes32[](KEYS);\n        for (uint256 k; k < KEYS; ++k) {\n            v[k] = keccak256(abi.encode(seed, k));\n        }\n    }\n\n    function _answerAll(uint256 id, bytes32[] memory v) internal {\n        address[] memory drawn = arms.armsOf(id);\n        for (uint256 i; i < drawn.length; ++i) {\n            vm.prank(drawn[i]);\n            arms.commit(id, drawn[i], keccak256(abi.encode(id, drawn[i], v, bytes32(uint256(i)))));\n        }\n        for (uint256 i; i < drawn.length; ++i) {\n            vm.prank(drawn[i]);\n            arms.reveal(id, drawn[i], v, bytes32(uint256(i)), \"ipfs://evidence\");\n        }\n    }\n\n    function _contains(address[] memory list, address a) internal pure returns (bool) {\n        for (uint256 i; i < list.length; ++i) {\n            if (list[i] == a) return true;\n        }\n        return false;\n    }\n\n    // ------------------------------------------------------------------\n    // F1: a remote-chain target skips the block-depth check a local one gets.\n    // ------------------------------------------------------------------\n\n    function test_F1_remoteTargetAcceptsFutureBlock() public {\n        _arm(\"a1\");\n        _arm(\"a2\");\n        vm.roll(vm.getBlockNumber() + 1);\n        uint256 future = vm.getBlockNumber() + 1_000_000;\n        // Local chain: refused, as intended.\n        vm.prank(poster);\n        vm.expectRevert(Arms.BadTarget.selector);\n        arms.post(formId, SEPOLIA, target, future, FEE);\n        // Remote chain (Robinhood), same future height: accepted. Fixed code would refuse this too\n        // (or make the window verifiable); this assertion fails on the code as it is.\n        vm.prank(poster);\n        vm.expectRevert(Arms.BadTarget.selector);\n        arms.post(formId, ROBINHOOD, target, future, FEE);\n    }\n\n}","reproduction":"State: Arms deployed on chain 11155111 with the launch parameters; one registered form; any funded poster. Call `arms.post(formId, 11155111, 0xBEEF, block.number + 1_000_000, 1e18)` -> reverts BadTarget (expected). Call `arms.post(formId, 4663, 0xBEEF, block.number + 1_000_000, 1e18)` -> succeeds and escrows 3e18 (actual; expected: revert or a verifiable window). Then fill, answer any values, settle: results are AGREED; `challenge(id, k, truth, maxFee)` opens an oracle question about a block that does not exist; the court can never rule CLAIMED, so after 7 days `resolve` returns the stake and the arms are never slashed. test/scratch/RemoteTargetFutureBlock.t.sol asserts the remote call reverts and fails on the current code.","severity":"medium","snippet":"        if (targetChainId == block.chainid && atBlock + MIN_BLOCK_DEPTH > postedBlock) revert BadTarget();","title":"post() validates the block height only for local-chain targets; a remote-chain (4663) target accepts an unverifiable or future atBlock, so the resulting verdict cannot be corrected by challenge"},{"citation":"resolved","description":"Asymmetry agent, paired operations bond/serve vs requestExit/stopServing. The storage comment at src/Arms.sol:253-255 states that exit and stop are prospective 'so they cannot opt out of an existing job'. `requestExit` records `exitAfterJob = jobCount` and `stopServing` records `stoppedAfterJob`, both checked with `< jobId`, so a job already posted still draws the arm. But `bond` (line 346) and `serve` (line 420) write `lastStateChange[msg.sender] = current block`, and `_eligible` (line 884) refuses any arm with `lastStateChange[a] >= j.postedBlock`. A one-wei top-up after seeing a posted job therefore removes the arm from that job's draw while keeping its bond, service listing and eligibility for the next job. The guard was added to stop late joiners; it also hands every arm a free, immediate opt-out the designers explicitly denied through exit/stop. Consequences: arms can cherry-pick targets (dodge jobs about contracts they would have to answer honestly on and accept easy ones), and in a small pool one arm dodging leaves the job unfillable until `cancel`, wasting the poster's day. Fix: scope the late-join guard to positive changes that matter (first time crossing minBond, first listing on the form) or snapshot eligibility differently, so a top-up of an already-eligible arm does not change its eligibility for existing jobs.","line":345,"path":"src/Arms.sol","proof":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {Test} from \"forge-std/Test.sol\";\nimport {Arms} from \"src/Arms.sol\";\nimport {ICourt} from \"src/ICourt.sol\";\nimport {MockCourt} from \"src/mocks/MockCourt.sol\";\nimport {MockToken} from \"src/mocks/MockToken.sol\";\n\n/// @dev Self-contained harness: Sepolia parameters, a mock court charging 0.5 in the bond token.\ncontract BondTopUpOptOutProof is Test {\n    uint256 constant FEE = 1 ether;\n    uint256 constant TRANCHE = 10 ether;\n    uint256 constant STAKE = 2 ether;\n    uint256 constant COURT_FEE = 0.5 ether;\n    uint8 constant KEYS = 4;\n    uint256 constant SEPOLIA = 11155111;\n    uint256 constant ROBINHOOD = 4663;\n\n    MockToken token;\n    MockCourt court;\n    Arms arms;\n    address tokenOwner = makeAddr(\"tokenOwner\");\n    address poster = makeAddr(\"poster\");\n    address challengerA = makeAddr(\"challengerA\");\n    address challengerB = makeAddr(\"challengerB\");\n    address target = address(0xBEEF);\n    bytes32 formId;\n\n    function setUp() public {\n        vm.warp(1_800_000_000);\n        vm.roll(1000);\n        token = new MockToken(tokenOwner);\n        court = new MockCourt(address(token), COURT_FEE);\n        arms = new Arms(\n            address(token), address(court), FEE, 1000 ether, 100_000 ether, 10, 1000, 3000, 6 hours, 2 hours, 7 days,\n            7 days, 14 days\n        );\n        formId = arms.registerForm(keccak256(\"form\"), KEYS, \"ipfs://bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi/form.md\");\n        _fund(poster, 1000 ether);\n        _fund(challengerA, 1000 ether);\n        _fund(challengerB, 1000 ether);\n    }\n\n    function _fund(address who, uint256 amount) internal {\n        vm.prank(tokenOwner);\n        token.transfer(who, amount);\n        vm.prank(who);\n        token.approve(address(arms), type(uint256).max);\n    }\n\n    function _arm(string memory name) internal returns (address a) {\n        a = makeAddr(name);\n        _fund(a, 1000 ether);\n        vm.startPrank(a);\n        arms.bond(500 ether);\n        arms.serve(formId, FEE);\n        vm.stopPrank();\n    }\n\n    function _job(uint256 id) internal view returns (Arms.Job memory j) {\n        (, bytes memory d) = address(arms).staticcall(abi.encodeWithSelector(arms.jobs.selector, id));\n        j = abi.decode(d, (Arms.Job));\n    }\n\n    function _post() internal returns (uint256 id) {\n        vm.roll(vm.getBlockNumber() + 1);\n        vm.prank(poster);\n        id = arms.post(formId, SEPOLIA, target, 5_000_000, FEE);\n    }\n\n    function _fill(uint256 id) internal {\n        for (uint256 i; i < 30; ++i) {\n            vm.roll(vm.getBlockNumber() + 2);\n            if (_job(id).phase == Arms.Phase.COMMIT) return;\n            arms.draw(id);\n        }\n        require(_job(id).phase == Arms.Phase.COMMIT, \"not filled\");\n    }\n\n    function _vals(bytes32 seed) internal pure returns (bytes32[] memory v) {\n        v = new bytes32[](KEYS);\n        for (uint256 k; k < KEYS; ++k) {\n            v[k] = keccak256(abi.encode(seed, k));\n        }\n    }\n\n    function _answerAll(uint256 id, bytes32[] memory v) internal {\n        address[] memory drawn = arms.armsOf(id);\n        for (uint256 i; i < drawn.length; ++i) {\n            vm.prank(drawn[i]);\n            arms.commit(id, drawn[i], keccak256(abi.encode(id, drawn[i], v, bytes32(uint256(i)))));\n        }\n        for (uint256 i; i < drawn.length; ++i) {\n            vm.prank(drawn[i]);\n            arms.reveal(id, drawn[i], v, bytes32(uint256(i)), \"ipfs://evidence\");\n        }\n    }\n\n    function _contains(address[] memory list, address a) internal pure returns (bool) {\n        for (uint256 i; i < list.length; ++i) {\n            if (list[i] == a) return true;\n        }\n        return false;\n    }\n\n    // ------------------------------------------------------------------\n    // F2: bond(1 wei) after a post is an immediate opt-out from that open job,\n    // which requestExit / stopServing deliberately refuse.\n    // ------------------------------------------------------------------\n\n    function test_F2_control_withoutOptOutBothArmsAreDrawn() public {\n        address a1 = _arm(\"a1\");\n        address a2 = _arm(\"a2\");\n        uint256 id = _post();\n        for (uint256 i; i < 10; ++i) {\n            vm.roll(vm.getBlockNumber() + 2);\n            if (arms.armsOf(id).length >= 2) break;\n            arms.draw(id);\n        }\n        assertTrue(_contains(arms.armsOf(id), a1), \"a1 drawn\");\n        assertTrue(_contains(arms.armsOf(id), a2), \"a2 drawn\");\n    }\n\n    function test_F2_bondOneWeiOptsOutOfAnOpenJob() public {\n        _arm(\"a1\");\n        address a2 = _arm(\"a2\");\n        uint256 id = _post();\n        // a2 dislikes this job and dodges it after seeing it posted.\n        vm.roll(vm.getBlockNumber() + 1);\n        vm.prank(a2);\n        arms.bond(1);\n        for (uint256 i; i < 10; ++i) {\n            vm.roll(vm.getBlockNumber() + 2);\n            arms.draw(id);\n        }\n        // By contrast a stop or an exit requested now would NOT remove a2 (prospective cutoffs).\n        // Fixed code treats a top-up like exit/stop; this assertion fails on the code as it is.\n        assertTrue(_contains(arms.armsOf(id), a2), \"a2 should remain drawable for a job posted before its top-up\");\n    }\n\n    function test_F2_requestExitDoesNotOptOut() public {\n        address a1 = _arm(\"a1\");\n        address a2 = _arm(\"a2\");\n        uint256 id = _post();\n        vm.roll(vm.getBlockNumber() + 1);\n        vm.prank(a2);\n        arms.requestExit();\n        vm.prank(a1);\n        arms.stopServing(formId);\n        for (uint256 i; i < 10; ++i) {\n            vm.roll(vm.getBlockNumber() + 2);\n            if (arms.armsOf(id).length >= 2) break;\n            arms.draw(id);\n        }\n        assertTrue(_contains(arms.armsOf(id), a1), \"a1 still drawn after stop\");\n        assertTrue(_contains(arms.armsOf(id), a2), \"a2 still drawn after exit request\");\n    }\n\n}","reproduction":"Two arms a1, a2 bonded 500e18 and serving the form. Poster posts job 1 at block N. Next block a2 calls `arms.bond(1)`. Ten `draw(1)` calls over the following blocks: `armsOf(1)` only ever contains a1; a2 is never assigned and the job stays OPEN (actual). Control: without the top-up both arms are drawn within the same number of calls; with `a2.requestExit()` and `a1.stopServing(formId)` instead of the top-up, both are still drawn (the prospective cutoffs work). Expected: a top-up by an arm that was already eligible should not remove it from a job posted before the top-up, matching exit/stop. test/scratch/BondTopUpOptOut.t.sol.","severity":"low","snippet":"        a.bond += amount;\n        lastStateChange[msg.sender] = Blocks.number(arbitrumBlocks);","title":"bond() and serve() give an arm an immediate opt-out from any already-posted OPEN job, which requestExit() and stopServing() were deliberately designed to refuse"},{"citation":"resolved","description":"Asymmetry agent, branch diff inside `resolve`. Two challenges may be open on the same key with different claimed values (distinct caseIds). The court answers each on its own question, so with truth X, challenge A (claimed X) is CLAIMED and challenge B (claimed Y) is NEITHER; both rulings are consistent. `resolve` only rewrites the key when its status is still AGREED/MAJORITY (line 796). Whoever calls `resolve(B)` first sets the key to OVERTURNED (value left equal to the wrong stored value) and slashes; the later `resolve(A)` then skips the correction entirely yet still pays A the challenger reward (lines 807-814) for proving X. The persisted verdict read by `latest()`/`verdict()` is OVERTURNED with the wrong value instead of CORRECTED/X, although the court established X and the protocol paid for exactly that. Anyone may call `resolve`, so the slashed arms or a competing challenger can choose the order. Impact is on verdict integrity and the data consumers read, not on funds. Fix: let a CLAIMED ruling upgrade an OVERTURNED key to CORRECTED with the claimed value (and keep `_slash` idempotent via `slashedIn`), or process rulings on one key in a fixed priority.","line":795,"path":"src/Arms.sol","proof":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {Test} from \"forge-std/Test.sol\";\nimport {Arms} from \"src/Arms.sol\";\nimport {ICourt} from \"src/ICourt.sol\";\nimport {MockCourt} from \"src/mocks/MockCourt.sol\";\nimport {MockToken} from \"src/mocks/MockToken.sol\";\n\n/// @dev Self-contained harness: Sepolia parameters, a mock court charging 0.5 in the bond token.\ncontract ResolveOrderProof is Test {\n    uint256 constant FEE = 1 ether;\n    uint256 constant TRANCHE = 10 ether;\n    uint256 constant STAKE = 2 ether;\n    uint256 constant COURT_FEE = 0.5 ether;\n    uint8 constant KEYS = 4;\n    uint256 constant SEPOLIA = 11155111;\n    uint256 constant ROBINHOOD = 4663;\n\n    MockToken token;\n    MockCourt court;\n    Arms arms;\n    address tokenOwner = makeAddr(\"tokenOwner\");\n    address poster = makeAddr(\"poster\");\n    address challengerA = makeAddr(\"challengerA\");\n    address challengerB = makeAddr(\"challengerB\");\n    address target = address(0xBEEF);\n    bytes32 formId;\n\n    function setUp() public {\n        vm.warp(1_800_000_000);\n        vm.roll(1000);\n        token = new MockToken(tokenOwner);\n        court = new MockCourt(address(token), COURT_FEE);\n        arms = new Arms(\n            address(token), address(court), FEE, 1000 ether, 100_000 ether, 10, 1000, 3000, 6 hours, 2 hours, 7 days,\n            7 days, 14 days\n        );\n        formId = arms.registerForm(keccak256(\"form\"), KEYS, \"ipfs://bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi/form.md\");\n        _fund(poster, 1000 ether);\n        _fund(challengerA, 1000 ether);\n        _fund(challengerB, 1000 ether);\n    }\n\n    function _fund(address who, uint256 amount) internal {\n        vm.prank(tokenOwner);\n        token.transfer(who, amount);\n        vm.prank(who);\n        token.approve(address(arms), type(uint256).max);\n    }\n\n    function _arm(string memory name) internal returns (address a) {\n        a = makeAddr(name);\n        _fund(a, 1000 ether);\n        vm.startPrank(a);\n        arms.bond(500 ether);\n        arms.serve(formId, FEE);\n        vm.stopPrank();\n    }\n\n    function _job(uint256 id) internal view returns (Arms.Job memory j) {\n        (, bytes memory d) = address(arms).staticcall(abi.encodeWithSelector(arms.jobs.selector, id));\n        j = abi.decode(d, (Arms.Job));\n    }\n\n    function _post() internal returns (uint256 id) {\n        vm.roll(vm.getBlockNumber() + 1);\n        vm.prank(poster);\n        id = arms.post(formId, SEPOLIA, target, 5_000_000, FEE);\n    }\n\n    function _fill(uint256 id) internal {\n        for (uint256 i; i < 30; ++i) {\n            vm.roll(vm.getBlockNumber() + 2);\n            if (_job(id).phase == Arms.Phase.COMMIT) return;\n            arms.draw(id);\n        }\n        require(_job(id).phase == Arms.Phase.COMMIT, \"not filled\");\n    }\n\n    function _vals(bytes32 seed) internal pure returns (bytes32[] memory v) {\n        v = new bytes32[](KEYS);\n        for (uint256 k; k < KEYS; ++k) {\n            v[k] = keccak256(abi.encode(seed, k));\n        }\n    }\n\n    function _answerAll(uint256 id, bytes32[] memory v) internal {\n        address[] memory drawn = arms.armsOf(id);\n        for (uint256 i; i < drawn.length; ++i) {\n            vm.prank(drawn[i]);\n            arms.commit(id, drawn[i], keccak256(abi.encode(id, drawn[i], v, bytes32(uint256(i)))));\n        }\n        for (uint256 i; i < drawn.length; ++i) {\n            vm.prank(drawn[i]);\n            arms.reveal(id, drawn[i], v, bytes32(uint256(i)), \"ipfs://evidence\");\n        }\n    }\n\n    function _contains(address[] memory list, address a) internal pure returns (bool) {\n        for (uint256 i; i < list.length; ++i) {\n            if (list[i] == a) return true;\n        }\n        return false;\n    }\n\n    // ------------------------------------------------------------------\n    // F3: two challenges on one key; resolving NEITHER first blocks the CLAIMED\n    // correction, yet the CLAIMED challenger is still paid the reward.\n    // ------------------------------------------------------------------\n\n    function test_F3_resolveOrderLosesTheCorrectedValue() public {\n        for (uint256 i; i < 6; ++i) {\n            _arm(string.concat(\"arm\", vm.toString(i)));\n        }\n        uint256 id = _post();\n        _fill(id);\n        bytes32[] memory v = _vals(\"truth\");\n        _answerAll(id, v);\n        arms.settle(id);\n        require(_job(id).needed == 2 || _job(id).needed == 3, \"settled\");\n        (bytes32 stored, Arms.Status st) = arms.results(id, 0);\n        assertTrue(st == Arms.Status.AGREED || st == Arms.Status.MAJORITY);\n\n        bytes32 X = keccak256(\"right answer\");\n        bytes32 Y = keccak256(\"another wrong answer\");\n        vm.prank(challengerA);\n        bytes32 caseA = arms.challenge(id, 0, X, COURT_FEE);\n        vm.prank(challengerB);\n        bytes32 caseB = arms.challenge(id, 0, Y, COURT_FEE);\n        // Consistent rulings: X is the truth, so A's case is CLAIMED and B's case is NEITHER.\n        court.rule(address(arms), caseA, ICourt.Ruling.CLAIMED);\n        court.rule(address(arms), caseB, ICourt.Ruling.NEITHER);\n\n        uint256 aBefore = token.balanceOf(challengerA);\n        arms.resolve(id, 0, Y); // B first: OVERTURNED, arms slashed, reward accrued\n        arms.resolve(id, 0, X); // A second: CLAIMED, but the key is no longer AGREED/MAJORITY\n        (bytes32 value, Arms.Status status) = arms.results(id, 0);\n        // The CLAIMED challenger was paid the reward for proving X...\n        assertGt(token.balanceOf(challengerA), aBefore + STAKE, \"A got stake back plus reward\");\n        // ...but the verdict never records X. On the code as it is: status OVERTURNED, value == stored.\n        assertEq(uint8(status), uint8(Arms.Status.CORRECTED), \"status should be CORRECTED\");\n        assertEq(value, X, \"value should be the proven claim\");\n        assertTrue(stored != X);\n    }\n}","reproduction":"Settled 2-arm job 1, key 0 AGREED on S. challengerA: `challenge(1, 0, X, 0.5e18)`; challengerB: `challenge(1, 0, Y, 0.5e18)`. Court rules A = CLAIMED, B = NEITHER. Call `resolve(1, 0, Y)` then `resolve(1, 0, X)`. Actual: `results(1,0)` = (S, OVERTURNED=5), challengerA balance rises by stake + reward. Expected: (X, CORRECTED=4). Reversing the two `resolve` calls yields (X, CORRECTED). test/scratch/ResolveOrder.t.sol fails on the current code at the status assertion.","severity":"low","snippet":"        if (r == ICourt.Ruling.CLAIMED || r == ICourt.Ruling.NEITHER) {\n            if (kr.status == Status.AGREED || kr.status == Status.MAJORITY) {\n                bytes32 stored = kr.value;\n                if (r == ICourt.Ruling.CLAIMED) {\n                    kr.status = Status.CORRECTED;\n                    kr.value = claimedValue;\n                } else {\n                    kr.status = Status.OVERTURNED;\n                }\n                j.overturned = true;\n                _slash(jobId, j, key, stored);\n            }","title":"resolve() is order-dependent: a NEITHER ruling on a second challenge of the same key, applied first, blocks the CLAIMED correction while the CLAIMED challenger is still paid the reward"},{"citation":"resolved","description":"Trust gap, economics x asymmetry. The stake split to the arms on a STORED ruling is gated on `!j.overturned`, a per-job flag, not a per-key one. After any key of a job has been corrected or overturned, a challenge on a different, correct key that the court rules STORED (the challenger was wrong) returns the full 2*fee stake (line 820 with `stakeBack` still true) instead of paying it to the arms who gave the stored value. The challenger's only cost becomes the non-refundable 0.5 IMD oracle fee. Two asymmetric effects: (1) arms that defended a correct key lose the compensation `_splitStake` was designed to pay them, purely because an unrelated key was wrong; (2) each such challenge keeps `openChallenges > 0`, so `release` of every arm's 10*fee tranche is deferred until the court answers or `courtDeadline` (7 days) passes, at a cost far below the normal stake risk. A griefer who has just won one correction can lock the arms' tranches on the remaining 12 keys of the control map for a week for 12 * 0.5 IMD and no stake at risk. Fix: gate the stake split on the key's own status (`kr.status` is still AGREED/MAJORITY) rather than `j.overturned`, or track `overturned` per key.","line":815,"path":"src/Arms.sol","reproduction":"Settled job with keys 0..3 AGREED. challenge(id, 0, X) -> court CLAIMED -> resolve: key 0 CORRECTED, `j.overturned = true`. Now challenge(id, 1, bogus) where key 1 is correct -> court STORED -> `resolve(id, 1, bogus)`: actual, challenger receives the full 2e18 stake back and arms receive 0; expected (as for a job with no prior overturn) the 2e18 is split between the arms who gave the stored value. Repeat for keys 2 and 3 at zero stake risk; `release(id)` reverts StillLocked until each is resolved.","severity":"low","snippet":"        } else if (r == ICourt.Ruling.STORED && !j.overturned) {\n            stakeBack = false;\n            _splitStake(jobId, j, key, kr.value, c.stake);\n        }","title":"Job-wide overturned flag returns every later losing challenger's stake, so once one key is corrected all other keys can be challenged for just the oracle fee and the arms who answered correctly get no"}],"hash":"6d0f806d00adf5608a1687b900fcff3069cfb8b3868fcd955dca2236d626214b","nodeId":"f0b017df-3c39-4601-bc20-c52315f3bfa7","outcome":"completed","summary":"The reproduction for finding 4 holds as described (the losing challenger gets the stake back after a prior correction, the arms get nothing, and release is blocked until it resolves). The review is complete and `.imd-findings.json` is written.\n\n## Outcome\n\nI audited the permission model of Arms v1 (Arms, ArmsForms, ArmsResults, IMDCourt, MockToken) against the Pashov Access Control, Trust Gap and Asymmetry guides, plus the Senior Auditor's Mindset. No source file was changed. `.imd-findings.json` holds 4 findings and 30 coverage rows (28 entry points plus two invariants); 25 rows are `holds`, 5 point at findings, none are `unreached`.\n\n**Findings** (each verified with a Foundry test under `test/scratch/`, which is disposable):\n\n1. **Medium.** `post` checks block depth only when the target chain is the local chain. A Robinhood Chain (4663) target accepts a future or unverifiable `atBlock`. The only correction path then asks the oracle about a block that does not exist, the ruling stays NONE, the stake is returned and the AGREED verdict stands forever in `latestJob`. The author's own REVIEW.md lists this as open, but the input is still admitted. Proof attached.\n2. **Low.** `bond(1 wei)` or re-`serve` after seeing a job posted removes the arm from that job's draw, while `requestExit` and `stopServing` were deliberately made prospective so an arm cannot opt out. Control tests show the exit/stop paths behave as documented and the top-up path does not. Proof attached.\n3. **Low.** With two challenges on one key, resolving the NEITHER ruling first leaves the key OVERTURNED with the wrong stored value, while the later CLAIMED challenger is still paid the reward. The corrected value is never recorded. Proof attached.\n4. **Low.** The stake split on a STORED ruling is gated on a job-wide `overturned` flag, so after one key is corrected, every other correct key can be challenged for only the oracle fee: the stake always comes back, the arms get nothing, and `release` is blocked until each case resolves.\n\n**What held.** Every `transferFrom` pulls from `msg.sender` only. ArmsForms writes are `onlyArms`. Commit and reveal are restricted to the named arm or its signer with the arm bound into the commit hash. IMDCourt callbacks are intake-gated, pinned to the case's question hash, panel-checked, signature-verified in the court's own domain, and consumed once; pending cases survive an intake migration. Court owner powers (signer and intake rotation, renounce) are trusted administration with no unprivileged amplifier, so they were not reported. The launch manifest's owners and Sepolia constants match the oracle-consumer reference.\n\n**Not reached in depth.** Live Sepolia deployment, the real oracle ruling and the 13-key form content were outside this review's area and are reported by the other specialists.","treeHash":null,"usage":{"cachedInputTokens":1532884,"cost":{"source":"runtime","usdMicros":6488416},"inputTokens":386,"model":"claude-fable-5-1","outputTokens":58502,"runtime":"claude","turns":34,"wallClockMs":901177}},{"artifacts":[],"attempt":1,"bundleHash":null,"device":"fa2b7fcb5f53535a","findings":[{"citation":"resolved","description":"Arms indexes keys 0..keyCount-1 (challenge reverts BadLength when key >= keyCount). IMDCourt.question writes that raw index into the oracle text as 'under key number N of the form'. The control-map form the brief specifies is numbered Key 1..Key 13, and nothing in the question says the index is zero-based. A challenge on Arms key index 0 therefore asks the panel about 'key number 0', which the form does not have, and a challenge on index k asks about the form's Key k, one key earlier than the one Arms will slash, correct or split the stake on. The ruling is then applied by resolve() to a different key than the panel judged: arms that gave a correct value on index k can be slashed because the panel judged Key k, and wrong values on index k survive. docs/oracle-question-check.json already shows this: the fixture form has 4 keys (KEYS = 4 in test/ArmsBase.t.sol) and its last key, index 3, was sent to the checker as 'key number 3'.","line":227,"path":"src/IMDCourt.sol","reproduction":"Call IMDCourt.question(formId, 'ipfs://x/form.md', 0, 11155111, 0xBEEF, 5000000, bytes32(1), bytes32(2)). Actual text: '... under key number 0 of the form with id ...'. Expected: a reference the form can resolve, e.g. 'key number 1' (index + 1) or an explicit statement that the number is a zero-based index. Then with a 13-key form: Arms.challenge(jobId, 12, claimed, max) sends 'key number 12', which the panel reads as the form's Key 12 while Arms resolves Key 13. Verified with a scratch test printing the question (forge test, Solc 0.8.26).","severity":"medium","snippet":"                \", under key number \",\n                Strings.toString(key),","title":"IMDCourt asks the oracle about a zero-based key index while the form numbers keys from 1"},{"citation":"resolved","description":"The only bound on atBlock is MAX_BLOCK (9,007,199,254,740,991). A poster can post a job whose atBlock is far above the target chain's head. IMDCourt.ask then builds the oracle body with window {fromBlock: atBlock, toBlock: atBlock} (src/IMDCourt.sol lines 244-245). The oracle-consumer reference states an absolute window must be already confirmed and at least five blocks deep when the plane reads the ask; an unconfirmed window is refused (status 1) and the price is spent. The failure callback leaves the ruling NONE, so resolve() returns the challenger's stake only after courtDeadline (7 days) and the 0.5 IMD oracle fee is lost on every attempt. Any two drawn arms (one operator's sybils, which README accepts as possible) can therefore publish an AGREED verdict for a real target that is recorded by latestJob and can never be corrected or slashed, because every challenge on it is unanswerable by construction. Readers of latest() get the values and a far-future atBlock but no UNRESOLVED or OVERTURNED status.","line":439,"path":"src/Arms.sol","reproduction":"State: Arms with the README parameters, a registered 13-key form, two bonded arms. Input: post(formId, 11155111, 0xBEEF, 9007199254740991, 1e18) succeeds (verified in a scratch test: jobs(id).atBlock == 9007199254740991). Draw, commit, reveal identical values, settle: all keys AGREED. Any challenge(jobId, k, right, 5e17) opens a case whose oracle body carries window {fromBlock:9007199254740991,toBlock:9007199254740991} on Sepolia, which the plane cannot read; the challenger pays the fee, waits 7 days, resolve() returns the stake with ruling NONE, and the AGREED values remain the target's latest verdict. Expected: either post() bounds atBlock to a confirmed height (e.g. atBlock <= Blocks.number() when targetChainId == block.chainid, or a poster-supplied head that arms can refuse), or a job whose court question cannot be asked must not be recorded as a verdict.","severity":"medium","snippet":"        if (target == address(0) || atBlock == 0 || atBlock > MAX_BLOCK) revert BadTarget();","title":"post() accepts any atBlock up to 2^53-1, so a job about an unconfirmed block cannot be challenged and its verdict stands"},{"citation":"resolved","description":"The launch policy this review is judged against forbids minting after launch and anything configured after deployment rather than in a constructor. MockToken has no premint and an unbounded onlyOwner mint. The brief does ask for a burnable mock token and README says the owner distributes test tokens this way, so this is a conflict the adapter has to settle before the manifest: either premint a fixed supply to $owner in the constructor and remove mint, or get the policy exception recorded. As written, the owner can mint up to the Arms bond caps (1,000 ARMT per arm, 100,000 total) for any number of sybil arms at zero cost, which is the one role the README calls 'the one trusted role in the Sepolia deployment'.","line":14,"path":"src/mocks/MockToken.sol","reproduction":"Deploy MockToken(owner). Call mint(anyAddress, type(uint128).max) from owner: totalSupply becomes 2^128-1 (verified in a scratch test). No cap, no event beyond Transfer, no deadline. Expected under the launch policy: no callable mint after deployment.","severity":"medium","snippet":"    function mint(address to, uint256 amount) external onlyOwner {","title":"MockToken lets its owner mint without any cap after launch"},{"citation":"resolved","description":"IMDCourt fixes the intake, asset, action id and oracle signer at construction with no setter, and Arms fixes the court (src/Arms.sol line 226, 'ICourt public immutable court;'). The oracle-consumer reference says every one of these is owner-settable and that a new action version (oracle-2) or a moved price must not need a redeploy. README documents the choice, but the consequence is not a redeploy of the court alone: Arms cannot switch courts either, so after a signer rotation every callback reverts BadSignature and every case ends NONE (stake back after 7 days, 0.5 IMD lost per challenge), and once priceOf(action, asset) returns 0, Arms.challenge skips the fee (line 754) and IMDCourt.ask calls requestWithFailure with amount 0, which the live Intake rejects with ActionNotSold, so challenge() reverts outright. In both states every settled verdict becomes final and unchallengeable while bonds, escrow and new jobs keep flowing into a contract whose only correction mechanism is dead.","line":64,"path":"src/IMDCourt.sol","reproduction":"Input 1: with MockIntake, sign a valid attestation for an open case with any key other than oracleSigner and deliver it through complete(): onOracleResult reverts BadSignature (covered by test_callback_refusals); the case stays open until courtDeadline. Input 2: MockIntake.setPrice(action, asset, 0) then Arms.challenge(jobId, k, v, max): reverts (covered by test_ask_whenNotSoldReverts). Expected for a launch that must outlive an oracle key rotation: a bounded owner-set signer/action on IMDCourt, or an Arms-side ability to retire a dead court (e.g. refuse new posts when the court cannot ask).","severity":"low","snippet":"    IIntake public immutable intake;\n    IERC20 public immutable asset;\n    bytes32 public immutable action;","title":"A signer rotation, a new action version or an unsold price permanently disables challenges for the whole deployment"},{"citation":"resolved","description":"Contracts read in full: src/Arms.sol, src/ArmsForms.sol, src/ArmsResults.sol, src/IMDCourt.sol, src/ICourt.sol, src/IIntake.sol, src/FormURI.sol, src/Blocks.sol, src/OracleAttestation.sol, src/OracleQuestion.sol, src/mocks/MockToken.sol, src/mocks/MockCourt.sol, test/mocks/MockIntake.sol, script/Deploy.s.sol, script/AskSepolia.s.sol, docs/oracle-question-check.json, README.md, AUDIT.md and the two protected floor tests. Not reachable: the live Sepolia Intake, imdTEST token and oracle signer (no Sepolia endpoint was provided to this machine), so the assumptions that imdTEST returns bool from transferFrom/approve (Arms.challenge lines 756-757 use raw calls and revert TokenCallFailed otherwise) and that the Intake still sells oracle.request at 0.5 imdTEST are unverified; the audit-judge tool is not present on this machine either. Commands run: forge build (ok), forge test (77 passed, 0 failed, including 5 invariants), slither with lib/test/script filtered (only divide-before-multiply on the intentional dust split in _splitStake and reentrancy-no-eth alerts on token.transfer/burn and intake.requestWithFailure, which are false positives under the README's trusted non-hook token and immutable court model), aderyn (one 'reentrancy' high on the same calls, same assessment; rest is style). Walked every state-changing function for permissions, fund flow, rounding, phase transitions, no-show closes, tie breaks, slash/refund/reward/burn accounting and draw eligibility; found no loss-of-funds or accounting defect beyond the findings above. Noted but not reported as defects: the oracle body uses evidence 'panel' with an absolute one-block window although the free checker proposed 'chain' evidence for this wording (docs/oracle-question-check.json), which the operator should settle with a real form before paying; the poster-pays-for-a-no-show leak (a poster whose own arm no-shows gets the full escrow back while the honest arm's revealed answers are public) is bounded by one fee and a strike.","line":1,"path":"README.md","reproduction":"Not a defect; see description for the commands and their results.","severity":"info","snippet":"# Arms v1","title":"Review coverage, tooling results and assumptions not verifiable offline"}],"hash":"895ad03729df077f3386fed3f2a845373c806dc2ebe0ddc698fd04bd52ebed54","nodeId":"da540b7b-982c-490a-9bef-1d7f59acb2a4","outcome":"completed","summary":"The review is complete. Findings are written to `.imd-findings.json` (five entries), the scratch directory is removed, and no tracked file was changed.\n\n**Outcome.** The core escrow, slash, refund, reward and burn accounting in Arms holds up; I found no loss-of-funds path. The defects are at the boundary between Arms and the oracle.\n\n- **Medium, key numbering.** IMDCourt writes Arms' zero-based key index into the question as \"key number N\". The brief's form is numbered Key 1 to Key 13, so a challenge on index k is judged against the form's Key k and applied to Key k+1. Confirmed by printing the question for index 0, and already visible in the checked fixture in docs.\n- **Medium, unconfirmed atBlock.** `post` only caps the block at 2^53-1. A job posted about a far-future block gives the court a window the plane cannot read, so every challenge ends with no ruling, and the agreed values stand as the target's latest verdict.\n- **Medium, mock token minting.** MockToken has an unbounded owner mint after launch, which the launch policy forbids. The brief asks for this token, so the adapter must either premint in the constructor or record the exception.\n- **Low, dead court.** Signer, action, intake and court are all immutable with no fallback. A key rotation turns every ruling into NONE, and an unsold price makes `challenge` revert, leaving all verdicts final.\n- **Info, coverage.** Lists every file read, the tools run with their results, and what could not be reached: the live Sepolia Intake, imdTEST and signer, and the absent audit-judge tool.\n\nVerification run: `forge build` clean, `forge test` 77 passed. Slither and Aderyn reported only the intentional dust division and reentrancy alerts on the trusted token and intake calls, which I assessed as false positives under the documented token model.","treeHash":null,"usage":{"cachedInputTokens":765873,"cost":{"source":"runtime","usdMicros":5182306},"inputTokens":226,"model":"claude-fable-5-1","outputTokens":42824,"runtime":"claude","turns":15,"wallClockMs":728522}},{"artifacts":[],"attempt":1,"bundleHash":null,"device":"dedd4428da8fa41e","findings":[{"citation":"resolved","description":"Boundary x invariant seam. j.overturned is a job-wide flag, but it decides the stake of a challenge on a different key. Two challenges on one job with fixed rulings (key 0 CLAIMED, key 1 STORED) give two different results depending on which resolve is mined first. Anyone can call resolve. STORED first: _splitStake pays the 2*feePerArm stake to the arms that gave the stored value. CLAIMED first: j.overturned becomes true, stakeBack stays true, and the challenger the court ruled wrong gets the full stake back. Once one key of a job is overturned, every remaining AGREED/MAJORITY key can be challenged with junk for only the court fee. The stake is refunded, and each open case keeps openChallenges > 0, which blocks release() and keeps every unslashed arm's tranche (10*feePerArm, e.g. the honest third arm of a spot check) locked for up to courtDeadline (7 days). The invariant 'a challenge the court rules STORED forfeits its stake' holds or fails depending on how two independent transactions are ordered.","line":815,"path":"src/Arms.sol","proof":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {Test} from \"forge-std/Test.sol\";\nimport {Arms} from \"src/Arms.sol\";\nimport {ICourt} from \"src/ICourt.sol\";\nimport {MockCourt} from \"src/mocks/MockCourt.sol\";\nimport {MockToken} from \"src/mocks/MockToken.sol\";\n\n/// Two challenges on one job with the same pair of rulings (key 0 CLAIMED, key 1 STORED). Whether the\n/// wrong challenger on key 1 forfeits its stake depends only on which `resolve` is mined first.\ncontract ResolveOrderTest is Test {\n    uint256 constant FEE = 1 ether;\n    uint8 constant KEYS = 4;\n    MockToken token;\n    MockCourt court;\n    Arms arms;\n    address owner = makeAddr(\"owner\");\n    address poster = makeAddr(\"poster\");\n    address honest = makeAddr(\"honest\");\n    address bogus = makeAddr(\"bogus\");\n    bytes32 formId;\n    address[] armSet;\n\n    function setUp() public {\n        vm.warp(1_800_000_000);\n        vm.roll(1000);\n        token = new MockToken(owner);\n        court = new MockCourt(address(token), 0);\n        arms = new Arms(address(token), address(court), FEE, 1000 ether, 100_000 ether, 10, 1000, 3000,\n            6 hours, 2 hours, 7 days, 7 days, 14 days);\n        formId = arms.registerForm(keccak256(\"f\"), KEYS, \"ipfs://form\");\n        for (uint256 i; i < 6; ++i) {\n            address a = makeAddr(string.concat(\"arm\", vm.toString(i)));\n            _fund(a);\n            vm.startPrank(a);\n            arms.bond(500 ether);\n            arms.serve(formId, FEE);\n            vm.stopPrank();\n        }\n        _fund(poster);\n        _fund(honest);\n        _fund(bogus);\n    }\n\n    function _fund(address a) internal {\n        vm.prank(owner);\n        token.transfer(a, 1000 ether);\n        vm.prank(a);\n        token.approve(address(arms), type(uint256).max);\n    }\n\n    function _phase(uint256 id) internal view returns (Arms.Phase p) {\n        (,,,,,,,, p,,,,,,,,,,,,,,,,,,,,) = arms.jobs(id);\n    }\n\n    function _settledTwoArmJob() internal returns (uint256 id, bytes32[] memory v) {\n        for (uint256 tries; tries < 40; ++tries) {\n            vm.roll(vm.getBlockNumber() + 1);\n            vm.prank(poster);\n            id = arms.post(formId, 11155111, address(0xBEEF), 900, FEE);\n            for (uint256 i; i < 30 && _phase(id) != Arms.Phase.COMMIT; ++i) {\n                vm.roll(vm.getBlockNumber() + 2);\n                arms.draw(id);\n            }\n            address[] memory d = arms.armsOf(id);\n            v = new bytes32[](KEYS);\n            for (uint256 k; k < KEYS; ++k) v[k] = keccak256(abi.encode(\"v\", k));\n            for (uint256 i; i < d.length; ++i) {\n                vm.prank(d[i]);\n                arms.commit(id, d[i], keccak256(abi.encode(id, d[i], v, bytes32(0))));\n            }\n            for (uint256 i; i < d.length; ++i) {\n                vm.prank(d[i]);\n                arms.reveal(id, d[i], v, bytes32(0), \"e\");\n            }\n            arms.settle(id);\n            if (d.length == 2) return (id, v);\n        }\n        revert(\"no two-arm job\");\n    }\n\n    function _run(bool claimedFirst) internal returns (uint256 bogusLoss) {\n        (uint256 id, bytes32[] memory v) = _settledTwoArmJob();\n        vm.prank(honest);\n        bytes32 c0 = arms.challenge(id, 0, keccak256(\"right\"), 0);\n        vm.prank(bogus);\n        bytes32 c1 = arms.challenge(id, 1, keccak256(\"junk\"), 0);\n        court.rule(address(arms), c0, ICourt.Ruling.CLAIMED);\n        court.rule(address(arms), c1, ICourt.Ruling.STORED);\n        uint256 before = token.balanceOf(bogus);\n        if (claimedFirst) {\n            arms.resolve(id, 0, keccak256(\"right\"));\n            arms.resolve(id, 1, keccak256(\"junk\"));\n        } else {\n            arms.resolve(id, 1, keccak256(\"junk\"));\n            arms.resolve(id, 0, keccak256(\"right\"));\n        }\n        // bogus paid 2 ARMT stake at challenge time, before `before` was read.\n        uint256 back = token.balanceOf(bogus) - before;\n        bogusLoss = 2 * FEE - back;\n        v;\n    }\n\n    /// The same two rulings must give the wrong challenger the same result in either order.\n    function test_wrongChallengerOutcomeDependsOnResolveOrder() public {\n        uint256 snap = vm.snapshotState();\n        uint256 lossStoredFirst = _run(false);\n        vm.revertToState(snap);\n        uint256 lossClaimedFirst = _run(true);\n        assertEq(lossStoredFirst, 2 * FEE, \"STORED resolved first: stake forfeited\");\n        assertEq(lossClaimedFirst, lossStoredFirst, \"order changed the wrong challenger's outcome\");\n    }\n}","reproduction":"README parameters (fee 1 ARMT, tranche x10, stake x2), court fee 0. 1) Post a 4-key job; two arms reveal identical values; settle. 2) honest challenges key 0 with keccak256('right'); bogus challenges key 1 with keccak256('junk'), and each pays a 2 ARMT stake. 3) Court rules case 0 CLAIMED and case 1 STORED. 4a) resolve(key 1) then resolve(key 0): bogus loses 2 ARMT (expected). 4b) From the same state, resolve(key 0) then resolve(key 1): bogus gets 2 ARMT back (loss 0). The test in proof asserts the two orders agree and fails with 'order changed the wrong challenger's outcome: 0 != 2000000000000000000'. Fix: make the STORED branch independent of other keys. Always forfeit the stake: split it among the givers not already slashedIn this job, or burn it when none remain.","severity":"medium","snippet":"        } else if (r == ICourt.Ruling.STORED && !j.overturned) {\n            stakeBack = false;","title":"A STORED ruling forfeits the wrong challenger's stake only if it is resolved before another key's overturn: the payout depends on who calls resolve first"},{"citation":"resolved","description":"Boundary x invariant seam. Only the first ruling to resolve on a key can change results[jobId][key]. Later rulings see a status that is no longer AGREED/MAJORITY and skip the update. Two challenges on the same key with different claimed values A and B are allowed (caseId includes claimedValue). If the court rules A NEITHER and B CLAIMED, the published verdict depends on the order of resolves. B first gives CORRECTED with value B. A first gives OVERTURNED with value = the old wrong stored value, and B's correct value is never recorded even though the court confirmed it and B is paid the reward. verdict()/latest() readers then see the overturned wrong value instead of the court-confirmed one.","line":796,"path":"src/Arms.sol","reproduction":"Settled 2-arm job, key 0 AGREED on X (wrong; truth is B). Challenger 1: challenge(id,0,A,..). Challenger 2: challenge(id,0,B,..). Court rules (A) NEITHER and (B) CLAIMED. Order 1: resolve(id,0,B), then resolve(id,0,A). results[id][0] = (B, CORRECTED). Order 2: resolve(id,0,A), then resolve(id,0,B). results[id][0] = (X, OVERTURNED), and RewardPaid goes to challenger 2. Expected: the court-confirmed value B is recorded whatever the order. Fix: in the CLAIMED branch, also set value=claimedValue and status=CORRECTED when kr.status == OVERTURNED.","severity":"low","snippet":"            if (kr.status == Status.AGREED || kr.status == Status.MAJORITY) {\n                bytes32 stored = kr.value;\n                if (r == ICourt.Ruling.CLAIMED) {\n                    kr.status = Status.CORRECTED;\n                    kr.value = claimedValue;","title":"The final recorded value of a key depends on the order of resolves when two challenges on the same key get NEITHER and CLAIMED"},{"citation":"resolved","description":"Boundary x invariant seam. post() checks only atBlock in [1, MAX_BLOCK] and, on the local chain, atBlock + 5 <= head. It sets no lower bound and does not compare against the current latest verdict's atBlock. _finalize writes latestJob unconditionally, so the job settled last wins, whatever block it read. A verdict at block 1 (before an ownership renounce, upgrade or mint-cap change) then replaces a verdict at a recent block. The same unconditional write happens on the TIE_OPEN fillDeadline path, where every disputed key is UNRESOLVED. That contradicts the stated rule in _closeNoShow that a job carrying no answer must not replace an earlier verdict.","line":945,"path":"src/Arms.sol","reproduction":"Job 1: post(form, 11155111, T, 7_000_000, 1e18), answered and settled, so latest(11155111,T,form) = job 1 at block 7,000,000. Then any account calls post(form, 11155111, T, 1, 1e18) with 3 ARMT escrow, and the arms answer truthfully for block 1 and settle. latest(11155111,T,form) now returns job 2 with atBlock 1. Expected: latest keeps the reading for the highest atBlock (only replace when j.atBlock >= the stored job's atBlock), or the function is renamed and documented as last-settled.","severity":"low","snippet":"        latestJob[j.targetChainId][j.target][j.formId] = jobId;","title":"latest() is the most recently settled job, not the newest block: anyone can replace a target's latest verdict with a reading at an ancient block for 3 fees"}],"hash":"8b0f6cf70550be5d21447e87d4c14dc78f6fca9a1eb67d96b57b5fe78d85da8f","nodeId":"4e4d0986-f4cb-41ec-91f3-5f9c46461284","outcome":"completed","summary":"I found three defects in the math, boundary and numerical-gap area, and reproduced each one with a scratch Foundry test. They are in `.imd-findings.json` with a coverage row for each of the 28 entry points listed, plus one row for the balance invariant. The arithmetic itself holds; all three findings are about how results depend on the order or timing of calls.\n\n1. **Medium: whether a wrong challenger loses their stake depends on who calls `resolve` first** (`src/Arms.sol:815`). The stake check reads a job-wide `j.overturned` flag, but it decides the stake for a challenge on a different key. Take one job where key 0 is ruled CLAIMED and key 1 is ruled STORED, with a junk claim on key 1:\n   - If key 1 is resolved first, the junk challenger loses the 2 ARMT stake, as intended.\n   - If key 0 is resolved first, they get all 2 ARMT back.\n\n   So once one key on a job is overturned, every other key can be challenged with junk for only the court fee. Each open case also blocks `release()` and keeps honest arms' tranches locked for up to 7 days. The proof test is in the finding; it fails now with `0 != 2000000000000000000`.\n\n2. **Low: the recorded value of a key depends on resolve order** (`src/Arms.sol:796`). Suppose two challenges on the same key claim A and B, and the court rules A NEITHER and B CLAIMED:\n   - B resolved first: the key is recorded as CORRECTED with value B.\n   - A resolved first: the key stays OVERTURNED with the old wrong value. B's correct value is never recorded, although B is still paid the reward.\n\n3. **Low: `latest()` returns the job settled last, not the one that read the newest block** (`src/Arms.sol:945`). Anyone can post a job at block 1 for a 3 ARMT escrow, and once it settles, `latest()` returns it with `atBlock == 1`, replacing a recent reading. The tie-break timeout path also overwrites `latest()` even when the disputed keys are left unresolved.\n\n**What holds:**\n- Payment rounding always favours the poster.\n- No-show compensation balances, and it never reduces an arm's bond below its locked amount.\n- The slash split (refund, reward and burn) adds up exactly to the slashed amount.\n- The stake split leaves no dust behind.\n- The contract's token balance always covers bonds, escrow, stakes and rewards.\n- Every cast down to a smaller integer type stays in range.\n- The court's panel, quorum and expiry checks hold at their boundaries.\n\n**Leads I dropped:**\n- An escrow-locking overflow needs a fee near 2^256/10, which is impossible with a 1,000,000 ARMT supply.\n- The unchecked future block on chain 4663 is already listed as open in `REVIEW.md`.\n\n**Not done:** none of the Sepolia steps in the brief. Nothing was deployed, verified or registered, no check or challenge was posted, and I took no transaction hashes or live gas readings. This was a review that changes no files. I didn't look for an audit judge tool; `REVIEW.md` records an earlier `command not found` for it.\n\nI did write two scratch tests under `test/scratch/` (`ResolveOrder.t.sol` and `Extra2.t.sol`). The task gives you that folder and nothing in it is kept.","treeHash":null,"usage":{"cachedInputTokens":1595686,"cost":{"source":"runtime","usdMicros":1821867},"inputTokens":33,"model":"claude-opus-5-5","outputTokens":29808,"runtime":"claude","turns":19,"wallClockMs":360726}},{"artifacts":[],"attempt":1,"bundleHash":null,"device":"ea62f3bebece9304","findings":[],"hash":"8d7a0102526fdb91c753d491c890d49d806a91c0b4f2c331cf8da856c64d1598","nodeId":"74a9c638-c663-410f-b7ca-73e69b6569df","outcome":"completed","summary":"The finding I raised last round (cab68d38…, an arm escaping an already-posted job with `requestExit(); bond(1)`) is fixed. I found nothing new to report, so `.imd-findings.json` has an empty findings list and a coverage row for all 30 entry points, every one marked `holds`.\n\n**How I checked the fix**\n- **Proof:** I ran `Proof_cab68d38eee3.t.sol` from `test/scratch/` against the revised code. Both tests pass, including `test_exitThenOneWeiBondOptsOutOfOlderJob`, which failed before the fix.\n- **Code:** `bond()` (`src/Arms.sol:342-363`) now moves `lastStateChange` only on a first activation, not when a top-up cancels an exit. `requestExit()` records a zero bond for every job posted after it (`_checkpointBond`, line 905).\n- **Result:** after an exit and a rejoin, the arm is still drawn for jobs posted before the exit. Jobs posted while it was exiting stay closed to it. Jobs posted after the rejoin see its full bond. Repeating exit and rejoin keeps each exit period closed. Exit and rejoin with no job posted in between leaves older jobs unchanged.\n- **Full suite:** `forge test` gives 141 passed, 0 failed.\n\n**The other specialists' leads from earlier rounds** no longer reproduce on this code:\n- **Remote-chain future block:** `post` now checks block depth for every supported chain (lines 454-460), not only the local one.\n- **Two challenges on one key:** a CLAIMED ruling now corrects a key that an earlier NEITHER ruling marked OVERTURNED (line 813).\n- **Latest verdict:** `latestJob` is no longer overwritten on every settle; the write is now conditional (lines 982-984).\n\nI deleted my scratch copy afterwards, so I changed no repository files. `git status` lists some untracked dotfiles (`.bashrc`, `.profile` and others) at the repo root. I didn't create them: `.bashrc` is a device file mounted by the sandbox, and the others appear to come from the same setup.","treeHash":null,"usage":{"cachedInputTokens":671793,"cost":{"source":"runtime","usdMicros":719812},"inputTokens":21,"model":"claude-opus-5-5","outputTokens":6175,"runtime":"claude","turns":11,"wallClockMs":243992}},{"artifacts":[],"attempt":1,"bundleHash":"eb5523e43d21d6c82c02b2c35b9e068334d64503e522cf5efcb99afa2d5909cb","device":"f2d7eadae2a3cfdf","findings":[],"hash":"99708b7ae76a8886d692fcf63456fcc8a2bbdb474a9f6965aa974a3b44c9f251","nodeId":"eb2506c4-710f-4562-8bd0-6773e881a245","outcome":"completed","summary":"Updated [launch.json](/home/seat/.identitymd/work/6bbc7420-de2a-421c-9a4f-348ef61156f1/eb2506c4-710f-4562-8bd0-6773e881a245/launch.json) with verified Sepolia source references, preserving the correct constructors and deployment order.\n\nManifest/ABI checks, `forge build`, and all 96 tests passed with the requested fuzz seed. Only `launch.json` changed.\n\nLive deployment and oracle workflows remain pending. Audit judge unavailable.","treeHash":"9c1b7ad04d64fa346f6b427d03e470e224ac361c","usage":{"cachedInputTokens":673536,"cost":{"source":"estimated","usdMicros":1736416},"inputTokens":76403,"model":"gpt-6-astra","outputTokens":5977,"runtime":"codex","turns":4,"wallClockMs":182842}},{"artifacts":[],"attempt":1,"bundleHash":"a9fcce7abf66c39a13367fe9616a2639f37b9f2bfaec21b853ce26fabe6b99a7","device":"2a4ad9be53991100","findings":[],"hash":"9be873a269f42d35ff6f70a89d881c7fbe9922164c8e695a0b269e80f20b3096","nodeId":"09b8e464-0386-4568-a4f6-9f6928b43773","outcome":"completed","summary":"I've added one test file, `test/ExitRejoinProperties.t.sol`, with 5 tests. The full suite passes with the verifier's fuzz seed: 139 tests in 18 suites, none failing or skipped. I found no defect, so I didn't write `.imd-findings.json`.\n\nThis round came with no findings to fix. The one thing that changed since my last round is the implementer's update to `src/Arms.sol`. That update changes what happens when an arm (a bonded participant) asks to leave and then bonds again:\n- Bonding again no longer resets the arm's eligibility snapshot (`lastStateChange`).\n- While an arm is leaving, its bond is recorded as zero for any job posted in that time.\n\nThe implementer's own tests show an arm can no longer use this to get out of a job it was eligible for. They don't test the opposite direction, which the old reset used to block: using leave-and-rebond to get *into* a job it wasn't eligible for. The new file tests that:\n\n- **Below the minimum bond:** an arm that was still serving the form but held less than the minimum bond when a job was posted asks to leave, then bonds 500 tokens. That makes it active without resetting its snapshot. It still isn't drawn for that job, because the draw uses its bond at posting time. Later jobs see the new bond.\n- **Plain top-up:** topping up from below the minimum without leaving first does reset the snapshot, so that route into an older job is closed too.\n- **Failure paths:** asking to leave twice is rejected and the timer stays where it was. Bonding while leaving clears the timer, and withdrawing after that is rejected. Withdrawing before the waiting period ends is rejected. Leaving, rejoining and leaving again starts the full wait over.\n- **Random sequences (256 runs):** up to 16 random steps of leave, top-up, withdraw and job post. After each run, every job's recorded bond for the arm matches a simple model: zero if it was leaving when the job was posted, otherwise its bond then. Its bond and active status are what the model expects, and its wallet plus bond equals what it started with.\n\nOne thing I looked at but didn't report: an arm could escape a job it was eligible for by asking to leave after the job was posted and withdrawing before the draw. With the Sepolia parameters this can't happen, because withdrawing needs a 14-day wait (`exitDelay`). The draw must happen within 1 day (`fillDeadline`), plus up to about 8 hours for commit and reveal before a tie break. It only becomes possible if someone deploys with a waiting period shorter than those windows added together.\n\nI left my earlier `CourtFailurePaths` and `IMDCourtInvariant` tests as they were, and I haven't committed anything.","treeHash":"d27cad6e677262d5c39cfdf20ece6f83616d0ed7","usage":{"cachedInputTokens":686780,"cost":{"source":"runtime","usdMicros":854452},"inputTokens":27,"model":"claude-opus-5-5","outputTokens":13667,"runtime":"claude","turns":15,"wallClockMs":310812}},{"artifacts":[],"attempt":1,"bundleHash":null,"device":"c7b1db4d25939bd5","findings":[{"citation":"resolved","description":"The five-block-depth guard runs only when targetChainId == block.chainid. For the other chain IMDCourt.supportsChain admits (4663 from a Sepolia deployment, src/IMDCourt.sol:108-110) the only bound is atBlock <= MAX_BLOCK (9_007_199_254_740_991), so a poster may open a job about a block that does not exist. Two arms answer, settle() records AGREED keys and _finalize writes latestJob[4663][target][form]. The only correction path is challenge() -> IMDCourt.ask, whose question carries the absolute window {fromBlock: atBlock, toBlock: atBlock} (src/IMDCourt.sol:268-270); the oracle refuses a window that is not five deep, onOracleFailure leaves the ruling NONE, and resolve() after courtDeadline (7 days) returns the challenger's stake without slashing anyone. The verdict stands as the target's latest and is unchallengeable; every honest challenger loses the 0.5 imdTEST oracle fee. REVIEW.md item 3 acknowledges the remote head is unverified, but the code still admits the input. Merged from write_foundry_tests c37fc56c, audit_permissions 58de32f7, audit_economics 904576f9 and audit_flow cbf67dad; reproduced with the attached test. Fix direction: refuse remote targets in v1, or bound atBlock for remote chains by a court- or owner-published confirmed head.","line":443,"path":"src/Arms.sol","proof":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {Test} from \"forge-std/Test.sol\";\nimport {Arms} from \"src/Arms.sol\";\nimport {MockCourt} from \"src/mocks/MockCourt.sol\";\nimport {MockToken} from \"src/mocks/MockToken.sol\";\n\n/// @dev A job about a target on the other supported chain (4663) may name any `atBlock` up to\n/// MAX_BLOCK, including one far beyond that chain's head. The five-block-depth guard in `post`\n/// applies only when `targetChainId == block.chainid`. Such a job settles and becomes the\n/// target's `latest` verdict, and a court question about a block that does not exist cannot be\n/// answered, so the verdict can never be corrected or slashed.\ncontract RemoteFutureBlockTest is Test {\n    uint256 constant FEE = 1 ether;\n\n    MockToken token;\n    MockCourt court;\n    Arms arms;\n    address owner = makeAddr(\"owner\");\n    address poster = makeAddr(\"poster\");\n    bytes32 formId;\n\n    function setUp() public {\n        vm.chainId(11155111);\n        vm.warp(1_800_000_000);\n        vm.roll(1000);\n        token = new MockToken(owner);\n        court = new MockCourt(address(token), 0.5 ether);\n        arms = new Arms(\n            address(token), address(court), FEE, 1000 ether, 100_000 ether, 10, 1000, 3000, 6 hours, 2 hours,\n            7 days, 7 days, 14 days\n        );\n        formId = arms.registerForm(keccak256(\"form\"), 1, \"ipfs://form\");\n        vm.prank(owner);\n        token.transfer(poster, 100 ether);\n        vm.prank(poster);\n        token.approve(address(arms), type(uint256).max);\n    }\n\n    function test_postRefusesARemoteBlockFarBeyondAnyHead() public {\n        // On the local chain the same height is refused as not yet five blocks deep.\n        vm.prank(poster);\n        vm.expectRevert(Arms.BadTarget.selector);\n        arms.post(formId, 11155111, address(0xBEEF), 9_007_199_254_740_991, FEE);\n\n        // On the remote chain 4663 it is accepted: no bound ties `atBlock` to any head.\n        vm.prank(poster);\n        vm.expectRevert(Arms.BadTarget.selector);\n        arms.post(formId, 4663, address(0xBEEF), 9_007_199_254_740_991, FEE);\n    }\n}","reproduction":"Arms deployed with launch.json parameters on chainid 11155111 (block 1000 in the test), one registered form, a funded poster. post(formId, 11155111, 0xBEEF, 9007199254740991, 1e18) reverts BadTarget (expected). post(formId, 4663, 0xBEEF, 9007199254740991, 1e18) succeeds and escrows 3e18 ARMT (actual; expected: revert BadTarget or a verifiable window). After draw/commit/reveal/settle, latest(4663, 0xBEEF, formId) returns that job with AGREED keys; challenge(job, k, truth, 0.5e18) opens a court case whose window names block 9007199254740991 on chain 4663, which the oracle cannot answer, so no ruling arrives, and resolve after 7 days returns the stake. test/scratch/Proof_cbf67daddd78.t.sol fails with 'next call did not revert as expected' on the chain-4663 post.","severity":"medium","snippet":"        if (targetChainId == block.chainid && atBlock + MIN_BLOCK_DEPTH > postedBlock) revert BadTarget();","title":"post() accepts any block height for a remote-chain (4663) target, producing a verdict the court can never rule on"},{"citation":"resolved","description":"README (Forms and draws) and the comment at src/Arms.sol:253-255 say exit and stop are prospective so an arm 'cannot opt out of an older job after its seed is visible'. Only requestExit/stopServing got that treatment. bond() (src/Arms.sol:346) and serve() (src/Arms.sol:420) write lastStateChange[msg.sender] = current block, and _eligible refuses any arm with lastStateChange[a] >= j.postedBlock, so a 1 wei top-up or a re-serve at the unchanged fee removes an already eligible arm from every job posted at or before that block. ArmsForms.candidate (src/ArmsForms.sol:82 '|| minFeeOf[id][arm] > fee) return address(0)') applies the current minFeeOf with no job cutoff, so raising the advertised fee has the same effect. The draw sequence is public once seedBlock is mined and draw() cannot run until the next block, so every arm has a full block to compute whether it is about to be drawn (and with whom, and whether the job is a 3-arm spot check) and dodge at zero cost. Random assignment, the mechanism the design relies on before any challenge, becomes selective participation: a sybil operator answers only when its own arms are drawn together, honest arms get the hard draws, and in a small pool a dodging arm leaves the job unfillable until cancel. Merged from audit_permissions ee7cfca1 and audit_economics d7e40b36; reproduced with the attached test (three variants: re-serve, 1 wei bond, fee raise). Fix direction: record a job cutoff for serve/bond/fee changes the way stop() does, and bump lastStateChange only when the change makes the arm newly eligible.","line":884,"path":"src/Arms.sol","proof":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {Test} from \"forge-std/Test.sol\";\nimport {Arms} from \"src/Arms.sol\";\nimport {MockCourt} from \"src/mocks/MockCourt.sol\";\nimport {MockToken} from \"src/mocks/MockToken.sol\";\n\n/// @title Proof: an arm opts out of an already posted job after its draw seed is visible\n/// @notice README (Forms and draws): exit and stop \"cannot opt out of an older job after its seed is\n/// visible\". `serve` and `bond` set `lastStateChange` to the current block, which `_eligible` compares\n/// against the job's `postedBlock` (src/Arms.sol:884), and `ArmsForms.candidate` applies the current\n/// `minFeeOf` with no job cutoff (src/ArmsForms.sol:82). All three tests fail on the current code and\n/// pass once an already eligible arm's own re-serve, fee raise or top-up no longer applies to jobs\n/// posted before it.\ncontract ProofOptOutTest is Test {\n    uint256 constant FEE = 1 ether;\n    uint8 constant KEYS = 4;\n    uint256 constant CHAIN = 11155111;\n\n    MockToken token;\n    MockCourt court;\n    Arms arms;\n    address tokenOwner = makeAddr(\"tokenOwner\");\n    address poster = makeAddr(\"poster\");\n    address target = address(0xBEEF);\n    bytes32 formId;\n\n    function setUp() public {\n        vm.warp(1_800_000_000);\n        vm.roll(1000);\n        token = new MockToken(tokenOwner);\n        court = new MockCourt(address(0), 0);\n        arms = new Arms(\n            address(token), address(court), FEE, 1000 ether, 100_000 ether, 10, 1000, 3000, 6 hours, 2 hours, 7 days,\n            7 days, 14 days\n        );\n        formId = arms.registerForm(keccak256(\"form\"), KEYS, \"ipfs://bafyform/form.md\");\n        for (uint256 i; i < 6; ++i) {\n            address a = makeAddr(string.concat(\"arm\", vm.toString(i)));\n            _fund(a, 1000 ether);\n            vm.startPrank(a);\n            arms.bond(500 ether);\n            arms.serve(formId, FEE);\n            vm.stopPrank();\n        }\n        _fund(poster, 1000 ether);\n    }\n\n    function _fund(address who, uint256 amount) internal {\n        vm.prank(tokenOwner);\n        token.transfer(who, amount);\n        vm.prank(who);\n        token.approve(address(arms), type(uint256).max);\n    }\n\n    function _job(uint256 id) internal view returns (Arms.Job memory j) {\n        (, bytes memory d) = address(arms).staticcall(abi.encodeWithSelector(arms.jobs.selector, id));\n        j = abi.decode(d, (Arms.Job));\n    }\n\n    /// @dev Posts a job and mines its seed block, so the first draw pick is public knowledge.\n    function _postAndRevealSeed() internal returns (uint256 id, address firstPick) {\n        vm.roll(vm.getBlockNumber() + 1);\n        vm.prank(poster);\n        id = arms.post(formId, CHAIN, target, 1, FEE);\n        Arms.Job memory j = _job(id);\n        vm.roll(j.seedBlock + 1);\n        uint256 seed = uint256(keccak256(abi.encode(blockhash(j.seedBlock), id, uint256(0))));\n        uint256 idx = uint256(keccak256(abi.encode(seed, uint256(0)))) % j.serverCount;\n        firstPick = arms.formRegistry().serversOf(formId)[idx];\n        assertTrue(arms.isActive(firstPick));\n    }\n\n    function _isDrawn(uint256 id, address a) internal view returns (bool) {\n        address[] memory drawn = arms.armsOf(id);\n        for (uint256 i; i < drawn.length; ++i) {\n            if (drawn[i] == a) return true;\n        }\n        return false;\n    }\n\n    /// A re-`serve` at the unchanged fee, sent in the block after the seed block, removes the arm from\n    /// the already posted job at no cost.\n    function test_reServeAtSameFeeOptsOutOfOlderJob() public {\n        (uint256 id, address dodger) = _postAndRevealSeed();\n        vm.prank(dodger);\n        arms.serve(formId, FEE);\n        arms.draw(id);\n        assertTrue(_isDrawn(id, dodger), \"arm opted out of an older job after its seed was visible\");\n    }\n\n    /// A one wei top-up does the same.\n    function test_oneWeiBondOptsOutOfOlderJob() public {\n        (uint256 id, address dodger) = _postAndRevealSeed();\n        vm.prank(dodger);\n        arms.bond(1);\n        arms.draw(id);\n        assertTrue(_isDrawn(id, dodger), \"1 wei bond opted the arm out of an older job\");\n    }\n\n    /// The registry itself applies a later fee raise to a job posted before it.\n    function test_feeRaiseAppliesToOlderJobInRegistry() public {\n        (uint256 id, address dodger) = _postAndRevealSeed();\n        vm.prank(dodger);\n        arms.serve(formId, FEE + 1);\n        address[] memory list = arms.formRegistry().serversOf(formId);\n        uint256 idx;\n        for (uint256 i; i < list.length; ++i) {\n            if (list[i] == dodger) idx = i;\n        }\n        assertEq(arms.formRegistry().candidate(formId, idx, id, FEE), dodger, \"fee raise applied to an older job\");\n    }\n}","reproduction":"Six arms bonded 500 ARMT and serving one form at fee 1 ARMT. (1) poster posts job at block P; seedBlock = P+1. (2) Mine P+1; compute seed = keccak256(abi.encode(blockhash(P+1), jobId, 0)), idx = keccak256(abi.encode(seed, 0)) % serverCount, dodger = formRegistry.serversOf(formId)[idx]. (3) In block P+2, before any draw, dodger calls arms.serve(formId, 1e18) (unchanged fee) or arms.bond(1). (4) Anyone calls draw(jobId). Expected: dodger is among the drawn arms. Actual: lastStateChange[dodger] = P+2 >= postedBlock = P, _eligible returns false, armsOf(jobId) does not contain it. Variant: dodger calls serve(formId, 1e18 + 1); formRegistry.candidate(formId, idx, jobId, 1e18) returns address(0) for a job posted before the fee change. Control: stopServing/requestExit in the same block do NOT remove the arm. test/scratch/Proof_d7e40b36b626.t.sol: all three tests fail on the current code.","severity":"medium","snippet":"        if (a == address(0) || a == j.poster || wasDrawn[jobId][a] || lastStateChange[a] >= j.postedBlock) {","title":"bond(), serve() and a fee raise let an already eligible arm opt out of a posted job after its draw seed is public, for free"},{"citation":"resolved","description":"caseId = keccak256(jobId, key, claimedValue), so several challenges with different claimed values can be open on one key, and resolve() is permissionless. The correction branch runs only while kr.status is AGREED or MAJORITY. If the case with a wrong claimed value Z (ruled NEITHER) is resolved first, the key becomes OVERTURNED with the arms' wrong value still stored; when the case with the right value Y (ruled CLAIMED) is resolved afterwards the branch is skipped, yet lines 807-814 still pay that challenger the reward for a correction that was never written. Because challenge() refuses OVERTURNED keys, the attested value can never be recorded; latest()/verdict() readers see (wrongValue, OVERTURNED) instead of (Y, CORRECTED), contradicting README 'CLAIMED corrects a key'. Anyone can force this order: open a second challenge with any wrong value (stake returned on NEITHER, cost is the oracle fee) and resolve it first. Merged from audit_permissions 94805705, audit_economics 54c5e3d3, audit_flow 448ccc6e and audit_math a092126d; reproduced with the attached test. Fix direction: in the CLAIMED branch also set value = claimedValue and status = CORRECTED when kr.status == OVERTURNED (_slash is already idempotent through slashedIn).","line":796,"path":"src/Arms.sol","proof":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {Test} from \"forge-std/Test.sol\";\nimport {Arms} from \"src/Arms.sol\";\nimport {ICourt} from \"src/ICourt.sol\";\nimport {MockCourt} from \"src/mocks/MockCourt.sol\";\nimport {MockToken} from \"src/mocks/MockToken.sol\";\n\n/// @dev Two challenges on the same AGREED key: a wrong claimed value Z ruled NEITHER, and the right\n/// claimed value Y ruled CLAIMED. When the NEITHER case is resolved first, the later CLAIMED\n/// resolution never writes Y: the key stays OVERTURNED with the old wrong value, although the\n/// oracle attested that Y is correct and the challenger of Y is paid the reward for it.\ncontract OverturnedThenClaimedTest is Test {\n    uint256 constant FEE = 1 ether;\n    uint8 constant KEYS = 2;\n\n    MockToken token;\n    MockCourt court;\n    Arms arms;\n    address owner = makeAddr(\"owner\");\n    address poster = makeAddr(\"poster\");\n    address honest = makeAddr(\"honest\");\n    address griefer = makeAddr(\"griefer\");\n    address[] armSet;\n    bytes32 formId;\n\n    function setUp() public {\n        vm.warp(1_800_000_000);\n        vm.roll(1000);\n        token = new MockToken(owner);\n        court = new MockCourt(address(token), 0.5 ether);\n        arms = new Arms(\n            address(token), address(court), FEE, 1000 ether, 100_000 ether, 10, 1000, 3000, 6 hours, 2 hours,\n            7 days, 7 days, 14 days\n        );\n        formId = arms.registerForm(keccak256(\"form\"), KEYS, \"ipfs://form\");\n        for (uint256 i; i < 4; ++i) {\n            address a = makeAddr(string.concat(\"arm\", vm.toString(i)));\n            _fund(a);\n            vm.startPrank(a);\n            arms.bond(500 ether);\n            arms.serve(formId, FEE);\n            vm.stopPrank();\n            armSet.push(a);\n        }\n        _fund(poster);\n        _fund(honest);\n        _fund(griefer);\n    }\n\n    function _fund(address who) internal {\n        vm.prank(owner);\n        token.transfer(who, 1000 ether);\n        vm.prank(who);\n        token.approve(address(arms), type(uint256).max);\n    }\n\n    function _job(uint256 id) internal view returns (Arms.Job memory j) {\n        (, bytes memory d) = address(arms).staticcall(abi.encodeWithSelector(arms.jobs.selector, id));\n        j = abi.decode(d, (Arms.Job));\n    }\n\n    function _answer(uint256 id, address a, bytes32[] memory v, bool reveal) internal {\n        bytes32 salt = keccak256(abi.encode(\"salt\", a));\n        vm.prank(a);\n        if (!reveal) arms.commit(id, a, keccak256(abi.encode(id, a, v, salt)));\n        else arms.reveal(id, a, v, salt, \"ipfs://evidence\");\n    }\n\n    function test_claimedAfterNeitherOnSameKeyNeverCorrectsTheKey() public {\n        vm.roll(vm.getBlockNumber() + 1);\n        vm.prank(poster);\n        uint256 id = arms.post(formId, 11155111, address(0xBEEF), 5_000_000, FEE);\n        for (uint256 i; i < 30 && _job(id).phase != Arms.Phase.COMMIT; ++i) {\n            vm.roll(vm.getBlockNumber() + 2);\n            arms.draw(id);\n        }\n        assertEq(uint8(_job(id).phase), uint8(Arms.Phase.COMMIT), \"not filled\");\n\n        bytes32 wrong = keccak256(\"X-wrong\");\n        bytes32[] memory v = new bytes32[](KEYS);\n        v[0] = wrong;\n        v[1] = keccak256(\"k1\");\n        address[] memory drawn = arms.armsOf(id);\n        for (uint256 i; i < drawn.length; ++i) _answer(id, drawn[i], v, false);\n        for (uint256 i; i < drawn.length; ++i) _answer(id, drawn[i], v, true);\n        arms.settle(id);\n        (bytes32 stored, Arms.Status st) = arms.results(id, 0);\n        assertEq(stored, wrong);\n        assertTrue(st == Arms.Status.AGREED || st == Arms.Status.MAJORITY);\n\n        bytes32 right = keccak256(\"Y-right\");\n        bytes32 other = keccak256(\"Z-also-wrong\");\n        vm.prank(honest);\n        bytes32 caseRight = arms.challenge(id, 0, right, 0.5 ether);\n        vm.prank(griefer);\n        bytes32 caseOther = arms.challenge(id, 0, other, 0.5 ether);\n\n        // The oracle rules both cases truthfully: Z is wrong (NEITHER), Y is right (CLAIMED).\n        court.rule(address(arms), caseOther, ICourt.Ruling.NEITHER);\n        court.rule(address(arms), caseRight, ICourt.Ruling.CLAIMED);\n\n        // The NEITHER case is resolved first (resolve is permissionless; the griefer calls it).\n        arms.resolve(id, 0, other);\n        (, st) = arms.results(id, 0);\n        assertEq(uint8(st), uint8(Arms.Status.OVERTURNED));\n\n        // Then the CLAIMED case: the honest challenger is paid the reward for proving Y ...\n        uint256 before = token.balanceOf(honest);\n        arms.resolve(id, 0, right);\n        assertGt(token.balanceOf(honest), before + 2 ether, \"reward paid for Y\");\n\n        // ... but the verdict never records Y. README: \"CLAIMED corrects a key\".\n        (bytes32 value, Arms.Status status) = arms.results(id, 0);\n        assertEq(uint8(status), uint8(Arms.Status.CORRECTED), \"key should be CORRECTED after a CLAIMED ruling\");\n        assertEq(value, right, \"key should carry the attested value\");\n    }\n}","reproduction":"Settled 2-arm job 1, both arms revealed key 0 = X (wrong); results(1,0) = (X, AGREED). challengerA: challenge(1, 0, Y, fee) with Y right; challengerB: challenge(1, 0, Z, fee) with Z junk. Court rules B's case NEITHER and A's case CLAIMED. resolve(1, 0, Z) then resolve(1, 0, Y). Actual: results(1,0) = (X, OVERTURNED=5), A receives stake + reward. Expected: (Y, CORRECTED=4). Reversing the two resolve calls yields (Y, CORRECTED). test/scratch/Proof_448ccc6eb0f0.t.sol fails with 'key should be CORRECTED after a CLAIMED ruling: 5 != 4'.","severity":"medium","snippet":"            if (kr.status == Status.AGREED || kr.status == Status.MAJORITY) {","title":"resolve(): a CLAIMED ruling never corrects a key that an earlier NEITHER ruling on the same key marked OVERTURNED, so the court-confirmed value is lost"},{"citation":"resolved","description":"README (no-show closure) states that a job carrying no answer 'is not recorded as the target's latest verdict: latest() keeps returning the last job that settled with answers, and one silent arm cannot erase it', and _closeNoShow was written that way (src/Arms.sol:649-650). _finalize has no such guard. On a two-arm job an arm that reveals UNKNOWN for every key makes every key UNRESOLVED (ArmsResults._evaluate: one vote, no tie break, src/ArmsResults.sol:121-134), nobody is paid, nobody is struck, the escrow is refunded in full, and the job still becomes latest(); the previous job's real answers disappear from latest() and the honest counterpart is unpaid. The same unconditional write happens on the TIE_OPEN fillDeadline path (every disputed key UNRESOLVED). Separately, post() sets no lower bound on atBlock and _finalize never compares against the stored job's atBlock, so a truthful reading at block 1 (before a renounce, upgrade or cap change) replaces a reading at a recent block for 3 fees: latest() is 'last settled', not 'newest block'. Merged from audit_economics 4fa3684f and audit_math 2c2f3b84; reproduced with the attached test. Fix direction: only write latestJob when at least one key is AGREED/MAJORITY (as _closeNoShow already implies) and when j.atBlock >= the stored job's atBlock, or document latest() as last-settled.","line":945,"path":"src/Arms.sol","proof":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {Test} from \"forge-std/Test.sol\";\nimport {Arms} from \"src/Arms.sol\";\nimport {MockCourt} from \"src/mocks/MockCourt.sol\";\nimport {MockToken} from \"src/mocks/MockToken.sol\";\n\n/// @title Proof: one arm answering UNKNOWN on every key replaces the target's latest verdict for free\n/// @notice `_finalize` writes `latestJob` unconditionally (src/Arms.sol:945). A two-arm job where one arm\n/// reveals UNKNOWN for every key settles with every key UNRESOLVED, pays nobody, strikes nobody, refunds\n/// the poster in full, and still becomes `latest()`. `_closeNoShow` deliberately refuses that.\ncontract ProofLatestOverwriteTest is Test {\n    uint256 constant FEE = 1 ether;\n    uint8 constant KEYS = 4;\n    uint256 constant CHAIN = 11155111;\n\n    MockToken token;\n    MockCourt court;\n    Arms arms;\n    address tokenOwner = makeAddr(\"tokenOwner\");\n    address poster = makeAddr(\"poster\");\n    address target = address(0xBEEF);\n    bytes32 formId;\n\n    function setUp() public {\n        vm.warp(1_800_000_000);\n        vm.roll(1000);\n        token = new MockToken(tokenOwner);\n        court = new MockCourt(address(0), 0);\n        arms = new Arms(\n            address(token), address(court), FEE, 1000 ether, 100_000 ether, 10, 1000, 3000, 6 hours, 2 hours, 7 days,\n            7 days, 14 days\n        );\n        formId = arms.registerForm(keccak256(\"form\"), KEYS, \"ipfs://bafyform/form.md\");\n        for (uint256 i; i < 6; ++i) {\n            address a = makeAddr(string.concat(\"arm\", vm.toString(i)));\n            _fund(a, 1000 ether);\n            vm.startPrank(a);\n            arms.bond(500 ether);\n            arms.serve(formId, FEE);\n            vm.stopPrank();\n        }\n        _fund(poster, 1000 ether);\n    }\n\n    function _fund(address who, uint256 amount) internal {\n        vm.prank(tokenOwner);\n        token.transfer(who, amount);\n        vm.prank(who);\n        token.approve(address(arms), type(uint256).max);\n    }\n\n    function _job(uint256 id) internal view returns (Arms.Job memory j) {\n        (, bytes memory d) = address(arms).staticcall(abi.encodeWithSelector(arms.jobs.selector, id));\n        j = abi.decode(d, (Arms.Job));\n    }\n\n    function _vals(bytes32 seed) internal pure returns (bytes32[] memory v) {\n        v = new bytes32[](KEYS);\n        for (uint256 k; k < KEYS; ++k) {\n            v[k] = keccak256(abi.encode(seed, k));\n        }\n    }\n\n    function _salt(address a) internal pure returns (bytes32) {\n        return keccak256(abi.encode(\"salt\", a));\n    }\n\n    function _commit(uint256 id, address a, bytes32[] memory v) internal {\n        vm.prank(a);\n        arms.commit(id, a, keccak256(abi.encode(id, a, v, _salt(a))));\n    }\n\n    function _reveal(uint256 id, address a, bytes32[] memory v) internal {\n        vm.prank(a);\n        arms.reveal(id, a, v, _salt(a), \"ipfs://evidence\");\n    }\n\n    function _answerAll(uint256 id, bytes32[] memory v) internal {\n        address[] memory drawn = arms.armsOf(id);\n        for (uint256 i; i < drawn.length; ++i) {\n            _commit(id, drawn[i], v);\n        }\n        for (uint256 i; i < drawn.length; ++i) {\n            _reveal(id, drawn[i], v);\n        }\n    }\n\n    /// @dev Posts until a two-arm job is in COMMIT; three-arm spot checks are finished honestly.\n    function _twoArmJob() internal returns (uint256 id) {\n        for (uint256 i; i < 40; ++i) {\n            vm.roll(vm.getBlockNumber() + 1);\n            vm.prank(poster);\n            id = arms.post(formId, CHAIN, target, 1, FEE);\n            for (uint256 d; d < 30 && _job(id).phase != Arms.Phase.COMMIT; ++d) {\n                vm.roll(vm.getBlockNumber() + 2);\n                arms.draw(id);\n            }\n            require(_job(id).phase == Arms.Phase.COMMIT, \"not filled\");\n            if (arms.armsOf(id).length == 2) return id;\n            _answerAll(id, _vals(\"filler\"));\n            arms.settle(id);\n        }\n        revert(\"no two-arm job\");\n    }\n\n    function test_allUnknownArmDoesNotReplaceLatestVerdict() public {\n        uint256 first = _twoArmJob();\n        _answerAll(first, _vals(\"truth\"));\n        arms.settle(first);\n        (uint256 latestBefore,) = arms.latest(CHAIN, target, formId);\n        assertEq(latestBefore, first, \"setup: first job is latest\");\n\n        uint256 second = _twoArmJob();\n        address[] memory drawn = arms.armsOf(second);\n        bytes32[] memory truth = _vals(\"truth\");\n        bytes32[] memory unknown = new bytes32[](KEYS);\n        for (uint256 k; k < KEYS; ++k) {\n            unknown[k] = arms.UNKNOWN();\n        }\n        _commit(second, drawn[0], truth);\n        _commit(second, drawn[1], unknown);\n        _reveal(second, drawn[0], truth);\n        _reveal(second, drawn[1], unknown);\n        uint256 honestArmBefore = token.balanceOf(drawn[0]);\n        uint256 posterBefore = token.balanceOf(poster);\n        arms.settle(second);\n\n        for (uint8 k; k < KEYS; ++k) {\n            (, Arms.Status s) = arms.results(second, k);\n            assertEq(uint8(s), uint8(Arms.Status.UNRESOLVED), \"key not UNRESOLVED\");\n        }\n        assertEq(token.balanceOf(drawn[0]), honestArmBefore, \"honest arm was paid\");\n        assertEq(token.balanceOf(poster) - posterBefore, 3 * FEE, \"poster not refunded in full\");\n\n        (uint256 latestAfter,) = arms.latest(CHAIN, target, formId);\n        assertEq(latestAfter, first, \"a job with no answer on any key replaced the target's latest verdict\");\n    }\n}","reproduction":"Job 1 on (11155111, 0xBEEF, form): two arms answer truth, settle; latest() returns job 1 with AGREED keys. Job 2 on the same target: arm X reveals truth, arm Y reveals bytes32 UNKNOWN (keccak256('ARMS_UNKNOWN')) for every key; settle(job2). Observed: poster balance up by the full 3 fees, arm Y's bond and strikes unchanged, every key of job 2 UNRESOLVED, arm X paid 0, and latest(11155111, 0xBEEF, form) now returns job 2. Expected: latest stays job 1. test/scratch/Proof_LatestOverwrite.t.sol fails with 'a job with no answer on any key replaced the target's latest verdict: 2 != 1'. Older-block variant: after job 1 at atBlock 7_000_000, post(form, 11155111, T, 1, 1e18), answer and settle: latest() returns job 2 with atBlock 1.","severity":"medium","snippet":"        latestJob[j.targetChainId][j.target][j.formId] = jobId;","title":"_finalize writes latestJob unconditionally: one arm answering UNKNOWN on every key, or a job at an older block, replaces the target's latest verdict for free"},{"citation":"resolved","description":"The stake split on a STORED ruling is gated on j.overturned, a per-job flag, not on the challenged key. README documents 'unless the job has already been overturned, when the stake returns', so the rule itself is a design choice, but two consequences are not documented. (1) Order dependence: with key 0 ruled CLAIMED and key 1 ruled STORED, resolve(key1) then resolve(key0) forfeits the wrong challenger's 2 x fee stake, while resolve(key0) then resolve(key1) returns it in full; resolve is permissionless, so the wrong challenger simply waits for the other resolve. (2) After any key of a job is overturned, every remaining AGREED/MAJORITY key can be challenged with junk for only the oracle fee: the stake always comes back, the arms who defended a correct key get no compensation, and each open case keeps openChallenges > 0 so release() of every unslashed arm's tranche (including the honest third arm of a spot check) reverts StillLocked until the court answers or courtDeadline (7 days) passes. A 13-key control map can be locked for a week for 12 x 0.5 imdTEST with no stake at risk. Merged from audit_permissions 59f53ed2 and audit_math 9dd18d21; reproduced with test/scratch/Proof_OverturnedFlag.t.sol. Fix direction: gate the split on the key's own status (still AGREED/MAJORITY) or on the givers not already slashedIn, and burn the stake when no giver remains.","line":815,"path":"src/Arms.sol","reproduction":"Launch parameters (fee 1 ARMT, tranche x10, stake x2), free MockCourt. Post a 4-key job, two arms reveal identical values, settle. honest: challenge(id, 0, keccak256('right'), 0); bogus: challenge(id, 1, keccak256('junk'), 0); each pays a 2 ARMT stake. Court rules case 0 CLAIMED and case 1 STORED. Order A: resolve(id,1,junk) then resolve(id,0,right): bogus loses 2 ARMT. Order B, same state: resolve(id,0,right) then resolve(id,1,junk): bogus gets 2 ARMT back and the arms receive 0. test/scratch/Proof_OverturnedFlag.t.sol asserts order B forfeits the stake and fails with 'STORED-ruled challenger got its stake back because another key was overturned: 2000000000000000000 != 0'.","severity":"low","snippet":"        } else if (r == ICourt.Ruling.STORED && !j.overturned) {","title":"The job-wide overturned flag refunds a challenger the court ruled wrong on a different key, so the STORED outcome depends on resolve order and later challenges are stake-free"}],"hash":"9c8431252f09f64d5b59defcabfb20f5a22c3e17c9254e9bf0e8cbc1308bfd25","nodeId":"74a9c638-c663-410f-b7ca-73e69b6569df","outcome":"completed","summary":"The review is complete and `.imd-findings.json` is written at the repository root.\n\n**What I did.** I read Arms, IMDCourt, ArmsForms, ArmsResults, the token mock and the manifest, ran the four specialist proofs plus two of my own under test/scratch, and confirmed the project's own suite still passes (112 tests). All fourteen specialist findings reproduced. They collapse into five root causes, which I merged, recalibrated and kept. My own pass with the Pashov checklist found nothing beyond them. Bond-versus-locked accounting, escrow conservation, commit and reveal binding, the court's callback checks and the manifest's constructor words all hold.\n\n**Findings kept** (all in src/Arms.sol):\n\n1. **Medium, line 443.** The five-block depth check only covers the local chain, so a remote-chain (4663) job may name an unmined block. Its verdict settles, becomes `latest`, and can never be ruled on by the court. Proof attached.\n2. **Medium, line 884.** A one-wei `bond`, a re-serve, or a fee raise removes an already eligible arm from jobs posted before it, after the draw seed is public. Random assignment becomes free selective participation. Proof attached with three variants.\n3. **Medium, line 796.** A NEITHER ruling resolved before a CLAIMED ruling on the same key leaves the key OVERTURNED with the wrong value. The court-confirmed value is never recorded, yet the reward is paid. Proof attached.\n4. **Medium, line 945.** `_finalize` writes `latestJob` unconditionally. One arm answering UNKNOWN on every key replaces the target's latest verdict with an all-UNRESOLVED job at zero cost, and an older-block job replaces a newer one. This contradicts the README's no-show rule. Proof attached.\n5. **Low, line 815.** The job-wide `overturned` flag refunds a STORED-ruled challenger on another key, so the outcome depends on resolve order and later challenges are stake-free. The README documents the refund rule, so I rated this low. Reproduced in test/scratch/Proof_OverturnedFlag.t.sol.\n\n**Coverage.** All 28 entry points have a row, plus three invariant and manifest rows. Eight rows point at findings; the rest hold with a one-line reason each.\n\n**Static analysis leads.** The slither and aderyn reentrancy, divide-before-multiply and uninitialized-local lines did not reproduce as defects: the only external calls before state writes are to the fixed ARMT token and the trusted intake, and the locals are value types zeroed by the language.","treeHash":null,"usage":{"cachedInputTokens":1094888,"cost":{"source":"runtime","usdMicros":5127848},"inputTokens":290,"model":"claude-fable-5-1","outputTokens":42697,"runtime":"claude","turns":21,"wallClockMs":732980}},{"artifacts":[],"attempt":1,"bundleHash":"c84b4fcbc28426f984c3294368c4234c5a0ad0a0c1e294fb3d757ee4520c6ec4","device":"01695e9524859621","findings":[{"description":"Arms.post checks atBlock against the local head only when targetChainId == block.chainid. For the other supported chain (IMDCourt.supportsChain allows 11155111 and 4663) any atBlock up to MAX_BLOCK is accepted and 3 x feePerArm is escrowed. Nobody can read the target's state at a future block. Arms can still agree on any value and be paid for it. A challenge then asks the oracle about a block it cannot read: that is refused or never answered, the challenger gets the stake back only after courtDeadline (7 days), and the 0.5 imdTEST oracle price is spent. REVIEW.md lists this as open item 3 (remote head not authenticated). It is reported here with a reproduction because no test can assert the current behaviour as correct.","line":443,"path":"src/Arms.sol","proof":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {Test} from \"forge-std/Test.sol\";\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {Arms} from \"src/Arms.sol\";\nimport {IIntake} from \"src/IIntake.sol\";\nimport {IMDCourt} from \"src/IMDCourt.sol\";\nimport {MockToken} from \"src/mocks/MockToken.sol\";\n\ncontract PriceOnly {\n    function priceOf(bytes32, address) external pure returns (uint256) { return 0.5 ether; }\n}\n\n/// Fails today: a job about a block that cannot exist yet on the remote chain 4663 is accepted and escrowed.\ncontract RemoteFutureBlockTest is Test {\n    function test_remoteTargetBlockInTheFutureIsRefused() public {\n        vm.chainId(11155111);\n        vm.roll(12_121_200);\n        address owner = makeAddr(\"owner\");\n        MockToken token = new MockToken(owner);\n        IMDCourt court = new IMDCourt(owner, IIntake(address(new PriceOnly())), IERC20(address(token)),\n            bytes32(\"oracle.request@oracle-1\"), makeAddr(\"signer\"));\n        Arms arms = new Arms(address(token), address(court), 1 ether, 1000 ether, 100_000 ether, 10, 1000, 3000,\n            6 hours, 2 hours, 7 days, 7 days, 14 days);\n        bytes32 formId = arms.registerForm(keccak256(\"form\"), 13, \"ipfs://form\");\n        vm.startPrank(owner);\n        token.approve(address(arms), type(uint256).max);\n        vm.expectRevert(Arms.BadTarget.selector);\n        arms.post(formId, 4663, address(0xBEEF), 9_007_199_254_740_991, 1 ether);\n        vm.stopPrank();\n    }\n}","reproduction":"chainid 11155111, block 12,121,200, Arms with the launch.json parameters and IMDCourt; registerForm(keccak256('form'), 13, 'ipfs://form'); post(formId, 4663, 0xBEEF, 9007199254740991, 1e18). Expected: revert BadTarget (or the job is refused until a trusted remote head exists). Actual: the job is posted and 3e18 ARMT is escrowed. Fix direction: an owner-settable or court-supplied confirmed head per remote chain, or a bound on how far atBlock may lead a remote head the court publishes.","severity":"low","title":"Jobs about another chain accept a target block that cannot exist yet"}],"hash":"9fa3a9931d9e915209bdc5928ca58a67be8ce81c9b52c769b7b725a1f881404e","nodeId":"09b8e464-0386-4568-a4f6-9f6928b43773","outcome":"completed","summary":"I added two test files and one low-severity finding. `forge test` passes: 112 tests, 0 failed, with both the task's seed and the seed pinned in `foundry.toml`.\n\n**Nothing in steps 1–5 of the brief happened in this run.** This assignment could only write under `test/`, and it gave no wallet or signing key. So nothing was deployed to Sepolia, no form was registered, no live check or challenge was run, there are no transaction hashes or oracle timings, and the README is unchanged. Every ruling in these tests comes from a mock Intake and a throwaway test key, not the real IMD oracle.\n\n**`test/IMDCourtInvariant.t.sol`** is the first invariant suite to run Arms against the real `IMDCourt`; the existing one uses `MockCourt`. As on Sepolia, bonds are in one token and the oracle fee in a second. Random sequences post and settle jobs (sometimes with one key wrong on purpose), open challenges, deliver signed oracle answers (codes 0 to 4) and failures, try forged and replayed callbacks, jump time, and resolve, release and cancel. After every step it checks:\n- Arms' token balance equals bonds + escrow + stakes + rewards.\n- Neither the court nor Arms ever holds or leaves approved any of the oracle fee, and the Intake's treasury gets exactly one price per opened case.\n- Forged callbacks, replayed attestations and second callbacks on a closed case are never accepted. A ruling never changes once given, and Arms applies only rulings the court actually gave.\n- No arm has more locked than it has bonded, and bonds add up to the recorded total.\n- Supply only goes down and every token is accounted for. The fee token is never burned.\n\nIt ran 64 runs × 40 calls with 0 handler reverts. A fixed-sequence test confirms the run reaches a settled job, a case, a ruling and a slash, so the checks aren't passing on empty state.\n\n**`test/CourtFailurePaths.t.sol`** adds 14 tests on paths nobody had covered:\n- **All-or-nothing challenges:** a challenge reverts entirely, with no stake taken, if the oracle is no longer sold, the fee token isn't approved, or the price rises above the challenger's maximum.\n- **Unsupported chains:** chains 1, 8453 and 0 are refused by both Arms and the court.\n- **Late rulings:** a ruling that arrives after the 7-day court deadline has already closed the challenge moves nothing. One that arrives after the deadline but before anyone resolves is still applied.\n- **Odd answers:** an answer outside 0–2 closes the case with no ruling, only the deadline ends the challenge, and the same claim can't be asked again. A wrong answer type, a future `issuedAt`, or a panel short of its own quorum is refused.\n- **Two askers:** two Arms contracts on one court asking identical questions can't settle each other's cases. A stranger can't take over Arms' case id.\n- **Exact time edges:** the challenge window and court deadline behave correctly at the boundary second, and a failure callback never shortens the wait.\n- **Fuzzed rulings:** a fuzz test covers every answer code, checking the ruling it produces, slashing, conservation of funds, and that every tranche unlocks afterwards.\n\n**Finding (in `.imd-findings.json`, low):** at `src/Arms.sol:443`, a job about the other supported chain (4663, posted from Sepolia) accepts a target block that can't exist yet (it was tested at 9,007,199,254,740,991) and escrows the poster's fee. A challenge on such a job can't get an answer, so the challenger waits 7 days for their stake and the 0.5 imdTEST oracle price is lost. `REVIEW.md` already lists this as open item 3. The proof test fails on the current code. I found no other defect.\n\nNothing is committed.","treeHash":"b0f994069b473cb11e27a57dbafdf664e654b56b","usage":{"cachedInputTokens":2389572,"cost":{"source":"runtime","usdMicros":2548838},"inputTokens":45,"model":"claude-opus-5-5","outputTokens":45605,"runtime":"claude","turns":25,"wallClockMs":587900}},{"artifacts":[],"attempt":1,"bundleHash":null,"device":"f843b0d093c69ab9","findings":[{"citation":"resolved","description":"Several challenges may be open on one key at once because the case id is keccak(jobId, key, claimedValue), and resolve() is permissionless. The correction branch runs only while kr.status is AGREED or MAJORITY. If a challenge with a wrong claimed value Z is ruled NEITHER and resolved first, the key becomes OVERTURNED. When the challenge with the right value Y is then ruled CLAIMED and resolved, the branch at line 796 is skipped: kr.value stays the old wrong value and kr.status stays OVERTURNED, yet the reward branch at lines 807-814 still pays the Y challenger for a correction that was never written. The README (section on rulings, 'CLAIMED corrects a key') and the Verdict read by latest() therefore disagree with what the oracle attested. Anyone can create this ordering: open a second challenge with any wrong value on the same key for 2 x feePerArm stake (returned on NEITHER) plus the oracle fee, and call resolve on it as soon as its ruling lands. Readers of latest()/verdict() then never see the attested value; the attested answer is lost from chain state permanently because challenge() refuses OVERTURNED keys. Execution-trace class: wrong-state execution across interleaved challenges.","line":796,"path":"src/Arms.sol","proof":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {Test} from \"forge-std/Test.sol\";\nimport {Arms} from \"src/Arms.sol\";\nimport {ICourt} from \"src/ICourt.sol\";\nimport {MockCourt} from \"src/mocks/MockCourt.sol\";\nimport {MockToken} from \"src/mocks/MockToken.sol\";\n\n/// @dev Two challenges on the same AGREED key: a wrong claimed value Z ruled NEITHER, and the right\n/// claimed value Y ruled CLAIMED. When the NEITHER case is resolved first, the later CLAIMED\n/// resolution never writes Y: the key stays OVERTURNED with the old wrong value, although the\n/// oracle attested that Y is correct and the challenger of Y is paid the reward for it.\ncontract OverturnedThenClaimedTest is Test {\n    uint256 constant FEE = 1 ether;\n    uint8 constant KEYS = 2;\n\n    MockToken token;\n    MockCourt court;\n    Arms arms;\n    address owner = makeAddr(\"owner\");\n    address poster = makeAddr(\"poster\");\n    address honest = makeAddr(\"honest\");\n    address griefer = makeAddr(\"griefer\");\n    address[] armSet;\n    bytes32 formId;\n\n    function setUp() public {\n        vm.warp(1_800_000_000);\n        vm.roll(1000);\n        token = new MockToken(owner);\n        court = new MockCourt(address(token), 0.5 ether);\n        arms = new Arms(\n            address(token), address(court), FEE, 1000 ether, 100_000 ether, 10, 1000, 3000, 6 hours, 2 hours,\n            7 days, 7 days, 14 days\n        );\n        formId = arms.registerForm(keccak256(\"form\"), KEYS, \"ipfs://form\");\n        for (uint256 i; i < 4; ++i) {\n            address a = makeAddr(string.concat(\"arm\", vm.toString(i)));\n            _fund(a);\n            vm.startPrank(a);\n            arms.bond(500 ether);\n            arms.serve(formId, FEE);\n            vm.stopPrank();\n            armSet.push(a);\n        }\n        _fund(poster);\n        _fund(honest);\n        _fund(griefer);\n    }\n\n    function _fund(address who) internal {\n        vm.prank(owner);\n        token.transfer(who, 1000 ether);\n        vm.prank(who);\n        token.approve(address(arms), type(uint256).max);\n    }\n\n    function _job(uint256 id) internal view returns (Arms.Job memory j) {\n        (, bytes memory d) = address(arms).staticcall(abi.encodeWithSelector(arms.jobs.selector, id));\n        j = abi.decode(d, (Arms.Job));\n    }\n\n    function _answer(uint256 id, address a, bytes32[] memory v, bool reveal) internal {\n        bytes32 salt = keccak256(abi.encode(\"salt\", a));\n        vm.prank(a);\n        if (!reveal) arms.commit(id, a, keccak256(abi.encode(id, a, v, salt)));\n        else arms.reveal(id, a, v, salt, \"ipfs://evidence\");\n    }\n\n    function test_claimedAfterNeitherOnSameKeyNeverCorrectsTheKey() public {\n        vm.roll(vm.getBlockNumber() + 1);\n        vm.prank(poster);\n        uint256 id = arms.post(formId, 11155111, address(0xBEEF), 5_000_000, FEE);\n        for (uint256 i; i < 30 && _job(id).phase != Arms.Phase.COMMIT; ++i) {\n            vm.roll(vm.getBlockNumber() + 2);\n            arms.draw(id);\n        }\n        assertEq(uint8(_job(id).phase), uint8(Arms.Phase.COMMIT), \"not filled\");\n\n        bytes32 wrong = keccak256(\"X-wrong\");\n        bytes32[] memory v = new bytes32[](KEYS);\n        v[0] = wrong;\n        v[1] = keccak256(\"k1\");\n        address[] memory drawn = arms.armsOf(id);\n        for (uint256 i; i < drawn.length; ++i) _answer(id, drawn[i], v, false);\n        for (uint256 i; i < drawn.length; ++i) _answer(id, drawn[i], v, true);\n        arms.settle(id);\n        (bytes32 stored, Arms.Status st) = arms.results(id, 0);\n        assertEq(stored, wrong);\n        assertTrue(st == Arms.Status.AGREED || st == Arms.Status.MAJORITY);\n\n        bytes32 right = keccak256(\"Y-right\");\n        bytes32 other = keccak256(\"Z-also-wrong\");\n        vm.prank(honest);\n        bytes32 caseRight = arms.challenge(id, 0, right, 0.5 ether);\n        vm.prank(griefer);\n        bytes32 caseOther = arms.challenge(id, 0, other, 0.5 ether);\n\n        // The oracle rules both cases truthfully: Z is wrong (NEITHER), Y is right (CLAIMED).\n        court.rule(address(arms), caseOther, ICourt.Ruling.NEITHER);\n        court.rule(address(arms), caseRight, ICourt.Ruling.CLAIMED);\n\n        // The NEITHER case is resolved first (resolve is permissionless; the griefer calls it).\n        arms.resolve(id, 0, other);\n        (, st) = arms.results(id, 0);\n        assertEq(uint8(st), uint8(Arms.Status.OVERTURNED));\n\n        // Then the CLAIMED case: the honest challenger is paid the reward for proving Y ...\n        uint256 before = token.balanceOf(honest);\n        arms.resolve(id, 0, right);\n        assertGt(token.balanceOf(honest), before + 2 ether, \"reward paid for Y\");\n\n        // ... but the verdict never records Y. README: \"CLAIMED corrects a key\".\n        (bytes32 value, Arms.Status status) = arms.results(id, 0);\n        assertEq(uint8(status), uint8(Arms.Status.CORRECTED), \"key should be CORRECTED after a CLAIMED ruling\");\n        assertEq(value, right, \"key should carry the attested value\");\n    }\n}","reproduction":"Job with 2 arms, both reveal key 0 = X (wrong); settle -> results[job][0] = (X, AGREED). challenger A: challenge(job, 0, Y, fee) (Y right). griefer B: challenge(job, 0, Z, fee) (Z wrong). Court rules B's case NEITHER and A's case CLAIMED. resolve(job, 0, Z) -> status OVERTURNED, arms slashed, reward accrued. resolve(job, 0, Y) -> A receives stake + reward, but results[job][0] is still (X, OVERTURNED). Expected after a CLAIMED ruling: (Y, CORRECTED). Actual: (X, OVERTURNED). test/scratch/OverturnedThenClaimed.t.sol fails with 'key should be CORRECTED after a CLAIMED ruling: 5 != 4'.","severity":"medium","snippet":"            if (kr.status == Status.AGREED || kr.status == Status.MAJORITY) {\n                bytes32 stored = kr.value;\n                if (r == ICourt.Ruling.CLAIMED) {\n                    kr.status = Status.CORRECTED;\n                    kr.value = claimedValue;\n                } else {\n                    kr.status = Status.OVERTURNED;\n                }","title":"resolve: a CLAIMED ruling never corrects a key that an earlier NEITHER ruling on the same key already marked OVERTURNED"},{"citation":"resolved","description":"The five-block-depth guard at line 443 runs only when targetChainId == block.chainid. For the other chain the court supports (4663 from a Sepolia deployment, or 11155111 from a 4663 deployment) the only bound is atBlock <= MAX_BLOCK (9_007_199_254_740_991). A poster can therefore open a job on chain 4663 at a block that will not exist for decades; arms answer, settle() records the values as AGREED/MAJORITY and writes latestJob[4663][target][form]. A challenge builds an absolute window {fromBlock: atBlock, toBlock: atBlock} on chain 4663 which the oracle cannot confirm (the oracle requires the closing block to be at least five deep), so the request is refused or ends without a result, IMDCourt.onOracleFailure leaves the ruling NONE, and resolve() after courtDeadline returns the stake with no slash. The verdict stands, unchallengeable, and the challenger's oracle fee is spent. The protocol's guarantee that every AGREED/MAJORITY key can be corrected and its arms slashed does not hold for remote-chain jobs. REVIEW.md 'Still open' item 3 acknowledges a remote head cannot be authenticated locally; this entry gives the concrete state and the cost (3 x feePerArm minus the arms' own pay, no slash risk) so the author can decide on a bound (for example refusing remote targets in v1, or requiring atBlock below a poster-independent ceiling).","line":443,"path":"src/Arms.sol","proof":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {Test} from \"forge-std/Test.sol\";\nimport {Arms} from \"src/Arms.sol\";\nimport {MockCourt} from \"src/mocks/MockCourt.sol\";\nimport {MockToken} from \"src/mocks/MockToken.sol\";\n\n/// @dev A job about a target on the other supported chain (4663) may name any `atBlock` up to\n/// MAX_BLOCK, including one far beyond that chain's head. The five-block-depth guard in `post`\n/// applies only when `targetChainId == block.chainid`. Such a job settles and becomes the\n/// target's `latest` verdict, and a court question about a block that does not exist cannot be\n/// answered, so the verdict can never be corrected or slashed.\ncontract RemoteFutureBlockTest is Test {\n    uint256 constant FEE = 1 ether;\n\n    MockToken token;\n    MockCourt court;\n    Arms arms;\n    address owner = makeAddr(\"owner\");\n    address poster = makeAddr(\"poster\");\n    bytes32 formId;\n\n    function setUp() public {\n        vm.chainId(11155111);\n        vm.warp(1_800_000_000);\n        vm.roll(1000);\n        token = new MockToken(owner);\n        court = new MockCourt(address(token), 0.5 ether);\n        arms = new Arms(\n            address(token), address(court), FEE, 1000 ether, 100_000 ether, 10, 1000, 3000, 6 hours, 2 hours,\n            7 days, 7 days, 14 days\n        );\n        formId = arms.registerForm(keccak256(\"form\"), 1, \"ipfs://form\");\n        vm.prank(owner);\n        token.transfer(poster, 100 ether);\n        vm.prank(poster);\n        token.approve(address(arms), type(uint256).max);\n    }\n\n    function test_postRefusesARemoteBlockFarBeyondAnyHead() public {\n        // On the local chain the same height is refused as not yet five blocks deep.\n        vm.prank(poster);\n        vm.expectRevert(Arms.BadTarget.selector);\n        arms.post(formId, 11155111, address(0xBEEF), 9_007_199_254_740_991, FEE);\n\n        // On the remote chain 4663 it is accepted: no bound ties `atBlock` to any head.\n        vm.prank(poster);\n        vm.expectRevert(Arms.BadTarget.selector);\n        arms.post(formId, 4663, address(0xBEEF), 9_007_199_254_740_991, FEE);\n    }\n}","reproduction":"Sepolia Arms (block.chainid 11155111). poster: post(formId, 4663, 0xBEEF, 9007199254740991, 1e18). Expected: BadTarget, as the same height is refused for chain 11155111. Actual: job opens; after draw/commit/reveal/settle the job is latest(4663, 0xBEEF, formId) with whatever the two arms agreed on. challenge(job, k, v, fee) then opens an IMDCourt case whose question window names a non-existent block; no ruling can arrive, resolve() after 7 days returns the stake. test/scratch/RemoteFutureBlock.t.sol fails with 'next call did not revert as expected' on the chain-4663 post.","severity":"medium","snippet":"        if (targetChainId == block.chainid && atBlock + MIN_BLOCK_DEPTH > postedBlock) revert BadTarget();","title":"post: a job about a target on the other supported chain may name a block far beyond that chain's head, producing a verdict the court can never rule on"}],"hash":"b05ab5f6779ba87e0feb77ab143be843c07ade679ac854cac5f8dba68fa9ed80","nodeId":"0e2866f7-1f77-454c-9a0e-0cff9b5704ef","outcome":"completed","summary":"The review is complete. The findings file is written and validated, and nothing outside `test/scratch/` and `.imd-findings.json` was changed.\n\n**Outcome.** Two substantiated, medium-severity defects in the control flow, each with a self-contained Foundry proof that fails on the current tree. All 28 listed entry points have a coverage row, plus three invariant and periphery rows. The existing suite was green as a baseline (95 passed).\n\n**Finding 1, `src/Arms.sol:796`.** A CLAIMED ruling does not correct a key once an earlier NEITHER ruling on the same key has marked it OVERTURNED. Case ids are per claimed value, so a second challenge with any wrong value can be opened and resolved first by anyone. The later CLAIMED resolution skips the correction branch, pays the reward, and leaves the stale wrong value on chain forever, since OVERTURNED keys cannot be challenged again. The proof fails with status 5 instead of 4.\n\n**Finding 2, `src/Arms.sol:443`.** The five-block-depth guard applies only to local-chain targets. A job about a chain-4663 target may name a block decades in the future, settle, and become that target's latest verdict. The court's question then names a block the oracle cannot confirm, so the ruling stays NONE, the stake returns, and the verdict is permanently unslashable. REVIEW.md lists this as open, so I gave the concrete state and cost for the judge to merge.\n\n**Covered and holding.** The job state machine (post, draw, commit, reveal, timeout, settle, cancel, release), bond accounting, challenge fee and stake flow through IMDCourt into the Intake, both oracle callbacks, the registry's onlyArms writes, and the question/URI/string encoders. Documented v1 choices (full stake back on no ruling, job-wide `overturned`, reward only on the first slash) were not reported.\n\n**Not reached.** Live Sepolia reads, the manifest's `$owner` resolution against the README's static owner, and the form file encoding are outside my area and were not checked.","treeHash":null,"usage":{"cachedInputTokens":1182568,"cost":{"source":"runtime","usdMicros":6230202},"inputTokens":290,"model":"claude-fable-5-1","outputTokens":51610,"runtime":"claude","turns":22,"wallClockMs":929983}},{"artifacts":[],"attempt":1,"bundleHash":null,"device":"74cf0246a1dda0ce","findings":[{"citation":"resolved","description":"README (Forms and draws) states that exit and stop are recorded prospectively so an arm \"cannot opt out of an older job after its seed is visible\", and the comment at src/Arms.sol:253-255 says the same. Only stopServing/requestExit got that treatment. Two other routes to the same effect are retroactive: (a) Arms.serve (src/Arms.sol:420) and Arms.bond (src/Arms.sol:346) write lastStateChange = current block, and _eligible refuses any arm whose lastStateChange >= j.postedBlock, so a re-serve at the unchanged fee or a 1 wei top-up by an already eligible arm removes it from every job posted at or before that block; (b) ArmsForms.candidate (src/ArmsForms.sol:82) applies the current minFeeOf[id][arm] with no job cutoff, so raising the advertised fee after a job is posted also removes the arm from that job. The draw sequence is public once the seed block is mined (blockhash(seedBlock), jobId), and draw() cannot run until the block after it, so every arm has a full block to compute whether it is about to be drawn and dodge. Economic consequence: random assignment, the mechanism the design relies on before any challenge, becomes selective participation at zero cost. A sybil operator can refuse every job where it would be paired with an honest arm (or face a tie break, or a 3-arm spot check, all decided by the same public seed) and answer only when its own arms are drawn together, where any agreed value is paid in full and is only caught if someone pays a stake and court fee to challenge inside 7 days. Honest arms are left with the hard and risky draws. The protocol's own contrast path proves the intent: stopServing on the same arm in the same block does not remove it (test_contrast_stopServingIsProspective passes).","line":884,"path":"src/Arms.sol","proof":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.26;\n\nimport {Test} from \"forge-std/Test.sol\";\nimport {Arms} from \"src/Arms.sol\";\nimport {MockCourt} from \"src/mocks/MockCourt.sol\";\nimport {MockToken} from \"src/mocks/MockToken.sol\";\n\n/// @title Proof: an arm opts out of an already posted job after its draw seed is visible\n/// @notice README (Forms and draws): exit and stop \"cannot opt out of an older job after its seed is\n/// visible\". `serve` and `bond` set `lastStateChange` to the current block, which `_eligible` compares\n/// against the job's `postedBlock` (src/Arms.sol:884), and `ArmsForms.candidate` applies the current\n/// `minFeeOf` with no job cutoff (src/ArmsForms.sol:82). All three tests fail on the current code and\n/// pass once an already eligible arm's own re-serve, fee raise or top-up no longer applies to jobs\n/// posted before it.\ncontract ProofOptOutTest is Test {\n    uint256 constant FEE = 1 ether;\n    uint8 constant KEYS = 4;\n    uint256 constant CHAIN = 11155111;\n\n    MockToken token;\n    MockCourt court;\n    Arms arms;\n    address tokenOwner = makeAddr(\"tokenOwner\");\n    address poster = makeAddr(\"poster\");\n    address target = address(0xBEEF);\n    bytes32 formId;\n\n    function setUp() public {\n        vm.warp(1_800_000_000);\n        vm.roll(1000);\n        token = new MockToken(tokenOwner);\n        court = new MockCourt(address(0), 0);\n        arms = new Arms(\n            address(token), address(court), FEE, 1000 ether, 100_000 ether, 10, 1000, 3000, 6 hours, 2 hours, 7 days,\n            7 days, 14 days\n        );\n        formId = arms.registerForm(keccak256(\"form\"), KEYS, \"ipfs://bafyform/form.md\");\n        for (uint256 i; i < 6; ++i) {\n            address a = makeAddr(string.concat(\"arm\", vm.toString(i)));\n            _fund(a, 1000 ether);\n            vm.startPrank(a);\n            arms.bond(500 ether);\n            arms.serve(formId, FEE);\n            vm.stopPrank();\n        }\n        _fund(poster, 1000 ether);\n    }\n\n    function _fund(address who, uint256 amount) internal {\n        vm.prank(tokenOwner);\n        token.transfer(who, amount);\n        vm.prank(who);\n        token.approve(address(arms), type(uint256).max);\n    }\n\n    function _job(uint256 id) internal view returns (Arms.Job memory j) {\n        (, bytes memory d) = address(arms).staticcall(abi.encodeWithSelector(arms.jobs.selector, id));\n        j = abi.decode(d, (Arms.Job));\n    }\n\n    /// @dev Posts a job and mines its seed block, so the first draw pick is public knowledge.\n    function _postAndRevealSeed() internal returns (uint256 id, address firstPick) {\n        vm.roll(vm.getBlockNumber() + 1);\n        vm.prank(poster);\n        id = arms.post(formId, CHAIN, target, 1, FEE);\n        Arms.Job memory j = _job(id);\n        vm.roll(j.seedBlock + 1);\n        uint256 seed = uint256(keccak256(abi.encode(blockhash(j.seedBlock), id, uint256(0))));\n        uint256 idx = uint256(keccak256(abi.encode(seed, uint256(0)))) % j.serverCount;\n        firstPick = arms.formRegistry().serversOf(formId)[idx];\n        assertTrue(arms.isActive(firstPick));\n    }\n\n    function _isDrawn(uint256 id, address a) internal view returns (bool) {\n        address[] memory drawn = arms.armsOf(id);\n        for (uint256 i; i < drawn.length; ++i) {\n            if (drawn[i] == a) return true;\n        }\n        return false;\n    }\n\n    /// A re-`serve` at the unchanged fee, sent in the block after the seed block, removes the arm from\n    /// the already posted job at no cost.\n    function test_reServeAtSameFeeOptsOutOfOlderJob() public {\n        (uint256 id, address dodger) = _postAndRevealSeed();\n        vm.prank(dodger);\n        arms.serve(formId, FEE);\n        arms.draw(id);\n        assertTrue(_isDrawn(id, dodger), \"arm opted out of an older job after its seed was visible\");\n    }\n\n    /// A one wei top-up does the same.\n    function test_oneWeiBondOptsOutOfOlderJob() public {\n        (uint256 id, address dodger) = _postAndRevealSeed();\n        vm.prank(dodger);\n        arms.bond(1);\n        arms.draw(id);\n        assertTrue(_isDrawn(id, dodger), \"1 wei bond opted the arm out of an older job\");\n    }\n\n    /// The registry itself applies a later fee raise to a job posted before it.\n    function test_feeRaiseAppliesToOlderJobInRegistry() public {\n        (uint256 id, address dodger) = _postAndRevealSeed();\n        vm.prank(dodger);\n        arms.serve(formId, FEE + 1);\n        address[] memory list = arms.formRegistry().serversOf(formId);\n        uint256 idx;\n        for (uint256 i; i < list.length; ++i) {\n            if (list[i] == dodger) idx = i;\n        }\n        assertEq(arms.formRegistry().candidate(formId, idx, id, FEE), dodger, \"fee raise applied to an older job\");\n    }\n}","reproduction":"Sepolia parameters, six arms bonded with 500 ARMT and serving one form at fee 1 ARMT. (1) poster calls post(formId, 11155111, target, 1, 1e18) at block P; seedBlock = P+1. (2) Mine block P+1; compute seed = keccak256(abi.encode(blockhash(P+1), jobId, 0)), idx = keccak256(abi.encode(seed, 0)) % serverCount, dodger = formRegistry.serversOf(formId)[idx]. (3) In block P+2, before any draw, dodger calls arms.serve(formId, 1e18) (unchanged fee) or arms.bond(1). (4) Anyone calls draw(jobId). Expected (README): dodger is one of the drawn arms. Actual: lastStateChange[dodger] = P+2 >= postedBlock = P, _eligible returns false and the dodger is skipped; armsOf(jobId) does not contain it. Variant: dodger calls serve(formId, 1e18 + 1); formRegistry.candidate(formId, idx, jobId, 1e18) now returns address(0) for a job posted before the fee change. test/scratch/ProofOptOut.t.sol: all three tests fail on the current code (serve-same-fee, 1 wei bond, fee raise) and pass once an already eligible arm's own re-serve/top-up/fee raise applies only to jobs posted after it (e.g. record the cutoff job id the way stop() does, and only bump lastStateChange when the change makes the arm newly eligible).","severity":"medium","snippet":"        if (a == address(0) || a == j.poster || wasDrawn[jobId][a] || lastStateChange[a] >= j.postedBlock) {","title":"An eligible arm opts out of an already posted job after its draw seed is visible, for free, through serve or a 1 wei bond"},{"citation":"resolved","description":"caseId = keccak256(jobId, key, claimedValue), so several challengers can open cases on the same key with different claimed values. resolve() only rewrites the key when its status is still AGREED or MAJORITY. If a wrong claim's case (ruled NEITHER) is resolved before the right claim's case (ruled CLAIMED), the first resolve sets OVERTURNED and the second one finds the status no longer AGREED/MAJORITY, so it skips the correction: results[jobId][key] keeps the arms' wrong value with status OVERTURNED, even though the court has ruled that the claimed value is correct. The reward is still paid to the CLAIMED challenger, so the economics are right but the verdict exposed by latest()/verdict() is not: the same two rulings in the other order give CORRECTED with the right value. Anyone can call resolve, so an outsider (or the wrong-claim challenger, who loses nothing on NEITHER) can choose this order. README: \"CLAIMED corrects a key\".","line":796,"path":"src/Arms.sol","reproduction":"Settled two-arm job agreeing on W (wrong) for key 0. challenger A: challenge(job, 0, R, fee) with R the true value; challenger B: challenge(job, 0, Z, fee) with Z junk. Court rules B's case NEITHER and A's case CLAIMED. Call resolve(job, 0, Z) then resolve(job, 0, R). Expected: results(job, 0) = (R, CORRECTED). Actual: results(job, 0) = (W, OVERTURNED); only the order resolve(R) then resolve(Z) yields (R, CORRECTED). test/scratch/EconReview.t.sol::test_finding2_neitherThenClaimedLeavesStoredValue fails on the current code with \"CLAIMED ruling did not correct the key: 5 != 4\".","severity":"low","snippet":"            if (kr.status == Status.AGREED || kr.status == Status.MAJORITY) {\n                bytes32 stored = kr.value;\n                if (r == ICourt.Ruling.CLAIMED) {\n                    kr.status = Status.CORRECTED;\n                    kr.value = claimedValue;\n                } else {\n                    kr.status = Status.OVERTURNED;\n                }\n                j.overturned = true;\n                _slash(jobId, j, key, stored);\n            }","title":"Two challenges on one key: a NEITHER ruling resolved first leaves a later CLAIMED ruling unable to correct the key, so the court-confirmed value is never stored"},{"citation":"resolved","description":"The five-block depth check applies only when targetChainId == block.chainid. For the other supported chain (4663 from Sepolia) any atBlock up to MAX_BLOCK = 9_007_199_254_740_991 is accepted. The arms are paid for whatever they agree on and _finalize writes latestJob for (4663, target, form). A challenge builds the oracle question with fromBlock = toBlock = atBlock (src/IMDCourt.sol:269-270); the oracle-consumer reference says an absolute window must be at least five blocks deep when the plane reads the ask, otherwise the body is refused with status 1, so IMDCourt.onOracleFailure closes the case with ruling NONE and Arms.resolve returns the challenger's full stake after courtDeadline while the planted verdict stands. Economic effect: a poster working with two colluding arms can, for 2 fees minus burn, publish an unchallengeable verdict as the latest for any 4663 contract (for example \"no mint path\" for a token), and the challenger who tries loses the 0.5 imdTEST court fee. README already asks posters to verify other-chain heads, but here the poster is the attacker and the victim is any reader of latest() that trusts a verdict inside the challenge-window guarantee.","line":443,"path":"src/Arms.sol","reproduction":"post(formId, 4663, target, 9_007_199_254_740_991, 1e18) succeeds on a Sepolia deployment at any block. Fill, have both arms agree on any values, settle. latest(4663, target, formId) now returns that job with AGREED keys. challenge(job, k, rightValue, 0.5e18) opens a case whose question window is block 9007199254740991 on chain 4663; the plane refuses it (window not five deep), ruling stays NONE, resolve after 7 days returns the stake, release unlocks the arms. Expected: post refuses a block the court cannot ask about, or a verdict whose challenge the court cannot carry is not recorded as latest. Actual: test/scratch/EconReview.t.sol::test_finding3_crossChainFutureBlockBecomesLatest fails with \"a verdict about an unmined block became the target's latest: 1 != 0\".","severity":"low","snippet":"        if (targetChainId == block.chainid && atBlock + MIN_BLOCK_DEPTH > postedBlock) revert BadTarget();","title":"A job about another chain may name a block that does not exist yet (up to 2^53-1); its verdict settles, becomes the target's latest, and cannot be challenged because the oracle refuses the window"},{"citation":"resolved","description":"README: a job closed by a no-show \"is not recorded as the target's latest verdict ... one silent arm cannot erase it\", and _closeNoShow was changed for that reason. _finalize has no such guard: it writes latestJob whenever a job settles normally, including when every key is UNRESOLVED. On a two-arm job, an arm that reveals UNKNOWN for all keys makes every key UNRESOLVED (UNKNOWN vs value is a single vote, no tie break), nobody is paid, nobody is struck, the escrow is refunded in full, and the job still becomes latest(). The previous job's real answers disappear from latest() and from the latestJob index. An operator with one sybil arm that is drawn for a job about a target (or a poster who cooperates with it, paying only gas because the escrow comes back) erases the published verdict; the honest counterpart's work is unpaid. The same end state is reached by three distinct answers on a spot-check job or by a tie break that cannot be filled within fillDeadline.","line":945,"path":"src/Arms.sol","reproduction":"Job 1 on (11155111, target, form): both arms answer truth, settle; latest() returns job 1 with AGREED keys. Job 2 on the same target: arm X reveals truth, arm Y reveals bytes32 UNKNOWN for every key; settle(job2). Observed: poster balance back up by the full 3 fees, arms(Y).bond unchanged, every key of job 2 UNRESOLVED, and latest(11155111, target, form) now returns job 2. Expected: a job that settled with no answer on any key is not recorded as latest (as _closeNoShow already does). test/scratch/EconReview2.t.sol::test_finding4_allUnknownArmErasesLatestVerdict fails with \"one abstaining arm replaced the target's latest verdict with no answers: 2 != 1\".","severity":"low","snippet":"        latestJob[j.targetChainId][j.target][j.formId] = jobId;","title":"One arm answering UNKNOWN on every key replaces the target's latest verdict with an all-UNRESOLVED job at zero cost, which the README says a single silent arm must not be able to do"}],"hash":"c32c3184c8ab89f7d158ab59f2abb05bf312d5a1f77368d1708b8e602b262cab","nodeId":"4066b314-49ac-471d-81e2-0000684833f0","outcome":"completed","summary":"Review complete. `.imd-findings.json` holds 4 substantiated findings and a coverage row for all 28 entry points plus 3 invariants. No repository files were changed; the only new files are under `test/scratch/`, which is disposable.\n\n**Findings** (each reproduced with a failing Foundry test on the current code; the existing 96-test suite passes):\n\n1. **Medium, `src/Arms.sol:884`.** An eligible arm can opt out of an already posted job after its draw seed is public, at zero cost. `serve` at the unchanged fee or `bond(1)` sets `lastStateChange` to the current block, which `_eligible` compares against the job's posting block, and the registry's `candidate` applies a raised `minFeeOf` with no job cutoff. The README promises the opposite for exit and stop, and `stopServing` on the same arm in the same block does keep the arm drawn. Economic effect: random assignment degrades into selective participation, so a sybil operator can refuse every pairing with an honest arm, every tie break and every spot check, and answer only when its own arms are drawn together. Proof attached as `test/scratch/ProofOptOut.t.sol`, three tests, all failing now.\n2. **Low, `src/Arms.sol:796`.** Two challenges on one key resolved in the order NEITHER then CLAIMED leave the key OVERTURNED with the arms' wrong value instead of CORRECTED with the court-confirmed value. Reward and stakes are still right; the published verdict is not, and anyone can pick the order.\n3. **Low, `src/Arms.sol:443`.** A job about chain 4663 may name any block up to 2^53-1, including one that does not exist. It settles, becomes the target's latest verdict, and a challenge is refused by the oracle window rule, so the stake comes back and the planted verdict stands.\n4. **Low, `src/Arms.sol:945`.** One arm revealing UNKNOWN on every key makes a two-arm job all-UNRESOLVED with a full escrow refund and no bond loss, yet `_finalize` still records it as the target's latest verdict. The README's \"one silent arm cannot erase it\" guarantee holds only on the no-show path.\n\n**Coverage.** Bond, serve, draw and the registry's serve carry finding 1; post carries finding 3; resolve carries finding 2; settle carries finding 4. The remaining 21 entry points hold, including every IMDCourt function, with the reason on each row. I traced the token conservation sum, bond-versus-locked, one-tranche-per-arm-per-job, and that collusion among arms, poster and challenger is not profitable at the Sepolia parameters, and recorded those as invariant rows.\n\n**Not reached.** Nothing in the three guides was skipped for Arms, ArmsForms, ArmsResults and IMDCourt. Live Sepolia behaviour of the oracle refusal in finding 3 rests on the oracle-consumer reference's window rule rather than a paid request, which this review could not send.","treeHash":null,"usage":{"cachedInputTokens":1634712,"cost":{"source":"runtime","usdMicros":6760961},"inputTokens":418,"model":"claude-fable-5-1","outputTokens":61949,"runtime":"claude","turns":23,"wallClockMs":1039998}}],"verification":[{"checks":[{"durationMs":64675,"exitCode":0,"name":"build","output":"Compiling 71 files with Solc 0.8.26\nSolc 0.8.26 finished in 64.56s\nCompiler run successful!\n","passed":true},{"durationMs":1643,"exitCode":0,"name":"test","output":"No files changed, compilation skipped\n\nRan 4 tests for test/OracleConformance.t.sol:OracleConsumerConformanceTest\n[PASS] test_acceptsAFreshSignatureFromTheVectorKey() (gas: 1961084)\n[PASS] test_callbackSelectorIsCanonical() (gas: 3925)\n[PASS] test_digestMatchesTheProtocol() (gas: 13799)\n[PASS] test_questionHashMatchesTheProtocolVector() (gas: 41781)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 3.85ms (3.15ms CPU time)\n\nRan 4 tests for test/RevisionRegressions.t.sol:ExitCancelOptOutTest\n[PASS] test_checkpointsWrittenWhileExitingRecordZero() (gas: 1060494)\n[PASS] test_everyExitIntervalStaysClosedAcrossCycles() (gas: 2202971)\n[PASS] test_exitThenOneWeiBondDoesNotOptOutOfAnOlderJob() (gas: 996727)\n[PASS] test_jobPostedDuringExitStaysClosedAfterRejoin() (gas: 1291137)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 9.72ms (4.59ms CPU time)\n\nRan 3 tests for test/RevisionRegressions.t.sol:LatestVerdictTest\n[PASS] test_allUnknownJobDoesNotReplaceTheLatestVerdict() (gas: 3916711)\n[PASS] test_olderBlockDoesNotReplaceTheLatestVerdict() (gas: 7887109)\n[PASS] test_partlyAnsweredJobIsTheLatest() (gas: 3886379)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 15.14ms (12.82ms CPU time)\n\nRan 2 tests for test/RevisionRegressions.t.sol:ClaimedAfterNeitherTest\n[PASS] test_claimedAfterNeitherOnTheSameKeyCorrectsIt() (gas: 4032017)\n[PASS] test_claimedThenNeitherLeavesTheCorrection() (gas: 3637677)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 16.24ms (10.27ms CPU time)\n\nRan 3 tests for test/RevisionRegressions.t.sol:StoredStakeTest\n[PASS] test_releaseAfterStoredRulingOnAnOverturnedJob() (gas: 3772407)\n[PASS] test_storedRulingForfeitsTheStakeInEitherResolveOrder() (gas: 7797716)\n[PASS] test_storedRulingPaysTheGivers() (gas: 2782696)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 24.78ms (11.72ms CPU time)\n\nRan 3 tests for test/LaunchAdaptation.t.sol:TokenLaunchTest\n[PASS] testFuzz_transferAndBurnConserveSupply(uint96,uint96) (runs: 256, μ: 149442, ~: 150540)\nLogs:\n  Bound result 2559\n  Bound result 1904\n\n[PASS] test_noBurnFromEvenWithAllowance() (gas: 91891)\n[PASS] test_onlyConstructorMintsAndFactoryReceivesNothing() (gas: 98093)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 56.90ms (56.70ms CPU time)\n\nRan 3 tests for test/RevisionRegressions.t.sol:RemoteHeadTest\n[PASS] testFuzz_remoteBoundary(uint64,uint64) (runs: 256, μ: 302292, ~: 428601)\nLogs:\n  Bound result 4503694771006\n  Bound result 2046\n\n[PASS] test_realCourtHeadIsOwnerPublishedForwardOnlyAndRemoteOnly() (gas: 11914001)\n[PASS] test_remotePostIsBoundedByTheCourtsConfirmedHead() (gas: 997448)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 83.29ms (15.48ms CPU time)\n\nRan 2 tests for test/Deploy.t.sol:DeployTest\n[PASS] test_deployRejectsAnotherChain() (gas: 12705759)\n[PASS] test_deploySepoliaConfig() (gas: 65589052)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 98.95ms (98.93ms CPU time)\n\nRan 4 tests for test/Compatibility.t.sol:CompatibilityTest\n[PASS] testFuzz_domainDigestAndIntrospectionMatch(bytes32,uint64) (runs: 256, μ: 1845464, ~: 1845464)\n[PASS] testFuzz_stringsMatchProtectedDependency(uint256,address) (runs: 256, μ: 67742, ~: 61082)\n[PASS] test_decimalBoundariesAndHexPadding() (gas: 4642240)\n[PASS] test_hexOverflowKeepsOriginalError() (gas: 7214)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 116.78ms (176.21ms CPU time)\n\nRan 3 tests for test/LaunchAdaptation.t.sol:ConfirmedBlockTest\n[PASS] testFuzz_confirmationBoundary(uint64,uint64) (runs: 256, μ: 220082, ~: 350344)\nLogs:\n  Bound result 9\n  Bound result 30\n\n[PASS] test_arbitrumUsesItsOwnHeightForConfirmation() (gas: 8506248)\n[PASS] test_futureAndUnconfirmedLocalBlocksFailBeforeEscrowMoves() (gas: 586718)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 196.60ms (191.90ms CPU time)\n\nRan 6 tests for test/RevisionRegressions.t.sol:DrawOptOutTest\n[PASS] test_feeRaiseDoesNotApplyToAnOlderJob() (gas: 1318254)\n[PASS] test_lateServeFeeCutOrReServeDoesNotOptIn() (gas: 2592359)\n[PASS] test_newlyActiveBondStillInvalidatesOlderJobs() (gas: 437356)\n[PASS] test_reServeDoesNotOptOutOfAnOlderJob() (gas: 859894)\n[PASS] test_topUpAfterPostDoesNotOptIn() (gas: 2145233)\n[PASS] test_topUpDoesNotOptOutOfAnOlderJob() (gas: 876668)\nSuite result: ok. 6 passed; 0 failed; 0 skipped; finished in 196.72ms (4.17ms CPU time)\n\nRan 28 tests for test/AuditRegressions.t.sol:AuditRegressionsTest\n[PASS] testFuzz_audit6_compensationConservesFundsAndOnlyDebitsNoShows(bool,uint64) (runs: 256, μ: 2225873, ~: 2305518)\nLogs:\n  Bound result 4276\n\n[PASS] testFuzz_audit6_tieNoShowClosesWithoutReplacement(bool) (runs: 256, μ: 2562161, ~: 2517044)\n[PASS] test_audit12_arbitrumBlockModeComesFromChainId() (gas: 11333276)\n[PASS] test_audit13_arbitrumExpiredSeedIsRefusedToo() (gas: 10989079)\n[PASS] test_audit13_drawDoesNotDependOnTheBlockItIsCalledIn() (gas: 3869059)\n[PASS] test_audit13_expiredSeedJobIsRefundedByCancelAndAReposterGetsANewSeed() (gas: 1721851)\n[PASS] test_audit13_expiredTieSeedIsNotRedrawnAndTheDisputedKeySettlesUnresolved() (gas: 2397118)\n[PASS] test_audit13_replacementDrawHasOneSeedToo() (gas: 1360637)\n[PASS] test_audit14_noShowCloseDoesNotReplaceTheLatestVerdict() (gas: 8313823)\n[PASS] test_audit1_flatConstructorConstantsAndDerivedMinBond() (gas: 8621926)\n[PASS] test_audit2_attemptsContinueWithOneSeedAndAreBounded() (gas: 1995986)\n[PASS] test_audit2_exitAndStopOnlyExcludeLaterJobs() (gas: 2940613)\n[PASS] test_audit2_exitAndStopRespectPostingOrderWithinOneBlock() (gas: 2837808)\n[PASS] test_audit2_jobRecordsLengthBlockAndPicksByFormula() (gas: 869904)\n[PASS] test_audit2_listIsAppendOnlyAndLateEntriesCannotReshapeDraw() (gas: 1706234)\n[PASS] test_audit2_slashAfterPostingInvalidatesEligibility() (gas: 3898439)\n[PASS] test_audit2_stateChangeInPostingBlockOrAfterExcludesOldJob() (gas: 4429501)\n[PASS] test_audit3_serveRequiresMinimumBond() (gas: 599153)\n[PASS] test_audit4_threeArmsNeverDrawFourthMixedKeys() (gas: 2622236)\n[PASS] test_audit4_threeDistinctAnswersRefundAllEscrow() (gas: 2949066)\n[PASS] test_audit5_timeoutNeverStrikesTimelyTieRevealer() (gas: 2845479)\n[PASS] test_audit6_noShowCompensationPreservesOtherJobsLocks() (gas: 4288610)\n[PASS] test_audit6_revealNoShowPaysRevealerRefundsPosterAndCannotCancel() (gas: 2518849)\n[PASS] test_audit6_zeroRevealsCanReplaceWithoutReducingBonds() (gas: 2946538)\n[PASS] test_audit7_formIdBindsEveryField() (gas: 308453)\n[PASS] test_audit7_uriCharactersAndCourtQuotes() (gas: 13221112)\n[PASS] test_audit8_armAddressCanAlsoSignForAnotherArm() (gas: 1947514)\n[PASS] test_audit8_sharedSignerNamesArmAndRevocationIsIndependent() (gas: 2113080)\nSuite result: ok. 28 passed; 0 failed; 0 skipped; finished in 196.66ms (215.96ms CPU time)\n\nRan 33 tests for test/Arms.t.sol:ArmsTest\n[PASS] testFuzz_bondWithdrawRoundTrip(uint96,uint32) (runs: 256, μ: 431158, ~: 431108)\nLogs:\n  Bound result 3\n  Bound result 30326407\n\n[PASS] testFuzz_commitHashBindsJobArmValuesSalt(bytes32,bytes32) (runs: 256, μ: 1239167, ~: 1239339)\n[PASS] testFuzz_settlePaymentsNeverExceedEscrow(bytes32,bytes32,uint8) (runs: 256, μ: 2089312, ~: 2117756)\n[PASS] test_bond_capsAndExit() (gas: 775920)\n[PASS] test_bond_totalCap() (gas: 8165212)\n[PASS] test_cancel_refundsAndUnlocks() (gas: 1313397)\n[PASS] test_challenge_rules() (gas: 3978144)\n[PASS] test_commitReveal_rules() (gas: 1592738)\n[PASS] test_constructor_rejectsBadParams() (gas: 678308)\n[PASS] test_draw_excludesPosterAndIneligible() (gas: 1911168)\n[PASS] test_draw_expiredSeedIsNeverReplaced() (gas: 489821)\n[PASS] test_draw_tooEarlyThenFills() (gas: 843602)\n[PASS] test_noOwnerAdminPauseOrUpgrade() (gas: 434257)\n[PASS] test_post_rules() (gas: 612806)\n[PASS] test_registerForm_rules() (gas: 372411)\n[PASS] test_resolve_claimedCorrectsSlashesRefundsRewards() (gas: 3484261)\n[PASS] test_resolve_neitherOverturnsHoldsRewardThenBurnsIt() (gas: 3251876)\n[PASS] test_resolve_noRulingAfterCourtDeadline() (gas: 2983024)\n[PASS] test_resolve_secondSlashBurnsAndArmsLoseOneTrancheOnly() (gas: 3969599)\n[PASS] test_resolve_storedAfterOverturnBurnsStakeWhenEveryGiverWasSlashed() (gas: 3672139)\n[PASS] test_resolve_storedSplitsStakeAmongArms() (gas: 3110817)\n[PASS] test_serve_rules() (gas: 420789)\n[PASS] test_setSigner_commitsAndReveals() (gas: 1589877)\n[PASS] test_settle_agreedPaysBurnsReturns() (gas: 2321347)\n[PASS] test_settle_disputeGoesToTieBreakAndMajority() (gas: 2904824)\n[PASS] test_settle_unavailableTieBreakLeavesDisputedKeysUnresolved() (gas: 3367063)\n[PASS] test_settle_unknownNeverPaidAndNotApplicableIsAnAnswer() (gas: 2086011)\n[PASS] test_spotCheck_threeArmsMajorityWithoutTieBreak() (gas: 38653876)\n[PASS] test_tieBreakerIsSlashedWhenItGaveTheStoredValue() (gas: 3781094)\n[PASS] test_timeout_afterEveryoneRevealedIsNotATimeout() (gas: 1996429)\n[PASS] test_timeout_commitMissStrikesAndReplaces() (gas: 2545514)\n[PASS] test_timeout_revealMissAndDeactivation() (gas: 41144885)\n[PASS] test_withdraw_onlyUnlocked() (gas: 1008506)\nSuite result: ok. 33 passed; 0 failed; 0 skipped; finished in 196.91ms (453.89ms CPU time)\n\nRan 18 tests for test/IMDCourt.t.sol:IMDCourtTest\n[PASS] testFuzz_questionUsesOneBasedFormKey(uint8) (runs: 256, μ: 1107135, ~: 1093700)\nLogs:\n  Bound result 1\n\n[PASS] test_ask_buildsExactBodyAndPullsFee() (gas: 2755807)\n[PASS] test_ask_refusesDuplicateAndFeeAboveMax() (gas: 3965436)\n[PASS] test_ask_whenNotSoldReverts() (gas: 134844)\n[PASS] test_callback_answerCodes() (gas: 6711759)\n[PASS] test_callback_refusals() (gas: 2968723)\n[PASS] test_callback_storesRulingUnder200kGas() (gas: 2742718)\n[PASS] test_controlMapSpotCheckSlashesOnlyTheTwoWrongArms() (gas: 12860621)\n[PASS] test_controlMapTwoRoundsAndChallengeAccounting() (gas: 12153627)\n[PASS] test_failure_closesCaseWithoutRuling() (gas: 2751247)\n[PASS] test_fullChallengeNoAnswerEndsAtCourtDeadline() (gas: 4469496)\n[PASS] test_fullChallengeThroughIMDCourt() (gas: 5323597)\n[PASS] test_intakeMigrationPreservesPendingRequestsAndNamespacesIds() (gas: 6276645)\n[PASS] test_newActionAndAssetRecoverRetiredSale() (gas: 2717635)\n[PASS] test_oldIntakeFailureStillClosesOnlyItsCaseAfterMigration() (gas: 3517796)\n[PASS] test_oracleConfigurationOnlyLaunchOwnerAndNoZeroSettings() (gas: 198181)\n[PASS] test_question_refusesNonAsciiAndUppercaseHexValue() (gas: 164911)\n[PASS] test_signerRotationRecoversPendingCaseAndRevokesOldSigner() (gas: 2770640)\nSuite result: ok. 18 passed; 0 failed; 0 skipped; finished in 200.17ms (286.61ms CPU time)\n\nRan 1 test for test/ArmsInvariant.t.sol:ArmsInvariantTest\n[PASS]\nArmsInvariantTest invariants:\n[PASS] invariant_balanceEqualsBondsEscrowStakesRewards\n[PASS] invariant_bondsSumAndLockedWithinBond\n[PASS] invariant_handlerPropertiesHeld\n[PASS] invariant_operatorNeverGains\n[PASS] invariant_posterNeverGetsMoreThanEscrowPlusOneRefund\n[PASS] invariant_supplyEqualsAllHolders\n ArmsInvariantTest invariants (runs: 64, calls: 2560, reverts: 26)\n\n╭-------------+-----------------+-------+---------+----------╮\n| Contract    | Selector        | Calls | Reverts | Discards |\n+============================================================+\n| ArmsHandler | answer          | 186   | 4       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | bond            | 135   | 22      | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | cancel          | 158   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | challenge       | 162   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | draw            | 163   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | exitAndWithdraw | 181   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | post            | 167   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | reactivate      | 166   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | release         | 187   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | requestExit     | 169   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | resolve         | 184   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | rule            | 167   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | settle          | 162   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | timeout         | 191   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | warp            | 182   | 0       | 0        |\n╰-------------+-----------------+-------+---------+----------╯\n\nLogs:\n  Bound result 13810\n  Bound result 4\n  Bound result 23295\n  Bound result 97\n  Bound result 17727\n  Bound result 28000000000000000000\n  Bound result 16564\n\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 1.52s (1.51s CPU time)\n\nRan 15 test suites in 1.52s (2.93s CPU time): 117 tests passed, 0 failed, 0 skipped (117 total tests)\n","passed":true},{"durationMs":59,"exitCode":0,"name":"source-index","output":"{\"v\":1,\"entryPoints\":[\"Arms.bond(uint256)\",\"Arms.cancel(uint256)\",\"Arms.challenge(uint256,uint8,bytes32,uint256)\",\"Arms.commit(uint256,address,bytes32)\",\"Arms.draw(uint256)\",\"Arms.post(bytes32,uint256,address,uint256,uint256)\",\"Arms.reactivate()\",\"Arms.registerForm(bytes32,uint8,string)\",\"Arms.release(uint256)\",\"Arms.requestExit()\",\"Arms.resolve(uint256,uint8,bytes32)\",\"Arms.reveal(uint256,address,bytes32[],bytes32,string)\",\"Arms.serve(bytes32,uint256)\",\"Arms.setSigner(address)\",\"Arms.settle(uint256)\",\"Arms.stopServing(bytes32)\",\"Arms.timeout(uint256)\",\"Arms.withdraw()\",\"ArmsForms.noteBond(address,uint256,uint256)\",\"ArmsForms.register(bytes32,uint8,string)\",\"ArmsForms.serve(bytes32,address,uint256,uint256)\",\"ArmsForms.stop(bytes32,address,uint256,uint256)\",\"IMDCourt.ask(bytes32,bytes32,string,uint8,uint256,address,uint256,bytes32,bytes32,address,uint256)\",\"IMDCourt.onOracleFailure(bytes32,uint8,bytes32,uint16,uint16,bytes)\",\"IMDCourt.onOracleResult(bytes32,(bytes32,uint256,bytes32,uint8,bytes,uint256,uint64,uint64,bytes32,bytes32,uint16,uint16,uint16,uint64,uint64),bytes)\",\"IMDCourt.renounceOwnership()\",\"IMDCourt.setConfirmedHead(uint256,uint256)\",\"IMDCourt.setOracleConfig(address,address,bytes32)\",\"IMDCourt.setSigner(address)\",\"IMDCourt.transferOwnership(address)\"],\"files\":{\".gitignore\":4,\"ADAPTATION.md\":212,\"AUDIT.md\":97,\"README.md\":481,\"REVIEW.md\":112,\"docs/evidence/ImdTest-verified-source.json\":657,\"docs/evidence/Intake-verified-source.json\":1267,\"docs/evidence/base-provenance.json\":22,\"docs/evidence/consumer-schema-preflight.json\":53,\"docs/evidence/control-map-answers.json\":31,\"docs/evidence/current-question-check.json\":92,\"docs/evidence/key-01.json\":20,\"docs/evidence/key-02.json\":20,\"docs/evidence/key-03.json\":20,\"docs/evidence/key-04.json\":20,\"docs/evidence/key-05.json\":20,\"docs/evidence/key-06.json\":20,\"docs/evidence/key-07.json\":20,\"docs/evidence/key-08.json\":20,\"docs/evidence/key-09.json\":20,\"docs/evidence/key-10.json\":20,\"docs/evidence/key-11.json\":20,\"docs/evidence/key-12.json\":20,\"docs/evidence/key-13.json\":20,\"docs/evidence/offline-rehearsal.json\":27,\"docs/evidence/sepolia-readback.json\":749,\"docs/oracle-question-check.json\":96,\"forms/control-map-v1.txt\":150,\"foundry.toml\":31,\"launch.json\":40,\"script/AskSepolia.s.sol\":53,\"script/Deploy.s.sol\":90,\"script/check_launch.py\":69,\"script/prepare_control_map.py\":99,\"script/read_sepolia.py\":102,\"src/Arms.sol\":1045,\"src/ArmsForms.sol\":117,\"src/ArmsResults.sol\":156,\"src/Blocks.sol\":38,\"src/FormURI.sol\":22,\"src/ICourt.sol\":51,\"src/IIntake.sol\":21,\"src/IMDCourt.sol\":311,\"src/OracleAttestation.sol\":221,\"src/OracleQuestion.sol\":277,\"src/compat/EIP712.sol\":162,\"src/compat/LICENSE\":22,\"src/compat/Strings.sol\":43,\"src/mocks/MockCourt.sol\":129,\"src/mocks/MockToken.sol\":20,\"test/Arms.t.sol\":943,\"test/ArmsBase.t.sol\":203,\"test/ArmsInvariant.t.sol\":437,\"test/AuditRegressions.t.sol\":793,\"test/Compatibility.t.sol\":80,\"test/Deploy.t.sol\":106,\"test/IMDCourt.t.sol\":644,\"test/LaunchAdaptation.t.sol\":97,\"test/OracleConformance.t.sol\":138,\"test/RevisionRegressions.t.sol\":569,\"test/mocks/MockIntake.sol\":87,\"test/test_deliverables.py\":62},\"excluded\":[\"lib/\",\"node_modules/\"],\"truncated\":false}","passed":true}],"detail":"all checks passed","evaluation":"checks","profile":"foundry","status":"accepted","submissionHash":"0796abf3d04052790ae464ab9b37de1208d92673731638d4cfdbe9cfa4d0b576","verifiedTreeHash":"99fa6c523dbaebd6e377d95de1b0b517a6820964","verifierVersion":"0.1.0+435fe828"},{"checks":[{"durationMs":79705,"exitCode":0,"name":"build","output":"Compiling 73 files with Solc 0.8.26\nSolc 0.8.26 finished in 79.57s\nCompiler run successful!\n","passed":true},{"durationMs":1668,"exitCode":0,"name":"test","output":"No files changed, compilation skipped\n\nRan 4 tests for test/OracleConformance.t.sol:OracleConsumerConformanceTest\n[PASS] test_acceptsAFreshSignatureFromTheVectorKey() (gas: 1961084)\n[PASS] test_callbackSelectorIsCanonical() (gas: 3925)\n[PASS] test_digestMatchesTheProtocol() (gas: 13799)\n[PASS] test_questionHashMatchesTheProtocolVector() (gas: 41781)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 3.99ms (3.57ms CPU time)\n\nRan 6 tests for test/RevisionRegressions.t.sol:DrawOptOutTest\n[PASS] test_feeRaiseDoesNotApplyToAnOlderJob() (gas: 1318254)\n[PASS] test_lateServeFeeCutOrReServeDoesNotOptIn() (gas: 2592162)\n[PASS] test_newlyActiveBondStillInvalidatesOlderJobs() (gas: 410699)\n[PASS] test_reServeDoesNotOptOutOfAnOlderJob() (gas: 859894)\n[PASS] test_topUpAfterPostDoesNotOptIn() (gas: 2144859)\n[PASS] test_topUpDoesNotOptOutOfAnOlderJob() (gas: 876491)\nSuite result: ok. 6 passed; 0 failed; 0 skipped; finished in 6.47ms (3.28ms CPU time)\n\nRan 2 tests for test/RevisionRegressions.t.sol:ClaimedAfterNeitherTest\n[PASS] test_claimedAfterNeitherOnTheSameKeyCorrectsIt() (gas: 4027699)\n[PASS] test_claimedThenNeitherLeavesTheCorrection() (gas: 3633359)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 7.48ms (4.01ms CPU time)\n\nRan 3 tests for test/RevisionRegressions.t.sol:LatestVerdictTest\n[PASS] test_allUnknownJobDoesNotReplaceTheLatestVerdict() (gas: 3916711)\n[PASS] test_olderBlockDoesNotReplaceTheLatestVerdict() (gas: 7887109)\n[PASS] test_partlyAnsweredJobIsTheLatest() (gas: 3886379)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 11.95ms (9.78ms CPU time)\n\nRan 3 tests for test/LaunchAdaptation.t.sol:ConfirmedBlockTest\n[PASS] testFuzz_confirmationBoundary(uint64,uint64) (runs: 256, μ: 213231, ~: 350344)\nLogs:\n  Bound result 9\n  Bound result 30\n\n[PASS] test_arbitrumUsesItsOwnHeightForConfirmation() (gas: 8494306)\n[PASS] test_futureAndUnconfirmedLocalBlocksFailBeforeEscrowMoves() (gas: 586718)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 27.19ms (23.98ms CPU time)\n\nRan 3 tests for test/RevisionRegressions.t.sol:RemoteHeadTest\n[PASS] testFuzz_remoteBoundary(uint64,uint64) (runs: 256, μ: 294288, ~: 428601)\nLogs:\n  Bound result 1673\n  Bound result 9000\n\n[PASS] test_realCourtHeadIsOwnerPublishedForwardOnlyAndRemoteOnly() (gas: 11902059)\n[PASS] test_remotePostIsBoundedByTheCourtsConfirmedHead() (gas: 997448)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 28.60ms (27.34ms CPU time)\n\nRan 3 tests for test/RevisionRegressions.t.sol:StoredStakeTest\n[PASS] test_releaseAfterStoredRulingOnAnOverturnedJob() (gas: 3768089)\n[PASS] test_storedRulingForfeitsTheStakeInEitherResolveOrder() (gas: 7789080)\n[PASS] test_storedRulingPaysTheGivers() (gas: 2782696)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 94.36ms (15.35ms CPU time)\n\nRan 2 tests for test/Deploy.t.sol:DeployTest\n[PASS] test_deployRejectsAnotherChain() (gas: 12693796)\n[PASS] test_deploySepoliaConfig() (gas: 65511453)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 98.84ms (98.35ms CPU time)\n\nRan 4 tests for test/Compatibility.t.sol:CompatibilityTest\n[PASS] testFuzz_domainDigestAndIntrospectionMatch(bytes32,uint64) (runs: 256, μ: 1845464, ~: 1845464)\n[PASS] testFuzz_stringsMatchProtectedDependency(uint256,address) (runs: 256, μ: 68243, ~: 63858)\n[PASS] test_decimalBoundariesAndHexPadding() (gas: 4642240)\n[PASS] test_hexOverflowKeepsOriginalError() (gas: 7214)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 113.87ms (145.21ms CPU time)\n\nRan 28 tests for test/AuditRegressions.t.sol:AuditRegressionsTest\n[PASS] testFuzz_audit6_compensationConservesFundsAndOnlyDebitsNoShows(bool,uint64) (runs: 256, μ: 2225638, ~: 2305353)\nLogs:\n  Bound result 13382\n\n[PASS] testFuzz_audit6_tieNoShowClosesWithoutReplacement(bool) (runs: 256, μ: 2562002, ~: 2516885)\n[PASS] test_audit12_arbitrumBlockModeComesFromChainId() (gas: 11320152)\n[PASS] test_audit13_arbitrumExpiredSeedIsRefusedToo() (gas: 10975955)\n[PASS] test_audit13_drawDoesNotDependOnTheBlockItIsCalledIn() (gas: 3869059)\n[PASS] test_audit13_expiredSeedJobIsRefundedByCancelAndAReposterGetsANewSeed() (gas: 1721851)\n[PASS] test_audit13_expiredTieSeedIsNotRedrawnAndTheDisputedKeySettlesUnresolved() (gas: 2397118)\n[PASS] test_audit13_replacementDrawHasOneSeedToo() (gas: 1360637)\n[PASS] test_audit14_noShowCloseDoesNotReplaceTheLatestVerdict() (gas: 8313505)\n[PASS] test_audit1_flatConstructorConstantsAndDerivedMinBond() (gas: 8609060)\n[PASS] test_audit2_attemptsContinueWithOneSeedAndAreBounded() (gas: 1995986)\n[PASS] test_audit2_exitAndStopOnlyExcludeLaterJobs() (gas: 2729227)\n[PASS] test_audit2_exitAndStopRespectPostingOrderWithinOneBlock() (gas: 2626422)\n[PASS] test_audit2_jobRecordsLengthBlockAndPicksByFormula() (gas: 869904)\n[PASS] test_audit2_listIsAppendOnlyAndLateEntriesCannotReshapeDraw() (gas: 1706037)\n[PASS] test_audit2_slashAfterPostingInvalidatesEligibility() (gas: 3894121)\n[PASS] test_audit2_stateChangeInPostingBlockOrAfterExcludesOldJob() (gas: 4352516)\n[PASS] test_audit3_serveRequiresMinimumBond() (gas: 598759)\n[PASS] test_audit4_threeArmsNeverDrawFourthMixedKeys() (gas: 2622236)\n[PASS] test_audit4_threeDistinctAnswersRefundAllEscrow() (gas: 2949066)\n[PASS] test_audit5_timeoutNeverStrikesTimelyTieRevealer() (gas: 2845479)\n[PASS] test_audit6_noShowCompensationPreservesOtherJobsLocks() (gas: 4288451)\n[PASS] test_audit6_revealNoShowPaysRevealerRefundsPosterAndCannotCancel() (gas: 2518690)\n[PASS] test_audit6_zeroRevealsCanReplaceWithoutReducingBonds() (gas: 2946538)\n[PASS] test_audit7_formIdBindsEveryField() (gas: 308453)\n[PASS] test_audit7_uriCharactersAndCourtQuotes() (gas: 13221112)\n[PASS] test_audit8_armAddressCanAlsoSignForAnotherArm() (gas: 1947514)\n[PASS] test_audit8_sharedSignerNamesArmAndRevocationIsIndependent() (gas: 2113080)\nSuite result: ok. 28 passed; 0 failed; 0 skipped; finished in 113.96ms (250.13ms CPU time)\n\nRan 3 tests for test/LaunchAdaptation.t.sol:TokenLaunchTest\n[PASS] testFuzz_transferAndBurnConserveSupply(uint96,uint96) (runs: 256, μ: 149442, ~: 150540)\nLogs:\n  Bound result 3\n  Bound result 2\n\n[PASS] test_noBurnFromEvenWithAllowance() (gas: 91891)\n[PASS] test_onlyConstructorMintsAndFactoryReceivesNothing() (gas: 98093)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 146.69ms (146.54ms CPU time)\n\nRan 18 tests for test/IMDCourt.t.sol:IMDCourtTest\n[PASS] testFuzz_questionUsesOneBasedFormKey(uint8) (runs: 256, μ: 1108024, ~: 1093700)\nLogs:\n  Bound result 4\n\n[PASS] test_ask_buildsExactBodyAndPullsFee() (gas: 2755807)\n[PASS] test_ask_refusesDuplicateAndFeeAboveMax() (gas: 3965436)\n[PASS] test_ask_whenNotSoldReverts() (gas: 134844)\n[PASS] test_callback_answerCodes() (gas: 6711759)\n[PASS] test_callback_refusals() (gas: 2968723)\n[PASS] test_callback_storesRulingUnder200kGas() (gas: 2742718)\n[PASS] test_controlMapSpotCheckSlashesOnlyTheTwoWrongArms() (gas: 12856303)\n[PASS] test_controlMapTwoRoundsAndChallengeAccounting() (gas: 12149309)\n[PASS] test_failure_closesCaseWithoutRuling() (gas: 2751247)\n[PASS] test_fullChallengeNoAnswerEndsAtCourtDeadline() (gas: 4469496)\n[PASS] test_fullChallengeThroughIMDCourt() (gas: 5319279)\n[PASS] test_intakeMigrationPreservesPendingRequestsAndNamespacesIds() (gas: 6276645)\n[PASS] test_newActionAndAssetRecoverRetiredSale() (gas: 2717635)\n[PASS] test_oldIntakeFailureStillClosesOnlyItsCaseAfterMigration() (gas: 3517796)\n[PASS] test_oracleConfigurationOnlyLaunchOwnerAndNoZeroSettings() (gas: 198181)\n[PASS] test_question_refusesNonAsciiAndUppercaseHexValue() (gas: 164911)\n[PASS] test_signerRotationRecoversPendingCaseAndRevokesOldSigner() (gas: 2770640)\nSuite result: ok. 18 passed; 0 failed; 0 skipped; finished in 171.87ms (253.29ms CPU time)\n\nRan 33 tests for test/Arms.t.sol:ArmsTest\n[PASS] testFuzz_bondWithdrawRoundTrip(uint96,uint32) (runs: 256, μ: 422155, ~: 422105)\nLogs:\n  Bound result 14951\n  Bound result 30326461\n\n[PASS] testFuzz_commitHashBindsJobArmValuesSalt(bytes32,bytes32) (runs: 256, μ: 1239166, ~: 1239339)\n[PASS] testFuzz_settlePaymentsNeverExceedEscrow(bytes32,bytes32,uint8) (runs: 256, μ: 2087508, ~: 2094321)\n[PASS] test_bond_capsAndExit() (gas: 768749)\n[PASS] test_bond_totalCap() (gas: 8153073)\n[PASS] test_cancel_refundsAndUnlocks() (gas: 1313397)\n[PASS] test_challenge_rules() (gas: 3978144)\n[PASS] test_commitReveal_rules() (gas: 1592738)\n[PASS] test_constructor_rejectsBadParams() (gas: 677384)\n[PASS] test_draw_excludesPosterAndIneligible() (gas: 1876701)\n[PASS] test_draw_expiredSeedIsNeverReplaced() (gas: 489821)\n[PASS] test_draw_tooEarlyThenFills() (gas: 843602)\n[PASS] test_noOwnerAdminPauseOrUpgrade() (gas: 434257)\n[PASS] test_post_rules() (gas: 612806)\n[PASS] test_registerForm_rules() (gas: 372411)\n[PASS] test_resolve_claimedCorrectsSlashesRefundsRewards() (gas: 3479943)\n[PASS] test_resolve_neitherOverturnsHoldsRewardThenBurnsIt() (gas: 3247558)\n[PASS] test_resolve_noRulingAfterCourtDeadline() (gas: 2983024)\n[PASS] test_resolve_secondSlashBurnsAndArmsLoseOneTrancheOnly() (gas: 3965281)\n[PASS] test_resolve_storedAfterOverturnBurnsStakeWhenEveryGiverWasSlashed() (gas: 3667821)\n[PASS] test_resolve_storedSplitsStakeAmongArms() (gas: 3110817)\n[PASS] test_serve_rules() (gas: 420789)\n[PASS] test_setSigner_commitsAndReveals() (gas: 1589877)\n[PASS] test_settle_agreedPaysBurnsReturns() (gas: 2321347)\n[PASS] test_settle_disputeGoesToTieBreakAndMajority() (gas: 2904824)\n[PASS] test_settle_unavailableTieBreakLeavesDisputedKeysUnresolved() (gas: 3367063)\n[PASS] test_settle_unknownNeverPaidAndNotApplicableIsAnAnswer() (gas: 2086011)\n[PASS] test_spotCheck_threeArmsMajorityWithoutTieBreak() (gas: 38653876)\n[PASS] test_tieBreakerIsSlashedWhenItGaveTheStoredValue() (gas: 3776776)\n[PASS] test_timeout_afterEveryoneRevealedIsNotATimeout() (gas: 1996429)\n[PASS] test_timeout_commitMissStrikesAndReplaces() (gas: 2545514)\n[PASS] test_timeout_revealMissAndDeactivation() (gas: 41144408)\n[PASS] test_withdraw_onlyUnlocked() (gas: 999700)\nSuite result: ok. 33 passed; 0 failed; 0 skipped; finished in 227.82ms (353.70ms CPU time)\n\nRan 15 tests for test/CourtFailurePaths.t.sol:CourtFailurePathsTest\n[PASS] testFuzz_anySignedAnswerConservesFundsAndMapsRuling(uint256,uint8,bool) (runs: 256, μ: 4649543, ~: 4584347)\nLogs:\n  Bound result 2\n  Bound result 6\n\n[PASS] test_challengeRevertsWholeWhenOracleNoLongerSold() (gas: 2344020)\n[PASS] test_challengeRevertsWholeWhenOraclePriceRisesAboveMax() (gas: 4487898)\n[PASS] test_challengeRevertsWholeWithoutFeeAssetApproval() (gas: 2286943)\n[PASS] test_challengeWindowAndReleaseShareOneBoundary() (gas: 4503599)\n[PASS] test_failureNeverShortensTheDeadlineOrTouchesOtherRequests() (gas: 4442796)\n[PASS] test_lateRulingAfterDeadlineCloseMovesNothing() (gas: 4501062)\n[PASS] test_outOfRangeAnswerClosesCaseAndOnlyTheDeadlineEndsIt() (gas: 4575067)\n[PASS] test_panelThatRaisedItsOwnQuorumMustReachIt() (gas: 4251714)\n[PASS] test_remoteTargetNeedsAPublishedConfirmedHead() (gas: 14021763)\n[PASS] test_rulingAfterDeadlineButBeforeResolveIsApplied() (gas: 4645471)\n[PASS] test_strangerCannotPreoccupyArmsCaseOrRuleIt() (gas: 5600866)\n[PASS] test_twoAskersWithIdenticalQuestionsCannotCrossSettle() (gas: 18572161)\n[PASS] test_unsupportedTargetChainsRefusedByArmsAndCourt() (gas: 208812)\n[PASS] test_wrongAnswerTypeOrFutureIssuedAttestationLeavesCaseOpen() (gas: 4431187)\nSuite result: ok. 15 passed; 0 failed; 0 skipped; finished in 264.07ms (308.59ms CPU time)\n\nRan 2 tests for test/IMDCourtInvariant.t.sol:IMDCourtInvariantTest\n[PASS]\nIMDCourtInvariantTest invariants:\n[PASS] invariant_armsHoldsExactlyWhatItOwes\n[PASS] invariant_closedRulingsNeverChangeAndArmsAppliesTheCourts\n[PASS] invariant_lockedWithinBondAndBondsSum\n[PASS] invariant_onlyTheIntakeAndOnlyOnceCloseACase\n[PASS] invariant_oracleFeeIsNeverHeldOrLeftApproved\n[PASS] invariant_supplyEqualsHoldersAndFeeSupplyFixed\n IMDCourtInvariantTest invariants (runs: 64, calls: 2560, reverts: 0)\n\n╭--------------+----------------+-------+---------+----------╮\n| Contract     | Selector       | Calls | Reverts | Discards |\n+============================================================+\n| CourtHandler | cancel         | 241   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | challenge      | 257   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | forgedCallback | 269   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | oracleAnswer   | 235   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | oracleFail     | 288   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | release        | 266   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | replay         | 261   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | resolve        | 268   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | runJob         | 239   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | warp           | 236   | 0       | 0        |\n╰--------------+----------------+-------+---------+----------╯\n\nLogs:\n  Bound result 8307\n  Bound result 437\n\n[PASS] test_handlerSequenceReachesEveryStage() (gas: 5561380)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 1.23s (1.23s CPU time)\n\nRan 1 test for test/ArmsInvariant.t.sol:ArmsInvariantTest\n[PASS]\nArmsInvariantTest invariants:\n[PASS] invariant_balanceEqualsBondsEscrowStakesRewards\n[PASS] invariant_bondsSumAndLockedWithinBond\n[PASS] invariant_handlerPropertiesHeld\n[PASS] invariant_operatorNeverGains\n[PASS] invariant_posterNeverGetsMoreThanEscrowPlusOneRefund\n[PASS] invariant_supplyEqualsAllHolders\n ArmsInvariantTest invariants (runs: 64, calls: 2560, reverts: 26)\n\n╭-------------+-----------------+-------+---------+----------╮\n| Contract    | Selector        | Calls | Reverts | Discards |\n+============================================================+\n| ArmsHandler | answer          | 186   | 5       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | bond            | 135   | 21      | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | cancel          | 158   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | challenge       | 162   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | draw            | 163   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | exitAndWithdraw | 181   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | post            | 167   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | reactivate      | 166   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | release         | 187   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | requestExit     | 169   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | resolve         | 184   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | rule            | 167   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | settle          | 162   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | timeout         | 191   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | warp            | 182   | 0       | 0        |\n╰-------------+-----------------+-------+---------+----------╯\n\nLogs:\n  Bound result 1877\n  Bound result 20\n  Bound result 23295\n  Bound result 9\n  Bound result 17463\n  Bound result 10012\n  Bound result 16483\n\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 1.55s (1.54s CPU time)\n\nRan 16 test suites in 1.55s (4.10s CPU time): 130 tests passed, 0 failed, 0 skipped (130 total tests)\n","passed":true},{"durationMs":58,"exitCode":0,"name":"source-index","output":"{\"v\":1,\"entryPoints\":[\"Arms.bond(uint256)\",\"Arms.cancel(uint256)\",\"Arms.challenge(uint256,uint8,bytes32,uint256)\",\"Arms.commit(uint256,address,bytes32)\",\"Arms.draw(uint256)\",\"Arms.post(bytes32,uint256,address,uint256,uint256)\",\"Arms.reactivate()\",\"Arms.registerForm(bytes32,uint8,string)\",\"Arms.release(uint256)\",\"Arms.requestExit()\",\"Arms.resolve(uint256,uint8,bytes32)\",\"Arms.reveal(uint256,address,bytes32[],bytes32,string)\",\"Arms.serve(bytes32,uint256)\",\"Arms.setSigner(address)\",\"Arms.settle(uint256)\",\"Arms.stopServing(bytes32)\",\"Arms.timeout(uint256)\",\"Arms.withdraw()\",\"ArmsForms.noteBond(address,uint256,uint256)\",\"ArmsForms.register(bytes32,uint8,string)\",\"ArmsForms.serve(bytes32,address,uint256,uint256)\",\"ArmsForms.stop(bytes32,address,uint256,uint256)\",\"IMDCourt.ask(bytes32,bytes32,string,uint8,uint256,address,uint256,bytes32,bytes32,address,uint256)\",\"IMDCourt.onOracleFailure(bytes32,uint8,bytes32,uint16,uint16,bytes)\",\"IMDCourt.onOracleResult(bytes32,(bytes32,uint256,bytes32,uint8,bytes,uint256,uint64,uint64,bytes32,bytes32,uint16,uint16,uint16,uint64,uint64),bytes)\",\"IMDCourt.renounceOwnership()\",\"IMDCourt.setConfirmedHead(uint256,uint256)\",\"IMDCourt.setOracleConfig(address,address,bytes32)\",\"IMDCourt.setSigner(address)\",\"IMDCourt.transferOwnership(address)\"],\"files\":{\".gitignore\":4,\"ADAPTATION.md\":187,\"AUDIT.md\":97,\"README.md\":477,\"REVIEW.md\":112,\"docs/evidence/ImdTest-verified-source.json\":657,\"docs/evidence/Intake-verified-source.json\":1267,\"docs/evidence/base-provenance.json\":22,\"docs/evidence/consumer-schema-preflight.json\":53,\"docs/evidence/control-map-answers.json\":31,\"docs/evidence/current-question-check.json\":92,\"docs/evidence/key-01.json\":20,\"docs/evidence/key-02.json\":20,\"docs/evidence/key-03.json\":20,\"docs/evidence/key-04.json\":20,\"docs/evidence/key-05.json\":20,\"docs/evidence/key-06.json\":20,\"docs/evidence/key-07.json\":20,\"docs/evidence/key-08.json\":20,\"docs/evidence/key-09.json\":20,\"docs/evidence/key-10.json\":20,\"docs/evidence/key-11.json\":20,\"docs/evidence/key-12.json\":20,\"docs/evidence/key-13.json\":20,\"docs/evidence/offline-rehearsal.json\":27,\"docs/evidence/sepolia-readback.json\":749,\"docs/oracle-question-check.json\":96,\"forms/control-map-v1.txt\":150,\"foundry.toml\":31,\"launch.json\":40,\"script/AskSepolia.s.sol\":53,\"script/Deploy.s.sol\":90,\"script/check_launch.py\":69,\"script/prepare_control_map.py\":99,\"script/read_sepolia.py\":102,\"src/Arms.sol\":1038,\"src/ArmsForms.sol\":117,\"src/ArmsResults.sol\":156,\"src/Blocks.sol\":38,\"src/FormURI.sol\":22,\"src/ICourt.sol\":51,\"src/IIntake.sol\":21,\"src/IMDCourt.sol\":311,\"src/OracleAttestation.sol\":221,\"src/OracleQuestion.sol\":277,\"src/compat/EIP712.sol\":162,\"src/compat/LICENSE\":22,\"src/compat/Strings.sol\":43,\"src/mocks/MockCourt.sol\":129,\"src/mocks/MockToken.sol\":20,\"test/Arms.t.sol\":943,\"test/ArmsBase.t.sol\":203,\"test/ArmsInvariant.t.sol\":437,\"test/AuditRegressions.t.sol\":789,\"test/Compatibility.t.sol\":80,\"test/CourtFailurePaths.t.sol\":496,\"test/Deploy.t.sol\":106,\"test/IMDCourt.t.sol\":644,\"test/IMDCourtInvariant.t.sol\":470,\"test/LaunchAdaptation.t.sol\":97,\"test/OracleConformance.t.sol\":138,\"test/RevisionRegressions.t.sol\":464,\"test/mocks/MockIntake.sol\":87,\"test/test_deliverables.py\":62},\"excluded\":[\"lib/\",\"node_modules/\"],\"truncated\":false}","passed":true}],"detail":"all checks passed","evaluation":"checks","profile":"foundry","status":"accepted","submissionHash":"210eae29ed4933fec3bdee010e033ba9d1783f4ecfd49020250eed81d7a742ef","verifiedTreeHash":"b378aac704f0118a7853f7a92c05a44ab503c8f8","verifierVersion":"0.1.0+435fe828"},{"checks":[{"durationMs":57105,"exitCode":0,"name":"build","output":"Compiling 69 files with Solc 0.8.26\nSolc 0.8.26 finished in 56.99s\nCompiler run successful!\n","passed":true},{"durationMs":1813,"exitCode":0,"name":"test","output":"No files changed, compilation skipped\n\nRan 4 tests for test/OracleConformance.t.sol:OracleConsumerConformanceTest\n[PASS] test_acceptsAFreshSignatureFromTheVectorKey() (gas: 1961140)\n[PASS] test_callbackSelectorIsCanonical() (gas: 3925)\n[PASS] test_digestMatchesTheProtocol() (gas: 13799)\n[PASS] test_questionHashMatchesTheProtocolVector() (gas: 41781)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 3.59ms (3.05ms CPU time)\n\nRan 3 tests for test/LaunchAdaptation.t.sol:ConfirmedBlockTest\n[PASS] testFuzz_confirmationBoundary(uint64,uint64) (runs: 256, μ: 214298, ~: 350266)\nLogs:\n  Bound result 7142593815043273\n  Bound result 1205296342499994\n\n[PASS] test_arbitrumUsesItsOwnHeightForConfirmation() (gas: 7986780)\n[PASS] test_futureAndUnconfirmedLocalBlocksFailBeforeEscrowMoves() (gas: 586328)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 71.17ms (69.98ms CPU time)\n\nRan 3 tests for test/LaunchAdaptation.t.sol:TokenLaunchTest\n[PASS] testFuzz_transferAndBurnConserveSupply(uint96,uint96) (runs: 256, μ: 149442, ~: 150540)\nLogs:\n  Bound result 1892\n  Bound result 818\n\n[PASS] test_noBurnFromEvenWithAllowance() (gas: 91891)\n[PASS] test_onlyConstructorMintsAndFactoryReceivesNothing() (gas: 98093)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 98.06ms (97.82ms CPU time)\n\nRan 2 tests for test/Deploy.t.sol:DeployTest\n[PASS] test_deployRejectsAnotherChain() (gas: 12099494)\n[PASS] test_deploySepoliaConfig() (gas: 62144638)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 98.14ms (69.37ms CPU time)\n\nRan 28 tests for test/AuditRegressions.t.sol:AuditRegressionsTest\n[PASS] testFuzz_audit6_compensationConservesFundsAndOnlyDebitsNoShows(bool,uint64) (runs: 256, μ: 2142416, ~: 2237780)\nLogs:\n  Bound result 7458\n\n[PASS] testFuzz_audit6_tieNoShowClosesWithoutReplacement(bool) (runs: 256, μ: 2499988, ~: 2454876)\n[PASS] test_audit12_arbitrumBlockModeComesFromChainId() (gas: 10216506)\n[PASS] test_audit13_arbitrumExpiredSeedIsRefusedToo() (gas: 9885372)\n[PASS] test_audit13_drawDoesNotDependOnTheBlockItIsCalledIn() (gas: 3813628)\n[PASS] test_audit13_expiredSeedJobIsRefundedByCancelAndAReposterGetsANewSeed() (gas: 1702433)\n[PASS] test_audit13_expiredTieSeedIsNotRedrawnAndTheDisputedKeySettlesUnresolved() (gas: 2378276)\n[PASS] test_audit13_replacementDrawHasOneSeedToo() (gas: 1343871)\n[PASS] test_audit14_noShowCloseDoesNotReplaceTheLatestVerdict() (gas: 8156046)\n[PASS] test_audit1_flatConstructorConstantsAndDerivedMinBond() (gas: 8067505)\n[PASS] test_audit2_attemptsContinueWithOneSeedAndAreBounded() (gas: 1746374)\n[PASS] test_audit2_exitAndStopOnlyExcludeLaterJobs() (gas: 2412814)\n[PASS] test_audit2_exitAndStopRespectPostingOrderWithinOneBlock() (gas: 2309290)\n[PASS] test_audit2_jobRecordsLengthBlockAndPicksByFormula() (gas: 853676)\n[PASS] test_audit2_listIsAppendOnlyAndLateEntriesCannotReshapeDraw() (gas: 1525469)\n[PASS] test_audit2_slashAfterPostingInvalidatesEligibility() (gas: 3752314)\n[PASS] test_audit2_stateChangeInPostingBlockOrAfterExcludesOldJob() (gas: 2721098)\n[PASS] test_audit3_serveRequiresMinimumBond() (gas: 487980)\n[PASS] test_audit4_threeArmsNeverDrawFourthMixedKeys() (gas: 2590325)\n[PASS] test_audit4_threeDistinctAnswersRefundAllEscrow() (gas: 2937039)\n[PASS] test_audit5_timeoutNeverStrikesTimelyTieRevealer() (gas: 2819476)\n[PASS] test_audit6_noShowCompensationPreservesOtherJobsLocks() (gas: 4052962)\n[PASS] test_audit6_revealNoShowPaysRevealerRefundsPosterAndCannotCancel() (gas: 2463666)\n[PASS] test_audit6_zeroRevealsCanReplaceWithoutReducingBonds() (gas: 2909647)\n[PASS] test_audit7_formIdBindsEveryField() (gas: 300895)\n[PASS] test_audit7_uriCharactersAndCourtQuotes() (gas: 13123878)\n[PASS] test_audit8_armAddressCanAlsoSignForAnotherArm() (gas: 1928802)\n[PASS] test_audit8_sharedSignerNamesArmAndRevocationIsIndependent() (gas: 2094368)\nSuite result: ok. 28 passed; 0 failed; 0 skipped; finished in 98.11ms (244.52ms CPU time)\n\nRan 33 tests for test/Arms.t.sol:ArmsTest\n[PASS] testFuzz_bondWithdrawRoundTrip(uint96,uint32) (runs: 256, μ: 362165, ~: 362125)\nLogs:\n  Bound result 3\n  Bound result 30326407\n\n[PASS] testFuzz_commitHashBindsJobArmValuesSalt(bytes32,bytes32) (runs: 256, μ: 1221328, ~: 1221489)\n[PASS] testFuzz_settlePaymentsNeverExceedEscrow(bytes32,bytes32,uint8) (runs: 256, μ: 2072015, ~: 2074425)\n[PASS] test_bond_capsAndExit() (gas: 664197)\n[PASS] test_bond_totalCap() (gas: 7596861)\n[PASS] test_cancel_refundsAndUnlocks() (gas: 1293281)\n[PASS] test_challenge_rules() (gas: 3954744)\n[PASS] test_commitReveal_rules() (gas: 1574401)\n[PASS] test_constructor_rejectsBadParams() (gas: 640678)\n[PASS] test_draw_excludesPosterAndIneligible() (gas: 1514669)\n[PASS] test_draw_expiredSeedIsNeverReplaced() (gas: 486642)\n[PASS] test_draw_tooEarlyThenFills() (gas: 826665)\n[PASS] test_noOwnerAdminPauseOrUpgrade() (gas: 434257)\n[PASS] test_post_rules() (gas: 609244)\n[PASS] test_registerForm_rules() (gas: 359424)\n[PASS] test_resolve_claimedCorrectsSlashesRefundsRewards() (gas: 3354068)\n[PASS] test_resolve_neitherOverturnsHoldsRewardThenBurnsIt() (gas: 3117824)\n[PASS] test_resolve_noRulingAfterCourtDeadline() (gas: 2961351)\n[PASS] test_resolve_secondSlashBurnsAndArmsLoseOneTrancheOnly() (gas: 3792024)\n[PASS] test_resolve_storedAfterOverturnReturnsStake() (gas: 3449516)\n[PASS] test_resolve_storedSplitsStakeAmongArms() (gas: 3035562)\n[PASS] test_serve_rules() (gas: 401313)\n[PASS] test_setSigner_commitsAndReveals() (gas: 1572002)\n[PASS] test_settle_agreedPaysBurnsReturns() (gas: 2301782)\n[PASS] test_settle_disputeGoesToTieBreakAndMajority() (gas: 2877919)\n[PASS] test_settle_unavailableTieBreakLeavesDisputedKeysUnresolved() (gas: 3234778)\n[PASS] test_settle_unknownNeverPaidAndNotApplicableIsAnAnswer() (gas: 2066366)\n[PASS] test_spotCheck_threeArmsMajorityWithoutTieBreak() (gas: 38199957)\n[PASS] test_tieBreakerIsSlashedWhenItGaveTheStoredValue() (gas: 3639284)\n[PASS] test_timeout_afterEveryoneRevealedIsNotATimeout() (gas: 1977005)\n[PASS] test_timeout_commitMissStrikesAndReplaces() (gas: 2518904)\n[PASS] test_timeout_revealMissAndDeactivation() (gas: 40545226)\n[PASS] test_withdraw_onlyUnlocked() (gas: 946478)\nSuite result: ok. 33 passed; 0 failed; 0 skipped; finished in 152.38ms (373.58ms CPU time)\n\nRan 4 tests for test/Compatibility.t.sol:CompatibilityTest\n[PASS] testFuzz_domainDigestAndIntrospectionMatch(bytes32,uint64) (runs: 256, μ: 1845464, ~: 1845464)\n[PASS] testFuzz_stringsMatchProtectedDependency(uint256,address) (runs: 256, μ: 68296, ~: 61992)\n[PASS] test_decimalBoundariesAndHexPadding() (gas: 4642240)\n[PASS] test_hexOverflowKeepsOriginalError() (gas: 7214)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 170.71ms (253.22ms CPU time)\n\nRan 18 tests for test/IMDCourt.t.sol:IMDCourtTest\n[PASS] testFuzz_questionUsesOneBasedFormKey(uint8) (runs: 256, μ: 1108418, ~: 1093721)\nLogs:\n  Bound result 29\n\n[PASS] test_ask_buildsExactBodyAndPullsFee() (gas: 2755862)\n[PASS] test_ask_refusesDuplicateAndFeeAboveMax() (gas: 3965569)\n[PASS] test_ask_whenNotSoldReverts() (gas: 134844)\n[PASS] test_callback_answerCodes() (gas: 6711990)\n[PASS] test_callback_refusals() (gas: 2968800)\n[PASS] test_callback_storesRulingUnder200kGas() (gas: 2742795)\n[PASS] test_controlMapSpotCheckSlashesOnlyTheTwoWrongArms() (gas: 12557026)\n[PASS] test_controlMapTwoRoundsAndChallengeAccounting() (gas: 11868947)\n[PASS] test_failure_closesCaseWithoutRuling() (gas: 2751258)\n[PASS] test_fullChallengeNoAnswerEndsAtCourtDeadline() (gas: 4447137)\n[PASS] test_fullChallengeThroughIMDCourt() (gas: 5193372)\n[PASS] test_intakeMigrationPreservesPendingRequestsAndNamespacesIds() (gas: 6276799)\n[PASS] test_newActionAndAssetRecoverRetiredSale() (gas: 2717647)\n[PASS] test_oldIntakeFailureStillClosesOnlyItsCaseAfterMigration() (gas: 3517851)\n[PASS] test_oracleConfigurationOnlyLaunchOwnerAndNoZeroSettings() (gas: 198137)\n[PASS] test_question_refusesNonAsciiAndUppercaseHexValue() (gas: 164967)\n[PASS] test_signerRotationRecoversPendingCaseAndRevokesOldSigner() (gas: 2770717)\nSuite result: ok. 18 passed; 0 failed; 0 skipped; finished in 170.83ms (260.65ms CPU time)\n\nRan 1 test for test/ArmsInvariant.t.sol:ArmsInvariantTest\n[PASS]\nArmsInvariantTest invariants:\n[PASS] invariant_balanceEqualsBondsEscrowStakesRewards\n[PASS] invariant_bondsSumAndLockedWithinBond\n[PASS] invariant_handlerPropertiesHeld\n[PASS] invariant_operatorNeverGains\n[PASS] invariant_posterNeverGetsMoreThanEscrowPlusOneRefund\n[PASS] invariant_supplyEqualsAllHolders\n ArmsInvariantTest invariants (runs: 64, calls: 2560, reverts: 18)\n\n╭-------------+-----------------+-------+---------+----------╮\n| Contract    | Selector        | Calls | Reverts | Discards |\n+============================================================+\n| ArmsHandler | answer          | 186   | 2       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | bond            | 135   | 16      | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | cancel          | 158   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | challenge       | 162   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | draw            | 163   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | exitAndWithdraw | 181   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | post            | 167   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | reactivate      | 166   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | release         | 187   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | requestExit     | 169   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | resolve         | 184   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | rule            | 167   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | settle          | 162   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | timeout         | 191   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | warp            | 182   | 0       | 0        |\n╰-------------+-----------------+-------+---------+----------╯\n\nLogs:\n  Bound result 4852\n  Bound result 48\n  Bound result 23295\n  Bound result 70\n  Bound result 18387\n  Bound result 3000000000000000000\n  Bound result 17395\n\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 1.69s (1.68s CPU time)\n\nRan 9 test suites in 1.70s (2.56s CPU time): 96 tests passed, 0 failed, 0 skipped (96 total tests)\n","passed":true},{"durationMs":65,"exitCode":0,"name":"source-index","output":"{\"v\":1,\"entryPoints\":[\"Arms.bond(uint256)\",\"Arms.cancel(uint256)\",\"Arms.challenge(uint256,uint8,bytes32,uint256)\",\"Arms.commit(uint256,address,bytes32)\",\"Arms.draw(uint256)\",\"Arms.post(bytes32,uint256,address,uint256,uint256)\",\"Arms.reactivate()\",\"Arms.registerForm(bytes32,uint8,string)\",\"Arms.release(uint256)\",\"Arms.requestExit()\",\"Arms.resolve(uint256,uint8,bytes32)\",\"Arms.reveal(uint256,address,bytes32[],bytes32,string)\",\"Arms.serve(bytes32,uint256)\",\"Arms.setSigner(address)\",\"Arms.settle(uint256)\",\"Arms.stopServing(bytes32)\",\"Arms.timeout(uint256)\",\"Arms.withdraw()\",\"ArmsForms.register(bytes32,uint8,string)\",\"ArmsForms.serve(bytes32,address,uint256)\",\"ArmsForms.stop(bytes32,address,uint256,uint256)\",\"IMDCourt.ask(bytes32,bytes32,string,uint8,uint256,address,uint256,bytes32,bytes32,address,uint256)\",\"IMDCourt.onOracleFailure(bytes32,uint8,bytes32,uint16,uint16,bytes)\",\"IMDCourt.onOracleResult(bytes32,(bytes32,uint256,bytes32,uint8,bytes,uint256,uint64,uint64,bytes32,bytes32,uint16,uint16,uint16,uint64,uint64),bytes)\",\"IMDCourt.renounceOwnership()\",\"IMDCourt.setOracleConfig(address,address,bytes32)\",\"IMDCourt.setSigner(address)\",\"IMDCourt.transferOwnership(address)\"],\"files\":{\".gitignore\":4,\"ADAPTATION.md\":126,\"AUDIT.md\":97,\"README.md\":455,\"REVIEW.md\":110,\"docs/evidence/ImdTest-verified-source.json\":657,\"docs/evidence/Intake-verified-source.json\":1267,\"docs/evidence/base-provenance.json\":22,\"docs/evidence/consumer-schema-preflight.json\":53,\"docs/evidence/control-map-answers.json\":31,\"docs/evidence/current-question-check.json\":92,\"docs/evidence/key-01.json\":20,\"docs/evidence/key-02.json\":20,\"docs/evidence/key-03.json\":20,\"docs/evidence/key-04.json\":20,\"docs/evidence/key-05.json\":20,\"docs/evidence/key-06.json\":20,\"docs/evidence/key-07.json\":20,\"docs/evidence/key-08.json\":20,\"docs/evidence/key-09.json\":20,\"docs/evidence/key-10.json\":20,\"docs/evidence/key-11.json\":20,\"docs/evidence/key-12.json\":20,\"docs/evidence/key-13.json\":20,\"docs/evidence/offline-rehearsal.json\":27,\"docs/evidence/sepolia-readback.json\":749,\"docs/oracle-question-check.json\":96,\"forms/control-map-v1.txt\":150,\"foundry.toml\":31,\"launch.json\":40,\"script/AskSepolia.s.sol\":53,\"script/Deploy.s.sol\":90,\"script/check_launch.py\":69,\"script/prepare_control_map.py\":99,\"script/read_sepolia.py\":102,\"src/Arms.sol\":1014,\"src/ArmsForms.sol\":85,\"src/ArmsResults.sol\":136,\"src/Blocks.sol\":38,\"src/FormURI.sol\":22,\"src/ICourt.sol\":46,\"src/IIntake.sol\":21,\"src/IMDCourt.sol\":298,\"src/OracleAttestation.sol\":221,\"src/OracleQuestion.sol\":277,\"src/compat/EIP712.sol\":162,\"src/compat/LICENSE\":22,\"src/compat/Strings.sol\":43,\"src/mocks/MockCourt.sol\":111,\"src/mocks/MockToken.sol\":20,\"test/Arms.t.sol\":938,\"test/ArmsBase.t.sol\":203,\"test/ArmsInvariant.t.sol\":437,\"test/AuditRegressions.t.sol\":776,\"test/Compatibility.t.sol\":80,\"test/Deploy.t.sol\":104,\"test/IMDCourt.t.sol\":641,\"test/LaunchAdaptation.t.sol\":97,\"test/OracleConformance.t.sol\":138,\"test/mocks/MockIntake.sol\":87,\"test/test_deliverables.py\":62},\"excluded\":[\"lib/\",\"node_modules/\"],\"truncated\":false}","passed":true},{"durationMs":8097,"exitCode":0,"name":"slither","output":"[medium/medium] divide-before-multiply at src/Arms.sol:996: Arms._splitStake(uint256,Arms.Job,uint8,bytes32,uint256) (src/Arms.sol#996-1013) performs a multiplication on the result of a division:\n[medium/medium] reentrancy-no-eth at src/IMDCourt.sol:123: Reentrancy in IMDCourt.ask(bytes32,bytes32,string,uint8,uint256,address,uint256,bytes32,bytes32,address,uint256) (src/IMDCourt.sol#123-174):\n[medium/medium] reentrancy-no-eth at src/Arms.sol:781: Reentrancy in Arms.resolve(uint256,uint8,bytes32) (src/Arms.sol#781-828):\n[medium/medium] reentrancy-no-eth at src/Arms.sol:781: Reentrancy in Arms.resolve(uint256,uint8,bytes32) (src/Arms.sol#781-828):\n[medium/medium] reentrancy-no-eth at src/Arms.sol:931: Reentrancy in Arms._finalize(uint256,Arms.Job,bool) (src/Arms.sol#931-948):\n[medium/medium] uninitialized-local at src/ArmsResults.sol:101: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8).answered (src/ArmsResults.sol#101) is a local variable never initialized\n[medium/medium] uninitialized-local at src/ArmsResults.sol:99: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8).m (src/ArmsResults.sol#99) is a local variable never initialized\n[medium/medium] uninitialized-local at src/ArmsResults.sol:107: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8).found (src/ArmsResults.sol#107) is a local variable never initialized\n[medium/medium] uninitialized-local at src/Arms.sol:968: Arms._slash(uint256,Arms.Job,uint8,bytes32).total (src/Arms.sol#968) is a local variable never initialized\n[medium/medium] uninitialized-local at src/ArmsResults.sol:97: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8).vals (src/ArmsResults.sol#97) is a local variable never initialized\n[medium/medium] uninitialized-local at src/Arms.sol:580: Arms.timeout(uint256).revealed (src/Arms.sol#580) is a local variable never initialized\n[medium/medium] uninitialized-local at src/Arms.sol:999: Arms._splitStake(uint256,Arms.Job,uint8,bytes32,uint256).g (src/Arms.sol#999) is a local variable never initialized\n[medium/medium] uninitialized-local at src/ArmsResults.sol:98: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8).cnt (src/ArmsResults.sol#98) is a local variable never initialized\n[medium/medium] uninitialized-local at src/Arms.sol:621: Arms._closeNoShow(uint256,Arms.Job).revealed (src/Arms.sol#621) is a local variable never initialized\n[medium/medium] uninitialized-local at src/ArmsResults.sol:50: ArmsResults.settlement(uint256,bool).tieCorrect (src/ArmsResults.sol#50) is a local variable never initialized\n[medium/medium] uninitialized-local at src/ArmsResults.sol:122: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8).best (src/ArmsResults.sol#122) is a local variable never initialized\n[medium/medium] uninitialized-local at src/Arms.sol:591: Arms.timeout(uint256).removed (src/Arms.sol#591) is a local variable never initialized\n[medium/medium] uninitialized-local at src/Arms.sol:557: Arms.reveal(uint256,address,bytes32[],bytes32,string).v (src/Arms.sol#557) is a local variable never initialized\n[medium/medium] unused-return at src/ArmsResults.sol:70: ArmsResults.verdict(uint256) (src/ArmsResults.sol#70-90) ignores return value by (None,None,None,v.tieEvidence) = source.entries(id,j.tieBreaker) (src/ArmsResults.sol#88)\n[medium/medium] unused-return at src/Arms.sol:725: Arms.challenge(uint256,uint8,bytes32,uint256) (src/Arms.sol#725-778) ignores return value by (None,formURI) = formRegistry.forms(j.formId) (src/Arms.sol#763)\n[medium/medium] unused-return at src/ArmsResults.sol:70: ArmsResults.verdict(uint256) (src/ArmsResults.sol#70-90) ignores return value by (None,None,None,v.evidence[i]) = source.entries(id,v.arms[i]) (src/ArmsResults.sol#85)\n[low/medium] missing-zero-check at src/mocks/MockCourt.sol:41: MockCourt.constructor(address,uint256).feeToken_ (src/mocks/MockCourt.sol#41) lacks a zero-check on :\n[low/medium] calls-loop at src/ArmsResults.sol:43: ArmsResults.settlement(uint256,bool) (src/ArmsResults.sol#43-68) has external calls inside a loop: source.answerOf(id,voters[i],k) == value (src/ArmsResults.sol#60)\n[low/medium] calls-loop at src/ArmsResults.sol:92: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8) (src/ArmsResults.sol#92-135) has external calls inside a loop: v = source.answerOf(id,voters[i],key) (src/ArmsResults.sol#104)\n[low/medium] calls-loop at src/ArmsResults.sol:70: ArmsResults.verdict(uint256) (src/ArmsResults.sol#70-90) has external calls inside a loop: (None,None,None,v.evidence[i]) = source.entries(id,v.arms[i]) (src/ArmsResults.sol#85)\n[low/medium] calls-loop at src/Arms.sol:469: Arms.draw(uint256) (src/Arms.sol#469-499) has external calls inside a loop: a = formRegistry.candidate(j.formId,idx,jobId,j.feePerArm) (src/Arms.sol#485)\n[low/medium] calls-loop at src/Arms.sol:864: Arms._send(address,uint256) (src/Arms.sol#864-866) has external calls inside a loop: ! token.transfer(to,amount) (src/Arms.sol#865)\n[low/medium] calls-loop at src/ArmsResults.sol:92: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8) (src/ArmsResults.sol#92-135) has external calls inside a loop: v = source.answerOf(id,tie,key) (src/ArmsResults.sol#104)\n[low/medium] calls-loop at src/ArmsResults.sol:43: ArmsResults.settlement(uint256,bool) (src/ArmsResults.sol#43-68) has external calls inside a loop: withTie && disputed && source.answerOf(id,j.tieBreaker,k) == value (src/ArmsResults.sol#62)\n[low/medium] calls-loop at src/ArmsResults.sol:70: ArmsResults.verdict(uint256) (src/ArmsResults.sol#70-90) has external calls inside a loop: (v.values[k],v.statuses[k]) = source.results(id,k) (src/ArmsResults.sol#76)\n[low/medium] calls-loop at src/Arms.sol:864: Arms._send(address,uint256) (src/Arms.sol#864-866) has external calls inside a loop: ! token.transfer(to,amount) (src/Arms.sol#865)\n[low/medium] calls-loop at src/ArmsResults.sol:92: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8) (src/ArmsResults.sol#92-135) has external calls inside a loop: v = source.answerOf(id,voters[i],key) (src/ArmsResults.sol#104)\n[low/medium] calls-loop at src/Arms.sol:950: Arms._pay(uint256,Arms.Job,address,uint256) (src/Arms.sol#950-959) has external calls inside a loop: token.burn(burned) (src/Arms.sol#956)\n[low/medium] calls-loop at src/ArmsResults.sol:92: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8) (src/ArmsResults.sol#92-135) has external calls inside a loop: v = source.answerOf(id,tie,key) (src/ArmsResults.sol#104)\n[low/medium] reentrancy-benign at src/Arms.sol:417: Reentrancy in Arms.serve(bytes32,uint256) (src/Arms.sol#417-422):\n[low/medium] reentrancy-benign at src/IMDCourt.sol:123: Reentrancy in IMDCourt.ask(bytes32,bytes32,string,uint8,uint256,address,uint256,bytes32,bytes32,address,uint256) (src/IMDCourt.sol#123-174):\n[low/medium] reentrancy-benign at src/Arms.sol:931: Reentrancy in Arms._finalize(uint256,Arms.Job,bool) (src/Arms.sol#931-948):\n[low/medium] reentrancy-benign at src/Arms.sol:781: Reentrancy in Arms.resolve(uint256,uint8,bytes32) (src/Arms.sol#781-828):\n[low/medium] reentrancy-events at src/Arms.sol:417: Reentrancy in Arms.serve(bytes32,uint256) (src/Arms.sol#417-422):\n[low/medium] reentrancy-events at src/Arms.sol:695: Reentrancy in Arms.release(uint256) (src/Arms.sol#695-713):\n[low/medium] reentrancy-events at src/Arms.sol:931: Reentrancy in Arms._finalize(uint256,Arms.Job,bool) (src/Arms.sol#931-948):\n[low/medium] reentrancy-events at src/Arms.sol:424: Reentrancy in Arms.stopServing(bytes32) (src/Arms.sol#424-427):\n[low/medium] reentrancy-events at src/Arms.sol:618: Reentrancy in Arms._closeNoShow(uint256,Arms.Job) (src/Arms.sol#618-664):\n[low/medium] reentrancy-events at src/Arms.sol:503: Reentrancy in Arms.cancel(uint256) (src/Arms.sol#503-518):\n[low/medium] reentrancy-events at src/Arms.sol:433: Reentrancy in Arms.post(bytes32,uint256,address,uint256,uint256) (src/Arms.sol#433-460):\n[low/medium] reentrancy-events at src/Arms.sol:367: Reentrancy in Arms.withdraw() (src/Arms.sol#367-378):\n[low/medium] reentrancy-events at src/Arms.sol:781: Reentrancy in Arms.resolve(uint256,uint8,bytes32) (src/Arms.sol#781-828):\n[low/medium] reentrancy-events at src/Arms.sol:931: Reentrancy in Arms._finalize(uint256,Arms.Job,bool) (src/Arms.sol#931-948):\n[low/medium] reentrancy-events at src/Arms.sol:618: Reentrancy in Arms._closeNoShow(uint256,Arms.Job) (src/Arms.sol#618-664):\n[low/medium] reentrancy-events at src/Arms.sol:781: Reentrancy in Arms.resolve(uint256,uint8,bytes32) (src/Arms.sol#781-828):\n[low/medium] reentrancy-events at src/Arms.sol:725: Reentrancy in Arms.challenge(uint256,uint8,bytes32,uint256) (src/Arms.sol#725-778):\n[low/medium] reentrancy-events at src/Arms.sol:412: Reentrancy in Arms.registerForm(bytes32,uint8,string) (src/Arms.sol#412-415):\n[low/medium] reentrancy-events at src/IMDCourt.sol:123: Reentrancy in IMDCourt.ask(bytes32,bytes32,string,uint8,uint256,address,uint256,bytes32,bytes32,address,uint256) (src/IMDCourt.sol#123-174):\n[low/medium] reentrancy-events at src/Arms.sol:950: Reentrancy in Arms._pay(uint256,Arms.Job,address,uint256) (src/Arms.sol#950-959):\n[low/medium] reentrancy-events at src/Arms.sol:341: Reentrancy in Arms.bond(uint256) (src/Arms.sol#341-354):\n[low/medium] timestamp at src/Arms.sol:574: Arms.timeout(uint256) (src/Arms.sol#574-616) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:542: Arms.reveal(uint256,address,bytes32[],bytes32,string) (src/Arms.sol#542-570) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:725: Arms.challenge(uint256,uint8,bytes32,uint256) (src/Arms.sol#725-778) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:417: Arms.serve(bytes32,uint256) (src/Arms.sol#417-422) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:367: Arms.withdraw() (src/Arms.sol#367-378) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:469: Arms.draw(uint256) (src/Arms.sol#469-499) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:387: Arms.reactivate() (src/Arms.sol#387-395) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:521: Arms.commit(uint256,address,bytes32) (src/Arms.sol#521-539) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:277: Arms.constructor(address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256) (src/Arms.sol#277-335) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:503: Arms.cancel(uint256) (src/Arms.sol#503-518) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:695: Arms.release(uint256) (src/Arms.sol#695-713) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:669: Arms.settle(uint256) (src/Arms.sol#669-691) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:781: Arms.resolve(uint256,uint8,bytes32) (src/Arms.sol#781-828) uses timestamp for comparisons\n[low/medium] timestamp at src/OracleAttestation.sol:157: OracleAttestationConsumer._verifyAttestation(OracleAttestation.Attestation,bytes) (src/OracleAttestation.sol#157-165) uses timestamp for comparisons","passed":true},{"durationMs":667,"exitCode":0,"name":"aderyn","output":"[high] reentrancy-state-change at src/Arms.sol:419: Reentrancy: State change after external call (6 places)\n[low] centralization-risk at src/IMDCourt.sol:25: Centralization Risk (4 places)\n[low] costly-loop at src/Arms.sol:483: Costly operations inside loop (11 places)\n[low] internal-function-used-once at src/OracleAttestation.sol:200: Internal Function Used Only Once (3 places)\n[low] large-numeric-literal at src/Arms.sol:221: Large Numeric Literal (2 places)\n[low] literal-instead-of-constant at src/Arms.sol:294: Literal Instead of Constant (25 places)\n[low] local-variable-shadowing at src/Arms.sol:50: Local Variable Shadows State Variable (14 places)\n[low] missing-inheritance at src/Arms.sol:24: Missing Inheritance\n[low] push-zero-opcode at src/compat/EIP712.sol:6: PUSH0 Opcode (2 places)\n[low] require-revert-in-loop at src/Arms.sol:655: Loop Contains `require`/`revert` (5 places)\n[low] state-change-without-event at src/ArmsForms.sol:42: State Change Without Event (3 places)\n[low] uninitialized-local-variable at src/Arms.sol:483: Uninitialized Local Variable (26 places)\n[low] unsafe-erc20-operation at src/Arms.sol:760: Unsafe ERC20 Operation (3 places)\n[low] unspecific-solidity-pragma at src/compat/EIP712.sol:6: Unspecific Solidity Pragma\n[low] unused-error at src/Arms.sol:157: Unused Error (2 places)\n[low] unused-public-function at src/Arms.sol:397: Public Function Not Used Internally (2 places)","passed":true}],"detail":"all checks passed","evaluation":"checks","profile":"foundry","status":"accepted","submissionHash":"3ac0a0fef5f64e3800f74585427ac7306e79ca27b1b487d09f3f9ab12b356ed5","verifiedTreeHash":"d2c8107c62f8d0703785e89f58e1a6d7c0f4c871","verifierVersion":"0.1.0+435fe828"},{"checks":[{"durationMs":63550,"exitCode":0,"name":"build","output":"Compiling 71 files with Solc 0.8.26\nSolc 0.8.26 finished in 63.43s\nCompiler run successful!\n","passed":true},{"durationMs":1570,"exitCode":0,"name":"test","output":"No files changed, compilation skipped\n\nRan 4 tests for test/RevisionRegressions.t.sol:ExitCancelOptOutTest\n[PASS] test_checkpointsWrittenWhileExitingRecordZero() (gas: 1060494)\n[PASS] test_everyExitIntervalStaysClosedAcrossCycles() (gas: 2202971)\n[PASS] test_exitThenOneWeiBondDoesNotOptOutOfAnOlderJob() (gas: 996727)\n[PASS] test_jobPostedDuringExitStaysClosedAfterRejoin() (gas: 1291137)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 8.12ms (2.13ms CPU time)\n\nRan 3 tests for test/LaunchAdaptation.t.sol:TokenLaunchTest\n[PASS] testFuzz_transferAndBurnConserveSupply(uint96,uint96) (runs: 256, μ: 149442, ~: 150540)\nLogs:\n  Bound result 211189272154816414526\n  Bound result 211131788124345035534\n\n[PASS] test_noBurnFromEvenWithAllowance() (gas: 91891)\n[PASS] test_onlyConstructorMintsAndFactoryReceivesNothing() (gas: 98093)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 16.66ms (16.18ms CPU time)\n\nRan 3 tests for test/LaunchAdaptation.t.sol:ConfirmedBlockTest\n[PASS] testFuzz_confirmationBoundary(uint64,uint64) (runs: 256, μ: 220082, ~: 350344)\nLogs:\n  Bound result 9\n  Bound result 30\n\n[PASS] test_arbitrumUsesItsOwnHeightForConfirmation() (gas: 8506248)\n[PASS] test_futureAndUnconfirmedLocalBlocksFailBeforeEscrowMoves() (gas: 586718)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 17.71ms (12.79ms CPU time)\n\nRan 3 tests for test/RevisionRegressions.t.sol:LatestVerdictTest\n[PASS] test_allUnknownJobDoesNotReplaceTheLatestVerdict() (gas: 3916711)\n[PASS] test_olderBlockDoesNotReplaceTheLatestVerdict() (gas: 7887109)\n[PASS] test_partlyAnsweredJobIsTheLatest() (gas: 3886379)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 17.72ms (11.85ms CPU time)\n\nRan 2 tests for test/Deploy.t.sol:DeployTest\n[PASS] test_deployRejectsAnotherChain() (gas: 12705759)\n[PASS] test_deploySepoliaConfig() (gas: 65589052)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 73.22ms (73.17ms CPU time)\n\nRan 2 tests for test/RevisionRegressions.t.sol:ClaimedAfterNeitherTest\n[PASS] test_claimedAfterNeitherOnTheSameKeyCorrectsIt() (gas: 4032017)\n[PASS] test_claimedThenNeitherLeavesTheCorrection() (gas: 3637677)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 82.33ms (4.06ms CPU time)\n\nRan 4 tests for test/OracleConformance.t.sol:OracleConsumerConformanceTest\n[PASS] test_acceptsAFreshSignatureFromTheVectorKey() (gas: 1961084)\n[PASS] test_callbackSelectorIsCanonical() (gas: 3925)\n[PASS] test_digestMatchesTheProtocol() (gas: 13799)\n[PASS] test_questionHashMatchesTheProtocolVector() (gas: 41781)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 93.14ms (6.18ms CPU time)\n\nRan 33 tests for test/Arms.t.sol:ArmsTest\n[PASS] testFuzz_bondWithdrawRoundTrip(uint96,uint32) (runs: 256, μ: 431158, ~: 431108)\nLogs:\n  Bound result 41008\n  Bound result 30337201\n\n[PASS] testFuzz_commitHashBindsJobArmValuesSalt(bytes32,bytes32) (runs: 256, μ: 1239167, ~: 1239339)\n[PASS] testFuzz_settlePaymentsNeverExceedEscrow(bytes32,bytes32,uint8) (runs: 256, μ: 2089312, ~: 2117756)\n[PASS] test_bond_capsAndExit() (gas: 775920)\n[PASS] test_bond_totalCap() (gas: 8165212)\n[PASS] test_cancel_refundsAndUnlocks() (gas: 1313397)\n[PASS] test_challenge_rules() (gas: 3978144)\n[PASS] test_commitReveal_rules() (gas: 1592738)\n[PASS] test_constructor_rejectsBadParams() (gas: 678308)\n[PASS] test_draw_excludesPosterAndIneligible() (gas: 1911168)\n[PASS] test_draw_expiredSeedIsNeverReplaced() (gas: 489821)\n[PASS] test_draw_tooEarlyThenFills() (gas: 843602)\n[PASS] test_noOwnerAdminPauseOrUpgrade() (gas: 434257)\n[PASS] test_post_rules() (gas: 612806)\n[PASS] test_registerForm_rules() (gas: 372411)\n[PASS] test_resolve_claimedCorrectsSlashesRefundsRewards() (gas: 3484261)\n[PASS] test_resolve_neitherOverturnsHoldsRewardThenBurnsIt() (gas: 3251876)\n[PASS] test_resolve_noRulingAfterCourtDeadline() (gas: 2983024)\n[PASS] test_resolve_secondSlashBurnsAndArmsLoseOneTrancheOnly() (gas: 3969599)\n[PASS] test_resolve_storedAfterOverturnBurnsStakeWhenEveryGiverWasSlashed() (gas: 3672139)\n[PASS] test_resolve_storedSplitsStakeAmongArms() (gas: 3110817)\n[PASS] test_serve_rules() (gas: 420789)\n[PASS] test_setSigner_commitsAndReveals() (gas: 1589877)\n[PASS] test_settle_agreedPaysBurnsReturns() (gas: 2321347)\n[PASS] test_settle_disputeGoesToTieBreakAndMajority() (gas: 2904824)\n[PASS] test_settle_unavailableTieBreakLeavesDisputedKeysUnresolved() (gas: 3367063)\n[PASS] test_settle_unknownNeverPaidAndNotApplicableIsAnAnswer() (gas: 2086011)\n[PASS] test_spotCheck_threeArmsMajorityWithoutTieBreak() (gas: 38653876)\n[PASS] test_tieBreakerIsSlashedWhenItGaveTheStoredValue() (gas: 3781094)\n[PASS] test_timeout_afterEveryoneRevealedIsNotATimeout() (gas: 1996429)\n[PASS] test_timeout_commitMissStrikesAndReplaces() (gas: 2545514)\n[PASS] test_timeout_revealMissAndDeactivation() (gas: 41144885)\n[PASS] test_withdraw_onlyUnlocked() (gas: 1008506)\nSuite result: ok. 33 passed; 0 failed; 0 skipped; finished in 95.84ms (344.15ms CPU time)\n\nRan 6 tests for test/RevisionRegressions.t.sol:DrawOptOutTest\n[PASS] test_feeRaiseDoesNotApplyToAnOlderJob() (gas: 1318254)\n[PASS] test_lateServeFeeCutOrReServeDoesNotOptIn() (gas: 2592359)\n[PASS] test_newlyActiveBondStillInvalidatesOlderJobs() (gas: 437356)\n[PASS] test_reServeDoesNotOptOutOfAnOlderJob() (gas: 859894)\n[PASS] test_topUpAfterPostDoesNotOptIn() (gas: 2145233)\n[PASS] test_topUpDoesNotOptOutOfAnOlderJob() (gas: 876668)\nSuite result: ok. 6 passed; 0 failed; 0 skipped; finished in 96.54ms (3.52ms CPU time)\n\nRan 3 tests for test/RevisionRegressions.t.sol:StoredStakeTest\n[PASS] test_releaseAfterStoredRulingOnAnOverturnedJob() (gas: 3772407)\n[PASS] test_storedRulingForfeitsTheStakeInEitherResolveOrder() (gas: 7797716)\n[PASS] test_storedRulingPaysTheGivers() (gas: 2782696)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 179.64ms (7.76ms CPU time)\n\nRan 4 tests for test/Compatibility.t.sol:CompatibilityTest\n[PASS] testFuzz_domainDigestAndIntrospectionMatch(bytes32,uint64) (runs: 256, μ: 1845464, ~: 1845464)\n[PASS] testFuzz_stringsMatchProtectedDependency(uint256,address) (runs: 256, μ: 67742, ~: 61082)\n[PASS] test_decimalBoundariesAndHexPadding() (gas: 4642240)\n[PASS] test_hexOverflowKeepsOriginalError() (gas: 7214)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 179.91ms (256.45ms CPU time)\n\nRan 3 tests for test/RevisionRegressions.t.sol:RemoteHeadTest\n[PASS] testFuzz_remoteBoundary(uint64,uint64) (runs: 256, μ: 302292, ~: 428601)\nLogs:\n  Bound result 3\n  Bound result 30\n\n[PASS] test_realCourtHeadIsOwnerPublishedForwardOnlyAndRemoteOnly() (gas: 11914001)\n[PASS] test_remotePostIsBoundedByTheCourtsConfirmedHead() (gas: 997448)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 179.88ms (180.67ms CPU time)\n\nRan 18 tests for test/IMDCourt.t.sol:IMDCourtTest\n[PASS] testFuzz_questionUsesOneBasedFormKey(uint8) (runs: 256, μ: 1107135, ~: 1093700)\nLogs:\n  Bound result 29\n\n[PASS] test_ask_buildsExactBodyAndPullsFee() (gas: 2755807)\n[PASS] test_ask_refusesDuplicateAndFeeAboveMax() (gas: 3965436)\n[PASS] test_ask_whenNotSoldReverts() (gas: 134844)\n[PASS] test_callback_answerCodes() (gas: 6711759)\n[PASS] test_callback_refusals() (gas: 2968723)\n[PASS] test_callback_storesRulingUnder200kGas() (gas: 2742718)\n[PASS] test_controlMapSpotCheckSlashesOnlyTheTwoWrongArms() (gas: 12860621)\n[PASS] test_controlMapTwoRoundsAndChallengeAccounting() (gas: 12153627)\n[PASS] test_failure_closesCaseWithoutRuling() (gas: 2751247)\n[PASS] test_fullChallengeNoAnswerEndsAtCourtDeadline() (gas: 4469496)\n[PASS] test_fullChallengeThroughIMDCourt() (gas: 5323597)\n[PASS] test_intakeMigrationPreservesPendingRequestsAndNamespacesIds() (gas: 6276645)\n[PASS] test_newActionAndAssetRecoverRetiredSale() (gas: 2717635)\n[PASS] test_oldIntakeFailureStillClosesOnlyItsCaseAfterMigration() (gas: 3517796)\n[PASS] test_oracleConfigurationOnlyLaunchOwnerAndNoZeroSettings() (gas: 198181)\n[PASS] test_question_refusesNonAsciiAndUppercaseHexValue() (gas: 164911)\n[PASS] test_signerRotationRecoversPendingCaseAndRevokesOldSigner() (gas: 2770640)\nSuite result: ok. 18 passed; 0 failed; 0 skipped; finished in 179.93ms (282.43ms CPU time)\n\nRan 28 tests for test/AuditRegressions.t.sol:AuditRegressionsTest\n[PASS] testFuzz_audit6_compensationConservesFundsAndOnlyDebitsNoShows(bool,uint64) (runs: 256, μ: 2225873, ~: 2305518)\nLogs:\n  Bound result 9996\n\n[PASS] testFuzz_audit6_tieNoShowClosesWithoutReplacement(bool) (runs: 256, μ: 2562161, ~: 2517044)\n[PASS] test_audit12_arbitrumBlockModeComesFromChainId() (gas: 11333276)\n[PASS] test_audit13_arbitrumExpiredSeedIsRefusedToo() (gas: 10989079)\n[PASS] test_audit13_drawDoesNotDependOnTheBlockItIsCalledIn() (gas: 3869059)\n[PASS] test_audit13_expiredSeedJobIsRefundedByCancelAndAReposterGetsANewSeed() (gas: 1721851)\n[PASS] test_audit13_expiredTieSeedIsNotRedrawnAndTheDisputedKeySettlesUnresolved() (gas: 2397118)\n[PASS] test_audit13_replacementDrawHasOneSeedToo() (gas: 1360637)\n[PASS] test_audit14_noShowCloseDoesNotReplaceTheLatestVerdict() (gas: 8313823)\n[PASS] test_audit1_flatConstructorConstantsAndDerivedMinBond() (gas: 8621926)\n[PASS] test_audit2_attemptsContinueWithOneSeedAndAreBounded() (gas: 1995986)\n[PASS] test_audit2_exitAndStopOnlyExcludeLaterJobs() (gas: 2940613)\n[PASS] test_audit2_exitAndStopRespectPostingOrderWithinOneBlock() (gas: 2837808)\n[PASS] test_audit2_jobRecordsLengthBlockAndPicksByFormula() (gas: 869904)\n[PASS] test_audit2_listIsAppendOnlyAndLateEntriesCannotReshapeDraw() (gas: 1706234)\n[PASS] test_audit2_slashAfterPostingInvalidatesEligibility() (gas: 3898439)\n[PASS] test_audit2_stateChangeInPostingBlockOrAfterExcludesOldJob() (gas: 4429501)\n[PASS] test_audit3_serveRequiresMinimumBond() (gas: 599153)\n[PASS] test_audit4_threeArmsNeverDrawFourthMixedKeys() (gas: 2622236)\n[PASS] test_audit4_threeDistinctAnswersRefundAllEscrow() (gas: 2949066)\n[PASS] test_audit5_timeoutNeverStrikesTimelyTieRevealer() (gas: 2845479)\n[PASS] test_audit6_noShowCompensationPreservesOtherJobsLocks() (gas: 4288610)\n[PASS] test_audit6_revealNoShowPaysRevealerRefundsPosterAndCannotCancel() (gas: 2518849)\n[PASS] test_audit6_zeroRevealsCanReplaceWithoutReducingBonds() (gas: 2946538)\n[PASS] test_audit7_formIdBindsEveryField() (gas: 308453)\n[PASS] test_audit7_uriCharactersAndCourtQuotes() (gas: 13221112)\n[PASS] test_audit8_armAddressCanAlsoSignForAnotherArm() (gas: 1947514)\n[PASS] test_audit8_sharedSignerNamesArmAndRevocationIsIndependent() (gas: 2113080)\nSuite result: ok. 28 passed; 0 failed; 0 skipped; finished in 179.88ms (262.14ms CPU time)\n\nRan 1 test for test/ArmsInvariant.t.sol:ArmsInvariantTest\n[PASS]\nArmsInvariantTest invariants:\n[PASS] invariant_balanceEqualsBondsEscrowStakesRewards\n[PASS] invariant_bondsSumAndLockedWithinBond\n[PASS] invariant_handlerPropertiesHeld\n[PASS] invariant_operatorNeverGains\n[PASS] invariant_posterNeverGetsMoreThanEscrowPlusOneRefund\n[PASS] invariant_supplyEqualsAllHolders\n ArmsInvariantTest invariants (runs: 64, calls: 2560, reverts: 26)\n\n╭-------------+-----------------+-------+---------+----------╮\n| Contract    | Selector        | Calls | Reverts | Discards |\n+============================================================+\n| ArmsHandler | answer          | 186   | 4       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | bond            | 135   | 22      | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | cancel          | 158   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | challenge       | 162   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | draw            | 163   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | exitAndWithdraw | 181   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | post            | 167   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | reactivate      | 166   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | release         | 187   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | requestExit     | 169   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | resolve         | 184   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | rule            | 167   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | settle          | 162   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | timeout         | 191   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | warp            | 182   | 0       | 0        |\n╰-------------+-----------------+-------+---------+----------╯\n\nLogs:\n  Bound result 13810\n  Bound result 4\n  Bound result 23295\n  Bound result 97\n  Bound result 17727\n  Bound result 28000000000000000000\n  Bound result 16564\n\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 1.45s (1.45s CPU time)\n\nRan 15 test suites in 1.45s (2.85s CPU time): 117 tests passed, 0 failed, 0 skipped (117 total tests)\n","passed":true},{"durationMs":81,"exitCode":0,"name":"source-index","output":"{\"v\":1,\"entryPoints\":[\"Arms.bond(uint256)\",\"Arms.cancel(uint256)\",\"Arms.challenge(uint256,uint8,bytes32,uint256)\",\"Arms.commit(uint256,address,bytes32)\",\"Arms.draw(uint256)\",\"Arms.post(bytes32,uint256,address,uint256,uint256)\",\"Arms.reactivate()\",\"Arms.registerForm(bytes32,uint8,string)\",\"Arms.release(uint256)\",\"Arms.requestExit()\",\"Arms.resolve(uint256,uint8,bytes32)\",\"Arms.reveal(uint256,address,bytes32[],bytes32,string)\",\"Arms.serve(bytes32,uint256)\",\"Arms.setSigner(address)\",\"Arms.settle(uint256)\",\"Arms.stopServing(bytes32)\",\"Arms.timeout(uint256)\",\"Arms.withdraw()\",\"ArmsForms.noteBond(address,uint256,uint256)\",\"ArmsForms.register(bytes32,uint8,string)\",\"ArmsForms.serve(bytes32,address,uint256,uint256)\",\"ArmsForms.stop(bytes32,address,uint256,uint256)\",\"IMDCourt.ask(bytes32,bytes32,string,uint8,uint256,address,uint256,bytes32,bytes32,address,uint256)\",\"IMDCourt.onOracleFailure(bytes32,uint8,bytes32,uint16,uint16,bytes)\",\"IMDCourt.onOracleResult(bytes32,(bytes32,uint256,bytes32,uint8,bytes,uint256,uint64,uint64,bytes32,bytes32,uint16,uint16,uint16,uint64,uint64),bytes)\",\"IMDCourt.renounceOwnership()\",\"IMDCourt.setConfirmedHead(uint256,uint256)\",\"IMDCourt.setOracleConfig(address,address,bytes32)\",\"IMDCourt.setSigner(address)\",\"IMDCourt.transferOwnership(address)\"],\"files\":{\".gitignore\":4,\"ADAPTATION.md\":212,\"AUDIT.md\":97,\"README.md\":481,\"REVIEW.md\":112,\"docs/evidence/ImdTest-verified-source.json\":657,\"docs/evidence/Intake-verified-source.json\":1267,\"docs/evidence/base-provenance.json\":22,\"docs/evidence/consumer-schema-preflight.json\":53,\"docs/evidence/control-map-answers.json\":31,\"docs/evidence/current-question-check.json\":92,\"docs/evidence/key-01.json\":20,\"docs/evidence/key-02.json\":20,\"docs/evidence/key-03.json\":20,\"docs/evidence/key-04.json\":20,\"docs/evidence/key-05.json\":20,\"docs/evidence/key-06.json\":20,\"docs/evidence/key-07.json\":20,\"docs/evidence/key-08.json\":20,\"docs/evidence/key-09.json\":20,\"docs/evidence/key-10.json\":20,\"docs/evidence/key-11.json\":20,\"docs/evidence/key-12.json\":20,\"docs/evidence/key-13.json\":20,\"docs/evidence/offline-rehearsal.json\":27,\"docs/evidence/sepolia-readback.json\":749,\"docs/oracle-question-check.json\":96,\"forms/control-map-v1.txt\":150,\"foundry.toml\":31,\"launch.json\":40,\"script/AskSepolia.s.sol\":53,\"script/Deploy.s.sol\":90,\"script/check_launch.py\":69,\"script/prepare_control_map.py\":99,\"script/read_sepolia.py\":102,\"src/Arms.sol\":1045,\"src/ArmsForms.sol\":117,\"src/ArmsResults.sol\":156,\"src/Blocks.sol\":38,\"src/FormURI.sol\":22,\"src/ICourt.sol\":51,\"src/IIntake.sol\":21,\"src/IMDCourt.sol\":311,\"src/OracleAttestation.sol\":221,\"src/OracleQuestion.sol\":277,\"src/compat/EIP712.sol\":162,\"src/compat/LICENSE\":22,\"src/compat/Strings.sol\":43,\"src/mocks/MockCourt.sol\":129,\"src/mocks/MockToken.sol\":20,\"test/Arms.t.sol\":943,\"test/ArmsBase.t.sol\":203,\"test/ArmsInvariant.t.sol\":437,\"test/AuditRegressions.t.sol\":793,\"test/Compatibility.t.sol\":80,\"test/Deploy.t.sol\":106,\"test/IMDCourt.t.sol\":644,\"test/LaunchAdaptation.t.sol\":97,\"test/OracleConformance.t.sol\":138,\"test/RevisionRegressions.t.sol\":569,\"test/mocks/MockIntake.sol\":87,\"test/test_deliverables.py\":62},\"excluded\":[\"lib/\",\"node_modules/\"],\"truncated\":false}","passed":true},{"durationMs":8755,"exitCode":0,"name":"slither","output":"[medium/medium] divide-before-multiply at src/Arms.sol:1032: Arms._splitStake(uint256,Arms.Job,uint8,bytes32,uint256) (src/Arms.sol#1032-1044) performs a multiplication on the result of a division:\n[medium/medium] reentrancy-no-eth at src/Arms.sol:795: Reentrancy in Arms.resolve(uint256,uint8,bytes32) (src/Arms.sol#795-845):\n[medium/medium] reentrancy-no-eth at src/Arms.sol:963: Reentrancy in Arms._finalize(uint256,Arms.Job,bool) (src/Arms.sol#963-988):\n[medium/medium] reentrancy-no-eth at src/Arms.sol:1002: Reentrancy in Arms._slash(uint256,Arms.Job,uint8,bytes32) (src/Arms.sol#1002-1029):\n[medium/medium] reentrancy-no-eth at src/Arms.sol:795: Reentrancy in Arms.resolve(uint256,uint8,bytes32) (src/Arms.sol#795-845):\n[medium/medium] reentrancy-no-eth at src/Arms.sol:637: Reentrancy in Arms._closeNoShow(uint256,Arms.Job) (src/Arms.sol#637-682):\n[medium/medium] reentrancy-no-eth at src/IMDCourt.sol:136: Reentrancy in IMDCourt.ask(bytes32,bytes32,string,uint8,uint256,address,uint256,bytes32,bytes32,address,uint256) (src/IMDCourt.sol#136-187):\n[medium/medium] uninitialized-local at src/ArmsResults.sol:121: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8).answered (src/ArmsResults.sol#121) is a local variable never initialized\n[medium/medium] uninitialized-local at src/Arms.sol:965: Arms._finalize(uint256,Arms.Job,bool).answered (src/Arms.sol#965) is a local variable never initialized\n[medium/medium] uninitialized-local at src/ArmsResults.sol:119: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8).m (src/ArmsResults.sol#119) is a local variable never initialized\n[medium/medium] uninitialized-local at src/ArmsResults.sol:127: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8).found (src/ArmsResults.sol#127) is a local variable never initialized\n[medium/medium] uninitialized-local at src/ArmsResults.sol:117: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8).vals (src/ArmsResults.sol#117) is a local variable never initialized\n[medium/medium] uninitialized-local at src/ArmsResults.sol:118: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8).cnt (src/ArmsResults.sol#118) is a local variable never initialized\n[medium/medium] uninitialized-local at src/Arms.sol:639: Arms._closeNoShow(uint256,Arms.Job).revealed (src/Arms.sol#639) is a local variable never initialized\n[medium/medium] uninitialized-local at src/ArmsResults.sol:51: ArmsResults.settlement(uint256,bool).tieCorrect (src/ArmsResults.sol#51) is a local variable never initialized\n[medium/medium] uninitialized-local at src/ArmsResults.sol:142: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8).best (src/ArmsResults.sol#142) is a local variable never initialized\n[medium/medium] uninitialized-local at src/Arms.sol:605: Arms.timeout(uint256).removed (src/Arms.sol#605) is a local variable never initialized\n[medium/medium] uninitialized-local at src/Arms.sol:574: Arms.reveal(uint256,address,bytes32[],bytes32,string).v (src/Arms.sol#574) is a local variable never initialized\n[medium/medium] unused-return at src/Arms.sol:739: Arms.challenge(uint256,uint8,bytes32,uint256) (src/Arms.sol#739-792) ignores return value by (None,formURI) = formRegistry.forms(j.formId) (src/Arms.sol#777)\n[medium/medium] unused-return at src/ArmsResults.sol:90: ArmsResults.verdict(uint256) (src/ArmsResults.sol#90-110) ignores return value by (None,None,None,v.evidence[i]) = source.entries(id,v.arms[i]) (src/ArmsResults.sol#105)\n[medium/medium] unused-return at src/ArmsResults.sol:90: ArmsResults.verdict(uint256) (src/ArmsResults.sol#90-110) ignores return value by (None,None,None,v.tieEvidence) = source.entries(id,j.tieBreaker) (src/ArmsResults.sol#108)\n[medium/medium] unused-return at src/ArmsForms.sol:63: ArmsForms.serve(bytes32,address,uint256,uint256) (src/ArmsForms.sol#63-74) ignores return value by feeHistory[id][arm].push(SafeCast.toUint48(lastJob),SafeCast.toUint208(fee)) (src/ArmsForms.sol#73)\n[medium/medium] unused-return at src/ArmsForms.sol:77: ArmsForms.stop(bytes32,address,uint256,uint256) (src/ArmsForms.sol#77-82) ignores return value by feeHistory[id][arm].push(SafeCast.toUint48(lastJob),0) (src/ArmsForms.sol#81)\n[medium/medium] unused-return at src/ArmsForms.sol:85: ArmsForms.noteBond(address,uint256,uint256) (src/ArmsForms.sol#85-87) ignores return value by bondHistory[arm].push(SafeCast.toUint48(lastJob),SafeCast.toUint208(bond)) (src/ArmsForms.sol#86)\n[low/medium] missing-zero-check at src/mocks/MockCourt.sol:41: MockCourt.constructor(address,uint256).feeToken_ (src/mocks/MockCourt.sol#41) lacks a zero-check on :\n[low/medium] calls-loop at src/Arms.sol:883: Arms._send(address,uint256) (src/Arms.sol#883-885) has external calls inside a loop: ! token.transfer(to,amount) (src/Arms.sol#884)\n[low/medium] calls-loop at src/Arms.sol:905: Arms._checkpointBond(address) (src/Arms.sol#905-908) has external calls inside a loop: formRegistry.noteBond(a,jobCount,s.bond) (src/Arms.sol#907)\n[low/medium] calls-loop at src/Arms.sol:905: Arms._checkpointBond(address) (src/Arms.sol#905-908) has external calls inside a loop: formRegistry.noteBond(a,jobCount,s.bond) (src/Arms.sol#907)\n[low/medium] calls-loop at src/ArmsResults.sol:112: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8) (src/ArmsResults.sol#112-155) has external calls inside a loop: v = source.answerOf(id,tie,key) (src/ArmsResults.sol#124)\n[low/medium] calls-loop at src/Arms.sol:910: Arms._eligible(uint256,Arms.Job,address) (src/Arms.sol#910-920) has external calls inside a loop: b = formRegistry.bondAsOf(a,jobId) (src/Arms.sol#917)\n[low/medium] calls-loop at src/Arms.sol:905: Arms._checkpointBond(address) (src/Arms.sol#905-908) has external calls inside a loop: formRegistry.noteBond(a,jobCount,0) (src/Arms.sol#907)\n[low/medium] calls-loop at src/ArmsResults.sol:90: ArmsResults.verdict(uint256) (src/ArmsResults.sol#90-110) has external calls inside a loop: (v.values[k],v.statuses[k]) = source.results(id,k) (src/ArmsResults.sol#96)\n[low/medium] calls-loop at src/ArmsResults.sol:112: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8) (src/ArmsResults.sol#112-155) has external calls inside a loop: v = source.answerOf(id,voters[i],key) (src/ArmsResults.sol#124)\n[low/medium] calls-loop at src/Arms.sol:990: Arms._pay(uint256,Arms.Job,address,uint256) (src/Arms.sol#990-999) has external calls inside a loop: token.burn(burned) (src/Arms.sol#996)\n[low/medium] calls-loop at src/ArmsResults.sol:73: ArmsResults.givers(uint256,uint8,bytes32) (src/ArmsResults.sol#73-88) has external calls inside a loop: ! source.slashedIn(id,a) && source.answerOf(id,a,key) == value (src/ArmsResults.sol#83)\n[low/medium] calls-loop at src/ArmsResults.sol:44: ArmsResults.settlement(uint256,bool) (src/ArmsResults.sol#44-69) has external calls inside a loop: withTie && disputed && source.answerOf(id,j.tieBreaker,k) == value (src/ArmsResults.sol#63)\n[low/medium] calls-loop at src/ArmsResults.sol:90: ArmsResults.verdict(uint256) (src/ArmsResults.sol#90-110) has external calls inside a loop: (None,None,None,v.evidence[i]) = source.entries(id,v.arms[i]) (src/ArmsResults.sol#105)\n[low/medium] calls-loop at src/ArmsResults.sol:112: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8) (src/ArmsResults.sol#112-155) has external calls inside a loop: v = source.answerOf(id,tie,key) (src/ArmsResults.sol#124)\n[low/medium] calls-loop at src/Arms.sol:486: Arms.draw(uint256) (src/Arms.sol#486-516) has external calls inside a loop: a = formRegistry.candidate(j.formId,idx,jobId,j.feePerArm) (src/Arms.sol#502)\n[low/medium] calls-loop at src/Arms.sol:905: Arms._checkpointBond(address) (src/Arms.sol#905-908) has external calls inside a loop: formRegistry.noteBond(a,jobCount,0) (src/Arms.sol#907)\n[low/medium] calls-loop at src/ArmsResults.sol:44: ArmsResults.settlement(uint256,bool) (src/ArmsResults.sol#44-69) has external calls inside a loop: source.answerOf(id,voters[i],k) == value (src/ArmsResults.sol#61)\n[low/medium] calls-loop at src/Arms.sol:883: Arms._send(address,uint256) (src/Arms.sol#883-885) has external calls inside a loop: ! token.transfer(to,amount) (src/Arms.sol#884)\n[low/medium] calls-loop at src/ArmsResults.sol:112: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8) (src/ArmsResults.sol#112-155) has external calls inside a loop: v = source.answerOf(id,voters[i],key) (src/ArmsResults.sol#124)\n[low/medium] reentrancy-benign at src/Arms.sol:637: Reentrancy in Arms._closeNoShow(uint256,Arms.Job) (src/Arms.sol#637-682):\n[low/medium] reentrancy-benign at src/IMDCourt.sol:136: Reentrancy in IMDCourt.ask(bytes32,bytes32,string,uint8,uint256,address,uint256,bytes32,bytes32,address,uint256) (src/IMDCourt.sol#136-187):\n[low/medium] reentrancy-benign at src/Arms.sol:795: Reentrancy in Arms.resolve(uint256,uint8,bytes32) (src/Arms.sol#795-845):\n[low/medium] reentrancy-benign at src/Arms.sol:963: Reentrancy in Arms._finalize(uint256,Arms.Job,bool) (src/Arms.sol#963-988):\n[low/medium] reentrancy-benign at src/Arms.sol:1002: Reentrancy in Arms._slash(uint256,Arms.Job,uint8,bytes32) (src/Arms.sol#1002-1029):\n[low/medium] reentrancy-events at src/Arms.sol:963: Reentrancy in Arms._finalize(uint256,Arms.Job,bool) (src/Arms.sol#963-988):\n[low/medium] reentrancy-events at src/Arms.sol:795: Reentrancy in Arms.resolve(uint256,uint8,bytes32) (src/Arms.sol#795-845):\n[low/medium] reentrancy-events at src/Arms.sol:637: Reentrancy in Arms._closeNoShow(uint256,Arms.Job) (src/Arms.sol#637-682):\n[low/medium] reentrancy-events at src/Arms.sol:342: Reentrancy in Arms.bond(uint256) (src/Arms.sol#342-363):\n[low/medium] reentrancy-events at src/Arms.sol:637: Reentrancy in Arms._closeNoShow(uint256,Arms.Job) (src/Arms.sol#637-682):\n[low/medium] reentrancy-events at src/Arms.sol:990: Reentrancy in Arms._pay(uint256,Arms.Job,address,uint256) (src/Arms.sol#990-999):\n[low/medium] reentrancy-events at src/Arms.sol:431: Reentrancy in Arms.serve(bytes32,uint256) (src/Arms.sol#431-435):\n[low/medium] reentrancy-events at src/Arms.sol:739: Reentrancy in Arms.challenge(uint256,uint8,bytes32,uint256) (src/Arms.sol#739-792):\n[low/medium] reentrancy-events at src/Arms.sol:963: Reentrancy in Arms._finalize(uint256,Arms.Job,bool) (src/Arms.sol#963-988):\n[low/medium] reentrancy-events at src/Arms.sol:520: Reentrancy in Arms.cancel(uint256) (src/Arms.sol#520-535):\n[low/medium] reentrancy-events at src/Arms.sol:637: Reentrancy in Arms._closeNoShow(uint256,Arms.Job) (src/Arms.sol#637-682):\n[low/medium] reentrancy-events at src/Arms.sol:795: Reentrancy in Arms.resolve(uint256,uint8,bytes32) (src/Arms.sol#795-845):\n[low/medium] reentrancy-events at src/Arms.sol:1002: Reentrancy in Arms._slash(uint256,Arms.Job,uint8,bytes32) (src/Arms.sol#1002-1029):\n[low/medium] reentrancy-events at src/Arms.sol:378: Reentrancy in Arms.withdraw() (src/Arms.sol#378-390):\n[low/medium] reentrancy-events at src/Arms.sol:366: Reentrancy in Arms.requestExit() (src/Arms.sol#366-375):\n[low/medium] reentrancy-events at src/IMDCourt.sol:136: Reentrancy in IMDCourt.ask(bytes32,bytes32,string,uint8,uint256,address,uint256,bytes32,bytes32,address,uint256) (src/IMDCourt.sol#136-187):\n[low/medium] reentrancy-events at src/Arms.sol:424: Reentrancy in Arms.registerForm(bytes32,uint8,string) (src/Arms.sol#424-427):\n[low/medium] reentrancy-events at src/Arms.sol:713: Reentrancy in Arms.release(uint256) (src/Arms.sol#713-727):\n[low/medium] reentrancy-events at src/Arms.sol:446: Reentrancy in Arms.post(bytes32,uint256,address,uint256,uint256) (src/Arms.sol#446-477):\n[low/medium] reentrancy-events at src/Arms.sol:437: Reentrancy in Arms.stopServing(bytes32) (src/Arms.sol#437-440):\n[low/medium] timestamp at src/Arms.sol:486: Arms.draw(uint256) (src/Arms.sol#486-516) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:591: Arms.timeout(uint256) (src/Arms.sol#591-630) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:687: Arms.settle(uint256) (src/Arms.sol#687-709) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:713: Arms.release(uint256) (src/Arms.sol#713-727) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:399: Arms.reactivate() (src/Arms.sol#399-407) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:378: Arms.withdraw() (src/Arms.sol#378-390) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:431: Arms.serve(bytes32,uint256) (src/Arms.sol#431-435) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:739: Arms.challenge(uint256,uint8,bytes32,uint256) (src/Arms.sol#739-792) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:520: Arms.cancel(uint256) (src/Arms.sol#520-535) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:278: Arms.constructor(address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256) (src/Arms.sol#278-336) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:538: Arms.commit(uint256,address,bytes32) (src/Arms.sol#538-556) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:795: Arms.resolve(uint256,uint8,bytes32) (src/Arms.sol#795-845) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:963: Arms._finalize(uint256,Arms.Job,bool) (src/Arms.sol#963-988) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:559: Arms.reveal(uint256,address,bytes32[],bytes32,string) (src/Arms.sol#559-587) uses timestamp for comparisons\n[low/medium] timestamp at src/OracleAttestation.sol:157: OracleAttestationConsumer._verifyAttestation(OracleAttestation.Attestation,bytes) (src/OracleAttestation.sol#157-165) uses timestamp for comparisons","passed":true},{"durationMs":673,"exitCode":0,"name":"aderyn","output":"[high] reentrancy-state-change at src/Arms.sol:450: Reentrancy: State change after external call (6 places)\n[low] centralization-risk at src/IMDCourt.sol:25: Centralization Risk (5 places)\n[low] costly-loop at src/Arms.sol:500: Costly operations inside loop (11 places)\n[low] internal-function-used-once at src/OracleAttestation.sol:200: Internal Function Used Only Once (3 places)\n[low] large-numeric-literal at src/Arms.sol:221: Large Numeric Literal (2 places)\n[low] literal-instead-of-constant at src/Arms.sol:295: Literal Instead of Constant (25 places)\n[low] local-variable-shadowing at src/Arms.sol:50: Local Variable Shadows State Variable (14 places)\n[low] missing-inheritance at src/Arms.sol:24: Missing Inheritance\n[low] push-zero-opcode at src/compat/EIP712.sol:6: PUSH0 Opcode (2 places)\n[low] require-revert-in-loop at src/Arms.sol:673: Loop Contains `require`/`revert` (5 places)\n[low] state-change-without-event at src/ArmsForms.sol:53: State Change Without Event (5 places)\n[low] unchecked-return at src/ArmsForms.sol:73: Unchecked Return (3 places)\n[low] uninitialized-local-variable at src/Arms.sol:500: Uninitialized Local Variable (24 places)\n[low] unsafe-erc20-operation at src/Arms.sol:774: Unsafe ERC20 Operation (3 places)\n[low] unspecific-solidity-pragma at src/compat/EIP712.sol:6: Unspecific Solidity Pragma\n[low] unused-error at src/Arms.sol:157: Unused Error (2 places)\n[low] unused-public-function at src/Arms.sol:409: Public Function Not Used Internally","passed":true},{"durationMs":8626,"exitCode":0,"name":"proof cab68d38eee3","output":"Compiling 55 files with Solc 0.8.26\nSolc 0.8.26 finished in 8.01s\nCompiler run successful!\n\nRan 2 tests for test/imd-proof-6cd3b5d4/Proof_cab68d38eee3.t.sol:ProofExitCancelOptOutTest\n[PASS] test_control_exitAloneStillDrawn() (gas: 882588)\n[PASS] test_exitThenOneWeiBondOptsOutOfOlderJob() (gas: 963004)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 2.32ms (617.95µs CPU time)\n\nRan 1 test suite in 3.25ms (2.32ms CPU time): 2 tests passed, 0 failed, 0 skipped (2 total tests)\n","passed":true}],"detail":"all checks passed","evaluation":"checks","profile":"foundry","status":"accepted","submissionHash":"4a87a5eb968bcfb9705af316d4a9eb52661dba273218b899af3e5ee400808560","verifiedTreeHash":"b173655749c7d235d7a1b45a557d714ed47ae51b","verifierVersion":"0.1.0+435fe828"},{"checks":[{"durationMs":64916,"exitCode":0,"name":"build","output":"Compiling 71 files with Solc 0.8.26\nSolc 0.8.26 finished in 64.79s\nCompiler run successful!\n","passed":true},{"durationMs":2107,"exitCode":0,"name":"test","output":"No files changed, compilation skipped\n\nRan 4 tests for test/OracleConformance.t.sol:OracleConsumerConformanceTest\n[PASS] test_acceptsAFreshSignatureFromTheVectorKey() (gas: 1961084)\n[PASS] test_callbackSelectorIsCanonical() (gas: 3925)\n[PASS] test_digestMatchesTheProtocol() (gas: 13799)\n[PASS] test_questionHashMatchesTheProtocolVector() (gas: 41781)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 7.17ms (6.48ms CPU time)\n\nRan 2 tests for test/RevisionRegressions.t.sol:ClaimedAfterNeitherTest\n[PASS] test_claimedAfterNeitherOnTheSameKeyCorrectsIt() (gas: 4027699)\n[PASS] test_claimedThenNeitherLeavesTheCorrection() (gas: 3633359)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 9.74ms (6.86ms CPU time)\n\nRan 3 tests for test/RevisionRegressions.t.sol:LatestVerdictTest\n[PASS] test_allUnknownJobDoesNotReplaceTheLatestVerdict() (gas: 3916711)\n[PASS] test_olderBlockDoesNotReplaceTheLatestVerdict() (gas: 7887109)\n[PASS] test_partlyAnsweredJobIsTheLatest() (gas: 3886379)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 11.13ms (9.60ms CPU time)\n\nRan 3 tests for test/RevisionRegressions.t.sol:StoredStakeTest\n[PASS] test_releaseAfterStoredRulingOnAnOverturnedJob() (gas: 3768089)\n[PASS] test_storedRulingForfeitsTheStakeInEitherResolveOrder() (gas: 7789080)\n[PASS] test_storedRulingPaysTheGivers() (gas: 2782696)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 55.65ms (11.22ms CPU time)\n\nRan 3 tests for test/LaunchAdaptation.t.sol:ConfirmedBlockTest\n[PASS] testFuzz_confirmationBoundary(uint64,uint64) (runs: 256, μ: 224661, ~: 350344)\nLogs:\n  Bound result 1000\n  Bound result 3000\n\n[PASS] test_arbitrumUsesItsOwnHeightForConfirmation() (gas: 8494306)\n[PASS] test_futureAndUnconfirmedLocalBlocksFailBeforeEscrowMoves() (gas: 586718)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 86.16ms (84.27ms CPU time)\n\nRan 6 tests for test/RevisionRegressions.t.sol:DrawOptOutTest\n[PASS] test_feeRaiseDoesNotApplyToAnOlderJob() (gas: 1318254)\n[PASS] test_lateServeFeeCutOrReServeDoesNotOptIn() (gas: 2592162)\n[PASS] test_newlyActiveBondStillInvalidatesOlderJobs() (gas: 410699)\n[PASS] test_reServeDoesNotOptOutOfAnOlderJob() (gas: 859894)\n[PASS] test_topUpAfterPostDoesNotOptIn() (gas: 2144859)\n[PASS] test_topUpDoesNotOptOutOfAnOlderJob() (gas: 876491)\nSuite result: ok. 6 passed; 0 failed; 0 skipped; finished in 91.40ms (5.57ms CPU time)\n\nRan 2 tests for test/Deploy.t.sol:DeployTest\n[PASS] test_deployRejectsAnotherChain() (gas: 12693796)\n[PASS] test_deploySepoliaConfig() (gas: 65511453)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 112.04ms (111.67ms CPU time)\n\nRan 3 tests for test/LaunchAdaptation.t.sol:TokenLaunchTest\n[PASS] testFuzz_transferAndBurnConserveSupply(uint96,uint96) (runs: 256, μ: 149442, ~: 150540)\nLogs:\n  Bound result 3\n  Bound result 2\n\n[PASS] test_noBurnFromEvenWithAllowance() (gas: 91891)\n[PASS] test_onlyConstructorMintsAndFactoryReceivesNothing() (gas: 98093)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 114.55ms (113.92ms CPU time)\n\nRan 28 tests for test/AuditRegressions.t.sol:AuditRegressionsTest\n[PASS] testFuzz_audit6_compensationConservesFundsAndOnlyDebitsNoShows(bool,uint64) (runs: 256, μ: 2225638, ~: 2305359)\nLogs:\n  Bound result 9996\n\n[PASS] testFuzz_audit6_tieNoShowClosesWithoutReplacement(bool) (runs: 256, μ: 2562002, ~: 2516885)\n[PASS] test_audit12_arbitrumBlockModeComesFromChainId() (gas: 11320152)\n[PASS] test_audit13_arbitrumExpiredSeedIsRefusedToo() (gas: 10975955)\n[PASS] test_audit13_drawDoesNotDependOnTheBlockItIsCalledIn() (gas: 3869059)\n[PASS] test_audit13_expiredSeedJobIsRefundedByCancelAndAReposterGetsANewSeed() (gas: 1721851)\n[PASS] test_audit13_expiredTieSeedIsNotRedrawnAndTheDisputedKeySettlesUnresolved() (gas: 2397118)\n[PASS] test_audit13_replacementDrawHasOneSeedToo() (gas: 1360637)\n[PASS] test_audit14_noShowCloseDoesNotReplaceTheLatestVerdict() (gas: 8313505)\n[PASS] test_audit1_flatConstructorConstantsAndDerivedMinBond() (gas: 8609060)\n[PASS] test_audit2_attemptsContinueWithOneSeedAndAreBounded() (gas: 1995986)\n[PASS] test_audit2_exitAndStopOnlyExcludeLaterJobs() (gas: 2729227)\n[PASS] test_audit2_exitAndStopRespectPostingOrderWithinOneBlock() (gas: 2626422)\n[PASS] test_audit2_jobRecordsLengthBlockAndPicksByFormula() (gas: 869904)\n[PASS] test_audit2_listIsAppendOnlyAndLateEntriesCannotReshapeDraw() (gas: 1706037)\n[PASS] test_audit2_slashAfterPostingInvalidatesEligibility() (gas: 3894121)\n[PASS] test_audit2_stateChangeInPostingBlockOrAfterExcludesOldJob() (gas: 4352516)\n[PASS] test_audit3_serveRequiresMinimumBond() (gas: 598759)\n[PASS] test_audit4_threeArmsNeverDrawFourthMixedKeys() (gas: 2622236)\n[PASS] test_audit4_threeDistinctAnswersRefundAllEscrow() (gas: 2949066)\n[PASS] test_audit5_timeoutNeverStrikesTimelyTieRevealer() (gas: 2845479)\n[PASS] test_audit6_noShowCompensationPreservesOtherJobsLocks() (gas: 4288451)\n[PASS] test_audit6_revealNoShowPaysRevealerRefundsPosterAndCannotCancel() (gas: 2518690)\n[PASS] test_audit6_zeroRevealsCanReplaceWithoutReducingBonds() (gas: 2946538)\n[PASS] test_audit7_formIdBindsEveryField() (gas: 308453)\n[PASS] test_audit7_uriCharactersAndCourtQuotes() (gas: 13221112)\n[PASS] test_audit8_armAddressCanAlsoSignForAnotherArm() (gas: 1947514)\n[PASS] test_audit8_sharedSignerNamesArmAndRevocationIsIndependent() (gas: 2113080)\nSuite result: ok. 28 passed; 0 failed; 0 skipped; finished in 114.64ms (298.13ms CPU time)\n\nRan 3 tests for test/RevisionRegressions.t.sol:RemoteHeadTest\n[PASS] testFuzz_remoteBoundary(uint64,uint64) (runs: 256, μ: 303434, ~: 428601)\nLogs:\n  Bound result 3\n  Bound result 30\n\n[PASS] test_realCourtHeadIsOwnerPublishedForwardOnlyAndRemoteOnly() (gas: 11902059)\n[PASS] test_remotePostIsBoundedByTheCourtsConfirmedHead() (gas: 997448)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 152.26ms (150.70ms CPU time)\n\nRan 33 tests for test/Arms.t.sol:ArmsTest\n[PASS] testFuzz_bondWithdrawRoundTrip(uint96,uint32) (runs: 256, μ: 422155, ~: 422105)\nLogs:\n  Bound result 14951\n  Bound result 30931201\n\n[PASS] testFuzz_commitHashBindsJobArmValuesSalt(bytes32,bytes32) (runs: 256, μ: 1239171, ~: 1239339)\n[PASS] testFuzz_settlePaymentsNeverExceedEscrow(bytes32,bytes32,uint8) (runs: 256, μ: 2087509, ~: 2094321)\n[PASS] test_bond_capsAndExit() (gas: 768749)\n[PASS] test_bond_totalCap() (gas: 8153073)\n[PASS] test_cancel_refundsAndUnlocks() (gas: 1313397)\n[PASS] test_challenge_rules() (gas: 3978144)\n[PASS] test_commitReveal_rules() (gas: 1592738)\n[PASS] test_constructor_rejectsBadParams() (gas: 677384)\n[PASS] test_draw_excludesPosterAndIneligible() (gas: 1876701)\n[PASS] test_draw_expiredSeedIsNeverReplaced() (gas: 489821)\n[PASS] test_draw_tooEarlyThenFills() (gas: 843602)\n[PASS] test_noOwnerAdminPauseOrUpgrade() (gas: 434257)\n[PASS] test_post_rules() (gas: 612806)\n[PASS] test_registerForm_rules() (gas: 372411)\n[PASS] test_resolve_claimedCorrectsSlashesRefundsRewards() (gas: 3479943)\n[PASS] test_resolve_neitherOverturnsHoldsRewardThenBurnsIt() (gas: 3247558)\n[PASS] test_resolve_noRulingAfterCourtDeadline() (gas: 2983024)\n[PASS] test_resolve_secondSlashBurnsAndArmsLoseOneTrancheOnly() (gas: 3965281)\n[PASS] test_resolve_storedAfterOverturnBurnsStakeWhenEveryGiverWasSlashed() (gas: 3667821)\n[PASS] test_resolve_storedSplitsStakeAmongArms() (gas: 3110817)\n[PASS] test_serve_rules() (gas: 420789)\n[PASS] test_setSigner_commitsAndReveals() (gas: 1589877)\n[PASS] test_settle_agreedPaysBurnsReturns() (gas: 2321347)\n[PASS] test_settle_disputeGoesToTieBreakAndMajority() (gas: 2904824)\n[PASS] test_settle_unavailableTieBreakLeavesDisputedKeysUnresolved() (gas: 3367063)\n[PASS] test_settle_unknownNeverPaidAndNotApplicableIsAnAnswer() (gas: 2086011)\n[PASS] test_spotCheck_threeArmsMajorityWithoutTieBreak() (gas: 38653876)\n[PASS] test_tieBreakerIsSlashedWhenItGaveTheStoredValue() (gas: 3776776)\n[PASS] test_timeout_afterEveryoneRevealedIsNotATimeout() (gas: 1996429)\n[PASS] test_timeout_commitMissStrikesAndReplaces() (gas: 2545514)\n[PASS] test_timeout_revealMissAndDeactivation() (gas: 41144408)\n[PASS] test_withdraw_onlyUnlocked() (gas: 999700)\nSuite result: ok. 33 passed; 0 failed; 0 skipped; finished in 152.35ms (323.96ms CPU time)\n\nRan 4 tests for test/Compatibility.t.sol:CompatibilityTest\n[PASS] testFuzz_domainDigestAndIntrospectionMatch(bytes32,uint64) (runs: 256, μ: 1845464, ~: 1845464)\n[PASS] testFuzz_stringsMatchProtectedDependency(uint256,address) (runs: 256, μ: 67742, ~: 61082)\n[PASS] test_decimalBoundariesAndHexPadding() (gas: 4642240)\n[PASS] test_hexOverflowKeepsOriginalError() (gas: 7214)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 196.98ms (247.90ms CPU time)\n\nRan 18 tests for test/IMDCourt.t.sol:IMDCourtTest\n[PASS] testFuzz_questionUsesOneBasedFormKey(uint8) (runs: 256, μ: 1108153, ~: 1093700)\nLogs:\n  Bound result 1\n\n[PASS] test_ask_buildsExactBodyAndPullsFee() (gas: 2755807)\n[PASS] test_ask_refusesDuplicateAndFeeAboveMax() (gas: 3965436)\n[PASS] test_ask_whenNotSoldReverts() (gas: 134844)\n[PASS] test_callback_answerCodes() (gas: 6711759)\n[PASS] test_callback_refusals() (gas: 2968723)\n[PASS] test_callback_storesRulingUnder200kGas() (gas: 2742718)\n[PASS] test_controlMapSpotCheckSlashesOnlyTheTwoWrongArms() (gas: 12856303)\n[PASS] test_controlMapTwoRoundsAndChallengeAccounting() (gas: 12149309)\n[PASS] test_failure_closesCaseWithoutRuling() (gas: 2751247)\n[PASS] test_fullChallengeNoAnswerEndsAtCourtDeadline() (gas: 4469496)\n[PASS] test_fullChallengeThroughIMDCourt() (gas: 5319279)\n[PASS] test_intakeMigrationPreservesPendingRequestsAndNamespacesIds() (gas: 6276645)\n[PASS] test_newActionAndAssetRecoverRetiredSale() (gas: 2717635)\n[PASS] test_oldIntakeFailureStillClosesOnlyItsCaseAfterMigration() (gas: 3517796)\n[PASS] test_oracleConfigurationOnlyLaunchOwnerAndNoZeroSettings() (gas: 198181)\n[PASS] test_question_refusesNonAsciiAndUppercaseHexValue() (gas: 164911)\n[PASS] test_signerRotationRecoversPendingCaseAndRevokesOldSigner() (gas: 2770640)\nSuite result: ok. 18 passed; 0 failed; 0 skipped; finished in 197.08ms (334.96ms CPU time)\n\nRan 1 test for test/ArmsInvariant.t.sol:ArmsInvariantTest\n[PASS]\nArmsInvariantTest invariants:\n[PASS] invariant_balanceEqualsBondsEscrowStakesRewards\n[PASS] invariant_bondsSumAndLockedWithinBond\n[PASS] invariant_handlerPropertiesHeld\n[PASS] invariant_operatorNeverGains\n[PASS] invariant_posterNeverGetsMoreThanEscrowPlusOneRefund\n[PASS] invariant_supplyEqualsAllHolders\n ArmsInvariantTest invariants (runs: 64, calls: 2560, reverts: 21)\n\n╭-------------+-----------------+-------+---------+----------╮\n| Contract    | Selector        | Calls | Reverts | Discards |\n+============================================================+\n| ArmsHandler | answer          | 186   | 1       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | bond            | 135   | 20      | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | cancel          | 158   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | challenge       | 162   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | draw            | 163   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | exitAndWithdraw | 181   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | post            | 167   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | reactivate      | 166   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | release         | 187   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | requestExit     | 169   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | resolve         | 184   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | rule            | 167   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | settle          | 162   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | timeout         | 191   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | warp            | 182   | 0       | 0        |\n╰-------------+-----------------+-------+---------+----------╯\n\nLogs:\n  Bound result 1877\n  Bound result 4\n  Bound result 23295\n  Bound result 97\n  Bound result 17463\n  Bound result 28000000000000000000\n  Bound result 16483\n\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 1.95s (1.95s CPU time)\n\nRan 14 test suites in 1.96s (3.26s CPU time): 113 tests passed, 0 failed, 0 skipped (113 total tests)\n","passed":true},{"durationMs":96,"exitCode":0,"name":"source-index","output":"{\"v\":1,\"entryPoints\":[\"Arms.bond(uint256)\",\"Arms.cancel(uint256)\",\"Arms.challenge(uint256,uint8,bytes32,uint256)\",\"Arms.commit(uint256,address,bytes32)\",\"Arms.draw(uint256)\",\"Arms.post(bytes32,uint256,address,uint256,uint256)\",\"Arms.reactivate()\",\"Arms.registerForm(bytes32,uint8,string)\",\"Arms.release(uint256)\",\"Arms.requestExit()\",\"Arms.resolve(uint256,uint8,bytes32)\",\"Arms.reveal(uint256,address,bytes32[],bytes32,string)\",\"Arms.serve(bytes32,uint256)\",\"Arms.setSigner(address)\",\"Arms.settle(uint256)\",\"Arms.stopServing(bytes32)\",\"Arms.timeout(uint256)\",\"Arms.withdraw()\",\"ArmsForms.noteBond(address,uint256,uint256)\",\"ArmsForms.register(bytes32,uint8,string)\",\"ArmsForms.serve(bytes32,address,uint256,uint256)\",\"ArmsForms.stop(bytes32,address,uint256,uint256)\",\"IMDCourt.ask(bytes32,bytes32,string,uint8,uint256,address,uint256,bytes32,bytes32,address,uint256)\",\"IMDCourt.onOracleFailure(bytes32,uint8,bytes32,uint16,uint16,bytes)\",\"IMDCourt.onOracleResult(bytes32,(bytes32,uint256,bytes32,uint8,bytes,uint256,uint64,uint64,bytes32,bytes32,uint16,uint16,uint16,uint64,uint64),bytes)\",\"IMDCourt.renounceOwnership()\",\"IMDCourt.setConfirmedHead(uint256,uint256)\",\"IMDCourt.setOracleConfig(address,address,bytes32)\",\"IMDCourt.setSigner(address)\",\"IMDCourt.transferOwnership(address)\"],\"files\":{\".gitignore\":4,\"ADAPTATION.md\":187,\"AUDIT.md\":97,\"README.md\":477,\"REVIEW.md\":112,\"docs/evidence/ImdTest-verified-source.json\":657,\"docs/evidence/Intake-verified-source.json\":1267,\"docs/evidence/base-provenance.json\":22,\"docs/evidence/consumer-schema-preflight.json\":53,\"docs/evidence/control-map-answers.json\":31,\"docs/evidence/current-question-check.json\":92,\"docs/evidence/key-01.json\":20,\"docs/evidence/key-02.json\":20,\"docs/evidence/key-03.json\":20,\"docs/evidence/key-04.json\":20,\"docs/evidence/key-05.json\":20,\"docs/evidence/key-06.json\":20,\"docs/evidence/key-07.json\":20,\"docs/evidence/key-08.json\":20,\"docs/evidence/key-09.json\":20,\"docs/evidence/key-10.json\":20,\"docs/evidence/key-11.json\":20,\"docs/evidence/key-12.json\":20,\"docs/evidence/key-13.json\":20,\"docs/evidence/offline-rehearsal.json\":27,\"docs/evidence/sepolia-readback.json\":749,\"docs/oracle-question-check.json\":96,\"forms/control-map-v1.txt\":150,\"foundry.toml\":31,\"launch.json\":40,\"script/AskSepolia.s.sol\":53,\"script/Deploy.s.sol\":90,\"script/check_launch.py\":69,\"script/prepare_control_map.py\":99,\"script/read_sepolia.py\":102,\"src/Arms.sol\":1038,\"src/ArmsForms.sol\":117,\"src/ArmsResults.sol\":156,\"src/Blocks.sol\":38,\"src/FormURI.sol\":22,\"src/ICourt.sol\":51,\"src/IIntake.sol\":21,\"src/IMDCourt.sol\":311,\"src/OracleAttestation.sol\":221,\"src/OracleQuestion.sol\":277,\"src/compat/EIP712.sol\":162,\"src/compat/LICENSE\":22,\"src/compat/Strings.sol\":43,\"src/mocks/MockCourt.sol\":129,\"src/mocks/MockToken.sol\":20,\"test/Arms.t.sol\":943,\"test/ArmsBase.t.sol\":203,\"test/ArmsInvariant.t.sol\":437,\"test/AuditRegressions.t.sol\":789,\"test/Compatibility.t.sol\":80,\"test/Deploy.t.sol\":106,\"test/IMDCourt.t.sol\":644,\"test/LaunchAdaptation.t.sol\":97,\"test/OracleConformance.t.sol\":138,\"test/RevisionRegressions.t.sol\":464,\"test/mocks/MockIntake.sol\":87,\"test/test_deliverables.py\":62},\"excluded\":[\"lib/\",\"node_modules/\"],\"truncated\":false}","passed":true},{"durationMs":10468,"exitCode":0,"name":"slither","output":"[medium/medium] divide-before-multiply at src/Arms.sol:1025: Arms._splitStake(uint256,Arms.Job,uint8,bytes32,uint256) (src/Arms.sol#1025-1037) performs a multiplication on the result of a division:\n[medium/medium] reentrancy-no-eth at src/Arms.sol:632: Reentrancy in Arms._closeNoShow(uint256,Arms.Job) (src/Arms.sol#632-677):\n[medium/medium] reentrancy-no-eth at src/Arms.sol:790: Reentrancy in Arms.resolve(uint256,uint8,bytes32) (src/Arms.sol#790-840):\n[medium/medium] reentrancy-no-eth at src/Arms.sol:995: Reentrancy in Arms._slash(uint256,Arms.Job,uint8,bytes32) (src/Arms.sol#995-1022):\n[medium/medium] reentrancy-no-eth at src/Arms.sol:790: Reentrancy in Arms.resolve(uint256,uint8,bytes32) (src/Arms.sol#790-840):\n[medium/medium] reentrancy-no-eth at src/IMDCourt.sol:136: Reentrancy in IMDCourt.ask(bytes32,bytes32,string,uint8,uint256,address,uint256,bytes32,bytes32,address,uint256) (src/IMDCourt.sol#136-187):\n[medium/medium] reentrancy-no-eth at src/Arms.sol:956: Reentrancy in Arms._finalize(uint256,Arms.Job,bool) (src/Arms.sol#956-981):\n[medium/medium] uninitialized-local at src/ArmsResults.sol:121: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8).answered (src/ArmsResults.sol#121) is a local variable never initialized\n[medium/medium] uninitialized-local at src/Arms.sol:958: Arms._finalize(uint256,Arms.Job,bool).answered (src/Arms.sol#958) is a local variable never initialized\n[medium/medium] uninitialized-local at src/ArmsResults.sol:119: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8).m (src/ArmsResults.sol#119) is a local variable never initialized\n[medium/medium] uninitialized-local at src/ArmsResults.sol:127: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8).found (src/ArmsResults.sol#127) is a local variable never initialized\n[medium/medium] uninitialized-local at src/ArmsResults.sol:117: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8).vals (src/ArmsResults.sol#117) is a local variable never initialized\n[medium/medium] uninitialized-local at src/ArmsResults.sol:118: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8).cnt (src/ArmsResults.sol#118) is a local variable never initialized\n[medium/medium] uninitialized-local at src/Arms.sol:634: Arms._closeNoShow(uint256,Arms.Job).revealed (src/Arms.sol#634) is a local variable never initialized\n[medium/medium] uninitialized-local at src/ArmsResults.sol:51: ArmsResults.settlement(uint256,bool).tieCorrect (src/ArmsResults.sol#51) is a local variable never initialized\n[medium/medium] uninitialized-local at src/ArmsResults.sol:142: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8).best (src/ArmsResults.sol#142) is a local variable never initialized\n[medium/medium] uninitialized-local at src/Arms.sol:600: Arms.timeout(uint256).removed (src/Arms.sol#600) is a local variable never initialized\n[medium/medium] uninitialized-local at src/Arms.sol:569: Arms.reveal(uint256,address,bytes32[],bytes32,string).v (src/Arms.sol#569) is a local variable never initialized\n[medium/medium] unused-return at src/ArmsResults.sol:90: ArmsResults.verdict(uint256) (src/ArmsResults.sol#90-110) ignores return value by (None,None,None,v.evidence[i]) = source.entries(id,v.arms[i]) (src/ArmsResults.sol#105)\n[medium/medium] unused-return at src/ArmsResults.sol:90: ArmsResults.verdict(uint256) (src/ArmsResults.sol#90-110) ignores return value by (None,None,None,v.tieEvidence) = source.entries(id,j.tieBreaker) (src/ArmsResults.sol#108)\n[medium/medium] unused-return at src/ArmsForms.sol:63: ArmsForms.serve(bytes32,address,uint256,uint256) (src/ArmsForms.sol#63-74) ignores return value by feeHistory[id][arm].push(SafeCast.toUint48(lastJob),SafeCast.toUint208(fee)) (src/ArmsForms.sol#73)\n[medium/medium] unused-return at src/Arms.sol:734: Arms.challenge(uint256,uint8,bytes32,uint256) (src/Arms.sol#734-787) ignores return value by (None,formURI) = formRegistry.forms(j.formId) (src/Arms.sol#772)\n[medium/medium] unused-return at src/ArmsForms.sol:77: ArmsForms.stop(bytes32,address,uint256,uint256) (src/ArmsForms.sol#77-82) ignores return value by feeHistory[id][arm].push(SafeCast.toUint48(lastJob),0) (src/ArmsForms.sol#81)\n[medium/medium] unused-return at src/ArmsForms.sol:85: ArmsForms.noteBond(address,uint256,uint256) (src/ArmsForms.sol#85-87) ignores return value by bondHistory[arm].push(SafeCast.toUint48(lastJob),SafeCast.toUint208(bond)) (src/ArmsForms.sol#86)\n[low/medium] missing-zero-check at src/mocks/MockCourt.sol:41: MockCourt.constructor(address,uint256).feeToken_ (src/mocks/MockCourt.sol#41) lacks a zero-check on :\n[low/medium] calls-loop at src/Arms.sol:899: Arms._checkpointBond(address) (src/Arms.sol#899-901) has external calls inside a loop: formRegistry.noteBond(a,jobCount,arms[a].bond) (src/Arms.sol#900)\n[low/medium] calls-loop at src/Arms.sol:983: Arms._pay(uint256,Arms.Job,address,uint256) (src/Arms.sol#983-992) has external calls inside a loop: token.burn(burned) (src/Arms.sol#989)\n[low/medium] calls-loop at src/ArmsResults.sol:112: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8) (src/ArmsResults.sol#112-155) has external calls inside a loop: v = source.answerOf(id,tie,key) (src/ArmsResults.sol#124)\n[low/medium] calls-loop at src/ArmsResults.sol:90: ArmsResults.verdict(uint256) (src/ArmsResults.sol#90-110) has external calls inside a loop: (v.values[k],v.statuses[k]) = source.results(id,k) (src/ArmsResults.sol#96)\n[low/medium] calls-loop at src/ArmsResults.sol:112: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8) (src/ArmsResults.sol#112-155) has external calls inside a loop: v = source.answerOf(id,voters[i],key) (src/ArmsResults.sol#124)\n[low/medium] calls-loop at src/ArmsResults.sol:73: ArmsResults.givers(uint256,uint8,bytes32) (src/ArmsResults.sol#73-88) has external calls inside a loop: ! source.slashedIn(id,a) && source.answerOf(id,a,key) == value (src/ArmsResults.sol#83)\n[low/medium] calls-loop at src/Arms.sol:481: Arms.draw(uint256) (src/Arms.sol#481-511) has external calls inside a loop: a = formRegistry.candidate(j.formId,idx,jobId,j.feePerArm) (src/Arms.sol#497)\n[low/medium] calls-loop at src/Arms.sol:899: Arms._checkpointBond(address) (src/Arms.sol#899-901) has external calls inside a loop: formRegistry.noteBond(a,jobCount,arms[a].bond) (src/Arms.sol#900)\n[low/medium] calls-loop at src/Arms.sol:878: Arms._send(address,uint256) (src/Arms.sol#878-880) has external calls inside a loop: ! token.transfer(to,amount) (src/Arms.sol#879)\n[low/medium] calls-loop at src/ArmsResults.sol:44: ArmsResults.settlement(uint256,bool) (src/ArmsResults.sol#44-69) has external calls inside a loop: withTie && disputed && source.answerOf(id,j.tieBreaker,k) == value (src/ArmsResults.sol#63)\n[low/medium] calls-loop at src/Arms.sol:878: Arms._send(address,uint256) (src/Arms.sol#878-880) has external calls inside a loop: ! token.transfer(to,amount) (src/Arms.sol#879)\n[low/medium] calls-loop at src/Arms.sol:903: Arms._eligible(uint256,Arms.Job,address) (src/Arms.sol#903-913) has external calls inside a loop: b = formRegistry.bondAsOf(a,jobId) (src/Arms.sol#910)\n[low/medium] calls-loop at src/ArmsResults.sol:90: ArmsResults.verdict(uint256) (src/ArmsResults.sol#90-110) has external calls inside a loop: (None,None,None,v.evidence[i]) = source.entries(id,v.arms[i]) (src/ArmsResults.sol#105)\n[low/medium] calls-loop at src/ArmsResults.sol:112: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8) (src/ArmsResults.sol#112-155) has external calls inside a loop: v = source.answerOf(id,tie,key) (src/ArmsResults.sol#124)\n[low/medium] calls-loop at src/ArmsResults.sol:44: ArmsResults.settlement(uint256,bool) (src/ArmsResults.sol#44-69) has external calls inside a loop: source.answerOf(id,voters[i],k) == value (src/ArmsResults.sol#61)\n[low/medium] calls-loop at src/ArmsResults.sol:112: ArmsResults._evaluate(IArmsResultsSource,uint256,address[],address,uint8) (src/ArmsResults.sol#112-155) has external calls inside a loop: v = source.answerOf(id,voters[i],key) (src/ArmsResults.sol#124)\n[low/medium] reentrancy-benign at src/Arms.sol:790: Reentrancy in Arms.resolve(uint256,uint8,bytes32) (src/Arms.sol#790-840):\n[low/medium] reentrancy-benign at src/IMDCourt.sol:136: Reentrancy in IMDCourt.ask(bytes32,bytes32,string,uint8,uint256,address,uint256,bytes32,bytes32,address,uint256) (src/IMDCourt.sol#136-187):\n[low/medium] reentrancy-benign at src/Arms.sol:995: Reentrancy in Arms._slash(uint256,Arms.Job,uint8,bytes32) (src/Arms.sol#995-1022):\n[low/medium] reentrancy-benign at src/Arms.sol:956: Reentrancy in Arms._finalize(uint256,Arms.Job,bool) (src/Arms.sol#956-981):\n[low/medium] reentrancy-benign at src/Arms.sol:632: Reentrancy in Arms._closeNoShow(uint256,Arms.Job) (src/Arms.sol#632-677):\n[low/medium] reentrancy-events at src/Arms.sol:515: Reentrancy in Arms.cancel(uint256) (src/Arms.sol#515-530):\n[low/medium] reentrancy-events at src/Arms.sol:632: Reentrancy in Arms._closeNoShow(uint256,Arms.Job) (src/Arms.sol#632-677):\n[low/medium] reentrancy-events at src/Arms.sol:983: Reentrancy in Arms._pay(uint256,Arms.Job,address,uint256) (src/Arms.sol#983-992):\n[low/medium] reentrancy-events at src/Arms.sol:426: Reentrancy in Arms.serve(bytes32,uint256) (src/Arms.sol#426-430):\n[low/medium] reentrancy-events at src/Arms.sol:632: Reentrancy in Arms._closeNoShow(uint256,Arms.Job) (src/Arms.sol#632-677):\n[low/medium] reentrancy-events at src/Arms.sol:956: Reentrancy in Arms._finalize(uint256,Arms.Job,bool) (src/Arms.sol#956-981):\n[low/medium] reentrancy-events at src/Arms.sol:342: Reentrancy in Arms.bond(uint256) (src/Arms.sol#342-360):\n[low/medium] reentrancy-events at src/Arms.sol:708: Reentrancy in Arms.release(uint256) (src/Arms.sol#708-722):\n[low/medium] reentrancy-events at src/Arms.sol:734: Reentrancy in Arms.challenge(uint256,uint8,bytes32,uint256) (src/Arms.sol#734-787):\n[low/medium] reentrancy-events at src/Arms.sol:419: Reentrancy in Arms.registerForm(bytes32,uint8,string) (src/Arms.sol#419-422):\n[low/medium] reentrancy-events at src/Arms.sol:441: Reentrancy in Arms.post(bytes32,uint256,address,uint256,uint256) (src/Arms.sol#441-472):\n[low/medium] reentrancy-events at src/Arms.sol:790: Reentrancy in Arms.resolve(uint256,uint8,bytes32) (src/Arms.sol#790-840):\n[low/medium] reentrancy-events at src/Arms.sol:995: Reentrancy in Arms._slash(uint256,Arms.Job,uint8,bytes32) (src/Arms.sol#995-1022):\n[low/medium] reentrancy-events at src/Arms.sol:956: Reentrancy in Arms._finalize(uint256,Arms.Job,bool) (src/Arms.sol#956-981):\n[low/medium] reentrancy-events at src/IMDCourt.sol:136: Reentrancy in IMDCourt.ask(bytes32,bytes32,string,uint8,uint256,address,uint256,bytes32,bytes32,address,uint256) (src/IMDCourt.sol#136-187):\n[low/medium] reentrancy-events at src/Arms.sol:632: Reentrancy in Arms._closeNoShow(uint256,Arms.Job) (src/Arms.sol#632-677):\n[low/medium] reentrancy-events at src/Arms.sol:790: Reentrancy in Arms.resolve(uint256,uint8,bytes32) (src/Arms.sol#790-840):\n[low/medium] reentrancy-events at src/Arms.sol:432: Reentrancy in Arms.stopServing(bytes32) (src/Arms.sol#432-435):\n[low/medium] reentrancy-events at src/Arms.sol:373: Reentrancy in Arms.withdraw() (src/Arms.sol#373-385):\n[low/medium] timestamp at src/Arms.sol:481: Arms.draw(uint256) (src/Arms.sol#481-511) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:708: Arms.release(uint256) (src/Arms.sol#708-722) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:682: Arms.settle(uint256) (src/Arms.sol#682-704) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:734: Arms.challenge(uint256,uint8,bytes32,uint256) (src/Arms.sol#734-787) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:554: Arms.reveal(uint256,address,bytes32[],bytes32,string) (src/Arms.sol#554-582) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:515: Arms.cancel(uint256) (src/Arms.sol#515-530) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:586: Arms.timeout(uint256) (src/Arms.sol#586-625) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:790: Arms.resolve(uint256,uint8,bytes32) (src/Arms.sol#790-840) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:394: Arms.reactivate() (src/Arms.sol#394-402) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:533: Arms.commit(uint256,address,bytes32) (src/Arms.sol#533-551) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:956: Arms._finalize(uint256,Arms.Job,bool) (src/Arms.sol#956-981) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:373: Arms.withdraw() (src/Arms.sol#373-385) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:278: Arms.constructor(address,address,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256) (src/Arms.sol#278-336) uses timestamp for comparisons\n[low/medium] timestamp at src/Arms.sol:426: Arms.serve(bytes32,uint256) (src/Arms.sol#426-430) uses timestamp for comparisons\n[low/medium] timestamp at src/OracleAttestation.sol:157: OracleAttestationConsumer._verifyAttestation(OracleAttestation.Attestation,bytes) (src/OracleAttestation.sol#157-165) uses timestamp for comparisons","passed":true},{"durationMs":726,"exitCode":0,"name":"aderyn","output":"[high] reentrancy-state-change at src/Arms.sol:445: Reentrancy: State change after external call (6 places)\n[low] centralization-risk at src/IMDCourt.sol:25: Centralization Risk (5 places)\n[low] costly-loop at src/Arms.sol:495: Costly operations inside loop (11 places)\n[low] internal-function-used-once at src/OracleAttestation.sol:200: Internal Function Used Only Once (3 places)\n[low] large-numeric-literal at src/Arms.sol:221: Large Numeric Literal (2 places)\n[low] literal-instead-of-constant at src/Arms.sol:295: Literal Instead of Constant (25 places)\n[low] local-variable-shadowing at src/Arms.sol:50: Local Variable Shadows State Variable (14 places)\n[low] missing-inheritance at src/Arms.sol:24: Missing Inheritance\n[low] push-zero-opcode at src/compat/EIP712.sol:6: PUSH0 Opcode (2 places)\n[low] require-revert-in-loop at src/Arms.sol:668: Loop Contains `require`/`revert` (5 places)\n[low] state-change-without-event at src/ArmsForms.sol:53: State Change Without Event (5 places)\n[low] unchecked-return at src/ArmsForms.sol:73: Unchecked Return (3 places)\n[low] uninitialized-local-variable at src/Arms.sol:495: Uninitialized Local Variable (24 places)\n[low] unsafe-erc20-operation at src/Arms.sol:769: Unsafe ERC20 Operation (3 places)\n[low] unspecific-solidity-pragma at src/compat/EIP712.sol:6: Unspecific Solidity Pragma\n[low] unused-error at src/Arms.sol:157: Unused Error (2 places)\n[low] unused-public-function at src/Arms.sol:404: Public Function Not Used Internally","passed":true},{"durationMs":9346,"exitCode":0,"name":"proof 22cf09bc47d2","output":"Compiling 55 files with Solc 0.8.26\nSolc 0.8.26 finished in 8.67s\nCompiler run successful!\n\nRan 1 test for test/imd-proof-afe431c9/Proof_22cf09bc47d2.t.sol:RemoteFutureBlockTest\n[PASS] test_postRefusesARemoteBlockFarBeyondAnyHead() (gas: 86898)\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 1.13ms (83.53µs CPU time)\n\nRan 1 test suite in 2.93ms (1.13ms CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests)\n","passed":true},{"durationMs":7633,"exitCode":0,"name":"proof 270191835211","output":"Compiling 2 files with Solc 0.8.26\nSolc 0.8.26 finished in 7.06s\nCompiler run successful!\n\nRan 3 tests for test/imd-proof-1a558e2a/Proof_270191835211.t.sol:ProofOptOutTest\n[PASS] test_feeRaiseAppliesToOlderJobInRegistry() (gas: 564700)\n[PASS] test_oneWeiBondOptsOutOfOlderJob() (gas: 867660)\n[PASS] test_reServeAtSameFeeOptsOutOfOlderJob() (gas: 850997)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 3.06ms (2.00ms CPU time)\n\nRan 1 test suite in 7.78ms (3.06ms CPU time): 3 tests passed, 0 failed, 0 skipped (3 total tests)\n","passed":true},{"durationMs":8498,"exitCode":0,"name":"proof b3e816d4f83f","output":"Compiling 2 files with Solc 0.8.26\nSolc 0.8.26 finished in 7.89s\nCompiler run successful!\n\nRan 1 test for test/imd-proof-53557e35/Proof_b3e816d4f83f.t.sol:OverturnedThenClaimedTest\n[PASS] test_claimedAfterNeitherOnSameKeyNeverCorrectsTheKey() (gas: 3212322)\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 3.61ms (1.37ms CPU time)\n\nRan 1 test suite in 3.91ms (3.61ms CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests)\n","passed":true},{"durationMs":8215,"exitCode":0,"name":"proof 31484f86f740","output":"Compiling 2 files with Solc 0.8.26\nSolc 0.8.26 finished in 7.58s\nCompiler run successful!\n\nRan 1 test for test/imd-proof-f173e77e/Proof_31484f86f740.t.sol:ProofLatestOverwriteTest\n[PASS] test_allUnknownArmDoesNotReplaceLatestVerdict() (gas: 3854915)\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 3.54ms (1.57ms CPU time)\n\nRan 1 test suite in 3.95ms (3.54ms CPU time): 1 tests passed, 0 failed, 0 skipped (1 total tests)\n","passed":true}],"detail":"all checks passed","evaluation":"checks","profile":"foundry","status":"accepted","submissionHash":"64c75024ca1410ea166d4bf9eb401698af69909af39eef50c092309f10b1f168","verifiedTreeHash":"f3c7da5954dc6f9a9854af753dbded2ae3656952","verifierVersion":"0.1.0+435fe828"},{"checks":[{"durationMs":63941,"exitCode":0,"name":"build","output":"Compiling 71 files with Solc 0.8.26\nSolc 0.8.26 finished in 63.83s\nCompiler run successful!\n","passed":true},{"durationMs":1668,"exitCode":0,"name":"test","output":"No files changed, compilation skipped\n\nRan 6 tests for test/RevisionRegressions.t.sol:DrawOptOutTest\n[PASS] test_feeRaiseDoesNotApplyToAnOlderJob() (gas: 1318254)\n[PASS] test_lateServeFeeCutOrReServeDoesNotOptIn() (gas: 2592162)\n[PASS] test_newlyActiveBondStillInvalidatesOlderJobs() (gas: 410699)\n[PASS] test_reServeDoesNotOptOutOfAnOlderJob() (gas: 859894)\n[PASS] test_topUpAfterPostDoesNotOptIn() (gas: 2144859)\n[PASS] test_topUpDoesNotOptOutOfAnOlderJob() (gas: 876491)\nSuite result: ok. 6 passed; 0 failed; 0 skipped; finished in 3.35ms (3.51ms CPU time)\n\nRan 4 tests for test/OracleConformance.t.sol:OracleConsumerConformanceTest\n[PASS] test_acceptsAFreshSignatureFromTheVectorKey() (gas: 1961084)\n[PASS] test_callbackSelectorIsCanonical() (gas: 3925)\n[PASS] test_digestMatchesTheProtocol() (gas: 13799)\n[PASS] test_questionHashMatchesTheProtocolVector() (gas: 41781)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 3.43ms (2.51ms CPU time)\n\nRan 2 tests for test/RevisionRegressions.t.sol:ClaimedAfterNeitherTest\n[PASS] test_claimedAfterNeitherOnTheSameKeyCorrectsIt() (gas: 4027699)\n[PASS] test_claimedThenNeitherLeavesTheCorrection() (gas: 3633359)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 6.39ms (4.94ms CPU time)\n\nRan 3 tests for test/RevisionRegressions.t.sol:StoredStakeTest\n[PASS] test_releaseAfterStoredRulingOnAnOverturnedJob() (gas: 3768089)\n[PASS] test_storedRulingForfeitsTheStakeInEitherResolveOrder() (gas: 7789080)\n[PASS] test_storedRulingPaysTheGivers() (gas: 2782696)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 8.25ms (7.84ms CPU time)\n\nRan 3 tests for test/LaunchAdaptation.t.sol:ConfirmedBlockTest\n[PASS] testFuzz_confirmationBoundary(uint64,uint64) (runs: 256, μ: 224661, ~: 350344)\nLogs:\n  Bound result 4503694771006\n  Bound result 2046\n\n[PASS] test_arbitrumUsesItsOwnHeightForConfirmation() (gas: 8494306)\n[PASS] test_futureAndUnconfirmedLocalBlocksFailBeforeEscrowMoves() (gas: 586718)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 8.87ms (6.96ms CPU time)\n\nRan 3 tests for test/RevisionRegressions.t.sol:LatestVerdictTest\n[PASS] test_allUnknownJobDoesNotReplaceTheLatestVerdict() (gas: 3916711)\n[PASS] test_olderBlockDoesNotReplaceTheLatestVerdict() (gas: 7887109)\n[PASS] test_partlyAnsweredJobIsTheLatest() (gas: 3886379)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 17.00ms (12.71ms CPU time)\n\nRan 3 tests for test/LaunchAdaptation.t.sol:TokenLaunchTest\n[PASS] testFuzz_transferAndBurnConserveSupply(uint96,uint96) (runs: 256, μ: 149442, ~: 150540)\nLogs:\n  Bound result 3\n  Bound result 2\n\n[PASS] test_noBurnFromEvenWithAllowance() (gas: 91891)\n[PASS] test_onlyConstructorMintsAndFactoryReceivesNothing() (gas: 98093)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 52.78ms (52.64ms CPU time)\n\nRan 2 tests for test/Deploy.t.sol:DeployTest\n[PASS] test_deployRejectsAnotherChain() (gas: 12693796)\n[PASS] test_deploySepoliaConfig() (gas: 65511453)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 84.56ms (73.59ms CPU time)\n\nRan 33 tests for test/Arms.t.sol:ArmsTest\n[PASS] testFuzz_bondWithdrawRoundTrip(uint96,uint32) (runs: 256, μ: 422155, ~: 422105)\nLogs:\n  Bound result 211189272154816414526\n  Bound result 18944753\n\n[PASS] testFuzz_commitHashBindsJobArmValuesSalt(bytes32,bytes32) (runs: 256, μ: 1239171, ~: 1239339)\n[PASS] testFuzz_settlePaymentsNeverExceedEscrow(bytes32,bytes32,uint8) (runs: 256, μ: 2087509, ~: 2094321)\n[PASS] test_bond_capsAndExit() (gas: 768749)\n[PASS] test_bond_totalCap() (gas: 8153073)\n[PASS] test_cancel_refundsAndUnlocks() (gas: 1313397)\n[PASS] test_challenge_rules() (gas: 3978144)\n[PASS] test_commitReveal_rules() (gas: 1592738)\n[PASS] test_constructor_rejectsBadParams() (gas: 677384)\n[PASS] test_draw_excludesPosterAndIneligible() (gas: 1876701)\n[PASS] test_draw_expiredSeedIsNeverReplaced() (gas: 489821)\n[PASS] test_draw_tooEarlyThenFills() (gas: 843602)\n[PASS] test_noOwnerAdminPauseOrUpgrade() (gas: 434257)\n[PASS] test_post_rules() (gas: 612806)\n[PASS] test_registerForm_rules() (gas: 372411)\n[PASS] test_resolve_claimedCorrectsSlashesRefundsRewards() (gas: 3479943)\n[PASS] test_resolve_neitherOverturnsHoldsRewardThenBurnsIt() (gas: 3247558)\n[PASS] test_resolve_noRulingAfterCourtDeadline() (gas: 2983024)\n[PASS] test_resolve_secondSlashBurnsAndArmsLoseOneTrancheOnly() (gas: 3965281)\n[PASS] test_resolve_storedAfterOverturnBurnsStakeWhenEveryGiverWasSlashed() (gas: 3667821)\n[PASS] test_resolve_storedSplitsStakeAmongArms() (gas: 3110817)\n[PASS] test_serve_rules() (gas: 420789)\n[PASS] test_setSigner_commitsAndReveals() (gas: 1589877)\n[PASS] test_settle_agreedPaysBurnsReturns() (gas: 2321347)\n[PASS] test_settle_disputeGoesToTieBreakAndMajority() (gas: 2904824)\n[PASS] test_settle_unavailableTieBreakLeavesDisputedKeysUnresolved() (gas: 3367063)\n[PASS] test_settle_unknownNeverPaidAndNotApplicableIsAnAnswer() (gas: 2086011)\n[PASS] test_spotCheck_threeArmsMajorityWithoutTieBreak() (gas: 38653876)\n[PASS] test_tieBreakerIsSlashedWhenItGaveTheStoredValue() (gas: 3776776)\n[PASS] test_timeout_afterEveryoneRevealedIsNotATimeout() (gas: 1996429)\n[PASS] test_timeout_commitMissStrikesAndReplaces() (gas: 2545514)\n[PASS] test_timeout_revealMissAndDeactivation() (gas: 41144408)\n[PASS] test_withdraw_onlyUnlocked() (gas: 999700)\nSuite result: ok. 33 passed; 0 failed; 0 skipped; finished in 92.14ms (274.27ms CPU time)\n\nRan 28 tests for test/AuditRegressions.t.sol:AuditRegressionsTest\n[PASS] testFuzz_audit6_compensationConservesFundsAndOnlyDebitsNoShows(bool,uint64) (runs: 256, μ: 2225638, ~: 2305359)\nLogs:\n  Bound result 13382\n\n[PASS] testFuzz_audit6_tieNoShowClosesWithoutReplacement(bool) (runs: 256, μ: 2562002, ~: 2516885)\n[PASS] test_audit12_arbitrumBlockModeComesFromChainId() (gas: 11320152)\n[PASS] test_audit13_arbitrumExpiredSeedIsRefusedToo() (gas: 10975955)\n[PASS] test_audit13_drawDoesNotDependOnTheBlockItIsCalledIn() (gas: 3869059)\n[PASS] test_audit13_expiredSeedJobIsRefundedByCancelAndAReposterGetsANewSeed() (gas: 1721851)\n[PASS] test_audit13_expiredTieSeedIsNotRedrawnAndTheDisputedKeySettlesUnresolved() (gas: 2397118)\n[PASS] test_audit13_replacementDrawHasOneSeedToo() (gas: 1360637)\n[PASS] test_audit14_noShowCloseDoesNotReplaceTheLatestVerdict() (gas: 8313505)\n[PASS] test_audit1_flatConstructorConstantsAndDerivedMinBond() (gas: 8609060)\n[PASS] test_audit2_attemptsContinueWithOneSeedAndAreBounded() (gas: 1995986)\n[PASS] test_audit2_exitAndStopOnlyExcludeLaterJobs() (gas: 2729227)\n[PASS] test_audit2_exitAndStopRespectPostingOrderWithinOneBlock() (gas: 2626422)\n[PASS] test_audit2_jobRecordsLengthBlockAndPicksByFormula() (gas: 869904)\n[PASS] test_audit2_listIsAppendOnlyAndLateEntriesCannotReshapeDraw() (gas: 1706037)\n[PASS] test_audit2_slashAfterPostingInvalidatesEligibility() (gas: 3894121)\n[PASS] test_audit2_stateChangeInPostingBlockOrAfterExcludesOldJob() (gas: 4352516)\n[PASS] test_audit3_serveRequiresMinimumBond() (gas: 598759)\n[PASS] test_audit4_threeArmsNeverDrawFourthMixedKeys() (gas: 2622236)\n[PASS] test_audit4_threeDistinctAnswersRefundAllEscrow() (gas: 2949066)\n[PASS] test_audit5_timeoutNeverStrikesTimelyTieRevealer() (gas: 2845479)\n[PASS] test_audit6_noShowCompensationPreservesOtherJobsLocks() (gas: 4288451)\n[PASS] test_audit6_revealNoShowPaysRevealerRefundsPosterAndCannotCancel() (gas: 2518690)\n[PASS] test_audit6_zeroRevealsCanReplaceWithoutReducingBonds() (gas: 2946538)\n[PASS] test_audit7_formIdBindsEveryField() (gas: 308453)\n[PASS] test_audit7_uriCharactersAndCourtQuotes() (gas: 13221112)\n[PASS] test_audit8_armAddressCanAlsoSignForAnotherArm() (gas: 1947514)\n[PASS] test_audit8_sharedSignerNamesArmAndRevocationIsIndependent() (gas: 2113080)\nSuite result: ok. 28 passed; 0 failed; 0 skipped; finished in 99.37ms (245.88ms CPU time)\n\nRan 3 tests for test/RevisionRegressions.t.sol:RemoteHeadTest\n[PASS] testFuzz_remoteBoundary(uint64,uint64) (runs: 256, μ: 303434, ~: 428601)\nLogs:\n  Bound result 4503694771006\n  Bound result 2046\n\n[PASS] test_realCourtHeadIsOwnerPublishedForwardOnlyAndRemoteOnly() (gas: 11902059)\n[PASS] test_remotePostIsBoundedByTheCourtsConfirmedHead() (gas: 997448)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 98.43ms (95.50ms CPU time)\n\nRan 4 tests for test/Compatibility.t.sol:CompatibilityTest\n[PASS] testFuzz_domainDigestAndIntrospectionMatch(bytes32,uint64) (runs: 256, μ: 1845464, ~: 1845464)\n[PASS] testFuzz_stringsMatchProtectedDependency(uint256,address) (runs: 256, μ: 67742, ~: 61082)\n[PASS] test_decimalBoundariesAndHexPadding() (gas: 4642240)\n[PASS] test_hexOverflowKeepsOriginalError() (gas: 7214)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 175.16ms (130.76ms CPU time)\n\nRan 18 tests for test/IMDCourt.t.sol:IMDCourtTest\n[PASS] testFuzz_questionUsesOneBasedFormKey(uint8) (runs: 256, μ: 1108153, ~: 1093700)\nLogs:\n  Bound result 4\n\n[PASS] test_ask_buildsExactBodyAndPullsFee() (gas: 2755807)\n[PASS] test_ask_refusesDuplicateAndFeeAboveMax() (gas: 3965436)\n[PASS] test_ask_whenNotSoldReverts() (gas: 134844)\n[PASS] test_callback_answerCodes() (gas: 6711759)\n[PASS] test_callback_refusals() (gas: 2968723)\n[PASS] test_callback_storesRulingUnder200kGas() (gas: 2742718)\n[PASS] test_controlMapSpotCheckSlashesOnlyTheTwoWrongArms() (gas: 12856303)\n[PASS] test_controlMapTwoRoundsAndChallengeAccounting() (gas: 12149309)\n[PASS] test_failure_closesCaseWithoutRuling() (gas: 2751247)\n[PASS] test_fullChallengeNoAnswerEndsAtCourtDeadline() (gas: 4469496)\n[PASS] test_fullChallengeThroughIMDCourt() (gas: 5319279)\n[PASS] test_intakeMigrationPreservesPendingRequestsAndNamespacesIds() (gas: 6276645)\n[PASS] test_newActionAndAssetRecoverRetiredSale() (gas: 2717635)\n[PASS] test_oldIntakeFailureStillClosesOnlyItsCaseAfterMigration() (gas: 3517796)\n[PASS] test_oracleConfigurationOnlyLaunchOwnerAndNoZeroSettings() (gas: 198181)\n[PASS] test_question_refusesNonAsciiAndUppercaseHexValue() (gas: 164911)\n[PASS] test_signerRotationRecoversPendingCaseAndRevokesOldSigner() (gas: 2770640)\nSuite result: ok. 18 passed; 0 failed; 0 skipped; finished in 192.34ms (266.51ms CPU time)\n\nRan 1 test for test/ArmsInvariant.t.sol:ArmsInvariantTest\n[PASS]\nArmsInvariantTest invariants:\n[PASS] invariant_balanceEqualsBondsEscrowStakesRewards\n[PASS] invariant_bondsSumAndLockedWithinBond\n[PASS] invariant_handlerPropertiesHeld\n[PASS] invariant_operatorNeverGains\n[PASS] invariant_posterNeverGetsMoreThanEscrowPlusOneRefund\n[PASS] invariant_supplyEqualsAllHolders\n ArmsInvariantTest invariants (runs: 64, calls: 2560, reverts: 21)\n\n╭-------------+-----------------+-------+---------+----------╮\n| Contract    | Selector        | Calls | Reverts | Discards |\n+============================================================+\n| ArmsHandler | answer          | 186   | 1       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | bond            | 135   | 20      | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | cancel          | 158   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | challenge       | 162   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | draw            | 163   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | exitAndWithdraw | 181   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | post            | 167   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | reactivate      | 166   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | release         | 187   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | requestExit     | 169   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | resolve         | 184   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | rule            | 167   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | settle          | 162   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | timeout         | 191   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | warp            | 182   | 0       | 0        |\n╰-------------+-----------------+-------+---------+----------╯\n\nLogs:\n  Bound result 1877\n  Bound result 4\n  Bound result 23295\n  Bound result 97\n  Bound result 17463\n  Bound result 28000000000000000000\n  Bound result 16483\n\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 1.54s (1.53s CPU time)\n\nRan 14 test suites in 1.55s (2.39s CPU time): 113 tests passed, 0 failed, 0 skipped (113 total tests)\n","passed":true},{"durationMs":75,"exitCode":0,"name":"source-index","output":"{\"v\":1,\"entryPoints\":[\"Arms.bond(uint256)\",\"Arms.cancel(uint256)\",\"Arms.challenge(uint256,uint8,bytes32,uint256)\",\"Arms.commit(uint256,address,bytes32)\",\"Arms.draw(uint256)\",\"Arms.post(bytes32,uint256,address,uint256,uint256)\",\"Arms.reactivate()\",\"Arms.registerForm(bytes32,uint8,string)\",\"Arms.release(uint256)\",\"Arms.requestExit()\",\"Arms.resolve(uint256,uint8,bytes32)\",\"Arms.reveal(uint256,address,bytes32[],bytes32,string)\",\"Arms.serve(bytes32,uint256)\",\"Arms.setSigner(address)\",\"Arms.settle(uint256)\",\"Arms.stopServing(bytes32)\",\"Arms.timeout(uint256)\",\"Arms.withdraw()\",\"ArmsForms.noteBond(address,uint256,uint256)\",\"ArmsForms.register(bytes32,uint8,string)\",\"ArmsForms.serve(bytes32,address,uint256,uint256)\",\"ArmsForms.stop(bytes32,address,uint256,uint256)\",\"IMDCourt.ask(bytes32,bytes32,string,uint8,uint256,address,uint256,bytes32,bytes32,address,uint256)\",\"IMDCourt.onOracleFailure(bytes32,uint8,bytes32,uint16,uint16,bytes)\",\"IMDCourt.onOracleResult(bytes32,(bytes32,uint256,bytes32,uint8,bytes,uint256,uint64,uint64,bytes32,bytes32,uint16,uint16,uint16,uint64,uint64),bytes)\",\"IMDCourt.renounceOwnership()\",\"IMDCourt.setConfirmedHead(uint256,uint256)\",\"IMDCourt.setOracleConfig(address,address,bytes32)\",\"IMDCourt.setSigner(address)\",\"IMDCourt.transferOwnership(address)\"],\"files\":{\".gitignore\":4,\"ADAPTATION.md\":187,\"AUDIT.md\":97,\"README.md\":477,\"REVIEW.md\":112,\"docs/evidence/ImdTest-verified-source.json\":657,\"docs/evidence/Intake-verified-source.json\":1267,\"docs/evidence/base-provenance.json\":22,\"docs/evidence/consumer-schema-preflight.json\":53,\"docs/evidence/control-map-answers.json\":31,\"docs/evidence/current-question-check.json\":92,\"docs/evidence/key-01.json\":20,\"docs/evidence/key-02.json\":20,\"docs/evidence/key-03.json\":20,\"docs/evidence/key-04.json\":20,\"docs/evidence/key-05.json\":20,\"docs/evidence/key-06.json\":20,\"docs/evidence/key-07.json\":20,\"docs/evidence/key-08.json\":20,\"docs/evidence/key-09.json\":20,\"docs/evidence/key-10.json\":20,\"docs/evidence/key-11.json\":20,\"docs/evidence/key-12.json\":20,\"docs/evidence/key-13.json\":20,\"docs/evidence/offline-rehearsal.json\":27,\"docs/evidence/sepolia-readback.json\":749,\"docs/oracle-question-check.json\":96,\"forms/control-map-v1.txt\":150,\"foundry.toml\":31,\"launch.json\":40,\"script/AskSepolia.s.sol\":53,\"script/Deploy.s.sol\":90,\"script/check_launch.py\":69,\"script/prepare_control_map.py\":99,\"script/read_sepolia.py\":102,\"src/Arms.sol\":1038,\"src/ArmsForms.sol\":117,\"src/ArmsResults.sol\":156,\"src/Blocks.sol\":38,\"src/FormURI.sol\":22,\"src/ICourt.sol\":51,\"src/IIntake.sol\":21,\"src/IMDCourt.sol\":311,\"src/OracleAttestation.sol\":221,\"src/OracleQuestion.sol\":277,\"src/compat/EIP712.sol\":162,\"src/compat/LICENSE\":22,\"src/compat/Strings.sol\":43,\"src/mocks/MockCourt.sol\":129,\"src/mocks/MockToken.sol\":20,\"test/Arms.t.sol\":943,\"test/ArmsBase.t.sol\":203,\"test/ArmsInvariant.t.sol\":437,\"test/AuditRegressions.t.sol\":789,\"test/Compatibility.t.sol\":80,\"test/Deploy.t.sol\":106,\"test/IMDCourt.t.sol\":644,\"test/LaunchAdaptation.t.sol\":97,\"test/OracleConformance.t.sol\":138,\"test/RevisionRegressions.t.sol\":464,\"test/mocks/MockIntake.sol\":87,\"test/test_deliverables.py\":62},\"excluded\":[\"lib/\",\"node_modules/\"],\"truncated\":false}","passed":true}],"detail":"all checks passed","evaluation":"checks","profile":"foundry","status":"accepted","submissionHash":"66f33b6eb168ad166a08de1eafbb905c4fd2b61c4d273cc37e1cc22e773e719e","verifiedTreeHash":"749d6c396c13953de6c8491a850e935ca861dbca","verifierVersion":"0.1.0+435fe828"},{"checks":[{"durationMs":59432,"exitCode":0,"name":"build","output":"Compiling 69 files with Solc 0.8.26\nSolc 0.8.26 finished in 59.28s\nCompiler run successful!\n","passed":true},{"durationMs":2350,"exitCode":0,"name":"test","output":"No files changed, compilation skipped\n\nRan 4 tests for test/OracleConformance.t.sol:OracleConsumerConformanceTest\n[PASS] test_acceptsAFreshSignatureFromTheVectorKey() (gas: 1961140)\n[PASS] test_callbackSelectorIsCanonical() (gas: 3925)\n[PASS] test_digestMatchesTheProtocol() (gas: 13799)\n[PASS] test_questionHashMatchesTheProtocolVector() (gas: 41781)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 6.40ms (5.89ms CPU time)\n\nRan 3 tests for test/LaunchAdaptation.t.sol:ConfirmedBlockTest\n[PASS] testFuzz_confirmationBoundary(uint64,uint64) (runs: 256, μ: 214298, ~: 350266)\nLogs:\n  Bound result 9\n  Bound result 30\n\n[PASS] test_arbitrumUsesItsOwnHeightForConfirmation() (gas: 7986780)\n[PASS] test_futureAndUnconfirmedLocalBlocksFailBeforeEscrowMoves() (gas: 586328)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 27.48ms (26.39ms CPU time)\n\nRan 3 tests for test/LaunchAdaptation.t.sol:TokenLaunchTest\n[PASS] testFuzz_transferAndBurnConserveSupply(uint96,uint96) (runs: 256, μ: 149442, ~: 150540)\nLogs:\n  Bound result 2559\n  Bound result 1904\n\n[PASS] test_noBurnFromEvenWithAllowance() (gas: 91891)\n[PASS] test_onlyConstructorMintsAndFactoryReceivesNothing() (gas: 98093)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 71.49ms (71.35ms CPU time)\n\nRan 2 tests for test/Deploy.t.sol:DeployTest\n[PASS] test_deployRejectsAnotherChain() (gas: 12099494)\n[PASS] test_deploySepoliaConfig() (gas: 62144638)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 140.07ms (139.33ms CPU time)\n\nRan 4 tests for test/Compatibility.t.sol:CompatibilityTest\n[PASS] testFuzz_domainDigestAndIntrospectionMatch(bytes32,uint64) (runs: 256, μ: 1845464, ~: 1845464)\n[PASS] testFuzz_stringsMatchProtectedDependency(uint256,address) (runs: 256, μ: 68296, ~: 61992)\n[PASS] test_decimalBoundariesAndHexPadding() (gas: 4642240)\n[PASS] test_hexOverflowKeepsOriginalError() (gas: 7214)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 140.27ms (237.37ms CPU time)\n\nRan 28 tests for test/AuditRegressions.t.sol:AuditRegressionsTest\n[PASS] testFuzz_audit6_compensationConservesFundsAndOnlyDebitsNoShows(bool,uint64) (runs: 256, μ: 2142416, ~: 2237780)\nLogs:\n  Bound result 7458\n\n[PASS] testFuzz_audit6_tieNoShowClosesWithoutReplacement(bool) (runs: 256, μ: 2499988, ~: 2454876)\n[PASS] test_audit12_arbitrumBlockModeComesFromChainId() (gas: 10216506)\n[PASS] test_audit13_arbitrumExpiredSeedIsRefusedToo() (gas: 9885372)\n[PASS] test_audit13_drawDoesNotDependOnTheBlockItIsCalledIn() (gas: 3813628)\n[PASS] test_audit13_expiredSeedJobIsRefundedByCancelAndAReposterGetsANewSeed() (gas: 1702433)\n[PASS] test_audit13_expiredTieSeedIsNotRedrawnAndTheDisputedKeySettlesUnresolved() (gas: 2378276)\n[PASS] test_audit13_replacementDrawHasOneSeedToo() (gas: 1343871)\n[PASS] test_audit14_noShowCloseDoesNotReplaceTheLatestVerdict() (gas: 8156046)\n[PASS] test_audit1_flatConstructorConstantsAndDerivedMinBond() (gas: 8067505)\n[PASS] test_audit2_attemptsContinueWithOneSeedAndAreBounded() (gas: 1746374)\n[PASS] test_audit2_exitAndStopOnlyExcludeLaterJobs() (gas: 2412814)\n[PASS] test_audit2_exitAndStopRespectPostingOrderWithinOneBlock() (gas: 2309290)\n[PASS] test_audit2_jobRecordsLengthBlockAndPicksByFormula() (gas: 853676)\n[PASS] test_audit2_listIsAppendOnlyAndLateEntriesCannotReshapeDraw() (gas: 1525469)\n[PASS] test_audit2_slashAfterPostingInvalidatesEligibility() (gas: 3752314)\n[PASS] test_audit2_stateChangeInPostingBlockOrAfterExcludesOldJob() (gas: 2721098)\n[PASS] test_audit3_serveRequiresMinimumBond() (gas: 487980)\n[PASS] test_audit4_threeArmsNeverDrawFourthMixedKeys() (gas: 2590325)\n[PASS] test_audit4_threeDistinctAnswersRefundAllEscrow() (gas: 2937039)\n[PASS] test_audit5_timeoutNeverStrikesTimelyTieRevealer() (gas: 2819476)\n[PASS] test_audit6_noShowCompensationPreservesOtherJobsLocks() (gas: 4052962)\n[PASS] test_audit6_revealNoShowPaysRevealerRefundsPosterAndCannotCancel() (gas: 2463666)\n[PASS] test_audit6_zeroRevealsCanReplaceWithoutReducingBonds() (gas: 2909647)\n[PASS] test_audit7_formIdBindsEveryField() (gas: 300895)\n[PASS] test_audit7_uriCharactersAndCourtQuotes() (gas: 13123878)\n[PASS] test_audit8_armAddressCanAlsoSignForAnotherArm() (gas: 1928802)\n[PASS] test_audit8_sharedSignerNamesArmAndRevocationIsIndependent() (gas: 2094368)\nSuite result: ok. 28 passed; 0 failed; 0 skipped; finished in 189.52ms (343.83ms CPU time)\n\nRan 18 tests for test/IMDCourt.t.sol:IMDCourtTest\n[PASS] testFuzz_questionUsesOneBasedFormKey(uint8) (runs: 256, μ: 1108418, ~: 1093721)\nLogs:\n  Bound result 5\n\n[PASS] test_ask_buildsExactBodyAndPullsFee() (gas: 2755862)\n[PASS] test_ask_refusesDuplicateAndFeeAboveMax() (gas: 3965569)\n[PASS] test_ask_whenNotSoldReverts() (gas: 134844)\n[PASS] test_callback_answerCodes() (gas: 6711990)\n[PASS] test_callback_refusals() (gas: 2968800)\n[PASS] test_callback_storesRulingUnder200kGas() (gas: 2742795)\n[PASS] test_controlMapSpotCheckSlashesOnlyTheTwoWrongArms() (gas: 12557026)\n[PASS] test_controlMapTwoRoundsAndChallengeAccounting() (gas: 11868947)\n[PASS] test_failure_closesCaseWithoutRuling() (gas: 2751258)\n[PASS] test_fullChallengeNoAnswerEndsAtCourtDeadline() (gas: 4447137)\n[PASS] test_fullChallengeThroughIMDCourt() (gas: 5193372)\n[PASS] test_intakeMigrationPreservesPendingRequestsAndNamespacesIds() (gas: 6276799)\n[PASS] test_newActionAndAssetRecoverRetiredSale() (gas: 2717647)\n[PASS] test_oldIntakeFailureStillClosesOnlyItsCaseAfterMigration() (gas: 3517851)\n[PASS] test_oracleConfigurationOnlyLaunchOwnerAndNoZeroSettings() (gas: 198137)\n[PASS] test_question_refusesNonAsciiAndUppercaseHexValue() (gas: 164967)\n[PASS] test_signerRotationRecoversPendingCaseAndRevokesOldSigner() (gas: 2770717)\nSuite result: ok. 18 passed; 0 failed; 0 skipped; finished in 273.18ms (416.07ms CPU time)\n\nRan 33 tests for test/Arms.t.sol:ArmsTest\n[PASS] testFuzz_bondWithdrawRoundTrip(uint96,uint32) (runs: 256, μ: 362165, ~: 362125)\nLogs:\n  Bound result 3\n  Bound result 30326407\n\n[PASS] testFuzz_commitHashBindsJobArmValuesSalt(bytes32,bytes32) (runs: 256, μ: 1221328, ~: 1221489)\n[PASS] testFuzz_settlePaymentsNeverExceedEscrow(bytes32,bytes32,uint8) (runs: 256, μ: 2072015, ~: 2074425)\n[PASS] test_bond_capsAndExit() (gas: 664197)\n[PASS] test_bond_totalCap() (gas: 7596861)\n[PASS] test_cancel_refundsAndUnlocks() (gas: 1293281)\n[PASS] test_challenge_rules() (gas: 3954744)\n[PASS] test_commitReveal_rules() (gas: 1574401)\n[PASS] test_constructor_rejectsBadParams() (gas: 640678)\n[PASS] test_draw_excludesPosterAndIneligible() (gas: 1514669)\n[PASS] test_draw_expiredSeedIsNeverReplaced() (gas: 486642)\n[PASS] test_draw_tooEarlyThenFills() (gas: 826665)\n[PASS] test_noOwnerAdminPauseOrUpgrade() (gas: 434257)\n[PASS] test_post_rules() (gas: 609244)\n[PASS] test_registerForm_rules() (gas: 359424)\n[PASS] test_resolve_claimedCorrectsSlashesRefundsRewards() (gas: 3354068)\n[PASS] test_resolve_neitherOverturnsHoldsRewardThenBurnsIt() (gas: 3117824)\n[PASS] test_resolve_noRulingAfterCourtDeadline() (gas: 2961351)\n[PASS] test_resolve_secondSlashBurnsAndArmsLoseOneTrancheOnly() (gas: 3792024)\n[PASS] test_resolve_storedAfterOverturnReturnsStake() (gas: 3449516)\n[PASS] test_resolve_storedSplitsStakeAmongArms() (gas: 3035562)\n[PASS] test_serve_rules() (gas: 401313)\n[PASS] test_setSigner_commitsAndReveals() (gas: 1572002)\n[PASS] test_settle_agreedPaysBurnsReturns() (gas: 2301782)\n[PASS] test_settle_disputeGoesToTieBreakAndMajority() (gas: 2877919)\n[PASS] test_settle_unavailableTieBreakLeavesDisputedKeysUnresolved() (gas: 3234778)\n[PASS] test_settle_unknownNeverPaidAndNotApplicableIsAnAnswer() (gas: 2066366)\n[PASS] test_spotCheck_threeArmsMajorityWithoutTieBreak() (gas: 38199957)\n[PASS] test_tieBreakerIsSlashedWhenItGaveTheStoredValue() (gas: 3639284)\n[PASS] test_timeout_afterEveryoneRevealedIsNotATimeout() (gas: 1977005)\n[PASS] test_timeout_commitMissStrikesAndReplaces() (gas: 2518904)\n[PASS] test_timeout_revealMissAndDeactivation() (gas: 40545226)\n[PASS] test_withdraw_onlyUnlocked() (gas: 946478)\nSuite result: ok. 33 passed; 0 failed; 0 skipped; finished in 273.27ms (426.42ms CPU time)\n\nRan 1 test for test/ArmsInvariant.t.sol:ArmsInvariantTest\n[PASS]\nArmsInvariantTest invariants:\n[PASS] invariant_balanceEqualsBondsEscrowStakesRewards\n[PASS] invariant_bondsSumAndLockedWithinBond\n[PASS] invariant_handlerPropertiesHeld\n[PASS] invariant_operatorNeverGains\n[PASS] invariant_posterNeverGetsMoreThanEscrowPlusOneRefund\n[PASS] invariant_supplyEqualsAllHolders\n ArmsInvariantTest invariants (runs: 64, calls: 2560, reverts: 18)\n\n╭-------------+-----------------+-------+---------+----------╮\n| Contract    | Selector        | Calls | Reverts | Discards |\n+============================================================+\n| ArmsHandler | answer          | 186   | 2       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | bond            | 135   | 16      | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | cancel          | 158   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | challenge       | 162   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | draw            | 163   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | exitAndWithdraw | 181   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | post            | 167   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | reactivate      | 166   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | release         | 187   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | requestExit     | 169   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | resolve         | 184   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | rule            | 167   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | settle          | 162   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | timeout         | 191   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | warp            | 182   | 0       | 0        |\n╰-------------+-----------------+-------+---------+----------╯\n\nLogs:\n  Bound result 4852\n  Bound result 48\n  Bound result 23295\n  Bound result 70\n  Bound result 18387\n  Bound result 3000000000000000000\n  Bound result 17395\n\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 2.18s (2.17s CPU time)\n\nRan 9 test suites in 2.18s (3.30s CPU time): 96 tests passed, 0 failed, 0 skipped (96 total tests)\n","passed":true},{"durationMs":103,"exitCode":0,"name":"source-index","output":"{\"v\":1,\"entryPoints\":[\"Arms.bond(uint256)\",\"Arms.cancel(uint256)\",\"Arms.challenge(uint256,uint8,bytes32,uint256)\",\"Arms.commit(uint256,address,bytes32)\",\"Arms.draw(uint256)\",\"Arms.post(bytes32,uint256,address,uint256,uint256)\",\"Arms.reactivate()\",\"Arms.registerForm(bytes32,uint8,string)\",\"Arms.release(uint256)\",\"Arms.requestExit()\",\"Arms.resolve(uint256,uint8,bytes32)\",\"Arms.reveal(uint256,address,bytes32[],bytes32,string)\",\"Arms.serve(bytes32,uint256)\",\"Arms.setSigner(address)\",\"Arms.settle(uint256)\",\"Arms.stopServing(bytes32)\",\"Arms.timeout(uint256)\",\"Arms.withdraw()\",\"ArmsForms.register(bytes32,uint8,string)\",\"ArmsForms.serve(bytes32,address,uint256)\",\"ArmsForms.stop(bytes32,address,uint256,uint256)\",\"IMDCourt.ask(bytes32,bytes32,string,uint8,uint256,address,uint256,bytes32,bytes32,address,uint256)\",\"IMDCourt.onOracleFailure(bytes32,uint8,bytes32,uint16,uint16,bytes)\",\"IMDCourt.onOracleResult(bytes32,(bytes32,uint256,bytes32,uint8,bytes,uint256,uint64,uint64,bytes32,bytes32,uint16,uint16,uint16,uint64,uint64),bytes)\",\"IMDCourt.renounceOwnership()\",\"IMDCourt.setOracleConfig(address,address,bytes32)\",\"IMDCourt.setSigner(address)\",\"IMDCourt.transferOwnership(address)\"],\"files\":{\".gitignore\":4,\"ADAPTATION.md\":126,\"AUDIT.md\":97,\"README.md\":455,\"REVIEW.md\":110,\"docs/evidence/ImdTest-verified-source.json\":657,\"docs/evidence/Intake-verified-source.json\":1267,\"docs/evidence/base-provenance.json\":22,\"docs/evidence/consumer-schema-preflight.json\":53,\"docs/evidence/control-map-answers.json\":31,\"docs/evidence/current-question-check.json\":92,\"docs/evidence/key-01.json\":20,\"docs/evidence/key-02.json\":20,\"docs/evidence/key-03.json\":20,\"docs/evidence/key-04.json\":20,\"docs/evidence/key-05.json\":20,\"docs/evidence/key-06.json\":20,\"docs/evidence/key-07.json\":20,\"docs/evidence/key-08.json\":20,\"docs/evidence/key-09.json\":20,\"docs/evidence/key-10.json\":20,\"docs/evidence/key-11.json\":20,\"docs/evidence/key-12.json\":20,\"docs/evidence/key-13.json\":20,\"docs/evidence/offline-rehearsal.json\":27,\"docs/evidence/sepolia-readback.json\":749,\"docs/oracle-question-check.json\":96,\"forms/control-map-v1.txt\":150,\"foundry.toml\":31,\"launch.json\":40,\"script/AskSepolia.s.sol\":53,\"script/Deploy.s.sol\":90,\"script/check_launch.py\":69,\"script/prepare_control_map.py\":99,\"script/read_sepolia.py\":102,\"src/Arms.sol\":1014,\"src/ArmsForms.sol\":85,\"src/ArmsResults.sol\":136,\"src/Blocks.sol\":38,\"src/FormURI.sol\":22,\"src/ICourt.sol\":46,\"src/IIntake.sol\":21,\"src/IMDCourt.sol\":298,\"src/OracleAttestation.sol\":221,\"src/OracleQuestion.sol\":277,\"src/compat/EIP712.sol\":162,\"src/compat/LICENSE\":22,\"src/compat/Strings.sol\":43,\"src/mocks/MockCourt.sol\":111,\"src/mocks/MockToken.sol\":20,\"test/Arms.t.sol\":938,\"test/ArmsBase.t.sol\":203,\"test/ArmsInvariant.t.sol\":437,\"test/AuditRegressions.t.sol\":776,\"test/Compatibility.t.sol\":80,\"test/Deploy.t.sol\":104,\"test/IMDCourt.t.sol\":641,\"test/LaunchAdaptation.t.sol\":97,\"test/OracleConformance.t.sol\":138,\"test/mocks/MockIntake.sol\":87,\"test/test_deliverables.py\":62},\"excluded\":[\"lib/\",\"node_modules/\"],\"truncated\":false}","passed":true}],"detail":"all checks passed","evaluation":"checks","profile":"foundry","status":"accepted","submissionHash":"99708b7ae76a8886d692fcf63456fcc8a2bbdb474a9f6965aa974a3b44c9f251","verifiedTreeHash":"9c1b7ad04d64fa346f6b427d03e470e224ac361c","verifierVersion":"0.1.0+435fe828"},{"checks":[{"durationMs":78019,"exitCode":0,"name":"build","output":"Compiling 74 files with Solc 0.8.26\nSolc 0.8.26 finished in 77.89s\nCompiler run successful!\n","passed":true},{"durationMs":1739,"exitCode":0,"name":"test","output":"No files changed, compilation skipped\n\nRan 4 tests for test/OracleConformance.t.sol:OracleConsumerConformanceTest\n[PASS] test_acceptsAFreshSignatureFromTheVectorKey() (gas: 1961084)\n[PASS] test_callbackSelectorIsCanonical() (gas: 3925)\n[PASS] test_digestMatchesTheProtocol() (gas: 13799)\n[PASS] test_questionHashMatchesTheProtocolVector() (gas: 41781)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 2.96ms (2.29ms CPU time)\n\nRan 6 tests for test/RevisionRegressions.t.sol:DrawOptOutTest\n[PASS] test_feeRaiseDoesNotApplyToAnOlderJob() (gas: 1318254)\n[PASS] test_lateServeFeeCutOrReServeDoesNotOptIn() (gas: 2592359)\n[PASS] test_newlyActiveBondStillInvalidatesOlderJobs() (gas: 437356)\n[PASS] test_reServeDoesNotOptOutOfAnOlderJob() (gas: 859894)\n[PASS] test_topUpAfterPostDoesNotOptIn() (gas: 2145233)\n[PASS] test_topUpDoesNotOptOutOfAnOlderJob() (gas: 876668)\nSuite result: ok. 6 passed; 0 failed; 0 skipped; finished in 6.32ms (3.26ms CPU time)\n\nRan 2 tests for test/RevisionRegressions.t.sol:ClaimedAfterNeitherTest\n[PASS] test_claimedAfterNeitherOnTheSameKeyCorrectsIt() (gas: 4032017)\n[PASS] test_claimedThenNeitherLeavesTheCorrection() (gas: 3637677)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 9.24ms (3.55ms CPU time)\n\nRan 3 tests for test/LaunchAdaptation.t.sol:ConfirmedBlockTest\n[PASS] testFuzz_confirmationBoundary(uint64,uint64) (runs: 256, μ: 212085, ~: 350344)\nLogs:\n  Bound result 21600\n  Bound result 1209600\n\n[PASS] test_arbitrumUsesItsOwnHeightForConfirmation() (gas: 8506248)\n[PASS] test_futureAndUnconfirmedLocalBlocksFailBeforeEscrowMoves() (gas: 586718)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 10.28ms (8.97ms CPU time)\n\nRan 3 tests for test/LaunchAdaptation.t.sol:TokenLaunchTest\n[PASS] testFuzz_transferAndBurnConserveSupply(uint96,uint96) (runs: 256, μ: 149442, ~: 150540)\nLogs:\n  Bound result 2559\n  Bound result 1904\n\n[PASS] test_noBurnFromEvenWithAllowance() (gas: 91891)\n[PASS] test_onlyConstructorMintsAndFactoryReceivesNothing() (gas: 98093)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 57.16ms (56.96ms CPU time)\n\nRan 2 tests for test/Deploy.t.sol:DeployTest\n[PASS] test_deployRejectsAnotherChain() (gas: 12705759)\n[PASS] test_deploySepoliaConfig() (gas: 65589052)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 83.09ms (75.76ms CPU time)\n\nRan 5 tests for test/ExitRejoinProperties.t.sol:ExitRejoinPropertiesTest\n[PASS] testFuzz_exitRejoinSequenceMatchesModel(uint256) (runs: 256, μ: 2070764, ~: 2028567)\nLogs:\n  Bound result 10681281322187652924\n  Bound result 18849849554479645701\n  Bound result 18214882746372597628\n\n[PASS] test_belowMinBondArmCannotOptInByExitAndRejoin() (gas: 1679447)\n[PASS] test_belowMinBondPlainTopUpResetsSnapshot() (gas: 1189671)\n[PASS] test_rejoinRestartsTheExitDelay() (gas: 264987)\n[PASS] test_requestExitTwiceRevertsAndRejoinClearsTimer() (gas: 282324)\nSuite result: ok. 5 passed; 0 failed; 0 skipped; finished in 92.84ms (91.27ms CPU time)\n\nRan 3 tests for test/RevisionRegressions.t.sol:LatestVerdictTest\n[PASS] test_allUnknownJobDoesNotReplaceTheLatestVerdict() (gas: 3916711)\n[PASS] test_olderBlockDoesNotReplaceTheLatestVerdict() (gas: 7887109)\n[PASS] test_partlyAnsweredJobIsTheLatest() (gas: 3886379)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 93.07ms (8.44ms CPU time)\n\nRan 4 tests for test/RevisionRegressions.t.sol:ExitCancelOptOutTest\n[PASS] test_checkpointsWrittenWhileExitingRecordZero() (gas: 1060494)\n[PASS] test_everyExitIntervalStaysClosedAcrossCycles() (gas: 2202971)\n[PASS] test_exitThenOneWeiBondDoesNotOptOutOfAnOlderJob() (gas: 996727)\n[PASS] test_jobPostedDuringExitStaysClosedAfterRejoin() (gas: 1291137)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 111.41ms (2.43ms CPU time)\n\nRan 3 tests for test/RevisionRegressions.t.sol:StoredStakeTest\n[PASS] test_releaseAfterStoredRulingOnAnOverturnedJob() (gas: 3772407)\n[PASS] test_storedRulingForfeitsTheStakeInEitherResolveOrder() (gas: 7797716)\n[PASS] test_storedRulingPaysTheGivers() (gas: 2782696)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 111.52ms (5.67ms CPU time)\n\nRan 33 tests for test/Arms.t.sol:ArmsTest\n[PASS] testFuzz_bondWithdrawRoundTrip(uint96,uint32) (runs: 256, μ: 431159, ~: 431108)\nLogs:\n  Bound result 14914\n  Bound result 30326461\n\n[PASS] testFuzz_commitHashBindsJobArmValuesSalt(bytes32,bytes32) (runs: 256, μ: 1239174, ~: 1239339)\n[PASS] testFuzz_settlePaymentsNeverExceedEscrow(bytes32,bytes32,uint8) (runs: 256, μ: 2088132, ~: 2106026)\n[PASS] test_bond_capsAndExit() (gas: 775920)\n[PASS] test_bond_totalCap() (gas: 8165212)\n[PASS] test_cancel_refundsAndUnlocks() (gas: 1313397)\n[PASS] test_challenge_rules() (gas: 3978144)\n[PASS] test_commitReveal_rules() (gas: 1592738)\n[PASS] test_constructor_rejectsBadParams() (gas: 678308)\n[PASS] test_draw_excludesPosterAndIneligible() (gas: 1911168)\n[PASS] test_draw_expiredSeedIsNeverReplaced() (gas: 489821)\n[PASS] test_draw_tooEarlyThenFills() (gas: 843602)\n[PASS] test_noOwnerAdminPauseOrUpgrade() (gas: 434257)\n[PASS] test_post_rules() (gas: 612806)\n[PASS] test_registerForm_rules() (gas: 372411)\n[PASS] test_resolve_claimedCorrectsSlashesRefundsRewards() (gas: 3484261)\n[PASS] test_resolve_neitherOverturnsHoldsRewardThenBurnsIt() (gas: 3251876)\n[PASS] test_resolve_noRulingAfterCourtDeadline() (gas: 2983024)\n[PASS] test_resolve_secondSlashBurnsAndArmsLoseOneTrancheOnly() (gas: 3969599)\n[PASS] test_resolve_storedAfterOverturnBurnsStakeWhenEveryGiverWasSlashed() (gas: 3672139)\n[PASS] test_resolve_storedSplitsStakeAmongArms() (gas: 3110817)\n[PASS] test_serve_rules() (gas: 420789)\n[PASS] test_setSigner_commitsAndReveals() (gas: 1589877)\n[PASS] test_settle_agreedPaysBurnsReturns() (gas: 2321347)\n[PASS] test_settle_disputeGoesToTieBreakAndMajority() (gas: 2904824)\n[PASS] test_settle_unavailableTieBreakLeavesDisputedKeysUnresolved() (gas: 3367063)\n[PASS] test_settle_unknownNeverPaidAndNotApplicableIsAnAnswer() (gas: 2086011)\n[PASS] test_spotCheck_threeArmsMajorityWithoutTieBreak() (gas: 38653876)\n[PASS] test_tieBreakerIsSlashedWhenItGaveTheStoredValue() (gas: 3781094)\n[PASS] test_timeout_afterEveryoneRevealedIsNotATimeout() (gas: 1996429)\n[PASS] test_timeout_commitMissStrikesAndReplaces() (gas: 2545514)\n[PASS] test_timeout_revealMissAndDeactivation() (gas: 41144885)\n[PASS] test_withdraw_onlyUnlocked() (gas: 1008506)\nSuite result: ok. 33 passed; 0 failed; 0 skipped; finished in 111.81ms (272.85ms CPU time)\n\nRan 28 tests for test/AuditRegressions.t.sol:AuditRegressionsTest\n[PASS] testFuzz_audit6_compensationConservesFundsAndOnlyDebitsNoShows(bool,uint64) (runs: 256, μ: 2225876, ~: 2305518)\nLogs:\n  Bound result 502786723907683583\n\n[PASS] testFuzz_audit6_tieNoShowClosesWithoutReplacement(bool) (runs: 256, μ: 2562161, ~: 2517044)\n[PASS] test_audit12_arbitrumBlockModeComesFromChainId() (gas: 11333276)\n[PASS] test_audit13_arbitrumExpiredSeedIsRefusedToo() (gas: 10989079)\n[PASS] test_audit13_drawDoesNotDependOnTheBlockItIsCalledIn() (gas: 3869059)\n[PASS] test_audit13_expiredSeedJobIsRefundedByCancelAndAReposterGetsANewSeed() (gas: 1721851)\n[PASS] test_audit13_expiredTieSeedIsNotRedrawnAndTheDisputedKeySettlesUnresolved() (gas: 2397118)\n[PASS] test_audit13_replacementDrawHasOneSeedToo() (gas: 1360637)\n[PASS] test_audit14_noShowCloseDoesNotReplaceTheLatestVerdict() (gas: 8313823)\n[PASS] test_audit1_flatConstructorConstantsAndDerivedMinBond() (gas: 8621926)\n[PASS] test_audit2_attemptsContinueWithOneSeedAndAreBounded() (gas: 1995986)\n[PASS] test_audit2_exitAndStopOnlyExcludeLaterJobs() (gas: 2940613)\n[PASS] test_audit2_exitAndStopRespectPostingOrderWithinOneBlock() (gas: 2837808)\n[PASS] test_audit2_jobRecordsLengthBlockAndPicksByFormula() (gas: 869904)\n[PASS] test_audit2_listIsAppendOnlyAndLateEntriesCannotReshapeDraw() (gas: 1706234)\n[PASS] test_audit2_slashAfterPostingInvalidatesEligibility() (gas: 3898439)\n[PASS] test_audit2_stateChangeInPostingBlockOrAfterExcludesOldJob() (gas: 4429501)\n[PASS] test_audit3_serveRequiresMinimumBond() (gas: 599153)\n[PASS] test_audit4_threeArmsNeverDrawFourthMixedKeys() (gas: 2622236)\n[PASS] test_audit4_threeDistinctAnswersRefundAllEscrow() (gas: 2949066)\n[PASS] test_audit5_timeoutNeverStrikesTimelyTieRevealer() (gas: 2845479)\n[PASS] test_audit6_noShowCompensationPreservesOtherJobsLocks() (gas: 4288610)\n[PASS] test_audit6_revealNoShowPaysRevealerRefundsPosterAndCannotCancel() (gas: 2518849)\n[PASS] test_audit6_zeroRevealsCanReplaceWithoutReducingBonds() (gas: 2946538)\n[PASS] test_audit7_formIdBindsEveryField() (gas: 308453)\n[PASS] test_audit7_uriCharactersAndCourtQuotes() (gas: 13221112)\n[PASS] test_audit8_armAddressCanAlsoSignForAnotherArm() (gas: 1947514)\n[PASS] test_audit8_sharedSignerNamesArmAndRevocationIsIndependent() (gas: 2113080)\nSuite result: ok. 28 passed; 0 failed; 0 skipped; finished in 127.11ms (268.00ms CPU time)\n\nRan 4 tests for test/Compatibility.t.sol:CompatibilityTest\n[PASS] testFuzz_domainDigestAndIntrospectionMatch(bytes32,uint64) (runs: 256, μ: 1845464, ~: 1845464)\n[PASS] testFuzz_stringsMatchProtectedDependency(uint256,address) (runs: 256, μ: 68155, ~: 63858)\n[PASS] test_decimalBoundariesAndHexPadding() (gas: 4642240)\n[PASS] test_hexOverflowKeepsOriginalError() (gas: 7214)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 127.14ms (254.52ms CPU time)\n\nRan 3 tests for test/RevisionRegressions.t.sol:RemoteHeadTest\n[PASS] testFuzz_remoteBoundary(uint64,uint64) (runs: 256, μ: 294292, ~: 428601)\nLogs:\n  Bound result 3\n  Bound result 30\n\n[PASS] test_realCourtHeadIsOwnerPublishedForwardOnlyAndRemoteOnly() (gas: 11914001)\n[PASS] test_remotePostIsBoundedByTheCourtsConfirmedHead() (gas: 997448)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 166.60ms (165.44ms CPU time)\n\nRan 18 tests for test/IMDCourt.t.sol:IMDCourtTest\n[PASS] testFuzz_questionUsesOneBasedFormKey(uint8) (runs: 256, μ: 1107395, ~: 1093700)\nLogs:\n  Bound result 4\n\n[PASS] test_ask_buildsExactBodyAndPullsFee() (gas: 2755807)\n[PASS] test_ask_refusesDuplicateAndFeeAboveMax() (gas: 3965436)\n[PASS] test_ask_whenNotSoldReverts() (gas: 134844)\n[PASS] test_callback_answerCodes() (gas: 6711759)\n[PASS] test_callback_refusals() (gas: 2968723)\n[PASS] test_callback_storesRulingUnder200kGas() (gas: 2742718)\n[PASS] test_controlMapSpotCheckSlashesOnlyTheTwoWrongArms() (gas: 12860621)\n[PASS] test_controlMapTwoRoundsAndChallengeAccounting() (gas: 12153627)\n[PASS] test_failure_closesCaseWithoutRuling() (gas: 2751247)\n[PASS] test_fullChallengeNoAnswerEndsAtCourtDeadline() (gas: 4469496)\n[PASS] test_fullChallengeThroughIMDCourt() (gas: 5323597)\n[PASS] test_intakeMigrationPreservesPendingRequestsAndNamespacesIds() (gas: 6276645)\n[PASS] test_newActionAndAssetRecoverRetiredSale() (gas: 2717635)\n[PASS] test_oldIntakeFailureStillClosesOnlyItsCaseAfterMigration() (gas: 3517796)\n[PASS] test_oracleConfigurationOnlyLaunchOwnerAndNoZeroSettings() (gas: 198181)\n[PASS] test_question_refusesNonAsciiAndUppercaseHexValue() (gas: 164911)\n[PASS] test_signerRotationRecoversPendingCaseAndRevokesOldSigner() (gas: 2770640)\nSuite result: ok. 18 passed; 0 failed; 0 skipped; finished in 188.14ms (266.65ms CPU time)\n\nRan 15 tests for test/CourtFailurePaths.t.sol:CourtFailurePathsTest\n[PASS] testFuzz_anySignedAnswerConservesFundsAndMapsRuling(uint256,uint8,bool) (runs: 256, μ: 4650774, ~: 4584347)\nLogs:\n  Bound result 1\n  Bound result 6\n\n[PASS] test_challengeRevertsWholeWhenOracleNoLongerSold() (gas: 2344020)\n[PASS] test_challengeRevertsWholeWhenOraclePriceRisesAboveMax() (gas: 4487898)\n[PASS] test_challengeRevertsWholeWithoutFeeAssetApproval() (gas: 2286943)\n[PASS] test_challengeWindowAndReleaseShareOneBoundary() (gas: 4503599)\n[PASS] test_failureNeverShortensTheDeadlineOrTouchesOtherRequests() (gas: 4442796)\n[PASS] test_lateRulingAfterDeadlineCloseMovesNothing() (gas: 4501062)\n[PASS] test_outOfRangeAnswerClosesCaseAndOnlyTheDeadlineEndsIt() (gas: 4575067)\n[PASS] test_panelThatRaisedItsOwnQuorumMustReachIt() (gas: 4251714)\n[PASS] test_remoteTargetNeedsAPublishedConfirmedHead() (gas: 14034887)\n[PASS] test_rulingAfterDeadlineButBeforeResolveIsApplied() (gas: 4649789)\n[PASS] test_strangerCannotPreoccupyArmsCaseOrRuleIt() (gas: 5600866)\n[PASS] test_twoAskersWithIdenticalQuestionsCannotCrossSettle() (gas: 18589603)\n[PASS] test_unsupportedTargetChainsRefusedByArmsAndCourt() (gas: 208812)\n[PASS] test_wrongAnswerTypeOrFutureIssuedAttestationLeavesCaseOpen() (gas: 4431187)\nSuite result: ok. 15 passed; 0 failed; 0 skipped; finished in 313.99ms (370.42ms CPU time)\n\nRan 2 tests for test/IMDCourtInvariant.t.sol:IMDCourtInvariantTest\n[PASS]\nIMDCourtInvariantTest invariants:\n[PASS] invariant_armsHoldsExactlyWhatItOwes\n[PASS] invariant_closedRulingsNeverChangeAndArmsAppliesTheCourts\n[PASS] invariant_lockedWithinBondAndBondsSum\n[PASS] invariant_onlyTheIntakeAndOnlyOnceCloseACase\n[PASS] invariant_oracleFeeIsNeverHeldOrLeftApproved\n[PASS] invariant_supplyEqualsHoldersAndFeeSupplyFixed\n IMDCourtInvariantTest invariants (runs: 64, calls: 2560, reverts: 0)\n\n╭--------------+----------------+-------+---------+----------╮\n| Contract     | Selector       | Calls | Reverts | Discards |\n+============================================================+\n| CourtHandler | cancel         | 241   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | challenge      | 257   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | forgedCallback | 269   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | oracleAnswer   | 235   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | oracleFail     | 288   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | release        | 266   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | replay         | 261   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | resolve        | 268   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | runJob         | 239   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | warp           | 236   | 0       | 0        |\n╰--------------+----------------+-------+---------+----------╯\n\nLogs:\n  Bound result 8207\n  Bound result 425\n\n[PASS] test_handlerSequenceReachesEveryStage() (gas: 5565698)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 1.18s (1.18s CPU time)\n\nRan 1 test for test/ArmsInvariant.t.sol:ArmsInvariantTest\n[PASS]\nArmsInvariantTest invariants:\n[PASS] invariant_balanceEqualsBondsEscrowStakesRewards\n[PASS] invariant_bondsSumAndLockedWithinBond\n[PASS] invariant_handlerPropertiesHeld\n[PASS] invariant_operatorNeverGains\n[PASS] invariant_posterNeverGetsMoreThanEscrowPlusOneRefund\n[PASS] invariant_supplyEqualsAllHolders\n ArmsInvariantTest invariants (runs: 64, calls: 2560, reverts: 26)\n\n╭-------------+-----------------+-------+---------+----------╮\n| Contract    | Selector        | Calls | Reverts | Discards |\n+============================================================+\n| ArmsHandler | answer          | 186   | 4       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | bond            | 135   | 22      | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | cancel          | 158   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | challenge       | 162   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | draw            | 163   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | exitAndWithdraw | 181   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | post            | 167   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | reactivate      | 166   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | release         | 187   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | requestExit     | 169   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | resolve         | 184   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | rule            | 167   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | settle          | 162   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | timeout         | 191   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | warp            | 182   | 0       | 0        |\n╰-------------+-----------------+-------+---------+----------╯\n\nLogs:\n  Bound result 13810\n  Bound result 20\n  Bound result 23295\n  Bound result 9\n  Bound result 17727\n  Bound result 2000\n  Bound result 16564\n\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 1.62s (1.61s CPU time)\n\nRan 18 test suites in 1.62s (4.41s CPU time): 139 tests passed, 0 failed, 0 skipped (139 total tests)\n","passed":true},{"durationMs":74,"exitCode":0,"name":"source-index","output":"{\"v\":1,\"entryPoints\":[\"Arms.bond(uint256)\",\"Arms.cancel(uint256)\",\"Arms.challenge(uint256,uint8,bytes32,uint256)\",\"Arms.commit(uint256,address,bytes32)\",\"Arms.draw(uint256)\",\"Arms.post(bytes32,uint256,address,uint256,uint256)\",\"Arms.reactivate()\",\"Arms.registerForm(bytes32,uint8,string)\",\"Arms.release(uint256)\",\"Arms.requestExit()\",\"Arms.resolve(uint256,uint8,bytes32)\",\"Arms.reveal(uint256,address,bytes32[],bytes32,string)\",\"Arms.serve(bytes32,uint256)\",\"Arms.setSigner(address)\",\"Arms.settle(uint256)\",\"Arms.stopServing(bytes32)\",\"Arms.timeout(uint256)\",\"Arms.withdraw()\",\"ArmsForms.noteBond(address,uint256,uint256)\",\"ArmsForms.register(bytes32,uint8,string)\",\"ArmsForms.serve(bytes32,address,uint256,uint256)\",\"ArmsForms.stop(bytes32,address,uint256,uint256)\",\"IMDCourt.ask(bytes32,bytes32,string,uint8,uint256,address,uint256,bytes32,bytes32,address,uint256)\",\"IMDCourt.onOracleFailure(bytes32,uint8,bytes32,uint16,uint16,bytes)\",\"IMDCourt.onOracleResult(bytes32,(bytes32,uint256,bytes32,uint8,bytes,uint256,uint64,uint64,bytes32,bytes32,uint16,uint16,uint16,uint64,uint64),bytes)\",\"IMDCourt.renounceOwnership()\",\"IMDCourt.setConfirmedHead(uint256,uint256)\",\"IMDCourt.setOracleConfig(address,address,bytes32)\",\"IMDCourt.setSigner(address)\",\"IMDCourt.transferOwnership(address)\"],\"files\":{\".gitignore\":4,\"ADAPTATION.md\":212,\"AUDIT.md\":97,\"README.md\":481,\"REVIEW.md\":112,\"docs/evidence/ImdTest-verified-source.json\":657,\"docs/evidence/Intake-verified-source.json\":1267,\"docs/evidence/base-provenance.json\":22,\"docs/evidence/consumer-schema-preflight.json\":53,\"docs/evidence/control-map-answers.json\":31,\"docs/evidence/current-question-check.json\":92,\"docs/evidence/key-01.json\":20,\"docs/evidence/key-02.json\":20,\"docs/evidence/key-03.json\":20,\"docs/evidence/key-04.json\":20,\"docs/evidence/key-05.json\":20,\"docs/evidence/key-06.json\":20,\"docs/evidence/key-07.json\":20,\"docs/evidence/key-08.json\":20,\"docs/evidence/key-09.json\":20,\"docs/evidence/key-10.json\":20,\"docs/evidence/key-11.json\":20,\"docs/evidence/key-12.json\":20,\"docs/evidence/key-13.json\":20,\"docs/evidence/offline-rehearsal.json\":27,\"docs/evidence/sepolia-readback.json\":749,\"docs/oracle-question-check.json\":96,\"forms/control-map-v1.txt\":150,\"foundry.toml\":31,\"launch.json\":40,\"script/AskSepolia.s.sol\":53,\"script/Deploy.s.sol\":90,\"script/check_launch.py\":69,\"script/prepare_control_map.py\":99,\"script/read_sepolia.py\":102,\"src/Arms.sol\":1045,\"src/ArmsForms.sol\":117,\"src/ArmsResults.sol\":156,\"src/Blocks.sol\":38,\"src/FormURI.sol\":22,\"src/ICourt.sol\":51,\"src/IIntake.sol\":21,\"src/IMDCourt.sol\":311,\"src/OracleAttestation.sol\":221,\"src/OracleQuestion.sol\":277,\"src/compat/EIP712.sol\":162,\"src/compat/LICENSE\":22,\"src/compat/Strings.sol\":43,\"src/mocks/MockCourt.sol\":129,\"src/mocks/MockToken.sol\":20,\"test/Arms.t.sol\":943,\"test/ArmsBase.t.sol\":203,\"test/ArmsInvariant.t.sol\":437,\"test/AuditRegressions.t.sol\":793,\"test/Compatibility.t.sol\":80,\"test/CourtFailurePaths.t.sol\":496,\"test/Deploy.t.sol\":106,\"test/ExitRejoinProperties.t.sol\":183,\"test/IMDCourt.t.sol\":644,\"test/IMDCourtInvariant.t.sol\":470,\"test/LaunchAdaptation.t.sol\":97,\"test/OracleConformance.t.sol\":138,\"test/RevisionRegressions.t.sol\":569,\"test/mocks/MockIntake.sol\":87,\"test/test_deliverables.py\":62},\"excluded\":[\"lib/\",\"node_modules/\"],\"truncated\":false}","passed":true}],"detail":"all checks passed","evaluation":"checks","profile":"foundry","status":"accepted","submissionHash":"9be873a269f42d35ff6f70a89d881c7fbe9922164c8e695a0b269e80f20b3096","verifiedTreeHash":"d27cad6e677262d5c39cfdf20ece6f83616d0ed7","verifierVersion":"0.1.0+435fe828"},{"checks":[{"durationMs":75936,"exitCode":0,"name":"build","output":"Compiling 71 files with Solc 0.8.26\nSolc 0.8.26 finished in 75.76s\nCompiler run successful!\n","passed":true},{"durationMs":2173,"exitCode":0,"name":"test","output":"No files changed, compilation skipped\n\nRan 4 tests for test/OracleConformance.t.sol:OracleConsumerConformanceTest\n[PASS] test_acceptsAFreshSignatureFromTheVectorKey() (gas: 1961140)\n[PASS] test_callbackSelectorIsCanonical() (gas: 3925)\n[PASS] test_digestMatchesTheProtocol() (gas: 13799)\n[PASS] test_questionHashMatchesTheProtocolVector() (gas: 41781)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 10.51ms (10.15ms CPU time)\n\nRan 33 tests for test/Arms.t.sol:ArmsTest\n[PASS] testFuzz_bondWithdrawRoundTrip(uint96,uint32) (runs: 256, μ: 362161, ~: 362125)\nLogs:\n  Bound result 3\n  Bound result 30326407\n\n[PASS] testFuzz_commitHashBindsJobArmValuesSalt(bytes32,bytes32) (runs: 256, μ: 1221326, ~: 1221489)\n[PASS] testFuzz_settlePaymentsNeverExceedEscrow(bytes32,bytes32,uint8) (runs: 256, μ: 2071683, ~: 2074425)\n[PASS] test_bond_capsAndExit() (gas: 664197)\n[PASS] test_bond_totalCap() (gas: 7596861)\n[PASS] test_cancel_refundsAndUnlocks() (gas: 1293281)\n[PASS] test_challenge_rules() (gas: 3954744)\n[PASS] test_commitReveal_rules() (gas: 1574401)\n[PASS] test_constructor_rejectsBadParams() (gas: 640678)\n[PASS] test_draw_excludesPosterAndIneligible() (gas: 1514669)\n[PASS] test_draw_expiredSeedIsNeverReplaced() (gas: 486642)\n[PASS] test_draw_tooEarlyThenFills() (gas: 826665)\n[PASS] test_noOwnerAdminPauseOrUpgrade() (gas: 434257)\n[PASS] test_post_rules() (gas: 609244)\n[PASS] test_registerForm_rules() (gas: 359424)\n[PASS] test_resolve_claimedCorrectsSlashesRefundsRewards() (gas: 3354068)\n[PASS] test_resolve_neitherOverturnsHoldsRewardThenBurnsIt() (gas: 3117824)\n[PASS] test_resolve_noRulingAfterCourtDeadline() (gas: 2961351)\n[PASS] test_resolve_secondSlashBurnsAndArmsLoseOneTrancheOnly() (gas: 3792024)\n[PASS] test_resolve_storedAfterOverturnReturnsStake() (gas: 3449516)\n[PASS] test_resolve_storedSplitsStakeAmongArms() (gas: 3035562)\n[PASS] test_serve_rules() (gas: 401313)\n[PASS] test_setSigner_commitsAndReveals() (gas: 1572002)\n[PASS] test_settle_agreedPaysBurnsReturns() (gas: 2301782)\n[PASS] test_settle_disputeGoesToTieBreakAndMajority() (gas: 2877919)\n[PASS] test_settle_unavailableTieBreakLeavesDisputedKeysUnresolved() (gas: 3234778)\n[PASS] test_settle_unknownNeverPaidAndNotApplicableIsAnAnswer() (gas: 2066366)\n[PASS] test_spotCheck_threeArmsMajorityWithoutTieBreak() (gas: 38199957)\n[PASS] test_tieBreakerIsSlashedWhenItGaveTheStoredValue() (gas: 3639284)\n[PASS] test_timeout_afterEveryoneRevealedIsNotATimeout() (gas: 1977005)\n[PASS] test_timeout_commitMissStrikesAndReplaces() (gas: 2518904)\n[PASS] test_timeout_revealMissAndDeactivation() (gas: 40545226)\n[PASS] test_withdraw_onlyUnlocked() (gas: 946478)\nSuite result: ok. 33 passed; 0 failed; 0 skipped; finished in 137.06ms (373.78ms CPU time)\n\nRan 28 tests for test/AuditRegressions.t.sol:AuditRegressionsTest\n[PASS] testFuzz_audit6_compensationConservesFundsAndOnlyDebitsNoShows(bool,uint64) (runs: 256, μ: 2142413, ~: 2237786)\nLogs:\n  Bound result 12549\n\n[PASS] testFuzz_audit6_tieNoShowClosesWithoutReplacement(bool) (runs: 256, μ: 2499988, ~: 2454876)\n[PASS] test_audit12_arbitrumBlockModeComesFromChainId() (gas: 10216506)\n[PASS] test_audit13_arbitrumExpiredSeedIsRefusedToo() (gas: 9885372)\n[PASS] test_audit13_drawDoesNotDependOnTheBlockItIsCalledIn() (gas: 3813628)\n[PASS] test_audit13_expiredSeedJobIsRefundedByCancelAndAReposterGetsANewSeed() (gas: 1702433)\n[PASS] test_audit13_expiredTieSeedIsNotRedrawnAndTheDisputedKeySettlesUnresolved() (gas: 2378276)\n[PASS] test_audit13_replacementDrawHasOneSeedToo() (gas: 1343871)\n[PASS] test_audit14_noShowCloseDoesNotReplaceTheLatestVerdict() (gas: 8156046)\n[PASS] test_audit1_flatConstructorConstantsAndDerivedMinBond() (gas: 8067505)\n[PASS] test_audit2_attemptsContinueWithOneSeedAndAreBounded() (gas: 1746374)\n[PASS] test_audit2_exitAndStopOnlyExcludeLaterJobs() (gas: 2412814)\n[PASS] test_audit2_exitAndStopRespectPostingOrderWithinOneBlock() (gas: 2309290)\n[PASS] test_audit2_jobRecordsLengthBlockAndPicksByFormula() (gas: 853676)\n[PASS] test_audit2_listIsAppendOnlyAndLateEntriesCannotReshapeDraw() (gas: 1525469)\n[PASS] test_audit2_slashAfterPostingInvalidatesEligibility() (gas: 3752314)\n[PASS] test_audit2_stateChangeInPostingBlockOrAfterExcludesOldJob() (gas: 2721098)\n[PASS] test_audit3_serveRequiresMinimumBond() (gas: 487980)\n[PASS] test_audit4_threeArmsNeverDrawFourthMixedKeys() (gas: 2590325)\n[PASS] test_audit4_threeDistinctAnswersRefundAllEscrow() (gas: 2937039)\n[PASS] test_audit5_timeoutNeverStrikesTimelyTieRevealer() (gas: 2819476)\n[PASS] test_audit6_noShowCompensationPreservesOtherJobsLocks() (gas: 4052962)\n[PASS] test_audit6_revealNoShowPaysRevealerRefundsPosterAndCannotCancel() (gas: 2463666)\n[PASS] test_audit6_zeroRevealsCanReplaceWithoutReducingBonds() (gas: 2909647)\n[PASS] test_audit7_formIdBindsEveryField() (gas: 300895)\n[PASS] test_audit7_uriCharactersAndCourtQuotes() (gas: 13123878)\n[PASS] test_audit8_armAddressCanAlsoSignForAnotherArm() (gas: 1928802)\n[PASS] test_audit8_sharedSignerNamesArmAndRevocationIsIndependent() (gas: 2094368)\nSuite result: ok. 28 passed; 0 failed; 0 skipped; finished in 144.30ms (309.00ms CPU time)\n\nRan 2 tests for test/Deploy.t.sol:DeployTest\n[PASS] test_deployRejectsAnotherChain() (gas: 12099494)\n[PASS] test_deploySepoliaConfig() (gas: 62144638)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 158.30ms (158.16ms CPU time)\n\nRan 3 tests for test/LaunchAdaptation.t.sol:TokenLaunchTest\n[PASS] testFuzz_transferAndBurnConserveSupply(uint96,uint96) (runs: 256, μ: 149442, ~: 150540)\nLogs:\n  Bound result 2559\n  Bound result 1904\n\n[PASS] test_noBurnFromEvenWithAllowance() (gas: 91891)\n[PASS] test_onlyConstructorMintsAndFactoryReceivesNothing() (gas: 98093)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 217.67ms (217.52ms CPU time)\n\nRan 3 tests for test/LaunchAdaptation.t.sol:ConfirmedBlockTest\n[PASS] testFuzz_confirmationBoundary(uint64,uint64) (runs: 256, μ: 214289, ~: 350266)\nLogs:\n  Bound result 6\n  Bound result 7200\n\n[PASS] test_arbitrumUsesItsOwnHeightForConfirmation() (gas: 7986780)\n[PASS] test_futureAndUnconfirmedLocalBlocksFailBeforeEscrowMoves() (gas: 586328)\nSuite result: ok. 3 passed; 0 failed; 0 skipped; finished in 217.73ms (216.38ms CPU time)\n\nRan 18 tests for test/IMDCourt.t.sol:IMDCourtTest\n[PASS] testFuzz_questionUsesOneBasedFormKey(uint8) (runs: 256, μ: 1108168, ~: 1093721)\nLogs:\n  Bound result 5\n\n[PASS] test_ask_buildsExactBodyAndPullsFee() (gas: 2755862)\n[PASS] test_ask_refusesDuplicateAndFeeAboveMax() (gas: 3965569)\n[PASS] test_ask_whenNotSoldReverts() (gas: 134844)\n[PASS] test_callback_answerCodes() (gas: 6711990)\n[PASS] test_callback_refusals() (gas: 2968800)\n[PASS] test_callback_storesRulingUnder200kGas() (gas: 2742795)\n[PASS] test_controlMapSpotCheckSlashesOnlyTheTwoWrongArms() (gas: 12557026)\n[PASS] test_controlMapTwoRoundsAndChallengeAccounting() (gas: 11868947)\n[PASS] test_failure_closesCaseWithoutRuling() (gas: 2751258)\n[PASS] test_fullChallengeNoAnswerEndsAtCourtDeadline() (gas: 4447137)\n[PASS] test_fullChallengeThroughIMDCourt() (gas: 5193372)\n[PASS] test_intakeMigrationPreservesPendingRequestsAndNamespacesIds() (gas: 6276799)\n[PASS] test_newActionAndAssetRecoverRetiredSale() (gas: 2717647)\n[PASS] test_oldIntakeFailureStillClosesOnlyItsCaseAfterMigration() (gas: 3517851)\n[PASS] test_oracleConfigurationOnlyLaunchOwnerAndNoZeroSettings() (gas: 198137)\n[PASS] test_question_refusesNonAsciiAndUppercaseHexValue() (gas: 164967)\n[PASS] test_signerRotationRecoversPendingCaseAndRevokesOldSigner() (gas: 2770717)\nSuite result: ok. 18 passed; 0 failed; 0 skipped; finished in 217.74ms (332.45ms CPU time)\n\nRan 4 tests for test/Compatibility.t.sol:CompatibilityTest\n[PASS] testFuzz_domainDigestAndIntrospectionMatch(bytes32,uint64) (runs: 256, μ: 1845464, ~: 1845464)\n[PASS] testFuzz_stringsMatchProtectedDependency(uint256,address) (runs: 256, μ: 67869, ~: 61541)\n[PASS] test_decimalBoundariesAndHexPadding() (gas: 4642240)\n[PASS] test_hexOverflowKeepsOriginalError() (gas: 7214)\nSuite result: ok. 4 passed; 0 failed; 0 skipped; finished in 252.56ms (311.16ms CPU time)\n\nRan 14 tests for test/CourtFailurePaths.t.sol:CourtFailurePathsTest\n[PASS] testFuzz_anySignedAnswerConservesFundsAndMapsRuling(uint256,uint8,bool) (runs: 256, μ: 4601931, ~: 4562785)\nLogs:\n  Bound result 1\n  Bound result 2\n\n[PASS] test_challengeRevertsWholeWhenOracleNoLongerSold() (gas: 2324176)\n[PASS] test_challengeRevertsWholeWhenOraclePriceRisesAboveMax() (gas: 4467944)\n[PASS] test_challengeRevertsWholeWithoutFeeAssetApproval() (gas: 2267168)\n[PASS] test_challengeWindowAndReleaseShareOneBoundary() (gas: 4481935)\n[PASS] test_failureNeverShortensTheDeadlineOrTouchesOtherRequests() (gas: 4422793)\n[PASS] test_lateRulingAfterDeadlineCloseMovesNothing() (gas: 4478830)\n[PASS] test_outOfRangeAnswerClosesCaseAndOnlyTheDeadlineEndsIt() (gas: 4552740)\n[PASS] test_panelThatRaisedItsOwnQuorumMustReachIt() (gas: 4231851)\n[PASS] test_rulingAfterDeadlineButBeforeResolveIsApplied() (gas: 4519699)\n[PASS] test_strangerCannotPreoccupyArmsCaseOrRuleIt() (gas: 5580894)\n[PASS] test_twoAskersWithIdenticalQuestionsCannotCrossSettle() (gas: 17329605)\n[PASS] test_unsupportedTargetChainsRefusedByArmsAndCourt() (gas: 208568)\n[PASS] test_wrongAnswerTypeOrFutureIssuedAttestationLeavesCaseOpen() (gas: 4411324)\nSuite result: ok. 14 passed; 0 failed; 0 skipped; finished in 277.05ms (338.20ms CPU time)\n\nRan 2 tests for test/IMDCourtInvariant.t.sol:IMDCourtInvariantTest\n[PASS]\nIMDCourtInvariantTest invariants:\n[PASS] invariant_armsHoldsExactlyWhatItOwes\n[PASS] invariant_closedRulingsNeverChangeAndArmsAppliesTheCourts\n[PASS] invariant_lockedWithinBondAndBondsSum\n[PASS] invariant_onlyTheIntakeAndOnlyOnceCloseACase\n[PASS] invariant_oracleFeeIsNeverHeldOrLeftApproved\n[PASS] invariant_supplyEqualsHoldersAndFeeSupplyFixed\n IMDCourtInvariantTest invariants (runs: 64, calls: 2560, reverts: 0)\n\n╭--------------+----------------+-------+---------+----------╮\n| Contract     | Selector       | Calls | Reverts | Discards |\n+============================================================+\n| CourtHandler | cancel         | 241   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | challenge      | 257   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | forgedCallback | 269   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | oracleAnswer   | 235   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | oracleFail     | 288   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | release        | 266   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | replay         | 261   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | resolve        | 268   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | runJob         | 239   | 0       | 0        |\n|--------------+----------------+-------+---------+----------|\n| CourtHandler | warp           | 236   | 0       | 0        |\n╰--------------+----------------+-------+---------+----------╯\n\nLogs:\n  Bound result 6648\n  Bound result 3186\n\n[PASS] test_handlerSequenceReachesEveryStage() (gas: 5435192)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 1.39s (1.40s CPU time)\n\nRan 1 test for test/ArmsInvariant.t.sol:ArmsInvariantTest\n[PASS]\nArmsInvariantTest invariants:\n[PASS] invariant_balanceEqualsBondsEscrowStakesRewards\n[PASS] invariant_bondsSumAndLockedWithinBond\n[PASS] invariant_handlerPropertiesHeld\n[PASS] invariant_operatorNeverGains\n[PASS] invariant_posterNeverGetsMoreThanEscrowPlusOneRefund\n[PASS] invariant_supplyEqualsAllHolders\n ArmsInvariantTest invariants (runs: 64, calls: 2560, reverts: 17)\n\n╭-------------+-----------------+-------+---------+----------╮\n| Contract    | Selector        | Calls | Reverts | Discards |\n+============================================================+\n| ArmsHandler | answer          | 186   | 4       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | bond            | 135   | 13      | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | cancel          | 158   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | challenge       | 162   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | draw            | 163   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | exitAndWithdraw | 181   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | post            | 167   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | reactivate      | 166   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | release         | 187   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | requestExit     | 169   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | resolve         | 184   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | rule            | 167   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | settle          | 162   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | timeout         | 191   | 0       | 0        |\n|-------------+-----------------+-------+---------+----------|\n| ArmsHandler | warp            | 182   | 0       | 0        |\n╰-------------+-----------------+-------+---------+----------╯\n\nLogs:\n  Bound result 4852\n  Bound result 4\n  Bound result 23295\n  Bound result 102\n  Bound result 18802\n  Bound result 19999999999999999999\n  Bound result 17495\n\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 2.02s (2.01s CPU time)\n\nRan 11 test suites in 2.02s (5.04s CPU time): 112 tests passed, 0 failed, 0 skipped (112 total tests)\n","passed":true},{"durationMs":89,"exitCode":0,"name":"source-index","output":"{\"v\":1,\"entryPoints\":[\"Arms.bond(uint256)\",\"Arms.cancel(uint256)\",\"Arms.challenge(uint256,uint8,bytes32,uint256)\",\"Arms.commit(uint256,address,bytes32)\",\"Arms.draw(uint256)\",\"Arms.post(bytes32,uint256,address,uint256,uint256)\",\"Arms.reactivate()\",\"Arms.registerForm(bytes32,uint8,string)\",\"Arms.release(uint256)\",\"Arms.requestExit()\",\"Arms.resolve(uint256,uint8,bytes32)\",\"Arms.reveal(uint256,address,bytes32[],bytes32,string)\",\"Arms.serve(bytes32,uint256)\",\"Arms.setSigner(address)\",\"Arms.settle(uint256)\",\"Arms.stopServing(bytes32)\",\"Arms.timeout(uint256)\",\"Arms.withdraw()\",\"ArmsForms.register(bytes32,uint8,string)\",\"ArmsForms.serve(bytes32,address,uint256)\",\"ArmsForms.stop(bytes32,address,uint256,uint256)\",\"IMDCourt.ask(bytes32,bytes32,string,uint8,uint256,address,uint256,bytes32,bytes32,address,uint256)\",\"IMDCourt.onOracleFailure(bytes32,uint8,bytes32,uint16,uint16,bytes)\",\"IMDCourt.onOracleResult(bytes32,(bytes32,uint256,bytes32,uint8,bytes,uint256,uint64,uint64,bytes32,bytes32,uint16,uint16,uint16,uint64,uint64),bytes)\",\"IMDCourt.renounceOwnership()\",\"IMDCourt.setOracleConfig(address,address,bytes32)\",\"IMDCourt.setSigner(address)\",\"IMDCourt.transferOwnership(address)\"],\"files\":{\".gitignore\":4,\"ADAPTATION.md\":126,\"AUDIT.md\":97,\"README.md\":455,\"REVIEW.md\":110,\"docs/evidence/ImdTest-verified-source.json\":657,\"docs/evidence/Intake-verified-source.json\":1267,\"docs/evidence/base-provenance.json\":22,\"docs/evidence/consumer-schema-preflight.json\":53,\"docs/evidence/control-map-answers.json\":31,\"docs/evidence/current-question-check.json\":92,\"docs/evidence/key-01.json\":20,\"docs/evidence/key-02.json\":20,\"docs/evidence/key-03.json\":20,\"docs/evidence/key-04.json\":20,\"docs/evidence/key-05.json\":20,\"docs/evidence/key-06.json\":20,\"docs/evidence/key-07.json\":20,\"docs/evidence/key-08.json\":20,\"docs/evidence/key-09.json\":20,\"docs/evidence/key-10.json\":20,\"docs/evidence/key-11.json\":20,\"docs/evidence/key-12.json\":20,\"docs/evidence/key-13.json\":20,\"docs/evidence/offline-rehearsal.json\":27,\"docs/evidence/sepolia-readback.json\":749,\"docs/oracle-question-check.json\":96,\"forms/control-map-v1.txt\":150,\"foundry.toml\":31,\"launch.json\":40,\"script/AskSepolia.s.sol\":53,\"script/Deploy.s.sol\":90,\"script/check_launch.py\":69,\"script/prepare_control_map.py\":99,\"script/read_sepolia.py\":102,\"src/Arms.sol\":1014,\"src/ArmsForms.sol\":85,\"src/ArmsResults.sol\":136,\"src/Blocks.sol\":38,\"src/FormURI.sol\":22,\"src/ICourt.sol\":46,\"src/IIntake.sol\":21,\"src/IMDCourt.sol\":298,\"src/OracleAttestation.sol\":221,\"src/OracleQuestion.sol\":277,\"src/compat/EIP712.sol\":162,\"src/compat/LICENSE\":22,\"src/compat/Strings.sol\":43,\"src/mocks/MockCourt.sol\":111,\"src/mocks/MockToken.sol\":20,\"test/Arms.t.sol\":938,\"test/ArmsBase.t.sol\":203,\"test/ArmsInvariant.t.sol\":437,\"test/AuditRegressions.t.sol\":776,\"test/Compatibility.t.sol\":80,\"test/CourtFailurePaths.t.sol\":460,\"test/Deploy.t.sol\":104,\"test/IMDCourt.t.sol\":641,\"test/IMDCourtInvariant.t.sol\":470,\"test/LaunchAdaptation.t.sol\":97,\"test/OracleConformance.t.sol\":138,\"test/mocks/MockIntake.sol\":87,\"test/test_deliverables.py\":62},\"excluded\":[\"lib/\",\"node_modules/\"],\"truncated\":false}","passed":true}],"detail":"all checks passed","evaluation":"checks","profile":"foundry","status":"accepted","submissionHash":"9fa3a9931d9e915209bdc5928ca58a67be8ce81c9b52c769b7b725a1f881404e","verifiedTreeHash":"b0f994069b473cb11e27a57dbafdf664e654b56b","verifierVersion":"0.1.0+435fe828"}]}