AI Slop Code Risk Monitor

oshi/oshi

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

Native Operating System and Hardware Information

1.2 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for oshi/oshi, a Java project with 5,274 GitHub stars. SynthScan examined 190,069 lines of code across 1517 source files, recording 64 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 1.2 (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.2
Adjusted Signal
1.2
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
5.3K
Stars
Java
Language
190.1K
Lines of Code
1.5K
Files
64
Pattern Hits
2026-10-31
Scan Date
0.01
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 1.4/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 4.4/100 · LOW

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

Agent Over-Engineering Ratio 0.1/100 · LOW

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

PR Review Velocity Impact 5.9/100 · LOW

Which changes need focused human review? 64 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 17HIGH 1MEDIUM 5LOW 41

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 64 distinct pattern matches across 10 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 Indicators17 hits · 170 pts
SeverityFileLineSnippetContext
CRITICAL…i-common/src/main/java/oshi/util/driver/linux/Who.java60 oshi.util.driver.unix.Who.matchUnix(whoList, s);CODE
CRITICAL…oshi/ffm/platform/windows/com/IWbemClassObjectFFM.java82 MemorySegment wszName = oshi.ffm.platform.windows.WindowsForeignFunctions.toWideString(arena, propertyName);CODE
CRITICALoshi-core-ffm/src/main/java/oshi/driver/mac/WhoFFM.java79 return oshi.util.driver.unix.Who.queryWho();CODE
CRITICALoshi-core-ffm/src/main/java/oshi/driver/mac/WhoFFM.java83 return oshi.util.driver.unix.Who.queryWho();CODE
CRITICAL…ffm/src/main/java/oshi/driver/unix/freebsd/WhoFFM.java68 return oshi.util.driver.unix.Who.queryWho();CODE
CRITICAL…ffm/src/main/java/oshi/driver/unix/freebsd/WhoFFM.java72 return oshi.util.driver.unix.Who.queryWho();CODE
CRITICAL…ffm/src/main/java/oshi/driver/unix/solaris/WhoFFM.java68 return oshi.util.driver.unix.Who.queryWho();CODE
CRITICAL…ffm/src/main/java/oshi/driver/unix/solaris/WhoFFM.java72 return oshi.util.driver.unix.Who.queryWho();CODE
CRITICAL…i-core-ffm/src/main/java/oshi/driver/linux/WhoFFM.java83 return oshi.util.driver.linux.Who.queryWho();CODE
CRITICAL…i-core-ffm/src/main/java/oshi/driver/linux/WhoFFM.java90 return oshi.util.driver.linux.Who.queryWho();CODE
CRITICAL…va/oshi/software/os/linux/LinuxOperatingSystemFFM.java115 return USE_WHO_COMMAND ? oshi.util.driver.linux.Who.queryWho() : WhoFFM.queryUtxent();CODE
CRITICALoshi-core/src/main/java/oshi/driver/mac/Who.java64 return oshi.util.driver.unix.Who.queryWho();CODE
CRITICAL…i-core/src/main/java/oshi/driver/unix/freebsd/Who.java65 return oshi.util.driver.unix.Who.queryWho();CODE
CRITICAL…i-core/src/main/java/oshi/driver/unix/solaris/Who.java65 return oshi.util.driver.unix.Who.queryWho();CODE
CRITICALoshi-core/src/main/java/oshi/driver/linux/WhoJNA.java96 return oshi.util.driver.linux.Who.queryWho();CODE
CRITICAL…va/oshi/software/os/linux/LinuxOperatingSystemJNA.java109 return USE_WHO_COMMAND ? oshi.util.driver.linux.Who.queryWho() : WhoJNA.queryUtxent();CODE
CRITICAL…core/src/main/java/oshi/jna/platform/windows/Dxgi.java54 private static final com.sun.jna.platform.win32.Guid.IID IID_IDXGI_FACTORY = new com.sun.jna.platform.win32.Guid.IIDCODE
Over-Commented Block32 hits · 32 pts
SeverityFileLineSnippetContext
LOW…e/common/platform/linux/LinuxCentralProcessorTest.java81 String midr = LinuxCentralProcessor.createMIDR("0x41", "r1p3", "0xd07", "8");COMMENT
LOW…ommon/platform/unix/solaris/SolarisComputerSystem.java121 // 0 87 SMB_TYPE_BIOS (BIOS Information)COMMENT
LOW…ommon/platform/unix/solaris/SolarisComputerSystem.java141 // Family: Parallels VMCOMMENT
LOW…on/src/main/java/oshi/util/driver/linux/Dmidecode.java21public final class Dmidecode {COMMENT
LOW…on/src/main/java/oshi/util/driver/linux/Dmidecode.java41 // PC Card (PCMCIA) is supportedCOMMENT
LOW…/java/oshi/driver/common/unix/solaris/disk/Iostat.java21public final class Iostat {COMMENT
LOW…shi/software/common/os/linux/LinuxOperatingSystem.java241 return cgroupInfoSupplier.get();COMMENT
LOW…rc/test/java/oshi/comparison/NativeComparisonTest.java541 // the memoizer expiration to 0. The gap is unrelated to how long the process has been up, so theCOMMENT
LOWscripts/upload-to-central.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/update-javadoc-io.sh1#!/usr/bin/env bashCOMMENT
LOW.github/appveyor.yml61 - appveyor-retry ./mvnw -B -DskipTests=true clean packageCOMMENT
LOW.github/workflows/pr.yaml21 # so an unrelated PR doesn't spin up slow VMs. Generic shared source is covered byCOMMENT
LOW.github/workflows/pr.yaml41 # The include list this replaces looked for a `unix/` path segment plus the build inputs, whichCOMMENT
LOW.github/workflows/benchmarks.yaml1# Manual JMH benchmark capture across every platform OSHI runs JMH on.COMMENT
LOW.github/workflows/appveyor-dispatch.yaml1# Force an AppVeyor build for a pull request by adding the `full-coverage` label.COMMENT
LOW.github/workflows/cfarm.yaml21# (rather than prevent it with an on-box lock) each run, before building:COMMENT
LOW.github/workflows/cfarm.yaml41 # Tests the triggering ref on Solaris 11.4 SPARC: master on push, or theCOMMENT
LOW.github/workflows/unix.yaml121 # 10 GB pool shared with every other workflow in the repo, so caching it evicts theCOMMENT
LOW.github/workflows/unix.yaml141 # them -- a ZFS ARC cap, mem, cpu, -Xmx, MaxMetaspaceSize, ReservedCodeCacheSize,COMMENT
LOW.github/workflows/unix.yaml161 # in 25.0. CompressedClassSpaceSize=3g does push the reservation above 4 GB, but onlyCOMMENT
LOW.github/ffm-audit/exceptions/linux.txt1# Symbols whose SDK declaration cannot be compared against a FunctionDescriptor.COMMENT
LOW.github/ffm-audit/exceptions/mac.txt1# Symbols whose SDK declaration cannot be compared against a FunctionDescriptor.COMMENT
LOW.github/ffm-audit/exceptions/windows.txt1# Symbols whose SDK declaration cannot be compared against a FunctionDescriptor.COMMENT
LOW.github/ffm-audit/structs/freebsd.txt1# Maps an FFM struct layout constant to the C type it mirrors, so the audit can compare its sizeCOMMENT
LOW.github/ffm-audit/structs/dragonflybsd.txt1# Maps an FFM struct layout constant to the C type it mirrors, so the audit can compare its sizeCOMMENT
LOW.github/ffm-audit/structs/aix.txt1# Maps an FFM struct layout constant to the C type it mirrors, so the audit can compare its sizeCOMMENT
LOW.github/ffm-audit/structs/openbsd.txt1# Maps an FFM struct layout constant to the C type it mirrors, so the audit can compare its sizeCOMMENT
LOW.github/ffm-audit/structs/netbsd.txt1# Maps an FFM struct layout constant to the C type it mirrors, so the audit can compare its sizeCOMMENT
LOW.github/cfarm/remote.sh1#!/usr/bin/env bashCOMMENT
LOW…c/main/java/oshi/ffm/platform/windows/IPHlpAPIFFM.java101 JAVA_INT.withName("dwNoPorts"), JAVA_INT.withName("dwInErrors"), JAVA_INT.withName("dwOutDatagrams"),COMMENT
LOW…ava/oshi/ffm/platform/windows/com/IWbemLocatorFFM.java41 MemorySegment iid = GuidFFM.IID_IWbemLocator(arena);COMMENT
LOW…-ffm/src/main/java/oshi/driver/mac/net/NetStatFFM.java41COMMENT
AI Slop Vocabulary4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/pr.yaml498 # harness runs this script under `set -e`.COMMENT
MEDIUM.github/workflows/unix.yaml166 # dispatch harness, against 3 in 16 in the same harness without it. backend=mmap is theCOMMENT
MEDIUM.github/workflows/unix.yaml188 # harness runs this script under `set -e`.COMMENT
MEDIUM.github/ffm-audit/audit.py187 # the harness itself is broken on this platform, and must not be mistaken for a clean run. BothCOMMENT
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH.github/ffm-audit/extract.py97except ValueError:CODE
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWscripts/upload-to-central.sh13# Usage:COMMENT
LOWscripts/update-javadoc-io.sh10# Usage:COMMENT
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOW…n/java/oshi/util/platform/windows/WmiQueryHandler.java223 // Step 1: --------------------------------------------------COMMENT
LOW…n/java/oshi/util/platform/windows/WmiQueryHandler.java234 // Step 2: --------------------------------------------------COMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUM…ics/src/test/java/oshi/metrics/PrometheusDemoTest.java21@SuppressForbidden(reason = "Demo test uses com.sun.net.httpserver and System.out for demonstration purposes")CODE
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOW.github/ffm-audit/audit.py12CODE
LOW.github/ffm-audit/extract.py1CODE
Deep Nesting2 hits · 2 pts
SeverityFileLineSnippetContext
LOW.github/ffm-audit/gen.py185CODE
LOW.github/ffm-audit/extract.py3CODE
Excessive Try-Catch Wrapping1 hit · 0 pts
SeverityFileLineSnippetContext
LOW.github/ffm-audit/gen.py141 except Exception:STRING