AI Slop Code Risk Monitor

homebridge/homebridge

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

HomeKit support for the impatient.

1.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for homebridge/homebridge, a TypeScript project with 25,536 GitHub stars. SynthScan examined 63,236 lines of code across 327 source files, recording 51 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 1.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.

1.7
Adjusted Signal
1.7
Raw Pattern Score
100%
Time Factor
2026-10-28
Last Push
25.5K
Stars
TypeScript
Language
63.2K
Lines of Code
327
Files
51
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 3.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 4.6/100 · LOW

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

Agent Over-Engineering Ratio 2.0/100 · LOW

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

PR Review Velocity Impact 7.3/100 · LOW

Which changes need focused human review? 51 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 5HIGH 0MEDIUM 0LOW 46

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

Hallucination Indicators5 hits · 60 pts
SeverityFileLineSnippetContext
CRITICALsrc/api.ts272 * api.matter.deviceRequirements.Thermostat.ThermostatServer.with('Heating', 'Cooling'),COMMENT
CRITICALsrc/matter/types.ts757 * api.matter.deviceRequirements.Thermostat.ThermostatServer.with('Heating', 'Cooling'),COMMENT
CRITICALsrc/matter/server/CommissioningManager.ts333 deps.serverNode.events.commissioning.fabricsChanged.on(this.onFabricsChanged)CODE
CRITICALsrc/matter/server/CommissioningManager.ts345 deps.serverNode.events.commissioning.commissioned.on(this.onCommissioned)CODE
CRITICALsrc/matter/server/CommissioningManager.ts356 deps.serverNode.events.commissioning.decommissioned.on(this.onDecommissioned)CODE
Hyper-Verbose Identifiers26 hits · 26 pts
SeverityFileLineSnippetContext
LOWsrc/bridgeService.ts157export function shouldAddIdentifyingMaterial(hap: BridgeHapConfig | boolean | undefined): boolean {CODE
LOWsrc/matter/ExternalMatterAccessoryPublisher.ts63export async function publishExternalMatterAccessory(CODE
LOWsrc/matter/logFormatter.ts37export function createHomebridgeLogFormatter(): (diagnostic: unknown) => string {CODE
LOWsrc/matter/logFormatter.ts119function formatHomebridgeTimestamp(date: Date): string {CODE
LOWsrc/matter/serverHelpers.ts71export function validateAccessoryRequiredFields(accessory: MatterAccessory): void {CODE
LOWsrc/matter/serverHelpers.ts248export function extractColorControlFeatures(supportedFeatures: Record<string, boolean>): string[] {CODE
LOWsrc/matter/serverHelpers.ts267export function extractThermostatFeatures(supportedFeatures: Record<string, boolean>): string[] {CODE
LOWsrc/matter/serverHelpers.ts300export function extractLevelControlFeatures(CODE
LOWsrc/matter/serverHelpers.ts322export function determineColorControlFeaturesFromHandlers(CODE
LOWsrc/matter/serverHelpers.ts358export function determineColorControlFeaturesFromClusters(CODE
LOWsrc/matter/serverHelpers.ts390export function detectWindowCoveringFeatures(accessory: MatterAccessory): string[] {CODE
LOWsrc/matter/serverHelpers.ts438export function detectSmokeCoAlarmFeatures(accessory: MatterAccessory): string[] {CODE
LOWsrc/matter/serverHelpers.ts461export function applySmokeCoAlarmFeatures(CODE
LOWsrc/matter/serverHelpers.ts480export function applyLevelControlLightingFloor(CODE
LOWsrc/matter/serverHelpers.ts567export function checkThermostatSetpointLimits(CODE
LOWsrc/matter/serverHelpers.ts643export function detectServiceAreaFeatures(CODE
LOWsrc/matter/serverHelpers.ts666export function applyWindowCoveringFeatures(CODE
LOWsrc/matter/serverHelpers.ts791export function detectElectricalMeasurementClusters(accessory: ElectricalMeasurementHost): ElectricalMeasurementDetectioCODE
LOWsrc/matter/serverHelpers.ts843export function applyElectricalMeasurementDefaults(CODE
LOWsrc/matter/serverHelpers.ts896export function applyElectricalMeasurementClusters(CODE
LOWsrc/matter/config.ts77export function validateMatterExternalsOnly(CODE
LOWsrc/matter/config.ts97export function stripMatterExternalsOnlyForAccessory(CODE
LOWsrc/matter/server/AccessoryManager.spec.ts217function createChainableDeviceType(props: Record<string, unknown>): any {CODE
LOWsrc/matter/server/ServerConfig.ts35export function validateAndSanitizeConfig(config: MatterServerConfig): MatterServerConfig {CODE
LOWsrc/matter/server/ServerConfig.ts35export function validateAndSanitizeConfig(config: MatterServerConfig): MatterServerConfig {CODE
LOWsrc/matter/server/ServerLifecycle.spec.ts998 function depsThatFailAfterNodeCreation(close: () => Promise<void>): ServerLifecycleDeps {CODE
Over-Commented Block17 hits · 17 pts
SeverityFileLineSnippetContext
LOWsrc/childBridgeService.ts241 // Wall-clock time (ms) the current child last reported ONLINE, or undefinedCOMMENT
LOWsrc/childBridgeFork.ts121 // load apiCOMMENT
LOWsrc/matter/ExternalMatterAccessoryPublisher.ts141 } else if ((error as { portMayStillBeBound?: boolean } | undefined)?.portMayStillBeBound) {COMMENT
LOWsrc/matter/logFormatter.ts61 // apply a single Homebridge level colour to the whole line below.COMMENT
LOWsrc/matter/types.ts641 SmokeSensor: devices.SmokeCoAlarmDevice,COMMENT
LOWsrc/matter/types.ts661COMMENT
LOWsrc/matter/types.ts681 // add Speed, Ventilation, Pedestrian or the rest.COMMENT
LOWsrc/matter/types.ts701 // Closure applies - otherwise every play/pause/key press would fail.COMMENT
LOWsrc/matter/types.ts721 // MomentarySwitchLongPress enables long-press detection, andCOMMENT
LOWsrc/matter/server/ServerLifecycle.ts341 name: displayName,COMMENT
LOWsrc/matter/server/ServerLifecycle.ts641 // A debounced cache save may still be armed from accessoryCOMMENT
LOWsrc/matter/server/AccessoryManager.ts281 // ⚠️ A battery is only visible to a controller once the endpoint alsoCOMMENT
LOWsrc/matter/server/AccessoryManager.ts601 // LevelControl in `optional`, not `SupportedBehaviors`), attaching ourCOMMENT
LOWsrc/matter/server/AccessoryManager.ts641 private async buildCustomBehaviors(COMMENT
LOWsrc/matter/server/AccessoryManager.ts661 // rejected for the life of the process. Static facts are the declarationCOMMENT
LOWsrc/matter/server/AccessoryManager.ts681 //COMMENT
LOWsrc/matter/behaviors/WindowCoveringBehavior.spec.ts21// Note: WindowCoveringBehavior has complex position control with helper methods.COMMENT
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsrc/matter/types.ts866 * This type is used when we need to check if an endpoint has a stateCOMMENT
LOWsrc/matter/types.ts917 * Used when we need to check if a device type supports .with()COMMENT
AI Slop Vocabulary1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdocs/interfaces/AccessoryPlugin.html42method <a href="#getservices" class="tsd-kind-property">getServices</a> must be defined in any way and should just returCODE