{
  "schema": "turkos-public-development-evidence/v1",
  "originalReport": {
    "path": "reports/os-implementation/K2130-guest-power-psci-off-local-H4RLwp/report.json",
    "sha256": "2ff73c9e175f9d10d5feb40e8411d0c0a5d00fe8f8097205ff481ad2ef2baa41",
    "bytes": 19281
  },
  "status": "K2126_K2129_LOCAL_VALIDATED",
  "scope": "# K2126–K2130: PSCI SYSTEM_OFF checks support, conduit and guest diagnosis\n\nBefore the kernel arms a guest power-off (`SYSTEM_OFF`, `0x8400_0008`), it must\nverify from the platform description and firmware query that a PSCI node is\npresent, enabled and compatible, that its conduit is known (`HVC` or `SMC`),\nthat `PSCI_VERSION` (`0x8400_0000`) is at least `0.2`, and that\n`PSCI_FEATURES(SYSTEM_OFF)` (`0x8400_000a`) does not report unsupported (`< 0`).\n\nIf the PSCI node is absent, disabled, incompatible or lacks a valid conduit,\nthe probe is refused with `NoPsci`. If the firmware version is below `0.2` or\n`SYSTEM_OFF` is unsupported, the probe is refused with `Unsupported`. A refused\nprobe increments the visible refusal counter and leaves the executor unprobed so\n`arm_off` cannot proceed.\n\nOnce probed ready, `arm_off` accepts only a committed `Off` ticket (`op = 1`)\nwhose sequence advances beyond any prior ticket. A `Reset` ticket or non-advancing\nsequence is refused with `Ticket`. Because `SYSTEM_OFF` does not return on\nsuccess, any return from firmware transitions the executor to `FailedReturn` and\nreports `Returned`.\n\nGuest power-off diagnosis is bound to the active `boot_id`, discovered conduit,\n`SYSTEM_OFF` function ID and committed ticket sequence, and requires\n`guest_diagnosed = true` and `host_quit = false`. A bare host QMP `quit` or\nundiagnosed termination is rejected with `HostQuitConfused`.\n\nIn the K2130 guest experiment on the single product Image, the kernel discovers\nthe PSCI conduit from the live DTB, queries real QEMU PSCI firmware via `hvc #0`\nfor `PSCI_VERSION`, `PSCI_FEATURES(SYSTEM_OFF)` and an unsupported function ID,\nverifies negative refusals (unauthorized caller, missing/unsupported PSCI probe,\nwrong ticket op, host-quit-only receipt), and arms the `Off` ticket from the\nEL0 PID1 program with a guest-authenticated shutdown receipt distinct from the\nsubsequent host runner cleanup.\n",
  "productAccepted": false,
  "tests": {
    "greenCount": 8,
    "positiveName": "os_guest_power_psci_off_positive",
    "negativeName": "os_guest_power_psci_off_negative",
    "mutationsRejected": 24
  },
  "caseCount": 0,
  "caseSerialsSelected": 0,
  "imageSha256": null,
  "files": [
    {
      "name": "Cargo.toml",
      "source": "reports/os-implementation/K2130-guest-power-psci-off-staging-local-Mz02Tn/source/os-guest-power/Cargo.toml",
      "originalSha256": "2d7e8604a7eb1465f862f5c775d1bc64c772cf093d4d0a83ea4686704c274a6d",
      "href": "/os-evidence/2d7e8604a7eb1465f862f5c775d1bc64c772cf093d4d0a83ea4686704c274a6d.txt",
      "sha256": "2d7e8604a7eb1465f862f5c775d1bc64c772cf093d4d0a83ea4686704c274a6d",
      "bytes": 135,
      "redacted": false
    },
    {
      "name": "GUEST_POWER_PSCI_OFF_CONTRACT.md",
      "source": "reports/os-implementation/K2130-guest-power-psci-off-staging-local-Mz02Tn/source/kernel/GUEST_POWER_PSCI_OFF_CONTRACT.md",
      "originalSha256": "d5ed197d9150b2710989bbda48bef6bab2dd529a948df9f9cf40159017ed6ac7",
      "href": "/os-evidence/d5ed197d9150b2710989bbda48bef6bab2dd529a948df9f9cf40159017ed6ac7.txt",
      "sha256": "d5ed197d9150b2710989bbda48bef6bab2dd529a948df9f9cf40159017ed6ac7",
      "bytes": 1935,
      "redacted": false
    },
    {
      "name": "capability.rs",
      "source": "reports/os-implementation/K2130-guest-power-psci-off-staging-local-Mz02Tn/source/os-guest-power/src/capability.rs",
      "originalSha256": "dff50d7e42b9d4298117dd566a9d43488d04fdb77466fce4eadf2fa50fc0e2f9",
      "href": "/os-evidence/dff50d7e42b9d4298117dd566a9d43488d04fdb77466fce4eadf2fa50fc0e2f9.txt",
      "sha256": "dff50d7e42b9d4298117dd566a9d43488d04fdb77466fce4eadf2fa50fc0e2f9",
      "bytes": 3684,
      "redacted": false
    },
    {
      "name": "lib.rs",
      "source": "reports/os-implementation/K2130-guest-power-psci-off-staging-local-Mz02Tn/source/os-guest-power/src/lib.rs",
      "originalSha256": "afd22c260158ae4acb7bb3ebe1fd819d8922f0d3dd9b3722affd65ed8dbe4ada",
      "href": "/os-evidence/afd22c260158ae4acb7bb3ebe1fd819d8922f0d3dd9b3722affd65ed8dbe4ada.txt",
      "sha256": "afd22c260158ae4acb7bb3ebe1fd819d8922f0d3dd9b3722affd65ed8dbe4ada",
      "bytes": 49,
      "redacted": false
    },
    {
      "name": "psci_off.rs",
      "source": "reports/os-implementation/K2130-guest-power-psci-off-staging-local-Mz02Tn/source/os-guest-power/src/psci_off.rs",
      "originalSha256": "df39a6a015a3e2fd0c6890189f1c0d9165194ec6a9b414f2ffe877c84e6d3c67",
      "href": "/os-evidence/df39a6a015a3e2fd0c6890189f1c0d9165194ec6a9b414f2ffe877c84e6d3c67.txt",
      "sha256": "df39a6a015a3e2fd0c6890189f1c0d9165194ec6a9b414f2ffe877c84e6d3c67",
      "bytes": 4062,
      "redacted": false
    },
    {
      "name": "capability.rs",
      "source": "reports/os-implementation/K2130-guest-power-psci-off-staging-local-Mz02Tn/source/os-guest-power/tests/capability.rs",
      "originalSha256": "ca522b1cbe90a0ef08067d53e530a4d44eddcd147d5bb7481bd35d5cdab38208",
      "href": "/os-evidence/ca522b1cbe90a0ef08067d53e530a4d44eddcd147d5bb7481bd35d5cdab38208.txt",
      "sha256": "ca522b1cbe90a0ef08067d53e530a4d44eddcd147d5bb7481bd35d5cdab38208",
      "bytes": 4513,
      "redacted": false
    },
    {
      "name": "psci_off.rs",
      "source": "reports/os-implementation/K2130-guest-power-psci-off-staging-local-Mz02Tn/source/os-guest-power/tests/psci_off.rs",
      "originalSha256": "79f91ea69fe97152ea929ef243f777e4994a2b086dcd110409de01310b80ae56",
      "href": "/os-evidence/79f91ea69fe97152ea929ef243f777e4994a2b086dcd110409de01310b80ae56.txt",
      "sha256": "79f91ea69fe97152ea929ef243f777e4994a2b086dcd110409de01310b80ae56",
      "bytes": 4388,
      "redacted": false
    },
    {
      "name": "host-tests.log",
      "source": "reports/os-implementation/K2130-guest-power-psci-off-staging-local-Mz02Tn/host-tests.log",
      "originalSha256": "44a2e975aa1799352f4f105c381aae4e54f59a3aa9aea15d6efb462c5e0670eb",
      "href": "/os-evidence/ae211a3097cb6b793df6ce3d72aa18ad35f8baff39045b7492be0e7bd88984ae.txt",
      "sha256": "ae211a3097cb6b793df6ce3d72aa18ad35f8baff39045b7492be0e7bd88984ae",
      "bytes": 973,
      "redacted": true
    },
    {
      "name": "positive.log",
      "source": "reports/os-implementation/K2130-guest-power-psci-off-staging-local-Mz02Tn/positive.log",
      "originalSha256": "aa31cc264724e70ca65626964944fbed630d6345b7a437d938ab1c4d514a222a",
      "href": "/os-evidence/aa31cc264724e70ca65626964944fbed630d6345b7a437d938ab1c4d514a222a.txt",
      "sha256": "aa31cc264724e70ca65626964944fbed630d6345b7a437d938ab1c4d514a222a",
      "bytes": 425,
      "redacted": false
    },
    {
      "name": "negative.log",
      "source": "reports/os-implementation/K2130-guest-power-psci-off-staging-local-Mz02Tn/negative.log",
      "originalSha256": "cbc4ddfe7ae2c38a4ebedffde30e83c85a8f732ba8c7049d26e74fc873f08823",
      "href": "/os-evidence/cbc4ddfe7ae2c38a4ebedffde30e83c85a8f732ba8c7049d26e74fc873f08823.txt",
      "sha256": "cbc4ddfe7ae2c38a4ebedffde30e83c85a8f732ba8c7049d26e74fc873f08823",
      "bytes": 425,
      "redacted": false
    },
    {
      "name": "target.log",
      "source": "reports/os-implementation/K2130-guest-power-psci-off-staging-local-Mz02Tn/target.log",
      "originalSha256": "91b6f8e8fdd394573747d70035f9daee87c86bbf28e9600774932b19f5798b0d",
      "href": "/os-evidence/eb589889012afab5b9c9cc36547cb0410420968c987052b1895e4d3dcde71da2.txt",
      "sha256": "eb589889012afab5b9c9cc36547cb0410420968c987052b1895e4d3dcde71da2",
      "bytes": 222,
      "redacted": true
    },
    {
      "name": "harness.mjs.txt",
      "source": "reports/os-implementation/K2130-guest-power-psci-off-local-H4RLwp/harness.mjs.txt",
      "originalSha256": "afc913f79c414c44a72e26a3a004d9f03d04045996a9bd2887ce7c9410385284",
      "href": "/os-evidence/afc913f79c414c44a72e26a3a004d9f03d04045996a9bd2887ce7c9410385284.txt",
      "sha256": "afc913f79c414c44a72e26a3a004d9f03d04045996a9bd2887ce7c9410385284",
      "bytes": 4604,
      "redacted": false
    },
    {
      "name": "k2130-guest-power-psci-off.rs",
      "source": "reports/os-implementation/K2130-guest-power-psci-off-candidate-bIDNeU/sources/kernel/src/k2130-guest-power-psci-off.rs",
      "originalSha256": "261be5b8dc4890fab7cc6854929b0f14a93dbe3a2cfb2b198715ffde45e5d025",
      "href": "/os-evidence/261be5b8dc4890fab7cc6854929b0f14a93dbe3a2cfb2b198715ffde45e5d025.txt",
      "sha256": "261be5b8dc4890fab7cc6854929b0f14a93dbe3a2cfb2b198715ffde45e5d025",
      "bytes": 9857,
      "redacted": false
    },
    {
      "name": "guest_power_psci_off.rs",
      "source": "reports/os-implementation/K2130-guest-power-psci-off-candidate-bIDNeU/sources/kernel/src/runtime/guest_power_psci_off.rs",
      "originalSha256": "df39a6a015a3e2fd0c6890189f1c0d9165194ec6a9b414f2ffe877c84e6d3c67",
      "href": "/os-evidence/df39a6a015a3e2fd0c6890189f1c0d9165194ec6a9b414f2ffe877c84e6d3c67.txt",
      "sha256": "df39a6a015a3e2fd0c6890189f1c0d9165194ec6a9b414f2ffe877c84e6d3c67",
      "bytes": 4062,
      "redacted": false
    },
    {
      "name": "main.rs",
      "source": "reports/os-implementation/K2130-guest-power-psci-off-candidate-bIDNeU/sources/kernel/src/main.rs",
      "originalSha256": "d40d087848a9d6e86814907b935013fdb9f71861aef5f04418f990dbb752ef87",
      "href": "/os-evidence/59cf897a5fb15186ec9f378539cc531117d4dcb7c0381ab80429c75a43181c24.txt",
      "sha256": "59cf897a5fb15186ec9f378539cc531117d4dcb7c0381ab80429c75a43181c24",
      "bytes": 2306849,
      "redacted": true
    },
    {
      "name": "mod.rs",
      "source": "reports/os-implementation/K2130-guest-power-psci-off-candidate-bIDNeU/sources/kernel/src/runtime/mod.rs",
      "originalSha256": "f2a5aa05d4a4542747ac203bdcbabe0a580b90854bcca533252d852d9e6aa8c7",
      "href": "/os-evidence/f2a5aa05d4a4542747ac203bdcbabe0a580b90854bcca533252d852d9e6aa8c7.txt",
      "sha256": "f2a5aa05d4a4542747ac203bdcbabe0a580b90854bcca533252d852d9e6aa8c7",
      "bytes": 4079,
      "redacted": false
    },
    {
      "name": "kernel-product.log",
      "source": "reports/os-implementation/K2130-guest-power-psci-off-candidate-bIDNeU/kernel-product.log",
      "originalSha256": "3a2a333ade4f8aab81d0ed824ab59948c579c0fa239a36f5cd86047ab7c4895b",
      "href": "/os-evidence/533d77e360bde48af298d8e105e50420a710cdb3e8cf511e75c19e6c99a775db.txt",
      "sha256": "533d77e360bde48af298d8e105e50420a710cdb3e8cf511e75c19e6c99a775db",
      "bytes": 2319,
      "redacted": true
    }
  ],
  "moves": [
    "K2126",
    "K2127",
    "K2128",
    "K2129"
  ]
}
