AI Slop Code Risk Monitor

unionlabs/union

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

The trust-minimized, zero-knowledge bridging protocol, designed for censorship resistance, extremely high security, and usage in decentralized finance.

1.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for unionlabs/union, a Rust project with 73,727 GitHub stars. SynthScan examined 510,793 lines of code across 2839 source files, recording 775 pattern matches distributed across 12 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.

1.7
Adjusted Signal
1.7
Raw Pattern Score
100%
Time Factor
2026-07-25
Last Push
73.7K
Stars
Rust
Language
510.8K
Lines of Code
2.8K
Files
775
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 7.3/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.9/100 · LOW

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

Agent Over-Engineering Ratio 0.3/100 · LOW

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

PR Review Velocity Impact 8.2/100 · LOW

Which changes need focused human review? 775 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 9HIGH 0MEDIUM 12LOW 754

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 775 distinct pattern matches across 12 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 Block720 hits · 717 pts
SeverityFileLineSnippetContext
LOWCargo.toml581# # https://aptos.dev/en/build/sdks/rust-sdkCOMMENT
LOWts-sdk-evm/src/internal/zkgmClient.ts301 // Effect.flatMap(COMMENT
LOWsui/muno/Move.toml21muno = "0x0"COMMENT
LOWsui/u/Move.toml21u = "0x0"COMMENT
LOWcosmwasm/lightclient/gno/src/client.rs301COMMENT
LOWcosmwasm/lightclient/gno/src/client.rs321// use unionlabs::{encoding::EncodeAs, google::protobuf::any::Any};COMMENT
LOWcosmwasm/lightclient/gno/src/client.rs341// format!(COMMENT
LOWcosmwasm/lightclient/gno/src/client.rs361COMMENT
LOWcosmwasm/lightclient/gno/src/client.rs381// &fs::read_to_string("src/test/substitute_consensus_state.json").unwrap(),COMMENT
LOWcosmwasm/lightclient/gno/src/client.rs401// &wasm_client_state,COMMENT
LOWcosmwasm/lightclient/gno/src/client.rs421// )COMMENT
LOWcosmwasm/lightclient/gno/src/client.rs441// fn migrate_client_store_fails_when_invalid_change() {COMMENT
LOWcosmwasm/lightclient/gno/src/client.rs461// };COMMENT
LOWcosmwasm/lightclient/gno/src/client.rs481// }COMMENT
LOWcosmwasm/lightclient/movement/src/lib.rs1pub mod client;COMMENT
LOWcosmwasm/lightclient/movement/src/lib.rs21 // // )COMMENT
LOWcosmwasm/lightclient/movement/src/lib.rs41 // let state_proof: StateProof = serde_json::from_str(COMMENT
LOWcosmwasm/lightclient/movement/src/lib.rs61COMMENT
LOWcosmwasm/lightclient/movement/src/lib.rs81 // );COMMENT
LOWcosmwasm/lightclient/attested/src/execute.rs121 Ok(Response::new().add_event(event))COMMENT
LOWcosmwasm/lightclient/tendermint/src/client.rs401 .chain(key)COMMENT
LOWcosmwasm/lightclient/tendermint/src/client.rs421// FROZEN_HEIGHT,COMMENT
LOWcosmwasm/lightclient/tendermint/src/client.rs441// );COMMENT
LOWcosmwasm/lightclient/tendermint/src/client.rs461// );COMMENT
LOWcosmwasm/lightclient/tendermint/src/client.rs481// .unwrap(),COMMENT
LOWcosmwasm/lightclient/tendermint/src/client.rs501// save_states_to_migrate_store(COMMENT
LOWcosmwasm/lightclient/tendermint/src/client.rs521// deps.as_ref(),COMMENT
LOWcosmwasm/lightclient/tendermint/src/client.rs541COMMENT
LOWcosmwasm/lightclient/tendermint/src/client.rs561// s.upgrade_path.push(String::new()),COMMENT
LOWcosmwasm/lightclient/tendermint/src/client.rs581// );COMMENT
LOWcosmwasm/lightclient/cometbls/src/client.rs321}COMMENT
LOWcosmwasm/lightclient/cometbls/src/client.rs341COMMENT
LOWcosmwasm/lightclient/cometbls/src/client.rs361// )COMMENT
LOWcosmwasm/lightclient/cometbls/src/client.rs381// WasmClientState,COMMENT
LOWcosmwasm/lightclient/cometbls/src/client.rs401// }COMMENT
LOWcosmwasm/lightclient/cometbls/src/client.rs421// );COMMENT
LOWcosmwasm/lightclient/cometbls/src/client.rs441// );COMMENT
LOWcosmwasm/lightclient/cometbls/src/client.rs461// wasm_consensus_state,COMMENT
LOWcosmwasm/lightclient/cometbls/src/client.rs481// &state,COMMENT
LOWcosmwasm/lightclient/cometbls/src/client.rs501COMMENT
LOWcosmwasm/lightclient/berachain/src/errors.rs81COMMENT
LOWcosmwasm/cw20-base/src/msg.rs41#[cw_serde]COMMENT
LOWcosmwasm/deployer/src/main.rs81 #[arg(long)]COMMENT
LOW…sm/osmosis-tokenfactory-token-minter/src/bank_types.rs41/// - Metadata:COMMENT
LOWcosmwasm/on-zkgm-call-proxy/src/lib.rs61 /// Funds that should be forwarded to the destination contract.COMMENT
LOWcosmwasm/core/msg/src/lightclient.rs41#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]COMMENT
LOWcosmwasm/core/msg/src/lightclient.rs61 #[serde(untagged)]COMMENT
LOWcosmwasm/core/msg/src/lightclient.rs161#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]COMMENT
LOWcosmwasm/core/msg/src/lightclient.rs181 pub counterparty_chain_id: String,COMMENT
LOWcosmwasm/core/msg/src/lightclient.rs201pub enum VerifyCreationResponseEvent {COMMENT
LOWcosmwasm/core/light-client-interface/src/lib.rs441 type ClientState: Decode<Self::Encoding, Error: Error + 'static>COMMENT
LOWcosmwasm/app/ucs03-zkgm/src/state.rs41/// Temporarily stores the acknowledgement from packet execution.COMMENT
LOWcosmwasm/app/ucs03-zkgm/src/contract.rs1521 channel_id: packet.destination_channel_id,COMMENT
LOWcosmwasm/app/ucs03-zkgm/src/contract.rs1541 // account, and queue the *same* sub messages. In this case, the instantiation will return withCOMMENT
LOWcosmwasm/app/ucs03-zkgm/src/msg.rs21COMMENT
LOWcosmwasm/app/ucs03-zkgm/src/msg.rs41 pub dummy_code_id: u64,COMMENT
LOWcosmwasm/access-managed/src/lib.rs1//! CosmWasm implementation of [OpenZeppelin][oz]'s [`AccessManaged.sol`][am].COMMENT
LOWcosmwasm/cw20-wrapped-tokenfactory/src/msg.rs81 /// Returns metadata on the contract - name, decimals, supply, etc.COMMENT
LOWcosmwasm/cw-escrow-vault/src/msg.rs21COMMENT
LOWcosmwasm/ucs03-zkgm-token-minter-api/src/lib.rs61 #[serde(alias = "cw20_base_code_id")]COMMENT
660 more matches not shown…
Hallucination Indicators9 hits · 90 pts
SeverityFileLineSnippetContext
CRITICALcosmwasm/lightclient/parlia/src/client.rs274 Timestamp::from_nanos(self.ctx.env.block.time.nanos())CODE
CRITICALvoyager/plugins/client-update/parlia/src/main.rs461 logs_bloom: Box::new(block.header.inner.logs_bloom.0.into()),CODE
CRITICALapp2/src/lib/dashboard/components/Leaderboard.svelte109 ? dashboard.leaderboard.value.leaderboard.value.slice(0, validatedShow)CODE
CRITICALe2e/access-manager-tests/src/main.rs417 block.block.header.time.seconds.inner() as u64 > when.get()CODE
CRITICALe2e/access-manager-tests/src/main.rs523 block.block.header.time.seconds.inner() as u64 > when.get()CODE
CRITICALe2e/access-manager-tests/src/main.rs626 block.block.header.time.seconds.inner() as u64 > when.get()CODE
CRITICALe2e/access-manager-tests/src/main.rs760 block.block.header.time.seconds.inner() as u64 > when.get()CODE
CRITICALe2e/access-manager-tests/src/main.rs905 block.block.header.time.seconds.inner() as u64 > grant_role_schedule_when.get()CODE
CRITICALe2e/access-manager-tests/src/main.rs906 && block.block.header.time.seconds.inner() as u64 > execute_schedule_when.get()CODE
Hyper-Verbose Identifiers22 hits · 22 pts
SeverityFileLineSnippetContext
LOWtools/union-test/src/evm.rs1068 function predictStakeManagerAddress() public view returns (ZkgmERC721) ;CODE
LOWapp2/src/lib/dashboard/errors.ts57export function mapSupabaseErrorToCustomError(CODE
LOWapp2/src/lib/dashboard/components/WalletDisplay.svelte171function handleRemoveSelectedWallets() {CODE
LOWapp2/src/lib/dashboard/components/WalletDialog.svelte110function selectCosmosAndSetDefaults() {CODE
LOWapp2/src/lib/dashboard/components/Leaderboard.svelte39async function validateAndCacheImage(url: string): Promise<boolean> {CODE
LOWapp2/src/lib/dashboard/components/WalletCard.svelte14function getChainDisplayNameForAvatar(chainId: string): string {CODE
LOWapp2/src/lib/dashboard/components/WalletCard.svelte21function getChainDisplayNameForTitle(chainId: string, cat: WalletCategory): string {CODE
LOWapp2/src/lib/wallet/sui/config.svelte.ts100function getConnectionErrorMessage(error: unknown): string | undefined {CODE
LOWapp2/src/lib/wallet/evm/config.svelte.ts40function clearLastConnectedWalletId() {CODE
LOWapp2/src/lib/wallet/evm/wagmi-config.svelte.ts350function createWagmiConfigInstance() {CODE
LOWapp2/src/routes/explorer/orbital/canvasInit.ts64export function initializeCanvasWithCleanup(options: EnhancedCanvasInitOptions): () => void {CODE
LOW…outes/explorer/orbital/charts/NetworkVisualizer.svelte178function createParticleFromTransfer(transfer: EnhancedTransferListItem) {CODE
LOW…c/routes/explorer/orbital/charts/ChainFlowChart.svelte206function getAssetIncomingOutgoingWidths(CODE
LOW…c/routes/explorer/orbital/charts/ChainFlowChart.svelte228function getIncomingOutgoingWidths(CODE
LOW…routes/explorer/orbital/charts/AssetVolumeChart.svelte166function calculateRemainingRoutePercentage(routes: AssetRoute[]): number {CODE
LOWtypescript-sdk/src/cosmos/wallet.ts21export function connectStargateWithSigner({CODE
LOWtypescript-sdk/src/cosmos/wallet.ts56export function connectCosmwasmWithSigner({CODE
LOWtypescript-sdk/src/cosmos/transfer.ts376export async function cosmosSameChainTransferSimulate({CODE
LOWtypescript-sdk/src/evm/transfer.ts245export async function transferAssetFromEvmSimulate(CODE
LOWtypescript-sdk/src/query/on-chain.ts244export async function getCosmosTransactionReceipt(params: {CODE
LOWtypescript-sdk/src/query/on-chain.ts269export async function getCosmosAccountTransactions({CODE
LOWtypescript-sdk/src/query/on-chain.ts295export async function getAptosAccountTransactions({CODE
Self-Referential Comments5 hits · 15 pts
SeverityFileLineSnippetContext
MEDIUMcairo/zkgm/snfoundry.toml4# [sncast.default] # Define a profile nameCOMMENT
MEDIUMcairo/ibc/snfoundry.toml4# [sncast.default] # Define a profile nameCOMMENT
MEDIUMcairo/mock_client/snfoundry.toml4# [sncast.default] # Define a profile nameCOMMENT
MEDIUMcairo/cometbls_light_client/snfoundry.toml4# [sncast.default] # Define a profile nameCOMMENT
MEDIUMcairo/loopback_light_client/snfoundry.toml4# [sncast.default] # Define a profile nameCOMMENT
Decorative Section Separators4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMCargo.toml486# =====================COMMENT
MEDIUMCargo.toml488# =====================COMMENT
MEDIUMapp2/src/lib/gasprice/index.ts202 // ── MOCKED SUI GAS PRICE ─────────────────────────────────────────────COMMENT
MEDIUMlib/arbitrum-types/src/lib.rs258 /// ├───────────┼─┼─┼───────────────┼───────────────┼──────────────┤COMMENT
Structural Annotation Overuse6 hits · 9 pts
SeverityFileLineSnippetContext
LOWvoyager/src/main.rs87// NOTE: This function is a mess, will be cleaned upCOMMENT
LOWlib/access-manager-types/src/manager/msg.rs76 /// NOTE: This function does not report the permissions of the admin functions in the managerCOMMENT
LOWlib/aptos-types/src/account.rs81 /// NOTE: This function has strict parsing behavior. For relaxed behavior, please useCOMMENT
LOW11-cometbls/store.go196// NOTE: This function is currently only used for testing purposesCOMMENT
LOWtypescript-sdk/src/query/offchain/ucs03-channels.ts196 // Step 1: Get the local WETH addressCOMMENT
LOWtypescript-sdk/src/query/offchain/ucs03-channels.ts214 // Step 2: Predict the quote token for WETH, just like a regular tokenCOMMENT
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMvoyager/plugins/periodic-client-update/src/main.rs53 // never interested in any messages since this plugin does not utilize a queueCOMMENT
MEDIUMlib/voyager-vm/src/lib.rs161 /// The message that will utilize the aggregated data.COMMENT
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtypescript-sdk/src/query/offchain/ucs03-channels.ts196 // Step 1: Get the local WETH addressCOMMENT
LOWtypescript-sdk/src/query/offchain/ucs03-channels.ts214 // Step 2: Predict the quote token for WETH, just like a regular tokenCOMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMcosmwasm/cw20-base/src/lib.rs2This is a basic implementation of a cw20 contract. It implementsCODE
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWmpc/edge/supabase/seed.sql177 display_name text NOT NULL DEFAULT ('John Doe')CODE
LOWsite/src/content/blog/testing-unpublished-post.md5description: "lorem ipsum"CODE
TODO Padding1 hit · 2 pts
SeverityFileLineSnippetContext
LOWlib/frissitheto/src/lib.rs156// TODO: Add tests for version changes as wellCOMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWunionvisor/src/testdata/home/config/config.toml254# Set true to enable the peer-exchange reactorCOMMENT