{
  "source": {
    "project": "p2pgame",
    "file": "research/results/reactor-microbatch.json",
    "sha256": "9fd512fb7919491377a3c9fa23c6dd6e34dd4bfc67013f6f30694cd7a4f5c8ad"
  },
  "recordedUtc": "2026-11-01T16:53:58.912749+00:00",
  "parentCheckpoint": "f62c8e751975ac328399d6399b7d0ef4235456dd",
  "scope": "Actual Rust Reactor/Router over four peers and two established relay paths with declared virtual link delay and warm authenticated bindings. Scheduling/bandwidth comparison; not IC, WebRTC, WAN or browser-timer latency, and not a Rust refinement proof.",
  "change": "Fixed 3 ms ordinary-work deadline per peer, armed on first observation; immutable packet snapshots only at flush. Control and full byte/item batches bypass that delay while existing eligibility, backoff, Router credit and exact retained ownership remain enforced.",
  "assumptions": [
    "Thirty simulated seconds per case after a 2 s warmup, with up to 5 s drain; eight-byte notifications at one offer every 16 ms for 80/200 ms RTT, or a three-offer burst at offsets 0/1/2 ms every 16 ms for 20 ms RTT. All offered IDs are applied exactly once.",
    "Router window 4, unchanged byte/callback limits, and the same 500 ms retry base in both builds. This isolates batching from default 120 ms retry/hedge behavior.",
    "The driver polls each virtual millisecond. The 3 ms policy bounds intentional waiting after observation; real host timer delays, unavailable scheduler/Router credit and backoff can add delay.",
    "Frame/byte/probe counts include warmup and drain. No SCTP/DTLS/UDP overhead, packet loss, bandwidth bottleneck or production IC signaling is modeled.",
    "Control, Router receipts, discovery and repair keep their own immediate eligibility; batching does not create another end-to-end retry owner.",
    "Finite retained-window progress still depends on eventual exact receipt/service. Application journal retention after ACK and bounding unending local producers remain upper-layer responsibilities.",
    "This FDK component is not yet the current arena transport; no gameplay deployment or production migration is claimed."
  ],
  "cases": [
    {
      "rttMs": 80,
      "burstMessages": 1,
      "baseline": {
        "offered": 1875,
        "admitted": 1875,
        "effects": 1875,
        "rejected": 0,
        "duplicates": 0,
        "enqueueToWireMs": {
          "count": 1875,
          "p50": 11,
          "p95": 29,
          "p99": 33,
          "max": 33
        },
        "enqueueToEffectMs": {
          "count": 1875,
          "p50": 51,
          "p95": 69,
          "p99": 73,
          "max": 73
        },
        "peakParts": 4,
        "peakExchanges": 1,
        "peakOutgoingFrames": 8,
        "peakPendingBytes": 8470,
        "peakQueuedBytes": 0,
        "sourceFlows": 1,
        "preparedExchanges": 1,
        "routingOperations": 1482,
        "wireBytes": 1162206,
        "dataFrames": 2964,
        "openFrames": 4,
        "findFrames": 36,
        "probeRequests": 14,
        "lookups": 4,
        "wallMs": 244.332825
      },
      "candidate": {
        "offered": 1875,
        "admitted": 1875,
        "effects": 1875,
        "rejected": 0,
        "duplicates": 0,
        "enqueueToWireMs": {
          "count": 1875,
          "p50": 11,
          "p95": 21,
          "p99": 24,
          "max": 33
        },
        "enqueueToEffectMs": {
          "count": 1875,
          "p50": 51,
          "p95": 61,
          "p99": 64,
          "max": 73
        },
        "peakParts": 4,
        "peakExchanges": 1,
        "peakOutgoingFrames": 8,
        "peakPendingBytes": 8470,
        "peakQueuedBytes": 0,
        "sourceFlows": 1,
        "preparedExchanges": 1,
        "routingOperations": 1482,
        "wireBytes": 1162206,
        "dataFrames": 2964,
        "openFrames": 4,
        "findFrames": 36,
        "probeRequests": 14,
        "lookups": 4,
        "wallMs": 301.683774
      },
      "delta": {
        "routingOperationsPercent": 0.0,
        "wireBytesPercent": 0.0,
        "dataFramesPercent": 0.0,
        "peakPendingBytesPercent": 0.0,
        "enqueueToWireP50Ms": 0,
        "enqueueToWireP99Ms": -9,
        "enqueueToEffectP50Ms": 0,
        "enqueueToEffectP99Ms": -9
      }
    },
    {
      "rttMs": 200,
      "burstMessages": 1,
      "baseline": {
        "offered": 1875,
        "admitted": 1875,
        "effects": 1875,
        "rejected": 0,
        "duplicates": 0,
        "enqueueToWireMs": {
          "count": 1875,
          "p50": 55,
          "p95": 143,
          "p99": 151,
          "max": 153
        },
        "enqueueToEffectMs": {
          "count": 1875,
          "p50": 155,
          "p95": 243,
          "p99": 251,
          "max": 253
        },
        "peakParts": 4,
        "peakExchanges": 1,
        "peakOutgoingFrames": 23,
        "peakPendingBytes": 8687,
        "peakQueuedBytes": 0,
        "sourceFlows": 1,
        "preparedExchanges": 1,
        "routingOperations": 600,
        "wireBytes": 599608,
        "dataFrames": 1200,
        "openFrames": 4,
        "findFrames": 36,
        "probeRequests": 14,
        "lookups": 6,
        "wallMs": 232.147872
      },
      "candidate": {
        "offered": 1875,
        "admitted": 1875,
        "effects": 1875,
        "rejected": 0,
        "duplicates": 0,
        "enqueueToWireMs": {
          "count": 1875,
          "p50": 49,
          "p95": 138,
          "p99": 146,
          "max": 152
        },
        "enqueueToEffectMs": {
          "count": 1875,
          "p50": 149,
          "p95": 238,
          "p99": 246,
          "max": 252
        },
        "peakParts": 4,
        "peakExchanges": 1,
        "peakOutgoingFrames": 22,
        "peakPendingBytes": 8687,
        "peakQueuedBytes": 0,
        "sourceFlows": 1,
        "preparedExchanges": 1,
        "routingOperations": 599,
        "wireBytes": 598970,
        "dataFrames": 1198,
        "openFrames": 4,
        "findFrames": 36,
        "probeRequests": 14,
        "lookups": 6,
        "wallMs": 297.09579
      },
      "delta": {
        "routingOperationsPercent": -0.167,
        "wireBytesPercent": -0.106,
        "dataFramesPercent": -0.167,
        "peakPendingBytesPercent": 0.0,
        "enqueueToWireP50Ms": -6,
        "enqueueToWireP99Ms": -5,
        "enqueueToEffectP50Ms": -6,
        "enqueueToEffectP99Ms": -5
      }
    },
    {
      "rttMs": 20,
      "burstMessages": 3,
      "baseline": {
        "offered": 5625,
        "admitted": 5625,
        "effects": 5625,
        "rejected": 0,
        "duplicates": 0,
        "enqueueToWireMs": {
          "count": 5625,
          "p50": 1,
          "p95": 5,
          "p99": 5,
          "max": 5
        },
        "enqueueToEffectMs": {
          "count": 5625,
          "p50": 11,
          "p95": 15,
          "p99": 15,
          "max": 15
        },
        "peakParts": 4,
        "peakExchanges": 1,
        "peakOutgoingFrames": 6,
        "peakPendingBytes": 8439,
        "peakQueuedBytes": 0,
        "sourceFlows": 1,
        "preparedExchanges": 1,
        "routingOperations": 4688,
        "wireBytes": 3440124,
        "dataFrames": 9376,
        "openFrames": 4,
        "findFrames": 36,
        "probeRequests": 14,
        "lookups": 4,
        "wallMs": 372.260789
      },
      "candidate": {
        "offered": 5625,
        "admitted": 5625,
        "effects": 5625,
        "rejected": 0,
        "duplicates": 0,
        "enqueueToWireMs": {
          "count": 5625,
          "p50": 3,
          "p95": 4,
          "p99": 4,
          "max": 4
        },
        "enqueueToEffectMs": {
          "count": 5625,
          "p50": 13,
          "p95": 14,
          "p99": 14,
          "max": 14
        },
        "peakParts": 2,
        "peakExchanges": 1,
        "peakOutgoingFrames": 6,
        "peakPendingBytes": 4328,
        "peakQueuedBytes": 0,
        "sourceFlows": 1,
        "preparedExchanges": 1,
        "routingOperations": 1875,
        "wireBytes": 1645558,
        "dataFrames": 3750,
        "openFrames": 4,
        "findFrames": 36,
        "probeRequests": 14,
        "lookups": 4,
        "wallMs": 307.611878
      },
      "delta": {
        "routingOperationsPercent": -60.004,
        "wireBytesPercent": -52.166,
        "dataFramesPercent": -60.004,
        "peakPendingBytesPercent": -48.714,
        "enqueueToWireP50Ms": 2,
        "enqueueToWireP99Ms": -1,
        "enqueueToEffectP50Ms": 2,
        "enqueueToEffectP99Ms": -1
      }
    }
  ]
}
