{
  "schema_version": "runtime-work-session-v1",
  "id": "93bf9776-63b0-4537-88da-ce5f1c9f337e",
  "status": "active",
  "actor_role": "Orchestrator",
  "activity": "implementing",
  "detail": "Hosted command work is being registered before running git.",
  "scope": "hosted-command",
  "artifact": {
    "type": "hosted-command",
    "id": "git"
  },
  "started_at": "2026-05-23T11:42:03.162Z",
  "last_heartbeat_at": "2026-05-23T11:52:02.839Z",
  "elapsed_seconds": 599,
  "stale_after_seconds": 3600,
  "liveness_confidence": "fresh",
  "liveness_reason": "Runtime work session resumed after automatic Runtime work completed.",
  "confidence_updated_at": "2026-05-23T11:52:02.839Z",
  "heartbeat_age_seconds": 0,
  "source": "runtime-command-runner",
  "mutates_authority_state": false,
  "work_origin": "ad_hoc",
  "reason": "Hosted command execution had no fresh accepted parent work; Runtime command runner registered ad hoc parent work.",
  "source_action": "runtime.command.parent",
  "file_change_expected": false,
  "changed_files": false,
  "follow_up_created": false,
  "required_registration": true,
  "recent_steps": [
    {
      "id": "15364265-608b-46e6-91ee-90472174d879",
      "type": "diagnosis",
      "label": "Running command: node",
      "detail": "Command exited with code 1.",
      "actor_role": "Orchestrator",
      "status": "failed",
      "artifact": {
        "type": "hosted-command",
        "id": "node"
      },
      "started_at": "2026-05-23T11:47:29.900Z",
      "last_heartbeat_at": "2026-05-23T11:47:29.900Z",
      "failed_at": "2026-05-23T11:47:32.260Z",
      "elapsed_seconds": 272,
      "duration_seconds": 2,
      "liveness_confidence": "failed",
      "liveness_reason": "Runtime recorded a terminal failed state",
      "confidence_updated_at": "2026-05-23T11:51:53.209Z",
      "heartbeat_age_seconds": 272,
      "source": "runtime-command-runner",
      "mutates_authority_state": false,
      "work_origin": "automatic",
      "reason": "Hosted command execution requires foreground Runtime work registration.",
      "source_action": "runtime.000300.runtime_supervisor_test",
      "file_change_expected": false,
      "changed_files": false,
      "follow_up_created": false,
      "required_registration": true
    },
    {
      "id": "d5371ffa-a0d9-4737-b6e4-c1bc8af2802c",
      "type": "diagnosis",
      "label": "Preparing command: git",
      "detail": "Runtime command runner registered parent work for git.",
      "actor_role": "Orchestrator",
      "status": "completed",
      "artifact": {
        "type": "hosted-command",
        "id": "git"
      },
      "started_at": "2026-05-23T11:42:03.243Z",
      "last_heartbeat_at": "2026-05-23T11:47:29.900Z",
      "completed_at": "2026-05-23T11:47:29.900Z",
      "elapsed_seconds": 599,
      "duration_seconds": 326,
      "liveness_confidence": "proven_complete",
      "liveness_reason": "Runtime recorded a terminal completed state",
      "confidence_updated_at": "2026-05-23T11:51:53.209Z",
      "heartbeat_age_seconds": 272,
      "source": "runtime-command-runner",
      "mutates_authority_state": false,
      "work_origin": "ad_hoc",
      "reason": "Hosted command execution had no fresh accepted parent work; Runtime command runner registered ad hoc parent work.",
      "source_action": "runtime.command.parent",
      "file_change_expected": false,
      "changed_files": false,
      "follow_up_created": false,
      "required_registration": true
    }
  ]
}
