{
  "item": "omp-spt F-032 — endpoint shutdown may leave broker-hosted harness/listener alive",
  "verdict": "absent",
  "verdict_meaning": "The reported survivor condition did not reproduce on core 3d9ec73: shutdown returned success only after the broker row and the complete omp-spt job-object process tree were gone.",
  "revision_and_fixture": {
    "worktree": "C:/Users/decid/Documents/projects/spt-core/.worktrees/w0-hertz-1",
    "revision_command": "git.exe rev-parse --short HEAD",
    "revision_output": "3d9ec73",
    "build_command": "cargo.exe build -p spt --bin spt",
    "probe_binary": "C:/Users/decid/Documents/projects/spt-core/.worktrees/w0-hertz-1/target/debug/spt.exe",
    "version_command": "C:/Users/decid/Documents/projects/spt-core/.worktrees/w0-hertz-1/target/debug/spt.exe --version",
    "version_output": "spt 0.44.0",
    "isolated_env": {
      "SPT_HOME": "C:/Users/decid/AppData/Local/Temp/w0-f032-shutdown-20260726-230402/spt-home",
      "OMP_PROFILE": "w0-f032-20260726-230402",
      "PI_CODING_AGENT_DIR": "C:/Users/decid/AppData/Local/Temp/w0-f032-shutdown-20260726-230402/omp-agent"
    },
    "adapter_source": "C:/Users/decid/AppData/Local/spt-core/adapters/_github/BigscreenVR-omp-spt",
    "adapter_pin": "The isolated adapter registry pointed at the already-installed payload; no adapter add/update/bounce was run.",
    "adapter_version_command": "C:/Users/decid/Documents/projects/spt-core/.worktrees/w0-hertz-1/target/debug/spt.exe adapter version omp-spt",
    "adapter_version_output": "0.3.29",
    "daemon_command": "C:/Users/decid/Documents/projects/spt-core/.worktrees/w0-hertz-1/target/debug/spt.exe daemon run",
    "daemon_observation": "broker pid 37992; brain.ready pid 38176; broker image 0.44.0"
  },
  "census_method": {
    "process_command": "powershell.exe -NoProfile -Command \"Get-CimInstance Win32_Process | Select-Object ProcessId,ParentProcessId,Name,ExecutablePath,CommandLine | ConvertTo-Json -Compress\"",
    "process_identity_rule": "Descendant closure was rooted at the broker session pid. Post-shutdown liveness required PID + executable path + command line identity, not bare PID; Windows reused two old numeric PIDs for unrelated census processes during the probe.",
    "broker_session_probe": "Opened \\\\.\\pipe\\spt-daemon-broker-fc1645e2799c21a4.sock and sent big-endian-u32-length-prefixed JSON frames: {protocol_version:1,kind:\"hello\",payload:{protocol_version:1,role:\"brain\"}}, then {protocol_version:1,kind:\"sessions\",payload:null}; recorded the sessions-reply payload.",
    "replacement_probe": "Every post-shutdown process snapshot also searched all command lines for the endpoint id, detecting a replacement shim, OMP host, or listener even if it acquired a new PID."
  },
  "target_probe": {
    "id": "w0f032-target",
    "launch": {
      "timestamp_utc": "2026-07-27T06:09:05.306286Z",
      "command": "C:/Users/decid/Documents/projects/spt-core/.worktrees/w0-hertz-1/target/debug/spt.exe endpoint run --adapter omp-spt --id w0f032-target --create --start",
      "exit": 0,
      "stderr": [
        "ENDPOINT_RUN:w0f032-target adapter=omp-spt session=21e6971468c162d6 pid=44572",
        "ENDPOINT_RUN_STARTED:w0f032-target (attach with spt rc w0f032-target)"
      ]
    },
    "live_precondition": {
      "endpoint_list": {
        "address": "127.0.0.1:60861",
        "ready": true,
        "alive": true,
        "activity": "idle"
      },
      "broker_row": {
        "session_id": 2,
        "endpoint": "w0f032-target",
        "pid": 44572,
        "adapter": "omp-spt"
      },
      "key_process_chain": [
        {
          "pid": 44572,
          "ppid": 37992,
          "name": "omp-spt.exe",
          "role": "broker PTY root / launch-omp job owner"
        },
        {
          "pid": 17440,
          "ppid": 44572,
          "name": "omp.exe",
          "role": "native OMP launcher"
        },
        {
          "pid": 18336,
          "ppid": 17440,
          "name": "bun.exe",
          "role": "native OMP host"
        },
        {
          "pid": 22332,
          "ppid": 18336,
          "name": "spt.exe",
          "role": "listener",
          "command_line": "spt api --adapter omp-spt listen w0f032-target --session-id 019fa231-e625-7000-8160-3995d16d0d73"
        }
      ],
      "full_descendant_count": 14
    },
    "shutdown": {
      "timestamp_utc": "2026-07-27T06:10:15.346214Z",
      "command": "C:/Users/decid/Documents/projects/spt-core/.worktrees/w0-hertz-1/target/debug/spt.exe endpoint shutdown w0f032-target",
      "exit": 0,
      "stdout": "",
      "stderr": "SHUTDOWN:w0f032-target (Active -> Suspended)",
      "returned_by_utc": "2026-07-27T06:10:16.267950Z"
    },
    "post_shutdown": {
      "broker_rows_for_target": {
        "on_return": [],
        "after_3s": [],
        "after_52s": []
      },
      "original_process_identities_alive": {
        "on_return": [],
        "after_3s": [],
        "after_52s": []
      },
      "process_command_lines_containing_target_id": {
        "on_return": [],
        "after_3s": [],
        "after_52s": []
      },
      "endpoint_list_after_3s": {
        "address": null,
        "ready": false,
        "alive": false
      },
      "durable_info": {
        "status": "offline",
        "rest_state": "suspended",
        "controlled": false,
        "controllable": true
      },
      "old_address_probe": "127.0.0.1:60861 was unreachable (2-second TCP connect timed out)."
    }
  },
  "sibling_control": {
    "id": "w0f032-control",
    "purpose": "Known-clean sibling proving the same census reports both presence before shutdown and absence afterward.",
    "launch_command": "C:/Users/decid/Documents/projects/spt-core/.worktrees/w0-hertz-1/target/debug/spt.exe endpoint run --adapter omp-spt --id w0f032-control --create --start",
    "launch_exit": 0,
    "launch_stderr": [
      "ENDPOINT_RUN:w0f032-control adapter=omp-spt session=0b2ab72149a01311 pid=34188",
      "ENDPOINT_RUN_STARTED:w0f032-control (attach with spt rc w0f032-control)"
    ],
    "pre_shutdown": {
      "endpoint_list": {
        "address": "127.0.0.1:61426",
        "ready": true,
        "alive": true
      },
      "broker_row": {
        "session_id": 1,
        "endpoint": "w0f032-control",
        "pid": 34188,
        "adapter": "omp-spt"
      },
      "key_process_chain": [
        {
          "pid": 34188,
          "name": "omp-spt.exe"
        },
        {
          "pid": 5004,
          "name": "omp.exe"
        },
        {
          "pid": 20784,
          "name": "bun.exe"
        },
        {
          "pid": 36308,
          "name": "spt.exe",
          "command_line": "spt api --adapter omp-spt listen w0f032-control --session-id 019fa22e-07d3-7000-99ea-b8434fab7c8b"
        }
      ]
    },
    "shutdown_command": "C:/Users/decid/Documents/projects/spt-core/.worktrees/w0-hertz-1/target/debug/spt.exe endpoint shutdown w0f032-control",
    "shutdown_exit": 0,
    "shutdown_stderr": "SHUTDOWN:w0f032-control (Active -> Suspended)",
    "post_shutdown": {
      "broker_rows": [],
      "same_process_identities_alive": [],
      "replacement_command_lines": [],
      "endpoint_list": {
        "address": null,
        "ready": false,
        "alive": false
      }
    }
  },
  "limitations": [
    "The hermetic OMP profile intentionally had no model credentials. OMP still reached the required idle/bound/listening state with a real broker row and real spt listener; a background Psyche/echo attempt failed fast for lack of a model, but teardown proceeded and the process-reap contract under test does not require a model turn.",
    "The adapter-resolved listener executable was the installed C:/Users/decid/AppData/Local/spt-core/bin/spt.exe (version 0.44.0), while the broker and shutdown CLI were the exact 3d9ec73 worktree build. This preserves the installed omp-spt 0.3.29 production topology; listener implementation was only the descendant liveness subject."
  ],
  "cleanup": {
    "command": "C:/Users/decid/Documents/projects/spt-core/.worktrees/w0-hertz-1/target/debug/spt.exe daemon stop --force",
    "output": "DAEMON_STOPPED",
    "daemon_exit": 0,
    "removed": [
      "isolated SPT_HOME",
      "isolated OMP profile",
      "probe-created worktree .spt state",
      "isolated target build output"
    ],
    "source_edits": 0,
    "commits": 0,
    "suites_run": 0
  }
}