AI Slop Code RIsk Monitor

chopratejas/headroom

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

39.0 High pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for chopratejas/headroom, a Python project with 74,961 GitHub stars. SynthScan examined 804,060 lines of code across 2249 source files, recording 22724 pattern matches distributed across 26 syntactic categories. The legacy adjusted pattern signal is 39.0 (High 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.

39.0
Adjusted Signal
39.0
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
75.0K
Stars
Python
Language
804.1K
Lines of Code
2.2K
Files
22.7K
Pattern Hits
2026-10-12
Scan Date
0.23
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 62.1/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 17.6/100 · LOW

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

Agent Over-Engineering Ratio 79.7/100 · CRITICAL

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

PR Review Velocity Impact 85.9/100 · CRITICAL

Which changes need focused human review? 22724 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 11HIGH 497MEDIUM 3084LOW 19132

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 22724 distinct pattern matches across 26 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.

Hyper-Verbose Identifiers13614 hits · 13001 pts
SeverityFileLineSnippetContext
LOW…ates/headroom-core/src/transforms/search_compressor.rs13//! src/models.py:15:class DataProcessor:COMMENT
LOW…ns/headroom-oauth2/tests/test_scope_and_proxy_token.py115def test_local_routes_are_passed_through_without_minting(path):CODE
LOW…ns/headroom-oauth2/tests/test_scope_and_proxy_token.py135def test_upstream_routes_are_injected(path):CODE
LOW…ns/headroom-oauth2/tests/test_scope_and_proxy_token.py142def test_install_log_line_does_not_carry_the_token_url_query(monkeypatch, caplog):CODE
LOW…ns/headroom-oauth2/tests/test_scope_and_proxy_token.py204def test_bearer_proxy_token_survives_replacement_when_gate_runs_inside(monkeypatch):CODE
LOW⚡plugins/headroom-oauth2/tests/test_oauth2.py310def test_install_noop_when_unset(monkeypatch):CODE
LOW⚡plugins/headroom-oauth2/tests/test_oauth2.py320def test_install_fail_closed_on_bad_config(monkeypatch):CODE
LOW⚡plugins/headroom-oauth2/tests/test_oauth2.py327def test_install_warns_for_envauth_backend(monkeypatch, caplog):CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py144def test_concurrent_single_flight(idp):CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py158def test_error_on_bad_status_hides_body(idp):CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py166def test_error_body_drain_failure_is_sanitized(monkeypatch, caplog):CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py193def test_unreachable_token_url():CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py241def test_parse_headers_rejects_control_chars():CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py247def test_provider_from_env_wires_knobs(idp):CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py264def test_provider_from_env_none_when_unset():CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py269def test_middleware_injects_bearer(idp):CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py280def test_middleware_non_http_passthrough():CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py344def test_install_fail_closed_on_bad_timeout(monkeypatch):CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py353def test_parse_headers_rejects_bad_keys():CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py365def test_middleware_handles_missing_headers_key(idp):CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py406def test_allow_insecure_env_permits_nonloopback_http():CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py419def test_extra_params_cannot_override_canonical(idp):CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py435def test_auth_style_basic_via_env(idp):CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py449def test_scopes_comma_separated_via_env(idp):CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py462def test_expires_in_missing_falls_back(idp):CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py469def test_expires_in_non_numeric_falls_back(idp):CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py485def test_single_flight_on_refresh(idp):CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py499def test_install_sets_static_headers(monkeypatch):CODE
LOWplugins/headroom-oauth2/tests/test_oauth2.py519def test_install_handles_invalid_litellm_headers(monkeypatch, caplog):CODE
LOWplugins/openclaw/src/proxy-manager.ts413export function normalizeAndValidateProxyUrl(proxyUrl: string): string {CODE
LOWplugins/openclaw/src/gateway-config.ts18export function resolveGatewayProviderIds(config: Record<string, unknown> | undefined): string[] {CODE
LOWplugins/openclaw/src/gateway-config.ts31function normalizeGatewayProviderIds(value: unknown): string[] {CODE
LOWplugins/openclaw/src/gateway-config.ts67export function applyGatewayProviderBaseUrlsInPlace(CODE
LOWplugins/openclaw/src/convert.ts430function normalizeAssistantMessage(message: Record<string, any>): Record<string, any> {CODE
LOWplugins/openclaw/src/convert.ts454function normalizeToolResultMessage(message: Record<string, any>): Record<string, any> {CODE
LOWplugins/openclaw/src/convert.ts478function normalizeAssistantContent(content: unknown): any[] {CODE
LOWplugins/openclaw/src/convert.ts521function normalizeToolResultContent(content: unknown): any[] {CODE
LOWplugins/openclaw/src/openclaw-compaction.ts36export async function delegateCompactionToRuntime(CODE
LOWplugins/openclaw/src/tools/headroom-retrieve.ts15export function createHeadroomRetrieveTool(config: RetrieveToolConfig) {CODE
LOWplugins/hermes/headroom_retrieve/__init__.py47def _handle_headroom_retrieve(args: dict, **kw) -> str:CODE
LOWplugins/opencode/src/retrieve.ts28export function createHeadroomRetrieveTool(config: RetrieveToolConfig) {CODE
LOWplugins/opencode/src/transport.ts274export function modelBaseRoutesThroughProxy(CODE
LOWplugins/opencode/src/transport.ts290function normalizedOpenAiProxyPath(pathname: string): string | undefined {CODE
LOWplugins/opencode/src/transport.ts593export function uninstallHeadroomTransport(): void {CODE
LOWplugins/opencode/src/provider.ts75export function buildOpencodeConfigContent(CODE
LOWplugins/opencode/src/provider.ts87export function buildOpencodeConfigContentJson(CODE
LOWtests/test_copilot_integration_id_hmac.py90def test_token_is_minted_under_the_clients_integration_id(monkeypatch) -> None:CODE
LOWtests/test_copilot_integration_id_hmac.py101def test_forwarded_header_matches_the_minted_token(monkeypatch) -> None:CODE
LOWtests/test_copilot_integration_id_hmac.py112def test_no_duplicate_integration_id_header_is_emitted(monkeypatch) -> None:CODE
LOWtests/test_copilot_integration_id_hmac.py127def test_a_forwardable_client_token_keeps_the_clients_id(monkeypatch) -> None:CODE
LOWtests/test_copilot_integration_id_hmac.py143def test_a_client_that_states_its_identity_beats_the_configured_default(CODE
LOWtests/test_copilot_integration_id_hmac.py160def test_the_configured_default_applies_when_the_client_sends_none(CODE
LOW⚡tests/test_copilot_integration_id_hmac.py172def test_client_value_wins_over_the_default(monkeypatch) -> None:CODE
LOW⚡tests/test_copilot_integration_id_hmac.py176def test_default_when_the_client_sends_none(monkeypatch) -> None:CODE
LOW⚡tests/test_copilot_integration_id_hmac.py186def test_blank_client_values_fall_back(blank) -> None:CODE
LOW⚡tests/test_copilot_integration_id_hmac.py190def test_non_copilot_upstream_is_untouched(monkeypatch) -> None:CODE
LOWtests/test_copilot_integration_id_hmac.py203def test_tokens_are_cached_per_integration_id(monkeypatch) -> None:CODE
LOW⚡tests/test_quota_registry.py88def test_register_single_tracker():CODE
LOW⚡tests/test_quota_registry.py95def test_register_multiple_trackers():CODE
LOW⚡tests/test_quota_registry.py104def test_duplicate_key_raises():CODE
13554 more matches not shown…
Decorative Section Separators2841 hits · 10002 pts
SeverityFileLineSnippetContext
MEDIUMrun-all-plugins.sh2# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMrun-all-plugins.sh13# ─────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUMrun-all-plugins.sh24# ── 1. venv ──────────────────────────────────────────────────────────────────COMMENT
MEDIUMrun-all-plugins.sh31# ── 2. install (guarded) ──────────────────────────────────────────────────────COMMENT
MEDIUMrun-all-plugins.sh63# ── 3. secrets from ~/env.txt ─────────────────────────────────────────────────COMMENT
MEDIUMrun-all-plugins.sh71# ── 4. plugin license (Ed25519, offline, wildcard) ────────────────────────────COMMENT
MEDIUMrun-all-plugins.sh83# ── 5. Kompress ML offload → Modal ────────────────────────────────────────────COMMENT
MEDIUMrun-all-plugins.sh90# ── 6. observability sink → Langfuse + spend attribution ──────────────────────COMMENT
MEDIUM⚡run-all-plugins.sh102# ── 7. tier_router ─────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡run-all-plugins.sh108# ── 8. plugin tuning (defaults shown; override as needed) ─────────────────────COMMENT
MEDIUM⚡run-all-plugins.sh115# ── 9. coding profile + mode ───────────────────────────────────────────────────COMMENT
MEDIUM⚡run-all-plugins.sh120# ── 10. run + confirm ──────────────────────────────────────────────────────────COMMENT
MEDIUMCargo.toml89# ── Release profile — wheel size optimization ───────────────────────COMMENT
MEDIUMdocker-compose.yml1# =============================================================================COMMENT
MEDIUMdocker-compose.yml3# =============================================================================COMMENT
MEDIUMdocker-compose.yml35# =============================================================================COMMENT
MEDIUMcrates/headroom-core/config/pipeline.toml35# ─── Per-domain bloat estimator config ──────────────────────────────COMMENT
MEDIUMcrates/headroom-core/config/pipeline.toml79# ─── Reformat configs ───────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/config/pipeline.toml106# ─── JSON-array offload config (SmartCrusher wrapper) ─────────────COMMENT
MEDIUMcrates/headroom-core/config/pipeline.toml122# ─── Diff-noise offload config ─────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/config/pipeline.toml153# ─── Structured prose-field offload config ─────────────────────────COMMENT
MEDIUMcrates/headroom-core/tests/ccr_backends.rs155// ─── Sliding (idle-window) TTL semantics — #2604 ───────────────────────COMMENT
MEDIUMcrates/headroom-core/tests/ccr_backends.rs155// ─── Sliding (idle-window) TTL semantics — #2604 ───────────────────────COMMENT
MEDIUMcrates/headroom-core/tests/ccr_backends.rs324// ─── Redis-feature-gated tests ─────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/tests/live_zone_arm_properties.rs40// ─── Part 0: kill-switch alias round trip (bug class extinction) ──────COMMENT
MEDIUMcrates/headroom-core/tests/live_zone_arm_properties.rs82// ─── Part 1: pathological-text generators (properties 1 & 2) ──────────COMMENT
MEDIUMcrates/headroom-core/tests/live_zone_arm_properties.rs583// ─── Part 1, property 3: byte fidelity around the SourceCode arm ──────COMMENT
MEDIUMcrates/headroom-core/tests/live_zone_arm_properties.rs721// ─── Part 1, instrumentation: measured dispatch-reach fractions ───────COMMENT
MEDIUMcrates/headroom-core/tests/auth_mode.rs27// ── Required matrix ──────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/tests/auth_mode.rs96// ── Bonus matrix ──────────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/tests/auth_mode.rs152// ── Performance ──────────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/tests/live_zone_dispatch.rs21// ─── Routing tests ─────────────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/tests/live_zone_dispatch.rs430// ─── Cache-safety invariant ────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/tests/ccr_roundtrip.rs226// ─── PR8 additions: marker injection + walker unification ──────────COMMENT
MEDIUMcrates/headroom-core/tests/ccr_roundtrip.rs404// ─── helpers ──────────────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/tests/cache_control.rs199// ─── Property tests ───────────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/benches/ccr_store.rs28// ─── Baseline: the old single-Mutex<HashMap> design ────────────────COMMENT
MEDIUMcrates/headroom-core/src/auth_mode.rs122 // ── User-Agent ───────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/src/auth_mode.rs147 // ── Authorization header ─────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/src/auth_mode.rs193 // ── Vendor-specific API-key headers ──────────────────────────COMMENT
MEDIUMcrates/headroom-core/src/auth_mode.rs204 // ── Default ──────────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/src/transforms/unidiff_detector.rs152// ─── Tests ─────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/src/transforms/diff_compressor.rs47// ─── Score-weight constants ────────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/src/transforms/diff_compressor.rs74// ─── Public API ─────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/src/transforms/diff_compressor.rs530// ─── Internal types ────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/src/transforms/diff_compressor.rs580// ─── Parser ────────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/src/transforms/diff_compressor.rs826// ─── Scoring ───────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/src/transforms/diff_compressor.rs917// ─── Hunk selection (max_hunks_per_file cap) ───────────────────────────────COMMENT
MEDIUMcrates/headroom-core/src/transforms/diff_compressor.rs1000// ─── Context trimming ──────────────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/src/transforms/diff_compressor.rs1083// ─── Output formatter ──────────────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/src/transforms/diff_compressor.rs1153// ─── Helpers ───────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/src/transforms/diff_compressor.rs1217// ─── Tests ─────────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/src/transforms/diff_compressor.rs1315 // ─── Lossy-path tests ───────────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/src/transforms/diff_compressor.rs1515 // ─── Bug-fix tests (rename/combined-diff/no-newline/pre-diff) ──────────COMMENT
MEDIUMcrates/headroom-core/src/transforms/kompress.rs71// ─── Tunable defaults (parity-pinned to kompress-v2-base) ───────────────COMMENT
MEDIUMcrates/headroom-core/src/transforms/kompress.rs108// ─── Types ──────────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/src/transforms/kompress.rs191// ─── Compressor ─────────────────────────────────────────────────────────COMMENT
MEDIUMcrates/headroom-core/src/transforms/kompress.rs581// ─── Loading helpers ────────────────────────────────────────────────────COMMENT
MEDIUM⚡crates/headroom-core/src/transforms/magika_detector.rs451 // ── JSON ───────────────────────────────────────────────────COMMENT
MEDIUM⚡crates/headroom-core/src/transforms/magika_detector.rs458 // ── Diffs ──────────────────────────────────────────────────COMMENT
2781 more matches not shown…
Unused Imports2262 hits · 2030 pts
SeverityFileLineSnippetContext
LOWdocker/differential-network-capture/mitm_capture.py3CODE
LOW…ns/headroom-oauth2/tests/test_scope_and_proxy_token.py10CODE
LOWplugins/headroom-oauth2/src/headroom_oauth2/provider.py8CODE
LOWplugins/headroom-oauth2/src/headroom_oauth2/__init__.py7CODE
LOWplugins/headroom-oauth2/src/headroom_oauth2/__init__.py15CODE
LOW…gins/headroom-oauth2/src/headroom_oauth2/middleware.py18CODE
LOWplugins/hermes/headroom_retrieve/__init__.py13CODE
LOWtests/test_copilot_integration_id_hmac.py32CODE
LOWtests/test_quota_registry.py3CODE
LOWtests/test_sse_thinking_blocks.py21CODE
LOWtests/test_paths_backward_compat.py16CODE
LOWtests/test_usage_reporter_snapshot.py6CODE
LOWtests/test_provider_codex_install.py1CODE
LOWtests/test_token_count_cache.py8CODE
LOWtests/test_memory_decision.py27CODE
LOWtests/test_hook_protect_messages.py10CODE
LOWtests/test_extension_attribution.py10CODE
LOWtests/test_dataset_recall_runner.py9CODE
LOWtests/e2e_cortex_savings.py30CODE
LOWtests/e2e_cortex_savings.py45CODE
LOWtests/test_openai_responses_t3_replay_regression.py1CODE
LOWtests/test_provider_antigravity.py1CODE
LOWtests/test_h2_stream_reset_retry.py11CODE
LOWtests/test_memory_wrapper.py1CODE
LOWtests/test_system_compaction_handler.py5CODE
LOWtests/test_codex_responses_passthrough_bytes.py11CODE
LOWtests/test_tool_name_policy.py1CODE
LOWtests/test_error_detection.py3CODE
LOWtests/test_proxy_pipeline_lifecycle.py1CODE
LOWtests/test_tool_injection_config.py1CODE
LOWtests/test_kompress_line_integrity.py5CODE
LOWtests/_gemini_live.py3CODE
LOWtests/test_wrap_concurrent_settings.py16CODE
LOWtests/test_codex_ws_per_frame_memory.py1CODE
LOWtests/test_anthropic_auto_mode_passthrough.py1CODE
LOWtests/test_memory_rank_policy.py3CODE
LOWtests/test_hermes_passthrough_compression.py15CODE
LOWtests/test_openai_responses_buffered_sse.py5CODE
LOWtests/test_openai_responses_context_compaction.py1CODE
LOWtests/test_codex_ws_savings_deferral.py11CODE
LOWtests/test_websearch_tool_result_protection.py3CODE
LOWtests/test_image_compression_offload.py9CODE
LOWtests/test_turn_hooks.py10CODE
LOWtests/test_memory_tool_stream.py9CODE
LOWtests/test_system_compaction.py10CODE
LOWtests/test_provider_copilot_vscode_config.py1CODE
LOWtests/test_cost_budget_performance.py3CODE
LOWtests/test_proxy_loop_exception_health.py3CODE
LOWtests/test_provider_registry_extended.py1CODE
LOWtests/test_stats_new_input_savings_rate.py10CODE
LOWtests/test_code_compressor_syntax_breaker.py11CODE
LOWtests/test_content_router_recovery_tool_exclusion.py13CODE
LOWtests/test_outcome_token_scale.py19CODE
LOWtests/test_utils.py1CODE
LOWtests/test_proxy_cache_ttl_metrics.py3CODE
LOWtests/test_prometheus_obs_counters.py17CODE
LOWtests/test_storage_backends.py1CODE
LOWtests/test_provider_route_specs.py1CODE
LOWtests/test_codex_rate_limits.py3CODE
LOWtests/test_stateless_writers.py8CODE
2202 more matches not shown…
Empty Error Handlers238 hits · 1190 pts
SeverityFileLineSnippetContext
HIGHtests/test_memory_decision.py52except FrozenInstanceError:CODE
HIGHtests/test_codex_ws_per_frame_memory.py352except asyncio.CancelledError:CODE
HIGHtests/test_codex_ws_per_frame_memory.py382except asyncio.CancelledError:CODE
HIGHtests/test_codex_ws_per_frame_memory.py416except asyncio.CancelledError:CODE
HIGHtests/test_codex_ws_per_frame_memory.py454except asyncio.CancelledError:CODE
HIGHtests/conftest.py562except Exception: # pragma: no cover - a closed/rotated file is fineCODE
HIGHtests/test_stateless_writers.py32except Exception:CODE
HIGHtests/test_proxy_savings_history.py360except OSError:CODE
HIGHtests/test_image_compression.py29except ImportError:CODE
HIGHtests/test_wrap_code_memory.py173except click.ClickException:CODE
HIGHtests/test_memory_injection_budget.py26except FrozenInstanceError:CODE
HIGHtests/test_startup_log_noise.py40except Exception:CODE
HIGHtests/test_startup_log_noise.py60except Exception:CODE
HIGHtests/test_compression_decision.py64except FrozenInstanceError:CODE
HIGHtests/test_memory_integration.py44except OSError:CODE
HIGHtests/test_openai_codex_ws_lifecycle.py704except asyncio.CancelledError:CODE
HIGHtests/test_openai_codex_ws_lifecycle.py767except asyncio.CancelledError:CODE
HIGHtests/test_openai_codex_ws_lifecycle.py826except asyncio.CancelledError:CODE
HIGHtests/test_openai_codex_ws_lifecycle.py1208except asyncio.CancelledError:CODE
HIGHtests/test_openai_codex_ws_lifecycle.py1330except asyncio.CancelledError:CODE
HIGHtests/test_providers_opencode_config.py489except click_mod.ClickException:CODE
HIGHtests/test_providers_opencode_config.py491except OSError:CODE
HIGHtests/test_memory_query.py37except FrozenInstanceError:CODE
HIGHtests/_mcp_stub.py90except AttributeError:CODE
HIGHtests/test_kompress_request_nonblocking.py195except ValueError:CODE
HIGHtests/test_image_compression_decision.py49except FrozenInstanceError:CODE
HIGHtests/test_provider_codex_runtime.py207except Exception: # pragma: no cover - best effort pollCODE
HIGHtests/e2e_ws_responses_compression.py131except websockets.exceptions.ConnectionClosed:CODE
HIGHtests/test_stateless_no_disk.py56except Exception:CODE
HIGHtests/test_ws_session_registry.py114except asyncio.CancelledError:CODE
HIGHtests/test_proxy_debug_endpoints.py333except (asyncio.CancelledError, BaseException):CODE
HIGHtests/test_proxy_debug_endpoints.py366except (asyncio.CancelledError, BaseException):CODE
HIGHtests/test_offline_egress_chokepoint.py273except OfflineEgressBlocked:CODE
HIGHtests/test_direct_chat_ccr_resolution.py138except Exception: # pragma: no cover - a test handler must not raiseCODE
HIGHtests/test_upstream_guard.py219except Exception: # noqa: BLE001 - route errors are not the subjectCODE
HIGHtests/e2e_ws_codex_usage_headers.py100except websockets.exceptions.ConnectionClosed:CODE
HIGHtests/test_proxy_hardening.py390except Exception: # noqa: BLE001 - the refusal shape is asserted aboveCODE
HIGHtests/test_proxy_hardening.py404except Exception: # noqa: BLE001 - route may fail with no upstreamCODE
HIGHtests/test_proxy_hardening.py720except Exception: # noqa: BLE001 - spy closes the socket immediatelyCODE
HIGH…roxy/test_anthropic_no_optimize_history_passthrough.py240except ImportError:CODE
HIGHtests/test_install/test_native_installers.py257except OSError:CODE
HIGHtests/test_install/test_native_installers.py745except FileNotFoundError:CODE
HIGH…sts/test_integrations/langchain/test_langchain_live.py26except ImportError:CODE
HIGHtests/test_cli/test_wrap_sighup_proxy_leak.py243except (ProcessLookupError, PermissionError):CODE
HIGHtests/test_scripts/test_repro_codex_replay_smoke.py100except asyncio.TimeoutError:CODE
HIGHexamples/vertex_gemini_benchmark/benchmark.py353except Exception:CODE
HIGHexamples/vertex_gemini_benchmark/benchmark.py635except Exception:CODE
HIGHbenchmarks/agent_cost_benchmark.py237except (json.JSONDecodeError, TypeError):CODE
HIGHbenchmarks/agent_cost_benchmark.py429except Exception:CODE
HIGHbenchmarks/agent_cost_benchmark.py509except (json.JSONDecodeError, TypeError):CODE
HIGHbenchmarks/codemode_ab.py169except Exception:CODE
HIGHheadroom/onnx_runtime.py281except Exception:CODE
HIGHheadroom/proxy_client_liveness.py35except Exception:CODE
HIGHheadroom/_subprocess.py30except Exception:CODE
HIGHheadroom/_subprocess.py61except Exception:CODE
HIGHheadroom/binaries.py155except (FileNotFoundError, subprocess.TimeoutExpired, OSError):CODE
HIGHheadroom/binaries.py360except ImportError:CODE
HIGHheadroom/settings_store.py1039except (ValueError, TypeError):CODE
HIGHheadroom/context_tool_cleanup.py355except ValueError:CODE
HIGHheadroom/context_tool_cleanup.py230except OSError:CODE
178 more matches not shown…
Over-Commented Block1112 hits · 968 pts
SeverityFileLineSnippetContext
LOWrun-all-plugins.sh1#!/usr/bin/env bashCOMMENT
LOWrun-all-plugins.sh81fiCOMMENT
LOWrun-all-plugins.sh101COMMENT
LOWCargo.toml41# I1 (byte-faithful passthrough on unmutated bytes; see REALIGNMENT/02-COMMENT
LOWCargo.toml61axum = "0.8"COMMENT
LOWCargo.toml81# (ADC) → bearer token for the `Authorization: Bearer <token>` header.COMMENT
LOWCargo.toml101# * Single codegen unit (better inlining + dead-code elim, at theCOMMENT
LOWpyproject.toml121]COMMENT
LOWpyproject.toml161 "torch>=2.12.1; sys_platform == 'darwin'",COMMENT
LOWpyproject.toml181# existing v1 tuple-shaped API call.COMMENT
LOWpyproject.toml321 # test_upstream_guard builds a self-signed cert to prove the pinned connectionCOMMENT
LOWpyproject.toml341# a locked-down/low-resource sandbox and offloading heavy ML elsewhere.COMMENT
LOWpyproject.toml381# without a wheel and the rust toolchain isn't available to compile it.COMMENT
LOWpyproject.toml421COMMENT
LOWdocker-compose.yml1# =============================================================================COMMENT
LOWdocker-compose.yml21# 7474 Neo4j Browser 7687 Neo4j BoltCOMMENT
LOW.gitguardian.yaml1# GitGuardian configuration — secret-detection allowlistCOMMENT
LOWrust-toolchain.toml1[toolchain]COMMENT
LOWclaude_analysis_ttl.py181 f" Median post-idle write (5-60min gap) : {med_5_60:>10,} tokens "COMMENT
LOWcrates/headroom-parity/src/lib.rs181stub_comparator!(CacheAlignerComparator, "cache_aligner");COMMENT
LOWcrates/headroom-parity/src/lib.rs241COMMENT
LOWcrates/headroom-parity/src/lib.rs621///COMMENT
LOWcrates/headroom-core/Cargo.toml21# `hf-hub` is the HuggingFace Hub client. We use the blocking `ureq` transportCOMMENT
LOWcrates/headroom-core/Cargo.toml41# ASCII terminators, so the default ASCII splitter/tokenizer collapses a wholeCOMMENT
LOWcrates/headroom-core/Cargo.toml61# >15% ratio divergence so small per-byte differences don't change theCOMMENT
LOWcrates/headroom-core/Cargo.toml81# Stage-3d ContentRouter detection arch). Bundled standard-model isCOMMENT
LOWcrates/headroom-core/Cargo.toml101aho-corasick = "1"COMMENT
LOWcrates/headroom-core/Cargo.toml121blake3 = "1"COMMENT
LOWcrates/headroom-core/Cargo.toml161# on Windows it emits DirectML link libs (`DXCORE`, `DXGI`, `D3D12`,COMMENT
LOWcrates/headroom-core/Cargo.toml181# the ONNX-backed transforms (fastembed embeddings, magika detection, theCOMMENT
LOW…core/proptest-regressions/transforms/tag_protector.txt1# Seeds for failure cases proptest has generated in the past. It isCOMMENT
LOWcrates/headroom-core/config/pipeline.toml1# Compression pipeline default configuration.COMMENT
LOWcrates/headroom-core/config/pipeline.toml21COMMENT
LOWcrates/headroom-core/config/pipeline.toml41COMMENT
LOWcrates/headroom-core/config/pipeline.toml81# Reformats pack input denser without losing information. Configs hereCOMMENT
LOWcrates/headroom-core/config/pipeline.toml101# Floor on the number of constant tokens a template must have. ACOMMENT
LOWcrates/headroom-core/config/pipeline.toml121COMMENT
LOWcrates/headroom-core/tests/live_zone_kompress_absent.rs1//! Model-absent NoOp — dedicated integration test file.COMMENT
LOWcrates/headroom-core/tests/recommendations_loader.rs1//! Integration tests for `transforms::recommendations` (PR-B5).COMMENT
LOWcrates/headroom-core/tests/ccr_backends.rs241COMMENT
LOW…s/headroom-core/tests/live_zone_kompress_async_init.rs1//! Non-blocking Kompress initialization — dedicated integration test file.COMMENT
LOWcrates/headroom-core/tests/live_zone_arm_properties.rs1//! Property coverage for the PR-B4 dispatch arms (`SourceCode` →COMMENT
LOWcrates/headroom-core/tests/live_zone_arm_properties.rs41COMMENT
LOWcrates/headroom-core/tests/live_zone_arm_properties.rs161/// drawn from `CODE_IDENTIFIERS`. Added after a review measured thatCOMMENT
LOWcrates/headroom-core/tests/live_zone_arm_properties.rs181///COMMENT
LOWcrates/headroom-core/tests/live_zone_arm_properties.rs381 "public",COMMENT
LOWcrates/headroom-core/tests/live_zone_arm_properties.rs441/// byte a shell or log scraper can hand a tool_result without everCOMMENT
LOWcrates/headroom-core/tests/live_zone_arm_properties.rs481 ]COMMENT
LOWcrates/headroom-core/tests/live_zone_arm_properties.rs501// ranges back down to threshold-capped sizes (that would silentlyCOMMENT
LOWcrates/headroom-core/tests/live_zone_arm_properties.rs721// ─── Part 1, instrumentation: measured dispatch-reach fractions ───────COMMENT
LOWcrates/headroom-core/tests/live_zone_arm_properties.rs741/// invoked from `live_zone.rs` right before `compress_one_block`'sCOMMENT
LOWcrates/headroom-core/tests/kompress_parity.rs1//! Byte-parity integration test for the Kompress Rust port.COMMENT
LOWcrates/headroom-core/tests/auth_mode.rs1//! Integration tests for `headroom_core::auth_mode::classify`.COMMENT
LOW…/headroom-core/tests/live_zone_disable_arms_parsing.rs1//! Parsing contract of the `HEADROOM_LIVE_ZONE_DISABLE_ARMS` killCOMMENT
LOW…ates/headroom-core/tests/live_zone_token_validation.rs61 let s = std::str::from_utf8(bytes).expect("body is UTF-8 JSON");COMMENT
LOW…ates/headroom-core/tests/live_zone_token_validation.rs81 // tokenize into many short BPE pieces post-rewrite.COMMENT
LOW…ates/headroom-core/tests/live_zone_token_validation.rs201proptest! {COMMENT
LOWcrates/headroom-core/tests/tokenizer_proptest.rs41 let est = EstimatingCounter::default();COMMENT
LOWcrates/headroom-core/tests/live_zone_dispatch.rs1//! Integration tests for the PR-B3 live-zone dispatcher.COMMENT
LOWcrates/headroom-core/tests/live_zone_disable_arms.rs1//! Env-var kill-switch for the live-zone dispatch arms — dedicatedCOMMENT
1052 more matches not shown…
Cross-Language Confusion157 hits · 875 pts
SeverityFileLineSnippetContext
HIGH⚡tests/test_ccr_tool_injection.py354 """A tool call with an explicit {"function": null} / {"functionCall": null}STRING
HIGHtests/test_proxy_savings_history.py1620 assert "if (this.historySelectedSeriesKey === 'history') return null;" in htmlCODE
HIGHtests/test_ccr_tool_calls.py63 # A partial/streamed OpenAI tool call with an explicit {"function": null}COMMENT
HIGHtests/test_output_steering.py39 # A malformed client block ({"type": "text", "text": null}) must not crashCOMMENT
HIGH⚡tests/test_copilot_vscode_completions_routing.py205 ``token?.endpoints.proxy || DEFAULT_PROXY_BASE_URL`` whereSTRING
HIGH⚡tests/test_beacon_gzip.py192 0x1f && bytes[1] === 0x8b` check stops matching and every upload 400s."""STRING
HIGH⚡tests/test_stream_output_tokens.py105 'data: {"choices": [null]}\n\n',CODE
HIGH⚡tests/test_stream_output_tokens.py106 'data: {"choices": [{"delta": null}]}\n\n',CODE
HIGH⚡tests/test_cortex_code_compression.py13 cd headroom && uv run python tests/test_cortex_code_compression.pySTRING
HIGH⚡tests/test_cortex_code_compression.py16 cd headroom && uv run --with pytest pytest tests/test_cortex_code_compression.py -v -sSTRING
HIGH⚡tests/test_ccr_response_handler.py1022 `choices: []` or `[null]` on content-filtered / usage-only responses)."""STRING
HIGHtests/test_dashboard_poll_guard_playwright.py36 window.__urls.push(String(url));CODE
HIGH⚡tests/test_observed_wire_shapes.py305 "cd /x && cat a.py",CODE
HIGH⚡tests/test_observed_wire_shapes.py306 "cd /x && cat -A a.py | head -60",CODE
HIGH⚡tests/test_observed_wire_shapes.py358 "cd /tmp/core && rg -l safe_math --type py",CODE
HIGH⚡tests/test_observed_wire_shapes.py359 "cd /tmp/core && grep -rn foo suma/",CODE
HIGH⚡tests/test_observed_wire_shapes.py361 "cd /a && cd b && rg pat", # chained cdsCODE
HIGH⚡tests/test_observed_wire_shapes.py367 for cmd in ["cd /x && cat a.py", "cd /x && python -c 'x'", "cd /x && ls -la"]:CODE
HIGH⚡tests/test_observed_wire_shapes.py372 assert _stripcd("cd /tmp/core && rg x") == "rg x"CODE
HIGH⚡tests/test_observed_wire_shapes.py374 assert _stripcd("cd a && cd b && grep x") == "grep x"CODE
HIGH⚡tests/test_observed_wire_shapes.py480 anthropic_input = {"command": "cd /tmp/core && cat suma/x.py"} # Anthropic: dictCODE
HIGH⚡tests/test_observed_wire_shapes.py481 openai_args = json.dumps({"command": "cd /tmp/core && cat suma/x.py"}) # OpenAI: JSON stringCODE
HIGH⚡tests/test_observed_wire_shapes.py486 assert not _isread2(_cmdtext({"command": "cd /x && rg pat"}))CODE
HIGHtests/test_observed_wire_shapes.py51 "input": {"command": 'cd /tmp/core && rg -l "safe_math" --type py | head'},CODE
HIGHtests/test_observed_wire_shapes.py394 "content": "THOUGHT: look\n```bash\ncd /r && cat x.py\n```",CODE
HIGHtests/test_observed_wire_shapes.py423 _fenced_shell_command("T\n```mswea_bash_command\ncd /r && cat x.py\n```")CODE
HIGHtests/test_observed_wire_shapes.py424 == "cd /r && cat x.py"CODE
HIGHtests/test_observed_wire_shapes.py435 "content": "T\n```mswea_bash_command\ncd /r && cat a.py\n```",CODE
HIGHtests/test_observed_wire_shapes.py444 "content": "T\n```mswea_bash_command\ncd /r && grep -rn foo .\n```",CODE
HIGHtests/test_observed_wire_shapes.py557 {"role": "assistant", "content": "", "tool_calls": [tc("c_read", "cd /r && cat a.py")]},CODE
HIGHtests/test_observed_wire_shapes.py562 "tool_calls": [tc("c_grep", "cd /r && grep -rn foo .")],CODE
HIGHtests/test_memory_handler_null_function.py5``{"function": null}`` (the default only applies to a missing key). BothSTRING
HIGHtests/test_proxy_handlers_batch.py689 # null), or a request whose `body` isn't a dict, must pass through insteadCOMMENT
HIGHtests/test_toin_feedback.py324 'data: {"type":"message_start","message":{"id":"msg_01","model":"claude-3-5-sonnet-20241022","role":"assistaCODE
HIGHtests/test_backend_nonstreaming_cache_metrics.py494 value null) rather than omitting them — the direct-Anthropic path alreadySTRING
HIGHtests/test_openai_codex_ws_timings.py293 with ``upstream_first_event`` absent (null)."""STRING
HIGHtests/test_anthropic_buffered_sse.py43 '"stop_reason":null,"stop_sequence":null,"usage":{"input_tokens":10,'CODE
HIGHtests/test_anthropic_buffered_sse.py56 '"stop_sequence":null},"usage":{"output_tokens":5}}\n\n'CODE
HIGH⚡tests/test_tool_call_arguments_not_a_string.py75 """``{"function": null}`` / ``{"id": null}`` reach the same encode path."""STRING
HIGH⚡tests/test_code_compressor_bash.py21if [[ "$( git config --global alias.pushall 2>/dev/null )" != '!git remote | xargs -L1 git push --all' ]]CODE
HIGHtests/test_prefix_tracker_client_rewrote_reply.py39 "input": {"command": "cd /work && git ls-files"},CODE
HIGHtests/test_dashboard_token_savings.py36 assert 'x-show="(stats.tokens?.new_input_tokens || 0) > 0"' in htmlCODE
HIGHtests/test_code_aware_brace_comment_regressions.py61 this.users.push(user);CODE
HIGHtests/test_proxy_streaming_request_logger.py285 b'"content":[],"stop_reason":null,"usage":{'CODE
HIGH⚡tests/test_cache_prefix_overlay.py296 _openai_asst("cd /tmp/core && rg -n foo ."),CODE
HIGH⚡tests/test_cache_prefix_overlay.py298 _openai_asst("cd /tmp/core && cat foo.py"), # NEW delta (assistant)CODE
HIGHtests/test_cache_prefix_overlay.py270 cmd = "cd /tmp/core && cat suma/apps/underwriting/followup/service.py"CODE
HIGH⚡tests/test_proxy_dashboard_stats_cache.py209 assert "formatNumber(stats.tokens?.saved || 0) + ' tokens total'" not in htmlCODE
HIGHtests/test_release_workflows.py214 "${{ steps.bake.outcome == 'success' && steps.bake.outputs.metadata || steps.bake-fallback.outputs.metadata }}"CODE
HIGHtests/test_release_workflows.py243 "steps.bake.outcome == 'success' && steps.bake.outputs.metadata || steps.bake-fallback.outputs.metadata"CODE
HIGH⚡tests/test_content_router_compact_json.py81 '{"id":79,"epic_id":9,"title":"test","description":null,'CODE
HIGH⚡tests/test_content_router_compact_json.py83 '"assigned_to":null,"estimated_hours":null,"actual_hours":null,'CODE
HIGH⚡tests/test_content_router_compact_json.py84 '"due_date":null,"source_ref":null,"metadata":"{}",'CODE
HIGH⚡tests/test_content_router_compact_json.py86 '"description_locked":0,"is_deleted":0,"deleted_at":null,'CODE
HIGH⚡tests/test_content_router_compact_json.py87 '"deleted_by":null,"delete_reason":null,"epic_name":"latency-routing",'CODE
HIGH⚡tests/test_proxy/test_context_guard.py144 # Upstreams and gateways put null, objects and lists in the messageCOMMENT
HIGHtests/test_proxy/test_gemini_savings_profile.py116 b'"usageMetadata":{"promptTokenCount":20,"candidatesTokenCount":null}}'CODE
HIGHtests/test_proxy/test_transformations_feed.py76 three body fields are absent (not null) and every other field is the sameSTRING
HIGHtests/test_install/test_native_installers.py871 $InstallScript, [ref]$null, [ref]$null)STRING
HIGHtests/test_install/test_native_installers.py945 $InstallScript, [ref]$null, [ref]$null)STRING
97 more matches not shown…
Excessive Try-Catch Wrapping1006 hits · 874 pts
SeverityFileLineSnippetContext
LOWclaude_analysis_ttl.py55 except Exception:CODE
LOWclaude_analysis_ttl.py65 except Exception:CODE
LOWclaude_analysis_ttl.py108 except Exception:CODE
LOWdocker/differential-network-capture/mitm_capture.py58 except Exception:CODE
LOWtests/e2e_cortex_savings.py382 except Exception as e:CODE
LOWtests/test_prometheus_obs_counters.py170 except Exception as exc: # pragma: no cover - failure pathCODE
MEDIUMtests/conftest.py166def _reset_litellm_model_resolution_cache():CODE
LOWtests/conftest.py34 except Exception:CODE
LOWtests/conftest.py222 except Exception:CODE
LOWtests/conftest.py562 except Exception: # pragma: no cover - a closed/rotated file is fineCODE
LOWtests/test_stateless_writers.py32 except Exception:CODE
LOWtests/e2e_real_compression.py86 except Exception:CODE
LOWtests/e2e_real_compression.py124 except Exception:CODE
LOWtests/test_tokenizer.py54 except Exception: # vocab unavailable → estimator fallback; monotonicity above still holdsCODE
MEDIUMtests/test_compression_cache.py587def reader() -> None:CODE
MEDIUMtests/test_compression_cache.py594def writer() -> None:CODE
LOWtests/test_compression_cache.py116 except Exception as exc: # pragma: no coverCODE
LOWtests/test_compression_cache.py591 except Exception as e: # pragma: no coverCODE
LOWtests/test_compression_cache.py599 except Exception as e: # pragma: no coverCODE
LOWtests/test_compression_cache.py700 except Exception as e: # pragma: no coverCODE
LOWtests/test_compression_cache.py740 except Exception as e: # pragma: no coverCODE
LOWtests/test_startup_log_noise.py40 except Exception:CODE
LOWtests/test_startup_log_noise.py60 except Exception:CODE
MEDIUMtests/test_compression_store.py1341def retrieve_item() -> None:CODE
LOWtests/test_compression_store.py1321 except Exception as e:CODE
LOWtests/test_compression_store.py1346 except Exception as e:CODE
LOWtests/test_compression_store.py1381 except Exception as e:CODE
LOWtests/e2e_cortex_mcp.py336 except Exception as e:CODE
LOWtests/e2e_cortex_quality.py371 except Exception as exc:CODE
MEDIUMtests/test_memory_bridge.py73def wrapper(*args, **kwargs):CODE
LOW⚡tests/test_memory_bridge.py76 except Exception as exc:CODE
LOWtests/test_critical_gaps.py364 except Exception as e:CODE
LOWtests/test_critical_gaps.py476 except Exception as e:CODE
LOWtests/test_critical_gaps.py490 except Exception as e:CODE
LOWtests/test_critical_gaps.py501 except Exception as e:CODE
MEDIUMtests/test_memory_handler_concurrent_init.py34def wrapper(*args, **kwargs):CODE
LOW⚡tests/test_memory_handler_concurrent_init.py37 except Exception as exc:CODE
LOW⚡tests/test_memory_handler_concurrent_init.py303 except Exception:CODE
LOW⚡tests/test_memory_handler_concurrent_init.py306 except Exception: # pragma: no cover - env-dependentCODE
LOWtests/e2e_cortex_latency.py434 except Exception as exc:CODE
LOWtests/e2e_cortex_proxy_mcp.py107 except Exception:CODE
LOWtests/e2e_cortex_proxy_mcp.py360 except Exception as e:CODE
LOW⚡tests/e2e_cortex_proxy.py116 except Exception:CODE
LOWtests/e2e_cortex_proxy.py217 except Exception as e:CODE
LOW⚡tests/e2e_cortex_proxy.py274 except Exception as e:CODE
LOW⚡tests/e2e_cortex_proxy.py288 except Exception as e:CODE
LOWtests/test_provider_codex_runtime.py207 except Exception: # pragma: no cover - best effort pollCODE
LOWtests/e2e_ws_responses_compression.py55 except Exception:CODE
LOWtests/test_stateless_no_disk.py56 except Exception:CODE
LOWtests/test_ccr.py351 except Exception as e:CODE
MEDIUMtests/test_ccr.py336def store_and_retrieve(i):CODE
LOW⚡tests/test_offline_egress_chokepoint.py271 except Exception: # noqa: BLE001 — the whole point of the testCODE
LOWtests/test_offline_egress_chokepoint.py2169 except Exception: # pragma: no cover - defensiveCODE
LOWtests/test_offline_egress_chokepoint.py2219 except Exception: # pragma: no cover - defensiveCODE
LOWtests/test_direct_chat_ccr_resolution.py138 except Exception: # pragma: no cover - a test handler must not raiseCODE
LOWtests/test_upstream_guard.py219 except Exception: # noqa: BLE001 - route errors are not the subjectCODE
LOWtests/test_upstream_guard.py387 except Exception as exc: # noqa: BLE001 - an upstream failure is a pass hereCODE
LOWtests/test_upstream_guard.py526 except Exception as exc: # noqa: BLE001CODE
LOWtests/test_upstream_guard.py560 except Exception: # noqa: BLE001 - a refused handshake is the passCODE
LOWtests/test_upstream_guard.py716 except Exception as exc: # noqa: BLE001 - the refusal is the subjectCODE
946 more matches not shown…
Deep Nesting542 hits · 442 pts
SeverityFileLineSnippetContext
LOWclaude_analysis_ttl.py45CODE
LOWclaude_analysis_ttl.py98CODE
LOWplugins/headroom-oauth2/src/headroom_oauth2/__init__.py114CODE
LOWtests/test_output_only_request_blocks.py45CODE
LOWtests/test_output_only_request_blocks.py120CODE
LOWtests/test_output_only_request_blocks.py185CODE
LOWtests/test_backend_anyllm.py530CODE
LOWtests/test_dashboard_cache_net_playwright.py358CODE
LOWtests/test_proxy_openai_cache_stability.py1183CODE
LOWtests/e2e_real_compression.py79CODE
LOWtests/e2e_real_compression.py252CODE
LOWtests/test_read_maturation_handler_nobust.py164CODE
LOWtests/test_read_maturation_handler_nobust.py285CODE
LOWtests/test_handler_outcome_tag_invariant.py38CODE
LOWtests/test_mixed_content_scan_cache.py23CODE
LOWtests/test_proxy_system_prompt_immutable.py371CODE
LOWtests/test_cache_control_ttl_order.py46CODE
LOWtests/test_dashboard_accessibility.py113CODE
LOWtests/test_dashboard_accessibility.py117CODE
LOWtests/test_memory_integration.py280CODE
LOWtests/test_openai_codex_ws_lifecycle.py1402CODE
LOWtests/test_critical_gaps.py163CODE
LOWtests/test_critical_gaps.py340CODE
LOWtests/test_critical_gaps.py355CODE
LOWtests/test_binaries.py540CODE
LOWtests/test_realignment_live_multi_turn.py559CODE
LOWtests/test_realignment_live_multi_turn.py864CODE
LOWtests/test_tag_protector_invariant.py121CODE
LOWtests/test_cross_turn_dedup.py141CODE
LOWtests/_mcp_stub.py58CODE
LOWtests/e2e_cortex_proxy_mcp.py148CODE
LOWtests/test_proxy_anthropic_cache_stability.py1688CODE
LOWtests/test_anthropic_pre_upstream_backpressure.py1022CODE
LOWtests/test_anthropic_pre_upstream_backpressure.py1027CODE
LOWtests/test_keep_last_turns.py483CODE
LOWtests/test_keep_last_turns.py557CODE
LOWtests/test_tool_result_interceptors.py38CODE
LOWtests/e2e_ws_responses_compression.py48CODE
LOWtests/test_claude_session_mode_benchmark.py442CODE
LOWtests/test_claude_session_mode_benchmark.py450CODE
LOWtests/test_offline_egress_chokepoint.py2053CODE
LOWtests/test_offline_egress_chokepoint.py2127CODE
LOWtests/test_offline_egress_chokepoint.py1331CODE
LOWtests/test_upstream_guard.py191CODE
LOWtests/test_upstream_guard.py912CODE
LOWtests/test_release_workflows.py719CODE
LOWtests/e2e_ws_codex_usage_headers.py65CODE
LOWtests/test_sse_safeguards_passthrough.py20CODE
LOWtests/test_plugin_hook_launcher.py34CODE
LOWtests/test_no_trust_remote_code.py51CODE
LOWtests/test_cache/test_prefix_tracker.py896CODE
LOWtests/test_cache/test_client_integration.py38CODE
LOWtests/test_integrations/langchain/test_chat_model.py1087CODE
LOWtests/test_integrations/agno/test_model.py1048CODE
LOWtests/test_cli/test_wrap_copilot.py56CODE
LOWtests/test_cli/test_wrap_copilot.py245CODE
LOWtests/test_cli/test_wrap_codex.py1914CODE
LOWtests/test_cli/test_wrap_codex.py2066CODE
LOWtests/test_cli/test_wrap_codex.py2122CODE
LOWtests/test_cli/test_wrap_grok.py25CODE
482 more matches not shown…
Modern Structural Boilerplate315 hits · 317 pts
SeverityFileLineSnippetContext
LOWplugins/headroom-oauth2/src/headroom_oauth2/__init__.py17__all__ = ["OAuth2ClientCredentials", "OAuth2Error", "OAuth2Middleware", "install", "parse_headers"]CODE
LOW⚡tests/test_providers_opencode_config.py21def _set_test_home(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:CODE
LOWtests/test_cli_learn.py545 def set_context_target(self, target: str | None) -> None:CODE
LOW⚡tests/test_ssl_context.py96 def set_alpn_protocols(self, protocols: list[str]) -> None:CODE
LOW…ts/test_proxy/test_anthropic_ccr_deferred_injection.py107 def update_from_result(self, originals, compressed) -> None: # noqa: ARG002CODE
LOWtests/test_learn/test_opencode_scanner.py99def _set_mtime(path: Path, *, seconds: int) -> None:CODE
LOWtests/parity/recorder.py1388__all__ = [CODE
LOWtests/test_cli/test_wrap_codex.py31def _set_test_home(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:CODE
LOW⚡tests/test_cli/test_wrap_opencode.py45def _set_test_home(monkeypatch: pytest.MonkeyPatch, tmp_path: Path) -> None:CODE
LOW⚡tests/test_cli/test_wrap_bridge.py25def _set_test_home(monkeypatch, tmp_path: Path) -> None:CODE
LOWtests/test_mcp_registry/test_claude_registrar.py872def _set_enabled(settings: Path, enabled: bool, *, plugin_id: str = _PLUGIN_ID) -> None:CODE
LOWtests/test_compression/test_evals.py132logger = logging.getLogger(__name__)STRING
LOWbenchmarks/__init__.py36__all__ = [CODE
LOWbenchmarks/scenarios/__init__.py22__all__ = [CODE
LOW⚡scripts/version-sync.py40def update_package_json(file_path: Path, version: str) -> None:CODE
LOW⚡scripts/version-sync.py50def update_plugin_manifest(file_path: Path, version: str) -> None:CODE
LOW⚡scripts/version-sync.py60def update_marketplace_manifest(file_path: Path, version: str) -> None:CODE
LOWscripts/version-sync.py77def update_server_json(file_path: Path, version: str) -> None:CODE
LOWscripts/version-sync.py99def update_plugin_versions(root: Path, version: str) -> None:CODE
LOWscripts/version-sync.py115def update_openclaw_package_json(file_path: Path, version: str) -> None:CODE
LOWscripts/version-sync.py130def update_opencode_package_json(file_path: Path, version: str) -> None:CODE
LOWscripts/version-sync.py145def update_pyproject_version(root: Path, version: str) -> None:CODE
LOWscripts/version-sync.py176def update_uv_lock_version(root: Path, version: str) -> None:CODE
LOWe2e/_lib/harness.py327__all__ = [CODE
LOWe2e/_lib/__init__.py23__all__ = [CODE
LOWheadroom/onnx_runtime.py13logger = logging.getLogger(__name__)CODE
LOWheadroom/proxy_client_liveness.py17__all__ = ["identity_mismatch", "marker_pid_reused", "pid_alive", "proc_identity"]CODE
LOW⚡headroom/paths.py109def set_process_stateless(value: bool) -> None:CODE
LOWheadroom/paths.py474__all__ = [CODE
LOWheadroom/binaries.py59logger = logging.getLogger(__name__)CODE
LOWheadroom/binaries.py61__all__ = [CODE
LOWheadroom/update_check.py34logger = logging.getLogger(__name__)CODE
LOWheadroom/update_check.py327__all__ = [CODE
LOWheadroom/savings_ledger.py765__all__ = [CODE
LOWheadroom/settings_store.py30logger = logging.getLogger(__name__)CODE
LOWheadroom/client.py38logger = logging.getLogger(__name__)CODE
LOWheadroom/managed_block.py44__all__ = ["block_pattern", "sanitize_block_text"]CODE
LOWheadroom/__init__.py97__all__ = [CODE
LOWheadroom/copilot_linux_secret.py14logger = logging.getLogger(__name__)CODE
LOWheadroom/rollout.py19logger = logging.getLogger(__name__)CODE
LOWheadroom/shared_context.py33logger = logging.getLogger(__name__)CODE
LOWheadroom/compress.py73logger = logging.getLogger(__name__)CODE
LOWheadroom/_ort.py46logger = logging.getLogger(__name__)CODE
LOWheadroom/copilot_auth.py32logger = logging.getLogger(__name__)CODE
LOWheadroom/copilot_auth.py1041def _set_header_default(headers: dict[str, str], name: str, value: str) -> None:CODE
LOWheadroom/agent_savings.py11logger = logging.getLogger(__name__)CODE
LOWheadroom/copilot_macos_keychain.py14logger = logging.getLogger(__name__)CODE
LOWheadroom/mcp_registry/codex.py28logger = logging.getLogger(__name__)CODE
LOWheadroom/mcp_registry/claude.py42logger = logging.getLogger(__name__)CODE
LOWheadroom/mcp_registry/grok.py28logger = logging.getLogger(__name__)CODE
LOWheadroom/mcp_registry/__init__.py33__all__ = [CODE
LOWheadroom/mcp_registry/opencode.py22logger = logging.getLogger(__name__)CODE
LOWheadroom/mcp_registry/antigravity.py41logger = logging.getLogger(__name__)CODE
LOWheadroom/relevance/embedding.py60logger = logging.getLogger(__name__)CODE
LOWheadroom/relevance/__init__.py57__all__ = [CODE
LOWheadroom/tokenizers/mistral.py17logger = logging.getLogger(__name__)CODE
LOWheadroom/tokenizers/registry.py20logger = logging.getLogger(__name__)CODE
LOWheadroom/tokenizers/__init__.py58__all__ = [CODE
LOWheadroom/tokenizers/huggingface.py17logger = logging.getLogger(__name__)CODE
LOWheadroom/tokenizers/tiktoken_counter.py21logger = logging.getLogger(__name__)CODE
255 more matches not shown…
AI Slop Vocabulary97 hits · 277 pts
SeverityFileLineSnippetContext
MEDIUM⚡run-all-plugins.sh128# wait for readiness (no foreground sleep on this harness)COMMENT
MEDIUMcodecov.yml6 # Gate on the comprehensive unit suite (`python` flag from ci.yml's 4 testCOMMENT
MEDIUMpyproject.toml330# The EleutherAI lm-evaluation-harness is intentionally not exposed as aCOMMENT
MEDIUMpyproject.toml332# (`python -m lm_eval`), and the harness currently pulls sqlitedictCOMMENT
MEDIUMpyproject.toml350# ML weight a sandbox avoids; evals is a dev/test harness, not aCOMMENT
MEDIUMpyproject.toml528 # test-teardown thread; this is a test-harness artifact, not a production issueCOMMENT
MEDIUMcrates/headroom-parity/src/lib.rs56/// differing by 1 ULP). To make comparisons robust we round-trip theCOMMENT
MEDIUMcrates/headroom-py/Cargo.toml23# Disable the default test harness — Rust `cargo test` can't run a cdylib thatCOMMENT
MEDIUMtests/test_openai_responses_t3_replay_regression.py173 # Simulate a harness that changed/trimmed the ancient envelope.COMMENT
MEDIUM⚡tests/test_request_outcome.py149# ── classify_client — the harness ID source ─────────────────────────COMMENT
MEDIUM⚡tests/test_request_outcome.py172 # X-Client wins even when UA matches a different harnessCOMMENT
MEDIUM⚡tests/test_request_outcome.py110 assert o.client is None # unidentified harnessCODE
MEDIUMtests/test_request_outcome.py217 # Bind the real method to this harness.COMMENT
MEDIUM⚡tests/test_google_multimodal.py557# Parametrized tests for comprehensive coverageCOMMENT
MEDIUMtests/test_dashboard_cache_net_playwright.py154 # escapes the harness to the real network.COMMENT
LOWtests/test_image_compressor.py613 # URL images should just pass through since we can't extract dataCOMMENT
MEDIUMtests/test_proxy_handler_helpers.py297 # Issue #765: compression relocated the harness system block intoCOMMENT
MEDIUMtests/test_ccr_feedback.py327 """get_stats returns comprehensive overview."""STRING
MEDIUM⚡tests/test_tool_search_client_deferral.py151 # prefix test miss a shipped harness.COMMENT
MEDIUM⚡tests/test_observed_wire_shapes.py289# HEADROOM_LOG_MESSAGES trace of the `inspect` non-litellm harness);COMMENT
MEDIUM⚡tests/test_observed_wire_shapes.py332# Section 5 — command classification is harness-agnostic (Bug A + Bug B)COMMENT
MEDIUM⚡tests/test_observed_wire_shapes.py474 # The SAME read action, as each provider/harness serializes its tool call.COMMENT
MEDIUM⚡tests/test_observed_wire_shapes.py511 # object — raw and harness-wrapped — is RELEASED (not protected) for compressionCOMMENT
MEDIUM⚡tests/test_observed_wire_shapes.py534 # whatever role the harness stamps on it.COMMENT
MEDIUMtests/test_observed_wire_shapes.py411 # command* so cat/sed code reads are passed verbatim on ANY model/harness.COMMENT
MEDIUM⚡tests/test_cross_turn_dedup.py347# — role:tool, role:function, or a text-harness role:user string — keyed off theCOMMENT
MEDIUMtests/test_cross_turn_dedup.py364 # Text-harness shape: the read output arrives as a role:user STRING after anCOMMENT
MEDIUMtests/test_openai_tool_search_deferral.py206# --- client-harness exclusion (GH #2660) -------------------------------------COMMENT
MEDIUMtests/test_transforms_content_router.py2494 # A text harness returns its tool output as a role:user string after theCOMMENT
MEDIUM⚡tests/test_densify_agent_mode.py125 # Generic harness: OpenAI chat format (role='tool', string content) — notCOMMENT
LOWtests/test_bedrock_region.py162 # We need to actually test the function, so let's just use theCOMMENT
MEDIUMtests/test_proxy_hooks_regression.py46 # from that same tokenizer so the test stays robust to any futureCOMMENT
MEDIUMtests/test_offline_egress_chokepoint.py2033 | (?:datasets\.)?load_dataset # HF datasets (eval harness)CODE
MEDIUM⚡tests/test_counterfactual_pricing.py184# ── Provider agnosticism: every harness, every backend ────────────────────COMMENT
MEDIUMtests/test_savings_ledger.py329 # identified harness -> recorded as that clientCOMMENT
MEDIUMtests/test_savings_ledger.py341 # unidentified harness -> falls back to "proxy"COMMENT
MEDIUMtests/test_dashboard_cache_ttl_playwright.py187 # escapes the harness to the real network.COMMENT
LOWtests/test_evals/test_html_extraction_eval.py308 # These should not fail (just create the evaluator)COMMENT
MEDIUMtests/test_evals/test_html_oss_benchmarks.py279 # Print comprehensive resultsCOMMENT
MEDIUM⚡tests/test_transforms/test_compaction_codec.py142 # A harness that round-trips the block through a Windows text-mode file (orCOMMENT
MEDIUMtests/gateway/test_kong_integration.py52try: # owned by the harness; may land after this fileCODE
MEDIUMtests/gateway/test_kong_integration.py54except ImportError: # pragma: no cover - harness not present yetCODE
MEDIUMtests/gateway/test_kong_integration.py101 # This harness deliberately binds 0.0.0.0 with no inbound token so theCOMMENT
MEDIUMexamples/strands_via_proxy_demo.py9 Fix #4 Strands harness label in CLIENT_UA_MAPSTRING
MEDIUMbenchmarks/i18n_compression_eval.py48 # CJK has no spaces; drop all whitespace so substring match is robust.COMMENT
MEDIUMbenchmarks/conftest.py241 "\n\n## Guidelines\n1. Always explain your reasoning\n2. Provide code examples when helpful\n3. Consider edge caCODE
MEDIUM⚡benchmarks/real_world_agent_benchmark.py52#: changing it changes every number this harness reports.COMMENT
MEDIUMbenchmarks/comprehensive_eval.py710 """Run comprehensive evaluation."""STRING
MEDIUM.github/workflows/rust.yml217 # harness fails only on a Diff — `parity-run` sets `any_diffs` inside theCOMMENT
MEDIUMe2e/init/run.py33# Add repo root to sys.path so the harness import works whether the file isCOMMENT
MEDIUMe2e/init/run.py56 # The harness restores PATH before assertions, but `headroom init` ran with aCOMMENT
MEDIUMe2e/wrap/run.py498 # Container defaults now bind to all interfaces; this isolated harnessCOMMENT
MEDIUMe2e/wrap/run.py1008 # This harness owns a foreground gateway under an isolated HOME.COMMENT
LOWheadroom/config.py318# Why NOT just add these to DEFAULT_VERBATIM_EXCLUDE_TOOLS, which would have beenCOMMENT
MEDIUM⚡headroom/evals/suite_runner.py60 # Standard benchmarks via lm-eval harness (through Headroom proxy)COMMENT
MEDIUMheadroom/evals/comprehensive_benchmark.py449 """Run comprehensive benchmark suite.STRING
MEDIUMheadroom/learn/verbosity.py273 # Backfill has_tools (a session-level property of the harness).COMMENT
MEDIUMheadroom/proxy/memory_query_policy.py67 # Code's <system-reminder> harness blocks: they are appended toCOMMENT
MEDIUMheadroom/proxy/server.py5408 """Get comprehensive proxy statistics.STRING
MEDIUMheadroom/proxy/prometheus_metrics.py586 # that names the harness when an agent is pointed at a persistent proxyCOMMENT
37 more matches not shown…
Cross-File Repetition47 hits · 235 pts
SeverityFileLineSnippetContext
HIGHtests/test_integrations/langchain/test_streaming.py0tests for behavior when langchain is not available.STRING
HIGHtests/test_integrations/langchain/test_memory.py0tests for behavior when langchain is not available.STRING
HIGHtests/test_integrations/langchain/test_retriever.py0tests for behavior when langchain is not available.STRING
HIGHtests/test_integrations/langchain/test_agents.py0tests for behavior when langchain is not available.STRING
HIGHtests/test_integrations/langchain/test_streaming.py0_check_langchain_available raises importerror when not available.STRING
HIGHtests/test_integrations/langchain/test_memory.py0_check_langchain_available raises importerror when not available.STRING
HIGHtests/test_integrations/langchain/test_retriever.py0_check_langchain_available raises importerror when not available.STRING
HIGHtests/test_integrations/langchain/test_agents.py0_check_langchain_available raises importerror when not available.STRING
HIGHheadroom/memory/system.py0retrieve a specific memory by id. args: memory_id: the memory identifier. returns: memory if found, none otherwise.STRING
HIGHheadroom/memory/backends/mem0_system_adapter.py0retrieve a specific memory by id. args: memory_id: the memory identifier. returns: memory if found, none otherwise.STRING
HIGHheadroom/memory/backends/direct_mem0.py0retrieve a specific memory by id. args: memory_id: the memory identifier. returns: memory if found, none otherwise.STRING
HIGHheadroom/memory/ports.py0get a memory by id. args: memory_id: the unique identifier of the memory. returns: the memory if found, none otherwise.STRING
HIGHheadroom/memory/adapters/sqlite.py0get a memory by id. args: memory_id: the unique identifier of the memory. returns: the memory if found, none otherwise.STRING
HIGHheadroom/memory/backends/local.py0get a memory by id. args: memory_id: the unique identifier of the memory. returns: the memory if found, none otherwise.STRING
HIGHheadroom/memory/ports.py0get the full history chain for a memory. follows supersession links to return all versions of a memory. args: memory_id:STRING
HIGHheadroom/memory/adapters/sqlite.py0get the full history chain for a memory. follows supersession links to return all versions of a memory. args: memory_id:STRING
HIGHheadroom/memory/core.py0get the full history chain for a memory. follows supersession links to return all versions of a memory. args: memory_id:STRING
HIGHheadroom/memory/ports.py0clear all memories at or below a scope level. args: user_id: required user scope. session_id: if provided, clear sessionSTRING
HIGHheadroom/memory/core.py0clear all memories at or below a scope level. args: user_id: required user scope. session_id: if provided, clear sessionSTRING
HIGHheadroom/memory/adapters/sqlite.py0clear all memories at or below a scope level. args: user_id: required user scope. session_id: if provided, clear sessionSTRING
HIGHheadroom/memory/ports.py0remove multiple memories from the text index (protocol-compliant). args: memory_ids: list of memory ids to remove. returSTRING
HIGHheadroom/memory/adapters/hnsw.py0remove multiple memories from the text index (protocol-compliant). args: memory_ids: list of memory ids to remove. returSTRING
HIGHheadroom/memory/adapters/fts5.py0remove multiple memories from the text index (protocol-compliant). args: memory_ids: list of memory ids to remove. returSTRING
HIGHheadroom/memory/adapters/sqlite_vector.py0remove multiple memories from the text index (protocol-compliant). args: memory_ids: list of memory ids to remove. returSTRING
HIGHheadroom/memory/ports.py0retrieve an entity by id. args: entity_id: the unique identifier of the entity. returns: the entity if found, none otherSTRING
HIGHheadroom/memory/adapters/sqlite_graph.py0retrieve an entity by id. args: entity_id: the unique identifier of the entity. returns: the entity if found, none otherSTRING
HIGHheadroom/memory/adapters/graph.py0retrieve an entity by id. args: entity_id: the unique identifier of the entity. returns: the entity if found, none otherSTRING
HIGHheadroom/memory/ports.py0delete a single relationship. args: relationship_id: the unique identifier of the relationship. returns: true if the relSTRING
HIGHheadroom/memory/adapters/sqlite_graph.py0delete a single relationship. args: relationship_id: the unique identifier of the relationship. returns: true if the relSTRING
HIGHheadroom/memory/adapters/graph.py0delete a single relationship. args: relationship_id: the unique identifier of the relationship. returns: true if the relSTRING
HIGHheadroom/memory/adapters/graph.py0get memory statistics for the memorytracker. returns: componentstats with current memory usage.STRING
HIGHheadroom/memory/adapters/hnsw.py0get memory statistics for the memorytracker. returns: componentstats with current memory usage.STRING
HIGHheadroom/proxy/request_logger.py0get memory statistics for the memorytracker. returns: componentstats with current memory usage.STRING
HIGHheadroom/proxy/semantic_cache.py0get memory statistics for the memorytracker. returns: componentstats with current memory usage.STRING
HIGHheadroom/cache/compression_store.py0get memory statistics for the memorytracker. returns: componentstats with current memory usage.STRING
HIGHheadroom/cache/compression_feedback.py0fraction of retrievals that were full (not search).STRING
HIGHheadroom/telemetry/toin.py0fraction of retrievals that were full (not search).STRING
HIGHheadroom/telemetry/models.py0fraction of retrievals that were full (not search).STRING
HIGHheadroom/providers/cursor/runtime.py0build the local proxy urls shown to antigravity users. ``project`` (the wrap launch directory) is encoded as a ``/p/<namSTRING
HIGHheadroom/providers/grok_build/runtime.py0build the local proxy urls shown to antigravity users. ``project`` (the wrap launch directory) is encoded as a ``/p/<namSTRING
HIGHheadroom/providers/antigravity/runtime.py0build the local proxy urls shown to antigravity users. ``project`` (the wrap launch directory) is encoded as a ``/p/<namSTRING
HIGHheadroom/integrations/crewai/agents.py0initialize headroomtoolwrapper. args: tool: the autogen functiontool to wrap. min_chars_to_compress: minimum character cSTRING
HIGHheadroom/integrations/langchain/agents.py0initialize headroomtoolwrapper. args: tool: the autogen functiontool to wrap. min_chars_to_compress: minimum character cSTRING
HIGHheadroom/integrations/autogen/agents.py0initialize headroomtoolwrapper. args: tool: the autogen functiontool to wrap. min_chars_to_compress: minimum character cSTRING
HIGHheadroom/integrations/strands/hooks.py0reset all tracked metrics (thread-safe). clears the metrics history and resets the total tokens saved counter. useful foSTRING
HIGHheadroom/integrations/strands/model.py0reset all tracked metrics (thread-safe). clears the metrics history and resets the total tokens saved counter. useful foSTRING
HIGHheadroom/integrations/agno/model.py0reset all tracked metrics (thread-safe). clears the metrics history and resets the total tokens saved counter. useful foSTRING
Docstring Block Structure44 hits · 220 pts
SeverityFileLineSnippetContext
HIGHtests/test_compression/test_evals.py116"""Authentication middleware for FastAPI applications. This module provides JWT-based authentication with role-based acSTRING
HIGHheadroom/onnx_runtime.py104Download a file from HuggingFace Hub, preferring the local cache. Tries ``local_files_only=True`` first to avoid a STRING
HIGHheadroom/compress.py222Compress messages using Headroom's full compression pipeline. This is the simplest way to use Headroom. No proxy, nSTRING
HIGHheadroom/relevance/__init__.py76Factory function to create a relevance scorer. Args: tier: Scorer tier to create: - "hybrid": HSTRING
HIGHheadroom/tokenizers/registry.py174Get tokenizer for a model. Args: model: Model name (e.g., 'gpt-4o', 'claude-3-sonnet'). STRING
HIGHheadroom/tokenizers/huggingface.py469Encode text to token IDs. Args: text: Text to encode. Returns: List of token ISTRING
HIGHheadroom/tokenizers/huggingface.py488Decode token IDs to text. Args: tokens: List of token IDs. Returns: Decoded teSTRING
HIGHheadroom/tokenizers/base.py459Encode text to token IDs. Optional method - not all backends support encoding. Default implementation rSTRING
HIGHheadroom/tokenizers/base.py476Decode token IDs to text. Optional method - not all backends support decoding. Default implementation rSTRING
HIGHheadroom/learn/analyzer.py594Strip optional markdown fences and parse JSON. Handles raw JSON and fenced code blocks (e.g. ``​`json ... ``​`), inSTRING
HIGHheadroom/learn/analyzer.py729Call a locally installed CLI tool as the LLM backend. Enables keyless usage for subscription-based CLI tools that hSTRING
HIGHheadroom/memory/system.py99Update an existing memory with new content. Creates a new version while preserving history (supersession). STRING
HIGHheadroom/memory/core.py536Supersede an existing memory with a new version. Creates a temporal chain where the old memory's validity ends STRING
HIGHheadroom/memory/factory.py69Create a complete memory system from configuration. This factory function creates and initializes all memory systemSTRING
HIGHheadroom/memory/factory.py117Create a memory store backend. Args: config: Memory system configuration. Returns: A MemoryStoSTRING
HIGHheadroom/memory/factory.py145Create or return a cached embedder backend. The embedder is shared across every ``LocalBackend`` instance that STRING
HIGHheadroom/memory/factory.py231Create a vector index backend. Args: config: Memory system configuration. Returns: A VectorIndSTRING
HIGHheadroom/memory/factory.py324Create a text index backend. Args: config: Memory system configuration. Returns: A TextIndex iSTRING
HIGHheadroom/memory/backends/local.py557Update a memory with new content (creates versioned history). Uses HierarchicalMemory.supersede() to create a nSTRING
HIGHheadroom/memory/backends/mem0_system_adapter.py255Update an existing memory with new content. Creates a new version while preserving history (supersession). STRING
HIGHheadroom/memory/adapters/embedders.py677Call OpenAI API with retry logic for transient failures. Args: texts: List of texts to embed. STRING
HIGHheadroom/memory/adapters/embedders.py721Generate an embedding for a single text. Args: text: The text to embed. Returns: STRING
HIGHheadroom/memory/adapters/embedders.py740Generate embeddings for multiple texts. Automatically handles batching for large inputs. Args: STRING
HIGHheadroom/memory/adapters/embedders.py899Call Ollama API with retry logic for a single text. Args: text: Text to embed. Returns: STRING
HIGHheadroom/memory/adapters/embedders.py954Generate an embedding for a single text. Args: text: The text to embed. Returns: STRING
HIGHheadroom/memory/adapters/embedders.py973Generate embeddings for multiple texts. Ollama API doesn't support batch embedding natively, so we makeSTRING
HIGHheadroom/memory/adapters/sqlite.py661Supersede an existing memory with a new version. This creates a temporal chain: the old memory's valid_until isSTRING
HIGHheadroom/memory/adapters/hnsw.py583Search for similar memories using vector similarity. Args: filter: Vector search filter with query STRING
HIGHheadroom/proxy/server.py1575Run a synchronous compression callable on the bounded executor with cancel-aware metrics. Replaces ``asSTRING
HIGHheadroom/cache/registry.py83 Get a cache optimizer for a provider. Args: provider: Provider name (e.g., "anthropic", "oSTRING
HIGHheadroom/providers/base.py54 Get a token counter for a specific model. Args: model: The model name. Returns: STRING
HIGHheadroom/providers/base.py70 Get the context window limit for a model. Args: model: The model name. Returns: STRING
HIGHheadroom/backends/base.py125Send an OpenAI-format message request. Unlike send_message(), this takes OpenAI-format input and returns STRING
HIGHheadroom/backends/base.py148Stream an OpenAI-format chat completion. Yields SSE-formatted strings: 'data: {...}\\n\\n' for each chunk, STRING
HIGHheadroom/cli/_utils/parsers.py10Parse a duration string into a timedelta. Supported formats: - "7d" - 7 days - "2w" - 2 weeks STRING
HIGHheadroom/storage/sqlite.py145Query metrics with filters. Matches are ordered by timestamp descending, then request_id descending (thSTRING
HIGHheadroom/storage/jsonl.py105Query metrics with filters. Matches are ordered by timestamp descending, then request_id descending (thSTRING
HIGHheadroom/transforms/spreadsheet_ingest.py139Load a spreadsheet file into ``{sheet_name: csv_text}``. Args: path: Path to a ``.xlsx`` or ``.xls`` file. STRING
HIGHheadroom/transforms/code_compressor.py217Get a tree-sitter parser for the given language. Returns a **thread-local** ``tree_sitter.Parser`` instance. tSTRING
HIGHheadroom/transforms/compressor_registry.py168Register ``compressor`` under its ``descriptor.name``. Args: compressor: The compressor to registerSTRING
HIGHheadroom/transforms/kompress_compressor.py2111Compress multiple texts. Uses batched inference on GPU, sequential on CPU. On GPU (PyTorch + CUDA / MPS), runs STRING
HIGHheadroom/compression/masks.py88Combine masks - preserve if EITHER mask says preserve. Useful when combining multiple structure detection stratSTRING
HIGHheadroom/compression/masks.py111Combine masks - preserve only if BOTH masks say preserve. Useful for being more aggressive with compression. STRING
HIGHheadroom/pricing/registry.py106Estimate the cost for a given token usage. Args: model: The model name/identifier. inpuSTRING
Modern AI Meta-Vocabulary60 hits · 184 pts
SeverityFileLineSnippetContext
MEDIUMCHANGELOG.md19- **cache/prefix-freeze:** resolve `PrefixCacheTracker`s per conversation lineage within a session id, so concurrent conCODE
MEDIUMCHANGELOG.md19- **cache/prefix-freeze:** resolve `PrefixCacheTracker`s per conversation lineage within a session id, so concurrent conCODE
MEDIUMCHANGELOG.md152* **wrap/doctor:** make the Claude Remote Control gate warning accurate and stop it firing for users who never had the fCOMMENT
MEDIUMcrates/headroom-core/src/ccr/mod.rs63/// (`CCRConfig.store_ttl_seconds`). Session-scale: agentic sessionsCOMMENT
MEDIUM…adroom-proxy/src/cache_stabilization/drift_detector.rs67//! under a millisecond on a typical agentic request; the detectorCOMMENT
MEDIUM…adroom-proxy/src/cache_stabilization/drift_detector.rs559/// *measured* axes, and agentic clients legitimately mutate themCOMMENT
MEDIUM…/headroom-proxy/src/cache_stabilization/beta_sticky.rs63//! the `(model, system)` bucket conflating parallel agenticCOMMENT
MEDIUMREALIGNMENT/04-phase-B-live-zone.md88- **MessageScorer Rust port retirement:** PR #338 and #343 (April 2026) ported MessageScorer to Rust. That work becomes CODE
MEDIUMREALIGNMENT/12-decisions-needed.md35The PR #338 / #343 port (April 2026) was investment in the wrong abstraction (per Agent G's audit: scoring's only consumCODE
MEDIUM⚡tests/test_proxy_warmup.py102# Startup orchestration tests — use HeadroomProxy + stubbed transformsCOMMENT
MEDIUMtests/test_anthropic_compaction_transforms.py55 # Two blocks, mirroring how agentic clients actually shape the system array:COMMENT
MEDIUMtests/test_openai_codex_ws_lifecycle.py1177 # out is a cancel from the handler's orchestration.COMMENT
MEDIUMtests/test_memory_handler_native_ops.py714 # handles its own context window. See ``MemoryQuery``.COMMENT
MEDIUM⚡tests/test_relevance_split.py259 # the embedding model on the request thread (the swap happens later, in theCOMMENT
MEDIUM⚡tests/test_proxy/test_model_router.py41 # Inverse of require_no_tools: route agentic (tool-using) turns to aCOMMENT
MEDIUM⚡tests/test_proxy/test_context_guard.py154 # not a context window must not clamp the budget for the process.COMMENT
MEDIUM⚡tests/test_memory/test_traffic_learner.py2580 # Malformed input — we'd rather drop than persist scaffolding.COMMENT
MEDIUM⚡tests/test_cli/test_wrap_helpers.py978# _resolve_1m_model — 1M context window suffix logic (#1158).COMMENT
MEDIUMwiki/langchain.md412### Example 2: RAG Pipeline with Document FilteringCOMMENT
MEDIUM⚡examples/vertex_gemini_benchmark/scenarios.py335# 4. Multi-Turn RAG & System Architecture SynthesisCOMMENT
MEDIUM⚡benchmarks/agent_cost_benchmark.py390# SCENARIO 3: RAG Context ScalingCOMMENT
MEDIUMbenchmarks/agent_cost_benchmark.py404 # Generate RAG conversation with ~50K tokens of contextCOMMENT
MEDIUM⚡benchmarks/bench_latency.py114 content_type: str # json, code, text, logs, agentic, ragCODE
MEDIUMbenchmarks/bench_latency.py589 # Set a model_limit large enough to exercise compression on big agentic contextsCOMMENT
MEDIUMbenchmarks/bench_latency.py601 # --- RAG conversations ---COMMENT
MEDIUMbenchmarks/bench_latency.py864 # --- Per-Transform Breakdown (for agentic/rag scenarios) ---COMMENT
MEDIUM.github/workflows/ci.yml7# prefetch-model — download the embedding model ONCE (authenticated), warm shared cacheCOMMENT
MEDIUMheadroom/config.py877 # Session-scale TTL. The original 5-minute default predates agenticCOMMENT
MEDIUMheadroom/__init__.py200 # Shared context for multi-agent workflowsCOMMENT
MEDIUMheadroom/parser.py40# Patterns for RAG detection (best effort)COMMENT
MEDIUMheadroom/parser.py265 # Check if this looks like RAG contentCOMMENT
MEDIUM⚡headroom/evals/datasets.py83# RAG / RETRIEVAL DATASETSCOMMENT
MEDIUM⚡headroom/evals/datasets.py1186 # RAG/RetrievalCOMMENT
MEDIUMheadroom/evals/README.md176### RAG / RetrievalCOMMENT
MEDIUMheadroom/evals/__main__.py389 python -m headroom.evals benchmark --dataset rag # Run all RAG datasetsCODE
MEDIUMheadroom/learn/models.py166 # guards against a detected repeated pattern. Loop guardrails are rankedCOMMENT
MEDIUMheadroom/learn/analyzer.py271 # Weight loop guardrails above one-off rules using MEASURED waste.COMMENT
MEDIUM⚡headroom/memory/traffic_learner.py1047 # implementation matched scaffolding ("don't mention thisCOMMENT
MEDIUMheadroom/memory/traffic_learner.py71# Agent harnesses can encode orchestration metadata as user-role messages.COMMENT
MEDIUMheadroom/proxy/server.py1102 # code/RAG context — see issue #454).COMMENT
MEDIUMheadroom/proxy/server.py4192 # remain the unauthenticated probes for orchestration health.COMMENT
MEDIUMheadroom/proxy/request_logger.py105 # a long agentic session grew one proxy to 100 GB RSS. Light fields stayCOMMENT
MEDIUMheadroom/proxy/models.py287 # of input lives in user messages (pasted code/text, RAG context) and theCOMMENT
MEDIUMheadroom/proxy/context_guard.py71# not a context window: gateways return the same "prompt is too long: N > M"COMMENT
MEDIUMheadroom/proxy/context_guard.py214 # Not a context window. Learning it would clamp the budget on a numberCOMMENT
MEDIUM⚡headroom/proxy/helpers.py3494# local context window — tens of K tokens. That decision is made client-sideCOMMENT
MEDIUM⚡headroom/proxy/helpers.py3644# Anthropic then excludes deferred tools from the context window (they stopCOMMENT
MEDIUMheadroom/proxy/handlers/anthropic.py3221 # them from the context window — they stop counting as input tokens untilCOMMENT
MEDIUMheadroom/proxy/handlers/streaming.py970 # where the agentic traffic is, so without this the split — and the oneCOMMENT
MEDIUMheadroom/providers/openai.py79# OpenAI context window limitsCOMMENT
MEDIUMheadroom/providers/anthropic.py129 # Claude Sonnet 4.6 - 1M context windowCOMMENT
MEDIUMheadroom/providers/claude/runtime.py13# every one into its context window) when ANTHROPIC_BASE_URL is a custom hostCOMMENT
MEDIUMheadroom/providers/claude/runtime.py54# family as #746 (on-demand tool loading) and #1158 (1M context window), both ofCOMMENT
MEDIUMheadroom/providers/claude/install.py20 # its context window (GH #746) — breaking sub-agents and forcing compaction.COMMENT
MEDIUMheadroom/cli/init.py213 # all into its context window — overflowing it (breaks sub-agent spawns,COMMENT
MEDIUMheadroom/cli/wrap.py337# inflates the local context window by tens of K tokens. Setting the env varCOMMENT
MEDIUMheadroom/cli/wrap.py356# 1M context window for `wrap claude` (#1158). Claude Code only sends theCOMMENT
MEDIUMheadroom/cli/wrap.py6308 # Issue #1158: opt-in 1M context window. Claude Code only sends theCOMMENT
MEDIUMheadroom/cli/wrap.py5983 headroom wrap claude --1m # Preserve the 1M context windowSTRING
MEDIUMheadroom/transforms/content_router.py2039 # embedding model is pre-warmed in the background (BM25 scores until it'sCOMMENT
Redundant / Tautological Comments113 hits · 153 pts
SeverityFileLineSnippetContext
LOWtests/test_memory_system.py26# Check if hnswlib is available for LocalBackend testsCOMMENT
LOWtests/test_proxy_memory_integration.py221 # Check if response indicates tool was usedCOMMENT
LOWtests/test_proxy_memory_integration.py281 # Check if response mentions the saved infoCOMMENT
LOW⚡tests/test_memory_integration.py264 # Check if memory tool was calledCOMMENT
LOW⚡tests/test_memory_integration.py271 # Check if auto-handledCOMMENT
LOWtests/test_memory_integration.py310 # Check if memory tool was called with pre-extractionCOMMENT
LOWtests/test_memory_integration.py558 # Check if search was invokedCOMMENT
LOWtests/test_critical_gaps.py830 # Set _last_save_time to past so elapsed > intervalCOMMENT
LOWtests/test_proxy_ccr.py445 # Check if compression was actually performed (not skipped)COMMENT
LOWtests/test_hnsw_only.py16# Check if hnswlib is available (use lazy check to avoid SIGILL on incompatible CPUs)COMMENT
LOWtests/test_sqlite_vector_index.py22# Check if sqlite-vec is availableCOMMENT
LOWtests/test_google_multimodal_e2e.py145 # Check if model made a function callCOMMENT
LOWtests/test_cache/test_anthropic.py70 # Check if cache_control was insertedCOMMENT
LOWtests/test_evals/test_html_oss_benchmarks.py70 # Print resultsCOMMENT
LOW⚡tests/test_integrations/langchain/test_chat_model.py1067 # Check if Ollama server is running on default portCOMMENT
LOWtests/test_integrations/langchain/test_chat_model.py18# Check if LangChain is availableCOMMENT
LOWtests/test_integrations/langchain/test_extended.py15# Check if LangChain is availableCOMMENT
LOWtests/test_integrations/langchain/test_streaming.py16# Check if LangChain is availableCOMMENT
LOWtests/test_integrations/langchain/test_langgraph.py15# Check if LangChain is availableCOMMENT
LOWtests/test_integrations/langchain/test_memory.py15# Check if LangChain is availableCOMMENT
LOWtests/test_integrations/langchain/test_retriever.py15# Check if LangChain is availableCOMMENT
LOWtests/test_integrations/langchain/test_agents.py16# Check if LangChain is availableCOMMENT
LOWtests/test_integrations/agno/test_model.py15# Check if Agno is availableCOMMENT
LOWtests/test_integrations/agno/test_model.py1038 # Check if Ollama server is running on default portCOMMENT
LOWtests/test_integrations/agno/test_hooks.py14# Check if Agno is availableCOMMENT
LOW⚡tests/test_memory/test_factory.py29# Check if hnswlib is available (most factory tests require it)COMMENT
LOW⚡tests/test_memory/test_hierarchical.py659# Check if hnswlib is available (use lazy check to avoid SIGILL on incompatible CPUs)COMMENT
LOWtests/test_memory/test_easy.py29# Check if hnswlib is available (local backend requires it)COMMENT
LOWtests/test_memory/test_core_operations.py36# Check if hnswlib is available (HierarchicalMemory requires it)COMMENT
LOWtests/test_cli/test_mcp.py18# Check if MCP SDK is availableCOMMENT
LOWtests/integrations/test_strands/test_model.py23# Check if strands-agents is installedCOMMENT
LOWtests/integrations/test_strands/test_model_unit.py16# Check if strands-agents is installed for proper skip handlingCOMMENT
LOWtests/integrations/test_strands/test_hooks.py23# Check if strands-agents is installedCOMMENT
LOWtests/integrations/test_strands/test_hooks_unit.py18# Check if strands-agents is installed for proper skip handlingCOMMENT
LOWexamples/strands_bedrock_demo.py646 # Display resultsCOMMENT
LOWexamples/strands_bedrock_demo.py816 # Display resultsCOMMENT
LOWexamples/langchain_demo/run_comparison.py195 # Check if doneCOMMENT
LOWexamples/langchain_demo/run_comparison.py296 # Check if doneCOMMENT
LOW⚡examples/deployment/macos-launchagent/uninstall.sh67# Check if we're on macOSCOMMENT
LOW⚡examples/deployment/macos-launchagent/uninstall.sh74# Check if LaunchAgent is installedCOMMENT
LOW⚡examples/deployment/macos-launchagent/uninstall.sh81# Check if service is running and stop itCOMMENT
LOWexamples/deployment/macos-launchagent/install.sh75# Check if we're on macOSCOMMENT
LOWexamples/deployment/macos-launchagent/install.sh81# Check if headroom is installedCOMMENT
LOWexamples/deployment/macos-launchagent/install.sh96# Check if service is already installedCOMMENT
LOWexamples/deployment/macos-launchagent/install.sh100 # Check if service is runningCOMMENT
LOWexamples/deployment/macos-launchagent/install.sh130# Check if port is in useCOMMENT
LOWexamples/deployment/macos-launchagent/install.sh189 # Check if port is listeningCOMMENT
LOW…ples/deployment/macos-launchagent/shell-integration.sh32# Check if proxy is running (fast path using lsof)COMMENT
LOW…ples/deployment/macos-launchagent/shell-integration.sh41 # Check if LaunchAgent is installedCOMMENT
LOW⚡benchmarks/adversarial_ccr_tests.py658 # Check if error items with unicode were preservedCOMMENT
LOW⚡benchmarks/adversarial_ccr_tests.py1505 # Check if we kept the TARGET itemCOMMENT
LOW⚡benchmarks/adversarial_ccr_tests.py1614 # Check if null-byte items were preserved (they have status=error)COMMENT
LOWbenchmarks/adversarial_ccr_tests.py332 # Check if anomaly was preservedCOMMENT
LOWbenchmarks/adversarial_ccr_tests.py618 # Check if our compression worked despite fake markersCOMMENT
LOWbenchmarks/adversarial_ccr_tests.py1001 # Check if the nested error was preservedCOMMENT
LOWbenchmarks/adversarial_ccr_tests.py1121 # Check if future timestamp was preservedCOMMENT
LOWbenchmarks/compression_benchmark.py537 # Check if most key terms appear in answerCOMMENT
LOWbenchmarks/run_benchmarks.py260 # Write fileCOMMENT
LOWbenchmarks/ccr_regression_benchmark.py150 # Check if ALL errors were retainedCOMMENT
LOWbenchmarks/ccr_regression_benchmark.py225 # Check if target UUID was foundCOMMENT
53 more matches not shown…
Self-Referential Comments44 hits · 138 pts
SeverityFileLineSnippetContext
MEDIUMcrates/headroom-core/config/pipeline.toml3# This file is embedded into the headroom-core binary via `include_str!`COMMENT
MEDIUMtests/test_security_validations.py109 # Create a memory with safe metadataCOMMENT
MEDIUM⚡tests/test_memory_system.py642 # Create a simple graph: e1 -> e2 -> e3COMMENT
MEDIUM⚡tests/test_memory_system.py802 # Create a chain longer than max_depthCOMMENT
MEDIUMtests/test_memory_system.py665 # Create a chain: e1 -> e2 -> e3 -> e4COMMENT
MEDIUMtests/test_memory_system.py1688 # Create a graph structureCOMMENT
MEDIUM⚡tests/test_cli_memory_index_sync.py347 # Create a non-empty vector DB file so the code doesn't short-circuit.COMMENT
MEDIUM⚡tests/test_image_compression.py256 # Create a simple test imageCOMMENT
MEDIUM⚡tests/test_image_compressor.py61 # Create a simple 100x100 red imageCOMMENT
MEDIUMtests/test_image_compressor.py74 # Create a 1024x1024 image with some patternCOMMENT
MEDIUMtests/test_critical_fixes.py110 # Create a signature using the correct factory methodCOMMENT
MEDIUMtests/test_critical_gaps.py69 # Create a patternCOMMENT
MEDIUMtests/test_toin_feedback.py249 # Create a minimal proxy to test the methodCOMMENT
MEDIUMtests/test_proxy_batch_integration.py77 # Create a list of items that will be compressibleCOMMENT
MEDIUM⚡tests/test_backend_bugs.py715 # Create an async iterator for the mock streaming responseCOMMENT
MEDIUMtests/test_acceptance.py16# Create a shared provider for testsCOMMENT
MEDIUMtests/repro_unsendable_panic.py41 # Create the parser on the main threadCOMMENT
MEDIUMtests/test_memory_tracker_integration.py414 # Create a component that reports large sizeCOMMENT
MEDIUMtests/test_memory_sync.py233 # Create an existing MEMORY.mdCOMMENT
MEDIUMtests/test_ccr_sqlite_backend.py110 # Create the target with a deliberately wider mode via umask (not anCOMMENT
MEDIUM⚡tests/test_adapter_hooks.py213 # Create a new TOIN instance with same backend — should load patternsCOMMENT
MEDIUMtests/test_cli_update.py332 # Create a fake .pyd fileCOMMENT
MEDIUMtests/test_proxy_streaming_resilience.py247 # Create a realistic HTTP 429 errorCOMMENT
MEDIUMtests/test_proxy_compress_endpoint.py216 # Create a large repetitive tool output that should be compressibleCOMMENT
MEDIUMtests/test_cache/test_client_integration.py294 # Create a spy optimizer to track callsCOMMENT
MEDIUMtests/test_cache/test_client_integration.py618 # Create a conversation that will trigger some optimizationCOMMENT
MEDIUMtests/test_integrations/langchain/test_chat_model.py1259 # Create a conversation with repetitive content that should be compressedCOMMENT
MEDIUM⚡tests/test_integrations/agno/test_model.py883 # Create a real OpenAIChat model (doesn't need API key for instantiation)COMMENT
MEDIUMtests/test_integrations/agno/test_model.py71 # Create a proper ModelResponse that Agno's response() can processCOMMENT
MEDIUMtests/test_memory/test_hierarchical.py344 # Create a chain: v1 -> v2 -> v3COMMENT
MEDIUMtests/test_memory/test_hierarchical.py594 # Create a supersession chainCOMMENT
MEDIUMtests/test_transforms/test_diff_compressor.py124 # Create a diff with many hunksCOMMENT
MEDIUMe2e/_lib/make_shim.sh2# Create a noop executable shim at $2/$1 suitable for use in PATH duringCOMMENT
MEDIUMheadroom/evals/batch_compression_eval.py738 # Create a long documentCOMMENT
MEDIUMheadroom/evals/runners/compression_only.py382 # Create a document with specific facts embeddedCOMMENT
MEDIUMheadroom/memory/backends/direct_mem0.py600 # Create the background taskSTRING
MEDIUMheadroom/memory/adapters/fts5.py419 # Create a minimal Memory object from FTS dataCOMMENT
MEDIUMheadroom/proxy/memory_handler.py244 # Create the directory owner-only (and narrow it if an earlier run leftCOMMENT
MEDIUMheadroom/cache/compression_store.py925 # Create a synthetic "success" event that we'll process laterCOMMENT
MEDIUMheadroom/backends/anyllm.py53 # Create the AnyLLM instance once and reuse. api_key/api_base are onlyCOMMENT
MEDIUMheadroom/integrations/asgi.py166 # Create a new receive that returns the (possibly modified) bodyCOMMENT
MEDIUMheadroom/integrations/strands/hooks.py10 # Create the hook providerSTRING
MEDIUMheadroom/transforms/content_router.py1434 # Create a deterministic structure hash based on content typeCOMMENT
MEDIUMheadroom/transforms/content_router.py2801 # Create a content-type signatureCOMMENT
Hallucination Indicators11 hits · 115 pts
SeverityFileLineSnippetContext
CRITICALtests/test_proxy_savings_history.py1432 client.app.state.proxy.metrics.savings_tracker.flush()CODE
CRITICALtests/test_openai_chat_turn_hooks.py207 logs = client.app.state.proxy.logger.get_recent(10)CODE
CRITICALtests/test_openai_chat_turn_hooks.py307 logs = client.app.state.proxy.logger.get_recent(5)CODE
CRITICALtests/test_compression/test_evals.py357 at com.example.app.client.InventoryClient.updateStock(InventoryClient.java:87)STRING
CRITICALtests/test_compression/test_evals.py358 at com.example.app.service.InventoryService.decrementStock(InventoryService.java:156)STRING
CRITICALtests/gateway/test_contract_response_half.py307 tracker = headroom_client.app.state.proxy.session_tracker_store.peek(CODE
CRITICALbenchmarks/headroom_worst_case_benchmark.py290 at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:897)CODE
CRITICAL⚡benchmarks/comprehensive_eval.py141 at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:82)CODE
CRITICAL⚡benchmarks/comprehensive_eval.py142 at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:376)CODE
CRITICAL⚡benchmarks/comprehensive_eval.py145 at org.apache.commons.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1421)CODE
CRITICALheadroom/memory/wrapper.py243 response = self._wrapper._client.chat.completions.create(**kwargs)CODE
Structural Annotation Overuse57 hits · 102 pts
SeverityFileLineSnippetContext
LOW⚡crates/headroom-core/tests/ccr_backends.rs136 // Step 1: same payload yields byte-equal keys.COMMENT
LOW⚡crates/headroom-core/tests/ccr_backends.rs139 // Step 2: store in sqlite, mirror to in-memory under the sameCOMMENT
LOW⚡tests/test_proxy_count_tokens_integration.py464 # Step 1: Count tokens with large contentSTRING
LOW⚡tests/test_proxy_count_tokens_integration.py470 # Step 2: Make countTokens requestSTRING
LOW⚡tests/test_proxy_count_tokens_integration.py479 # Step 3: Verify stats updatedSTRING
LOW⚡tests/test_proxy_count_tokens_integration.py483 # Step 4: Verify tokens saved is tracked (may be negative for small overhead)STRING
LOW⚡tests/test_proxy_batch_integration.py151 # Step 1: Create JSONL content with compressible messagesCOMMENT
LOWtests/test_proxy_batch_integration.py170 # Step 2: Upload the JSONL file directly to OpenAICOMMENT
LOWtests/test_proxy_batch_integration.py184 # Step 3: Create batch through proxy with compressionCOMMENT
LOWtests/test_proxy_batch_integration.py222 # Step 4: Cancel the batch to avoid costsCOMMENT
LOW⚡tests/test_proxy_ccr.py600 # Step 2: Retrieve through proxy endpoint (by hash → full content)COMMENT
LOW⚡tests/test_proxy_ccr.py610 # Step 3: Verify TOIN learnedCOMMENT
LOW⚡tests/test_proxy_ccr.py622 # Step 4: Verify field semantics were learnedCOMMENT
LOW⚡tests/test_proxy_ccr.py629 # Step 5: PR-B5 retired the request-time recommendation API in favor ofCOMMENT
LOWwiki/ARCHITECTURE.md312### Step 1: You call the APICOMMENT
LOWwiki/ARCHITECTURE.md327### Step 2: HeadroomClient interceptsCOMMENT
LOWwiki/ARCHITECTURE.md339### Step 3: Transform Pipeline runsCOMMENT
LOWwiki/ARCHITECTURE.md370### Step 4: Call real APICOMMENT
LOWwiki/ARCHITECTURE.md379### Step 5: Log metrics and returnCOMMENT
LOW⚡wiki/quickstart.md60### Step 1: Start the ProxyCOMMENT
LOW⚡wiki/quickstart.md66### Step 2: Verify It's RunningCOMMENT
LOW⚡wiki/quickstart.md73### Step 3: Point Your ClientCOMMENT
LOWwiki/quickstart.md90### Step 4: Check SavingsCOMMENT
LOWwiki/macos-deployment.md117### Step 1: Create Log DirectoryCOMMENT
LOWwiki/macos-deployment.md123### Step 2: Generate LaunchAgent PlistCOMMENT
LOWwiki/macos-deployment.md150### Step 3: Load the LaunchAgentCOMMENT
LOWwiki/macos-deployment.md156### Step 4: Verify ServiceCOMMENT
LOW⚡benchmarks/ccr_regression_benchmark.py642 # Step 1: CompressCOMMENT
LOW⚡benchmarks/ccr_regression_benchmark.py647 # Step 2: CacheCOMMENT
LOW⚡benchmarks/ccr_regression_benchmark.py656 # Step 3: Record compression in feedbackCOMMENT
LOW⚡benchmarks/ccr_regression_benchmark.py659 # Step 4: Retrieve and searchCOMMENT
LOW⚡benchmarks/ccr_regression_benchmark.py663 # Step 5: Process feedbackCOMMENT
LOW⚡benchmarks/scenarios/conversations.py502### Step 1: SetupCOMMENT
LOW⚡benchmarks/scenarios/conversations.py508### Step 2: ImplementationCOMMENT
LOWbenchmarks/scenarios/conversations.py523### Step 3: TestingCOMMENT
LOW⚡headroom/proxy/handlers/batch.py957 # Step 3: Create compressed JSONL contentCOMMENT
LOW⚡headroom/proxy/handlers/batch.py960 # Step 4: Upload compressed file to OpenAICOMMENT
LOWheadroom/proxy/handlers/batch.py923 # Step 1: Download the input file from OpenAICOMMENT
LOWheadroom/proxy/handlers/batch.py939 # Step 2: Parse and compress each lineCOMMENT
LOWheadroom/proxy/handlers/batch.py978 # Step 5: Create batch with compressed fileCOMMENT
LOW⚡headroom/cache/anthropic.py135 # Step 1: Analyze content sectionsCOMMENT
LOW⚡headroom/cache/anthropic.py138 # Step 2: Stabilize prefixCOMMENT
LOW⚡headroom/cache/anthropic.py144 # Step 3: Plan breakpoint placementCOMMENT
LOW⚡headroom/cache/anthropic.py148 # Step 4: Insert cache_control blocksCOMMENT
LOW⚡headroom/cache/anthropic.py153 # Step 5: Compute metricsCOMMENT
LOW⚡headroom/image/trained_router.py318 # Step 1: Classify query with trained modelCOMMENT
LOW⚡headroom/image/trained_router.py321 # Step 2: Analyze image with SigLIP (if enabled)COMMENT
LOW⚡headroom/image/trained_router.py327 # Step 3: Combine signals for final decisionCOMMENT
LOW⚡headroom/image/tile_optimizer.py60 # Step 1: scale so max dimension ≤ 2048COMMENT
LOW⚡headroom/image/tile_optimizer.py67 # Step 2: scale so shortest side ≤ 768COMMENT
LOW⚡headroom/image/tile_optimizer.py74 # Step 3: count 512×512 tilesCOMMENT
LOW⚡headroom/image/compressor.py723 # Step 2: ML-based technique routingCOMMENT
LOW⚡headroom/image/compressor.py771 # Step 3: Apply compression techniqueCOMMENT
LOWheadroom/image/compressor.py708 # Step 1: Tile-boundary optimization (always safe, pure math)COMMENT
LOW⚡headroom/telemetry/toin.py1626 # Step 1: Serialize under lock (fast in-memory operation)COMMENT
LOW⚡headroom/telemetry/toin.py1630 # Step 2: Write outside lock (slow I/O operation)COMMENT
LOW⚡headroom/telemetry/toin.py1634 # Step 3: Update state under lock (fast)COMMENT
Verbosity Indicators44 hits · 81 pts
SeverityFileLineSnippetContext
LOW⚡crates/headroom-core/tests/ccr_backends.rs136 // Step 1: same payload yields byte-equal keys.COMMENT
LOW⚡crates/headroom-core/tests/ccr_backends.rs139 // Step 2: store in sqlite, mirror to in-memory under the sameCOMMENT
LOW⚡tests/test_proxy_count_tokens_integration.py464 # Step 1: Count tokens with large contentSTRING
LOW⚡tests/test_proxy_count_tokens_integration.py470 # Step 2: Make countTokens requestSTRING
LOW⚡tests/test_proxy_count_tokens_integration.py479 # Step 3: Verify stats updatedSTRING
LOW⚡tests/test_proxy_count_tokens_integration.py483 # Step 4: Verify tokens saved is tracked (may be negative for small overhead)STRING
LOW⚡tests/test_proxy_batch_integration.py151 # Step 1: Create JSONL content with compressible messagesCOMMENT
LOWtests/test_proxy_batch_integration.py170 # Step 2: Upload the JSONL file directly to OpenAICOMMENT
LOWtests/test_proxy_batch_integration.py184 # Step 3: Create batch through proxy with compressionCOMMENT
LOWtests/test_proxy_batch_integration.py222 # Step 4: Cancel the batch to avoid costsCOMMENT
LOW⚡tests/test_proxy_ccr.py600 # Step 2: Retrieve through proxy endpoint (by hash → full content)COMMENT
LOW⚡tests/test_proxy_ccr.py610 # Step 3: Verify TOIN learnedCOMMENT
LOW⚡tests/test_proxy_ccr.py622 # Step 4: Verify field semantics were learnedCOMMENT
LOW⚡tests/test_proxy_ccr.py629 # Step 5: PR-B5 retired the request-time recommendation API in favor ofCOMMENT
LOW⚡benchmarks/ccr_regression_benchmark.py642 # Step 1: CompressCOMMENT
LOW⚡benchmarks/ccr_regression_benchmark.py647 # Step 2: CacheCOMMENT
LOW⚡benchmarks/ccr_regression_benchmark.py656 # Step 3: Record compression in feedbackCOMMENT
LOW⚡benchmarks/ccr_regression_benchmark.py659 # Step 4: Retrieve and searchCOMMENT
LOW⚡benchmarks/ccr_regression_benchmark.py663 # Step 5: Process feedbackCOMMENT
LOW⚡benchmarks/scenarios/conversations.py502### Step 1: SetupCOMMENT
LOW⚡benchmarks/scenarios/conversations.py508### Step 2: ImplementationCOMMENT
LOWbenchmarks/scenarios/conversations.py523### Step 3: TestingCOMMENT
LOW⚡headroom/proxy/handlers/batch.py957 # Step 3: Create compressed JSONL contentCOMMENT
LOW⚡headroom/proxy/handlers/batch.py960 # Step 4: Upload compressed file to OpenAICOMMENT
LOWheadroom/proxy/handlers/batch.py923 # Step 1: Download the input file from OpenAICOMMENT
LOWheadroom/proxy/handlers/batch.py939 # Step 2: Parse and compress each lineCOMMENT
LOWheadroom/proxy/handlers/batch.py978 # Step 5: Create batch with compressed fileCOMMENT
LOW⚡headroom/cache/anthropic.py135 # Step 1: Analyze content sectionsCOMMENT
LOW⚡headroom/cache/anthropic.py138 # Step 2: Stabilize prefixCOMMENT
LOW⚡headroom/cache/anthropic.py144 # Step 3: Plan breakpoint placementCOMMENT
LOW⚡headroom/cache/anthropic.py148 # Step 4: Insert cache_control blocksCOMMENT
LOW⚡headroom/cache/anthropic.py153 # Step 5: Compute metricsCOMMENT
LOW⚡headroom/image/trained_router.py318 # Step 1: Classify query with trained modelCOMMENT
LOW⚡headroom/image/trained_router.py321 # Step 2: Analyze image with SigLIP (if enabled)COMMENT
LOW⚡headroom/image/trained_router.py327 # Step 3: Combine signals for final decisionCOMMENT
LOW⚡headroom/image/tile_optimizer.py60 # Step 1: scale so max dimension ≤ 2048COMMENT
LOW⚡headroom/image/tile_optimizer.py67 # Step 2: scale so shortest side ≤ 768COMMENT
LOW⚡headroom/image/tile_optimizer.py74 # Step 3: count 512×512 tilesCOMMENT
LOW⚡headroom/image/compressor.py723 # Step 2: ML-based technique routingCOMMENT
LOW⚡headroom/image/compressor.py771 # Step 3: Apply compression techniqueCOMMENT
LOWheadroom/image/compressor.py708 # Step 1: Tile-boundary optimization (always safe, pure math)COMMENT
LOW⚡headroom/telemetry/toin.py1626 # Step 1: Serialize under lock (fast in-memory operation)COMMENT
LOW⚡headroom/telemetry/toin.py1630 # Step 2: Write outside lock (slow I/O operation)COMMENT
LOW⚡headroom/telemetry/toin.py1634 # Step 3: Update state under lock (fast)COMMENT
Magic Placeholder Names10 hits · 48 pts
SeverityFileLineSnippetContext
HIGHtests/test_transforms/test_html_extractor.py466 <pre><code>Authorization: Bearer YOUR_API_KEY</code></pre>CODE
HIGHwiki/typescript-sdk.md61 apiKey: 'your-api-key', // optional, for authenticated endpointsCODE
HIGHwiki/typescript-sdk.md94 apiKey: 'your-api-key',CODE
HIGHwiki/configuration.md503export HEADROOM_API_KEY=your-api-keyCODE
HIGHwiki/configuration.md515 apiKey: 'your-api-key',CODE
HIGHwiki/proxy.md377 api_key="your-api-key", # Still needed for upstreamCODE
HIGHsdk/typescript/README.md371 apiKey: 'your-api-key', // optional, for authenticated endpointsCODE
HIGHbenchmarks/scenarios/conversations.py542Authorization: Bearer <your-api-key>CODE
HIGHheadroom/evals/html_extraction.py561 <pre><code>Authorization: Bearer YOUR_API_KEY</code></pre>CODE
HIGHheadroom/providers/google.py14 genai.configure(api_key="your-api-key")STRING
Fake / Example Data44 hits · 40 pts
SeverityFileLineSnippetContext
LOWcrates/headroom-core/tests/live_zone_ccr.rs27 "notes": "lorem ipsum dolor sit amet, consectetur adipiscing elit",CODE
LOWcrates/headroom-core/tests/live_zone_ccr.rs27 "notes": "lorem ipsum dolor sit amet, consectetur adipiscing elit",CODE
LOW…/headroom-core/src/transforms/smart_crusher/anchors.rs295 assert!(anchors.contains("user@example.com"));CODE
LOW…-proxy/tests/integration_e3_anthropic_cache_control.rs84 .header("x-api-key", "sk-ant-api01-fake-key")CODE
LOW…-proxy/tests/integration_e3_anthropic_cache_control.rs174 .header("x-api-key", "sk-ant-api01-fake-key")CODE
LOW…-proxy/tests/integration_e3_anthropic_cache_control.rs278 .header("x-api-key", "sk-ant-api01-fake-key")CODE
LOW…-proxy/tests/integration_e3_anthropic_cache_control.rs374 .header("x-api-key", "sk-ant-api01-fake-key")CODE
LOW⚡tests/test_memory_system.py1424 entities=["Alice", "Acme Corp"],CODE
LOW⚡tests/test_memory_system.py1428 assert "Acme Corp" in memory.entity_refsCODE
LOW⚡tests/test_memory_system.py1433 acme_entity = await graph.get_entity_by_name("alice", "Acme Corp")CODE
LOW⚡tests/test_memory_system.py1445 entities=["Alice", "Acme Corp"],CODE
LOW⚡tests/test_memory_system.py1446 relationships=[{"source": "Alice", "target": "Acme Corp", "type": "works_at"}],CODE
LOW⚡tests/test_cli_memory_index_sync.py349 vector_db.write_bytes(b"placeholder")CODE
LOW⚡tests/test_cli_memory_index_sync.py383 vector_db.write_bytes(b"placeholder")CODE
LOW⚡tests/test_memory_integration.py412 entities=["Alice", "Acme Corp"],CODE
LOW⚡tests/test_memory_integration.py415 {"entity": "Acme Corp", "entity_type": "organization"},CODE
LOW⚡tests/test_memory_integration.py421 "destination": "Acme Corp",CODE
LOW⚡tests/test_memory_integration.py430 entities=["Acme Corp", "San Francisco"],CODE
LOW⚡tests/test_memory_integration.py432 {"entity": "Acme Corp", "entity_type": "organization"},CODE
LOWtests/test_gemini_prefix_freeze.py59 return f"{tag} " + "lorem ipsum dolor sit amet " * 40CODE
LOWtests/test_gemini_prefix_freeze.py59 return f"{tag} " + "lorem ipsum dolor sit amet " * 40CODE
LOWtests/test_quality_retention.py325 "snippet": "Lorem ipsum " * 20,CODE
LOW⚡tests/test_backend_bugs.py876 "x-api-key": "sk-ant-dummy-key",CODE
LOW⚡tests/test_backend_bugs.py877 "authorization": "Bearer sk-ant-dummy-key",CODE
LOWtests/parity/recorder.py599 "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",STRING
LOWtests/parity/recorder.py599 "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",STRING
LOWtests/test_cli/test_mcp_reconcile.py23 "oauthAccount": {"email": "user@example.com"},CODE
LOWtests/test_cli/test_mcp_reconcile.py79 assert data["oauthAccount"] == {"email": "user@example.com"}CODE
LOWtests/test_transforms/test_html_extractor.py218 <meta name="author" content="John Doe">CODE
LOW⚡tests/test_providers/test_openai.py44 large = "lorem ipsum dolor sit amet consectetur adipiscing elit " * 8 # > 256 charsCODE
LOW⚡tests/test_providers/test_openai.py44 large = "lorem ipsum dolor sit amet consectetur adipiscing elit " * 8 # > 256 charsCODE
LOWtests/test_compression/test_llm_eval.py201 email="admin@example.com",CODE
LOWwiki/langchain.md555 ("placeholder", "{agent_scratchpad}"),CODE
LOWexamples/mcp_demo/run_agent_eval.py180 "email": "test@test.com",CODE
LOWexamples/mcp_demo/mock_mcp_servers.py179 "body": "Lorem ipsum dolor sit amet..." if random.random() > 0.5 else "",CODE
LOWexamples/mcp_demo/mock_mcp_servers.py179 "body": "Lorem ipsum dolor sit amet..." if random.random() > 0.5 else "",CODE
LOW⚡scripts/replay_codex_ws_load.py126 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. "CODE
LOW⚡scripts/replay_codex_ws_load.py126 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. "CODE
LOWscripts/replay_codex_ws_load.py154 # plain_text_like / unknown / jsonl_like → lorem ipsum is fine as aCOMMENT
LOWheadroom/evals/datasets.py1119 "name": "Acme Corp",CODE
LOWheadroom/memory/tools.py326 Example: [{"source": "user", "relationship": "works_at", "destination": "Acme Corp"}]CODE
LOWheadroom/memory/backends/local.py98 entities=["Alice", "Acme Corp"],STRING
LOWheadroom/memory/backends/local.py99 relationships=[{"source": "Alice", "target": "Acme Corp", "type": "works_at"}],STRING
LOWheadroom/dashboard/static/tailwind.min.js27`),v=y.length-1,v>0?(k=a+v,S=w-y[v].length):(k=a,S=s),T=D.comment,a=k,p=k,d=w-S):c===D.slash?(w=o,T=c,p=a,d=o-s,l=w+1):(CODE
AI Structural Patterns39 hits · 28 pts
SeverityFileLineSnippetContext
LOWplugins/headroom-oauth2/src/headroom_oauth2/provider.py42CODE
LOWtests/test_memory_system.py898CODE
LOWtests/test_proxy_compression_executor.py135CODE
LOWtests/test_router_external_dispatch.py110CODE
LOWtests/gateway/fake_gateway.py178CODE
LOWheadroom/savings_ledger.py257CODE
LOWheadroom/pipeline.py241CODE
LOWheadroom/memory/core.py131CODE
LOWheadroom/memory/easy.py109CODE
LOWheadroom/memory/backends/direct_mem0.py544CODE
LOWheadroom/memory/backends/local.py231CODE
LOWheadroom/memory/adapters/embedders.py156CODE
LOWheadroom/memory/adapters/hnsw.py227CODE
LOWheadroom/proxy/savings_tracker.py488CODE
LOWheadroom/proxy/savings_tracker.py1059CODE
LOWheadroom/proxy/server.py2516CODE
LOWheadroom/proxy/prometheus_metrics.py837CODE
LOWheadroom/proxy/outcome.py306CODE
LOWheadroom/proxy/persistent_metrics.py389CODE
LOWheadroom/proxy/cost.py1021CODE
LOWheadroom/proxy/helpers.py164CODE
LOWheadroom/proxy/handlers/streaming.py760CODE
LOWheadroom/proxy/handlers/streaming.py1018CODE
LOWheadroom/cache/semantic.py426CODE
LOWheadroom/cache/compression_store.py287CODE
LOWheadroom/cli/install.py567CODE
LOWheadroom/cli/wrap.py698CODE
LOWheadroom/cli/wrap.py4720CODE
LOWheadroom/cli/wrap.py5438CODE
LOWheadroom/observability/metrics.py445CODE
LOWheadroom/testing/harness.py744CODE
LOWheadroom/testing/harness.py880CODE
LOWheadroom/testing/harness.py1020CODE
LOWheadroom/testing/harness.py1216CODE
LOWheadroom/transforms/smart_crusher.py280CODE
LOWheadroom/transforms/kompress_compressor.py1754CODE
LOWheadroom/transforms/kompress_compressor.py2098CODE
LOWheadroom/transforms/content_router.py7178CODE
LOWheadroom/telemetry/collector.py101CODE
Overly Generic Function Names16 hits · 16 pts
SeverityFileLineSnippetContext
LOW⚡tests/test_search_compressor.py64src/main.py:42:def process_data(items):CODE
LOW⚡tests/test_search_compressor.py289 content = """src/main.py:10:def process_data():CODE
LOWtests/test_search_compressor.py50 content = """src/main.py:42:def process_data(items):CODE
LOWtests/test_search_compressor.py89C:\\Users\\dev\\src\\utils.py:20:def helper():CODE
LOW⚡tests/test_ccr_rust_marker_hash_bridge.py65 original = "src/app.py:12: def handle_request(payload):\n" * 40CODE
LOW⚡tests/test_transforms_content_detection.py279 "src/main.py:42:def process_data(items):",CODE
LOWtests/test_mixed_content_sections.py64 "src/main.py:42:def process_data(items):",CODE
LOWtests/test_mixed_content_sections.py84 assert "src/main.py:42:def process_data(items):" in sections[1].contentCODE
LOWtests/test_compression_summary.py23 ("function handleRequest(req, res) {", " res.send('ok');", 5),CODE
LOW⚡tests/test_text_compressors.py36 content = """src/main.py:42:def process_data(items):CODE
LOWtests/test_text_compressors.py90def process_data(items: list[dict]) -> dict[str, Any]:CODE
LOWtests/parity/recorder.py1052 "export function processData(items) {\n"CODE
LOWtests/test_transforms/test_content_router.py97 lines.append(f"src/module{i}.py:42: def process_data(input: str) -> str:")CODE
LOWheadroom/evals/batch_compression_eval.py717function processData(items) {CODE
LOWheadroom/transforms/code_compressor.py1013 ... def process_data(items: List[str]) -> List[str]:STRING
LOWheadroom/transforms/code_compressor.py1029 def process_data(items: List[str]) -> List[str]:STRING
Dead Code7 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_request_body_decompression_limits.py111CODE
MEDIUMtests/test_route_advice.py189CODE
MEDIUMtests/test_route_advice.py194CODE
MEDIUMtests/test_litellm_transport_errors.py159CODE
MEDIUMtests/test_bedrock_region.py612CODE
MEDIUMtests/test_integrations/langchain/test_streaming.py618CODE
MEDIUMheadroom/backends/base.py165CODE
Cross-Language Confusion (JS/TS)1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHsdk/typescript/test/parity.test.ts73print(json.dumps({CODE
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM.serena/project.yml30# Same syntax as gitignore, so you can use * and **.COMMENT
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWtests/test_proxy_count_tokens_integration.py300# Example usageCOMMENT
LOW…ples/deployment/macos-launchagent/shell-integration.sh8# Usage:COMMENT