Interactive Studio · 5 Steps
Part 1 of 5
Why did the call freeze?
Edit the experiment
Prediction history
Three Ways In · Layer 3 of 3 · Node.js 22+ · Zero Dependencies
Build With Your Coding Agent — 5 Rungs + Planted Traps
Build a bottleneck simulator and BBR-style congestion controller with your coding agent across five rungs: queue-delay wire tracing, app-limited delivery-rate estimation, ProbeBW gain cycling (`1.25x` / `0.75x` / `1.0x`), smooth inter-packet pacing, and periodic `ProbeRTT` min-RTT refresh. Each rung gives you an architect prompt for Claude Code, Codex, or Cursor, a planted bug that unguided agents write, and a deterministic test suite that catches it.
- Bottleneck queue clock: Packet arrival, service-start, serialization, and standing-queue latency trace — Planted trap: Starting wire transmission at arrival time even when an earlier packet is still occupying the link.
- App-limited delivery rate: Windowed max-bandwidth filter censoring idle/application-starved samples — Planted trap: Letting a quiet pause between user keystrokes overwrite the bottleneck bandwidth estimate downward.
- ProbeBW drain phase: 8-phase gain cycle following every
1.25xprobe with a0.75xqueue-drain round — Planted trap: Cruising at1.0ximmediately after probing1.25x, leaving standing queue delay behind. - Smooth packet pacer: Per-packet departure scheduling spacing sends evenly across the round trip — Planted trap: Dumping the entire
cwnd - inflightallowance in one zero-millisecond microburst. - ProbeRTT coexistence: Expiring 10-second
minRTTwindow + brief4-packet drain so late joiners see true propagation delay — Planted trap: Keeping an all-time minimum RTT forever so a second flow mistakes standing queue for physical distance.
unzip agent-track.zip && cd tcp-bbr-lab/agent-track
node --test test/*.test.mjs
mkdir -p src/mine
BBR_CANDIDATE=src/mine node --test test/rung-01.test.mjs
Download 5-Rung Agent Track (agent-track.zip) Read AGENT-TRACK.md on GitHub Open agent-track/README.md on GitHub