AI Slop Code Risk Monitor

peetzweg/opendisplay

SlopCodeMonitor badge for peetzweg/opendisplay Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).
2.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for peetzweg/opendisplay. SynthScan examined 65,534 lines of code across 322 source files, recording 132 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 2.7 (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.

2.7
Adjusted Signal
2.7
Raw Pattern Score
100%
Time Factor
—
Last Push
—
Stars
—
Language
65.5K
Lines of Code
322
Files
132
Pattern Hits
2026-10-31
Scan Date
0.02
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-10-31.

Cognitive Ownership Risk 8.3/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.1/100 · LOW

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

Agent Over-Engineering Ratio 4.8/100 · LOW

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

PR Review Velocity Impact 13.3/100 · LOW

Which changes need focused human review? 132 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 7MEDIUM 10LOW 115

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 132 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.

Over-Commented Block106 hits · 106 pts
SeverityFileLineSnippetContext
LOWproject.yml81 ENABLE_HARDENED_RUNTIME: YESCOMMENT
LOWMacReceiver/MacReceiver.swift41 private var windowCloseTimer: DispatchWorkItem?COMMENT
LOWMacReceiver/MacReceiver.swift181 /// framebuffer. A Retina panel announces its @2x pixels, which maps 1:1COMMENT
LOWMacReceiver/OpenSidecarMacReceiverApp.swift1// OpenDisplay Receiver: the standalone "this Mac is a display" app (issuesCOMMENT
LOWtools/transport/nettest.swift1// Transport spike: replay a video frame-size trace over TCP, UDP, or QUICCOMMENT
LOWShared/StreamReceiver.swift1// StreamReceiver — the listening half of OpenDisplay: receive video overCOMMENT
LOWShared/StreamReceiver.swift101 // mid-session: plugging one creates new interfaces, and a sender canCOMMENT
LOWShared/StreamReceiver.swift221 /// rebuilds the virtual display to match.COMMENT
LOWShared/StreamReceiver.swift241 // Decode ceiling advertised in hello (PROTOCOL.md 6.5): the largestCOMMENT
LOWShared/StreamReceiver.swift621 // reset-by-peer storm). With a connection in hand, a newcomerCOMMENT
LOWShared/StreamReceiver.swift681 startCursorListener()COMMENT
LOWShared/StreamReceiver.swift981 hello["maxEncodeWide"] = maxEncodeWideCOMMENT
LOWShared/Protocol.swift1// Compiled into BOTH the Mac and iOS targets (see project.yml `sources`).COMMENT
LOWShared/LogSnapshot.swift1import FoundationCOMMENT
LOWShared/DirectCable.swift1// Compiled into the Mac sender, the Mac receiver and iOS (Shared/).COMMENT
LOWiOS/DecodeBudget.swift1import FoundationCOMMENT
LOWiOS/Log.swift1import FoundationCOMMENT
LOWiOS/VersionGate.swift1import SwiftUICOMMENT
LOWiOS/MetalVideoRenderer.swift1// MetalVideoRenderer — experimental low-latency display path.COMMENT
LOWiOS/OpenSidecarPhoneApp.swift721 ///COMMENT
LOWiOS/OpenSidecarPhoneApp.swift1061 // A press is only a click once we know a second finger is not coming.COMMENT
LOWMac/DisplayArrangement.swift1import CoreGraphicsCOMMENT
LOWMac/USBAccessory.swift1// USBAccessory — Android over the USB cable with no adb and no developerCOMMENT
LOWMac/Log.swift1import AppKitCOMMENT
LOWMac/AccessoryDeviceWatcher.swift1// AccessoryDeviceWatcher — finds Android devices on the USB cable that canCOMMENT
LOWMac/OpenSidecarMacApp.swift121COMMENT
LOWMac/OpenSidecarMacApp.swift141 // The udid the session is (or was last) cabled through, so a usbmuxdCOMMENT
LOWMac/OpenSidecarMacApp.swift241 // - Plugging the cable in while the device streams over WiFi migratesCOMMENT
LOWMac/OpenSidecarMacApp.swift261 @Published private var installIDByUDID: [String: String] =COMMENT
LOWMac/OpenSidecarMacApp.swift281 private var onDirectCable: Set<String> = []COMMENT
LOWMac/Usbmux.swift1// Usbmux — native client for the usbmuxd daemon that ships on every macOSCOMMENT
LOWMac/MacSender.swift1// MacSender — captures a display, H.264-encodes it, streams it to the phone.COMMENT
LOWMac/MacSender.swift41 // Fired when a previously connected device stays gone past the graceCOMMENT
LOWMac/MacSender.swift81 // can migrate a live session between transports via switchTransport.COMMENT
LOWMac/MacSender.swift101 // encodes in parallel inside the same session.COMMENT
LOWMac/MacSender.swift121 // pendingSends counts video frames whose NWConnection.send completion hasCOMMENT
LOWMac/MacSender.swift181COMMENT
LOWMac/MacSender.swift201 private var captureRecoveryInFlight = falseCOMMENT
LOWMac/MacSender.swift221 // a 4K encode submission can otherwise delay the next poll long before theCOMMENT
LOWMac/MacSender.swift241 private var wiredPathMonitor: NWPathMonitor?COMMENT
LOWMac/MacSender.swift261 // blocking. Opened when hello advertises cursorPort; while ready,COMMENT
LOWMac/MacSender.swift281 // The TCP fallback crosses from `cursorQueue` to the sender `queue`.COMMENT
LOWMac/MacSender.swift301 pipelineLock.lock()COMMENT
LOWMac/MacSender.swift701 // session serial, which is at least orientation-stable.COMMENT
LOWMac/MacSender.swift721 userInfo: [NSLocalizedDescriptionKey: "CGVirtualDisplay creation failed"])COMMENT
LOWMac/MacSender.swift1141COMMENT
LOWMac/MacSender.swift1481 /// A live connection just died (must be called on `queue`). On theCOMMENT
LOWMac/MacSender.swift1721 resetFrameRateLimiterForReconnect()COMMENT
LOWMac/MacSender.swift2701 // The spec filters which encoder VideoToolbox is allowed to pick, so anCOMMENT
LOWMac/VirtualDisplay.swift161 return trueCOMMENT
LOWMac/VirtualDisplay.swift201COMMENT
LOWMac/VirtualDisplay.swift321 /// stuck mirroring. Detaching is enforcement, not a one-shot: like theCOMMENT
LOWMac/OriginRestore.swift1import CoreGraphicsCOMMENT
LOWMac/AndroidUSBFunction.swift1import FoundationCOMMENT
LOWMac/CaptureSourceCheck.swift1import CoreGraphicsCOMMENT
LOWlinux/packaging/check-symbol-floor.sh1#!/usr/bin/env bashCOMMENT
LOWlinux/packaging/ffmpeg/build-static.sh1#!/usr/bin/env bashCOMMENT
LOWlinux/packaging/flatpak/app.opendisplay.Receiver.yml1# Flatpak build of od-receiver: the per-user install path for systems with aCOMMENT
LOW…nux/packaging/arch/opendisplay-sender/from-checkout.sh1#!/usr/bin/env bashCOMMENT
LOWlinux/packaging/arch/opendisplay-sender/bump.sh1#!/usr/bin/env bashCOMMENT
46 more matches not shown…
Empty Error Handlers7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHtools/transport/probe.py21except BlockingIOError:CODE
HIGHtools/android/fake-sender.py687except OSError:CODE
HIGHtools/android/fake-sender.py691except OSError:CODE
HIGHtools/android/fake-sender.py249except subprocess.TimeoutExpired:CODE
HIGHtools/android/fake-sender.py262except OSError:CODE
HIGHtools/android/mock-receiver.py342except OSError:CODE
HIGHtools/android/mock-receiver.py162except OSError:CODE
Decorative Section Separators10 hits · 30 pts
SeverityFileLineSnippetContext
MEDIUMtools/android/fake-sender.py47# --------------------------------------------------------------------------COMMENT
MEDIUMtools/android/fake-sender.py49# --------------------------------------------------------------------------COMMENT
MEDIUMtools/android/fake-sender.py88# --------------------------------------------------------------------------COMMENT
MEDIUMtools/android/fake-sender.py90# --------------------------------------------------------------------------COMMENT
MEDIUMtools/android/fake-sender.py191# --------------------------------------------------------------------------COMMENT
MEDIUMtools/android/fake-sender.py193# --------------------------------------------------------------------------COMMENT
MEDIUMtools/android/fake-sender.py289# --------------------------------------------------------------------------COMMENT
MEDIUMtools/android/fake-sender.py291# --------------------------------------------------------------------------COMMENT
MEDIUMMac/MacSender.swift96 // ── Encoder parallelism limiter ─────────────────────────────────────────COMMENT
MEDIUMMac/MacSender.swift119 // ── Outstanding send backpressure (maxPendingSends = 3) ──────────────────COMMENT
Deep Nesting8 hits · 8 pts
SeverityFileLineSnippetContext
LOWtools/android/fake-sender.py265CODE
LOWtools/android/fake-sender.py351CODE
LOWtools/android/fake-sender.py512CODE
LOWtools/android/fake-sender.py543CODE
LOWtools/android/fake-sender.py694CODE
LOWtools/android/mock-receiver.py189CODE
LOWtools/android/mock-receiver.py240CODE
LOWtools/android/mock-receiver.py314CODE
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtools/transport/fmt.py3CODE