{
  "item_id": "II.4",
  "implementation_commit": "8b4dee429d0e56749c6dcf5bac84c252b16104c9",
  "status": "passed",
  "implementation_choice": "Authenticated head downloads pin selected metadata/content once and reuse bounded HTTP full/Range streaming. Core keep_and_rename_head publishes one chosen-FileId resolution/move, preserving other contenders and shadowing directories. React offers sequential 64KiB previews, binary/empty/truncation states, authenticated downloads, selected-head rename and cancellable stale-view requests. Runtime component tests run through the existing container UI helper.",
  "test_names": [
    "head_content_route_streams_shadowed_and_losing_heads_and_rejects_invalid_selection",
    "head_route_uses_materialized_path_after_concurrent_move_and_reports_missing_content",
    "keep_and_rename_preserves_shadow_directory_and_rejects_without_mutation",
    "keep_and_rename_chooses_requested_body_without_removing_other_file_ids",
    "keep_and_rename_selected_head_is_one_identity_preserving_resolution",
    "keep_and_rename_preserves_key_shadows_and_other_contenders",
    "keep_and_rename_rejects_invalid_stale_unrelated_and_deleted_heads_atomically",
    "head_downloads_keep_pinned_metadata_and_body_after_resolution_move_and_delete",
    "download_writer_is_bounded_and_stops_when_the_body_is_dropped"
  ],
  "expected_failure_contexts": [
    {
      "log_path": "baseline-final-web.log",
      "phase": "Final fixture compiled freshly against isolated a6e28c7; original behavior passes and four missing-route assertions fail. Production inputs and final fixture bytes independently verified."
    },
    {
      "log_path": "baseline-final3-ui.log",
      "phase": "Actual React component rendered against unchanged a6e28c7; two existing behaviors pass, seven missing comparison/download/rename/cancellation interaction assertions fail."
    }
  ],
  "excluded_attempt_contexts": [
    {
      "log_path": "fixed-web-first.log",
      "reason": "Fixture retained same-database handles when attempting reopen."
    },
    {
      "log_path": "fixed-web-second.log",
      "reason": "Fixture router still owned a Vault clone; it is dropped before close/reopen in the final fixture."
    },
    {
      "log_path": "ui-dependencies.log",
      "reason": "Harness setup and correction; not counted as fail-first production evidence."
    }
  ],
  "final_rust_execution_count": 46,
  "final_node_execution_count": 24,
  "commands": [
    {
      "artifact_path": "final-core.json",
      "command_argv": [
        "env",
        "CARGO_BUILD_JOBS=2",
        "CARGO_INCREMENTAL=0",
        "cargo",
        "test",
        "--locked",
        "-p",
        "cipherfs-core",
        "--all-features",
        "--test",
        "conflicts"
      ],
      "exit_code": 0
    },
    {
      "artifact_path": "fixed-web-final.json",
      "command_argv": [
        "env",
        "CARGO_BUILD_JOBS=2",
        "CARGO_INCREMENTAL=0",
        "cargo",
        "test",
        "--locked",
        "-p",
        "cipherfs-web",
        "--all-features",
        "--test",
        "conflicts_api_test"
      ],
      "exit_code": 0
    },
    {
      "artifact_path": "final-download-unit.json",
      "command_argv": [
        "env",
        "CARGO_BUILD_JOBS=2",
        "CARGO_INCREMENTAL=0",
        "TS_RS_EXPORT_DIR=/Users/roger/.codex/tmp/cipherfs-todo-20261011/10/ts-bindings",
        "cargo",
        "test",
        "--locked",
        "-p",
        "cipherfs-web",
        "--all-features",
        "--lib",
        "api::files::download_tests"
      ],
      "exit_code": 0
    },
    {
      "artifact_path": "final-file-api.json",
      "command_argv": [
        "env",
        "CARGO_BUILD_JOBS=2",
        "CARGO_INCREMENTAL=0",
        "cargo",
        "test",
        "--locked",
        "-p",
        "cipherfs-web",
        "--all-features",
        "--test",
        "file_api_test"
      ],
      "exit_code": 0
    },
    {
      "artifact_path": "final-clippy.json",
      "command_argv": [
        "env",
        "CARGO_BUILD_JOBS=2",
        "CARGO_INCREMENTAL=0",
        "cargo",
        "clippy",
        "--locked",
        "-p",
        "cipherfs-core",
        "-p",
        "cipherfs-web",
        "--all-targets",
        "--all-features",
        "--",
        "-D",
        "warnings"
      ],
      "exit_code": 0
    },
    {
      "artifact_path": "final-fmt.json",
      "command_argv": [
        "cargo",
        "fmt",
        "--all",
        "--check"
      ],
      "exit_code": 0
    },
    {
      "artifact_path": "final-diff.json",
      "command_argv": [
        "git",
        "diff",
        "--check"
      ],
      "exit_code": 0
    },
    {
      "artifact_path": "final2-ui.json",
      "command_argv": [
        "docker",
        "--context",
        "colima",
        "run",
        "--rm",
        "--name",
        "cipherfs-todo10-ui",
        "--cpus",
        "1",
        "--memory",
        "1g",
        "--mount",
        "type=bind,src=/Users/roger/me/cipherfs/cipherfs,dst=/workspace,readonly",
        "--mount",
        "type=volume,src=cipherfs-verify-target,dst=/target",
        "--env",
        "CARGO_TARGET_DIR=/target",
        "rust@sha256:5d05167b28cef0fa3a6c781cd77949386848191f3382e82cf53bd1277a47a98f",
        "sh",
        "/workspace/tools/build-ui-in-container.sh"
      ],
      "exit_code": 0
    },
    {
      "artifact_path": "coordinator-conflicts-api.json",
      "command_argv": [
        "cargo",
        "test",
        "--locked",
        "-p",
        "cipherfs-web",
        "--all-features",
        "--test",
        "conflicts_api_test"
      ],
      "exit_code": 0
    },
    {
      "artifact_path": "coordinator-fmt.json",
      "command_argv": [
        "cargo",
        "fmt",
        "--check"
      ],
      "exit_code": 0
    },
    {
      "artifact_path": "coordinator-diff-check.json",
      "command_argv": [
        "git",
        "diff",
        "--check"
      ],
      "exit_code": 0
    }
  ],
  "test_counts": {
    "baseline-web.log": {
      "cargo_targets": [
        {
          "passed_count": 1,
          "failed_count": 3,
          "ignored_count": 0
        }
      ],
      "node_test_counts": [],
      "node_passed_counts": [],
      "node_failed_counts": []
    },
    "baseline-ui.log": {
      "cargo_targets": [],
      "node_test_counts": [
        6
      ],
      "node_passed_counts": [
        1
      ],
      "node_failed_counts": [
        5
      ]
    },
    "baseline-final-web.log": {
      "cargo_targets": [
        {
          "passed_count": 1,
          "failed_count": 4,
          "ignored_count": 0
        }
      ],
      "node_test_counts": [],
      "node_passed_counts": [],
      "node_failed_counts": []
    },
    "baseline-final3-ui.log": {
      "cargo_targets": [],
      "node_test_counts": [
        9
      ],
      "node_passed_counts": [
        2
      ],
      "node_failed_counts": [
        7
      ]
    },
    "fixed-web-first.log": {
      "cargo_targets": [
        {
          "passed_count": 3,
          "failed_count": 1,
          "ignored_count": 0
        }
      ],
      "node_test_counts": [],
      "node_passed_counts": [],
      "node_failed_counts": []
    },
    "fixed-web-second.log": {
      "cargo_targets": [
        {
          "passed_count": 4,
          "failed_count": 1,
          "ignored_count": 0
        }
      ],
      "node_test_counts": [],
      "node_passed_counts": [],
      "node_failed_counts": []
    },
    "ui-dependencies.log": {
      "cargo_targets": [],
      "node_test_counts": [
        1
      ],
      "node_passed_counts": [
        0
      ],
      "node_failed_counts": [
        1
      ]
    },
    "final-core.log": {
      "cargo_targets": [
        {
          "passed_count": 16,
          "failed_count": 0,
          "ignored_count": 0
        }
      ],
      "node_test_counts": [],
      "node_passed_counts": [],
      "node_failed_counts": []
    },
    "fixed-web-final.log": {
      "cargo_targets": [
        {
          "passed_count": 5,
          "failed_count": 0,
          "ignored_count": 0
        }
      ],
      "node_test_counts": [],
      "node_passed_counts": [],
      "node_failed_counts": []
    },
    "final-download-unit.log": {
      "cargo_targets": [
        {
          "passed_count": 7,
          "failed_count": 0,
          "ignored_count": 0
        }
      ],
      "node_test_counts": [],
      "node_passed_counts": [],
      "node_failed_counts": []
    },
    "final-file-api.log": {
      "cargo_targets": [
        {
          "passed_count": 18,
          "failed_count": 0,
          "ignored_count": 0
        }
      ],
      "node_test_counts": [],
      "node_passed_counts": [],
      "node_failed_counts": []
    },
    "final-clippy.log": {
      "cargo_targets": [],
      "node_test_counts": [],
      "node_passed_counts": [],
      "node_failed_counts": []
    },
    "final-fmt.log": {
      "cargo_targets": [],
      "node_test_counts": [],
      "node_passed_counts": [],
      "node_failed_counts": []
    },
    "final-diff.log": {
      "cargo_targets": [],
      "node_test_counts": [],
      "node_passed_counts": [],
      "node_failed_counts": []
    },
    "final2-ui.log": {
      "cargo_targets": [],
      "node_test_counts": [
        15,
        9
      ],
      "node_passed_counts": [
        15,
        9
      ],
      "node_failed_counts": [
        0,
        0
      ]
    },
    "coordinator-conflicts-api.log": {
      "cargo_targets": [
        {
          "passed_count": 5,
          "failed_count": 0,
          "ignored_count": 0
        }
      ],
      "node_test_counts": [],
      "node_passed_counts": [],
      "node_failed_counts": []
    },
    "coordinator-fmt.log": {
      "cargo_targets": [],
      "node_test_counts": [],
      "node_passed_counts": [],
      "node_failed_counts": []
    },
    "coordinator-diff-check.log": {
      "cargo_targets": [],
      "node_test_counts": [],
      "node_passed_counts": [],
      "node_failed_counts": []
    }
  },
  "file_sha256": {
    "handoff.json": "77b9224be375a98b0ede4d38716304810807db84125044cd1d09b9ccea78252a",
    "final-source-hashes.json": "3f5d096ffa13ea4774365e2e1077deb41a5ad5a6874d43a4883ef643918a8cfb",
    "verification-input-matching.json": "d31aec2b18842745ecf9d8ee2af5461d538506f7e1db37e5d29e45480d2f8797",
    "final-change.patch": "341cf6c7e63dc5c4261e4ab8b05a555dbf2fffad1bf4af3cff2a7a49052cf8ac",
    "baseline-production-hashes.json": "ed196ffabdb30f506d74b85877d6277ef022899cb3f9eb658c568207205ddb0e",
    "baseline-test-only.patch": "e27d4be09d2361ef61c241960beadbd799224b1a8f07c90c2c22d17bacc74a36",
    "baseline-conflicts-entry.ts": "ce7bf46e146fe6aedabb04a28ff3daef829f146c5bc838ed31ef916c089b6304",
    "baseline-conflicts-panel.test.mjs": "308ff51e410443b9dc239af948e461b4d35185f053bfa9992e70dac3f85406b6",
    "baseline-ui-fixture-hashes.json": "6407dedbc8e5fa01efb59b7c8c6b225bd88f8c4e10c789e972d8566a0a15bf21",
    "baseline-web.json": "47beddfc40048d4bb19ddd24ec9fa47e28f70b8bc250acceac47b4f85b4c88e7",
    "baseline-web.log": "2aa2bd88c1014d5798549faa3688b816c75e76f9b6a342bfc4b9e39122eaa435",
    "baseline-ui.json": "170bdb01da7e07fda9d1e8c9f661b33765bb2c0b663d52a2c29d39eea5689798",
    "baseline-ui.log": "d8fae1ae304a16a89b0913e613e2f9df54f47d504693bc12f463b3ffec5549bc",
    "final-baseline-production-hashes.json": "ed196ffabdb30f506d74b85877d6277ef022899cb3f9eb658c568207205ddb0e",
    "final-baseline-fixture-hashes.json": "158acd5cc32bb2223fd038f16540aa6b306e83cee4fd3b4c7e35e7618d8a2310",
    "final-baseline-fixture.patch": "185cba74d277bcf9bfd2e92c1aec86d1dad97d18a71fe5617f1716b98df97402",
    "baseline-final-web.json": "a3c4ce737afeb2b61f880a740757d56a70efdad4a68ac1f5f770cecb821b205e",
    "baseline-final-web.log": "a06505aa62fd54156acf5e9b0ac4544cee06dcf0bf013ecc1e6affb9317e79d9",
    "baseline-final3-ui.json": "0a1dc0b98260a900c493ce31b9655e78f6961d2269b9c4be26960cac6668bcac",
    "baseline-final3-ui.log": "5e1c423025eb9d7e02110f707c45ce17eb766bdb6c920609f5f49934c66d77d5",
    "baseline-target-sanitization.json": "fe3815884416de990fc1309bc27e6edd51f20b946c729de49117447aa641f8bf",
    "coordinator-baseline-check.json": "add4f3d965e10b872e773febe06dd0c3d4120d83624b49615e6d5f98a12e3d10",
    "coordinator-final-baseline-check.json": "dbe002387a6dd002a542ba41eb5c1a079cc002ed3822a4246b4580d5a40011fc",
    "fixed-web-first.json": "6f3e6aa8607fbd00d1433e4e50c65738604a2da135de4c5aedc1092cca71f096",
    "fixed-web-first.log": "81f4377ad7d92f4dc7475bbaf8883ed675fe0b9a1ae13ca69ce648e51d0ae4e9",
    "fixed-web-second.json": "45d07c267aaadceb67bca6286b0cbaefe85841e361f9fb524f2c72e4d56a2827",
    "fixed-web-second.log": "1ac4cbf97783d260b20a53f61a7a843f589984bddf318f65880645e23cb9235c",
    "ui-dependencies.json": "6b5b24e7ce4fa7b0f71584873622b99d383227c96354e5c833ad8bc4903e660b",
    "ui-dependencies.log": "88e0795b6e6a5408fa36be47fc5a591b0caf525b2ddaa617339dfd1f0b0e13b1",
    "final-core.json": "b8c21ae738461264fde04ee525bf3d31e864b93b879f1da2e6f579f4233e999b",
    "final-core.log": "8eef78e4d8c82544e8ef030a47e1de67877811aba55ede4792ab7c18ff3422d8",
    "fixed-web-final.json": "08988bef4f2c1def69f16aebf90cc49ef0fa19db7d137f582f7e86101c94c99a",
    "fixed-web-final.log": "bc699d408d512bc95783de1dce018a807f4374cff8faac9509651b9a6f46793c",
    "final-download-unit.json": "45dbacc42d9efb85589c8ce09bc1c33519614ca4b1afc2d979031db2194e732b",
    "final-download-unit.log": "4ced04d1e5a40063ad6cb776f74a3c1c8c175f639da35f35e4df5e48e93ffd6a",
    "final-file-api.json": "218ad3e26d23d6eef4935ed1bd6c8fc871c1f7ba111b4b2fb15dc920253fd04b",
    "final-file-api.log": "c2490955c5d555be04c782c5b1d1e677874782d735c843ec9b868cb09c65626b",
    "final-clippy.json": "b89b15bc6c8128f63856d429f84c80448372ae72d9006bae6b294aa2d60bb476",
    "final-clippy.log": "7bf63a1651f8f76460e576f69573b19eb298d65654def519590d4b79e59ccbf0",
    "final-fmt.json": "9f2a56ddbad003d6d106f3bb1e43b34efca22c564586e2eee1db4c61b343b298",
    "final-fmt.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "final-diff.json": "5c3c36afdc447a2bb69fc96ce6824fb3acf928ae11cafb4690a608de75613699",
    "final-diff.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "final2-ui.json": "ac3a5a136271cda48fd724d422126b87000cf9ab015643a381e7ac80a9c18268",
    "final2-ui.log": "843c573561afef073b25152773dd0887739362eb1d75617a4ae4e32470123186",
    "coordinator-conflicts-api.json": "f62927921e2714a3fd367234177e71d3492b316c3acc491495908f7e1650e3c7",
    "coordinator-conflicts-api.log": "c19a758c5ab5b01fa97dc30846c3404aba8851382aba99b4598ea959a8b5e48f",
    "coordinator-fmt.json": "f0c93531efedf8646d2fa7aef28371f729934ede850ea01e661fa984bd735532",
    "coordinator-fmt.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "coordinator-diff-check.json": "217b9db0b1466383aa1d552543247f28813ca51dea16b0b34a789e97576fb7c1",
    "coordinator-diff-check.log": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
  },
  "counting_rule": "Cargo counts executions across accepted targets; Node totals are the runner totals, including existing nested test groups. Coordinator repeats are reported separately. Baseline failures and superseded runs do not count as acceptance.",
  "notes": "Core conflicts16, Web conflict API5, download unit7, file API18; client15 and actual React DOM9 in the container. Existing client tests and deletion keep behavior remain. Coordinator repeats the full5-case conflict API target. Jsdom exercises the actual component with mocked APIs, not a physical browser; public cloud/NAT/mount acceptance remains IV."
}
