{
  "schema": "turkos-public-development-evidence/v1",
  "originalReport": {
    "path": "reports/os-implementation/K2390-configuration-persistence-local-LIKKIZ/report.json",
    "sha256": "48f2b975426c1e4370cf316dae880cb76f406faec85dafdaef6127530b181986",
    "bytes": 20766
  },
  "status": "K2386_K2389_LOCAL_VALIDATED",
  "scope": "# CONFIGURATION PERSISTENCE CONTRACT (K2386–K2390)\n\n- **Move Range:** `K2386–K2390`\n- **Phase:** `Phase 18 — Daily Use Applications`\n- **Module:** `configuration.persistence`\n- **Title:** `Config atomik kalıcılık`\n- **Invariant:** `Ayar ya eski ya yeni geçerli kayıt olur`\n- **Positive Case:** `Geçici diskte write rename` (`k2390-cfgwriterename`)\n- **Counterexample:** `Commit sırasında süreç ölümü` (`k2390-cfgcommitkill`)\n- **Acceptance Criterion:** `Yeni boot geçerli bir sürüm seçer`\n- **Crate:** `os-configuration` (`src/persistence.rs`)\n- **Inspection Symbol:** `os_configuration_persistence`\n\n## 1. Scope and Invariants\n\n1. **Atomic Old-or-New Valid Record Invariant (`K2386–K2387`):**\n   - Configuration persistence on scratch disk must guarantee that at every point either the previous valid record or the newly committed record is selected (`neither_old_nor_new_valid_record == false`, `torn_config_records == 0`), and that the next boot deterministically selects a valid configuration version (`next_boot_selects_valid_version == true`).\n   - Any state that leaves neither old nor new valid record or allows an invalid boot selection is deterministically refused (`ConfigurationPersistenceError::NeitherOldNorNewValidRecord`, `ConfigurationPersistenceError::NextBootSelectedInvalidVersion`).\n\n2. **Refusal of Process Death During Commit (`K2388`):**\n   - If the writer process dies during commit before atomic rename completes (`process_killed_during_commit == true`, `k2390-cfgcommitkill`), the partial write is rejected (`ConfigurationPersistenceError::ProcessKilledDuringCommit`), leaving the existing valid configuration intact and `committed_receipt()` as `None`.\n\n3. **Scratch Disk Write-and-Rename Atomic Persistence (`K2389–K2390`):**\n   - The positive path (`k2390-cfgwriterename`) commits 2 scratch disk write-and-rename operations (`scratch_write_rename_ops == 2`) across 2 valid boot generations (`valid_boot_generations == 2`) with 2 atomic commit witnesses (`atomic_commit_witnesses == 2`) and 0 torn config records (`torn_config_records == 0`), bound by a monotonic `persistence_epoch` and FNV-1a digest (`compute_configuration_persistence_binding_digest`).\n",
  "productAccepted": false,
  "tests": {
    "greenCount": 4,
    "positiveName": "os_configuration_persistence_positive",
    "negativeName": "os_configuration_persistence_negative",
    "mutationsRejected": 21
  },
  "caseCount": 0,
  "caseSerialsSelected": 0,
  "imageSha256": null,
  "files": [
    {
      "name": "Cargo.toml",
      "source": "reports/os-implementation/K2390-configuration-persistence-staging-local-PiUc01/source/os-configuration/Cargo.toml",
      "originalSha256": "8a13fc99bd07c68dd4779fb52f8c8e661c4a7eca337812d1235c6798333b1160",
      "href": "/os-evidence/8a13fc99bd07c68dd4779fb52f8c8e661c4a7eca337812d1235c6798333b1160.txt",
      "sha256": "8a13fc99bd07c68dd4779fb52f8c8e661c4a7eca337812d1235c6798333b1160",
      "bytes": 154,
      "redacted": false
    },
    {
      "name": "CONFIGURATION_PERSISTENCE_CONTRACT.md",
      "source": "reports/os-implementation/K2390-configuration-persistence-staging-local-PiUc01/source/kernel/CONFIGURATION_PERSISTENCE_CONTRACT.md",
      "originalSha256": "61b1692be5bc07cc9a1d63609aa7f07f9c0262f9cea9f5bf6e2ec44e168681de",
      "href": "/os-evidence/61b1692be5bc07cc9a1d63609aa7f07f9c0262f9cea9f5bf6e2ec44e168681de.txt",
      "sha256": "61b1692be5bc07cc9a1d63609aa7f07f9c0262f9cea9f5bf6e2ec44e168681de",
      "bytes": 2212,
      "redacted": false
    },
    {
      "name": "lib.rs",
      "source": "reports/os-implementation/K2390-configuration-persistence-staging-local-PiUc01/source/os-configuration/src/lib.rs",
      "originalSha256": "7c4911e9428af726b89670b3d638a6a757cccdb4d1bbaddf65178ee74239bfb0",
      "href": "/os-evidence/7c4911e9428af726b89670b3d638a6a757cccdb4d1bbaddf65178ee74239bfb0.txt",
      "sha256": "7c4911e9428af726b89670b3d638a6a757cccdb4d1bbaddf65178ee74239bfb0",
      "bytes": 85,
      "redacted": false
    },
    {
      "name": "package.rs",
      "source": "reports/os-implementation/K2390-configuration-persistence-staging-local-PiUc01/source/os-configuration/src/package.rs",
      "originalSha256": "f4637e570a7fef9bd2e4d98e7d9924f53e5f0bd79a1280af66a5c73c52575ef7",
      "href": "/os-evidence/f4637e570a7fef9bd2e4d98e7d9924f53e5f0bd79a1280af66a5c73c52575ef7.txt",
      "sha256": "f4637e570a7fef9bd2e4d98e7d9924f53e5f0bd79a1280af66a5c73c52575ef7",
      "bytes": 7798,
      "redacted": false
    },
    {
      "name": "persistence.rs",
      "source": "reports/os-implementation/K2390-configuration-persistence-staging-local-PiUc01/source/os-configuration/src/persistence.rs",
      "originalSha256": "bf10aaba34d458ad25df7f297091176c396222ab6f1ac3a7a501fb8ba4753910",
      "href": "/os-evidence/bf10aaba34d458ad25df7f297091176c396222ab6f1ac3a7a501fb8ba4753910.txt",
      "sha256": "bf10aaba34d458ad25df7f297091176c396222ab6f1ac3a7a501fb8ba4753910",
      "bytes": 8107,
      "redacted": false
    },
    {
      "name": "schema.rs",
      "source": "reports/os-implementation/K2390-configuration-persistence-staging-local-PiUc01/source/os-configuration/src/schema.rs",
      "originalSha256": "f6b30caaeb5f579054cf02e3fc72ceb0be5c527274fecf5192a00f4f81e7f81a",
      "href": "/os-evidence/f6b30caaeb5f579054cf02e3fc72ceb0be5c527274fecf5192a00f4f81e7f81a.txt",
      "sha256": "f6b30caaeb5f579054cf02e3fc72ceb0be5c527274fecf5192a00f4f81e7f81a",
      "bytes": 7879,
      "redacted": false
    },
    {
      "name": "uninstall.rs",
      "source": "reports/os-implementation/K2390-configuration-persistence-staging-local-PiUc01/source/os-configuration/src/uninstall.rs",
      "originalSha256": "632a52c503233ccb63dec2667ad4b240177b3533759dcadfb28a846c712499ba",
      "href": "/os-evidence/632a52c503233ccb63dec2667ad4b240177b3533759dcadfb28a846c712499ba.txt",
      "sha256": "632a52c503233ccb63dec2667ad4b240177b3533759dcadfb28a846c712499ba",
      "bytes": 8065,
      "redacted": false
    },
    {
      "name": "package.rs",
      "source": "reports/os-implementation/K2390-configuration-persistence-staging-local-PiUc01/source/os-configuration/tests/package.rs",
      "originalSha256": "19cb5a853d0118390159e58e198b70a9e986d0a20492f6b92239e3340a77caee",
      "href": "/os-evidence/19cb5a853d0118390159e58e198b70a9e986d0a20492f6b92239e3340a77caee.txt",
      "sha256": "19cb5a853d0118390159e58e198b70a9e986d0a20492f6b92239e3340a77caee",
      "bytes": 6402,
      "redacted": false
    },
    {
      "name": "persistence.rs",
      "source": "reports/os-implementation/K2390-configuration-persistence-staging-local-PiUc01/source/os-configuration/tests/persistence.rs",
      "originalSha256": "9b345db8eb8f247db0892ff2ab3dee14818d413d773523dd3db9c66f6110a8a3",
      "href": "/os-evidence/9b345db8eb8f247db0892ff2ab3dee14818d413d773523dd3db9c66f6110a8a3.txt",
      "sha256": "9b345db8eb8f247db0892ff2ab3dee14818d413d773523dd3db9c66f6110a8a3",
      "bytes": 6772,
      "redacted": false
    },
    {
      "name": "schema.rs",
      "source": "reports/os-implementation/K2390-configuration-persistence-staging-local-PiUc01/source/os-configuration/tests/schema.rs",
      "originalSha256": "7426bbb5b90eff2103ab231eb29be44ff70e278872f29db23d00ec4860618aa8",
      "href": "/os-evidence/7426bbb5b90eff2103ab231eb29be44ff70e278872f29db23d00ec4860618aa8.txt",
      "sha256": "7426bbb5b90eff2103ab231eb29be44ff70e278872f29db23d00ec4860618aa8",
      "bytes": 6487,
      "redacted": false
    },
    {
      "name": "uninstall.rs",
      "source": "reports/os-implementation/K2390-configuration-persistence-staging-local-PiUc01/source/os-configuration/tests/uninstall.rs",
      "originalSha256": "d56d104b20296d07ea2d0c567182709215a8c1d996a0fb36f6cadaba7e607d79",
      "href": "/os-evidence/d56d104b20296d07ea2d0c567182709215a8c1d996a0fb36f6cadaba7e607d79.txt",
      "sha256": "d56d104b20296d07ea2d0c567182709215a8c1d996a0fb36f6cadaba7e607d79",
      "bytes": 6745,
      "redacted": false
    },
    {
      "name": "host-tests.log",
      "source": "reports/os-implementation/K2390-configuration-persistence-staging-local-PiUc01/host-tests.log",
      "originalSha256": "1918e2ddabe8810fd9471f21d1db864fc88e4ffd60d9328c773bf26b27cfcab7",
      "href": "/os-evidence/4b7656f8cb1dc2f5cfff8bd1bd618d61273d1e8c465801beaff1641a05bb7c82.txt",
      "sha256": "4b7656f8cb1dc2f5cfff8bd1bd618d61273d1e8c465801beaff1641a05bb7c82",
      "bytes": 776,
      "redacted": true
    },
    {
      "name": "positive.log",
      "source": "reports/os-implementation/K2390-configuration-persistence-staging-local-PiUc01/positive.log",
      "originalSha256": "e22cf673306428b783827a38d9b16b641d79967d5e5d6d588cd670aeb838833b",
      "href": "/os-evidence/e22cf673306428b783827a38d9b16b641d79967d5e5d6d588cd670aeb838833b.txt",
      "sha256": "e22cf673306428b783827a38d9b16b641d79967d5e5d6d588cd670aeb838833b",
      "bytes": 443,
      "redacted": false
    },
    {
      "name": "negative.log",
      "source": "reports/os-implementation/K2390-configuration-persistence-staging-local-PiUc01/negative.log",
      "originalSha256": "f76e64da32da7f1eb2e4ad75bd1a54dac1841bbdb6051b36026c2557ff28b159",
      "href": "/os-evidence/f76e64da32da7f1eb2e4ad75bd1a54dac1841bbdb6051b36026c2557ff28b159.txt",
      "sha256": "f76e64da32da7f1eb2e4ad75bd1a54dac1841bbdb6051b36026c2557ff28b159",
      "bytes": 443,
      "redacted": false
    },
    {
      "name": "target.log",
      "source": "reports/os-implementation/K2390-configuration-persistence-staging-local-PiUc01/target.log",
      "originalSha256": "510b778702b096dcca8fea70e465c30e5424128bfce065da2da84e3f4aadd7f1",
      "href": "/os-evidence/043fd4326de23be747d63f141e0ab176488f65da10e805d2a7f59b32a16ffa52.txt",
      "sha256": "043fd4326de23be747d63f141e0ab176488f65da10e805d2a7f59b32a16ffa52",
      "bytes": 231,
      "redacted": true
    },
    {
      "name": "harness.mjs.txt",
      "source": "reports/os-implementation/K2390-configuration-persistence-local-LIKKIZ/harness.mjs.txt",
      "originalSha256": "afc913f79c414c44a72e26a3a004d9f03d04045996a9bd2887ce7c9410385284",
      "href": "/os-evidence/afc913f79c414c44a72e26a3a004d9f03d04045996a9bd2887ce7c9410385284.txt",
      "sha256": "afc913f79c414c44a72e26a3a004d9f03d04045996a9bd2887ce7c9410385284",
      "bytes": 4604,
      "redacted": false
    },
    {
      "name": "k2390-configuration-persistence.rs",
      "source": "reports/os-implementation/K2390-configuration-persistence-candidate-Fr9fYm/sources/kernel/src/k2390-configuration-persistence.rs",
      "originalSha256": "c912f1b14abb434cecb89b3ad0130ddce1bf79972bb1fb6840defc27ec5d2f87",
      "href": "/os-evidence/c912f1b14abb434cecb89b3ad0130ddce1bf79972bb1fb6840defc27ec5d2f87.txt",
      "sha256": "c912f1b14abb434cecb89b3ad0130ddce1bf79972bb1fb6840defc27ec5d2f87",
      "bytes": 13540,
      "redacted": false
    },
    {
      "name": "configuration_persistence.rs",
      "source": "reports/os-implementation/K2390-configuration-persistence-candidate-Fr9fYm/sources/kernel/src/runtime/configuration_persistence.rs",
      "originalSha256": "bf10aaba34d458ad25df7f297091176c396222ab6f1ac3a7a501fb8ba4753910",
      "href": "/os-evidence/bf10aaba34d458ad25df7f297091176c396222ab6f1ac3a7a501fb8ba4753910.txt",
      "sha256": "bf10aaba34d458ad25df7f297091176c396222ab6f1ac3a7a501fb8ba4753910",
      "bytes": 8107,
      "redacted": false
    },
    {
      "name": "main.rs",
      "source": "reports/os-implementation/K2390-configuration-persistence-candidate-Fr9fYm/sources/kernel/src/main.rs",
      "originalSha256": "cf6b483dc476154c94809b58af22400e2b76a1a0cf21452384c2a52d16619a74",
      "href": "/os-evidence/217e72ae0734977cbabde371a7dfd6be2200780dd414db3feb6350bfebdfda9a.txt",
      "sha256": "217e72ae0734977cbabde371a7dfd6be2200780dd414db3feb6350bfebdfda9a",
      "bytes": 2316127,
      "redacted": true
    },
    {
      "name": "mod.rs",
      "source": "reports/os-implementation/K2390-configuration-persistence-candidate-Fr9fYm/sources/kernel/src/runtime/mod.rs",
      "originalSha256": "e76b35341ebb4640748838438ef7e60a7eed8a201badbbe69ca821fe2d266991",
      "href": "/os-evidence/e76b35341ebb4640748838438ef7e60a7eed8a201badbbe69ca821fe2d266991.txt",
      "sha256": "e76b35341ebb4640748838438ef7e60a7eed8a201badbbe69ca821fe2d266991",
      "bytes": 5679,
      "redacted": false
    },
    {
      "name": "kernel-product.log",
      "source": "reports/os-implementation/K2390-configuration-persistence-candidate-Fr9fYm/kernel-product.log",
      "originalSha256": "d27139d886209aaa513641b53cefedb8a6b1a8706c6fdc81fe8b608a7e42b4bc",
      "href": "/os-evidence/f24d2a09676b13a2ff780723117607b931e50fe4a3deaecd77d67a674837910b.txt",
      "sha256": "f24d2a09676b13a2ff780723117607b931e50fe4a3deaecd77d67a674837910b",
      "bytes": 2379,
      "redacted": true
    }
  ],
  "moves": [
    "K2386",
    "K2387",
    "K2388",
    "K2389"
  ]
}
