Cost monitoring for Kubernetes workloads and cloud costs
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.
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? 121 finding(s).
Are imports declared and package/API names verified? 4 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 125 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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | THIRD_PARTY_LICENSES.txt | 2621 | // Redistribution and use in source and binary forms, with or without | COMMENT |
| LOW | tilt-values.yaml | 121 | ui: | COMMENT |
| LOW | core/pkg/reader/func.go | 1 | package reader | COMMENT |
| LOW | core/pkg/util/httputil/httputil.go | 41 | COMMENT | |
| LOW | core/pkg/util/monitor/memory/memorylimitstats.go | 21 | // SmoothingFactor is a value between 0 and 1 which defines how weight importance | COMMENT |
| LOW | core/pkg/util/fileutil/locks_unix.go | 41 | // WriteLockedFD uses the flock() syscall to safely write to an open file as | COMMENT |
| LOW | core/pkg/util/filterutil/filterutil.go | 61 | // It takes an optional LabelConfig, which if provided enables "label-mapped" | COMMENT |
| LOW | core/pkg/util/worker/example_worker_test.go | 21 | // of 1 second between calls), we'll want to execute each in a goroutine. Let's | COMMENT |
| LOW | core/pkg/util/worker/example_worker_test.go | 101 | // Received Result: 12.00 for Input: 2 | COMMENT |
| LOW | core/pkg/util/worker/example_worker_test.go | 141 | // Received Result: 15.00 for Input: 5 | COMMENT |
| LOW | core/pkg/source/querygroup.go | 61 | // q1 := WithGroup(grp, QueryFoo()) | COMMENT |
| LOW | core/pkg/source/queryresult.go | 21 | if results.Error != nil { | COMMENT |
| LOW | core/pkg/protocol/protocol.go | 1 | package protocol | COMMENT |
| LOW | core/pkg/storage/storage.go | 41 | COMMENT | |
| LOW | core/pkg/model/pb/messages.pb.go | 261 | // corresponds to 'availability zone' of FOCUS | COMMENT |
| LOW | core/pkg/model/pb/messages.pb.go | 461 | // FOCUS Commitment Discount Type | COMMENT |
| LOW | core/pkg/model/kubemodel/bingen.go | 1 | package kubemodel | COMMENT |
| LOW | core/pkg/model/kubemodel/service.go | 41 | // 1. Load Balancers (LoadBalancer type) - Cloud provider LB hourly cost + data transfer | COMMENT |
| LOW | core/pkg/opencost/asset.go | 1321 | COMMENT | |
| LOW | core/pkg/opencost/asset.go | 2121 | // to be "partially preemptible" by adding a preemptible node with a | COMMENT |
| LOW | core/pkg/opencost/asset.go | 2141 | // [core*hr]*([min/hr]*[1/min]) = [core*hr]/[hr] = core | COMMENT |
| LOW | core/pkg/opencost/asset.go | 2161 | } | COMMENT |
| LOW | core/pkg/opencost/window.go | 621 | // ?------] | COMMENT |
| LOW | core/pkg/opencost/window.go | 741 | // DurationOffsetStrings returns formatted, Prometheus-compatible strings representing | COMMENT |
| LOW | core/pkg/opencost/window.go | 761 | // 1. item falls entirely within one CloudCostSet window | COMMENT |
| LOW | core/pkg/opencost/bingen.go | 1 | package opencost | COMMENT |
| LOW | core/pkg/opencost/bingen.go | 21 | //////////////////////////////////////////////////////////////////////////////// | COMMENT |
| LOW | core/pkg/opencost/bingen.go | 41 | // @bingen:generate:Node | COMMENT |
| LOW | core/pkg/opencost/bingen.go | 61 | // @bingen:generate:GPUAllocation | COMMENT |
| LOW | core/pkg/opencost/summaryallocation.go | 481 | // operations details, as well as the fact that reconciliation has been | COMMENT |
| LOW | core/pkg/opencost/summaryallocation.go | 681 | // The order of operations for aggregating a SummaryAllotionSet is as | COMMENT |
| LOW | core/pkg/opencost/summaryallocation.go | 701 | // been applied. (Used for filtering proportional amount of idle.) | COMMENT |
| LOW | core/pkg/opencost/summaryallocation.go | 921 | COMMENT | |
| LOW | core/pkg/opencost/allocation_test.go | 641 | // generated by GenerateMockAllocationSet: | COMMENT |
| LOW | core/pkg/opencost/allocation_test.go | 661 | // cluster1 subtotal 66.00 11.00 31.00 6.00 6.00 6.00 6.00 | COMMENT |
| LOW | core/pkg/opencost/allocation_test.go | 681 | // +----------------------------------------+------+------+------+------+------+------+------+ | COMMENT |
| LOW | core/pkg/opencost/allocation_test.go | 701 | // 3 Share idle | COMMENT |
| LOW | core/pkg/opencost/allocation_test.go | 1561 | }, | COMMENT |
| LOW | core/pkg/opencost/allocation_test.go | 1581 | // cluster2.ram 2.5000 = 5.00*(3.0/6.0) | COMMENT |
| LOW | core/pkg/opencost/allocation_test.go | 1621 | // cluster1.ram 12.1875 = 15.00*(13.0/16.0) | COMMENT |
| LOW | core/pkg/opencost/allocation_test.go | 1661 | results: map[string]float64{ | COMMENT |
| LOW | core/pkg/opencost/allocation_test.go | 1681 | // cluster2.cpu 2.5000 = 5.00*(3.0/6.0) | COMMENT |
| LOW | core/pkg/opencost/allocation_test.go | 1961 | // idle: 20.00 5.00 15.00 0.00 0.00 0.00 0.00 | COMMENT |
| LOW | core/pkg/opencost/allocation_test.go | 1981 | // pod-mno: (deployment2) | COMMENT |
| LOW | core/pkg/opencost/allocation_test.go | 2341 | // TODO niko | COMMENT |
| LOW | core/pkg/opencost/allocation.go | 221 | lba.Hours = 0 | COMMENT |
| LOW | core/pkg/opencost/allocation.go | 1561 | // AllocationProperty. This will only be legal if the AllocationSet is divisible by the | COMMENT |
| LOW | core/pkg/opencost/allocation.go | 1581 | // e) if there are shared resources, compute share coefficients | COMMENT |
| LOW | core/pkg/opencost/allocation.go | 1761 | // allocation only. | COMMENT |
| LOW | core/pkg/opencost/allocation.go | 1801 | err := deriveProportionalAssetResourceCosts(options, as, shareSet, parcSet) | COMMENT |
| LOW | core/pkg/opencost/allocation.go | 1821 | // | COMMENT |
| LOW | core/pkg/opencost/allocation.go | 2101 | aggSet.Insert(alloc) | COMMENT |
| LOW | core/pkg/opencost/allocation.go | 2181 | // - namespace2 36.000 | COMMENT |
| LOW | core/pkg/opencost/allocation.go | 2201 | // 3. Filter out all but namespace2 | COMMENT |
| LOW | core/pkg/opencost/mock.go | 441 | // and cluster2). Include Nodes and Disks for both, even though only | COMMENT |
| LOW | core/pkg/opencost/mock.go | 461 | // node1 35.00 20.00 15.00 0.00 0.00 | COMMENT |
| LOW | core/pkg/opencost/mock.go | 561 | COMMENT | |
| LOW | core/pkg/opencost/mock.go | 641 | // | COMMENT |
| LOW | core/pkg/opencost/mock.go | 661 | // disk3: 2.50 0.00 | COMMENT |
| LOW | core/pkg/opencost/totals.go | 341 | key := node.Properties.Cluster | COMMENT |
| 49 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | core/pkg/util/worker/worker.go | 32 | // WorkProcessor is a group of inputs that leverage a WorkerPool to run inputs through workers and | COMMENT |
| MEDIUM | core/pkg/util/worker/worker.go | 39 | // WorkGroup is a group of inputs that leverage a WorkerPool to run inputs through workers and | COMMENT |
| MEDIUM | core/pkg/protocol/protocol.go | 9 | // To provide a "static" set of utilities, we can utilize method selectors on | COMMENT |
| MEDIUM | core/pkg/model/kubemodel/kubemodel_codecs.go | 264 | // NewEncodingContextFromBuffer creates a new EncodingContext instance that will leverage an existing | COMMENT |
| MEDIUM | core/pkg/opencost/opencost_codecs_test.go | 708 | // convert bytes to reader in order to leverage io.Reader string table | COMMENT |
| MEDIUM | core/pkg/opencost/opencost_codecs.go | 278 | // NewEncodingContextFromBuffer creates a new EncodingContext instance that will leverage an existing | COMMENT |
| MEDIUM | modules/collector-source/pkg/metric/metric_codecs.go | 234 | // NewEncodingContextFromBuffer creates a new EncodingContext instance that will leverage an existing | COMMENT |
| MEDIUM | modules/collector-source/pkg/metric/store.go | 28 | // which utilize the same metric. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | .github/workflows/build-and-publish-develop.yml | 62 | # Create the new tag | COMMENT |
| MEDIUM | .github/workflows/sbom.yml | 171 | # Create a summary of the SBOM generation | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | pkg/currency/README.md | 11 | APIKey: "your-api-key", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | pkg/costmodel/costmodel_test.go | 404 | Name: "fake-name", | CODE |
| LOW | pkg/cloud/azure/azurestorageintegration.go | 33 | // Using the NetCost as a 'placeholder' for Invoiced and Amortized Net costs now, | COMMENT |
| LOW | pkg/cloud/gcp/bigqueryintegration_types.go | 240 | // Using the NetCost as a 'placeholder' for these costs now, until we can revisit and spend the time to do | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/sonar.yaml | 71 | # Check if the content matches a single number | COMMENT |
| LOW | .github/workflows/update-go-version.yaml | 36 | # Check if there are any open PRs with the go-version-update label | COMMENT |