8.3 KiB
ADR-0006: Fixed-HIGH Native Sender Canary
- Status: Proposed - Product Gate No-Go
- Date: 2026-08-19
Context
The Draft #16/#18/#22/#23/#25/#28 ladder proved isolated WebCodecs/Pion properties, not integration with Screener's current rooms, signaling, ordinary browser viewers, or per-edge ICE/TURN. A native sender remains a later optimization and must not be presented as available product behavior.
Retained Boundary
Any renewed product-wiring canary stays deliberately narrow:
- one fixed VP8
HIGHrepresentation at 1280x720, 30 fps, and a 3 Mbps ceiling; - one WebCodecs encoder object feeding at most two independent Pion WebRTC legs;
- the current strict ordinary-P2P signaling wire and unmodified browser viewers;
- independent STUN-backed ICE, RTP/RTCP, congestion, and lifecycle state per leg;
- read-only feedback, with PLI/FIR limited to requesting a shared keyframe; and
- bounded local queues, fail-closed critical errors, and sanitized local-only diagnostics.
This canary excludes room-wide minimum feedback, automatic quality control,
LOW, viewer C reporting, peer-assisted/SFU routing, audio, packaging, and any
claim of one physical or hardware encoder. A third viewer must never create a
third host edge. The missing audio path remains a product-acceptance gap.
2026-08-19 Gate Result
The sole authorized run is no-go-unclassified; the retained evidence and
probe limitations are recorded in the native sender research. The earliest
missing checkpoint is viewer authentication, not a proven authentication
failure. No viewer-1 acceptance means there is no two-viewer, third-viewer
FIFO, or direct/TURN proof. The attempted native branch must not be opened or
merged as product code from this state.
2026-08-20 Current-Wire Checkpoint
A clean local delivery candidate now targets only screener-v2: it exchanges
HOST_ADMISSION_PASSWORD for the bounded HttpOnly Host-admission cookie, uses
that cookie to create an explicit private-link room, carries it on the Host
WebSocket upgrade, and strictly decodes the current ordinary authenticated and
read-only Viewer-evidence shapes. There is no v1 parser, translator, raw-grant
persistence, or Bearer room-creation shortcut. Its fixed 300-second provisional
request always creates a random transient room in memory, even when SQLite is
configured. A connected current Host suppresses that reclaim deadline; only its
generation-matched disconnect resets the five-minute window, while the ordinary
transient ROOM_TTL_SECONDS cap always remains. A pre-auth connection or
authentication failure gets one retry with the same room/token/client generation
and never another room POST. Server restart drops the room; SQLite stays at v2
and ordinary Web rooms are unchanged. No claim-confirm message, durable native token, or recovery
subsystem is added. Focused Go/TypeScript tests and static checks pass. The unused
generic probe framework is deliberately not retained. A current command consumer
may keep only the minimum stage ledger needed by the next authorized run.
The first authorized current-wire run on 2026-08-20 remains
no-go-unclassified. It used Windows amd64, Chrome 151, one real animated Chrome
tab, and an isolated local Node server with an in-memory RoomStore and peer
assistance disabled. Safe Chrome history booleans prove that the source and
Sender pages loaded and that no Viewer page was created. The runner stopped
after a bounded 20-second Sender-start interval without observing the combined
Sender-ready and Go source-RTP condition.
The timeout path failed to preserve its final Sender DOM/counter sample. It therefore cannot distinguish capture selection, Host admission/create, WSS authentication, local bridge, first encoded output, or Go ingest as the first runtime break. None is a proven product failure. No retry, timeout adjustment, Viewer, second Viewer, or FIFO run followed. A separately authorized rerun must first make the stage-1 ledger unconditional and prove that timeout retains the last sanitized checkpoint; only a passed Sender/source-RTP stage may create the single Viewer. The product gate remains no-go and this local branch is not a product availability claim.
The retained current command consumer appends and flushes only monotonic,
sanitized Sender-start fields. Its static one-Viewer gate now freezes one
socket/auth/connection/PeerConnection/video-track generation and the matching
Pion slot/edge generation, then revalidates that identity during media progress;
raw connection IDs never leave the page probe. Every CDP RPC and sample shares
its enclosing absolute deadline. passed is impossible until bounded Chrome
and native process-tree exit, listener closure, and audited deletion of the
exact task profile under system Temp all succeed; a reparse point or deletion
failure is a fixed cleanup failure. Pure checks cover retained timeout evidence,
hung samples, cross-generation rejection, cleanup-before-pass, and profile
cleanup failure.
One separately authorized second run then used that frozen gate with the same
bounded local topology. Its retained ledger proves getDisplayMedia request and
resolution, Host admission and room creation, Host WSS authentication, local
bridge readiness and fixed-HIGH config acceptance, exactly one encoder object,
and entry into the first WebCodecs output callback. It retained zero Go
framesWritten, source-RTP packets, and source-RTP bytes, so it stopped at
sender-start and never created a Viewer. No retry or threshold adjustment
followed. Cleanup completed before final failure: Chrome and Native exited, the
Node server and all three loopback ports closed, and the exact task Chrome
profile passed the non-reparse audit and was removed.
This remains no-go-unclassified. The frozen probe counted the first encoded
chunk before invoking the product output callback and did not record whether the
generation-bound local bridge attempted, returned from, or threw during its
binary send. Static inspection finds matching 17-byte big-endian frame contracts
on the Web and Go sides, but cannot convert that into runtime evidence. The proven
break interval is therefore after WebCodecs output callback entry and before Go
frame/source-RTP accounting, not a proven product bridge defect. The current
unrun gate now records only bounded attempt/synchronous-return/synchronous-throw
counters for the first local bridge generation and rechecks that identity at
Viewer signal, Viewer media, and final success. Pure tests reject late
replacement. A further run requires separate authorization. There is still no
Viewer, two-viewer, FIFO, or physical/hardware-encoder proof.
Staged Revalidation
A new run requires separate authorization and must stop at the first failed stage while synchronously retaining a bounded final-negative snapshot:
- Prove host room/auth, local config acknowledgement, one encoder object, bridge ingress, frame decode, source RTP, and zero critical errors.
- Prove viewer auth,
peer-joined, exact offer/answer/candidate exchange, and both PeerConnection state timelines. - Prove one viewer's inbound packets,
framesDecoded, video readiness/current time/dimensions, and rendered frames. - Add viewer 2 and prove two independent legs while encoder instances stay one and host media edges stay at most two.
- Add viewer 3, prove no third edge and a host-side waiting observation while the viewer keeps its existing waiting state, then close viewer 1 and prove FIFO promotion plus decoding/rendering.
- Keep this candidate STUN-only and capability-absent. Built-in Peer ICE TURN is a Web exact-room canary; any Native opt-in requires its own bounded gate rather than widening ordinary Native ICE or blocking the direct-path canary.
Only after these stages pass may separate performance, quality, loss, reconnect, browser, audio/A-V-sync, packaging, and license gates begin. Do not expand the feature to make the diagnostic gate pass.
Consequences
ADR-0006 records a bounded candidate and its failed first product gate, not an
accepted architecture or shipped sender. The deployed Web sender and ordinary
viewer remain unchanged. ADR-0007 continues to own path-isolated
HIGH + at most one LOW; this canary cannot advance or replace it.
References
docs/research/native-shared-encode-sender.mddocs/adr/0007-demand-driven-dual-representation-quality.mddocs/research/browser-screen-audio-quality.md