Executive summary
⚠ A critical security finding caps this grade — resolve it before relying on the score below; see the Security lens.
This system is currently at risk, with an overall health score of 33%. While the codebase is small and inexpensive to rebuild, its operational fragility poses a disproportionate threat to business continuity. The primary concern is not the complexity of the logic, but the lack of safeguards to ensure it runs reliably in production.
The asset is modest in scale, comprising roughly 6,900 lines of production code and 4,000 lines of frontend code. Rebuilding it would require minimal effort—approximately one engineer-month at a cost of around €5,900. This low rebuild cost means the business is not locked into legacy debt, but it also highlights that the current operational gaps are unnecessary. The system’s value is concentrated in its core logic, which is well-structured, but this value is undermined by a critical lack of operational maturity.
The most significant risk lies in operational readiness, which scored a mere 10%. Without automated testing pipelines or documented disaster recovery procedures, the system is vulnerable to silent failures and prolonged outages. A single deployment error could go undetected, and a data loss event could be catastrophic given the absence of verified geo-recovery plans. This lens represents the highest potential for delay, defect, and exposure, turning a simple asset into a fragile liability.
Conversely, the code itself is healthy and performant. The architecture is sound, and the domain modeling is clear, meaning developers can understand and modify the logic without excessive friction. Performance is excellent, and security posture is adequate. These strengths indicate that the underlying product is viable and maintainable, provided the operational layer is strengthened.
To mitigate risk with maximum leverage, the team should immediately implement a continuous integration workflow that builds and runs tests on every change. This single action establishes a safety net for all future development. Following this, the team should codify backup and recovery procedures in infrastructure code. Focusing on these operational basics first protects the business from immediate instability while preserving the value of the well-structured codebase.
Raise Readiness 10 → 70 (the Healthy floor) ⇒ headline 33 → ~53.
New since the last scan (34+)
- D5 · Off the main sequence: pump_interface
- D5 · Off the main sequence: shared_state
- D5 · Off the main sequence: jito-block-engine-json-rpc-client
- D14 · Banned license: @raydium-io/raydium-sdk
- D22 · Massive redundancy in instruction generation methods. For every action (initialize, set_params, create, buy, sell, withdraw), there are 6 distinct methods differing only by whether they take a program_id, keys vs accounts, or require signing seeds. This creates a 6x explosion of API surface for identical logical operations.
- D22 · Duplicate RPC client instances. Both `AppState` and `Pump` structs maintain two separate fields for RPC clients: one blocking (`rpc_client`) and one non-blocking (`rpc_nonblocking_client`). This duplicates state management and initialization logic across multiple structs.
- D22 · Identical types defined in multiple service modules. `TipAccountResult` is defined identically in `jito`, `nextblock`, and `zeroslot` services, violating DRY principles and creating maintenance overhead.
- D22 · Identical types defined in multiple service modules. `BundleStatus` is defined identically in `jito` and `zeroslot` services.
- D22 · Redundant type definitions for account data. `GlobalAccount` is a wrapper around `Global` (exposing it as `.0`) that adds serialization methods. `BondingCurve` and `BondingCurveAccount` follow the same pattern. This forces users to choose between the raw data struct and the serializable wrapper, or understand the `.0` access pattern.
- D30 · REDACTED
- D30 · REDACTED
- D30 · REDACTED
- D30 · REDACTED
- D30 · REDACTED
- D30 · REDACTED
- D30 · REDACTED
- D30 · REDACTED
- D30 · REDACTED
- D30 · REDACTED
- D30 · REDACTED
- D30 · REDACTED
- D30 · REDACTED
- D30 · REDACTED
- D30 · REDACTED
- D30 · REDACTED
- D30 · REDACTED
- D43 · REDACTED
- R10 · Duplicated block (14 lines × 2 locations) 2_copy trading bot(node) using gRPC/dashboard/server.js
- R10 · Duplicated block (9 lines × 2 locations) 2_copy trading bot(node) using gRPC/dashboard/server.js
- R6 · No test, lint or typecheck script
- P7 · Outbound HTTP without resilience #_sniper (Rust) using jito Shred stream/src/services/jito.rs
- P7 · Outbound HTTP without resilience #_sniper (Rust) using jito Shred stream/src/services/zeroslot.rs
- P7 · Outbound HTTP without resilience 2_copy trading bot(node) using gRPC/services/notifications.js
- AC2 · <button> with no accessible text 2_copy trading bot(node) using gRPC/dashboard/public/dashboard.js
Rebuild cost & value ~ Modeled — €1,900–€9,800
| Cost to rebuild | €1,900–€9,800 |
|---|---|
| Domain complexity | Standard |
| Quality factor | 0.7× (at 33% quality) |
| Size & shape | Small · effort split not classified (source measured from disk; the effort-tier breakdown is a C#-only syntax walk) |
This codebase represents roughly ~0.1 person-years of build effort (about ~€5,900 to rebuild). Its weakest lens is Readiness at 10% — the part of that asset most exposed by the findings below.
Top priorities
Diagnosis — what's actually going on
Architecture — module dependency graph
Architecture — module dependency matrix
| depends on → | 1 (global) | 2 1_solana sniper bot(node) using gRPC | 3 2_copy trading bot(node) using gRPC | 4 2_copy trading bot(node) using gRPC.dashboard | 5 2_copy trading bot(node) using gRPC.dashboard.public | 6 2_copy trading bot(node) using gRPC.dashboard.public.dashboard | 7 2_copy trading bot(node) using gRPC.services.notifications | 8 2_copy trading bot(node) using gRPC.services.riskManager | 9 2_copy trading bot(node) using gRPC.utils | 10 3_sniper bot(node) using using Helius websocket | 11 grpc_raydium_pool_monitoring_rust.common.logger | 12 grpc_raydium_pool_monitoring_rust.db | 13 grpc_raydium_pool_monitoring_rust.hardcap | 14 grpc_raydium_pool_monitoring_rust.instruction_account_mapper | 15 grpc_raydium_pool_monitoring_rust.latest_block | 16 grpc_raydium_pool_monitoring_rust.logger | 17 grpc_raydium_pool_monitoring_rust.secondbuy | 18 grpc_raydium_pool_monitoring_rust.serialization | 19 grpc_raydium_pool_monitoring_rust.services.jito | 20 grpc_raydium_pool_monitoring_rust.services.nextblock | 21 grpc_raydium_pool_monitoring_rust.shred_stream | 22 grpc_raydium_pool_monitoring_rust.solana_helper | 23 grpc_raydium_pool_monitoring_rust.tginterface | 24 grpc_raydium_pool_monitoring_rust.token_serializable | 25 grpc_raydium_pool_monitoring_rust.trade_logger | 26 grpc_raydium_pool_monitoring_rust.trading_loop | 27 jito_block_engine_json_rpc_client.jsonrpc_client.request | 28 grpc_raydium_pool_monitoring_rust.commands | 29 grpc_raydium_pool_monitoring_rust.engine.swap | 30 grpc_raydium_pool_monitoring_rust.services.zeroslot | 31 jito_block_engine_json_rpc_client.jsonrpc_client.client_error | 32 jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client | 33 jito_block_engine_json_rpc_client.jsonrpc_client.rpc_sender | 34 grpc_raydium_pool_monitoring_rust.common.rpc | 35 grpc_raydium_pool_monitoring_rust.common.utils | 36 grpc_raydium_pool_monitoring_rust.core.token | 37 grpc_raydium_pool_monitoring_rust.core.tx | 38 jito_block_engine_json_rpc_client.jsonrpc_client.http_sender | 39 grpc_raydium_pool_monitoring_rust.dex.middleware | 40 grpc_raydium_pool_monitoring_rust.dex.pump_fun |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 (global) | ||||||||||||||||||||||||||||||||||||||||
| 2 1_solana sniper bot(node) using gRPC | ||||||||||||||||||||||||||||||||||||||||
| 3 2_copy trading bot(node) using gRPC | ||||||||||||||||||||||||||||||||||||||||
| 4 2_copy trading bot(node) using gRPC.dashboard | ||||||||||||||||||||||||||||||||||||||||
| 5 2_copy trading bot(node) using gRPC.dashboard.public | ||||||||||||||||||||||||||||||||||||||||
| 6 2_copy trading bot(node) using gRPC.dashboard.public.dashboard | ||||||||||||||||||||||||||||||||||||||||
| 7 2_copy trading bot(node) using gRPC.services.notifications | ||||||||||||||||||||||||||||||||||||||||
| 8 2_copy trading bot(node) using gRPC.services.riskManager | ||||||||||||||||||||||||||||||||||||||||
| 9 2_copy trading bot(node) using gRPC.utils | ||||||||||||||||||||||||||||||||||||||||
| 10 3_sniper bot(node) using using Helius websocket | ||||||||||||||||||||||||||||||||||||||||
| 11 grpc_raydium_pool_monitoring_rust.common.logger | ||||||||||||||||||||||||||||||||||||||||
| 12 grpc_raydium_pool_monitoring_rust.db | ||||||||||||||||||||||||||||||||||||||||
| 13 grpc_raydium_pool_monitoring_rust.hardcap | ||||||||||||||||||||||||||||||||||||||||
| 14 grpc_raydium_pool_monitoring_rust.instruction_account_mapper | ||||||||||||||||||||||||||||||||||||||||
| 15 grpc_raydium_pool_monitoring_rust.latest_block | ||||||||||||||||||||||||||||||||||||||||
| 16 grpc_raydium_pool_monitoring_rust.logger | ||||||||||||||||||||||||||||||||||||||||
| 17 grpc_raydium_pool_monitoring_rust.secondbuy | ||||||||||||||||||||||||||||||||||||||||
| 18 grpc_raydium_pool_monitoring_rust.serialization | ||||||||||||||||||||||||||||||||||||||||
| 19 grpc_raydium_pool_monitoring_rust.services.jito | ||||||||||||||||||||||||||||||||||||||||
| 20 grpc_raydium_pool_monitoring_rust.services.nextblock | ||||||||||||||||||||||||||||||||||||||||
| 21 grpc_raydium_pool_monitoring_rust.shred_stream | ||||||||||||||||||||||||||||||||||||||||
| 22 grpc_raydium_pool_monitoring_rust.solana_helper | ||||||||||||||||||||||||||||||||||||||||
| 23 grpc_raydium_pool_monitoring_rust.tginterface | ||||||||||||||||||||||||||||||||||||||||
| 24 grpc_raydium_pool_monitoring_rust.token_serializable | ||||||||||||||||||||||||||||||||||||||||
| 25 grpc_raydium_pool_monitoring_rust.trade_logger | ||||||||||||||||||||||||||||||||||||||||
| 26 grpc_raydium_pool_monitoring_rust.trading_loop | ||||||||||||||||||||||||||||||||||||||||
| 27 jito_block_engine_json_rpc_client.jsonrpc_client.request | ||||||||||||||||||||||||||||||||||||||||
| 28 grpc_raydium_pool_monitoring_rust.commands | 1 | |||||||||||||||||||||||||||||||||||||||
| 29 grpc_raydium_pool_monitoring_rust.engine.swap | 2 | |||||||||||||||||||||||||||||||||||||||
| 30 grpc_raydium_pool_monitoring_rust.services.zeroslot | 1 | |||||||||||||||||||||||||||||||||||||||
| 31 jito_block_engine_json_rpc_client.jsonrpc_client.client_error | 1 | |||||||||||||||||||||||||||||||||||||||
| 32 jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client | 1 | |||||||||||||||||||||||||||||||||||||||
| 33 jito_block_engine_json_rpc_client.jsonrpc_client.rpc_sender | 1 | |||||||||||||||||||||||||||||||||||||||
| 34 grpc_raydium_pool_monitoring_rust.common.rpc | 1 | |||||||||||||||||||||||||||||||||||||||
| 35 grpc_raydium_pool_monitoring_rust.common.utils | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 36 grpc_raydium_pool_monitoring_rust.core.token | 1 | |||||||||||||||||||||||||||||||||||||||
| 37 grpc_raydium_pool_monitoring_rust.core.tx | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 38 jito_block_engine_json_rpc_client.jsonrpc_client.http_sender | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 39 grpc_raydium_pool_monitoring_rust.dex.middleware | 1 | 1 | ||||||||||||||||||||||||||||||||||||||
| 40 grpc_raydium_pool_monitoring_rust.dex.pump_fun | 2 | 2 |
28→12 grpc_raydium_pool_monitoring_rust.commands depends on grpc_raydium_pool_monitoring_rust.db✕
- Type pairs
- 1 distinct (type in grpc_raydium_pool_monitoring_rust.commands → type in grpc_raydium_pool_monitoring_rust.db) reference.
- Which types
grpc_raydium_pool_monitoring_rust.commands.commands$module→grpc_raydium_pool_monitoring_rust.db.Database
- Direction
- grpc_raydium_pool_monitoring_rust.commands uses grpc_raydium_pool_monitoring_rust.db. Changing grpc_raydium_pool_monitoring_rust.db can break grpc_raydium_pool_monitoring_rust.commands, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
29→35 grpc_raydium_pool_monitoring_rust.engine.swap depends on grpc_raydium_pool_monitoring_rust.common.utils cycle✕
- Type pairs
- 2 distinct (type in grpc_raydium_pool_monitoring_rust.engine.swap → type in grpc_raydium_pool_monitoring_rust.common.utils) references.
- Which types
grpc_raydium_pool_monitoring_rust.engine.swap.swap$module→grpc_raydium_pool_monitoring_rust.common.utils.AppStategrpc_raydium_pool_monitoring_rust.engine.swap.swap$module→grpc_raydium_pool_monitoring_rust.common.utils.SwapInput
- Direction
- grpc_raydium_pool_monitoring_rust.engine.swap uses grpc_raydium_pool_monitoring_rust.common.utils. Changing grpc_raydium_pool_monitoring_rust.common.utils can break grpc_raydium_pool_monitoring_rust.engine.swap, not the reverse.
- Position
- Above the diagonal — a cycle. Neither module can be changed, tested or deployed independently until one of these dependencies goes.
30→19 grpc_raydium_pool_monitoring_rust.services.zeroslot depends on grpc_raydium_pool_monitoring_rust.services.jito✕
- Type pairs
- 1 distinct (type in grpc_raydium_pool_monitoring_rust.services.zeroslot → type in grpc_raydium_pool_monitoring_rust.services.jito) reference.
- Which types
grpc_raydium_pool_monitoring_rust.services.zeroslot.BundleStatus→grpc_raydium_pool_monitoring_rust.services.jito.ErrorStatus
- Direction
- grpc_raydium_pool_monitoring_rust.services.zeroslot uses grpc_raydium_pool_monitoring_rust.services.jito. Changing grpc_raydium_pool_monitoring_rust.services.jito can break grpc_raydium_pool_monitoring_rust.services.zeroslot, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
31→27 jito_block_engine_json_rpc_client.jsonrpc_client.client_error depends on jito_block_engine_json_rpc_client.jsonrpc_client.request✕
- Type pairs
- 1 distinct (type in jito_block_engine_json_rpc_client.jsonrpc_client.client_error → type in jito_block_engine_json_rpc_client.jsonrpc_client.request) reference.
- Which types
jito_block_engine_json_rpc_client.jsonrpc_client.client_error.Error→jito_block_engine_json_rpc_client.jsonrpc_client.request.RpcRequest
- Direction
- jito_block_engine_json_rpc_client.jsonrpc_client.client_error uses jito_block_engine_json_rpc_client.jsonrpc_client.request. Changing jito_block_engine_json_rpc_client.jsonrpc_client.request can break jito_block_engine_json_rpc_client.jsonrpc_client.client_error, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
32→27 jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client depends on jito_block_engine_json_rpc_client.jsonrpc_client.request✕
- Type pairs
- 1 distinct (type in jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client → type in jito_block_engine_json_rpc_client.jsonrpc_client.request) reference.
- Which types
jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client.RpcClient→jito_block_engine_json_rpc_client.jsonrpc_client.request.RpcRequest
- Direction
- jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client uses jito_block_engine_json_rpc_client.jsonrpc_client.request. Changing jito_block_engine_json_rpc_client.jsonrpc_client.request can break jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
33→27 jito_block_engine_json_rpc_client.jsonrpc_client.rpc_sender depends on jito_block_engine_json_rpc_client.jsonrpc_client.request✕
- Type pairs
- 1 distinct (type in jito_block_engine_json_rpc_client.jsonrpc_client.rpc_sender → type in jito_block_engine_json_rpc_client.jsonrpc_client.request) reference.
- Which types
jito_block_engine_json_rpc_client.jsonrpc_client.rpc_sender.RpcSender→jito_block_engine_json_rpc_client.jsonrpc_client.request.RpcRequest
- Direction
- jito_block_engine_json_rpc_client.jsonrpc_client.rpc_sender uses jito_block_engine_json_rpc_client.jsonrpc_client.request. Changing jito_block_engine_json_rpc_client.jsonrpc_client.request can break jito_block_engine_json_rpc_client.jsonrpc_client.rpc_sender, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
34→32 grpc_raydium_pool_monitoring_rust.common.rpc depends on jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client✕
- Type pairs
- 1 distinct (type in grpc_raydium_pool_monitoring_rust.common.rpc → type in jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client) reference.
- Which types
grpc_raydium_pool_monitoring_rust.common.rpc.rpc$module→jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client.RpcClient
- Direction
- grpc_raydium_pool_monitoring_rust.common.rpc uses jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client. Changing jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client can break grpc_raydium_pool_monitoring_rust.common.rpc, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
35→29 grpc_raydium_pool_monitoring_rust.common.utils depends on grpc_raydium_pool_monitoring_rust.engine.swap✕
- Type pairs
- 1 distinct (type in grpc_raydium_pool_monitoring_rust.common.utils → type in grpc_raydium_pool_monitoring_rust.engine.swap) reference.
- Which types
grpc_raydium_pool_monitoring_rust.common.utils.SwapConfig→grpc_raydium_pool_monitoring_rust.engine.swap.SwapDirection
- Direction
- grpc_raydium_pool_monitoring_rust.common.utils uses grpc_raydium_pool_monitoring_rust.engine.swap. Changing grpc_raydium_pool_monitoring_rust.engine.swap can break grpc_raydium_pool_monitoring_rust.common.utils, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
35→32 grpc_raydium_pool_monitoring_rust.common.utils depends on jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client✕
- Type pairs
- 1 distinct (type in grpc_raydium_pool_monitoring_rust.common.utils → type in jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client) reference.
- Which types
grpc_raydium_pool_monitoring_rust.common.utils.AppState→jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client.RpcClient
- Direction
- grpc_raydium_pool_monitoring_rust.common.utils uses jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client. Changing jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client can break grpc_raydium_pool_monitoring_rust.common.utils, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
36→32 grpc_raydium_pool_monitoring_rust.core.token depends on jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client✕
- Type pairs
- 1 distinct (type in grpc_raydium_pool_monitoring_rust.core.token → type in jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client) reference.
- Which types
grpc_raydium_pool_monitoring_rust.core.token.token$module→jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client.RpcClient
- Direction
- grpc_raydium_pool_monitoring_rust.core.token uses jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client. Changing jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client can break grpc_raydium_pool_monitoring_rust.core.token, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
37→11 grpc_raydium_pool_monitoring_rust.core.tx depends on grpc_raydium_pool_monitoring_rust.common.logger✕
- Type pairs
- 1 distinct (type in grpc_raydium_pool_monitoring_rust.core.tx → type in grpc_raydium_pool_monitoring_rust.common.logger) reference.
- Which types
grpc_raydium_pool_monitoring_rust.core.tx.tx$module→grpc_raydium_pool_monitoring_rust.common.logger.Logger
- Direction
- grpc_raydium_pool_monitoring_rust.core.tx uses grpc_raydium_pool_monitoring_rust.common.logger. Changing grpc_raydium_pool_monitoring_rust.common.logger can break grpc_raydium_pool_monitoring_rust.core.tx, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
37→32 grpc_raydium_pool_monitoring_rust.core.tx depends on jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client✕
- Type pairs
- 1 distinct (type in grpc_raydium_pool_monitoring_rust.core.tx → type in jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client) reference.
- Which types
grpc_raydium_pool_monitoring_rust.core.tx.tx$module→jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client.RpcClient
- Direction
- grpc_raydium_pool_monitoring_rust.core.tx uses jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client. Changing jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client can break grpc_raydium_pool_monitoring_rust.core.tx, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
38→27 jito_block_engine_json_rpc_client.jsonrpc_client.http_sender depends on jito_block_engine_json_rpc_client.jsonrpc_client.request✕
- Type pairs
- 1 distinct (type in jito_block_engine_json_rpc_client.jsonrpc_client.http_sender → type in jito_block_engine_json_rpc_client.jsonrpc_client.request) reference.
- Which types
jito_block_engine_json_rpc_client.jsonrpc_client.http_sender.HttpSender→jito_block_engine_json_rpc_client.jsonrpc_client.request.RpcRequest
- Direction
- jito_block_engine_json_rpc_client.jsonrpc_client.http_sender uses jito_block_engine_json_rpc_client.jsonrpc_client.request. Changing jito_block_engine_json_rpc_client.jsonrpc_client.request can break jito_block_engine_json_rpc_client.jsonrpc_client.http_sender, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
38→33 jito_block_engine_json_rpc_client.jsonrpc_client.http_sender depends on jito_block_engine_json_rpc_client.jsonrpc_client.rpc_sender✕
- Type pairs
- 1 distinct (type in jito_block_engine_json_rpc_client.jsonrpc_client.http_sender → type in jito_block_engine_json_rpc_client.jsonrpc_client.rpc_sender) reference.
- Which types
jito_block_engine_json_rpc_client.jsonrpc_client.http_sender.HttpSender→jito_block_engine_json_rpc_client.jsonrpc_client.rpc_sender.RpcSender
- Direction
- jito_block_engine_json_rpc_client.jsonrpc_client.http_sender uses jito_block_engine_json_rpc_client.jsonrpc_client.rpc_sender. Changing jito_block_engine_json_rpc_client.jsonrpc_client.rpc_sender can break jito_block_engine_json_rpc_client.jsonrpc_client.http_sender, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→32 grpc_raydium_pool_monitoring_rust.dex.middleware depends on jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client✕
- Type pairs
- 1 distinct (type in grpc_raydium_pool_monitoring_rust.dex.middleware → type in jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client) reference.
- Which types
grpc_raydium_pool_monitoring_rust.dex.middleware.Pump→jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client.RpcClient
- Direction
- grpc_raydium_pool_monitoring_rust.dex.middleware uses jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client. Changing jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client can break grpc_raydium_pool_monitoring_rust.dex.middleware, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
39→35 grpc_raydium_pool_monitoring_rust.dex.middleware depends on grpc_raydium_pool_monitoring_rust.common.utils✕
- Type pairs
- 1 distinct (type in grpc_raydium_pool_monitoring_rust.dex.middleware → type in grpc_raydium_pool_monitoring_rust.common.utils) reference.
- Which types
grpc_raydium_pool_monitoring_rust.dex.middleware.Pump→grpc_raydium_pool_monitoring_rust.common.utils.SwapConfig
- Direction
- grpc_raydium_pool_monitoring_rust.dex.middleware uses grpc_raydium_pool_monitoring_rust.common.utils. Changing grpc_raydium_pool_monitoring_rust.common.utils can break grpc_raydium_pool_monitoring_rust.dex.middleware, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→32 grpc_raydium_pool_monitoring_rust.dex.pump_fun depends on jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client✕
- Type pairs
- 2 distinct (type in grpc_raydium_pool_monitoring_rust.dex.pump_fun → type in jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client) references.
- Which types
grpc_raydium_pool_monitoring_rust.dex.pump_fun.Pump→jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client.RpcClientgrpc_raydium_pool_monitoring_rust.dex.pump_fun.pump_fun$module→jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client.RpcClient
- Direction
- grpc_raydium_pool_monitoring_rust.dex.pump_fun uses jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client. Changing jito_block_engine_json_rpc_client.jsonrpc_client.rpc_client can break grpc_raydium_pool_monitoring_rust.dex.pump_fun, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
40→35 grpc_raydium_pool_monitoring_rust.dex.pump_fun depends on grpc_raydium_pool_monitoring_rust.common.utils✕
- Type pairs
- 2 distinct (type in grpc_raydium_pool_monitoring_rust.dex.pump_fun → type in grpc_raydium_pool_monitoring_rust.common.utils) references.
- Which types
grpc_raydium_pool_monitoring_rust.dex.pump_fun.Pump→grpc_raydium_pool_monitoring_rust.common.utils.SwapConfiggrpc_raydium_pool_monitoring_rust.dex.pump_fun.Pump→grpc_raydium_pool_monitoring_rust.common.utils.SwapInput
- Direction
- grpc_raydium_pool_monitoring_rust.dex.pump_fun uses grpc_raydium_pool_monitoring_rust.common.utils. Changing grpc_raydium_pool_monitoring_rust.common.utils can break grpc_raydium_pool_monitoring_rust.dex.pump_fun, not the reverse.
- Position
- Below the diagonal — points down the layering, which is what you want.
At a glance — Code Health
At a glance — Architecture
At a glance — Maturity
At a glance — Readiness
At a glance — Security
At a glance — Accessibility
At a glance — Performance
Security & Compliance — OWASP Top-10 mapping
| OWASP category | Findings | Severity |
|---|---|---|
| A06:2021 — Vulnerable & Outdated Components | 42 | High / Critical |
| A02:2021 — Cryptographic Failures | 7 | High / Critical |
| A05:2021 — Security Misconfiguration | 1 | Medium |
Roadmap
First, establish a CI workflow that builds and tests every push to ensure immediate feedback on code changes. Next, formalize disaster recovery by codifying backups and geo-recovery in infrastructure-as-code while documenting recovery procedures. Then, improve reliability by adding tests for unreached modules and configuring essential tooling like linting and type checking within the CI pipeline. Finally, clean up the project by removing unused dependencies and correctly categorizing development-only packages.
| Do this | Helps | Effort | Dimension |
|---|---|---|---|
| Add a CI workflow that builds and runs the test suite on every push/PR. | +20.2 pts | Medium | CI/CD gates |
| Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery. | +20.2 pts | Medium | DR & Backup |
| Add tests that import the unreached modules (directly or through their public entry). | +20.2 pts | Medium | Test Coverage |
| Add a test runner (vitest / jest / playwright) and eslint and type checking (adopt TypeScript, or type-check the existing JavaScript with `checkJs`) as package.json scripts and run them in CI. | +20.2 pts | Medium | Tooling |
| Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies. | +20.2 pts | Medium | Dependency Hygiene |
| Give every client a whole-request bound: `reqwest::Client::builder().timeout(Duration::from_secs(10))` (never `reqwest::get` or `Client::new()`, which have none), ureq's `timeout_global`, or wrap the call in `tokio::time::timeout`; add retry with back-off (`reqwest-retry`'s `RetryTransientMiddleware`, `backoff`) around dependencies that fail. | +19.8 pts | Medium | Outbound HTTP resilience |
| Add a `healthcheck:` to the served compose service — probing the endpoint it already answers on where it has one — with `depends_on: condition: service_healthy` on whatever waits for it, and keep the deployed image tag immutable and recorded so rolling back is re-pointing at the previous tag rather than rebuilding. | +18.5 pts | Medium | Deployment & Rollback |
| Bump outdated dependencies to current versions to limit upgrade debt. | +11.0 pts | Medium | Dependency Freshness |
File quality
| File | Score | Band | Worst signal |
|---|---|---|---|
| REDACTED | 0.0 | Slop | Dependency Vulnerabilities: Critical CVE: REDACTED |
| REDACTED | 4.8 | Mixed | Secrets (history): REDACTED: REDACTED |
| REDACTED | 5.0 | Mixed | Secrets (history): REDACTED: REDACTED |
| REDACTED | 5.0 | Mixed | Secrets (history): REDACTED: REDACTED |
| #_sniper (Rust) using jito Shred stream/src/commands.rs | 6.0 | Mixed | Explicit Debt: TodoComment |
| #_sniper (Rust) using jito Shred stream/parsers/pump_interface/src/instructions.rs | 7.1 | Mixed | God Classes: FileTooLong: src/instructions.rs |
| #_sniper (Rust) using jito Shred stream/src/services/jito.rs | 7.1 | Mixed | Code Duplication: Duplicated block (51 lines × 2) |
| #_sniper (Rust) using jito Shred stream/src/hardcap.rs | 7.2 | Mixed | Cyclomatic Complexity: grpc_raydium_pool_monitoring_rust::hardcap::handle_buy_and_sell_logic (cyclomatic 32) |
| #_sniper (Rust) using jito Shred stream/src/common/logger.rs | 7.2 | Mixed | Code Duplication: Duplicated block (14 lines × 2) |
| #_sniper (Rust) using jito Shred stream/src/secondbuy.rs | 7.4 | Mixed | Cyclomatic Complexity: grpc_raydium_pool_monitoring_rust::secondbuy::handle_detection_event (cyclomatic 30) |
| 1_solana sniper bot(node) using gRPC/parsingtransaction.js | 7.4 | Mixed | Cyclomatic Complexity: parsingtransaction.tOutPut (cyclomatic 19) |
| 2_copy trading bot(node) using gRPC/parsingtransaction.js | 7.4 | Mixed | Cyclomatic Complexity: parsingtransaction.tOutPut (cyclomatic 19) |
| #_sniper (Rust) using jito Shred stream/src/shred_stream.rs | 7.4 | Mixed | Cognitive Complexity: grpc_raydium_pool_monitoring_rust::shred_stream::reconcile_flows (cognitive 24) |
| 1_solana sniper bot(node) using gRPC/swap.js | 7.8 | Mixed | Cyclomatic Complexity: swap.swap (cyclomatic 16) |
| 2_copy trading bot(node) using gRPC/swap.js | 7.8 | Mixed | Cyclomatic Complexity: swap.swap (cyclomatic 16) |
| 3_sniper bot(node) using using Helius websocket/swap.js | 7.8 | Mixed | Cyclomatic Complexity: swap.swap (cyclomatic 16) |
| #_sniper (Rust) using jito Shred stream/src/core/tx.rs | 7.8 | Mixed | Cognitive Complexity: grpc_raydium_pool_monitoring_rust::core::tx::new_signed_and_send (cognitive 20) |
| REDACTED | 7.9 | Mixed | IaC & Container Security: Medium IaC: REDACTED |
| #_sniper (Rust) using jito Shred stream/json-rpc-client/src/jsonrpc_client/http_sender.rs | 8.5 | Near-clean | Cognitive Complexity: HttpSender::send (cognitive 48) |
| #_sniper (Rust) using jito Shred stream/shared_state/src/lib.rs | 8.5 | Near-clean | God Classes: TooManyMethods: BoughtTokenInfo |
How the grades work
A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.
Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.
Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.
Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.
Methodology & how to trust this report
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 52 of 56 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.9 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
What we checked — 56 dimensions across the health lenses
- Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 159 of 184 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line.
- Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
- Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
Tools & methods
| Method | Backs | Version | Evaluator |
|---|---|---|---|
| Roslyn static analysis | Complexity, cohesion, coupling, dead code, API surface, layering | 5.3.0 | ✓ deterministic |
| Native secret scanner | Hardcoded secrets / credentials | 1.0.0 | ✓ deterministic |
| Watchdog duplication detector (in-process) | Code duplication | 1.0.0 | ✓ deterministic |
| Coverage (coverlet / dotnet-coverage) | Line & branch coverage | 10.0.400 | ✓ deterministic |
| NuGet / dotnet | Outdated, vulnerable & deprecated dependencies | 10.0.400 | ✓ deterministic |
| git / LibGit2Sharp | Churn hotspots, knowledge concentration, history | 2.43.0 · 0.31.0 | ✓ deterministic |
| gitleaks · semgrep · trivy · checkov | Secrets in history, SAST, CVEs, IaC & container, PII / GDPR | 1.86.0 · 0.69.3 · 3.2.533 | ✓ deterministic |
| LLM (sampled · advisory) | Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurement | Local LLM | ◐ LLM · sampled · advisory |
Run transparency — what happened this run
- D8 Code Coverage — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: test source is present (.rs) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo. To have real coverage read, produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — then the real number is read on the next scan.
- D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.rs) and this repository declares a Cargo test suite (#_sniper (Rust) using jito Shred stream, 3 test files), but it was not re-run: no test result was produced. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
- D12 Dependency Hygiene — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Not scored — 61 direct Cargo declaration(s) were read, but the outdated signal needs crates.io, and no committed Cargo.lock resolves them to versions, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
- D14 License Compliance — measured, with a gap in what it reached — Watchdog measured this, but not all of it. What it did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. This repository declares a Cargo manifest, but the licence verdict published here was taken over its npm package dependencies. Nothing was read about its Cargo dependencies' licensing in either direction, and a clean score on this card must not be read as covering them.
- D15 Churn × Complexity Hotspots — measured, with a gap in what it reached — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Git history depth insufficient — this repository has 16 commit(s), too few for a reliable trend signal. The clone is complete, so there is no deeper history to fetch: the signal returns as the project accumulates history.
- D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Too few commits for a meaningful bus factor (16 commit(s) sampled, fewer than the 50 this dimension needs before a bus factor means anything).
- D34 Knowledge Freshness — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Too few commits to judge knowledge freshness (16 commit(s) sampled).
- D35 Change Coupling — measured, with a gap in what it reached — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Git history depth insufficient — this repository has 16 commit(s), too few for a reliable change-coupling signal. The clone is complete, so there is no deeper history to fetch: the signal returns as the project accumulates history.
- D44 Platform End-of-Life — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This dimension reads a project's own statement about the platform it runs on: a TargetFramework in a .NET project file, a .nvmrc or .python-version, a capped requires-python, a Rust toolchain file or Cargo.toml rust-version, a .go-version, .java-version, .ruby-version, .tool-versions or .sdkmanrc, a go.mod go directive, a Maven or Gradle Java level or toolchain, a Gemfile's ruby directive, a mix.exs elixir requirement, a rebar.config minimum_otp_vsn, a pubspec.yaml SDK constraint, a build.sbt scalaVersion, or a framework major pinned by a dependency constraint. This repository carries none of them, so nothing about its platform was established. That is a gap in this analyzer's coverage, NOT a finding that the platform is supported — a language whose runtime is declared elsewhere (Package.swift, a Dockerfile) is simply not read here yet.
- AX6 Interface segregation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- C1 Data Protection — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
- C2 Access Controls — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
- C3 Audit Trail — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These audit controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks audit controls.
- C4 Data Retention — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These retention controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks retention controls.
- C5 Data-Subject Rights — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These data-subject rights controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks data-subject rights controls.
- ED5 Idempotency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check finds retry-prone mutations by walking the repository's declared types, and NONE was loaded on this run, so it had nothing to look at. That is a limit of the analyzer's reach — it reads .NET projects — not a finding that this repository has no command handlers or message consumers.
- GD1 Unfinished & placeholder code — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- IC1 Incompleteness & stubs — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X1 Async correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X12 Unreachable branch — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X13 Undrained process stream — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X14 Bypassable address classification — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X15 Unvalidated length from an untrusted reader — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X16 Unfloored truncation loop — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X17 Uncapped recursion over a caller-supplied document — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X18 Disposal-pattern correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X19 Unrestored process-global state — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X2 Cancellation propagation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X20 Mistyped argument guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X21 Side-effecting pattern guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X22 Contradicted release guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X23 Unguarded diagnostic materialisation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X24 Document value interpolated into markup unescaped — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X25 Inert configuration knob — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X26 Unsynchronised callback handoff — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X27 Collection changed while being enumerated — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X28 Index access outside its own emptiness guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X3 Exception handling — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X30 Support guard that admits what it rejects — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X4 Structured logging — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
- X5 Nullable reference types — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
- D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
- D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
- D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
- D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
- D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
- D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
- D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
- D13 REDACTED Scanning: REDACTED detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
- D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
- D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
- D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
- D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
- D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
- D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface — consistency of intent across the whole API is approximated, not exhaustively verified.
- D26 Project Cohesion: Project focus is sized from members/namespaces per project — a project that is broad by deliberate design reads the same as one that has sprawled.
- D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
- D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
- D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
- D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
- D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
- D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
- AC1 Text alternatives: Alt-text is detected structurally — the scan sees that an alternative EXISTS, not whether it meaningfully describes the image, and decorative-vs-missing is judged by attribute shape; runtime-injected images and a non-role=img decorative svg are out of scope. This is accessibility readiness, never a WCAG conformance claim.
- AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A click handler on a plain element is now asked for a name too (it is a control the author declared), but the subtree test that answers it is deliberately generous: any DYNAMIC text expression in the subtree counts as a name, so an icon chosen by a ternary ({cond ? <IconA/> : <IconB/>}) reads as named, and a glyph component from a library the icon-import list does not know still names its parent. A clean result is "no unlabelled control found", not a labelling proof.
- AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
- AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
- AC7 A11y enforcement: Enforcement is scored from in-repo config/CI evidence only — an a11y gate enforced in external tooling with no in-repo trace can't be credited, and a configured linter is presence, not proof the rules actually run or block a merge.
- AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
- AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
- M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
- P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
- P5 DR & Backup: Backup/restore and disaster-recovery readiness is judged from in-repo evidence — a config that exists is not a tested restore, so the absence of positive evidence is reported as "not evidenced", never scored as present.
The LLM boundary
Dimensions
D1 · Cyclomatic Complexity
21 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was grpc_raydium_pool_monitoring_rust::commands::handle_command at 38. A further 1 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being grpc_raydium_pool_monitoring_rust::token_serializable::convert_to_serializable at 25 — they are counted neither in the figure above nor in this dimension's score. 1 file carries no cyclomatic complexity row at all for this reason — every one of its over-threshold functions was excluded, so the exclusion is disclosed nowhere in the file itself: #_sniper (Rust) using jito Shred stream/src/token_serializable.rs (grpc_raydium_pool_monitoring_rust::token_serializable::convert_to_serializable at 25). They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.
What to do
- Resolve the 3 grpc_raydium_pool_monitoring_rust finding(s) in Cyclomatic Complexity — start with commands.rs, hardcap.rs, secondbuy.rs. — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 3 swap.swap (cyclomatic 16) finding(s) in Cyclomatic Complexity — start with swap.js (3). — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 2 grpc.handleStream (cyclomatic 21) finding(s) in Cyclomatic Complexity — start with REDACTED (2). — One of this dimension's main actionable groups (2 warning-level).
- Stand up a CI pipeline, then gate Cyclomatic Complexity in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D2 · Cognitive Complexity
17 method(s) exceeded the cognitive complexity threshold of 15; the worst was grpc_raydium_pool_monitoring_rust::secondbuy::handle_detection_event at 139.
What to do
- Resolve the 6 grpc_raydium_pool_monitoring_rust finding(s) in Cognitive Complexity — start with shred_stream.rs (2), secondbuy.rs, hardcap.rs. — One of this dimension's main actionable groups (6 warning-level).
- Resolve the 3 swap.swap (cognitive 25) finding(s) in Cognitive Complexity — start with swap.js (3). — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 2 grpc.handleStream (cognitive 29) finding(s) in Cognitive Complexity — start with REDACTED (2). — One of this dimension's main actionable groups (2 warning-level).
- Stand up a CI pipeline, then gate Cognitive Complexity in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D3 · God Classes
5 god class(es) detected.
What to do
- Resolve the 3 FunctionTooLong finding(s) in God Classes — start with parsingtransaction.js (2), commands.rs. — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 1 FileTooLong finding(s) in God Classes — start with instructions.rs. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 TooManyMethods finding(s) in God Classes — start with lib.rs. — One of this dimension's main actionable groups (1 warning-level).
- Stand up a CI pipeline, then gate God Classes in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D4 · Code Duplication
21 duplicated block group(s) detected.
What to do
- Resolve the 3 Duplicated block (12 lines × 2) finding(s) in Code Duplication — start with instructions.rs (3). — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 3 Duplicated block (9 lines × 2) finding(s) in Code Duplication — start with instructions.rs (2), token.rs. — One of this dimension's main actionable groups (3 warning-level).
- Resolve the 3 Duplicated block (6 lines × 2) finding(s) in Code Duplication — start with logger.rs (2), hardcap.rs. — One of this dimension's main actionable groups (3 warning-level).
- Stand up a CI pipeline, then gate Code Duplication in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D5 · Coupling
7 production modules (Cargo+npm), 0 dependency cycle(s), 0 unstable depended-on module(s). Read from the build's own module declarations; 3 module(s) off the main sequence, with abstractness counted on 4 of the 7 (the rest declare no modelled class or interface, export only macros, or have no source directory of their own).
What to do
- Resolve the 3 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (3 warning-level).
- Stand up a CI pipeline, then gate Coupling in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D6 · Cohesion (LCOM4)
0 of 22 classes have LCOM4 above 3.
D9 · Test Distribution
6 test methods: 6 unit, 0 integration, 0 BDD, 0 e2e. The Rust suite contributes 6 `#[test]` function(s) across 3 file(s) declaring at least one; its unit/integration split is Cargo's own — 0 of those file(s) are integration-test targets under a crate's tests/ directory, and the rest are #[test] functions compiled into the crate they test.
D13 · REDACTED Scanning
REDACTED scan ran and found no leaked secrets.
D14 · License Compliance
1 of 24 shipped npm package(s) use a banned license. Licences were resolved from registry.npmjs.org over the 25 production dependency(ies) this repository's committed lockfile resolves, across 3 product package.json manifest(s). Its 3 `devDependencies` declaration(s) are excluded: a consumer installs none of them. ★ DEPTH: this is the DIRECT production set the lockfile resolves, NOT the transitive closure — only one of the four lock dialects this pass reads states a full graph, so a banned licence pulled in only by a dependency's OWN dependencies is outside this verdict, exactly as the JVM arm's declaration-site verdict is. ★ Each licence is the one the registry publishes for the package's CURRENT release rather than for the pinned version, which is the same caveat the Hex and RubyGems arms carry. 1 of them publish no licence this pass can read on registry.npmjs.org — an absent field, `UNLICENSED`, or a `SEE LICENSE IN <file>` pointer into a tarball this pass does not download; that is missing data, not a violation, and none of them is charged. A further 1 package(s) the lockfile resolves are not published on the public registry at all — a private scope, a workspace-internal name or a git install — and are outside this verdict. ★ COVERAGE OF THIS VERDICT: it grades this repository's npm package dependencies and nothing else. The repository also declares a Cargo manifest, and the licences of those dependencies were NOT read by this pass — a gap in this engine's coverage, not a statement about them. So this result says the graded closure carries no banned licence; it does NOT say this repository's licensing is clear.
What to do
- Resolve the 1 Banned license finding(s) in License Compliance. — One of this dimension's main actionable groups (1 issue-level).
- Stand up a CI pipeline, then gate License Compliance in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Verified — provenance only; does not change the score.
D15 · Churn × Complexity Hotspots
No churn × complexity hotspots in the window.
D17 · Explicit Debt
1 deducted task-comment markers across 6879 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
What to do
- Resolve the 1 TodoComment finding(s) in Explicit Debt — start with commands.rs. — One of this dimension's main actionable groups (1 warning-level).
- Stand up a CI pipeline, then gate Explicit Debt in it to reach Verified (currently Documented). — This repository has no CI pipeline, so there is nothing to add a gate to yet — the pipeline comes first. Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
D19 · Documentation Quality
The root README gives a strong overview of what the project is (Solana MEV sniper copy trading bot built for PumpFun, Bonk, Raydium) and why Alpenglow matters. It also links to an Alpenglow update announcement and encourages star+watch on Telegram, which are good engagement signals. The four READMEs each document their own directories (1_solana sniper bot(node), 2_copy trading bot(node), #_sniper (Rust)), with the root README covering installation/usage/contributing as a single cohesive doc.
What to do
- Improve Documentation Quality — currently 8.0/10. — The root README gives a strong overview of what the project is (Solana MEV sniper copy trading bot built for PumpFun, Bonk, Raydium) and why Alpenglow matters. It also links to an Alpenglow update announcement and encourages star+watch on Telegram, which are good engagement signals. The four READMEs each document their own directories (1_solana sniper bot(node), 2_copy trading bot(node), #_sniper (Rust)), with the root README covering installation/usage/contributing as a single cohesive doc.
D21 · Naming Consistency
0 naming inconsistencies across 0 sampled symbols.
D22 · Internal API Consistency
5 API inconsistencies across a 400-member sample of 80 exposed types.
What to do
- Resolve the 1 Massive redundancy in instruction generation methods. For every action… finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 Duplicate RPC client instances. Both `AppState` and `Pump` structs… finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (1 warning-level).
- Resolve the 1 Identical types defined in multiple service modules. `TipAccountResult`… finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (1 warning-level).
D26 · Project Cohesion
0 of 4 build units (Cargo) flagged as possibly oversized/incoherent.
D28 · Secrets (history)
6 finding(s): 0 critical, 6 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
What to do
- Resolve the 6 REDACTED finding(s) in Secrets (history) — start with REDACTED (4), REDACTED (2). — One of this dimension's main actionable groups (6 issue-level).
- Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
D29 · Static Analysis (SAST)
semgrep found no security issues. semgrep hit a parse error in 3 file(s) — `#_sniper (Rust) using jito Shred stream/detectionlogs.json`, `#_sniper (Rust) using jito Shred stream/logs.json`, `#_sniper (Rust) using jito Shred stream/shredstreamproxy.sh` (line 25) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them.
D30 · Dependency Vulnerabilities
41 finding(s): 4 critical, 22 high, 14 medium, 1 low.
What to do
- Resolve the 22 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (22). — One of this dimension's main actionable groups (22 issue-level).
- Resolve the 14 Medium CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (14). — One of this dimension's main actionable groups (14 warning-level).
- Resolve the 4 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (4). — One of this dimension's main actionable groups (4 issue-level).
D31 · IaC & Container Security
1 finding(s): 0 critical, 0 high, 1 medium, 0 low.
What to do
- Resolve the 1 Medium IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
D35 · Change Coupling
No strong hidden change-coupling between production files.
D37 · Vulnerability-disclosure Policy
A vulnerability-disclosure policy (SECURITY.md) is published with a reporting contact.
D43 · Malicious Dependencies
1 finding(s): 0 critical, 0 high, 1 medium, 0 low.
What to do
- Resolve the 1 Malicious package finding(s) in Malicious Dependencies — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
Frontend & cross-cutting dimensions
AC1 · Text alternatives
- A <canvas> with no aria-label/title and no inner fallback content can't be described by assistive tech. Add a name or fallback content. (×2) — 2_copy trading bot(node) using gRPC/dashboard/public/index.html:100, 2_copy trading bot(node) using gRPC/dashboard/public/index.html:106
What to do
- Add a text alternative — alt on images (alt="" for purely decorative ones), a title or aria-label on meaningful svg, an aria-label or inner fallback content on canvas, and a captions <track> on video.
AC2 · Forms & labels
- A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one). (×2) — 2_copy trading bot(node) using gRPC/dashboard/public/dashboard.js:264, 2_copy trading bot(node) using gRPC/dashboard/public/index.html:43
What to do
- Give every control a programmatic label (a <label for> / wrapping <label> / aria-label) and every button text — a placeholder is not a label.
AC3 · Page structure
- Skipping heading levels breaks the document outline assistive tech relies on. Don't jump levels — increase by at most one. — 2_copy trading bot(node) using gRPC/dashboard/public/index.html:99
What to do
- Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
AC6 · Visual & motion safety
AC7 · A11y enforcement
- No accessibility enforcement found — no a11y linter (an accessibility check that can read your UI — no component framework was detected and your pages are rendered by server-side templates, which neither the JSX/Vue ESLint plugins nor the HTML-template linters can parse; run axe/pa11y over the rendered pages, or assert the accessibility invariants over that rendered HTML in the test suite you already have) and no axe/pa11y/Lighthouse in tests or CI. Start by running that check over your rendered pages in CI. What was searched, so you can tell an absence from a miss: the 2 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository's test and CI files — matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here.
What to do
- Enforce accessibility in the toolchain: add an accessibility check that can read your UI — no component framework was detected and your pages are rendered by server-side templates, which neither the JSX/Vue ESLint plugins nor the HTML-template linters can parse; run axe/pa11y over the rendered pages, or assert the accessibility invariants over that rendered HTML in the test suite you already have, then assert with your test runner's axe binding (jest-axe, vitest-axe, cypress-axe or @axe-core/playwright) in tests, then gate axe/pa11y/Lighthouse in CI.
AX10 · Code composition
What to do
- The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX3 · Project dependency cycles
AX4 · Dependency direction
AX9 · CQS / query purity
M1 · Documentation (README)
What to do
- Add a 'Testing' section to the root README — how to run the test suite.
- Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
- Add a README to the 4 of 7 project(s) that lack one — worth up to 1.1 pts.
M2 · Architecture documentation
- No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
What to do
- Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree, with each file named `NNNN-title` in whatever markup those docs already use, is the most discoverable form).
M3 · Folder & project structure
M4 · Documentation accuracy
- README omits the Rust MEV sniper project (jito Shred stream) entirely — reported by the model that read the README against this repository; no term search was run for this one, so nothing here has been checked against the tree. Treat it as a reading to confirm, not as a measured contradiction: verify it against the code before acting on it, and if the footprint it describes does exist, this row is wrong.
- README omits the Node.js copy trading bot with gRPC dashboard and Telegram alerts — reported by the model that read the README against this repository; no term search was run for this one, so nothing here has been checked against the tree. Treat it as a reading to confirm, not as a measured contradiction: verify it against the code before acting on it, and if the footprint it describes does exist, this row is wrong.
- README advertises a RAG / ML engine, but no ML/RAG code or dependency exists — searched for: `rag`, `langchain`, `llamaindex`, `pinecone`, `weaviate`, `qdrant`, `embeddings`. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest files (package.json, *.csproj, *.props, *.slnx, *.yml, Dockerfile); the README's own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read — a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong.
What to do
- Reconcile the README with reality: README omits the Rust MEV sniper project (jito Shred stream) entirely; README omits the Node.js copy trading bot with gRPC dashboard and Telegram alerts; README advertises a RAG / ML engine, but no ML/RAG code or dependency exists.
P1 · CI/CD gates
- No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, …) — changes aren't gated by an automated build/test.
What to do
- Add a CI workflow that builds and runs the test suite on every push/PR.
P10 · Library API & versioning
P2 · Observability
What to do
- Add OpenTelemetry tracing/metrics (opentelemetry with tracing-opentelemetry) so requests are traceable across the system, not just health-probable.
P3 · Security & performance tooling
- No static application security testing detected. For this repository's stack, add cargo-audit / cargo-deny (or clippy) (or `semgrep --config=auto`, which runs on any language) — this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
What to do
- Run what this repository's stack ships: cargo-audit / cargo-deny (or clippy) — or `semgrep --config=auto`, which runs on any language — locally for now, since there is no CI pipeline here yet, and as a step of the first workflow you add so a security regression fails the build instead of landing.
- Enable Dependabot/Renovate or a dependency-review gate.
- Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback
- Deployment is orchestrated by compose, but no service declares a `healthcheck:` and nothing pins a previous image to fall back to — the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse.
What to do
- Add a `healthcheck:` to the served compose service — probing the endpoint it already answers on where it has one — with `depends_on: condition: service_healthy` on whatever waits for it, and keep the deployed image tag immutable and recorded so rolling back is re-pointing at the previous tag rather than rebuilding.
- Add an approval/environment gate (required reviewers / protection rules) before production promotion.
P5 · DR & Backup
- A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced — a volume that survives a container recreate is not a tested restore from catastrophic loss.
What to do
- Codify backups + geo-recovery in IaC and document RTO/RPO and the restore procedure — a persistence guard alone is not disaster recovery.
P7 · Outbound HTTP resilience
- `Client::new()` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. 3 of the 5 files that make outbound calls are unbounded; the first 3 are listed. — #_sniper (Rust) using jito Shred stream/src/services/jito.rs:89
- `Client::new()` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. — #_sniper (Rust) using jito Shred stream/src/services/zeroslot.rs:88
- `axios.post(` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. — 2_copy trading bot(node) using gRPC/services/notifications.js:96
What to do
- Give every client a whole-request bound: `reqwest::Client::builder().timeout(Duration::from_secs(10))` (never `reqwest::get` or `Client::new()`, which have none), ureq's `timeout_global`, or wrap the call in `tokio::time::timeout`; add retry with back-off (`reqwest-retry`'s `RetryTransientMiddleware`, `backoff`) around dependencies that fail.
- Bound every outbound call: pass `signal: AbortSignal.timeout(ms)` to `fetch`, set `timeout` on the axios instance (`axios.create({ timeout })`), and add retries with back-off (`axios-retry`, `p-retry`) and a breaker (`opossum`, `cockatiel`) around dependencies that fail.
PF3 · Async & latency hygiene
R1 · Type Safety
- 0 typed · 22 plain JS — the untyped files are 1_solana sniper bot(node) using gRPC/fuc.js, REDACTED, 1_solana sniper bot(node) using gRPC/index.js, 1_solana sniper bot(node) using gRPC/main.js, 1_solana sniper bot(node) using gRPC/parsingtransaction.js, 1_solana sniper bot(node) using gRPC/swap(offchain).js (+16 more).
What to do
- Adopt TypeScript for the frontend: add a typecheck step to the build, then either type-check the existing JavaScript in place (`checkJs`/JSDoc types) or convert the highest-traffic modules first — no file is typed today, so this is an adoption, not a clean-up.
R10 · Code Duplication
- 1_solana sniper bot(node) using gRPC/ and 2_copy trading bot(node) using gRPC/ are near-verbatim copies of each other: 10 files are byte-identical under the same relative paths (~17978 lines; the trees hold 14 and 25 files). That is one structural fact, not 10 local ones: every edit made to one tree and not the other drifts silently, which is the failure whole-tree forks guarantee. Pick one tree as the single source and produce the other from it (generated, copied at build or release time, or re-exported) — or, if the copy is a stale snapshot nothing produces any more, delete it. Check first whether the copy is a deliberately published deliverable (a template consumers copy verbatim, a released sample frozen at a version); where it is, keep it produced from the source tree rather than edited in place. — REDACTED:1
- 5 of the duplicated blocks reported below have copies in at least two of the sibling directories 1_solana sniper bot(node) using gRPC, 2_copy trading bot(node) using gRPC, 3_sniper bot(node) using using Helius websocket under the repository root. That concentration is one structural fact, not 5 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module — a common library every sibling imports — rather than 5 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on. — 1_solana sniper bot(node) using gRPC/parsingtransaction.js:1
- 1_solana sniper bot(node) using gRPC/parsingtransaction.js:1 · 2_copy trading bot(node) using gRPC/parsingtransaction.js:1 — these 2 files are line-for-line copies of one another — 182 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — 1_solana sniper bot(node) using gRPC/parsingtransaction.js:1
- 1_solana sniper bot(node) using gRPC/swap.js:1 · 2_copy trading bot(node) using gRPC/swap.js:1 · 3_sniper bot(node) using using Helius websocket/swap.js:1 — these 3 files are line-for-line copies of one another — 156 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — 1_solana sniper bot(node) using gRPC/swap.js:1
- REDACTED:1 · REDACTED:1 — these 2 files are line-for-line copies of one another — 125 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — REDACTED:1
- 1_solana sniper bot(node) using gRPC/fuc.js:1 · 2_copy trading bot(node) using gRPC/fuc.js:1 — these 2 files are line-for-line copies of one another — 95 lines are identical, in the same order, in every one of them — so this is one fact about the file set, not a block to extract. An edit made to one file and not the others changes behaviour silently, which is the failure a wholesale copy guarantees. Pick one file as the single source and derive the others from it (re-export it, spread it into the local overrides each variant genuinely needs, or generate the copies at build time) — the few lines that differ between the files are exactly the part each variant should still own. Check first whether the copies are deliberately standalone deliverables (a translation file seeded from its sibling and waiting to be translated); where they are, the duplication is the design, and the honest move is to mark the seeded file as untranslated rather than to let it pass as done. — 1_solana sniper bot(node) using gRPC/fuc.js:1
- 2_copy trading bot(node) using gRPC/index.js:97 · 2_copy trading bot(node) using gRPC/main.js:75 — the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — 2_copy trading bot(node) using gRPC/index.js:97
- 2_copy trading bot(node) using gRPC/dashboard/server.js:69 · 2_copy trading bot(node) using gRPC/dashboard/server.js:114 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — 2_copy trading bot(node) using gRPC/dashboard/server.js:69
- 2_copy trading bot(node) using gRPC/dashboard/server.js:88 · 2_copy trading bot(node) using gRPC/dashboard/server.js:105 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — 2_copy trading bot(node) using gRPC/dashboard/server.js:88
- 2_copy trading bot(node) using gRPC/services/notifications.js:136 · 2_copy trading bot(node) using gRPC/services/notifications.js:148 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — 2_copy trading bot(node) using gRPC/services/notifications.js:136
- 2_copy trading bot(node) using gRPC/utils/logger.js:109 · 2_copy trading bot(node) using gRPC/utils/logger.js:162 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. — 2_copy trading bot(node) using gRPC/utils/logger.js:109
- 2_copy trading bot(node) using gRPC/dashboard/server.js:123 · 2_copy trading bot(node) using gRPC/dashboard/server.js:141 — all 2 copies are in the same file, and the CITED SPAN is not a self-contained block — it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead — the whole function, component or branch these lines sit in — and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported. — 2_copy trading bot(node) using gRPC/dashboard/server.js:123
- 1_solana sniper bot(node) using gRPC/main.js:9 · 1_solana sniper bot(node) using gRPC/swap.js:20 · 2_copy trading bot(node) using gRPC/swap.js:20 · 3_sniper bot(node) using using Helius websocket/swap.js:21 — the 4 copies are spread across 4 files, and the CITED SPAN is a run of MODULE-LEVEL DECLARATIONS — bindings the module declares and exports — rather than statements with a call site. Do not read this as an extract-a-helper row: a call expression cannot stand where a declaration was, and putting one there would delete the names themselves, which are what the rest of the codebase imports. What actually repeats here is the INITIALISER — the same expression shape written once per binding. So give that expression one name (a small helper the initialisers call, or a shared base value they are each derived from) and keep every binding under the name it already has. Where the run is an enumeration — one binding per distinct thing, differing precisely in the thing each one names — the repetition IS the enumeration and collapsing it would delete entries; consider instead whether the set belongs in one exported table the individual names are read out of. Reported because the copies drift apart the first time only one of them is edited. — 1_solana sniper bot(node) using gRPC/main.js:9
What to do
- Act on each finding's own remediation rather than one rule: the move depends on what recurs. Where the copies are executable blocks, give the shared part one home and call it from each site; where they are declarations, a listing, a specialisation already delegating to its base, or one shape repeated per entity, there is no call site and the move is a shared type, a generated set or a factory — sometimes there is nothing to extract.
R11 · Import Boundaries
- 3_sniper bot(node) using using Helius websocket/swap.js:13 reaches into another package with a relative path (./logger.js) — import the package by name instead. — 3_sniper bot(node) using using Helius websocket/swap.js:13
What to do
- Fix the listed violations: import through public entries (package exports / slice index), never reach into another layer or package's internals.
R2 · Cyclomatic Complexity
- (anonymous) has cyclomatic complexity 20 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. (×2) — REDACTED:86, REDACTED:86
- swap has cyclomatic complexity 16 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. (×3) — 1_solana sniper bot(node) using gRPC/swap.js:227, 2_copy trading bot(node) using gRPC/swap.js:227, 3_sniper bot(node) using using Helius websocket/swap.js:191
- getSplTokenBalance has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side — extracting each decision into its own named function is the change that pays. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. (×2) — 1_solana sniper bot(node) using gRPC/fuc.js:89, 2_copy trading bot(node) using gRPC/fuc.js:89
- tOutPut has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth — arms side by side rather than stacked — and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository's own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes. (×2) — 1_solana sniper bot(node) using gRPC/parsingtransaction.js:56, 2_copy trading bot(node) using gRPC/parsingtransaction.js:56
What to do
- Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
R3 · Large Files
R4 · Test Coverage
- 0% of 22 production file(s) reachable from 0 test file(s) via the import graph — 'production' here is the RESIDUE: every source file left once tests, tooling, generated output, config, declarations and declaration-only modules, fixture corpora, type fixtures, behaviour-free data modules, re-export barrels, registration/constant data modules and service workers are set aside, so the percentage is taken over a smaller denominator than the workspace's file count
What to do
- Add tests that import the unreached modules (directly or through their public entry).
R5 · Dependency Freshness
What to do
- Bump outdated dependencies to current versions to limit upgrade debt.
R6 · Tooling
- test ✗ · lint ✗ · typecheck ✗ — read from this repository's package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: `test` for the suite, `lint` or `prettier` for linting, `typecheck`/`type-check`/`tsc` for type checking. ✗ therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline — a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A ✓ means the wiring is DECLARED — a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite.
What to do
- Add a test runner (vitest / jest / playwright) and eslint and type checking (adopt TypeScript, or type-check the existing JavaScript with `checkJs`) as package.json scripts and run them in CI.
R7 · Dead Code
- 2 file(s) (~325 LoC) were excluded from dead-code analysis. This package DOES declare main/module/exports — but every declared target is missing from the scanned tree, which is what a build-output entry (dist/, lib/, out/) looks like before the package is built. Point a declared target at the source entry, or build the package before scanning, so reachability can follow it. — 3_sniper bot(node) using using Helius websocket
- Unreachable from the 3 application, 0 tooling and 0 test entry point(s) detected in this repo. This repository declares no build, type-check or test script, so nothing here would fail on a wrong deletion — confirm by hand that nothing loads each file (including by a path built at runtime) before removing it. An undetected custom entry would make these reachable.
- no import path from any entry point (3 application, 0 tooling, 0 test roots considered), and no other file in the scanned tree imports it — nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make (×2) — 1_solana sniper bot(node) using gRPC/swap(offchain).js, 2_copy trading bot(node) using gRPC/swap(offchain).js
- Nothing imports this binding — it is safe to review for removal. (×18) — 1_solana sniper bot(node) using gRPC/fuc.js:136, 1_solana sniper bot(node) using gRPC/swap.js:28, 2_copy trading bot(node) using gRPC/config.js:162, …
What to do
- Delete the dead files and unused exports — every line is maintenance cost and rebuild-estimate inflation with zero runtime value.
R8 · Dependency Hygiene
- Declared in 1_solana sniper bot(node) using gRPC/package.json but never imported anywhere in that package or its workspace members — no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it. (×3)
What to do
- Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
R9 · Circular Imports
- 1_solana sniper bot(node) using gRPC/fuc.js → 1_solana sniper bot(node) using gRPC/swap.js → 1_solana sniper bot(node) using gRPC/fuc.js — 1_solana sniper bot(node) using gRPC/fuc.js
- REDACTED → 1_solana sniper bot(node) using gRPC/main.js → REDACTED — REDACTED
- 2_copy trading bot(node) using gRPC/fuc.js → 2_copy trading bot(node) using gRPC/swap.js → 2_copy trading bot(node) using gRPC/fuc.js — 2_copy trading bot(node) using gRPC/fuc.js
- REDACTED → 2_copy trading bot(node) using gRPC/main.js → REDACTED — REDACTED
What to do
- Break each cycle by extracting the shared piece into a module both sides can import.
S1 · Web-Security Posture
- `https://cdn.jsdelivr.net/npm/chart.js` is executed by this page with no Subresource Integrity. Whoever can answer that request — the CDN, anyone who compromises it, anyone on the network path — runs arbitrary script in this page's origin, with its session. The URL also names no version, so it resolves to whatever that origin serves at fetch time — the executed bytes can change with nobody touching this repository. — 2_copy trading bot(node) using gRPC/dashboard/public/index.html:9
What to do
- Pin third-party scripts and verify them: name an exact version in the URL and add an `integrity="sha384-…"` hash alongside `crossorigin="anonymous"` (both are required — an integrity hash on a cross-origin script without `crossorigin` is not evaluated, it blocks the script). Where the vendor ships a continuously-updated loader and publishes no stable hash (tag managers, analytics, chat widgets), Subresource Integrity is not available: constrain it instead with a `Content-Security-Policy` that names the exact origins allowed to execute, and drop the script from the pages that do not need it. Where the page is shipped inside a package that others host, prefer vendoring the asset and serving it from the app’s own origin, so no consumer inherits a third-party dependency they did not choose.
X29 · Per-element action decided by a fixed element
WCAG coverage — what static analysis assessed
| Dimension | WCAG 2.2 A/AA criteria | Coverage |
|---|---|---|
| AC1 · Text alternatives | 1.1.1, 1.2.2, 1.2.5 | Partial signal |
| AC2 · Forms & labels | 1.3.1, 3.3.2, 4.1.2 | Partial signal |
| AC3 · Page structure | 1.4.4, 2.2.1, 2.4.1, 2.4.2, 3.1.1, 4.1.2 | Partial signal |
| AC6 · Visual & motion safety | 1.4.3, 2.4.7 | Partial — literal CSS only |
| AC7 · A11y enforcement | enforcement — no page criterion | Enforcement posture (process) |
Reference — by lens
| Lens | Score | Rating | Impact |
|---|---|---|---|
| Code Health | 58% | Adequate — gated by R1 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Architecture | 66% | Adequate — gated by R9 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Maturity | 72% | Strong | Solid. |
| Readiness | 10% | Critical — gated by R4, R6, R8, P1, P3, P5, P7 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Security | 67% | Adequate — gated by D30, D43 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Accessibility | 40% | Weak — gated by AC1 | Capped at Fair by a Critical contributor — resolve it before relying on this lens. |
| Performance | 100% | Exemplary | Strongest area. |
Unscored — 1 check(s) recorded observations but carry no score
- X10 Duplicated predicate — 3 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 4 control(s) we could not find positive evidence for
- C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C4 Data Retention — Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- P6 Release Hygiene — not evidenced — no changelog, version stamp or semver release tag in the repo
Not included — 71 check(s) not relevant to this codebase
- AC4 Keyboard semantics — No interactive element found in the parsed markup — AC4 not applicable here.
- AC5 ARIA correctness — No ARIA usage found in the parsed markup — AC5 not applicable here.
- AX1 Captive dependencies — Not applicable: this repository's JavaScript imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's; Rust with no dependency-injection crate has no container to hand one lifetime's instance to another — every value is owned by the code that builds it, and the borrow checker rejects a longer-lived value keeping a borrow of a shorter-lived one.
- AX2 Stateful singletons — Not applicable: Rust's compiler refuses unsynchronised shared mutation — a value shared across threads must be Sync — so the race this check looks for cannot be written. TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
- AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX6 Interface segregation — not assessed — interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- AX7 Slice cohesion — not applicable — not a vertical-slice architecture
- AX8 Test isolation — no test/production split to check
- AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- AXR1 Runtime accessibility — compose up failed (exit 18 — an image could not be pulled) — db Pulling rustapp Pulling rustapp Warning Get "https://registry-1.docker.io/v2/": Forbidden db Error Get "https://registry-1.docker.io/v2/": Forbidden Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the earlier `compose pull` step reported: db Pulling rustapp Pulling db Error Get "https://registry-1.docker.io/v2/": Forbidden rustapp Warning Get "https://registry-1.docker.io/v2/": Forbidden WARNING: Some service image(s) must be built from source by running: docker compose build rustapp Error response from daemon: Get "https://registry-1.docker.io/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
- C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
- D10 Test Quality — ~3 lines of test source are present (.rs) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
- D11 Test Reliability — Test reliability not included — the .rs suite was found but not re-run
- D12 Dependency Hygiene — Not scored — 61 direct Cargo declaration(s) were read, but the outdated signal needs crates.io, and no committed Cargo.lock resolves them to versions, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
- D16 Bus Factor — too few commits for a meaningful bus factor
- D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
- D20 ADR Quality — N/A — ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
- D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout nor 2+ sibling source directories each declaring an aggregate root. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
- D24 Comment Value — No inline comments to assess — comment value is not applicable here.
- D25 ADR Conformance — no ADRs to check
- D27 Navigability — symbol resolution incomplete — navigability not assessed
- D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
- D34 Knowledge Freshness — too few commits to judge knowledge freshness
- D36 Supply-chain Provenance & Signing — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for.
- D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
- D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
- D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
- D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
- D44 Platform End-of-Life — Platform end-of-life not assessed — this repository declares no platform this pass reads
- D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
- D8 Code Coverage — Coverage not included — suite not readable by the collector
- DM1 Domain Modelling — not scored — this repository shows only 1 of the 3 signals this lens looks for (14 value object(s))
- ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and a call made through an inferred or generic receiver has no resolvable owner in the source. Reported as guidance rather than measured
- ED5 Idempotency — This check finds retry-prone mutations (command handlers and message/event consumers) by walking the repository's declared types, and none was loaded here, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
- GD1 Unfinished & placeholder code — no source files were read — this check reads C# syntax, and none was loaded for this repository. That is a limit of the analyzer, not a finding about your code.
- IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- P12 CI test-gate honesty — no CI workflow found
- P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
- P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
- PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for `#[bench]`, criterion's `bench_function`/`bench_with_input`, `#[divan::bench]` or `#[library_benchmark]` in any `.rs` file, or criterion, divan, iai or a `[[bench]]` target in a Cargo.toml, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
- PF2 Allocation hygiene — Not applicable: Rust spells out every heap allocation and makes borrowed slices (&[T], &str) its ordinary parameter types, so the allocation-aware style this card rewards elsewhere is the language's baseline rather than a rung to climb. TypeScript/JavaScript runs on a garbage-collected runtime that gives a program no allocation-control idiom to choose on a hot path — no pools, stack allocation or value types — so allocation awareness is not something this code can be rated on.
- SC1 Supply-chain hygiene — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X1 Async correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X12 Unreachable branch — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X13 Undrained process stream — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X14 Bypassable address classification — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X15 Unvalidated length from an untrusted reader — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X16 Unfloored truncation loop — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X17 Uncapped recursion over a caller-supplied document — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X18 Disposal-pattern correctness — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X19 Unrestored process-global state — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X20 Mistyped argument guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X21 Side-effecting pattern guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X22 Contradicted release guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X23 Unguarded diagnostic materialisation — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X24 Document value interpolated into markup unescaped — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X25 Inert configuration knob — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X26 Unsynchronised callback handoff — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X27 Collection changed while being enumerated — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X28 Index access outside its own emptiness guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X3 Exception handling — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X30 Support guard that admits what it rejects — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
- X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
- X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X5 Nullable reference types — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
- X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X7 Silent fallback defaults — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
- X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
Critical — 39 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- Import cycle (2 files) 1_solana sniper bot(node) using gRPC/fuc.js
- Import cycle (2 files) REDACTED
- Import cycle (2 files) 2_copy trading bot(node) using gRPC/fuc.js
- Import cycle (2 files) REDACTED
- <button> with no accessible text 2_copy trading bot(node) using gRPC/dashboard/public/dashboard.js:264
- <button> with no accessible text 2_copy trading bot(node) using gRPC/dashboard/public/index.html:43
- Banned license: @raydium-io/raydium-sdk
Serious — 116 finding(s)
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- REDACTED
- grpc_raydium_pool_monitoring_rust::secondbuy::handle_detection_event (cognitive 139) #_sniper (Rust) using jito Shred stream/src/secondbuy.rs:9
- grpc_raydium_pool_monitoring_rust::hardcap::handle_buy_and_sell_logic (cognitive 119) #_sniper (Rust) using jito Shred stream/src/hardcap.rs:1
- grpc_raydium_pool_monitoring_rust::commands::handle_command (cognitive 68) #_sniper (Rust) using jito Shred stream/src/commands.rs:40
- grpc_raydium_pool_monitoring_rust::shred_stream::reconcile_flows (cognitive 24) #_sniper (Rust) using jito Shred stream/src/shred_stream.rs:147
- grpc_raydium_pool_monitoring_rust::core::tx::new_signed_and_send (cognitive 20) #_sniper (Rust) using jito Shred stream/src/core/tx.rs:105
- grpc_raydium_pool_monitoring_rust::shred_stream::reconcile_sells (cognitive 19) #_sniper (Rust) using jito Shred stream/src/shred_stream.rs:371
- grpc_raydium_pool_monitoring_rust::commands::handle_command (cyclomatic 38) #_sniper (Rust) using jito Shred stream/src/commands.rs:40
- grpc_raydium_pool_monitoring_rust::hardcap::handle_buy_and_sell_logic (cyclomatic 32) #_sniper (Rust) using jito Shred stream/src/hardcap.rs:1
- grpc_raydium_pool_monitoring_rust::secondbuy::handle_detection_event (cyclomatic 30) #_sniper (Rust) using jito Shred stream/src/secondbuy.rs:9
- swap.swap (cyclomatic 16) 1_solana sniper bot(node) using gRPC/swap.js:227
- swap.swap (cyclomatic 16) 2_copy trading bot(node) using gRPC/swap.js:227
- swap.swap (cyclomatic 16) 3_sniper bot(node) using using Helius websocket/swap.js:191
- swap.swap (cognitive 25) 1_solana sniper bot(node) using gRPC/swap.js:227
- swap.swap (cognitive 25) 2_copy trading bot(node) using gRPC/swap.js:227
- swap.swap (cognitive 25) 3_sniper bot(node) using using Helius websocket/swap.js:191
- FunctionTooLong: grpc_raydium_pool_monitoring_rust::commands::handle_command #_sniper (Rust) using jito Shred stream/src/commands.rs:40
- FunctionTooLong: parsingtransaction.parseTransactionData 1_solana sniper bot(node) using gRPC/parsingtransaction.js:122
- FunctionTooLong: parsingtransaction.parseTransactionData 2_copy trading bot(node) using gRPC/parsingtransaction.js:122
- Duplicated block (12 lines × 2) #_sniper (Rust) using jito Shred stream/parsers/pump_interface/src/instructions.rs:890
- Duplicated block (12 lines × 2) #_sniper (Rust) using jito Shred stream/parsers/pump_interface/src/instructions.rs:974
- Duplicated block (12 lines × 2) #_sniper (Rust) using jito Shred stream/parsers/pump_interface/src/instructions.rs:1010
- Duplicated block (9 lines × 2) #_sniper (Rust) using jito Shred stream/parsers/pump_interface/src/instructions.rs:887
- Duplicated block (9 lines × 2) #_sniper (Rust) using jito Shred stream/parsers/pump_interface/src/instructions.rs:1007
- Duplicated block (9 lines × 2) #_sniper (Rust) using jito Shred stream/src/core/token.rs:67
- Duplicated block (6 lines × 2) #_sniper (Rust) using jito Shred stream/src/common/logger.rs:34
- Duplicated block (6 lines × 2) #_sniper (Rust) using jito Shred stream/src/common/logger.rs:50
- Duplicated block (6 lines × 2) #_sniper (Rust) using jito Shred stream/src/hardcap.rs:65
- Off the main sequence: pump_interface
- Off the main sequence: shared_state
- Off the main sequence: jito-block-engine-json-rpc-client
- Outbound HTTP without resilience #_sniper (Rust) using jito Shred stream/src/services/jito.rs:89
- Outbound HTTP without resilience #_sniper (Rust) using jito Shred stream/src/services/zeroslot.rs:88
- Outbound HTTP without resilience 2_copy trading bot(node) using gRPC/services/notifications.js:96
- Complex function swap (cyclomatic 16, cognitive 25) 1_solana sniper bot(node) using gRPC/swap.js:227
- Complex function swap (cyclomatic 16, cognitive 25) 2_copy trading bot(node) using gRPC/swap.js:227
- Complex function swap (cyclomatic 16, cognitive 25) 3_sniper bot(node) using using Helius websocket/swap.js:191
- <canvas> without a text alternative 2_copy trading bot(node) using gRPC/dashboard/public/index.html:100
- <canvas> without a text alternative 2_copy trading bot(node) using gRPC/dashboard/public/index.html:106
- grpc.handleStream (cyclomatic 21) REDACTED:73
- grpc.handleStream (cyclomatic 21) REDACTED:73
- parsingtransaction.tOutPut (cyclomatic 19) 1_solana sniper bot(node) using gRPC/parsingtransaction.js:56
- parsingtransaction.tOutPut (cyclomatic 19) 2_copy trading bot(node) using gRPC/parsingtransaction.js:56
- parsingtransaction.parseTransactionFromData (cyclomatic 16) 1_solana sniper bot(node) using gRPC/parsingtransaction.js:4
- parsingtransaction.parseTransactionFromData (cyclomatic 16) 2_copy trading bot(node) using gRPC/parsingtransaction.js:4
- grpc.handleStream (cognitive 29) REDACTED:73
- grpc.handleStream (cognitive 29) REDACTED:73
- Duplicated block (8 lines × 2) #_sniper (Rust) using jito Shred stream/src/services/jito.rs:54
- Duplicated block (8 lines × 2) #_sniper (Rust) using jito Shred stream/src/common/logger.rs:41
- Duplicated block (10 lines × 2) #_sniper (Rust) using jito Shred stream/src/services/jito.rs:171
- Duplicated block (10 lines × 2) #_sniper (Rust) using jito Shred stream/src/core/tx.rs:163
- Duplicated block (10 lines × 2 locations) 2_copy trading bot(node) using gRPC/services/notifications.js:136
- Duplicated block (10 lines × 2 locations) 2_copy trading bot(node) using gRPC/utils/logger.js:109
- Complex function (anonymous) (cyclomatic 20, cognitive 28) REDACTED:86
- Complex function (anonymous) (cyclomatic 20, cognitive 28) REDACTED:86
- Complex function getSplTokenBalance (cyclomatic 12, cognitive 12) 1_solana sniper bot(node) using gRPC/fuc.js:89
- Complex function getSplTokenBalance (cyclomatic 12, cognitive 12) 2_copy trading bot(node) using gRPC/fuc.js:89
- Complex function tOutPut (cyclomatic 11, cognitive 9) 1_solana sniper bot(node) using gRPC/parsingtransaction.js:56
- Complex function tOutPut (cyclomatic 11, cognitive 9) 2_copy trading bot(node) using gRPC/parsingtransaction.js:56
- Dead file (~7 LoC) 1_solana sniper bot(node) using gRPC/swap(offchain).js
- Dead file (~7 LoC) 2_copy trading bot(node) using gRPC/swap(offchain).js
- Heading level jumps from h1 to h3 2_copy trading bot(node) using gRPC/dashboard/public/index.html:99
- Accessibility enforcement below the top rung
- TodoComment #_sniper (Rust) using jito Shred stream/src/commands.rs:68
- HttpSender::send (cognitive 48) #_sniper (Rust) using jito Shred stream/json-rpc-client/src/jsonrpc_client/http_sender.rs:99
- Massive redundancy in instruction generation methods. For every action (initialize, set_params, create, buy, sell, withdraw), there are 6 distinct methods differing only by whether they take a program_id, keys vs accounts, or require signing seeds. This creates a 6x explosion of API surface for identical logical operations.
- Duplicate RPC client instances. Both `AppState` and `Pump` structs maintain two separate fields for RPC clients: one blocking (`rpc_client`) and one non-blocking (`rpc_nonblocking_client`). This duplicates state management and initialization logic across multiple structs.
- Identical types defined in multiple service modules. `TipAccountResult` is defined identically in `jito`, `nextblock`, and `zeroslot` services, violating DRY principles and creating maintenance overhead.
- Identical types defined in multiple service modules. `BundleStatus` is defined identically in `jito` and `zeroslot` services.
- Redundant type definitions for account data. `GlobalAccount` is a wrapper around `Global` (exposing it as `.0`) that adds serialization methods. `BondingCurve` and `BondingCurveAccount` follow the same pattern. This forces users to choose between the raw data struct and the serializable wrapper, or understand the `.0` access pattern.
- FileTooLong: src/instructions.rs #_sniper (Rust) using jito Shred stream/parsers/pump_interface/src/instructions.rs
- TooManyMethods: BoughtTokenInfo #_sniper (Rust) using jito Shred stream/shared_state/src/lib.rs:28
- REDACTED
- Duplicated block (51 lines × 2) #_sniper (Rust) using jito Shred stream/src/services/jito.rs:120
- Duplicated block (19–20 lines × 2) #_sniper (Rust) using jito Shred stream/src/shred_stream.rs:298
- Duplicated block (14 lines × 2) #_sniper (Rust) using jito Shred stream/src/common/logger.rs:63
- Duplicated block (11 lines × 2) #_sniper (Rust) using jito Shred stream/src/services/jito.rs:83
- Duplicated block (5–6 lines × 3) #_sniper (Rust) using jito Shred stream/src/commands.rs:96
- Duplicated block (5 lines × 2) #_sniper (Rust) using jito Shred stream/src/secondbuy.rs:33
- Duplicated block (7 lines × 2) #_sniper (Rust) using jito Shred stream/src/hardcap.rs:76
- Duplicated block (5 lines × 3) #_sniper (Rust) using jito Shred stream/src/services/jito.rs:54
- REDACTED
- No CI pipeline
- No DR/backup evidence
- Type Safety
- Forked directory tree (10 identical files, ~17978 lines × 2 trees) REDACTED:1
- Duplication concentrated across 3 sibling directories (5 clone groups) 1_solana sniper bot(node) using gRPC/parsingtransaction.js:1
- Wholesale file copy (182 identical lines × 2 files) 1_solana sniper bot(node) using gRPC/parsingtransaction.js:1
- Wholesale file copy (156 identical lines × 3 files) 1_solana sniper bot(node) using gRPC/swap.js:1
- Wholesale file copy (125 identical lines × 2 files) REDACTED:1
- Wholesale file copy (95 identical lines × 2 files) 1_solana sniper bot(node) using gRPC/fuc.js:1
- Duplicated block (15 lines × 2 locations) 2_copy trading bot(node) using gRPC/index.js:97
- Duplicated block (14 lines × 2 locations) 2_copy trading bot(node) using gRPC/dashboard/server.js:69
- Duplicated block (11 lines × 2 locations) 2_copy trading bot(node) using gRPC/dashboard/server.js:88
- Duplicated block (9 lines × 2 locations) 2_copy trading bot(node) using gRPC/dashboard/server.js:123
- Duplicated block (5 lines × 4 locations) 1_solana sniper bot(node) using gRPC/main.js:9
- Boundary violation [package:relative-cross-package] 3_sniper bot(node) using using Helius websocket/swap.js:13
- Test Coverage
- No test, lint or typecheck script
- Unused dependency '@degenfrends/solana-rugchecker'
- Unused dependency '@pump-fun/pump-sdk'
- Unused dependency '@pump-fun/pump-swap-sdk'
- Third-party script without Subresource Integrity 2_copy trading bot(node) using gRPC/dashboard/public/index.html:9
Minor — 29 finding(s)
- README/code drift
- README/code drift
- README/code drift
- Duplicated predicate 1_solana sniper bot(node) using gRPC/fuc.js:125
- Duplicated predicate 1_solana sniper bot(node) using gRPC/fuc.js:113
- Duplicated predicate REDACTED:60
- Unused export 'checkWalletBalance' 1_solana sniper bot(node) using gRPC/fuc.js:136
- Unused export 'checkWalletBalance' 2_copy trading bot(node) using gRPC/fuc.js:136
- Unused export 'MAX_RETRIES' 1_solana sniper bot(node) using gRPC/swap.js:28
- Unused export 'MAX_RETRIES' 2_copy trading bot(node) using gRPC/swap.js:28
- REDACTED
- REDACTED
- No ADRs
- No SAST
- No rollback/health safety
- Unused export 'getModuleConfig' 2_copy trading bot(node) using gRPC/config.js:162
- Unused export 'default' 2_copy trading bot(node) using gRPC/config.js:180
- Unused export 'logTrade' 2_copy trading bot(node) using gRPC/utils/logger.js:83
- Unused export 'logProfit' 2_copy trading bot(node) using gRPC/utils/logger.js:87
- Unused export 'logLoss' 2_copy trading bot(node) using gRPC/utils/logger.js:91
- Unused export 'logSuccess' 2_copy trading bot(node) using gRPC/utils/logger.js:95
- Unused export 'logPerformance' 2_copy trading bot(node) using gRPC/utils/logger.js:100
- Unused export 'logTradeExecution' 2_copy trading bot(node) using gRPC/utils/logger.js:109
- Unused export 'logError' 2_copy trading bot(node) using gRPC/utils/logger.js:121
- Unused export 'logBalance' 2_copy trading bot(node) using gRPC/utils/logger.js:131
- Unused export 'logPosition' 2_copy trading bot(node) using gRPC/utils/logger.js:136
- Unused export 'logConfig' 2_copy trading bot(node) using gRPC/utils/logger.js:147
- Unused export 'logApiRequest' 2_copy trading bot(node) using gRPC/utils/logger.js:152
- Unused export 'logApiResponse' 2_copy trading bot(node) using gRPC/utils/logger.js:162
Appendix B — Reproduction & audit trail
| Dimension | Tool | Version | Command | Findings | Raw output |
|---|---|---|---|---|---|
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-9111dcfaa84c483c9ac16aa434fe941f/history.json --exit-code 0 --source . | 6 | artifacts/raw/gitleaks-history.json |
| D28 · Secrets (history) | gitleaks | — | gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-9111dcfaa84c483c9ac16aa434fe941f/tree.json --exit-code 0 --source . | 6 | artifacts/raw/gitleaks-tree.json |
| D29 · Static Analysis (SAST) | semgrep | — | semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off . | 0 | artifacts/raw/semgrep.json |
| D30 · Dependency Vulnerabilities | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 41 | artifacts/raw/trivy-fs.json |
| D31 · IaC & Container Security | trivy | — | trivy config --format json --quiet . | 1 | artifacts/raw/trivy-config.json |
| D32 · Data Compliance (PII/GDPR) | semgrep | — | semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that. | 0 | — |
| D36 · Supply-chain Provenance & Signing | provenance | — | provenance: not applicable — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for. | 0 | — |
| D40 · Network Egress Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here. | 0 | — |
| D41 · Kernel & Syscall Confinement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here. | 0 | — |
| D42 · Runtime Threat Enforcement | runtime-hardening | — | runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here. | 0 | — |
| D43 · Malicious Dependencies | trivy | — | trivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update | 1 | artifacts/raw/trivy-fs.json |