AI Slop Code Risk Monitor

btcsuite/btcd

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

An alternative full node bitcoin implementation written in Go (golang)

3.8 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for btcsuite/btcd, a Go project with 6,717 GitHub stars. SynthScan examined 214,110 lines of code across 656 source files, recording 726 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 3.8 (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.

3.8
Adjusted Signal
3.8
Raw Pattern Score
100%
Time Factor
2026-10-21
Last Push
6.7K
Stars
Go
Language
214.1K
Lines of Code
656
Files
726
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 16.9/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 0.4/100 · LOW

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

PR Review Velocity Impact 16.1/100 · LOW

Which changes need focused human review? 726 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 0MEDIUM 12LOW 714

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 726 distinct pattern matches across 8 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 Block627 hits · 618 pts
SeverityFileLineSnippetContext
LOWlog.go41// Loggers per subsystem. A single backend logger is created and all subsystemCOMMENT
LOWconfig.go421// loadConfig initializes and parses the config using a config file and commandCOMMENT
LOWserver.go561}COMMENT
LOWserver.go721COMMENT
LOWserver.go801 // resources with unusually large inventory queries.COMMENT
LOWserver.go1321COMMENT
LOWrpcserver.go61 // uint256Size is the number of bytes needed to represent an unsignedCOMMENT
LOWrpcserver.go1561 // was last generated or create a new one.COMMENT
LOWrpcserver.go2021COMMENT
LOWrpcserver.go4161COMMENT
LOWrpcserver.go4721// The interface contract requires that all of these methods are safe forCOMMENT
LOWrpcserver.go4761 // PersistentPeers returns an array consisting of all the persistentCOMMENT
LOWrpcserver.go4781}COMMENT
LOWrpcserver.go4801 SyncPeerID() int32COMMENT
LOWrpcwebsocket.go41 // independent of the send channel buffer.COMMENT
LOWrpcwebsocket.go141// are interested in. When an event happens elsewhere in the code such asCOMMENT
LOWrpcwebsocket.go221COMMENT
LOWrpcwebsocket.go1201// wsResponse houses a message to send to a connected websocket client asCOMMENT
LOWrpcwebsocket.go1441 continueCOMMENT
LOWrpcwebsocket.go1801COMMENT
LOWrpcwebsocket.go1941// to the client having already been disconnected or dropped.COMMENT
LOWrpcwebsocket.go2681 // range were successfully fetched and a stop blockCOMMENT
LOWrpcwebsocket.go2741 }COMMENT
LOWupnp.go1package mainCOMMENT
LOWupnp.go21// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTCOMMENT
LOWrpcadapters.go41// interface implementation.COMMENT
LOWrpcadapters.go121// applies to both inbound and outbound peers. Attempting to remove an id thatCOMMENT
LOWrpcadapters.go201COMMENT
LOWrpcadapters.go241COMMENT
LOWrpcadapters.go281// the provided locators until the provided stop hash or the current tip isCOMMENT
LOWbtcjson/register.go21const (COMMENT
LOWbtcjson/register.go121 return falseCOMMENT
LOWbtcjson/register.go141// - The order of the positional parameters in the marshalled JSON will be inCOMMENT
LOWbtcjson/jsonrpcerr.go141COMMENT
LOWbtcjson/chainsvrresults.go921COMMENT
LOWbtcjson/chainsvrresults.go941 // false).COMMENT
LOWbtcjson/walletsvrresults.go41 HDMasterFingerprint *string `json:"hdmasterfingerprint,omitempty"`COMMENT
LOWbtcjson/walletsvrcmds.go921// ImportMultiRequest defines the request struct to be passed to theCOMMENT
LOWbtcjson/walletsvrcmds.go961 // (as an int) or the range (as []int{begin, end}) to import.COMMENT
LOWbtcjson/cmdparse.go501// to be passed unaltered. In particular, the following conversions areCOMMENT
LOWbtcjson/export_test.go1// Copyright (c) 2014 The btcsuite developersCOMMENT
LOWbtcjson/chainsvrwsntfns.go1// Copyright (c) 2014-2017 The btcsuite developersCOMMENT
LOWbtcjson/chainsvrwsntfns.go21 //COMMENT
LOWbtcjson/chainsvrwsntfns.go41COMMENT
LOWbtcjson/chainsvrwsntfns.go61 // Deprecated: Not used with rescanblocks command.COMMENT
LOWbtcjson/walletsvrwsntfns.go1// Copyright (c) 2014 The btcsuite developersCOMMENT
LOWbtcjson/help.go461// result types given a map to provide the appropriate keys for the methodCOMMENT
LOWbtcjson/help.go481// "<method>-<lowerfieldname>" Description for each command argumentCOMMENT
LOWbtcjson/btcdextcmds.go1// Copyright (c) 2014-2016 The btcsuite developersCOMMENT
LOWbtcjson/btcdextcmds.go121//COMMENT
LOWbtcjson/submitpackage.go1package btcjsonCOMMENT
LOWbtcjson/submitpackage.go21// - Limits: Subject to node limits on package size (e.g., max 25 txs) andCOMMENT
LOWbtcjson/submitpackage.go41// This RPC is experimental. Refer to Bitcoin Core's `doc/policy/packages.md`COMMENT
LOWbtcjson/submitpackage.go81type JsonSubmitPackageTxResult struct {COMMENT
LOWbtcjson/submitpackage.go141COMMENT
LOWcmd/btcctl/config.go181// line options.COMMENT
LOWdatabase/error.go21COMMENT
LOWdatabase/error.go61 // ErrTxNotWritable indicates an operation that requires write access toCOMMENT
LOWdatabase/error.go81 // ErrKeyRequired indicates at attempt to insert a zero-length key.COMMENT
LOWdatabase/error.go101COMMENT
567 more matches not shown…
Structural Annotation Overuse70 hits · 118 pts
SeverityFileLineSnippetContext
LOWbtcjson/register.go153// NOTE: This function only needs to be able to examine the structure of theCOMMENT
LOW⚡btcjson/chainsvrresults.go521 // Step 1: Create type aliases of the original struct.COMMENT
LOW⚡btcjson/chainsvrresults.go524 // Step 2: Create an anonymous struct with raw replacements for the specialCOMMENT
LOW⚡btcjson/chainsvrresults.go535 // Step 3: Unmarshal the data into the anonymous struct.COMMENT
LOW⚡btcjson/chainsvrresults.go540 // Step 4: Convert the raw fields to the desired typesCOMMENT
LOW⚡btcjson/walletsvrresults.go72 // Step 1: Create type aliases of the original struct, including theCOMMENT
LOW⚡btcjson/walletsvrresults.go77 // Step 2: Create an anonymous struct with raw replacements for the specialCOMMENT
LOW⚡btcjson/walletsvrresults.go90 // Step 3: Unmarshal the data into the anonymous struct.COMMENT
LOW⚡btcjson/walletsvrresults.go95 // Step 4: Convert the raw fields to the desired typesCOMMENT
LOW⚡btcjson/jsonrpc.go107 // Step 1: Create a type alias of the original struct.COMMENT
LOW⚡btcjson/jsonrpc.go110 // Step 2: Create an anonymous struct with raw replacements for the specialCOMMENT
LOW⚡btcjson/jsonrpc.go120 // Step 3: Unmarshal the data into the anonymous struct.COMMENT
LOW⚡btcjson/jsonrpc.go126 // Step 4: Convert the raw fields to the desired typesCOMMENT
LOWdatabase/ffldb/db.go1053// NOTE: This function must only be called on a writable transaction. Since itCOMMENT
LOWdatabase/ffldb/db.go1090// NOTE: This function must only be called on a writable transaction. Since itCOMMENT
LOWdatabase/ffldb/db.go1108// NOTE: This function must only be called on a writable transaction. Since itCOMMENT
LOWdatabase/ffldb/blockio.go399// NOTE: This function MUST be called with the write cursor current file lockCOMMENT
LOWchainhash/hash.go190// NOTE: This function accepts short and odd-length hex strings and pads them.COMMENT
LOWchainhash/hash.go216// NOTE: This function accepts short and odd-length hex strings and pads them.COMMENT
LOWwire/msgtx.go1160// NOTE: This function is exported in order to allow txscript to compute theCOMMENT
LOWwire/msgtx.go1174// NOTE: This function is exported in order to allow txscript to compute theCOMMENT
LOWconnmgr/connmanager.go561// NOTE: This method can also be used to cancel a lingering connection attemptCOMMENT
LOWrpcclient/wallet.go558// NOTE: This function requires to the wallet to be unlocked. See theCOMMENT
LOWrpcclient/wallet.go591// NOTE: This function requires to the wallet to be unlocked. See theCOMMENT
LOWrpcclient/wallet.go645// NOTE: This function requires to the wallet to be unlocked. See theCOMMENT
LOWrpcclient/wallet.go675// NOTE: This function requires to the wallet to be unlocked. See theCOMMENT
LOWrpcclient/wallet.go708// NOTE: This function requires to the wallet to be unlocked. See theCOMMENT
LOWrpcclient/wallet.go764// NOTE: This function requires to the wallet to be unlocked. See theCOMMENT
LOWrpcclient/wallet.go797// NOTE: This function requires to the wallet to be unlocked. See theCOMMENT
LOWrpcclient/wallet.go832// NOTE: This function requires to the wallet to be unlocked. See theCOMMENT
LOWrpcclient/wallet.go2327// NOTE: This function requires to the wallet to be unlocked. See theCOMMENT
LOWrpcclient/wallet.go2372// NOTE: This function requires to the wallet to be unlocked. See theCOMMENT
LOWrpcclient/wallet.go2423// NOTE: This function requires to the wallet to be unlocked. See theCOMMENT
LOWpsbt/updater.go83// NOTE: This function does *not* validate the ECDSA signature itself.COMMENT
LOWpsbt/taproot.go102// NOTE: This function does not account for the size of the BIP32 child indexes,COMMENT
LOWintegration/rpctest/rpc_harness.go136// NOTE: This function is safe for concurrent access.COMMENT
LOWintegration/rpctest/rpc_harness.go253// NOTE: This method and TearDown should always be called from the sameCOMMENT
LOWintegration/rpctest/rpc_harness.go340// NOTE: This method and SetUp should always be called from the same goroutineCOMMENT
LOW⚡peer/p2pdowngrader_test.go169 // Step 1: Mark A, B, C.COMMENT
LOW⚡peer/p2pdowngrader_test.go175 // Step 2: Mark A again. This should move A to the frontCOMMENT
LOW⚡peer/p2pdowngrader_test.go179 // Step 3: Mark D. This should evict B (which is now theCOMMENT
LOWtxscript/sighash.go75// NOTE: This function is only valid for version 0 scripts. Since the functionCOMMENT
LOWtxscript/sighash.go625// NOTE: This function is able to compute the sighash of scripts that contain aCOMMENT
LOWtxscript/standard.go192// NOTE: This function is only valid for version 0 opcodes. Since the functionCOMMENT
LOWtxscript/standard.go232// NOTE: This function is only valid for version 0 scripts. The returnedCOMMENT
LOWtxscript/standard.go308// NOTE: This function is only valid for version 0 scripts. It will alwaysCOMMENT
LOWtxscript/standard.go320// NOTE: This function is only valid for version 0 scripts. Since the functionCOMMENT
LOWtxscript/standard.go339// NOTE: This function is only valid for version 0 scripts. Since the functionCOMMENT
LOWtxscript/standard.go528// NOTE: This function is only valid for version 0 scripts. It will alwaysCOMMENT
LOWtxscript/standard.go632// NOTE: This function is only valid for version 0 scripts. Since the functionCOMMENT
LOWtxscript/standard.go784// NOTE: This function is only valid for version 0 scripts. Since the functionCOMMENT
LOWtxscript/standard.go871// NOTE: This function is only valid for version 0 scripts. Since the functionCOMMENT
LOWtxscript/sigcache.go59// NOTE: This function is safe for concurrent access. Readers won't be blockedCOMMENT
LOWtxscript/sigcache.go74// NOTE: This function is safe for concurrent access. Writers will blockCOMMENT
LOWtxscript/sign.go360// NOTE: This function is only valid for version 0 scripts. Since the functionCOMMENT
LOWtxscript/sign.go482// NOTE: This function is only valid for version 0 scripts. Since the functionCOMMENT
LOWtxscript/sign.go592// NOTE: This function is only valid for version 0 scripts. Since the functionCOMMENT
LOWtxscript/script.go46// NOTE: This function is only valid for version 0 opcodes. Since the functionCOMMENT
LOWtxscript/script.go154// NOTE: This function is only valid for version 0 scripts. Since the functionCOMMENT
LOWtxscript/script.go184// NOTE: This function is only valid for version 0 scripts. Since the functionCOMMENT
10 more matches not shown…
Verbosity Indicators15 hits · 34 pts
SeverityFileLineSnippetContext
LOW⚡btcjson/chainsvrresults.go521 // Step 1: Create type aliases of the original struct.COMMENT
LOW⚡btcjson/chainsvrresults.go524 // Step 2: Create an anonymous struct with raw replacements for the specialCOMMENT
LOW⚡btcjson/chainsvrresults.go535 // Step 3: Unmarshal the data into the anonymous struct.COMMENT
LOW⚡btcjson/chainsvrresults.go540 // Step 4: Convert the raw fields to the desired typesCOMMENT
LOW⚡btcjson/walletsvrresults.go72 // Step 1: Create type aliases of the original struct, including theCOMMENT
LOW⚡btcjson/walletsvrresults.go77 // Step 2: Create an anonymous struct with raw replacements for the specialCOMMENT
LOW⚡btcjson/walletsvrresults.go90 // Step 3: Unmarshal the data into the anonymous struct.COMMENT
LOW⚡btcjson/walletsvrresults.go95 // Step 4: Convert the raw fields to the desired typesCOMMENT
LOW⚡btcjson/jsonrpc.go107 // Step 1: Create a type alias of the original struct.COMMENT
LOW⚡btcjson/jsonrpc.go110 // Step 2: Create an anonymous struct with raw replacements for the specialCOMMENT
LOW⚡btcjson/jsonrpc.go120 // Step 3: Unmarshal the data into the anonymous struct.COMMENT
LOW⚡btcjson/jsonrpc.go126 // Step 4: Convert the raw fields to the desired typesCOMMENT
LOW⚡peer/p2pdowngrader_test.go169 // Step 1: Mark A, B, C.COMMENT
LOW⚡peer/p2pdowngrader_test.go175 // Step 2: Mark A again. This should move A to the frontCOMMENT
LOW⚡peer/p2pdowngrader_test.go179 // Step 3: Mark D. This should evict B (which is now theCOMMENT
Decorative Section Separators4 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUM⚡wire/msgtx.go114// ┌─────────┬────────────────────┬─────────────┬─────┐COMMENT
MEDIUM⚡wire/msgtx.go117// └─────────┴────────────────────┴─────────────┴─────┘COMMENT
MEDIUM⚡wire/msgtx.go121// ┌── FLAG ─────────────┬────────┐COMMENT
MEDIUM⚡wire/msgtx.go124// └─────────────────────┴────────┘COMMENT
AI Slop Vocabulary6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMwire/msgtx.go733// the transaction encoding format within r MUST NOT utilize the newCOMMENT
MEDIUMtxscript/engine_debug_test.go27 // We use a simple script that will utilize both the stack and altCOMMENT
MEDIUMtxscript/sighash.go470 // We'll utilize this buffer throughout to incrementally calculateCOMMENT
MEDIUMblockchain/chain.go796 // we'll fetch it as is so the indexers can utilize if needed.COMMENT
MEDIUMblockchain/compress.go435// Essentially the compression is achieved by splitting the value into anCOMMENT
MEDIUMblockchain/indexers/addrindex.go569 // P2WSH outputs utilize a 32-byte data push created by hashingCOMMENT
Slop Phrases2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMdatabase/doc.go78As discussed above, all of the functions which are used to manipulate key/valueCODE
MEDIUMtxscript/sigcache.go88 // starting point of Go's map iteration. It's worth noting thatCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtxscript/template.go206// Example usage:COMMENT
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdocs/conf.py16CODE