{
  "append_used": "NO",
  "authorization_policy": {
    "enqueue_requires_auth": "YES",
    "execute_requires_policy_match": "YES",
    "real_mutation_requires_future_shell_gate": "YES",
    "remote_mutation_default": "DENY",
    "shell_execution_requires_later_shell_gate": "YES"
  },
  "bound_artifacts": {
    "jobs_endpoint": "/home/yeff/public_html/devon/canon/execution/ui/jobs.php",
    "queue_contract": "/home/yeff/public_html/devon/canon/execution/state/execution_job_queue_contract.json",
    "queue_jsonl": "/home/yeff/public_html/devon/canon/execution/state/job_queue.jsonl",
    "queue_latest": "/home/yeff/public_html/devon/canon/execution/state/job_queue_latest.json",
    "queue_state": "/home/yeff/public_html/devon/canon/execution/state/job_queue_state.json",
    "runner": "/home/yeff/public_html/devon/canon/execution/bin/job_queue_runner.php",
    "runner_latest": "/home/yeff/public_html/devon/canon/execution/state/job_queue_runner_latest.json"
  },
  "created_at": "2026-06-26T15:21:42.930867+00:00",
  "execution_mode": {
    "allowed_before_shell_gate": [
      "audit_only",
      "empty_queue_runner_test",
      "policy_validation_test",
      "no_op_status_transition_test"
    ],
    "default": "DENY_REAL_MUTATION",
    "denied_until_later_gate": [
      "remote_shell_execution",
      "remote_file_write",
      "remote_package_install",
      "remote_service_restart",
      "production_patch_execution"
    ]
  },
  "final_readiness_result": {
    "event_id": "job_queue_task_runner_final_readiness_15677",
    "event_index": 15677,
    "finalized_at": "2026-06-26T16:34:20.818069+00:00",
    "job_queue_jsonl_appended": "NO",
    "next_integration_module": "terminal_output_panel",
    "next_required_action": "COMPLETE",
    "remote_yeffai_mutation": "NO",
    "status": "PASS"
  },
  "job_schema": {
    "attempt": "integer",
    "created_at": "ISO-8601 UTC timestamp",
    "error": "string or null",
    "evidence_path": "string or null",
    "finished_at": "ISO-8601 UTC timestamp or null",
    "job_id": "stable unique job id",
    "job_type": "scan|validation|backup|build|patch|custom",
    "ledger_event_id": "string or null",
    "max_attempts": "integer",
    "requested_by": "local_canon|panel|operator",
    "started_at": "ISO-8601 UTC timestamp or null",
    "status": "pending|running|pass|fail|timeout|cancelled",
    "timeout_seconds": "integer"
  },
  "job_type_policy": {
    "audit_only": {
      "allowed": "YES",
      "ledger_event_required": "YES",
      "remote_yeffai_mutation": "NO"
    },
    "empty_queue_runner_test": {
      "allowed": "YES",
      "ledger_event_required": "YES",
      "remote_yeffai_mutation": "NO"
    },
    "no_op_status_transition_test": {
      "allowed": "YES",
      "ledger_event_required": "YES",
      "remote_yeffai_mutation": "NO"
    },
    "policy_validation_test": {
      "allowed": "YES",
      "ledger_event_required": "YES",
      "remote_yeffai_mutation": "NO"
    }
  },
  "last_ledger_event_emission_test": {
    "event_id": "job_queue_task_runner_ledger_emission_test_15665",
    "event_index": 15665,
    "job_queue_jsonl_appended": "NO",
    "remote_yeffai_mutation": "NO",
    "test_output": "/home/yeff/public_html/devon/_backup/test_ledger_event_emission_real_structure_local_only_no_jsonl_no_remote_no_heredoc_20260626_132338/ledger_event_emission_real_structure_test_result_20260626_132338.json",
    "tested_at": "2026-06-26T16:23:41.662036+00:00"
  },
  "last_no_op_status_transition_test": {
    "ledger_event_emitted": "NO",
    "real_job_mutation_performed": "NO",
    "remote_yeffai_mutation": "NO",
    "simulated_transitions": [
      {
        "allowed": "YES",
        "from": "pending",
        "to": "running"
      },
      {
        "allowed": "YES",
        "from": "running",
        "to": "cancelled"
      }
    ],
    "test_output": "/home/yeff/public_html/devon/_backup/test_no_op_status_transition_no_ledger_no_remote_no_heredoc_20260626_130614/no_op_status_transition_test_result_20260626_130614.json",
    "tested_at": "2026-06-26T16:06:16.764780+00:00"
  },
  "last_policy_test": {
    "ledger_event_emitted": "NO",
    "real_job_mutation_performed": "NO",
    "remote_yeffai_mutation": "NO",
    "status_transition_performed": "NO",
    "test_output": "/home/yeff/public_html/devon/_backup/test_job_execution_policy_policy_only_no_heredoc_20260626_125906/job_execution_policy_test_result_20260626_125906.json",
    "tested_at": "2026-06-26T15:59:09.010542+00:00"
  },
  "ledger_policy": {
    "append_to_job_queue_jsonl_allowed": "NO_FOR_POLICY_CREATION",
    "event_source": "job_queue_task_runner",
    "ledger_mutation_allowed_in_policy_test": "NO",
    "queue_event_required": "YES",
    "status_transition_event_required": "YES",
    "terminal_event_required": "YES"
  },
  "module_id": "job_queue_task_runner",
  "next_required_action": "COMPLETE",
  "policy_id": "job_execution_policy",
  "purpose": "define the safe local execution boundary for queued jobs before any real job mutation is allowed",
  "remote_yeffai_mutation": "NO",
  "source_next_action": "CREATE_JOB_EXECUTION_POLICY",
  "status": "PASS",
  "status_transition_policy": {
    "allowed_statuses": [
      "pending",
      "running",
      "pass",
      "fail",
      "timeout",
      "cancelled"
    ],
    "allowed_transitions": {
      "cancelled": [],
      "fail": [],
      "pass": [],
      "pending": [
        "running",
        "cancelled"
      ],
      "running": [
        "pass",
        "fail",
        "timeout",
        "cancelled"
      ],
      "timeout": []
    },
    "invalid_transition_status": "FAIL",
    "terminal_statuses": [
      "pass",
      "fail",
      "timeout",
      "cancelled"
    ]
  },
  "timeout_policy": {
    "default_timeout_seconds": 900,
    "max_timeout_seconds": 7200,
    "timeout_must_emit_ledger_event": "YES",
    "timeout_must_leave_observable_state": "YES"
  },
  "updated_at": "2026-06-26T16:34:20.818069+00:00",
  "validation": {
    "controlled_ledger_event_emitted": "PASS",
    "final_readiness": "PASS",
    "job_queue_jsonl_unchanged": "PASS",
    "ledger_event_emission_tested": "PASS",
    "ledger_policy_bound": "PASS",
    "no_op_status_transition_tested": "PASS",
    "policy_file_exists": "PASS",
    "policy_latest_file_exists": "PASS",
    "policy_tested": "PASS",
    "real_job_mutation_allowed": "NO",
    "remote_mutation_default_denied": "PASS",
    "remote_yeffai_mutation": "NO",
    "runner_ready": "PASS",
    "status_transition_policy_defined": "PASS",
    "status_transition_tested": "PASS",
    "timeout_policy_bound": "PASS"
  }
}
