AI Slop Code RIsk Monitor

webrtc-rs/webrtc

Async-friendly WebRTC implementation in Rust

14.0 Moderate pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for webrtc-rs/webrtc, a Rust project with 5,160 GitHub stars. SynthScan examined 48,286 lines of code across 175 source files, recording 354 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 14.0 (Moderate pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

14.0
Adjusted Signal
14.0
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
5.2K
Stars
Rust
Language
48.3K
Lines of Code
175
Files
354
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 17.9/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 193 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.2/100 · LOW

Are imports declared and package/API names verified? 2 finding(s).

Agent Over-Engineering Ratio 39.4/100 · MEDIUM

Are wrappers, guards, and repeated structures necessary? 159 finding(s).

PR Review Velocity Impact 50.3/100 · HIGH

Which changes need focused human review? 354 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 0MEDIUM 161LOW 193

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 354 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Decorative Section Separators159 hits · 483 pts
SeverityFileLineSnippetContext
MEDIUMtests/dedicated_reactor_data_channel.rs113 // ── Offerer on a dedicated reactor thread ──────────────────────────────────COMMENT
MEDIUMtests/dedicated_reactor_data_channel.rs158 // ── Answerer on a dedicated reactor thread ─────────────────────────────────COMMENT
MEDIUMtests/ice_restart_by_webrtc_interop.rs181 // ──────────── Phase 1: wait for initial connection ────────────COMMENT
MEDIUMtests/ice_restart_by_webrtc_interop.rs294 // ──────────── Phase 2: exchange messages before ICE restart ────────────COMMENT
MEDIUMtests/ice_restart_by_webrtc_interop.rs431 // ──────────── Phase 3: ICE restart (initiated by WebRTC) ────────────COMMENT
MEDIUMtests/ice_restart_by_webrtc_interop.rs465 // ──────────── Phase 4: wait for reconnection ────────────COMMENT
MEDIUMtests/ice_restart_by_webrtc_interop.rs549 // ──────────── Phase 5: exchange messages after ICE restart ────────────COMMENT
MEDIUMtests/data_channel_send_blocking.rs123 // ── Sender (with an explicit small send-buffer limit ⇒ blocking send) ───────COMMENT
MEDIUMtests/data_channel_send_blocking.rs165 // ── Receiver ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/turn_credential_rotation.rs202 // ── 1. Initial allocation on credential A ─────────────────────────────COMMENT
MEDIUMtests/turn_credential_rotation.rs230 // ── 2. Rotate credentials and restart ICE ─────────────────────────────COMMENT
MEDIUMtests/turn_credential_rotation.rs297 // ── What actually happened on the wire ────────────────────────────────COMMENT
MEDIUMtests/offer_answer_webrtc2webrtc.rs21// ── Offerer handler ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/offer_answer_webrtc2webrtc.rs44// ── Answerer handler ───────────────────────────────────────────────────────────COMMENT
MEDIUMtests/offer_answer_webrtc2webrtc.rs96// ── Test entry point ───────────────────────────────────────────────────────────COMMENT
MEDIUMtests/offer_answer_webrtc2webrtc.rs115 // ── Channels ───────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/offer_answer_webrtc2webrtc.rs124 // ── Build offerer peer connection ──────────────────────────────────────────COMMENT
MEDIUMtests/offer_answer_webrtc2webrtc.rs178 // ── Build answerer peer connection ─────────────────────────────────────────COMMENT
MEDIUMtests/offer_answer_webrtc2webrtc.rs213 // ── Wait for both peers to connect ─────────────────────────────────────────COMMENT
MEDIUM⚡tests/offer_answer_webrtc2webrtc.rs224 // ── Wait for offerer DC to open, then send test message ───────────────────COMMENT
MEDIUM⚡tests/offer_answer_webrtc2webrtc.rs232 // ── Wait for answerer to receive and echo ─────────────────────────────────COMMENT
MEDIUM⚡tests/offer_answer_webrtc2webrtc.rs239 // ── Wait for offerer to receive echo ─────────────────────────────────────COMMENT
MEDIUM⚡tests/offer_answer_webrtc2webrtc.rs246 // ── Assertions ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/renegotiation.rs23// ── Event Handlers ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/renegotiation.rs65// ── Helper functions ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/renegotiation.rs95// ── Test Case ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data_channel_send_backpressure.rs141 // ── Sender (with an explicit small send-buffer limit) ───────────────────────COMMENT
MEDIUMtests/data_channel_send_backpressure.rs189 // ── Receiver ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data_channel_send_backpressure.rs222 // ── Naive flood: push TOTAL_BYTES with NO bufferedAmount flow control ───────COMMENT
MEDIUMtests/ice_restart_by_rtc_interop.rs180 // ──────────── Phase 1: wait for initial connection + DC open ────────────COMMENT
MEDIUMtests/ice_restart_by_rtc_interop.rs287 // ──────────── Phase 2: exchange messages before ICE restart ────────────COMMENT
MEDIUMtests/ice_restart_by_rtc_interop.rs361 // ──────────── Phase 3: ICE restart (initiated by RTC) ────────────COMMENT
MEDIUMtests/ice_restart_by_rtc_interop.rs453 // ──────────── Phase 4: wait for reconnection ────────────COMMENT
MEDIUMtests/ice_restart_by_rtc_interop.rs537 // ──────────── Phase 5: exchange message after ICE restart ────────────COMMENT
MEDIUMtests/statistics.rs22// ── Event Handlers ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/statistics.rs69// ── Test Case ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data_channel_survives_send_failure.rs46// ── A runtime whose UDP sends can be made to fail on demand ────────────────────COMMENT
MEDIUMtests/data_channel_survives_send_failure.rs155// ── Handlers ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data_channel_survives_send_failure.rs202 // ── Sender, on the runtime whose sends we can break ───────────────────────COMMENT
MEDIUMtests/data_channel_survives_send_failure.rs249 // ── Receiver, on the unmodified runtime ───────────────────────────────────COMMENT
MEDIUMtests/data_channel_survives_send_failure.rs286 // ── Break every outgoing datagram, then send ──────────────────────────────COMMENT
MEDIUMtests/data_channel_send_unbounded.rs115 // ── Sender ────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data_channel_send_unbounded.rs159 // ── Receiver ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data_channel_send_unbounded.rs192 // ── Naive flood with the gate DISABLED (limit=0 ⇒ usize::MAX) ───────────────COMMENT
MEDIUMtests/play_save_disk.rs35// ── Event Handlers ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/play_save_disk.rs105// ── Streaming Helpers ──────────────────────────────────────────────────────────COMMENT
MEDIUMtests/play_save_disk.rs185// ── Test Case ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/media_rejection.rs23// ── Event Handlers ────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/media_rejection.rs65// ── Test Case ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/flexfec03_encoder_decoder.rs83// ── Interceptors ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/flexfec03_encoder_decoder.rs255// ── Handlers ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/flexfec03_encoder_decoder.rs277// ── Fixtures ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/flexfec03_encoder_decoder.rs316// ── Test ──────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data_channel_close_wakes_send.rs162 // ── Receiver ──────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/data_channel_close_wakes_send.rs195 // ── Flood forever with the BLOCKING send() until it errors ──────────────────COMMENT
MEDIUMtests/crypto_provider_integration.rs50// ── Provider selection ─────────────────────────────────────────────────────────COMMENT
MEDIUMtests/crypto_provider_integration.rs114// ── Handlers ───────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/crypto_provider_integration.rs175// ── Helpers ────────────────────────────────────────────────────────────────────COMMENT
MEDIUMtests/crypto_provider_integration.rs268 // ── Offer / answer ────────────────────────────────────────────────────────COMMENT
MEDIUMtests/crypto_provider_integration.rs296 // ── Media across the link (SRTP) ──────────────────────────────────────────COMMENT
99 more matches not shown…
Over-Commented Block191 hits · 184 pts
SeverityFileLineSnippetContext
LOWtests/data_channel_dropped_handle_does_not_stall.rs1//! Dropping one data channel's handle must not stop every *other* channel from receiving.COMMENT
LOWtests/data_channel_send_after_close.rs1//! Regression test for the send-cap **terminal-error-on-close** property across every sendCOMMENT
LOWtests/media_only_negotiation_no_sctp.rs1//! Integration test for media-only async WebRTC negotiation without SCTP.COMMENT
LOWtests/rtcp_processing_webrtc2webrtc.rs1//! Async webrtc integration test for RTCP processing.COMMENT
LOWtests/rtcp_processing_webrtc2webrtc.rs81///COMMENT
LOWtests/data_channel_slow_consumer.rs1//! A reliable, ordered data channel must deliver **every** message even when theCOMMENT
LOWtests/data_channel_slow_consumer.rs401COMMENT
LOWtests/data_channels_create_interop.rs1/// Integration test for data channels create interop between rtc and webrtcCOMMENT
LOWtests/simulcast_rtc_to_webrtc_interop.rs1/// Integration test for TRUE simulcast with RID (rtc → webrtc)COMMENT
LOWtests/remote_certificate_fingerprint.rs1//! Worked example: reading the peers' DTLS certificate fingerprints out of `get_stats`.COMMENT
LOWtests/data_channel_send_blocking.rs1//! Integration test for the **blocking** send back-pressure path: `DataChannel::send` with aCOMMENT
LOWtests/turn_credential_rotation.rs1//! Reproduction for issue #835 — ICE restart after TURN credential rotation must not 437.COMMENT
LOWtests/turn_release_on_close.rs1//! Regression test for webrtc#903: `close()` must release the connection's TURN allocations.COMMENT
LOWtests/data_channel_send_backpressure.rs1//! Integration test for data-channel send back-pressure via the **non-blocking**COMMENT
LOWtests/data_channel_send_backpressure.rs21//! tiny limit vs a large flood this is deterministic, and it is the strongest teeth:COMMENT
LOWtests/close_releases_connection_with_transceivers.rs1//! Regression test for webrtc#906: a connection that ever held a transceiver must be freed afterCOMMENT
LOWtests/bind_failures_skip_addresses.rs1//! An address that cannot be bound is skipped, not fatal — unless nothing binds at allCOMMENT
LOWtests/data_channel_stall_does_not_block_media.rs1//! A stalled data-channel consumer must not stop media on the same peer connection.COMMENT
LOWtests/data_channel_survives_send_failure.rs1//! Regression test for issue #776 — an unreliable data channel must survive failed sends.COMMENT
LOWtests/data_channel_send_unbounded.rs1//! Integration test for the send back-pressure **escape hatch**: building a connection withCOMMENT
LOWtests/transport_objects.rs1//! The W3C transport objects are reachable from the async API, and their identities behave.COMMENT
LOWtests/ice_restart_rebinds_sockets.rs1//! An ICE restart replaces the UDP transport when the application asks for it (webrtc#868).COMMENT
LOWtests/ice_restart_rebinds_sockets.rs501COMMENT
LOWtests/ice_restart_rebinds_sockets.rs661 );COMMENT
LOWtests/dedicated_reactor_drop.rs1//! Regression tests for the bounded shared reactor pool (issue #101).COMMENT
LOWtests/flexfec03_encoder_decoder.rs1//! FlexFEC-03 end to end: the encoder protects, the path loses, the decoder rebuilds.COMMENT
LOWtests/flexfec03_encoder_decoder.rs61const NUM_MEDIA_PACKETS: u32 = 10;COMMENT
LOWtests/wildcard_bind_expands_interfaces.rs1//! A wildcard bind address means "every local interface", not the wildcard socket (webrtc#874).COMMENT
LOWtests/data_channel_close_wakes_send.rs1//! Regression test for the blocking send back-pressure close/drop liveness hang.COMMENT
LOWtests/on_data_channel_only_for_remote.rs1//! `on_data_channel` must fire only for channels the **peer** opened.COMMENT
LOWtests/crypto_provider_integration.rs1//! End-to-end validation of crypto-provider selection through the public async API.COMMENT
LOWtests/custom_runtime_interop.rs1//! Two peer connections, two different runtimes, one process.COMMENT
LOWtests/common/mod.rs1//! Shared helpers for the integration tests.COMMENT
LOWtests/common/mod.rs21/// The one runtime instance shared by every helper in this module.COMMENT
LOW.devcontainer/devcontainer.json21COMMENT
LOWexamples/save-to-disk-h26x/save-to-disk-h26x.rs41#[command(version = "0.1.0")]COMMENT
LOWexamples/custom-runtime/my_runtime.rs1//! A third-party async runtime for `webrtc`, over `async-executor` + `async-io`.COMMENT
LOWexamples/custom-runtime/custom-runtime.rs1//! A third-party async runtime plugged into `webrtc`.COMMENT
LOWexamples/data-channels/data-channels.rs21#[derive(Parser)]COMMENT
LOWexamples/insertable-streams/insertable-streams.rs41const CIPHER_KEY: u8 = 0xAA;COMMENT
LOW…estimation-from-disk/bandwidth-estimation-from-disk.rs1//! bandwidth-estimation-from-disk: switch between three pre-encoded renditions as the estimate moves.COMMENT
LOW…estimation-from-disk/bandwidth-estimation-from-disk.rs101 debug: bool,COMMENT
LOW…estimation-from-disk/bandwidth-estimation-from-disk.rs421///COMMENT
LOWexamples/save-to-disk-vpx/save-to-disk-vpx.rs41#[command(author = "Rain Liu <yliu@webrtc.rs>")]COMMENT
LOWexamples/save-to-disk-fec/save-to-disk-fec.rs1//! save-to-disk-fec: receive a FlexFEC-03 protected stream, rebuild what the path lost, save it.COMMENT
LOWexamples/save-to-disk-fec/save-to-disk-fec.rs61use common::{block_on, runtime};COMMENT
LOWexamples/save-to-disk-fec/save-to-disk-fec.rs81struct Cli {COMMENT
LOWexamples/common/mod.rs1//! Shared runtime helpers for the examples.COMMENT
LOWexamples/common/mod.rs21COMMENT
LOWexamples/data-channels-create/data-channels-create.rs21#[derive(Parser)]COMMENT
LOWexamples/play-from-disk-fec/play-from-disk-fec.rs1//! play-from-disk-fec: send video with FlexFEC-03 repair, over a path that drops packets on purpose.COMMENT
LOWexamples/play-from-disk-fec/play-from-disk-fec.rs81/// The example drops more than that by default, so the browser will still see gaps. That is theCOMMENT
LOWexamples/play-from-disk-fec/play-from-disk-fec.rs101#[command(about = "An example of play-from-disk with FlexFEC-03 over a lossy path.")]COMMENT
LOW…ta-channels-stress-bench/data-channels-stress-bench.rs1//! Multi-pair data-channel stress bench — the reproducible A/B harness forCOMMENT
LOW…ta-channels-stress-bench/data-channels-stress-bench.rs21//! `outstanding_bytes()` and print it, verifying the send counter drains to ~0COMMENT
LOWexamples/rtcp-processing/rtcp-processing.rs61COMMENT
LOWexamples/rtcp-processing/rtcp-processing.rs141 fn unbind_remote_stream(&mut self, _info: &StreamInfo) {}COMMENT
LOWexamples/ice-restart/ice-restart.rs1//! ICE restart example.COMMENT
LOWexamples/data-channels-close/data-channels-close.rs21#[derive(Parser)]COMMENT
LOW…flow-control-multi/data-channels-flow-control-multi.rs1//! Multi-pair data-channel flow-control bench for a single-`poop` N-connection run.COMMENT
131 more matches not shown…
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtests/data_channel_send_unbounded.rs218 // byte. This is the robust delivery proof — unlike the app-level `received` counter below, itCOMMENT
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMsrc/peer_connection/mod.rs17//! ## Creating a Peer ConnectionCOMMENT
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWscripts/check-channel-overflow-policy.py31CODE
LOWscripts/check-crypto-boundary.py16CODE