{
  "schema": "turkos-public-development-evidence/v1",
  "originalReport": {
    "path": "reports/os-implementation/K2375-network-tools-tcp-tool-local-qB7jUe/report.json",
    "sha256": "1cdfd0042065baf91826c79f503420537a9cc6f0553be6493bb6e23fe88904d9",
    "bytes": 20286
  },
  "status": "K2371_K2374_LOCAL_VALIDATED",
  "scope": "# NETWORK TOOLS TCP TOOL CONTRACT (K2371–K2375)\n\n- **Move Range:** `K2371–K2375`\n- **Phase:** `Phase 18 — Daily Use Applications`\n- **Module:** `network_tools.tcp_tool`\n- **Title:** `Küçük TCP akış aracı`\n- **Invariant:** `EOF kısa read write ayrı işlenir`\n- **Positive Case:** `İki segment metin akışı` (`k2375-tcptwoseg`)\n- **Counterexample:** `Peer ortada reset` (`k2375-tcpmidreset`)\n- **Acceptance Criterion:** `Açık ECONNRESET kabuğu bozmaz`\n- **Crate:** `os-network-tools` (`src/tcp_tool.rs`)\n- **Inspection Symbol:** `os_network_tools_tcp_tool`\n\n## 1. Scope and Invariants\n\n1. **Separate EOF and Short Read/Write Handling (`K2371–K2372`):**\n   - The TCP stream tool must distinguish clean EOF from short read and short write states (`conflated_eof_or_short_read_write == false`, `separate_eof_short_rw_states == 3`) and ensure explicit `ECONNRESET` handling never corrupts shell state (`explicit_econnreset_preserves_shell == true`).\n   - Any attempt to conflate EOF with short read/write or allow a peer reset to corrupt shell state is deterministically refused (`NetworkToolsTcpToolError::ConflatedEofOrShortReadWrite`, `NetworkToolsTcpToolError::EconnresetCorruptedShellState`).\n\n2. **Refusal of Mid-Stream Peer Reset (`K2373`):**\n   - Mid-stream peer resets (`mid_stream_peer_reset == true`, `k2375-tcpmidreset`) are rejected with an explicit reset error before any stream completion receipt is committed (`NetworkToolsTcpToolError::MidStreamPeerReset`), keeping `silent_reset_corruptions == 0`.\n\n3. **Two-Segment Text Stream Completion (`K2374–K2375`):**\n   - The positive path (`k2375-tcptwoseg`) commits a 2-segment TCP text stream (`stream_text_segments == 2`) with 3 separate EOF/short-R/W state checks (`separate_eof_short_rw_states == 3`), 2 shell survival checks (`shell_survival_checks == 2`), and 0 silent reset corruptions (`silent_reset_corruptions == 0`), bound by a monotonic `tcp_tool_epoch` and FNV-1a digest (`compute_network_tools_tcp_tool_binding_digest`).\n",
  "productAccepted": false,
  "tests": {
    "greenCount": 4,
    "positiveName": "os_network_tools_tcp_tool_positive",
    "negativeName": "os_network_tools_tcp_tool_negative",
    "mutationsRejected": 21
  },
  "caseCount": 0,
  "caseSerialsSelected": 0,
  "imageSha256": null,
  "files": [
    {
      "name": "Cargo.toml",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-staging-local-qgzvFA/source/os-network-tools/Cargo.toml",
      "originalSha256": "6b6da9b2172f24c98ca7e878a4c86dcf30bbe31d553a22a24b15165c13d175af",
      "href": "/os-evidence/6b6da9b2172f24c98ca7e878a4c86dcf30bbe31d553a22a24b15165c13d175af.txt",
      "sha256": "6b6da9b2172f24c98ca7e878a4c86dcf30bbe31d553a22a24b15165c13d175af",
      "bytes": 154,
      "redacted": false
    },
    {
      "name": "NETWORK_TOOLS_TCP_TOOL_CONTRACT.md",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-staging-local-qgzvFA/source/kernel/NETWORK_TOOLS_TCP_TOOL_CONTRACT.md",
      "originalSha256": "cca9fd41fd9a13f6e225061fe666e1821650b0a02de4646530e77edfdae8c456",
      "href": "/os-evidence/cca9fd41fd9a13f6e225061fe666e1821650b0a02de4646530e77edfdae8c456.txt",
      "sha256": "cca9fd41fd9a13f6e225061fe666e1821650b0a02de4646530e77edfdae8c456",
      "bytes": 2014,
      "redacted": false
    },
    {
      "name": "diagnostic.rs",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-staging-local-qgzvFA/source/os-network-tools/src/diagnostic.rs",
      "originalSha256": "49596d81fa8e99fcd4e69ae0f60eb8b7796391ee492ac5bb939b03cd7d86d996",
      "href": "/os-evidence/49596d81fa8e99fcd4e69ae0f60eb8b7796391ee492ac5bb939b03cd7d86d996.txt",
      "sha256": "49596d81fa8e99fcd4e69ae0f60eb8b7796391ee492ac5bb939b03cd7d86d996",
      "bytes": 8100,
      "redacted": false
    },
    {
      "name": "lib.rs",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-staging-local-qgzvFA/source/os-network-tools/src/lib.rs",
      "originalSha256": "acb2c4a8cba7d2189df83fb5c55c273a49f2450a8f42d0ee89e68038f7fae105",
      "href": "/os-evidence/acb2c4a8cba7d2189df83fb5c55c273a49f2450a8f42d0ee89e68038f7fae105.txt",
      "sha256": "acb2c4a8cba7d2189df83fb5c55c273a49f2450a8f42d0ee89e68038f7fae105",
      "bytes": 82,
      "redacted": false
    },
    {
      "name": "ping.rs",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-staging-local-qgzvFA/source/os-network-tools/src/ping.rs",
      "originalSha256": "75c68f2499f52f472f830bf88ecce1842e18406eda12c2c7795f08b6d7e283a1",
      "href": "/os-evidence/75c68f2499f52f472f830bf88ecce1842e18406eda12c2c7795f08b6d7e283a1.txt",
      "sha256": "75c68f2499f52f472f830bf88ecce1842e18406eda12c2c7795f08b6d7e283a1",
      "bytes": 7271,
      "redacted": false
    },
    {
      "name": "tcp_tool.rs",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-staging-local-qgzvFA/source/os-network-tools/src/tcp_tool.rs",
      "originalSha256": "0c5033688eaf0990dc995883e69fd7068423c78fb1bfd03e2fa2722ea3030e98",
      "href": "/os-evidence/0c5033688eaf0990dc995883e69fd7068423c78fb1bfd03e2fa2722ea3030e98.txt",
      "sha256": "0c5033688eaf0990dc995883e69fd7068423c78fb1bfd03e2fa2722ea3030e98",
      "bytes": 7674,
      "redacted": false
    },
    {
      "name": "udp_tool.rs",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-staging-local-qgzvFA/source/os-network-tools/src/udp_tool.rs",
      "originalSha256": "80ca8195f486fe66242d6eee68cbbfe7e46d1bac8299fae716365f5a836b1d65",
      "href": "/os-evidence/80ca8195f486fe66242d6eee68cbbfe7e46d1bac8299fae716365f5a836b1d65.txt",
      "sha256": "80ca8195f486fe66242d6eee68cbbfe7e46d1bac8299fae716365f5a836b1d65",
      "bytes": 7773,
      "redacted": false
    },
    {
      "name": "diagnostic.rs",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-staging-local-qgzvFA/source/os-network-tools/tests/diagnostic.rs",
      "originalSha256": "f649731f0eb128fb56d819894a20b443d7b726bd3add95398375eaf47a679eaa",
      "href": "/os-evidence/f649731f0eb128fb56d819894a20b443d7b726bd3add95398375eaf47a679eaa.txt",
      "sha256": "f649731f0eb128fb56d819894a20b443d7b726bd3add95398375eaf47a679eaa",
      "bytes": 6731,
      "redacted": false
    },
    {
      "name": "ping.rs",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-staging-local-qgzvFA/source/os-network-tools/tests/ping.rs",
      "originalSha256": "c7f6fd9d896566a33b57eab59e7d29b63001e769020fdf6206f06c8ffd033391",
      "href": "/os-evidence/c7f6fd9d896566a33b57eab59e7d29b63001e769020fdf6206f06c8ffd033391.txt",
      "sha256": "c7f6fd9d896566a33b57eab59e7d29b63001e769020fdf6206f06c8ffd033391",
      "bytes": 5855,
      "redacted": false
    },
    {
      "name": "tcp_tool.rs",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-staging-local-qgzvFA/source/os-network-tools/tests/tcp_tool.rs",
      "originalSha256": "fd2dd97f494f4549195d9cece1f8a9aba6990a1dbfbb2c6f5602182367917c91",
      "href": "/os-evidence/fd2dd97f494f4549195d9cece1f8a9aba6990a1dbfbb2c6f5602182367917c91.txt",
      "sha256": "fd2dd97f494f4549195d9cece1f8a9aba6990a1dbfbb2c6f5602182367917c91",
      "bytes": 6290,
      "redacted": false
    },
    {
      "name": "udp_tool.rs",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-staging-local-qgzvFA/source/os-network-tools/tests/udp_tool.rs",
      "originalSha256": "05b5877b60ab4f0b543d8bff23bb136945b112803a14cf83855d05444b5cde00",
      "href": "/os-evidence/05b5877b60ab4f0b543d8bff23bb136945b112803a14cf83855d05444b5cde00.txt",
      "sha256": "05b5877b60ab4f0b543d8bff23bb136945b112803a14cf83855d05444b5cde00",
      "bytes": 6307,
      "redacted": false
    },
    {
      "name": "host-tests.log",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-staging-local-qgzvFA/host-tests.log",
      "originalSha256": "1d609a604f968477e3898ec4cea51f6e263be9afe1421cd969504d8e753e9c87",
      "href": "/os-evidence/e64f4e5ee7f7458e56d85108661dbe42b291b9bc25d916fa10215ed436de7722.txt",
      "sha256": "e64f4e5ee7f7458e56d85108661dbe42b291b9bc25d916fa10215ed436de7722",
      "bytes": 752,
      "redacted": true
    },
    {
      "name": "positive.log",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-staging-local-qgzvFA/positive.log",
      "originalSha256": "837897c74bd19d0d5755696b293b23efda18cc7ce09c92274c7a45d1badc15ad",
      "href": "/os-evidence/837897c74bd19d0d5755696b293b23efda18cc7ce09c92274c7a45d1badc15ad.txt",
      "sha256": "837897c74bd19d0d5755696b293b23efda18cc7ce09c92274c7a45d1badc15ad",
      "bytes": 431,
      "redacted": false
    },
    {
      "name": "negative.log",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-staging-local-qgzvFA/negative.log",
      "originalSha256": "2b838b08f129ad344ced4b419729157db6ae930022d60bcb58a46d7bd5bccaf9",
      "href": "/os-evidence/2b838b08f129ad344ced4b419729157db6ae930022d60bcb58a46d7bd5bccaf9.txt",
      "sha256": "2b838b08f129ad344ced4b419729157db6ae930022d60bcb58a46d7bd5bccaf9",
      "bytes": 431,
      "redacted": false
    },
    {
      "name": "target.log",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-staging-local-qgzvFA/target.log",
      "originalSha256": "472e7a563a609842ecabf11aa11eadeaef116f5525e93d7ccc5e339da0653759",
      "href": "/os-evidence/8217b0536be29e1321693107eb73d99c27adf922951d06a73d91f17eb8b88128.txt",
      "sha256": "8217b0536be29e1321693107eb73d99c27adf922951d06a73d91f17eb8b88128",
      "bytes": 228,
      "redacted": true
    },
    {
      "name": "harness.mjs.txt",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-local-qB7jUe/harness.mjs.txt",
      "originalSha256": "afc913f79c414c44a72e26a3a004d9f03d04045996a9bd2887ce7c9410385284",
      "href": "/os-evidence/afc913f79c414c44a72e26a3a004d9f03d04045996a9bd2887ce7c9410385284.txt",
      "sha256": "afc913f79c414c44a72e26a3a004d9f03d04045996a9bd2887ce7c9410385284",
      "bytes": 4604,
      "redacted": false
    },
    {
      "name": "k2375-network-tools-tcp-tool.rs",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-candidate-XT6bJL/sources/kernel/src/k2375-network-tools-tcp-tool.rs",
      "originalSha256": "9ea3c9ee5067aef8446c293c130c3aa07af27e998a0003070907fbd994c05dca",
      "href": "/os-evidence/9ea3c9ee5067aef8446c293c130c3aa07af27e998a0003070907fbd994c05dca.txt",
      "sha256": "9ea3c9ee5067aef8446c293c130c3aa07af27e998a0003070907fbd994c05dca",
      "bytes": 13197,
      "redacted": false
    },
    {
      "name": "network_tools_tcp_tool.rs",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-candidate-XT6bJL/sources/kernel/src/runtime/network_tools_tcp_tool.rs",
      "originalSha256": "0c5033688eaf0990dc995883e69fd7068423c78fb1bfd03e2fa2722ea3030e98",
      "href": "/os-evidence/0c5033688eaf0990dc995883e69fd7068423c78fb1bfd03e2fa2722ea3030e98.txt",
      "sha256": "0c5033688eaf0990dc995883e69fd7068423c78fb1bfd03e2fa2722ea3030e98",
      "bytes": 7674,
      "redacted": false
    },
    {
      "name": "main.rs",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-candidate-XT6bJL/sources/kernel/src/main.rs",
      "originalSha256": "394bdc36a0118a2886beadca9de9ff03d2552d1b002c80e41668a0857a98c351",
      "href": "/os-evidence/79a8220e814d8ed35e46a73c57da830b82edf6e12c65362c8db45636804d1959.txt",
      "sha256": "79a8220e814d8ed35e46a73c57da830b82edf6e12c65362c8db45636804d1959",
      "bytes": 2315545,
      "redacted": true
    },
    {
      "name": "mod.rs",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-candidate-XT6bJL/sources/kernel/src/runtime/mod.rs",
      "originalSha256": "1c7fed40535c04f1503dd71b708f28fcae75efd7497971085efca4160099f843",
      "href": "/os-evidence/1c7fed40535c04f1503dd71b708f28fcae75efd7497971085efca4160099f843.txt",
      "sha256": "1c7fed40535c04f1503dd71b708f28fcae75efd7497971085efca4160099f843",
      "bytes": 5577,
      "redacted": false
    },
    {
      "name": "kernel-product.log",
      "source": "reports/os-implementation/K2375-network-tools-tcp-tool-candidate-XT6bJL/kernel-product.log",
      "originalSha256": "d732396983be2097f5cd706667f7484428db88a13d2b35b5794c22db595472da",
      "href": "/os-evidence/095a4f059e363e954d264090614ba7c8ff37a872e112e250285a9262c577e8d6.txt",
      "sha256": "095a4f059e363e954d264090614ba7c8ff37a872e112e250285a9262c577e8d6",
      "bytes": 2343,
      "redacted": true
    }
  ],
  "moves": [
    "K2371",
    "K2372",
    "K2373",
    "K2374"
  ]
}
