AI Slop Code Risk Monitor

junhoyeo/tokscale

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

🛰️ Track token usage across AI coding agents from your terminal. 🏅 Global leaderboard with trillions of tokens tracked.

2.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for junhoyeo/tokscale, a Rust project with 5,776 GitHub stars. SynthScan examined 378,835 lines of code across 635 source files, recording 877 pattern matches distributed across 14 syntactic categories. The legacy adjusted pattern signal is 2.7 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

2.7
Adjusted Signal
2.7
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
5.8K
Stars
Rust
Language
378.8K
Lines of Code
635
Files
877
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 9.5/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.2/100 · LOW

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

Agent Over-Engineering Ratio 4.7/100 · LOW

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

PR Review Velocity Impact 13.0/100 · LOW

Which changes need focused human review? 877 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 3MEDIUM 80LOW 794

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 877 distinct pattern matches across 14 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block638 hits · 600 pts
SeverityFileLineSnippetContext
LOWCargo.toml41# Named IANA timezones for the pinned bucketing zone (`scanner.bucketTimezone`).COMMENT
LOWCargo.toml61# HTTP client (async)COMMENT
LOWclippy.toml1# Only the Cursor client may pick a TLS backend of its own (#1250). reqwest'sCOMMENT
LOWcrates/tokscale-core/tests/gjc.rs61 .join("agent")COMMENT
LOWcrates/tokscale-core/tests/aside_integration.rs481/// Passing `ai-gateway` through also denies the row `ResolutionKind::ProviderScoped`:COMMENT
LOWcrates/tokscale-core/tests/anthropic_catalog.rs1//! Catalog invariant tests against the real cached pricing datasets.COMMENT
LOWcrates/tokscale-core/tests/graph_api_compatibility.rs1//! Compile and wire-contract coverage for callers of the original graph API.COMMENT
LOWcrates/tokscale-core/src/aggregator.rs221COMMENT
LOWcrates/tokscale-core/src/provider_identity.rs21 "fireworks" | "fireworks_ai" => "fireworks_ai",COMMENT
LOWcrates/tokscale-core/src/provider_identity.rs41 "deepseek" | "deepseek_ai" => "deepseek",COMMENT
LOWcrates/tokscale-core/src/provider_identity.rs141 for dotted in segment.split('.') {COMMENT
LOWcrates/tokscale-core/src/paths.rs1//! Cross-platform resolution for tokscale's user config and cache dirs.COMMENT
LOWcrates/tokscale-core/src/paths.rs21/// it. The asymmetry is invisible until something actually runs on Windows:COMMENT
LOWcrates/tokscale-core/src/paths.rs61/// `$HOME` on Windows, but only when it names a path Win32 can actually use.COMMENT
LOWcrates/tokscale-core/src/paths.rs81/// Absolute paths are recommended; relative paths are accepted andCOMMENT
LOWcrates/tokscale-core/src/paths.rs121 get_config_dir().join("cache")COMMENT
LOWcrates/tokscale-core/src/paths.rs141/// or `~/.cache/tokscale/`.COMMENT
LOWcrates/tokscale-core/src/paths.rs161/// resolved.COMMENT
LOWcrates/tokscale-core/src/paths.rs221 }COMMENT
LOWcrates/tokscale-core/src/paths.rs261 }COMMENT
LOWcrates/tokscale-core/src/paths.rs301 /// Every home-rooted test in the workspace redirects `HOME` and assumesCOMMENT
LOWcrates/tokscale-core/src/paths.rs321 #[test]COMMENT
LOWcrates/tokscale-core/src/bucket_tz.rs1//! The timezone a scan buckets usage into.COMMENT
LOWcrates/tokscale-core/src/bucket_tz.rs21//!COMMENT
LOWcrates/tokscale-core/src/bucket_tz.rs161/// The machine's current IANA zone name, if one can be determined **and** itCOMMENT
LOWcrates/tokscale-core/src/bucket_tz.rs201COMMENT
LOWcrates/tokscale-core/src/bucket_tz.rs221/// POSIX allows a leading colon (`TZ=:Asia/Seoul`). Values that are not zoneCOMMENT
LOWcrates/tokscale-core/src/bucket_tz.rs241/// rejects it. It produced no pin at all, on every run, for as long as theCOMMENT
LOWcrates/tokscale-core/src/bucket_tz.rs261/// Every day key in tokscale is derived from a `timestamp` field holding UnixCOMMENT
LOWcrates/tokscale-core/src/bucket_tz.rs281 "the rebucket passes skip non-positive timestamps, so the window must start \COMMENT
LOWcrates/tokscale-core/src/bucket_tz.rs301/// support that claim: two zones can match across recent rules and still differCOMMENT
LOWcrates/tokscale-core/src/bucket_tz.rs321/// That is the safe direction to be wrong in. Declining leaves the deviceCOMMENT
LOWcrates/tokscale-core/src/bucket_tz.rs561 );COMMENT
LOWcrates/tokscale-core/src/bucket_tz.rs601 .strip_prefix(':')COMMENT
LOWcrates/tokscale-core/src/scanner.rs21 path = %path.display(),COMMENT
LOWcrates/tokscale-core/src/scanner.rs41 /// Absolute paths to additional OpenCode SQLite databases to scan.COMMENT
LOWcrates/tokscale-core/src/scanner.rs61 /// IANA name of the timezone this device buckets usage days into, e.g.COMMENT
LOWcrates/tokscale-core/src/scanner.rs81 pub bucket_timezone: Option<String>,COMMENT
LOWcrates/tokscale-core/src/scanner.rs141 pub cherrystudio_db: Option<PathBuf>,COMMENT
LOWcrates/tokscale-core/src/scanner.rs461/// Discover `<account>/sessions/<session>/messages.jsonl` under `~/.aside/u`.COMMENT
LOWcrates/tokscale-core/src/scanner.rs721 // default `session`) and is the agent name for a subagent, soCOMMENT
LOWcrates/tokscale-core/src/scanner.rs921 ClientId::Amp,COMMENT
LOWcrates/tokscale-core/src/scanner.rs1001/// The three cases are deliberately distinct. OmO's merge replaces the wholeCOMMENT
LOWcrates/tokscale-core/src/scanner.rs1081COMMENT
LOWcrates/tokscale-core/src/scanner.rs1121 })COMMENT
LOWcrates/tokscale-core/src/scanner.rs1141/// precisely so that no project is missed. The cost is one `open` plus oneCOMMENT
LOWcrates/tokscale-core/src/scanner.rs1201}COMMENT
LOWcrates/tokscale-core/src/scanner.rs1241 state_db.is_file().then_some(state_db)COMMENT
LOWcrates/tokscale-core/src/scanner.rs1301COMMENT
LOWcrates/tokscale-core/src/scanner.rs1341/// Matches:COMMENT
LOWcrates/tokscale-core/src/scanner.rs1921///COMMENT
LOWcrates/tokscale-core/src/scanner.rs2161 // Desktop ACP filenames need Devin CLI database titles to recover theirCOMMENT
LOWcrates/tokscale-core/src/scanner.rs2421 // channel: `latest`/`beta` use `opencode.db`, other channels useCOMMENT
LOWcrates/tokscale-core/src/scanner.rs2461 // undercounts). Scan both so the totals are the union; the cross-file dedupCOMMENT
LOWcrates/tokscale-core/src/scanner.rs3001 home_dirCOMMENT
LOWcrates/tokscale-core/src/scanner.rs3121 // (4) ~/.gjc/agent/sessions home fallback (always available).COMMENT
LOWcrates/tokscale-core/src/scanner.rs5761 // bypassed the existing `enabled.contains(&ClientId::OpenCode)`COMMENT
LOWcrates/tokscale-core/src/scanner.rs7041 }COMMENT
LOWcrates/tokscale-core/src/scanner.rs7521 /// Only *blank* values are reinterpreted. A non-blank value is usedCOMMENT
LOWcrates/tokscale-core/src/sessionize.rs41}COMMENT
578 more matches not shown…
Decorative Section Separators75 hits · 236 pts
SeverityFileLineSnippetContext
MEDIUMcrates/tokscale-core/tests/gjc.rs53 // ── Build a temporary home directory with the gjc session file ──────────COMMENT
MEDIUMcrates/tokscale-core/tests/gjc.rs97 // ── Build PricingService ─────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-core/tests/gjc.rs100 // ── Call parse_local_unified_messages_with_pricing_uncached ───────────────────────COMMENT
MEDIUMcrates/tokscale-core/tests/gjc.rs116 // ── Assertions ───────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-core/tests/hermes.rs1381// ── cross-day attribution via the agent log (junhoyeo/tokscale#993) ──────────COMMENT
MEDIUMcrates/tokscale-core/tests/hermes.rs1381// ── cross-day attribution via the agent log (junhoyeo/tokscale#993) ──────────COMMENT
MEDIUMcrates/tokscale-core/src/sessions/gjc.rs381 // ── Adversarial / red-team tests ────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/tests/cli_tests.rs9// ── Fixture helpers ────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/tests/cli_tests.rs1713// ── Existing tests ─────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/tests/cli_tests.rs2376// ── Date filtering tests ───────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/tests/cli_tests.rs2723// ── Client filtering tests ─────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/tests/cli_tests.rs3871// ── JSON output validation tests ───────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/tests/cli_tests.rs4648// ── Group-by strategy tests ────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/tests/cli_tests.rs5476// ── Pricing command tests ──────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/tests/cli_tests.rs5686// ── Clients command tests ──────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/tests/cli_tests.rs6193// ── Light mode tests ───────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/tests/cli_tests.rs6256// ── Benchmark flag tests ───────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/tests/cli_tests.rs6292// ── Empty fixture tests ────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/tests/cli_tests.rs6328// ── No-spinner flag tests ──────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/tests/cli_tests.rs6348// ── Graph with client filter tests ─────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/tests/cli_tests.rs6372// ── Graph output file test ─────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/tests/cli_tests.rs6390// ── Root command tests (no subcommand) ─────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/tests/cli_tests.rs7005// ── gjc client filter tests ────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/trae.rs60 // ── API endpoints (constants, not secrets) ─────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/trae.rs72 // ── Storage ────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/trae.rs123 // ── Cache paths ────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/trae.rs219 // ── Credential resolution (full priority chain) ────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/trae.rs315 // ── storage.json decryption ────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/trae.rs388 // ── HTTP operations ────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/trae.rs466 // ── Public utility ─────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/trae.rs981 // ── Manifest ───────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/trae.rs1036 // ── HTTP client ────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/trae.rs1101 // ── Sync lock ──────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/trae.rs1244 // ── Main sync logic ────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/cache.rs1193 // ── check_client_match ──────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/remote.rs65 // ── Cache metadata (not sent by the server) ────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/app.rs3446 // ── Helper ──────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/app.rs3988 // ── handle_key_event: quit ──────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/app.rs4024 // ── handle_key_event: tab switching ─────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/app.rs4557 // ── handle_key_event: sort ──────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/app.rs4666 // ── handle_key_event: navigation ────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/app.rs4702 // ── wrap-around navigation ──────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/app.rs4779 // ── handle_key_event: theme ─────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/app.rs5062 // ── handle_key_event: subagent roll-up ─────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/app.rs5124 // ── handle_key_event: export ────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/app.rs5139 // ── handle_key_event: refresh ───────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/app.rs5392 // ── handle_key_event: misc keys ─────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/app.rs5457 // ── handle_mouse_event ──────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/app.rs5707 // ── handle_resize ───────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/app.rs5757 // ── on_tick ─────────────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/app.rs5907 // ── click area management ───────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/app.rs5920 // ── narrow detection ────────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/app.rs5942 // ── HourlyViewMode tests ─────────────────────────────────────────COMMENT
MEDIUMcrates/tokscale-cli/src/tui/app.rs5980 // ── build_model_shade_map ───────────────────────────────────────COMMENT
MEDIUM⚡scripts/test_9router_tokscale_bridge_gjc.py95# ── safe_int / string & negative token scalars ──────────────────────────────COMMENT
MEDIUM⚡scripts/test_9router_tokscale_bridge_gjc.py161# ── malformed / NULL `data` JSON rows are skipped ───────────────────────────COMMENT
MEDIUM⚡scripts/test_9router_tokscale_bridge_gjc.py179# ── non-dict `tokens` field is skipped ──────────────────────────────────────COMMENT
MEDIUM⚡scripts/test_9router_tokscale_bridge_gjc.py228# ── missing/unparseable timestamps are skipped, never default to now() ─────COMMENT
MEDIUM⚡scripts/test_9router_tokscale_bridge_gjc.py267# ── model fallback: null data.model falls through to row["model"] ──────────COMMENT
MEDIUM⚡scripts/test_9router_tokscale_bridge_gjc.py420# ── atomic write cleans up its .tmp file on failure ─────────────────────────COMMENT
15 more matches not shown…
Hyper-Verbose Identifiers132 hits · 118 pts
SeverityFileLineSnippetContext
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py98def test_safe_int_coerces_numeric_string():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py102def test_safe_int_non_numeric_string_becomes_zero():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py106def test_safe_int_none_becomes_zero():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py110def test_safe_int_clamps_negative_to_zero():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py114def test_compute_token_buckets_coerces_string_prompt_tokens():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py164def test_convert_request_details_row_skips_null_data():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py169def test_convert_request_details_row_skips_malformed_json_data():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py174def test_convert_request_details_row_skips_non_dict_data():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py182def test_convert_request_details_row_skips_non_dict_tokens():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py187def test_convert_request_details_row_skips_string_tokens():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py192def test_convert_request_details_row_skips_zero_prompt_and_completion():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py231def test_convert_request_details_row_skips_missing_timestamp():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py236def test_convert_request_details_row_skips_empty_timestamp():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py241def test_convert_request_details_row_skips_unparseable_timestamp():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py246def test_convert_request_details_row_counts_missing_timestamp_in_stats():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py260def test_convert_request_details_row_never_defaults_timestamp_to_now():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py270def test_convert_request_details_row_falls_back_to_row_model_when_data_model_is_null():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py411def test_is_free_model_suffix_rules():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py423def test_run_cleans_up_tmp_file_when_write_fails(tmp_path, monkeypatch):CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py616def test_convert_usage_history_row_positive_cost():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py624def test_convert_usage_history_row_zero_cost_free_model():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py632def test_convert_usage_history_row_zero_cost_paid_model():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py639def test_convert_usage_history_row_missing_cost_free_model():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py647def test_convert_usage_history_row_missing_cost_paid_model():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py654def test_convert_usage_history_row_malformed_cost():CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py909def test_open_readonly_db_missing_file_returns_none_and_creates_nothing(tmp_path):CODE
LOW⚡scripts/test_9router_tokscale_bridge_gjc.py916def test_open_readonly_db_does_not_write_to_db(tmp_path):CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py59def test_compute_token_buckets_splits_prompt_and_cached():CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py73def test_compute_token_buckets_no_cache():CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py83def test_compute_token_buckets_cached_greater_than_prompt_clamps_to_zero():CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py126def test_compute_token_buckets_non_numeric_string_treated_as_zero():CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py135def test_compute_token_buckets_negative_cached_clamped_at_ingestion():CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py150def test_convert_request_details_row_computes_non_overlapping_usage():CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py204def test_convert_request_details_row_handles_string_token_scalars_end_to_end():CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py287def test_convert_request_details_row_unknown_when_both_model_sources_missing():CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py305def test_convert_request_details_row_buckets_by_local_date():CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py326def test_convert_request_details_row_groups_same_utc_day_rows_into_one_bucket():CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py374def test_convert_request_details_row_free_model_embeds_zero_cost(model):CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py399def test_convert_request_details_row_paid_model_omits_cost(model):CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py503def test_run_uses_backup_row_when_current_db_row_is_invalid(tmp_path, monkeypatch):CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py572def test_convert_usage_history_row_parses_tokens_and_buckets():CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py584def test_convert_usage_history_row_malformed_tokens():CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py595def test_convert_usage_history_row_skips_zero_tokens():CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py602def test_convert_usage_history_row_handles_string_token_scalars():CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py670def test_convert_usage_history_row_non_finite_cost():CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py696def test_convert_usage_history_row_skips_missing_timestamp():CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py702def test_convert_usage_history_row_counts_missing_timestamp_in_stats():CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py718def _insert_usage_history_row(db_path, **row):CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py742def test_run_survives_missing_request_details_table(tmp_path, monkeypatch):CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py768def test_run_reads_from_both_tables(tmp_path, monkeypatch):CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py833def test_run_cross_table_dedup_same_raw_id(tmp_path, monkeypatch):CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py888def test_run_survives_both_tables_missing(tmp_path, monkeypatch):CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py938def test_run_raises_on_corrupt_database(tmp_path, monkeypatch):CODE
LOWscripts/test_9router_tokscale_bridge_gjc.py957def test_run_raises_on_nonexistent_table_column(tmp_path, monkeypatch):CODE
LOWscripts/9router_tokscale_bridge_gjc.py165def convert_request_details_row(row, stats: dict | None = None) -> dict | None:CODE
LOWscripts/9router_tokscale_bridge_gjc.py245def convert_usage_history_row(row, stats: dict | None = None) -> dict | None:CODE
LOWscripts/check-release-workflow-safety.py81def decode_yaml_double_quoted(value: str) -> str:CODE
LOWscripts/check-release-workflow-safety.py283def cli_platform_package_dirs() -> set[str]:CODE
LOW⚡packages/frontend/__tests__/api/submitAuth.test.ts180function isDailyBreakdownReportedSql(node: unknown): boolean {CODE
LOW⚡packages/frontend/__tests__/api/submitAuth.test.ts187function dailyBreakdownExecuteArgs(tx: {CODE
72 more matches not shown…
Empty Error Handlers2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHcrates/tokscale-cli/tests/helpers/tui_startup_probe.py216except ProcessLookupError:CODE
HIGHscripts/test_9router_tokscale_bridge_gjc.py471except RuntimeError:CODE
Verbosity Indicators6 hits · 9 pts
SeverityFileLineSnippetContext
LOWcrates/tokscale-cli/src/hindsight.rs373 // Step 1: Discover banksCOMMENT
LOWcrates/tokscale-cli/src/hindsight.rs436 // Step 2: For each bank, page LLM requestsCOMMENT
LOWcrates/tokscale-cli/src/hindsight.rs502 // Step 3: Write out ledgers per month bucketCOMMENT
LOWpackages/frontend/src/lib/validation/submission.ts384 // Step 1: Schema validationCOMMENT
LOWpackages/frontend/src/lib/validation/submission.ts398 // Step 2: No future datesCOMMENT
LOWpackages/frontend/src/lib/validation/submission.ts422 // Step 3: Mathematical consistency and sanity checksCOMMENT
Structural Annotation Overuse6 hits · 9 pts
SeverityFileLineSnippetContext
LOWcrates/tokscale-cli/src/hindsight.rs373 // Step 1: Discover banksCOMMENT
LOWcrates/tokscale-cli/src/hindsight.rs436 // Step 2: For each bank, page LLM requestsCOMMENT
LOWcrates/tokscale-cli/src/hindsight.rs502 // Step 3: Write out ledgers per month bucketCOMMENT
LOWpackages/frontend/src/lib/validation/submission.ts384 // Step 1: Schema validationCOMMENT
LOWpackages/frontend/src/lib/validation/submission.ts398 // Step 2: No future datesCOMMENT
LOWpackages/frontend/src/lib/validation/submission.ts422 // Step 3: Mathematical consistency and sanity checksCOMMENT
AI Slop Vocabulary3 hits · 8 pts
SeverityFileLineSnippetContext
LOWclippy.toml9# both impls just call `new()` -- but they cannot be listed here. `default` isCOMMENT
MEDIUM.github/workflows/test_coverage.yml116 # Most of the 33 were the harness lying, not the product: fixtures builtCOMMENT
MEDIUM.github/workflows/test_coverage.yml143 # prices - a harness defect making a product defect visible.COMMENT
Cross-Language Confusion1 hit · 8 pts
SeverityFileLineSnippetContext
HIGHscripts/9router_tokscale_bridge_gjc.py202 # apply `default` when the key is present with an explicit null, soCOMMENT
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMscripts/test-prepare-release-provenance.sh54# This file is automatically @generated by Cargo.COMMENT
MEDIUMscripts/test-check-version-coherence.sh38# This file is automatically @generated by Cargo.COMMENT
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWcrates/tokscale-cli/tests/helpers/tui_startup_probe.py135CODE
LOWscripts/9router_tokscale_bridge_gjc.py376CODE
LOWscripts/check-release-workflow-safety.py46CODE
LOWscripts/check-release-workflow-safety.py167CODE
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippetContext
LOWcrates/tokscale-cli/src/cursor.rs3523 sanitize_account_id_for_filename("user@example.com"),CODE
LOWcrates/tokscale-cli/src/tui/ui/usage.rs3202 email: Some("user@example.com".to_string()),CODE
LOWcrates/tokscale-cli/src/commands/usage/amp.rs396 assert_eq!(output.email.as_deref(), Some("user@example.com"));CODE
LOWcrates/tokscale-cli/src/commands/usage/mod.rs1112 email: Some("user@example.com".to_string()),CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMcrates/tokscale-core/src/sessions/claudecode.rs3726 // #815 CRITICAL: journal.jsonl is workflow orchestration metadata, not aCOMMENT
Excessive Try-Catch Wrapping2 hits · 2 pts
SeverityFileLineSnippetContext
LOWscripts/9router_tokscale_bridge_gjc.py105 except Exception:CODE
LOWscripts/9router_tokscale_bridge_gjc.py431 except Exception:STRING
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWcrates/tokscale-cli/tests/helpers/tui_startup_probe.py3CODE