Framework for building performant, customizable blockchains with native interoperability
This report summarizes scanner evidence for cosmos/cosmos-sdk, a Go project with 7,081 GitHub stars. SynthScan examined 1,208,167 lines of code across 2797 source files, recording 2147 pattern matches distributed across 9 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.
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? 2132 finding(s).
Are imports declared and package/API names verified? 15 finding(s).
Are wrappers, guards, and repeated structures necessary? 0 finding(s).
Which changes need focused human review? 2147 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 2147 distinct pattern matches across 9 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 | iavl/internal/unsafe_bytes.go | 1 | package internal | COMMENT |
| LOW | iavl/internal/mem_node_balance_test.go | 301 | ), | COMMENT |
| LOW | iavl/internal/mem_node_balance_test.go | 341 | // [X.1.4] Z.1.5 | COMMENT |
| LOW | iavl/internal/mem_node_balance_test.go | 361 | newTestBranchNode(1, 3, | COMMENT |
| LOW | iavl/internal/leaf_layout.go | 21 | type LeafLayout struct { | COMMENT |
| LOW | iavl/internal/pin.go | 1 | package internal | COMMENT |
| LOW | iavl/internal/mem_node_balance.go | 1 | package internal | COMMENT |
| LOW | iavl/internal/mem_node_balance.go | 21 | // to restore the AVL balance invariant. | COMMENT |
| LOW | iavl/internal/mem_node_balance.go | 41 | // The four cases handled: | COMMENT |
| LOW | iavl/internal/mem_node_balance.go | 61 | // [W] R copy of Q [Y] [W] [X] [Y] [Z] | COMMENT |
| LOW | iavl/internal/mem_node_balance.go | 81 | // P (mutable) P copy of R | COMMENT |
| LOW | iavl/internal/mem_node_balance.go | 181 | return 0, err | COMMENT |
| LOW | iavl/internal/mem_node_balance.go | 221 | return b | COMMENT |
| LOW | iavl/internal/mem_node_balance.go | 261 | } | COMMENT |
| LOW | iavl/internal/branch_layout.go | 21 | type BranchLayout struct { | COMMENT |
| LOW | iavl/internal/branch_layout.go | 41 | COMMENT | |
| LOW | iavl/internal/invariants.go | 1 | package internal | COMMENT |
| LOW | iavl/internal/node_pointer.go | 21 | } | COMMENT |
| LOW | iavl/internal/node.go | 41 | // Get traverses this subtree to find the value associated with the given key. | COMMENT |
| LOW | crypto/armor.go | 41 | const ( | COMMENT |
| LOW | crypto/ledger/ledger_secp256k1.go | 101 | // | COMMENT |
| LOW | crypto/ledger/ledger_secp256k1.go | 121 | // device, err := ledger.FindLedgerCosmosUserApp() | COMMENT |
| LOW | crypto/ledger/encode_test.go | 21 | require.Contains(t, string(js), `"value":`) | COMMENT |
| LOW | crypto/hd/hdpath_test.go | 261 | fmt.Println(hex.EncodeToString(priv)) | COMMENT |
| LOW | crypto/hd/hd.pb.go | 21 | // This is a compile-time assertion to ensure that this generated file | COMMENT |
| LOW | crypto/hd/doc.go | 1 | // Package hd provides support for hierarchical deterministic wallets generation and derivation. | COMMENT |
| LOW | crypto/keyring/record.pb.go | 21 | COMMENT | |
| LOW | crypto/keyring/doc.go | 1 | // Package keyring provides common key management API. | COMMENT |
| LOW | crypto/keyring/doc.go | 21 | // | COMMENT |
| LOW | crypto/keyring/keyring.go | 941 | } | COMMENT |
| LOW | crypto/keyring/keyring_linux.go | 81 | // this is private as it is meant to be here for SDK devs convenience | COMMENT |
| LOW | crypto/keys/internal/benchmarking/bench.go | 61 | // met: | COMMENT |
| LOW | crypto/keys/internal/benchmarking/bench.go | 81 | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | COMMENT |
| LOW | crypto/keys/secp256k1/internal/secp256k1/curve.go | 1 | // Copyright 2010 The Go Authors. All rights reserved. | COMMENT |
| LOW | crypto/keys/secp256k1/internal/secp256k1/curve.go | 21 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | COMMENT |
| LOW | crypto/keys/secp256k1/internal/secp256k1/curve.go | 61 | // This code is from https://github.com/ThePiachu/GoBit and implements | COMMENT |
| LOW | crypto/keys/secp256k1/internal/secp256k1/ext.h | 1 | // Copyright 2015 Jeffrey Wilcke, Felix Lange, Gustav Simonsson. All rights reserved. | COMMENT |
| LOW | crypto/keys/secp256k1/internal/secp256k1/ext.h | 61 | } | COMMENT |
| LOW | crypto/keys/secp256k1/internal/secp256k1/dummy.go | 1 | //go:build dummy | COMMENT |
| LOW | crypto/keys/secp256k1/internal/secp256k1/secp256.go | 1 | // Copyright 2015 Jeffrey Wilcke, Felix Lange, Gustav Simonsson. All rights reserved. | COMMENT |
| LOW | …eys/secp256k1/internal/secp256k1/libsecp256k1/dummy.go | 1 | //go:build dummy | COMMENT |
| LOW | …256k1/internal/secp256k1/libsecp256k1/include/dummy.go | 1 | //go:build dummy | COMMENT |
| LOW | …k1/internal/secp256k1/libsecp256k1/include/secp256k1.h | 101 | # endif | COMMENT |
| LOW | …k1/internal/secp256k1/libsecp256k1/include/secp256k1.h | 121 | # define SECP256K1_API | COMMENT |
| LOW | …k1/internal/secp256k1/libsecp256k1/include/secp256k1.h | 141 | # define SECP256K1_ARG_NONNULL(_x) | COMMENT |
| LOW | …256k1/internal/secp256k1/libsecp256k1/contrib/dummy.go | 1 | //go:build dummy | COMMENT |
| LOW | …56k1/internal/secp256k1/libsecp256k1/src/scalar_impl.h | 1 | /********************************************************************** | COMMENT |
| LOW | …internal/secp256k1/libsecp256k1/src/scalar_8x32_impl.h | 21 | #define SECP256K1_N_C_0 (~SECP256K1_N_0 + 1) | COMMENT |
| LOW | …cp256k1/internal/secp256k1/libsecp256k1/src/num_impl.h | 21 | #error "Please select num implementation" | COMMENT |
| LOW | …/secp256k1/internal/secp256k1/libsecp256k1/src/field.h | 21 | #if defined HAVE_CONFIG_H | COMMENT |
| LOW | …256k1/internal/secp256k1/libsecp256k1/src/field_impl.h | 1 | /********************************************************************** | COMMENT |
| LOW | …6k1/internal/secp256k1/libsecp256k1/src/basic-config.h | 1 | /********************************************************************** | COMMENT |
| LOW | …6k1/internal/secp256k1/libsecp256k1/src/basic-config.h | 21 | #undef USE_SCALAR_8X32 | COMMENT |
| LOW | …ys/secp256k1/internal/secp256k1/libsecp256k1/src/num.h | 1 | /********************************************************************** | COMMENT |
| LOW | …/internal/secp256k1/libsecp256k1/src/field_5x52_impl.h | 1 | /********************************************************************** | COMMENT |
| LOW | …nternal/secp256k1/libsecp256k1/src/ecmult_const_impl.h | 1 | /********************************************************************** | COMMENT |
| LOW | …p256k1/internal/secp256k1/libsecp256k1/src/secp256k1.c | 1 | /********************************************************************** | COMMENT |
| LOW | …secp256k1/internal/secp256k1/libsecp256k1/src/scalar.h | 1 | /********************************************************************** | COMMENT |
| LOW | …p256k1/internal/secp256k1/libsecp256k1/src/hash_impl.h | 1 | /********************************************************************** | COMMENT |
| LOW | …56k1/internal/secp256k1/libsecp256k1/src/ecmult_impl.h | 21 | # define WINDOW_A 5 | COMMENT |
| 2048 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | enterprise/poa/x/poa/keeper/validator_test.go | 752 | err := f.poaKeeper.validators.Indexes.Power.Walk(f.ctx, ranger, func(power int64, consAddr sdk.ConsAddress) (bool, err | CODE |
| CRITICAL | enterprise/poa/x/poa/keeper/validator_test.go | 934 | err := f.poaKeeper.validators.Indexes.Power.Walk(f.ctx, ranger, func(power int64, consAddr sdk.ConsAddress) (bool, err | CODE |
| CRITICAL | enterprise/poa/x/poa/keeper/validator_test.go | 1046 | err = f.poaKeeper.validators.Indexes.Power.Walk(f.ctx, ranger, func(power int64, consAddr sdk.ConsAddress) (bool, erro | CODE |
| CRITICAL | enterprise/poa/x/poa/keeper/validator_test.go | 1072 | err = f.poaKeeper.validators.Indexes.Power.Walk(f.ctx, ranger, func(power int64, consAddr sdk.ConsAddress) (bool, erro | CODE |
| CRITICAL | enterprise/poa/x/poa/keeper/validator_test.go | 2021 | resolved, err := f.poaKeeper.validators.Indexes.OperatorAddress.MatchExact(f.ctx, operatorAddr.String()) | CODE |
| CRITICAL | enterprise/poa/x/poa/keeper/validator_test.go | 2033 | require.NoError(t, f.poaKeeper.validators.Indexes.Power.Walk(f.ctx, nil, func(_ int64, consAddr sdk.ConsAddress) (bool | CODE |
| CRITICAL | enterprise/poa/x/poa/keeper/validator_test.go | 2112 | resolved, err := f.poaKeeper.validators.Indexes.OperatorAddress.MatchExact(f.ctx, operatorAddr.String()) | CODE |
| CRITICAL | enterprise/poa/x/poa/keeper/msg_server_test.go | 1944 | resolved, err := f.poaKeeper.validators.Indexes.OperatorAddress.MatchExact(f.ctx, operatorAddr.String()) | CODE |
| CRITICAL | enterprise/poa/x/poa/keeper/msg_server_test.go | 1982 | resolved, err := f.poaKeeper.validators.Indexes.OperatorAddress.MatchExact(f.ctx, operatorAddr.String()) | CODE |
| CRITICAL | x/auth/keeper/grpc_query.go | 37 | address, err := s.k.Accounts.Indexes.Number.MatchExact(ctx, accID) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | codec/proto_codec.go | 23 | // ProtoCodecMarshaler defines an interface for codecs that utilize Protobuf for both | COMMENT |
| MEDIUM | codec/yaml.go | 8 | // MarshalYAML marshals toPrint using JSONCodec to leverage specialized MarshalJSON methods | COMMENT |
| MEDIUM | server/cmd/execute.go | 24 | // getting and setting the client.Context. Ideally, we utilize | COMMENT |
| MEDIUM | math/unsafe/rand.go | 16 | // They all utilize math/rand's prng internally. | COMMENT |
| MEDIUM | baseapp/grpcserver.go | 108 | // false negatives and ensures more robust query handling. While bypassing the header check is generally preferred to a | COMMENT |
| MEDIUM | telemetry/config.go | 63 | // Note that a late initialization of the open telemetry SDK causes meters/tracers to utilize a delegate, which incurs | COMMENT |
| MEDIUM | client/tx_config.go | 26 | // TxConfig defines an interface a client can utilize to generate an | COMMENT |
| MEDIUM | store/cachekv/store_bench_test.go | 119 | // Essentially the iterator will never be valid, in that it should never run. | COMMENT |
| MEDIUM | store/rootmulti/store.go | 789 | // If the request's height is the latest height we've committed, then utilize | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/systemtests/system.go | 1246 | // Example usage: | COMMENT |
| LOW | testutil/simsx/environment.go | 193 | // Example usage: | COMMENT |
| LOW | testutil/simsx/slices.go | 9 | // Example usage: | COMMENT |
| LOW | x/bank/keeper/send.go | 486 | // Example usage: | COMMENT |
| LOW | x/tx/signing/aminojson/encoder.go | 82 | // Usage example: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | enterprise/poa/tests/systemtests/poa_test.go | 886 | // Step 1: Admin creates validators with initial power | COMMENT |
| LOW | enterprise/poa/tests/systemtests/poa_test.go | 910 | // Step 2: Zero them out — they become inactive | COMMENT |
| LOW | enterprise/poa/tests/systemtests/poa_test.go | 938 | // Step 3: In ONE tx, resurrect the zeroed validators and remove the entire | COMMENT |
| LOW | .github/workflows/test.yml | 327 | # NOTE: The following jobs are used to test the Cosmos SDK Go submodules. | COMMENT |
| LOW | x/upgrade/plan/downloader.go | 26 | // NOTE: This functions does not check the provided url for validity. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | x/feegrant/keeper/keeper.go | 232 | // UseGrantedFees will try to pay the given fee from the granter's account as requested by the grantee | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | types/coin_test.go | 78 | loremIpsum := `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam viverra dui vel nulla aliquet, non dictum e | CODE |
| LOW | types/coin_test.go | 78 | loremIpsum := `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam viverra dui vel nulla aliquet, non dictum e | CODE |
| LOW | client/docs/swagger-ui/swagger-ui.js | 2 | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.am | CODE |
| LOW | client/docs/swagger-ui/swagger-ui-es-bundle-core.js | 2 | module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[ | CODE |
| LOW | client/docs/swagger-ui/swagger-ui-standalone-preset.js | 2 | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.am | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | enterprise/poa/tests/systemtests/poa_test.go | 886 | // Step 1: Admin creates validators with initial power | COMMENT |
| LOW | enterprise/poa/tests/systemtests/poa_test.go | 910 | // Step 2: Zero them out — they become inactive | COMMENT |
| LOW | enterprise/poa/tests/systemtests/poa_test.go | 938 | // Step 3: In ONE tx, resurrect the zeroed validators and remove the entire | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | AGENTS.md | 44 | ## Agent guardrails | COMMENT |