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.
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.
Can maintainers explain intent, assumptions, and trade-offs? 114 finding(s).
Are imports declared and package/API names verified? 1 finding(s).
Are wrappers, guards, and repeated structures necessary? 17 finding(s).
Which changes need focused human review? 132 finding(s).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | project.yml | 81 | ENABLE_HARDENED_RUNTIME: YES | COMMENT |
| LOW | MacReceiver/MacReceiver.swift | 41 | private var windowCloseTimer: DispatchWorkItem? | COMMENT |
| LOW | MacReceiver/MacReceiver.swift | 181 | /// framebuffer. A Retina panel announces its @2x pixels, which maps 1:1 | COMMENT |
| LOW | MacReceiver/OpenSidecarMacReceiverApp.swift | 1 | // OpenDisplay Receiver: the standalone "this Mac is a display" app (issues | COMMENT |
| LOW | tools/transport/nettest.swift | 1 | // Transport spike: replay a video frame-size trace over TCP, UDP, or QUIC | COMMENT |
| LOW | Shared/StreamReceiver.swift | 1 | // StreamReceiver — the listening half of OpenDisplay: receive video over | COMMENT |
| LOW | Shared/StreamReceiver.swift | 101 | // mid-session: plugging one creates new interfaces, and a sender can | COMMENT |
| LOW | Shared/StreamReceiver.swift | 221 | /// rebuilds the virtual display to match. | COMMENT |
| LOW | Shared/StreamReceiver.swift | 241 | // Decode ceiling advertised in hello (PROTOCOL.md 6.5): the largest | COMMENT |
| LOW | Shared/StreamReceiver.swift | 621 | // reset-by-peer storm). With a connection in hand, a newcomer | COMMENT |
| LOW | Shared/StreamReceiver.swift | 681 | startCursorListener() | COMMENT |
| LOW | Shared/StreamReceiver.swift | 981 | hello["maxEncodeWide"] = maxEncodeWide | COMMENT |
| LOW | Shared/Protocol.swift | 1 | // Compiled into BOTH the Mac and iOS targets (see project.yml `sources`). | COMMENT |
| LOW | Shared/LogSnapshot.swift | 1 | import Foundation | COMMENT |
| LOW | Shared/DirectCable.swift | 1 | // Compiled into the Mac sender, the Mac receiver and iOS (Shared/). | COMMENT |
| LOW | iOS/DecodeBudget.swift | 1 | import Foundation | COMMENT |
| LOW | iOS/Log.swift | 1 | import Foundation | COMMENT |
| LOW | iOS/VersionGate.swift | 1 | import SwiftUI | COMMENT |
| LOW | iOS/MetalVideoRenderer.swift | 1 | // MetalVideoRenderer — experimental low-latency display path. | COMMENT |
| LOW | iOS/OpenSidecarPhoneApp.swift | 721 | /// | COMMENT |
| LOW | iOS/OpenSidecarPhoneApp.swift | 1061 | // A press is only a click once we know a second finger is not coming. | COMMENT |
| LOW | Mac/DisplayArrangement.swift | 1 | import CoreGraphics | COMMENT |
| LOW | Mac/USBAccessory.swift | 1 | // USBAccessory — Android over the USB cable with no adb and no developer | COMMENT |
| LOW | Mac/Log.swift | 1 | import AppKit | COMMENT |
| LOW | Mac/AccessoryDeviceWatcher.swift | 1 | // AccessoryDeviceWatcher — finds Android devices on the USB cable that can | COMMENT |
| LOW | Mac/OpenSidecarMacApp.swift | 121 | COMMENT | |
| LOW | Mac/OpenSidecarMacApp.swift | 141 | // The udid the session is (or was last) cabled through, so a usbmuxd | COMMENT |
| LOW | Mac/OpenSidecarMacApp.swift | 241 | // - Plugging the cable in while the device streams over WiFi migrates | COMMENT |
| LOW | Mac/OpenSidecarMacApp.swift | 261 | @Published private var installIDByUDID: [String: String] = | COMMENT |
| LOW | Mac/OpenSidecarMacApp.swift | 281 | private var onDirectCable: Set<String> = [] | COMMENT |
| LOW | Mac/Usbmux.swift | 1 | // Usbmux — native client for the usbmuxd daemon that ships on every macOS | COMMENT |
| LOW | Mac/MacSender.swift | 1 | // MacSender — captures a display, H.264-encodes it, streams it to the phone. | COMMENT |
| LOW | Mac/MacSender.swift | 41 | // Fired when a previously connected device stays gone past the grace | COMMENT |
| LOW | Mac/MacSender.swift | 81 | // can migrate a live session between transports via switchTransport. | COMMENT |
| LOW | Mac/MacSender.swift | 101 | // encodes in parallel inside the same session. | COMMENT |
| LOW | Mac/MacSender.swift | 121 | // pendingSends counts video frames whose NWConnection.send completion has | COMMENT |
| LOW | Mac/MacSender.swift | 181 | COMMENT | |
| LOW | Mac/MacSender.swift | 201 | private var captureRecoveryInFlight = false | COMMENT |
| LOW | Mac/MacSender.swift | 221 | // a 4K encode submission can otherwise delay the next poll long before the | COMMENT |
| LOW | Mac/MacSender.swift | 241 | private var wiredPathMonitor: NWPathMonitor? | COMMENT |
| LOW | Mac/MacSender.swift | 261 | // blocking. Opened when hello advertises cursorPort; while ready, | COMMENT |
| LOW | Mac/MacSender.swift | 281 | // The TCP fallback crosses from `cursorQueue` to the sender `queue`. | COMMENT |
| LOW | Mac/MacSender.swift | 301 | pipelineLock.lock() | COMMENT |
| LOW | Mac/MacSender.swift | 701 | // session serial, which is at least orientation-stable. | COMMENT |
| LOW | Mac/MacSender.swift | 721 | userInfo: [NSLocalizedDescriptionKey: "CGVirtualDisplay creation failed"]) | COMMENT |
| LOW | Mac/MacSender.swift | 1141 | COMMENT | |
| LOW | Mac/MacSender.swift | 1481 | /// A live connection just died (must be called on `queue`). On the | COMMENT |
| LOW | Mac/MacSender.swift | 1721 | resetFrameRateLimiterForReconnect() | COMMENT |
| LOW | Mac/MacSender.swift | 2701 | // The spec filters which encoder VideoToolbox is allowed to pick, so an | COMMENT |
| LOW | Mac/VirtualDisplay.swift | 161 | return true | COMMENT |
| LOW | Mac/VirtualDisplay.swift | 201 | COMMENT | |
| LOW | Mac/VirtualDisplay.swift | 321 | /// stuck mirroring. Detaching is enforcement, not a one-shot: like the | COMMENT |
| LOW | Mac/OriginRestore.swift | 1 | import CoreGraphics | COMMENT |
| LOW | Mac/AndroidUSBFunction.swift | 1 | import Foundation | COMMENT |
| LOW | Mac/CaptureSourceCheck.swift | 1 | import CoreGraphics | COMMENT |
| LOW | linux/packaging/check-symbol-floor.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | linux/packaging/ffmpeg/build-static.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | linux/packaging/flatpak/app.opendisplay.Receiver.yml | 1 | # Flatpak build of od-receiver: the per-user install path for systems with a | COMMENT |
| LOW | …nux/packaging/arch/opendisplay-sender/from-checkout.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | linux/packaging/arch/opendisplay-sender/bump.sh | 1 | #!/usr/bin/env bash | COMMENT |
| 46 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/transport/probe.py | 21 | except BlockingIOError: | CODE |
| HIGH | tools/android/fake-sender.py | 687 | except OSError: | CODE |
| HIGH | tools/android/fake-sender.py | 691 | except OSError: | CODE |
| HIGH | tools/android/fake-sender.py | 249 | except subprocess.TimeoutExpired: | CODE |
| HIGH | tools/android/fake-sender.py | 262 | except OSError: | CODE |
| HIGH | tools/android/mock-receiver.py | 342 | except OSError: | CODE |
| HIGH | tools/android/mock-receiver.py | 162 | except OSError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/android/fake-sender.py | 47 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/android/fake-sender.py | 49 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/android/fake-sender.py | 88 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/android/fake-sender.py | 90 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/android/fake-sender.py | 191 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/android/fake-sender.py | 193 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/android/fake-sender.py | 289 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/android/fake-sender.py | 291 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | Mac/MacSender.swift | 96 | // ── Encoder parallelism limiter ───────────────────────────────────────── | COMMENT |
| MEDIUM | Mac/MacSender.swift | 119 | // ── Outstanding send backpressure (maxPendingSends = 3) ────────────────── | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/android/fake-sender.py | 265 | CODE | |
| LOW | tools/android/fake-sender.py | 351 | CODE | |
| LOW | tools/android/fake-sender.py | 512 | CODE | |
| LOW | tools/android/fake-sender.py | 543 | CODE | |
| LOW | tools/android/fake-sender.py | 694 | CODE | |
| LOW | tools/android/mock-receiver.py | 189 | CODE | |
| LOW | tools/android/mock-receiver.py | 240 | CODE | |
| LOW | tools/android/mock-receiver.py | 314 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/transport/fmt.py | 3 | CODE |