{
  "component": "toy-trial-restart",
  "baseCommit": "65995c0a126daa60e498acca1ff0e408bf842048",
  "changedPaths": [
    "toy-trial-replay/README.md",
    "toy-trial-replay/check.py",
    "toy-trial-replay/replay.py",
    "artifacts/goal/batches/e4-evidence-tools/items/toy-trial-restart/result.json"
  ],
  "checks": [
    {
      "command": "python3 -I -B toy-comparison/check.py",
      "exitCode": 0,
      "result": "All upstream gates passed, including 18 unit tests, 28 boundary cases and 14 deterministic method runs."
    },
    {
      "command": "python3 -I -B toy-trial-replay/check.py",
      "exitCode": 0,
      "result": "Clean run, SIGKILL before the second atomic replacement, resume, duplicate full and partial snapshot merge, missing shard, digest mismatch, and direct upstream count comparison passed."
    },
    {
      "command": "git add -- toy-trial-replay/README.md toy-trial-replay/replay.py toy-trial-replay/check.py",
      "exitCode": 128,
      "result": "Git could not create .git/index.lock because the Git filesystem is read-only. Source files remain in the checkout. The commit was skipped."
    },
    {
      "status": "skipped",
      "check": "Bitcoin challenge verification, real search, regtest signing, and mainnet payment",
      "reason": "Outside this bounded toy benchmark item."
    },
    {
      "status": "skipped",
      "check": "Concurrent-writer stress and power-loss simulation",
      "reason": "Replay check injects process death before replacement and exercises restart in a fresh process."
    }
  ],
  "measurements": {
    "clean_shard_runs": [
      {
        "elapsed_seconds": 0.0258313431404531,
        "executed": [
          "endpoint-low",
          "interior-alpha",
          "interior-charlie",
          "interior-echo"
        ],
        "fixture_digest": "88d5ecc0c85266a579055e3f9dcedc6ac5a45ce7ac380136654c95ddb946b65b",
        "peak_rss_kib": 20992,
        "reused": [],
        "shard": 0
      },
      {
        "elapsed_seconds": 0.01688694627955556,
        "executed": [
          "endpoint-high",
          "interior-bravo",
          "interior-delta"
        ],
        "fixture_digest": "88d5ecc0c85266a579055e3f9dcedc6ac5a45ce7ac380136654c95ddb946b65b",
        "peak_rss_kib": 20992,
        "reused": [],
        "shard": 1
      }
    ],
    "interrupted_shard": {
      "elapsed_seconds_before_signal": 0.06980064790695906,
      "peak_rss_kib": 20352,
      "signal": "SIGKILL"
    },
    "repeated_run": {
      "elapsed_seconds": 0.00032547302544116974,
      "executed": [],
      "fixture_digest": "88d5ecc0c85266a579055e3f9dcedc6ac5a45ce7ac380136654c95ddb946b65b",
      "peak_rss_kib": 20864,
      "reused": [
        "endpoint-low",
        "interior-alpha",
        "interior-charlie",
        "interior-echo"
      ],
      "shard": 0
    },
    "restarted_shard1_run": {
      "elapsed_seconds": 0.01685619167983532,
      "executed": [
        "endpoint-high",
        "interior-bravo",
        "interior-delta"
      ],
      "fixture_digest": "88d5ecc0c85266a579055e3f9dcedc6ac5a45ce7ac380136654c95ddb946b65b",
      "peak_rss_kib": 20864,
      "reused": [],
      "shard": 1
    },
    "resume_run": {
      "elapsed_seconds": 0.01858771499246359,
      "executed": [
        "interior-alpha",
        "interior-charlie",
        "interior-echo"
      ],
      "fixture_digest": "88d5ecc0c85266a579055e3f9dcedc6ac5a45ce7ac380136654c95ddb946b65b",
      "peak_rss_kib": 20864,
      "reused": [
        "endpoint-low"
      ],
      "shard": 0
    },
    "suite_elapsed_seconds": 1.6554575855843723
  },
  "evidence": {
    "description": "Added fixed fixture sharding, atomic per-trial checkpoints, ID-based merge, offline instructions and subprocess replay tests.",
    "fixtureDigest": "88d5ecc0c85266a579055e3f9dcedc6ac5a45ce7ac380136654c95ddb946b65b",
    "offlineCommands": {
      "startShard0": "python3 -I -B toy-trial-replay/replay.py run toy-trial-replay/state 0",
      "startShard1": "python3 -I -B toy-trial-replay/replay.py run toy-trial-replay/state 1",
      "resumeShard0": "python3 -I -B toy-trial-replay/replay.py run toy-trial-replay/state 0",
      "check": "python3 -I -B toy-trial-replay/replay.py check toy-trial-replay/state/shard-0.json toy-trial-replay/state/shard-1.json",
      "test": "python3 -I -B toy-trial-replay/check.py"
    }
  },
  "limitations": [
    "Linux and Python standard library. One trial is one generated fixture with both methods.",
    "Checkpoints assume trusted local files and track only completed toy fixtures.",
    "Measurements apply to this fixed experiment. Mainnet payment remains unverified."
  ],
  "replay": {
    "baseline": {
      "complete": true,
      "completed_trials": [
        "endpoint-low",
        "endpoint-high",
        "interior-alpha",
        "interior-bravo",
        "interior-charlie",
        "interior-delta",
        "interior-echo"
      ],
      "counts": {
        "bsgs": {
          "group_ops": 612,
          "search_ops": 605,
          "setup_ops": 7
        },
        "kangaroo": {
          "group_ops": 2948,
          "search_ops": 1492,
          "setup_ops": 1456
        }
      },
      "duplicate_records_ignored": 0,
      "fixture_digest": "88d5ecc0c85266a579055e3f9dcedc6ac5a45ce7ac380136654c95ddb946b65b",
      "missing_shards": [],
      "missing_trials": []
    },
    "digest_mismatch": {
      "check_exit": 2,
      "diagnostic": "fixture digest mismatch",
      "resume_exit": 2
    },
    "direct_benchmark_matches": true,
    "fixture_digest": "88d5ecc0c85266a579055e3f9dcedc6ac5a45ce7ac380136654c95ddb946b65b",
    "interrupted_checkpoint": {
      "complete": false,
      "completed_trials": [
        "endpoint-low",
        "endpoint-high",
        "interior-bravo",
        "interior-delta"
      ],
      "counts": {
        "bsgs": {
          "group_ops": 346,
          "search_ops": 342,
          "setup_ops": 4
        },
        "kangaroo": {
          "group_ops": 1699,
          "search_ops": 867,
          "setup_ops": 832
        }
      },
      "duplicate_records_ignored": 0,
      "fixture_digest": "88d5ecc0c85266a579055e3f9dcedc6ac5a45ce7ac380136654c95ddb946b65b",
      "missing_shards": [],
      "missing_trials": [
        "interior-alpha",
        "interior-charlie",
        "interior-echo"
      ]
    },
    "missing_shard": {
      "complete": false,
      "completed_trials": [
        "endpoint-low",
        "interior-alpha",
        "interior-charlie",
        "interior-echo"
      ],
      "counts": {
        "bsgs": {
          "group_ops": 332,
          "search_ops": 328,
          "setup_ops": 4
        },
        "kangaroo": {
          "group_ops": 1771,
          "search_ops": 939,
          "setup_ops": 832
        }
      },
      "duplicate_records_ignored": 0,
      "fixture_digest": "88d5ecc0c85266a579055e3f9dcedc6ac5a45ce7ac380136654c95ddb946b65b",
      "missing_shards": [
        1
      ],
      "missing_trials": [
        "endpoint-high",
        "interior-bravo",
        "interior-delta"
      ]
    },
    "repeated": {
      "complete": true,
      "completed_trials": [
        "endpoint-low",
        "endpoint-high",
        "interior-alpha",
        "interior-bravo",
        "interior-charlie",
        "interior-delta",
        "interior-echo"
      ],
      "counts": {
        "bsgs": {
          "group_ops": 612,
          "search_ops": 605,
          "setup_ops": 7
        },
        "kangaroo": {
          "group_ops": 2948,
          "search_ops": 1492,
          "setup_ops": 1456
        }
      },
      "duplicate_records_ignored": 5,
      "fixture_digest": "88d5ecc0c85266a579055e3f9dcedc6ac5a45ce7ac380136654c95ddb946b65b",
      "missing_shards": [],
      "missing_trials": []
    },
    "resumed": {
      "complete": true,
      "completed_trials": [
        "endpoint-low",
        "endpoint-high",
        "interior-alpha",
        "interior-bravo",
        "interior-charlie",
        "interior-delta",
        "interior-echo"
      ],
      "counts": {
        "bsgs": {
          "group_ops": 612,
          "search_ops": 605,
          "setup_ops": 7
        },
        "kangaroo": {
          "group_ops": 2948,
          "search_ops": 1492,
          "setup_ops": 1456
        }
      },
      "duplicate_records_ignored": 0,
      "fixture_digest": "88d5ecc0c85266a579055e3f9dcedc6ac5a45ce7ac380136654c95ddb946b65b",
      "missing_shards": [],
      "missing_trials": []
    }
  },
  "objectiveStatus": "INCOMPLETE"
}
