AI Slop Code Risk Monitor

opencost/opencost

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

Cost monitoring for Kubernetes workloads and cloud costs

0.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for opencost/opencost, a Go project with 6,797 GitHub stars. SynthScan examined 262,104 lines of code across 919 source files, recording 125 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 0.6 (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.

0.6
Adjusted Signal
0.6
Raw Pattern Score
100%
Time Factor
2026-10-29
Last Push
6.8K
Stars
Go
Language
262.1K
Lines of Code
919
Files
125
Pattern Hits
2026-10-31
Scan Date
0.00
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 2.7/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.2/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 2.8/100 · LOW

Which changes need focused human review? 125 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 1MEDIUM 10LOW 114

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 125 distinct pattern matches across 6 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 Block109 hits · 109 pts
SeverityFileLineSnippetContext
LOWTHIRD_PARTY_LICENSES.txt2621// Redistribution and use in source and binary forms, with or withoutCOMMENT
LOWtilt-values.yaml121 ui:COMMENT
LOWcore/pkg/reader/func.go1package readerCOMMENT
LOWcore/pkg/util/httputil/httputil.go41COMMENT
LOWcore/pkg/util/monitor/memory/memorylimitstats.go21 // SmoothingFactor is a value between 0 and 1 which defines how weight importanceCOMMENT
LOWcore/pkg/util/fileutil/locks_unix.go41// WriteLockedFD uses the flock() syscall to safely write to an open file asCOMMENT
LOWcore/pkg/util/filterutil/filterutil.go61// It takes an optional LabelConfig, which if provided enables "label-mapped"COMMENT
LOWcore/pkg/util/worker/example_worker_test.go21 // of 1 second between calls), we'll want to execute each in a goroutine. Let'sCOMMENT
LOWcore/pkg/util/worker/example_worker_test.go101 // Received Result: 12.00 for Input: 2COMMENT
LOWcore/pkg/util/worker/example_worker_test.go141 // Received Result: 15.00 for Input: 5COMMENT
LOWcore/pkg/source/querygroup.go61// q1 := WithGroup(grp, QueryFoo())COMMENT
LOWcore/pkg/source/queryresult.go21 if results.Error != nil {COMMENT
LOWcore/pkg/protocol/protocol.go1package protocolCOMMENT
LOWcore/pkg/storage/storage.go41COMMENT
LOWcore/pkg/model/pb/messages.pb.go261 // corresponds to 'availability zone' of FOCUSCOMMENT
LOWcore/pkg/model/pb/messages.pb.go461 // FOCUS Commitment Discount TypeCOMMENT
LOWcore/pkg/model/kubemodel/bingen.go1package kubemodelCOMMENT
LOWcore/pkg/model/kubemodel/service.go41// 1. Load Balancers (LoadBalancer type) - Cloud provider LB hourly cost + data transferCOMMENT
LOWcore/pkg/opencost/asset.go1321COMMENT
LOWcore/pkg/opencost/asset.go2121// to be "partially preemptible" by adding a preemptible node with aCOMMENT
LOWcore/pkg/opencost/asset.go2141 // [core*hr]*([min/hr]*[1/min]) = [core*hr]/[hr] = coreCOMMENT
LOWcore/pkg/opencost/asset.go2161}COMMENT
LOWcore/pkg/opencost/window.go621 // ?------]COMMENT
LOWcore/pkg/opencost/window.go741// DurationOffsetStrings returns formatted, Prometheus-compatible strings representingCOMMENT
LOWcore/pkg/opencost/window.go761// 1. item falls entirely within one CloudCostSet windowCOMMENT
LOWcore/pkg/opencost/bingen.go1package opencostCOMMENT
LOWcore/pkg/opencost/bingen.go21////////////////////////////////////////////////////////////////////////////////COMMENT
LOWcore/pkg/opencost/bingen.go41// @bingen:generate:NodeCOMMENT
LOWcore/pkg/opencost/bingen.go61// @bingen:generate:GPUAllocationCOMMENT
LOWcore/pkg/opencost/summaryallocation.go481// operations details, as well as the fact that reconciliation has beenCOMMENT
LOWcore/pkg/opencost/summaryallocation.go681 // The order of operations for aggregating a SummaryAllotionSet is asCOMMENT
LOWcore/pkg/opencost/summaryallocation.go701 // been applied. (Used for filtering proportional amount of idle.)COMMENT
LOWcore/pkg/opencost/summaryallocation.go921COMMENT
LOWcore/pkg/opencost/allocation_test.go641 // generated by GenerateMockAllocationSet:COMMENT
LOWcore/pkg/opencost/allocation_test.go661 // cluster1 subtotal 66.00 11.00 31.00 6.00 6.00 6.00 6.00COMMENT
LOWcore/pkg/opencost/allocation_test.go681 // +----------------------------------------+------+------+------+------+------+------+------+COMMENT
LOWcore/pkg/opencost/allocation_test.go701 // 3 Share idleCOMMENT
LOWcore/pkg/opencost/allocation_test.go1561 },COMMENT
LOWcore/pkg/opencost/allocation_test.go1581 // cluster2.ram 2.5000 = 5.00*(3.0/6.0)COMMENT
LOWcore/pkg/opencost/allocation_test.go1621 // cluster1.ram 12.1875 = 15.00*(13.0/16.0)COMMENT
LOWcore/pkg/opencost/allocation_test.go1661 results: map[string]float64{COMMENT
LOWcore/pkg/opencost/allocation_test.go1681 // cluster2.cpu 2.5000 = 5.00*(3.0/6.0)COMMENT
LOWcore/pkg/opencost/allocation_test.go1961 // idle: 20.00 5.00 15.00 0.00 0.00 0.00 0.00COMMENT
LOWcore/pkg/opencost/allocation_test.go1981 // pod-mno: (deployment2)COMMENT
LOWcore/pkg/opencost/allocation_test.go2341// TODO nikoCOMMENT
LOWcore/pkg/opencost/allocation.go221 lba.Hours = 0COMMENT
LOWcore/pkg/opencost/allocation.go1561// AllocationProperty. This will only be legal if the AllocationSet is divisible by theCOMMENT
LOWcore/pkg/opencost/allocation.go1581 // e) if there are shared resources, compute share coefficientsCOMMENT
LOWcore/pkg/opencost/allocation.go1761 // allocation only.COMMENT
LOWcore/pkg/opencost/allocation.go1801 err := deriveProportionalAssetResourceCosts(options, as, shareSet, parcSet)COMMENT
LOWcore/pkg/opencost/allocation.go1821 //COMMENT
LOWcore/pkg/opencost/allocation.go2101 aggSet.Insert(alloc)COMMENT
LOWcore/pkg/opencost/allocation.go2181 // - namespace2 36.000COMMENT
LOWcore/pkg/opencost/allocation.go2201 // 3. Filter out all but namespace2COMMENT
LOWcore/pkg/opencost/mock.go441 // and cluster2). Include Nodes and Disks for both, even though onlyCOMMENT
LOWcore/pkg/opencost/mock.go461 // node1 35.00 20.00 15.00 0.00 0.00COMMENT
LOWcore/pkg/opencost/mock.go561COMMENT
LOWcore/pkg/opencost/mock.go641//COMMENT
LOWcore/pkg/opencost/mock.go661// disk3: 2.50 0.00COMMENT
LOWcore/pkg/opencost/totals.go341 key := node.Properties.ClusterCOMMENT
49 more matches not shown…
AI Slop Vocabulary8 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMcore/pkg/util/worker/worker.go32// WorkProcessor is a group of inputs that leverage a WorkerPool to run inputs through workers andCOMMENT
MEDIUMcore/pkg/util/worker/worker.go39// WorkGroup is a group of inputs that leverage a WorkerPool to run inputs through workers andCOMMENT
MEDIUMcore/pkg/protocol/protocol.go9// To provide a "static" set of utilities, we can utilize method selectors onCOMMENT
MEDIUMcore/pkg/model/kubemodel/kubemodel_codecs.go264// NewEncodingContextFromBuffer creates a new EncodingContext instance that will leverage an existingCOMMENT
MEDIUMcore/pkg/opencost/opencost_codecs_test.go708 // convert bytes to reader in order to leverage io.Reader string tableCOMMENT
MEDIUMcore/pkg/opencost/opencost_codecs.go278// NewEncodingContextFromBuffer creates a new EncodingContext instance that will leverage an existingCOMMENT
MEDIUMmodules/collector-source/pkg/metric/metric_codecs.go234// NewEncodingContextFromBuffer creates a new EncodingContext instance that will leverage an existingCOMMENT
MEDIUMmodules/collector-source/pkg/metric/store.go28 // which utilize the same metric.COMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM.github/workflows/build-and-publish-develop.yml62 # Create the new tagCOMMENT
MEDIUM.github/workflows/sbom.yml171 # Create a summary of the SBOM generationCOMMENT
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHpkg/currency/README.md11 APIKey: "your-api-key",CODE
Fake / Example Data3 hits · 4 pts
SeverityFileLineSnippetContext
LOWpkg/costmodel/costmodel_test.go404 Name: "fake-name",CODE
LOWpkg/cloud/azure/azurestorageintegration.go33 // Using the NetCost as a 'placeholder' for Invoiced and Amortized Net costs now,COMMENT
LOWpkg/cloud/gcp/bigqueryintegration_types.go240 // Using the NetCost as a 'placeholder' for these costs now, until we can revisit and spend the time to doCOMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOW.github/workflows/sonar.yaml71 # Check if the content matches a single numberCOMMENT
LOW.github/workflows/update-go-version.yaml36 # Check if there are any open PRs with the go-version-update labelCOMMENT