"""End-to-end: the sharer's per-leg encoder settings, read back from the page. The wall is a wall of *text*: the encoder must never buy frame rate with resolution. `degradationPreference: "maintain-resolution"` is that trade, and the per-leg `maxBitrate` cap must survive every renegotiation — a re-offer (a surface switch, a viewer that re-joined) resets the encodings, and the cap is re-applied after each negotiation and when a leg reaches `connected`. The assertions read the parameters back from the sharer's real RTCPeerConnection senders, through the page's `window.__probe` test handle (AGENTS.md §6) — on the full Chromium channel this is a real read, not a stub. The media rules still govern: pixel assertions are made on the *viewer's* `