AI Slop Code Risk Monitor

versatica/mediasoup

SlopCodeMonitor badge for versatica/mediasoup Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

Cutting Edge WebRTC Video Conferencing

1.5 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for versatica/mediasoup, a C++ project with 7,420 GitHub stars. SynthScan examined 280,284 lines of code across 1019 source files, recording 389 pattern matches distributed across 9 syntactic categories. The legacy adjusted pattern signal is 1.5 (Low 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.

1.5
Adjusted Signal
1.5
Raw Pattern Score
100%
Time Factor
2026-11-15
Last Push
7.4K
Stars
C++
Language
280.3K
Lines of Code
1.0K
Files
389
Pattern Hits
2026-11-15
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-11-15.

Cognitive Ownership Risk 7.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 1.0/100 · LOW

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

PR Review Velocity Impact 7.2/100 · LOW

Which changes need focused human review? 389 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

Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.

No multi-scan history yet — run the scanner again to build trend data.

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 1MEDIUM 11LOW 377

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 389 distinct pattern matches across 9 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.

Over-Commented Block299 hits · 296 pts
SeverityFileLineSnippetContext
LOWrust/types/src/rtp_parameters.rs101///COMMENT
LOWrust/types/src/rtp_parameters.rs121 /// Default 1.COMMENT
LOWrust/types/src/rtp_parameters.rs201}COMMENT
LOWrust/types/src/rtp_parameters.rs261 /// PCMACOMMENT
LOWrust/types/src/rtp_parameters.rs341 Self::Red => "audio/red",COMMENT
LOWrust/types/src/rtp_parameters.rs421/// `supported_rtp_capabilities.rs` file.COMMENT
LOWrust/types/src/rtp_parameters.rs441 /// The preferred RTP payload type.COMMENT
LOWrust/types/src/rtp_parameters.rs541/// Error that caused [`RtpHeaderExtensionUri`] parsing error.COMMENT
LOWrust/types/src/rtp_parameters.rs561 /// <http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time>COMMENT
LOWrust/types/src/rtp_parameters.rs641 }COMMENT
LOWrust/types/src/rtp_parameters.rs661 /// The preferred numeric identifier that goes in the RTP packet. Must be unique.COMMENT
LOWrust/types/src/rtp_parameters.rs681///COMMENT
LOWrust/types/src/rtp_parameters.rs701#[derive(Debug, Default, Clone, PartialEq, PartialOrd, Deserialize, Serialize)]COMMENT
LOWrust/types/src/rtp_parameters.rs781 clock_rate: NonZeroU32,COMMENT
LOWrust/types/src/rtp_parameters.rs981COMMENT
LOWrust/types/src/rtp_parameters.rs1001 #[serde(skip_serializing_if = "Option::is_none")]COMMENT
LOWrust/types/src/rtp_parameters.rs1021/// header extensions supported by mediasoup is defined in the `supported_rtp_capabilities.rs` file.COMMENT
LOWrust/types/src/srtp_parameters.rs21 /// AEAD_AES_256_GCMCOMMENT
LOWrust/types/src/sctp_parameters.rs41/// method.COMMENT
LOWrust/types/src/sctp_parameters.rs61 /// SCTP stream id.COMMENT
LOWrust/types/src/data_structures.rs41 /// Construct app data from almost anythingCOMMENT
LOWrust/types/src/data_structures.rs61 #[serde(skip_serializing_if = "Option::is_none")]COMMENT
LOWrust/types/src/data_structures.rs121/// ICE candidate type.COMMENT
LOWrust/types/src/data_structures.rs141/// ICE candidate TCP type (always `Passive`).COMMENT
LOWrust/types/src/data_structures.rs181/// ICE state.COMMENT
LOWrust/types/src/data_structures.rs201/// Both `remote_ip` and `remote_port` are unset until the media address of the remote endpoint isCOMMENT
LOWrust/types/src/data_structures.rs801/// Container used for sending/receiving messages using `DirectTransport` data producers and dataCOMMENT
LOWrust/examples/multiopus.rs41/// Server messages sent to the clientCOMMENT
LOWrust/examples/multiopus.rs81 #[serde(rename_all = "camelCase")]COMMENT
LOWrust/examples/svc-simulcast.rs61}COMMENT
LOWrust/examples/svc-simulcast.rs101#[rtype(result = "()")]COMMENT
LOWrust/examples/echo.rs81 rtp_parameters: RtpParameters,COMMENT
LOWrust/examples/echo.rs101 rtp_parameters: RtpParameters,COMMENT
LOWrust/examples/videoroom.rs341COMMENT
LOWrust/examples/videoroom.rs401COMMENT
LOWrust/examples/videoroom.rs421 #[serde(rename_all = "camelCase")]COMMENT
LOWrust/src/lib.rs1#![warn(rust_2018_idioms, missing_debug_implementations, missing_docs)]COMMENT
LOWrust/src/lib.rs21//! [design overview](https://mediasoup.org/documentation/v3/mediasoup/design/) first.COMMENT
LOWrust/src/lib.rs121pub mod transport {COMMENT
LOWrust/src/lib.rs141 //!COMMENT
LOWrust/src/lib.rs161 use super::*;COMMENT
LOWrust/src/lib.rs201pub mod webrtc_transport {COMMENT
LOWrust/src/worker.rs41 WorkerIdCOMMENT
LOWrust/src/worker.rs61 FailedToParse {COMMENT
LOWrust/src/worker.rs161#[derive(Debug, Clone)]COMMENT
LOWrust/src/worker.rs241 .finish()COMMENT
LOWrust/src/worker.rs281/// Error that caused [`Worker::create_webrtc_server`] to fail.COMMENT
LOWrust/src/supported_rtp_capabilities.rs1//! RTP capabilities supported by mediasoup.COMMENT
LOWrust/src/ortc.rs121#[derive(Debug, Error, Eq, PartialEq)]COMMENT
LOWrust/src/ortc.rs141#[derive(Debug, Error, Eq, PartialEq)]COMMENT
LOWrust/src/router.rs81/// [`Router`] options.COMMENT
LOWrust/src/router.rs121 pub router: Router,COMMENT
LOWrust/src/router.rs141 /// Default 262_144.COMMENT
LOWrust/src/router.rs161 ///COMMENT
LOWrust/src/router.rs201 enable_rtx: false,COMMENT
LOWrust/src/router.rs221 pub pipe_producer: PipedProducer,COMMENT
LOWrust/src/router.rs261COMMENT
LOWrust/src/router.rs281#[derive(Debug, Error)]COMMENT
LOWrust/src/router.rs601 }COMMENT
LOWrust/src/router.rs661 /// ```rustCOMMENT
239 more matches not shown…
Hyper-Verbose Identifiers57 hits · 54 pts
SeverityFileLineSnippetContext
LOWnode/src/ortc.ts45export function validateAndNormalizeRtpCapabilities(CODE
LOWnode/src/ortc.ts45export function validateAndNormalizeRtpCapabilities(CODE
LOWnode/src/ortc.ts80export function validateAndNormalizeRtpParameters(params: RtpParameters): void {CODE
LOWnode/src/ortc.ts80export function validateAndNormalizeRtpParameters(params: RtpParameters): void {CODE
LOWnode/src/ortc.ts141export function validateAndNormalizeSctpStreamParameters(CODE
LOWnode/src/ortc.ts141export function validateAndNormalizeSctpStreamParameters(CODE
LOWnode/src/ortc.ts209export function generateRouterRtpCapabilities(CODE
LOWnode/src/ortc.ts322export function getProducerRtpParametersMapping(CODE
LOWnode/src/ortc.ts421export function getConsumableRtpParameters(CODE
LOWnode/src/ortc.ts802export function getPipeConsumerRtpParameters({CODE
LOWnode/src/ortc.ts881export function disableBweInRtpParameters(rtpParameters: RtpParameters): void {CODE
LOWnode/src/ortc.ts1001function validateAndNormalizeRtpCodecCapability(CODE
LOWnode/src/ortc.ts1001function validateAndNormalizeRtpCodecCapability(CODE
LOWnode/src/ortc.ts1088function validateAndNormalizeRtcpFeedback(fb: RtcpFeedback): void {CODE
LOWnode/src/ortc.ts1088function validateAndNormalizeRtcpFeedback(fb: RtcpFeedback): void {CODE
LOWnode/src/ortc.ts1109function validateAndNormalizeRtpHeaderExtension(ext: RtpHeaderExtension): void {CODE
LOWnode/src/ortc.ts1109function validateAndNormalizeRtpHeaderExtension(ext: RtpHeaderExtension): void {CODE
LOWnode/src/ortc.ts1148function validateAndNormalizeRtpCodecParameters(CODE
LOWnode/src/ortc.ts1148function validateAndNormalizeRtpCodecParameters(CODE
LOWnode/src/ortc.ts1230function validateAndNormalizeRtpHeaderExtensionParameters(CODE
LOWnode/src/ortc.ts1230function validateAndNormalizeRtpHeaderExtensionParameters(CODE
LOWnode/src/ortc.ts1278function validateAndNormalizeRtpEncodingParameters(CODE
LOWnode/src/ortc.ts1278function validateAndNormalizeRtpEncodingParameters(CODE
LOWnode/src/ortc.ts1332function validateAndNormalizeRtcpParameters(rtcp: RtcpParameters): void {CODE
LOWnode/src/ortc.ts1332function validateAndNormalizeRtcpParameters(rtcp: RtcpParameters): void {CODE
LOWnode/src/rtpParametersFbsUtils.ts135export function serializeRtpEncodingParameters(CODE
LOWnode/src/rtpParametersFbsUtils.ts373export function rtpHeaderExtensionUriFromFbs(CODE
LOWnode/src/rtpParametersFbsUtils.ts423export function rtpHeaderExtensionUriToFbs(CODE
LOWnode/src/rtpParametersFbsUtils.ts477export function parseRtpHeaderExtensionParameters(CODE
LOWnode/src/rtpParametersFbsUtils.ts488export function parseRtpEncodingParameters(CODE
LOWnode/src/PlainTransport.ts344export function parsePlainTransportDumpResponse(CODE
LOWnode/src/DataConsumer.ts606export function parseDataConsumerDumpResponse(CODE
LOWnode/src/PipeTransport.ts383export function parsePipeTransportDumpResponse(CODE
LOWnode/src/Consumer.ts633function consumerTraceEventTypeToFbs(CODE
LOWnode/src/Consumer.ts663function consumerTraceEventTypeFromFbs(CODE
LOWnode/src/Consumer.ts748function parseSimulcastConsumerDump(CODE
LOWnode/src/Consumer.ts788function parseConsumerDumpResponse(CODE
LOWnode/src/Producer.ts455function producerTraceEventTypeToFbs(CODE
LOWnode/src/Producer.ts489function producerTraceEventTypeFromFbs(CODE
LOWnode/src/DataProducer.ts379export function parseDataProducerDumpResponse(CODE
LOWnode/src/fbsUtils.ts103export function parseStringStringArrayVector(CODE
LOWnode/src/Transport.ts1169export function serializeSctpZeroChecksum(CODE
LOWnode/src/Transport.ts1338export function parseTransportTraceEventData(CODE
LOWnode/src/Transport.ts1374function parseRecvRtpHeaderExtensions(CODE
LOWnode/src/Transport.ts1390function transportTraceEventTypeToFbs(CODE
LOWnode/src/Transport.ts1404function transportTraceEventTypeFromFbs(CODE
LOWnode/src/Transport.ts1707function parseSctpNegotiatedCapabilitiesDump(CODE
LOWnode/src/index.ts142export function getSupportedRtpCapabilities(): RouterRtpCapabilities {CODE
LOWnode/src/DirectTransport.ts233export function parseDirectTransportDumpResponse(CODE
LOWnode/src/WebRtcTransport.ts482function iceCandidateTcpTypeFromFbs(CODE
LOWnode/src/WebRtcTransport.ts532function fingerprintAlgorithmsFromFbs(CODE
LOWnode/src/WebRtcTransport.ts558function fingerprintAlgorithmToFbs(CODE
LOWnode/src/WebRtcTransport.ts608export function parseWebRtcTransportDumpResponse(CODE
LOWnode/src/sctpParametersFbsUtils.ts27export function serializeSctpStreamParameters(CODE
LOWnode/src/sctpParametersFbsUtils.ts44export function parseSctpStreamParameters(CODE
LOWworker/tasks.py539def tidy_normalize_compile_commands(ctx):CODE
LOWworker/include/Channel/ChannelSocket.hpp67 class RequestHandlerCODE
AI Slop Vocabulary8 hits · 33 pts
SeverityFileLineSnippetContext
MEDIUMrust/src/lib.rs9//! powerful type system and ownership system to make API more robust and more misuse-resistant.COMMENT
MEDIUM⚡rust/src/router/consumer.rs273 /// Essentially `Option<u8>` or `Option<-1>`COMMENT
MEDIUM⚡rust/src/router/consumer.rs275 /// Essentially `Option<u8>` or `Option<-1>`COMMENT
MEDIUM⚡rust/src/router/consumer.rs277 /// Essentially `Option<u8>` or `Option<-1>`COMMENT
MEDIUM⚡rust/src/router/consumer.rs279 /// Essentially `Option<u8>` or `Option<-1>`COMMENT
MEDIUM⚡rust/src/router/consumer.rs281 /// Essentially `Option<u8>` or `Option<-1>`COMMENT
MEDIUM⚡rust/src/router/consumer.rs283 /// Essentially `Option<u8>` or `Option<-1>`COMMENT
MEDIUM…c/RTC/SCTP/packet/chunks/TestHeartbeatRequestChunk.cpp241 // > last parameter in the chunk. A robust implementation is expected toCOMMENT
Slop Phrases19 hits · 28 pts
SeverityFileLineSnippetContext
LOWrust/src/worker.rs544#[must_use = "Worker will be destroyed on drop, make sure to keep it around for as long as needed"]COMMENT
LOWrust/src/router.rs486#[must_use = "Router will be closed on drop, make sure to keep it around for as long as needed"]COMMENT
LOWrust/src/router/producer.rs685#[must_use = "Producer will be closed on drop, make sure to keep it around for as long as needed"]COMMENT
LOWrust/src/router/producer.rs717#[must_use = "Producer will be closed on drop, make sure to keep it around for as long as needed"]COMMENT
LOWrust/src/router/producer.rs751#[must_use = "Producer will be closed on drop, make sure to keep it around for as long as needed"]COMMENT
LOWrust/src/router/data_consumer.rs382#[must_use = "Data consumer will be closed on drop, make sure to keep it around for as long as needed"]COMMENT
LOWrust/src/router/data_consumer.rs413#[must_use = "Data consumer will be closed on drop, make sure to keep it around for as long as needed"]COMMENT
LOWrust/src/router/data_consumer.rs451#[must_use = "Data consumer will be closed on drop, make sure to keep it around for as long as needed"]COMMENT
LOWrust/src/router/active_speaker_observer.rs167#[must_use = "Active speaker observer will be closed on drop, make sure to keep it around for as long as needed"]COMMENT
LOWrust/src/router/data_producer.rs240#[must_use = "Data producer will be closed on drop, make sure to keep it around for as long as needed"]COMMENT
LOWrust/src/router/data_producer.rs268#[must_use = "Data producer will be closed on drop, make sure to keep it around for as long as needed"]COMMENT
LOWrust/src/router/data_producer.rs302#[must_use = "Data producer will be closed on drop, make sure to keep it around for as long as needed"]COMMENT
LOWrust/src/router/audio_level_observer.rs189#[must_use = "Audio level observer will be closed on drop, make sure to keep it around for as long as needed"]COMMENT
LOWrust/src/router/pipe_transport.rs447#[must_use = "Transport will be closed on drop, make sure to keep it around for as long as needed"]COMMENT
LOWrust/src/router/plain_transport.rs537#[must_use = "Transport will be closed on drop, make sure to keep it around for as long as needed"]COMMENT
LOWrust/src/router/direct_transport.rs348#[must_use = "Transport will be closed on drop, make sure to keep it around for as long as needed"]COMMENT
LOWrust/src/router/webrtc_transport.rs660#[must_use = "Transport will be closed on drop, make sure to keep it around for as long as needed"]COMMENT
LOWrust/src/router/consumer.rs795#[must_use = "Consumer will be closed on drop, make sure to keep it around for as long as needed"]COMMENT
LOWworker/tasks.py70# NOTE: On Windows make sure to add `--vsenv` or have MSVS environment alreadyCOMMENT
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHworker/src/RTC/SCTP/tx/RoundRobinSendQueue.cpp631 // A stream is paused when it's about to be reset. In this implementation,COMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/mediasoup-npm-publish.yaml65 # Create the GitHub release from the matching CHANGELOG.md entry.COMMENT
MEDIUM.github/workflows/mediasoup-crate-publish.yaml168 # Create the GitHub release from the matching rust/CHANGELOG.md entry. Only forCOMMENT
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMrust/src/lib.rs17//! mechanism or easy to customize app scaffold (seeCOMMENT
Structural Annotation Overuse1 hit · 2 pts
SeverityFileLineSnippetContext
LOWworker/src/RTC/DtlsTransport.cpp624 // NOTE: This function returns 0 on success.COMMENT
Excessive Try-Catch Wrapping1 hit · 1 pts
SeverityFileLineSnippetContext
LOWworker/tasks.py148 except Exception:CODE