{
  "schema": "MAKNOW_LOC002_LAB_FIXTURES_v1",
  "cases": [
    {
      "id": "case_01",
      "command_name": "inspect_worker_status",
      "registered_commands": [
        "inspect_worker_status",
        "rotate_local_credential",
        "request_controlled_restart"
      ],
      "frontend_origin": "tauri://localhost",
      "window_label": "main",
      "capability_allows": true,
      "permission_allows": true,
      "input_schema": {
        "node_id": "str"
      },
      "input": {
        "node_id": "node-42"
      },
      "domain_authorized": true,
      "allowed_resource_prefix": "worker/",
      "resource": "worker/status",
      "side_effect_class": "READ_ONLY",
      "idempotency_key": null,
      "prior_idempotency_keys": [],
      "audit_event_id": "audit-001"
    },
    {
      "id": "case_02",
      "command_name": "admin_action",
      "registered_commands": [
        "admin_action"
      ],
      "frontend_origin": "tauri://localhost",
      "window_label": "main",
      "capability_allows": true,
      "permission_allows": true,
      "input_schema": {
        "name": "str",
        "payload": "dict"
      },
      "input": {
        "name": "restart",
        "payload": {
          "path": "/any"
        }
      },
      "domain_authorized": true,
      "allowed_resource_prefix": "worker/",
      "resource": "worker/restart",
      "side_effect_class": "STATE_CHANGE",
      "idempotency_key": "idem-002",
      "prior_idempotency_keys": [],
      "audit_event_id": "audit-002"
    },
    {
      "id": "case_03",
      "command_name": "inspect_worker_status",
      "registered_commands": [
        "inspect_worker_status"
      ],
      "frontend_origin": "https://docs.example.invalid",
      "window_label": "docs",
      "capability_allows": false,
      "permission_allows": false,
      "input_schema": {
        "node_id": "str"
      },
      "input": {
        "node_id": "node-42"
      },
      "domain_authorized": true,
      "allowed_resource_prefix": "worker/",
      "resource": "worker/status",
      "side_effect_class": "READ_ONLY",
      "idempotency_key": null,
      "prior_idempotency_keys": [],
      "audit_event_id": "audit-003"
    },
    {
      "id": "case_04",
      "command_name": "rotate_local_credential",
      "registered_commands": [
        "rotate_local_credential"
      ],
      "frontend_origin": "tauri://localhost",
      "window_label": "main",
      "capability_allows": true,
      "permission_allows": true,
      "input_schema": {
        "node_id": "str",
        "credential_version": "int"
      },
      "input": {
        "node_id": "node-42",
        "credential_version": "v7"
      },
      "domain_authorized": true,
      "allowed_resource_prefix": "credential/node-42/",
      "resource": "credential/node-42/active",
      "side_effect_class": "STATE_CHANGE",
      "idempotency_key": "idem-004",
      "prior_idempotency_keys": [],
      "audit_event_id": "audit-004"
    },
    {
      "id": "case_05",
      "command_name": "request_controlled_restart",
      "registered_commands": [
        "request_controlled_restart"
      ],
      "frontend_origin": "tauri://localhost",
      "window_label": "main",
      "capability_allows": true,
      "permission_allows": true,
      "input_schema": {
        "node_id": "str",
        "reason": "str"
      },
      "input": {
        "node_id": "node-42",
        "reason": "operator_request"
      },
      "domain_authorized": false,
      "allowed_resource_prefix": "worker/",
      "resource": "worker/restart",
      "side_effect_class": "STATE_CHANGE",
      "idempotency_key": "idem-005",
      "prior_idempotency_keys": [],
      "audit_event_id": "audit-005"
    },
    {
      "id": "case_06",
      "command_name": "rotate_local_credential",
      "registered_commands": [
        "rotate_local_credential"
      ],
      "frontend_origin": "tauri://localhost",
      "window_label": "main",
      "capability_allows": true,
      "permission_allows": true,
      "input_schema": {
        "node_id": "str",
        "credential_version": "int"
      },
      "input": {
        "node_id": "node-42",
        "credential_version": 8
      },
      "domain_authorized": true,
      "allowed_resource_prefix": "credential/node-42/",
      "resource": "credential/global/root",
      "side_effect_class": "STATE_CHANGE",
      "idempotency_key": "idem-006",
      "prior_idempotency_keys": [],
      "audit_event_id": "audit-006"
    },
    {
      "id": "case_07",
      "command_name": "inspect_worker_status",
      "registered_commands": [
        "inspect_worker_status"
      ],
      "frontend_origin": "tauri://localhost",
      "window_label": "diagnostics",
      "capability_allows": null,
      "permission_allows": null,
      "input_schema": {
        "node_id": "str"
      },
      "input": {
        "node_id": "node-42"
      },
      "domain_authorized": true,
      "allowed_resource_prefix": "worker/",
      "resource": "worker/status",
      "side_effect_class": "READ_ONLY",
      "idempotency_key": null,
      "prior_idempotency_keys": [],
      "audit_event_id": "audit-007"
    },
    {
      "id": "case_08",
      "command_name": "delete_stale_cache_entry",
      "registered_commands": [
        "delete_stale_cache_entry"
      ],
      "frontend_origin": "tauri://localhost",
      "window_label": "main",
      "capability_allows": true,
      "permission_allows": true,
      "input_schema": {
        "node_id": "str",
        "cache_key": "str",
        "stale": "bool"
      },
      "input": {
        "node_id": "node-42",
        "cache_key": "cache/stale/item-19",
        "stale": true
      },
      "domain_authorized": true,
      "allowed_resource_prefix": "cache/stale/",
      "resource": "cache/stale/item-19",
      "side_effect_class": "STATE_CHANGE",
      "idempotency_key": "idem-cache-19",
      "prior_idempotency_keys": [
        "idem-cache-19"
      ],
      "audit_event_id": "audit-008",
      "transfer": true
    }
  ]
}
