{"sourcePin":{"repo":"https://github.com/identity-md-launches/goal-3513-continue-complete-existing-pepe","commit":"0e222f40d058f0462c1ec6418e987211950998fc","sha256":{"src/RunVerifier.sol":"39ca7f88291f27d2c8394248be158248c2b2b27cba5eea1b9d09fc7a92adcd7d","src/RunArcade.sol":"b345572c61ed69b836b34f6eb0a19fa4f2fe84490c6136f81bb0fb45bd3288b3","deployments/compiled/standard-json-input.json(file bytes)":"e381dc180d6789b227c91dff8bc880bc2d515ca0600ef260bf65809cfc23fcc5"},"compiler":"solc 0.8.26+commit.8a97fa7a, optimizer 200, cancun, bytecodeHash none, appendCBOR false, viaIR false (deployments/manifest.json; foundry.toml bytecode_hash=\"none\", cbor_metadata=false)"},"order":[{"index":0,"name":"RunVerifier","fqn":"src/RunVerifier.sol:RunVerifier","constructor":[],"unit":1},{"index":1,"name":"RunArcade","fqn":"src/RunArcade.sol:RunArcade","constructor":["address verifier (contract RunVerifier)","address admissionAuthority","address scoreAuthority","address replayVerifier","address token (contract IArcadeToken)"],"unit":2,"backwardRef":"verifier=$contract:RunVerifier"}],"confirmedKindOrNull":"evm_contracts","kindEvidence":"GET https://api.imd.fun/requests/capabilities lists chainId 1 kinds incl. evm_contracts; docs: evm_contracts = 1-8 contracts, in order, one tx, no token/pool. Whether a launch from an imported repo (repoUrl+baseCommit) deploys the pinned artifacts byte-for-byte or recompiles after adapt-contract-project is undocumented: unknown.","constructorBindings":[{"contract":"RunArcade","arg":"verifier","type":"address","binding":"$contract:RunVerifier","supported":"yes (documented $contract:EarlierName)","src":"src/RunArcade.sol:126-141"},{"contract":"RunArcade","arg":"admissionAuthority","type":"address","binding":"static address","supported":"yes (static address)","value":"MISSING - operator input (deployments/chain-1.json roles.admissionAuthority=null)"},{"contract":"RunArcade","arg":"scoreAuthority","type":"address","binding":"static address","supported":"yes","value":"MISSING (roles.scoreAuthority=null)"},{"contract":"RunArcade","arg":"replayVerifier","type":"address","binding":"static address","supported":"yes","value":"MISSING (roles.replayVerifier=null)"},{"contract":"RunArcade","arg":"token","type":"address","binding":"static address","supported":"yes","value":"0xD34a99Bc0f67aE1bbd63C660e6d0b0dd03E263B7 (must equal MAINNET_IMD constant, RunArcade.sol:13,147)"},{"note":"$owner must NOT be used for any role: contracts have no owner (RunArcade.sol:8) and $owner would bind a role to the paying/owner wallet."}],"constructorTimeBehaviour":[{"what":"external read verifier.RULES_HASH()","line":"RunArcade.sol:143","imdSupport":"unknown - docs say nothing is called AFTER deployment; constructor-internal STATICCALLs are not addressed. EVM-wise works if RunVerifier is already created earlier in the same tx."},{"what":"external read token.decimals() on IMD, require 10**d %4==0","line":"RunArcade.sol:150-151","imdSupport":"unknown (same); IMD decimals 18 per capabilities pairing record"},{"what":"code identity: verifier.codehash == keccak256(type(RunVerifier).runtimeCode)","line":"RunArcade.sol:141","imdSupport":"unknown - holds only if both contracts come from ONE compilation with identical settings; any re-adaptation that touches RunVerifier or settings must rebuild both. Address substitution of a different verifier is impossible by design."},{"what":"code-length checks: verifier/token code>0, each role code.length==0 (not 0, SINK, DEV), roles pairwise distinct","line":"RunArcade.sol:133-137,147,375-377","imdSupport":"static addresses accepted by door; validity of role EOAs is operator responsibility"},{"what":"block.chainid==1 token pin; GENESIS_EPOCH=epochOf(block.timestamp)","line":"RunArcade.sol:147,154","imdSupport":"chain 1 open per capabilities"},{"what":"msg.sender at construction","line":"none used in constructors; RunVerifier domain uses msg.sender at call time (RunVerifier.sol:58)","imdSupport":"factory deployer harmless; factory identity/CREATE vs CREATE2 undocumented: unknown"}],"incompatibilities":[{"id":"I1","sev":"blocking","what":"Three immutable role addresses are null in deployments/chain-1.json; no default is acceptable (no $owner, no stand-ins)."},{"id":"I2","sev":"high","what":"EIP-7702-delegated EOAs carry code (23-byte designator) and fail _validSigner (code.length==0). docs/deployment.md records the mainnet fork run failing InvalidRoles() for exactly this reason. Role keys must be plain undelegated EOAs at deploy block."},{"id":"I3","sev":"medium","what":"Repo deploy path is node script/deploy.mjs + cast send --create (deploy.mjs:66-71), two separate txs from an EOA; IMD evm_contracts deploys all-or-nothing in one tx via a policy factory. Addresses, deployer (msg.sender/tx.origin) and gas profile differ from the repo plan; deploy.mjs verify-onchain still applies post-hoc."},{"id":"I4","sev":"medium","what":"Plain Foundry dry-run mismatch: repo has no *.s.sol script; a non-fork forge/anvil dry-run on chainid 31337 skips the MAINNET_IMD pin and needs a mock token, while a chainid-1 dry-run without a mainnet fork reverts InvalidToken (IMD has no code). Only a mainnet-fork dry-run with code-free role keys reproduces the constructor; factory CREATE addresses and GENESIS_EPOCH will differ."},{"id":"I5","sev":"low","what":"manifest.json standardJsonInputSha256 0x4b0620db... != sha256 of committed file bytes e381dc18...; may hash a canonical form - unverified. Must be reconciled before Etherscan submission."},{"id":"I6","sev":"unknown","what":"Whether IMD imported-repo launch path (audit-imported-code, adapt-contract-project) leaves bytecode unchanged so manifest creation/runtime keccaks hold: undocumented."}],"minimalChanges":["No Solidity change is required by the door's constructor grammar: all 5 args are static address or $contract:RunVerifier.","Supply three distinct, code-free, undelegated EOA role addresses held by independent operators, then fill deployments/chain-1.json roles/operators (requester/operators only).","Add a Foundry mainnet-fork dry-run script/test that deploys RunVerifier then RunArcade(verifier, roles, IMD) from a factory-like sender and asserts verify-onchain invariants; fix fork fixtures to code-free signers (docs/deployment.md).","Reconcile standardJsonInputSha256 in deployments/manifest.json with the committed file or document the canonicalization.","Optional, only if the platform forbids constructor external calls (unknown): none of the reads can be removed without changing audited code - escalate rather than patch."],"missingOperatorInputs":["roles.admissionAuthority","roles.scoreAuthority","roles.replayVerifier","operators.* (three independent parties)","owner field for launch: not needed functionally (no owner); docs default it to paying wallet","requires.securityAudit","requires.infrastructure","requires.legalEligibility","requires.ipRights","requires.sepoliaRehearsal (repo gate for mainnet)","paying wallet with IMD + Permit2 allowance (2 prepaid units already allocated per brief)"],"releaseChecks":["Exactly two contract creations in the launch tx: trace shows 2 CREATE/CREATE2 frames whose runtime code keccaks equal 0x43b00f96...dedb8 (RunVerifier) and RunArcade runtime matching manifest runtimeBytecodeKeccak256 0x53becb91...25c6 after the manifest immutableOffsets are accounted for.","Creation order: RunVerifier address created before RunArcade; RunArcade.VERIFIER() == RunVerifier address (backward ref).","No new token/pool: no ERC20 Transfer mint from 0x0, no Uniswap v4 PoolManager Initialize event, no other contract created in the tx; launch kind recorded as evm_contracts.","RunArcade.IMD()==0xD34a99Bc0f67aE1bbd63C660e6d0b0dd03E263B7, UNIT()==1e18, RULES_HASH()==0xc1ac72b3...a338, DEV()/SINK() constants, role getters equal supplied keys (node script/deploy.mjs verify-onchain).","Two Etherscan exact-source matches using deployments/compiled/standard-json-input.json, v0.8.26+commit.8a97fa7a, optimizer 200, cancun; RunArcade with ABI-encoded 5 constructor args; both show 'Exact Match' not 'Similar/Partial'.","Ethereum chain 1 only; no ETH sent to constructors; nothing called after deployment.","Paid play stays gated until security, infrastructure and legal approvals are recorded."],"unknowns":["Factory address/version for chain 1 (quote-pinned, not published in docs read)","Constructor-time external calls support","Whether imported artifacts are deployed byte-identical","Whether IMD submits Etherscan verification itself"],"txSent":false,"manifestCreated":false}