{
  "edition": "2026-10-17-r4",
  "scope": "Portable single-owner loopback teaching source; this is not a production security audit or remote deployment",
  "actualRuntime": {
    "os": "macOS",
    "architecture": "arm64",
    "python": "3.9.6",
    "codexCli": "0.154.0",
    "schemaContract": "Historical macOS PASS; five fingerprints matched before r4; not rerun for these HTTP-only changes"
  },
  "checks": {
    "httpFaultTests": [
      {
        "name": "A_auth",
        "status": "PASS",
        "category": "HTTP protocol"
      },
      {
        "name": "B_idempotency_busy",
        "status": "PASS",
        "category": "HTTP protocol"
      },
      {
        "name": "C_atomic_claim",
        "status": "PASS",
        "category": "HTTP protocol"
      },
      {
        "name": "D_before_intent",
        "status": "PASS",
        "category": "fake fault injection"
      },
      {
        "name": "D_after_intent",
        "status": "PASS",
        "category": "fake fault injection"
      },
      {
        "name": "D_lost_ack",
        "status": "PASS",
        "category": "fake fault injection"
      },
      {
        "name": "E_restart_receipt",
        "status": "PASS",
        "category": "HTTP protocol"
      },
      {
        "name": "F_saved_final_redelivery",
        "status": "PASS",
        "category": "fake fault injection"
      },
      {
        "name": "G_independent_heartbeat_offline",
        "status": "PASS",
        "category": "fake fault injection"
      }
    ],
    "unitTests": {
      "run": 21,
      "passed": 21,
      "failures": [],
      "newR4RegressionTests": 7
    },
    "entrypoint": {
      "platform": "macOS",
      "start": "PASS",
      "leadingDashInstanceToken": "PASS",
      "status": "PASS",
      "wrongInstanceRejected": 409,
      "authenticatedStop": "PASS",
      "noPidKill": true,
      "realModelCalls": 0,
      "firstAttemptIssue": "argparse treated a leading-dash random token as an option; fixed with --instance-id=value",
      "basis": "Historical portability regression; r4 shutdown error cases covered by new local unit regressions"
    },
    "allSubprocessCallsExplicitShellFalse": true,
    "protectedPreviousRealStateHashCheck": "Historical PASS; r4 did not read or modify prior real-control state or consumed marker",
    "r4LocalRegressions": [
      {
        "name": "redirects blocked for 301/302/303/307/308",
        "status": "PASS",
        "evidence": "second local origin received zero requests"
      },
      {
        "name": "ambient proxy ignored",
        "status": "PASS",
        "evidence": "synthetic local proxy received zero requests"
      },
      {
        "name": "machine authentication before body",
        "status": "PASS",
        "evidence": "401 received with declared body never sent"
      },
      {
        "name": "body cap and idle timeout",
        "status": "PASS",
        "evidence": "oversize request 413; incomplete login body 408"
      },
      {
        "name": "connection cap and absolute deadline",
        "status": "PASS",
        "evidence": "excess connection closed; slow header drip released slots; subsequent request succeeded"
      },
      {
        "name": "ambiguous shutdown retains receipt",
        "status": "PASS",
        "evidence": "timeout, wrapped timeout, reset, unrelated URL error and identity mismatch preserve bytes"
      },
      {
        "name": "explicit connection refusal confirms listener closed",
        "status": "PASS",
        "evidence": "native and wrapped refusal; Windows winerror 10061 case simulated only"
      }
    ],
    "targetedHttpRecheck": "PASS: redirect/proxy cases repeated after explicit HTTPError response cleanup"
  },
  "windows": {
    "status": "NOT_RUNTIME_VERIFIED",
    "simulatedBranches": [
      "native vs WSL executable policy",
      "msvcrt lock dispatch",
      "Win32 ACL dispatch",
      "MoveFileExW flags",
      "Windows process creation flags"
    ],
    "notVerified": [
      "Win32 ACL ABI and effective permissions",
      "native process lifecycle/crash tree",
      "native filesystem durability",
      "native installed Codex transport",
      "native UI"
    ]
  },
  "wslRuntime": {
    "status": "NOT_RUNTIME_VERIFIED",
    "crossEnvironmentMixing": "rejected"
  },
  "newRealModelCalls": 0,
  "priorRealE2E": "Historical macOS PASS before portability changes; not re-run on r4",
  "browserQA": "Not re-run; UI files unchanged by portability work",
  "remoteDeployment": "NOT_RUN",
  "powerLossTest": "NOT_RUN",
  "osIsolationAcceptance": false,
  "firstAttemptIssues": [
    {
      "issue": "A random instance token beginning with a dash was parsed as an option.",
      "fix": "Pass --instance-id=value as a single argv element.",
      "regression": "Forced leading-dash token start/status/stop passed."
    },
    {
      "edition": "r4",
      "issue": "Python 3.9 socket.timeout is separate from TimeoutError; first new regression received connection close instead of HTTP 408.",
      "fix": "Handle both timeout classes in gateway.",
      "regression": "All 21 unit/protocol tests and all 9 HTTP/fault checks passed after correction."
    }
  ],
  "maintenance": {
    "implemented": "Fail-closed version/schema gate; kernel state locks; no replay of unknown intent",
    "notImplemented": "Automated bounded repair/activation/rollback manager, services and remote deployment",
    "authorization": "No self-updating contract, credentials, account, auth or security policy"
  },
  "processes": "All task-owned local verification processes stopped; no production process started or inspected",
  "publicData": "This report contains no local user paths, real thread/turn/job IDs, credentials, private state or logs",
  "linuxRuntime": {
    "status": "NOT_RUNTIME_VERIFIED",
    "notes": "POSIX implementation candidate only; no native Linux or native Remote runtime acceptance"
  },
  "r4HttpLimits": {
    "explicitOrigin": "127.0.0.1 HTTP only",
    "ambientProxy": false,
    "redirects": false,
    "maxJsonBodyBytes": 32768,
    "maxConcurrentConnections": 16,
    "socketIdleSeconds": 2,
    "absoluteSocketDeadlineSeconds": 5,
    "excessConnections": "closed",
    "authBeforeBody": true
  }
}
