{
 "component": "kangaroo-cpu (pinned JeanLucPons/Kangaroo CPU comparison harness)",
 "item": "native-kangaroo",
 "baseCommit": "aebd918",
 "commit": "72ab1b0",
 "files": [
  "kangaroo-cpu/upstream/** (57 vendored files, GPLv3, pristine; .gitignore omitted)",
  "kangaroo-cpu/PROVENANCE.json",
  "kangaroo-cpu/patches/0001-clang-compat.patch",
  "kangaroo-cpu/patches/0002-exact-group-op-count.patch",
  "kangaroo-cpu/build.py",
  "kangaroo-cpu/kcpu.py",
  "kangaroo-cpu/gen_fixtures.py",
  "kangaroo-cpu/fixtures/fixtures.json",
  "kangaroo-cpu/measure.py",
  "kangaroo-cpu/MEASUREMENTS.json",
  "kangaroo-cpu/tests/test_kcpu.py",
  "kangaroo-cpu/README.md"
 ],
 "pin": {
  "repo": "https://github.com/JeanLucPons/Kangaroo",
  "commit": "37576c82d198c20fca65b14da74138ae6153a446",
  "archive_sha256": "65c39d0a69b3a615f8f1077376582bec5e1ca3f811ee485b7fe9f863bf0901c2",
  "per_file_and_patch_sha256": "kangaroo-cpu/PROVENANCE.json"
 },
 "commands": [
  {
   "cmd": "python3 -I kangaroo-cpu/build.py --out test/scratch/build --cxx \"zig c++ -target x86_64-linux-gnu\" --jobs 2",
   "result": "ok, 120.7 s, no CUDA; binary sha256 0898bc61d9d56d48925dd03bc74f257ebc1f948bba009b6de1a8669fea828b0c"
  },
  {
   "cmd": "python3 -I -m unittest discover -s kangaroo-cpu/tests -v",
   "result": "Ran 10 tests OK (2 integration skipped)"
  },
  {
   "cmd": "KCPU_BINARY=test/scratch/build/kangaroo python3 -I -m unittest discover -s kangaroo-cpu/tests",
   "result": "Ran 10 tests OK"
  },
  {
   "cmd": "python3 -I kangaroo-cpu/measure.py --binary test/scratch/build/kangaroo --out test/scratch/m1.json --threads2 2",
   "result": "ok, 36.7 s wall; sanitized copy -> kangaroo-cpu/MEASUREMENTS.json"
  }
 ],
 "prerequisiteFailures": [
  "Host had no gcc/g++/clang/make: used zig 0.13.0 (sha256 d45312e61ebcc48032b77bc4cf7fd6915c11fa16e4aad116b66c9468211230ea, not vendored) as clang 18 C++ compiler",
  "Unpatched upstream under clang: SECPK1/Int.h:241 static declaration of '__rdtsc' follows non-static declaration; SECPK1/Int.cpp:533 undeclared '__builtin_ia32_sbb_u64'; SECPK1/Int.h:314 no matching '_addcarry_u64' (uint64_t* vs unsigned long long*); Network.cpp:743 bind resolves to std::bind. Fixed by patches/0001 (guarded by __clang__, GCC path unchanged)",
  "GCC build path untested on this host (no g++)"
 ],
 "tests": {
  "implemented_and_passed": [
   "secp256k1 generator/order check",
   "fixture determinism from seed",
   "fixtures self-consistent and independently verified",
   "wrong-answer rejection",
   "#140 key and interval refusal (also with other key, and #140 pubkey in tiny interval)",
   "width 2^125 accepted / 2^125+1 refused",
   "run_job refuses before exec (prod pubkey, non-SYNTHETIC label)",
   "vendored+patch sha256 and GPLv3 license present",
   "integration: 4 KAT solved+verified",
   "integration: start-endpoint known failure reproduced"
  ]
 },
 "measurements": {
  "device_label": "unknown (none supplied); os.cpu_count()=2",
  "units": {
   "elapsed": "s wall",
   "rss": "KiB peak RSS of the kangaroo process (wait4)",
   "ops": "exact jump/group-addition count from [KCPU-COUNT]"
  },
  "kat_1thread_max_step_8": [
   {
    "label": "SYNTHETIC-w32-random",
    "threads": 1,
    "solved": true,
    "verified": true,
    "aborted": false,
    "exit_status": 0,
    "session_group_ops": 30318,
    "offset_group_ops_from_workfile": 0,
    "elapsed_total_s": 0.128,
    "time_to_first_thread_start_s": 0.072,
    "search_s_after_thread_start": 0.056,
    "group_ops_per_s": 541393,
    "peak_rss_kib_task_process": 25472,
    "dp_used": "3",
    "expected_ops_log2": "17.11"
   },
   {
    "label": "SYNTHETIC-w36-start-endpoint",
    "threads": 1,
    "solved": false,
    "verified": false,
    "aborted": true,
    "exit_status": 0,
    "session_group_ops": 7172096,
    "offset_group_ops_from_workfile": 0,
    "elapsed_total_s": 5.156,
    "time_to_first_thread_start_s": 0.056,
    "search_s_after_thread_start": 5.101,
    "group_ops_per_s": 1406018,
    "peak_rss_kib_task_process": 39904,
    "dp_used": "5",
    "expected_ops_log2": "19.11"
   },
   {
    "label": "SYNTHETIC-w36-end-endpoint",
    "threads": 1,
    "solved": true,
    "verified": true,
    "aborted": false,
    "exit_status": 0,
    "session_group_ops": 600538,
    "offset_group_ops_from_workfile": 0,
    "elapsed_total_s": 0.423,
    "time_to_first_thread_start_s": 0.063,
    "search_s_after_thread_start": 0.36,
    "group_ops_per_s": 1668161,
    "peak_rss_kib_task_process": 25472,
    "dp_used": "5",
    "expected_ops_log2": "19.11"
   },
   {
    "label": "SYNTHETIC-w20-narrow-high-offset-near-n",
    "threads": 1,
    "solved": true,
    "verified": true,
    "aborted": false,
    "exit_status": 0,
    "session_group_ops": 3170,
    "offset_group_ops_from_workfile": 0,
    "elapsed_total_s": 0.113,
    "time_to_first_thread_start_s": 0.058,
    "search_s_after_thread_start": 0.055,
    "group_ops_per_s": 57636,
    "peak_rss_kib_task_process": 25472,
    "dp_used": "0",
    "expected_ops_log2": "11.39"
   },
   {
    "label": "SYNTHETIC-w24-narrow-high-offset-end-endpoint",
    "threads": 1,
    "solved": true,
    "verified": true,
    "aborted": false,
    "exit_status": 0,
    "session_group_ops": 12803,
    "offset_group_ops_from_workfile": 0,
    "elapsed_total_s": 0.109,
    "time_to_first_thread_start_s": 0.051,
    "search_s_after_thread_start": 0.057,
    "group_ops_per_s": 224614,
    "peak_rss_kib_task_process": 25472,
    "dp_used": "0",
    "expected_ops_log2": "13.16"
   },
   {
    "label": "SYNTHETIC-w28-high-offset-2^255",
    "threads": 1,
    "solved": false,
    "verified": false,
    "aborted": true,
    "exit_status": 0,
    "session_group_ops": 2073600,
    "offset_group_ops_from_workfile": 0,
    "elapsed_total_s": 3.301,
    "time_to_first_thread_start_s": 0.041,
    "search_s_after_thread_start": 3.259,
    "group_ops_per_s": 636269,
    "peak_rss_kib_task_process": 92844,
    "dp_used": "1",
    "expected_ops_log2": "15.11"
   }
  ],
  "thread_scaling_w44": [
   {
    "label": "SYNTHETIC-w44-thread-scaling",
    "threads": 1,
    "solved": true,
    "verified": true,
    "aborted": false,
    "exit_status": 0,
    "session_group_ops": 6113193,
    "offset_group_ops_from_workfile": 0,
    "elapsed_total_s": 3.421,
    "time_to_first_thread_start_s": 0.044,
    "search_s_after_thread_start": 3.377,
    "group_ops_per_s": 1810244,
    "peak_rss_kib_task_process": 25472,
    "dp_used": "9",
    "expected_ops_log2": "23.11"
   },
   {
    "label": "SYNTHETIC-w44-thread-scaling",
    "threads": 2,
    "solved": true,
    "verified": true,
    "aborted": false,
    "exit_status": 0,
    "session_group_ops": 13343951,
    "offset_group_ops_from_workfile": 0,
    "elapsed_total_s": 3.831,
    "time_to_first_thread_start_s": 0.044,
    "search_s_after_thread_start": 3.787,
    "group_ops_per_s": 3523621,
    "peak_rss_kib_task_process": 25472,
    "dp_used": "8",
    "expected_ops_log2": "23.11"
   }
  ],
  "save_resume": {
   "interrupt": "SIGKILL after 3.0s with -w -wi 1 -ws",
   "workfile_bytes": 2313444,
   "winfo_count": "3872768 2^21.885",
   "winfo_kangaroos": "1024 2^10.000",
   "resume_fetch": "[2^10.00 kangaroos loaded] [0 created] [00s]",
   "resumed": {
    "label": "SYNTHETIC-w46-save-resume",
    "threads": 1,
    "solved": true,
    "verified": true,
    "aborted": false,
    "exit_status": 0,
    "session_group_ops": 29774432,
    "offset_group_ops_from_workfile": 3872768,
    "elapsed_total_s": 16.373,
    "time_to_first_thread_start_s": 0.057,
    "search_s_after_thread_start": 16.316,
    "group_ops_per_s": 1824861,
    "peak_rss_kib_task_process": 25472,
    "dp_used": "10",
    "expected_ops_log2": "24.11"
   },
   "conclusion": "full 1-thread herd (1024 tame+wild kangaroos) survived SIGKILL via -ws periodic save; 0 recreated; offset count restored; work after last 1 s save lost"
  },
  "refusals": [
   {
    "case": "#140 key+interval",
    "refused": true,
    "reason": "production target (Bitcoin Puzzle #140) refused by kangaroo-cpu adapter"
   },
   {
    "case": "#140 interval, other key",
    "refused": true,
    "reason": "production target (Bitcoin Puzzle #140) refused by kangaroo-cpu adapter"
   },
   {
    "case": "width 2^126 > limit",
    "refused": true,
    "reason": "interval width 2^126 exceeds backend limit 2^125"
   },
   {
    "case": "run_job #140",
    "refused": true,
    "reason": "production target (Bitcoin Puzzle #140) refused by kangaroo-cpu adapter"
   }
  ]
 },
 "findings": [
  "Key exactly at interval start NOT found by upstream (w36 and w28@2^255 offset both aborted at 8x expected ops); end endpoint and narrow high-offset (near n) intervals solve. Likely wild start = point at infinity after range shift.",
  "Exact group-op counts come from patched counters, not the MK/s label; 1 thread ~1.81e6 ops/s, 2 threads ~3.52e6 ops/s at w44 (single runs, high variance from random walks).",
  "Peak RSS 25-93 MiB for these widths; time to first thread start ~0.04-0.07 s, reported separately from search time."
 ],
 "status": {
  "implemented": [
   "vendored pinned source",
   "CUDA-free offline build script",
   "adapter with production refusal and quarantine",
   "deterministic fixtures",
   "tests",
   "measurement suite"
  ],
  "tested": [
   "clang (zig) build",
   "all synthetic KATs, threads 1 and 2, interrupted save/resume"
  ],
  "untested": [
   "g++ build path",
   "widths > 46 bits",
   "multi-key input files",
   "network server/client mode"
  ],
  "unavailable": [
   "GPU/CUDA",
   "real #140 search (refused by design; width 2^139 > 2^125 backend limit)"
  ]
 },
 "blockers": [
  "Backend cannot cover #140 (2^139 width > 2^125 limit); full-width production search belongs to private-search component"
 ],
 "restartCommand": "python3 -I kangaroo-cpu/build.py --out \"$TMPDIR/kcpu-build\" --cxx g++ && KCPU_BINARY=\"$TMPDIR/kcpu-build/kangaroo\" python3 -I -m unittest discover -s kangaroo-cpu/tests -v && python3 -I kangaroo-cpu/measure.py --binary \"$TMPDIR/kcpu-build/kangaroo\" --out \"$TMPDIR/m.json\"",
 "objectiveStatus": "INCOMPLETE",
 "secrets": "No real keys, wild-walk records or checkpoints are included; fixtures contain only generated SYNTHETIC scalars."
}