{"allowed_paths":["quote-server/src/gate.ts","quote-server/test/gate.test.ts"],"base_commit":"743d41eb12ad14acde6609361b88ca9c89cfeac5","base_suite_passed":123,"buyer":"0xe7969846762a20a70b0de8cffed0101ef0dfae5744cbef2b784a476b5a19e15e","chain_id":8,"compute_pkg":"0x0fd8940dadb96ec354d200fcc73e7b10889b5968a8aabe4caf106ee25d8003c0","deadline_seconds":3600,"delivery":{"anchor":"on-chain result_hash == sha3-256 of the canonical delivery JSON file bytes","format":"cosmo.patch.delivery.v1","patch_artifact":"git diff <base_commit> <patched tree>, delivered as docs/jobs/patch-001.patch","result_uri":"repo:cosmo-contracts-move/docs/jobs/patch-001.patch","signature":"ed25519 over canonical payload WITHOUT the signature field, key == provider_pubkey"},"expected_after":"reproduction command exits 0 after applying the patch; npx vitest run >= base_suite_passed + 2 passed / 0 failed; npx tsc --noEmit exits 0","expected_before":"reproduction command exits nonzero on base_commit (both frozen cases fail with GateRejection: agent not on allowlist)","forbidden_changes":["any path outside allowed_paths","package.json / package-lock.json / node_modules / new dependencies","Move sources (sources/, compute-rfq/), scripts/, quote-server/config/, .env*, keys","removing or renaming existing tests, weakening existing assertions","adding .only / .skip / xit / xdescribe / it.todo","network access (http/https/net/fetch/child_process) in added code","binary files"],"honesty_note":"buyer and provider are operations-team accounts; the provider is a separate BONDED account, not an economically independent party. Payment happens only after this machine acceptance check passes.","job":"PATCH-001","job_type":"software_patch","max_changed_files":2,"max_price_quants":300000000,"package_dir":"quote-server","payment_note":"wCOSMO raw units, 6 decimals: 300000000 = 300 wCOSMO","problem_statement":"quote-server QuoteGate compares allowlist addresses without 64-hex canonicalization (src/gate.ts normAddr pads neither side); the Supra RPC strips leading zeros from addresses, so on the live daemon path (chain/views.ts raw addr -> daemon/decision.ts -> daemon/pipeline.ts -> gate.check) a hand-maintained canonical allowlist entry with a leading zero byte never matches the RPC-stripped request address: the gate rejects the maker's own agent with 'agent not on allowlist' although the decision layer already said quote. Secondary: the gate evidence log (gate.ts log()) records non-canonical addresses, inconsistent with the 64-hex convention used elsewhere. Fix the canonicalization so both forms of the same address match (both directions) and existing behavior for already-canonical addresses is unchanged.","provider_requirements":{"bond_min_quants":100000000,"provider":"Kahless","provider_address":"0x45461e6dafb9d30473b0943be78b056cfaaa1ea9bb5f47a03cc9b7333df2c4d0","provider_pubkey":"ed25519:6d487a51500add8301e4a2620846e36ba7a16c502ab75a07d95f12c9d4569277"},"repository":"cosmo-contracts-move","repository_clone_source":"/root/obsidian-vault/supra/move_workspace/cosmo-contracts-move","reproduction":{"command":"npx vitest run test/patch001-repro.test.ts","test_content_b64":"aW1wb3J0IHsgZGVzY3JpYmUsIGV4cGVjdCwgaXQgfSBmcm9tICJ2aXRlc3QiOwppbXBvcnQgeyBta2R0ZW1wU3luYyB9IGZyb20gIm5vZGU6ZnMiOwppbXBvcnQgeyB0bXBkaXIgfSBmcm9tICJub2RlOm9zIjsKaW1wb3J0IHsgam9pbiB9IGZyb20gIm5vZGU6cGF0aCI7CmltcG9ydCB7IFF1b3RlR2F0ZSB9IGZyb20gIi4uL3NyYy9nYXRlLmpzIjsKaW1wb3J0IHR5cGUgeyBHYXRlQ29uZmlnIH0gZnJvbSAiLi4vc3JjL2dhdGUuanMiOwppbXBvcnQgdHlwZSB7IFF1b3RlUmVxdWVzdCB9IGZyb20gIi4uL3NyYy9xdW90ZS5qcyI7CgovLyBQQVRDSC0wMDEgZnJvemVuIGFjY2VwdGFuY2UgdGVzdCAoYnV5ZXItc2lkZSwgaW1tdXRhYmxlIHZpYSByZXF1ZXN0IEpTT04pLgovLwovLyBUaGUgU3VwcmEgUlBDIHN0cmlwcyBsZWFkaW5nIHplcm9zIGZyb20gYWRkcmVzc2VzICgweDBhMDUuLiBjb21lcyBiYWNrIGFzCi8vIDB4YTA1Li4pLiBUaGUgZGFlbW9uIHBhdGggaGFuZHMgdGhlIFJQQy1zdHJpcHBlZCBmb3JtIHRvIFF1b3RlR2F0ZS5jaGVjawovLyAodmlld3MudHMgcmF3IGFkZHI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ts","test_sha3_256":"0e135b5122576fb267ac43504d283970718d66afe95493656b887ae848b661ec"},"review_window_seconds":3600,"rpc":"https://rpc-mainnet.supra.com","schema":"cosmo.patch.request.v1","verification_commands":["npm ci","npx vitest run test/patch001-repro.test.ts  # on base_commit: expected FAIL","git apply --check patch-001.patch && git apply patch-001.patch","npx vitest run test/patch001-repro.test.ts  # after patch: expected PASS","npx vitest run  # >= base_suite_passed + 2 passed, 0 failed","npx tsc --noEmit"]}
