"""Static preflight of a pinned Sieve source file; does not execute Sieve.""" import hashlib import json from datetime import datetime, timezone from urllib.request import Request, urlopen REVISION = "00cab3736cd25c50206849f55a5cbdc4fa6b9944" PATH = "src/main/java/scheduler/SchedulerServiceImpl.java" URL = "https://raw.githubusercontent.com/RabbitDong-on/Sieve/" + REVISION + "/" + PATH EXPECTED = { "caller_override": "res.delayTime=20000;", "timeout_formula_comment": "// res.delayTime=3*delayTime/2", } with urlopen(Request(URL, headers={"User-Agent": "Hesela-Research-Check/1.0"}), timeout=30) as response: data = response.read() lines = data.decode("utf-8").splitlines() locations = {} for name, text in EXPECTED.items(): hits = [i + 1 for i, line in enumerate(lines) if line.strip() == text] if len(hits) != 1: raise ValueError("Pinned source check failed: " + name) locations[name] = hits[0] print(json.dumps({ "evidenceType": "static source inspection, not execution or paper reproduction", "checkedAt": datetime.now(timezone.utc).isoformat(), "revision": REVISION, "sourceUrl": URL, "sourceSha256": hashlib.sha256(data).hexdigest(), "lineNumbers": locations, "finding": "isInjectDelay's successful non-DCT checker branch replaces the scheduled delay with 20000 milliseconds; schedule's timeout formula is commented out.", "limits": "One source file and branch at one revision. No claim about the authors' evaluation build, every runtime mode, or bug reproducibility.", }, indent=2))