{
  "task": "M1-03D",
  "generatedBy": "pnpm zone:loadcheck (cargo run --release -p zoen-zone --bin loadcheck)",
  "what": "200 headless WebSocket clients on loopback against the in-process zone server for 10 s: random walk (new heading every 0.5-2 s), one input per tick, an ack per snapshot, a ping per second; then a 1000 close each",
  "machine": {"os": "macos", "arch": "aarch64", "availableParallelism": 8, "loadAverageBefore": "89.96 104.56 75.38", "loadAverageAfter": "85.95 103.21 75.24", "note": "clients, server tick and connection threads share this machine"},
  "thresholds": {"loopP99Ms": 15.000, "loopP99Source": "netcode.json tick.targetP99Ms", "downstreamMaxBps": 32000, "downstreamSource": "netcode.json snapshot.hardCapKBps (KB = 1,000 B)", "skippedMaxPercent": 1},
  "clients": {"requested": 200, "joined": 200, "cleanCloses": 200, "serverCloses": 0, "errors": 0, "activeSecondsMean": 10.034, "runSeconds": 10.064},
  "loop": {"what": "server loop iteration: ingest + tick + all snapshots + hand-off (10 us histogram)", "seconds": 11.169, "ticks": 224, "p50Ms": 13.640, "p99Ms": 84.720, "maxMs": 127.896, "meanMs": 18.753, "tickThreadCpuMsPerTick": 6.433, "cpuShareOfLoopWall": 0.343, "overTarget": 88, "overBudget": 11, "catchUpTicks": 4, "droppedTicks": 0, "stalls": 0, "maxLatenessMs": 90.409},
  "frames": {"sent": 44659, "skipped": 0, "snapshotErrors": 0, "clientSnapshots": 42463, "clientFullSnapshots": 2283, "clientMissedTicks": 0, "serverMaxSnapshotPayloadBytes": 1448},
  "downstreamBpsPerClient": {"mean": 12796.5, "p50": 12809.3, "p95": 13758.7, "p99": 13797.0, "max": 13867.5, "samples": 200},
  "downstreamServerCount": {"meanBps": 12089.9, "maxBps": 12737.7, "note": "server-side bytes handed to each writer, join to leave"},
  "upstreamBpsPerClient": {"mean": 520.8, "p50": 520.8, "p95": 540.4, "p99": 543.0, "max": 544.4, "samples": 200},
  "upstreamTarget": {"bps": 300, "source": "netcode.json snapshot.upstreamTargetKBps (NETCODE_1000.md: 20 inputs/s x ~14 B)", "within": false, "note": "recorded, not a check: the target counts inputs only; acks (one per snapshot) and pings are separate messages"},
  "snapshotFrameBytes": {"mean": 604.2, "p50": 583.0, "p95": 777.0, "p99": 1452.0, "max": 1452.0, "samples": 42463},
  "rttMs": {"mean": 38.150, "p50": 41.555, "p95": 51.085, "p99": 62.450, "max": 117.556, "samples": 1996},
  "rttNote": "application RTT on loopback: the tick answers pings, and each client sends right after a snapshot arrives, so about one tick period (50 ms) is server queueing, not network",
  "messagesPerClientPerSecond": {"snapshots": 21.16, "inputs": 18.42, "acks": 21.16, "pings": 0.99, "pongs": 0.99},
  "inputs": {"applied": 36967, "stale": 0, "dropped": 0},
  "server": {"accepted": 200, "joins": 200, "leaves": 200, "peakClients": 200, "refusedHandshakes": 0, "versionMismatches": 0, "full": 0, "idleTimeouts": 0, "badMessages": 0, "threadsLeft": 0},
  "errors": [],
  "checks": {"allJoined": true, "allClosedCleanly": true, "noClientErrors": true, "serverSawEveryLeave": true, "noStaleOrDroppedInputs": true, "framesSkippedUnder1Percent": true, "ticksDroppedUnder1Percent": true, "loopP99WithinTarget": false, "downstreamWithinHardCap": true, "noSnapshotErrors": true, "noThreadsLeft": true},
  "pass": false
}
