End-to-end realtime stack for connecting humans and AI
This report presents the forensic synthetic code analysis of livekit/livekit, a Go project with 19,741 GitHub stars. SynthScan v2.0 examined 141,944 lines of code across 390 source files, recording 373 pattern matches distributed across 3 syntactic categories. The overall adjusted score of 2.6 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 373 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .goreleaser.yaml | 1 | # Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | CHANGELOG.md | 101 | By default, TURN will not relay traffic to private IPs. If you need to relay traffic to private IPs, please use `allow_r | COMMENT |
| LOW | magefile_windows.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | config-sample.yaml | 1 | # Copyright 2024 LiveKit, Inc. | COMMENT |
| LOW | config-sample.yaml | 21 | redis: | COMMENT |
| LOW | config-sample.yaml | 41 | # # file containing trusted root certificates for verification | COMMENT |
| LOW | config-sample.yaml | 61 | # WebRTC transports are encrypted and do not require additional encryption | COMMENT |
| LOW | config-sample.yaml | 81 | # # when set, LiveKit will attempt to use a UDP mux so all UDP traffic goes through | COMMENT |
| LOW | config-sample.yaml | 101 | # # Path for file containing shared secret for TURN server authentication | COMMENT |
| LOW | config-sample.yaml | 121 | # # migrate an established-but-lossy UDP connection to ICE/TCP or TURN/TLS. requires tcp_fallback_rtt_threshold > 0, d | COMMENT |
| LOW | config-sample.yaml | 141 | # - en0 | COMMENT |
| LOW | config-sample.yaml | 161 | # # enable batch write to merge network write system calls to reduce cpu usage. Outgoing packets | COMMENT |
| LOW | config-sample.yaml | 181 | COMMENT | |
| LOW | config-sample.yaml | 201 | # Each room created will inherit these settings. If rooms are created explicitly with CreateRoom, they will take | COMMENT |
| LOW | config-sample.yaml | 221 | # # control playout delay in ms of video track (and associated audio track) | COMMENT |
| LOW | config-sample.yaml | 241 | # since v1.4.0, a more reliable, psrpc based signal relay is available | COMMENT |
| LOW | config-sample.yaml | 261 | # timeout: 500ms | COMMENT |
| LOW | config-sample.yaml | 281 | # active_red_encoding: true | COMMENT |
| LOW | config-sample.yaml | 301 | # external_tls: true | COMMENT |
| LOW | config-sample.yaml | 321 | # - 192.168.0.0/16 | COMMENT |
| LOW | config-sample.yaml | 341 | # # default: lowest. valid values: lowest, twochoice | COMMENT |
| LOW | config-sample.yaml | 361 | # # if the limit is exceeded, subscriptions will be pending until any subscribed track has been unsubscribed. | COMMENT |
| LOW | magefile.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | magefile_unix.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | bootstrap.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | install-livekit.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | cmd/server/commands.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | cmd/server/main.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | cmd/server/main_test.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | cmd/test-server/signal.go | 1 | // Copyright 2026 LiveKit, Inc. | COMMENT |
| LOW | cmd/test-server/config.go | 1 | // Copyright 2026 LiveKit, Inc. | COMMENT |
| LOW | cmd/test-server/config.go | 61 | // FailMode selects how a failing region fails: "status" (default) writes a | COMMENT |
| LOW | cmd/test-server/config.go | 81 | // aren't about authz, e.g. failover tests with a placeholder token). | COMMENT |
| LOW | cmd/test-server/auth.go | 1 | // Copyright 2026 LiveKit, Inc. | COMMENT |
| LOW | cmd/test-server/auth.go | 21 | "github.com/livekit/protocol/auth" | COMMENT |
| LOW | cmd/test-server/handlers.go | 1 | // Copyright 2026 LiveKit, Inc. | COMMENT |
| LOW | cmd/test-server/signal_test.go | 1 | // Copyright 2026 LiveKit, Inc. | COMMENT |
| LOW | cmd/test-server/main.go | 1 | // Copyright 2026 LiveKit, Inc. | COMMENT |
| LOW | tools/tools.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | test/integration_helpers.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | test/scenarios.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | test/singlenode_test.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | test/agent.go | 1 | // Copyright 2024 LiveKit, Inc. | COMMENT |
| LOW | test/agent_test.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | test/multinode_test.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | test/webhook_test.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | test/multinode_roomservice_test.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | test/client/client.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | test/client/datatrack_writer.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | test/client/trackwriter.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | version/version.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | .github/workflows/buildtest.yaml | 1 | # Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | .github/workflows/test-server-docker.yaml | 1 | # Copyright 2026 LiveKit, Inc. | COMMENT |
| LOW | .github/workflows/release.yaml | 1 | # Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | .github/workflows/docker.yaml | 1 | # Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | pkg/config/config.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | pkg/config/config.go | 121 | COMMENT | |
| LOW | pkg/config/config_test.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | pkg/utils/opsqueue.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| LOW | pkg/utils/math.go | 1 | // Copyright 2023 LiveKit, Inc. | COMMENT |
| 311 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | pkg/rtc/transport.go | 3325 | // Essentially lines like `a=ssrc-group:FID 2231627014 632943048` are processed by this section | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install-livekit.sh | 46 | # Check if $INSTALL_PATH exists | COMMENT |