AI Slop Code Risk Monitor

yvgude/lean-ctx

SlopCodeMonitor badge for yvgude/lean-ctx Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

LeanCTX is the Context Gateway for AI Systems. Select task-relevant context, apply supported controls, connect local knowledge and inspect recorded evidence. Open-source Engine: CLI, MCP, hooks and supported proxy paths.

3.7 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for yvgude/lean-ctx, a Rust project with 3,917 GitHub stars. SynthScan examined 1,226,748 lines of code across 3559 source files, recording 3209 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 3.7 (Low pattern signal); it is not an authorship estimate.

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

3.7
Adjusted Signal
3.7
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
3.9K
Stars
Rust
Language
1.2M
Lines of Code
3.6K
Files
3.2K
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

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

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

Cognitive Ownership Risk 10.8/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.6/100 · LOW

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

Agent Over-Engineering Ratio 8.7/100 · LOW

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

PR Review Velocity Impact 16.6/100 · LOW

Which changes need focused human review? 3209 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 2HIGH 13MEDIUM 574LOW 2620

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 3209 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

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

Over-Commented Block1710 hits · 1697 pts
SeverityFileLineSnippetContext
LOWinstall.sh1#!/bin/shCOMMENT
LOWinstall.sh21# downloaded, has no entry for the archive, no sha256sum/shasum tool exists, orCOMMENT
LOWPUBLISH_MANIFEST.toml1# Positive selection of the public Community tree (scripts/public-export.py).COMMENT
LOWclients/rust/lean-ctx-client/src/types.rs1//! Wire types for the lean-ctx `/v1` contract.COMMENT
LOWclients/rust/lean-ctx-client/src/types.rs61 /// Serialized tool arguments.COMMENT
LOWclients/rust/lean-ctx-client/src/types.rs101 /// Page size requested.COMMENT
LOWclients/rust/lean-ctx-client/src/types.rs121 /// Monotonic event id within the workspace/channel stream.COMMENT
LOWclients/rust/lean-ctx-client/src/ocla.rs21pub const MAX_OCLA_WIRE_BYTES: usize = 64 * 1024;COMMENT
LOWclients/rust/lean-ctx-client/src/ocla.rs41 /// Supported version.COMMENT
LOWclients/rust/lean-ctx-client/src/ocla.rs81#[derive(Clone, Copy, Debug, Eq, PartialEq, Serialize, Deserialize)]COMMENT
LOWclients/rust/lean-ctx-client/src/client.rs321 /// # ErrorsCOMMENT
LOWclients/rust/lean-ctx-client/src/error.rs1//! Error types for the lean-ctx client.COMMENT
LOWclients/rust/lean-ctx-client/src/lib.rs1//! # lean-ctx-clientCOMMENT
LOWclients/rust/lean-ctx-client/src/lib.rs21//! // Call any tool over the boundary and read its text.COMMENT
LOWclients/rust/lean-ctx-client/src/lib.rs41//! `GET /v1/events/lineage`, `GET /v1/metrics`COMMENT
LOWclients/rust/lean-ctx-client/src/lib.rs61//!COMMENT
LOWclients/rust/lean-ctx-client/src/conformance.rs1//! Shared SDK conformance kit (EPIC 12.5, industrialized in GL #395).COMMENT
LOWclients/rust/lean-ctx-client/src/tool_text.rs1//! Flatten an MCP tool result into plain text.COMMENT
LOWrust/Cargo.toml281# Upstream WebSocket client for the Codex ChatGPT remote-control passthroughCOMMENT
LOWrust/proptest-regressions/core/science_props.txt1# Seeds for failure cases proptest has generated in the past. It isCOMMENT
LOWrust/.config/nextest.toml1experimental = ["setup-scripts"]COMMENT
LOWrust/.config/nextest-tmpdir.sh1#!/usr/bin/env bashCOMMENT
LOWrust/crates/lean-ctx-ocla/src/types.rs601 /// [INTERNAL] Maximum number of samples before stopping.COMMENT
LOWrust/crates/lean-ctx-ocla/src/types.rs701 /// [PII] Agent identifier.COMMENT
LOWrust/crates/lean-ctx-ocla/src/types.rs721pub struct DeliveryEntry {COMMENT
LOWrust/crates/lean-ctx-ocla/src/types.rs761 /// [INTERNAL] Stub-delivery count.COMMENT
LOWrust/crates/lean-ctx-embed/tests/engine_read.rs1//! Acceptance tests for the embedding [`Engine`] — exercises the real toolCOMMENT
LOWrust/crates/lean-ctx-embed/src/error.rs1//! The SDK's own error type.COMMENT
LOWrust/crates/lean-ctx-embed/src/error.rs21 /// The engine could not be constructed (e.g. the project root does notCOMMENT
LOWrust/crates/lean-ctx-embed/src/lib.rs1//! # lean-ctx-embed — in-process embedding façade (Track A)COMMENT
LOWrust/crates/lean-ctx-embed/src/lib.rs21//! assert!(again.saved_tokens >= first.saved_tokens);COMMENT
LOWrust/crates/lean-ctx-embed/src/read.rs1//! Read-mode selection — the SDK's stable mirror of the engine's `ctx_read`COMMENT
LOWrust/crates/lean-ctx-embed/src/compress.rs1//! Shell/tool output compression — the same pattern engine the proxy andCOMMENT
LOWrust/crates/lean-ctx-embed/src/engine.rs1//! The embedding [`Engine`] — a safe, ergonomic handle over the lean-ctxCOMMENT
LOWrust/crates/lean-ctx-embed/src/engine.rs21//! [`EngineBuilder::build`] is read-mostly and scoped:COMMENT
LOWrust/crates/lean-ctx-embed/src/engine.rs261COMMENT
LOWrust/crates/lean-ctx-protocol/tests/k2_review_schema.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWrust/crates/lean-ctx-protocol/src/context_checkpoint.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOW…t/crates/lean-ctx-protocol/src/engine_presented_use.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWrust/crates/lean-ctx-protocol/src/context_lineage.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWrust/crates/lean-ctx-protocol/src/knowledge_routing.rs1//! Frozen compatibility contracts for historical knowledge routing.COMMENT
LOWrust/crates/lean-ctx-protocol/src/auto_routing.rs1//! Public `model=auto` wire contracts.COMMENT
LOW…rates/lean-ctx-protocol/src/context_policy_evidence.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOW…rates/lean-ctx-protocol/src/context_policy_evidence.rs181 pub observed_day: u64,COMMENT
LOW…rates/lean-ctx-protocol/src/context_policy_evidence.rs301COMMENT
LOWrust/crates/lean-ctx-protocol/src/context_gateway.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWrust/crates/lean-ctx-protocol/src/context_gateway.rs901 pub delivered: u64,COMMENT
LOWrust/crates/lean-ctx-protocol/src/context_gateway.rs961/// withheld and why, what reached which destination under which policy.COMMENT
LOW…-ctx-protocol/src/engine_context_materialization_v2.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOW…st/crates/lean-ctx-protocol/src/org_policy_verifier.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOW…es/lean-ctx-protocol/src/context_checkpoint_unicode.rs261 /// Decisions taken, sorted by decision identity.COMMENT
LOWrust/crates/lean-ctx-protocol/src/hive/sealed.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWrust/crates/lean-ctx-protocol/src/hive/sealed.rs41/// key, HKDF-SHA256 (salt = ephemeral_pub || recipient_pub, info =COMMENT
LOWrust/crates/lean-ctx-protocol/src/hive/telemetry.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWrust/crates/lean-ctx-protocol/src/hive/policy.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWrust/crates/lean-ctx-protocol/src/hive/policy.rs21//! own key, and only this list binds them to the organization's signature.COMMENT
LOW…/crates/lean-ctx-protocol/src/hive/effective_policy.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOW…/crates/lean-ctx-protocol/src/hive/effective_policy.rs21//! distributed and shown only. The ack's `unenforced` reports what isCOMMENT
LOW…/crates/lean-ctx-protocol/src/hive/effective_policy.rs221 #[serde(flatten)]COMMENT
LOWrust/crates/lean-ctx-protocol/src/hive/graph.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
1650 more matches not shown…
Decorative Section Separators497 hits · 1478 pts
SeverityFileLineSnippetContext
MEDIUMrust/crates/lean-ctx-protocol/tests/k2_review_schema.rs34// ── a minimal JSON-schema member walker ──────────────────────────────────────COMMENT
MEDIUMrust/crates/lean-ctx-protocol/tests/k2_review_schema.rs291// ── content shapes ───────────────────────────────────────────────────────────COMMENT
MEDIUM…/crates/lean-ctx-protocol/src/context_gateway_tests.rs149// ─── Classification ─────────────────────────────────────────────────────────COMMENT
MEDIUM…/crates/lean-ctx-protocol/src/context_gateway_tests.rs224// ─── Principal and destination ──────────────────────────────────────────────COMMENT
MEDIUM…/crates/lean-ctx-protocol/src/context_gateway_tests.rs256// ─── Reason codes, coverage, signals ────────────────────────────────────────COMMENT
MEDIUM…/crates/lean-ctx-protocol/src/context_gateway_tests.rs314// ─── Decisions ──────────────────────────────────────────────────────────────COMMENT
MEDIUM…/crates/lean-ctx-protocol/src/context_gateway_tests.rs342// ─── Passport derivation ────────────────────────────────────────────────────COMMENT
MEDIUM…/crates/lean-ctx-protocol/src/context_gateway_tests.rs430// ─── Receipt ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…/crates/lean-ctx-protocol/src/context_gateway_tests.rs681// ─── Context quality section ────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/lean-ctx-protocol/src/context_gateway.rs38// ─── Classification ─────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/lean-ctx-protocol/src/context_gateway.rs147// ─── Principal and destination ──────────────────────────────────────────────COMMENT
MEDIUMrust/crates/lean-ctx-protocol/src/context_gateway.rs279// ─── Reason codes and policy references ─────────────────────────────────────COMMENT
MEDIUMrust/crates/lean-ctx-protocol/src/context_gateway.rs325// ─── Detector signals ───────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/lean-ctx-protocol/src/context_gateway.rs492// ─── Decisions and transformations ──────────────────────────────────────────COMMENT
MEDIUMrust/crates/lean-ctx-protocol/src/context_gateway.rs583// ─── Passport ───────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/lean-ctx-protocol/src/context_gateway.rs732// ─── Context quality section ────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/lean-ctx-protocol/src/context_gateway.rs868// ─── Receipt ────────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/lean-ctx-protocol/src/hive/metrics_v2.rs411// ── closed-pattern strings ───────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/lean-ctx-protocol/src/hive/metrics_v2.rs713// ── closed enums ─────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/lean-ctx-protocol/src/hive/metrics_v2.rs831// ── wire structs ─────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/crates/lean-ctx-protocol/src/hive/metrics_v2.rs1090// ── checks ───────────────────────────────────────────────────────────────────COMMENT
MEDIUM⚡rust/tests/ticket_fixes_scenarios.rs737// ──────────────────────────────────────────────────────────COMMENT
MEDIUM⚡rust/tests/ticket_fixes_scenarios.rs739// ──────────────────────────────────────────────────────────COMMENT
MEDIUM⚡rust/tests/ticket_fixes_scenarios.rs748// ──────────────────────────────────────────────────────────COMMENT
MEDIUM⚡rust/tests/ticket_fixes_scenarios.rs750// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs17// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs21// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs129// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs131// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs150// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs154// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs222// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs225// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs247// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs251// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs319// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs323// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs389// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs394// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs462// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs466// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs497// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs502// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs538// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs542// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs565// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs567// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs584// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs588// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs643// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs645// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs685// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/ticket_fixes_scenarios.rs687// ──────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/outcome_pricing_e2e.rs78 // ── 1 + 2. Real compression → measured savings → signed hash chain ────────COMMENT
MEDIUMrust/tests/outcome_pricing_e2e.rs107 // ── 3. Signed batch + OFFLINE verification + tamper check ─────────────────COMMENT
MEDIUMrust/tests/outcome_pricing_e2e.rs132 // ── 5. FOCUS FinOps export — savings as a Credit row ──────────────────────COMMENT
MEDIUMrust/tests/outcome_pricing_e2e.rs148 // ── teardown ──────────────────────────────────────────────────────────────COMMENT
MEDIUMrust/tests/power_user_worksession.rs98// ── Phase 1: Setup & Orientation ───────────────────────────COMMENT
MEDIUMrust/tests/power_user_worksession.rs157// ── Phase 2: Codebase Research (Read Modes) ────────────────COMMENT
MEDIUMrust/tests/power_user_worksession.rs352// ── Phase 3: Code Search ───────────────────────────────────COMMENT
437 more matches not shown…
Hyper-Verbose Identifiers614 hits · 686 pts
SeverityFileLineSnippetContext
LOWtests/test_license_policy.py20 def test_cli_uses_the_canonical_classification_result(self):CODE
LOW⚡tests/test_license_policy.py32 def test_canonical_matrix_option_is_retained(self):CODE
LOW⚡tests/test_license_policy.py36 def test_external_matrix_cannot_replace_the_grant_authority(self):CODE
LOW⚡tests/test_license_policy.py44 def test_missing_repository_fails_without_traceback(self):CODE
LOW⚡tests/security/test_verify_release_integrity.py60 def test_valid_manifest_and_artifacts_verify(self):CODE
LOW⚡tests/security/test_verify_release_integrity.py65 def test_manifest_schema_validation_rejects_unknown_field(self):CODE
LOW⚡tests/security/test_verify_release_integrity.py71 def test_artifact_digest_mismatch_fails(self):CODE
LOW⚡tests/security/test_verify_release_integrity.py77 def test_payload_digest_mismatch_fails(self):CODE
LOW⚡tests/security/test_verify_release_integrity.py85 def test_outer_symlink_artifact_fails_closed(self):CODE
LOW⚡tests/security/test_verify_release_integrity.py93 def test_source_suffix_masquerade_requires_payload_digest(self):CODE
LOW⚡tests/security/test_verify_release_integrity.py101 def test_checksum_parser_handles_gnu_format_and_rejects_paths(self):CODE
LOW⚡tests/security/test_verify_release_integrity.py111 def test_sbom_parser_accepts_cyclonedx_and_rejects_empty_components(self):CODE
LOW⚡tests/security/test_verify_release_integrity.py117 def test_download_uses_http_and_fetches_checksum_listed_artifacts(self):CODE
LOWtests/security/test_verify_release_integrity.py137 def test_download_replaces_symlink_without_writing_its_target(self):CODE
LOW…s/security/test_ci_protocol_surface_freeze_workflow.py10 def test_gate_is_mandatory_in_delivery_security_job(self):CODE
LOWtests/security/test_private_paths.py28 def test_current_repository_passes(self):STRING
LOWtests/security/test_private_paths.py31 def test_a_tracked_denied_file_fails_even_if_it_predates_the_rule(self):STRING
LOW⚡tests/security/test_private_paths.py42 def test_an_internal_gitignore_entry_missing_from_the_deny_list_fails(self):STRING
LOW⚡tests/security/test_private_paths.py52 def test_other_sections_and_lookalike_paths_are_not_flagged(self):STRING
LOW⚡tests/security/test_private_paths.py60 def test_paid_detection_content_in_a_public_path_fails(self):STRING
LOW⚡tests/security/test_open_core_boundary.py55 def test_fixture_tree_passes_and_approved_local_import_is_not_private(self):CODE
LOW⚡tests/security/test_open_core_boundary.py60 def test_missing_manifest_fails_closed(self):CODE
LOW⚡tests/security/test_open_core_boundary.py66 def test_malformed_manifest_fails_closed(self):CODE
LOW⚡tests/security/test_open_core_boundary.py71 def test_manifest_metadata_drift_fails_closed(self):CODE
LOW⚡tests/security/test_open_core_boundary.py77 def test_manifest_rejects_invalid_module_digest(self):CODE
LOW⚡tests/security/test_open_core_boundary.py83 def test_public_module_root_drift_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py89 def test_root_reexport_drift_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py96 def test_new_export_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py102 def test_existing_public_wire_shape_drift_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py135 def test_same_crate_root_symbol_import_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py142 def test_same_crate_module_symbol_import_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py149 def test_fully_qualified_root_symbol_reference_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py156 def test_external_fully_qualified_root_symbol_reference_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py163 def test_external_root_symbol_import_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py170 def test_relevant_glob_imports_are_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py252 def test_unicode_alias_consumer_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py262 def test_alias_chain_consumer_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py272 def test_parent_module_and_glob_consumers_are_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py295 def test_rooted_alias_glob_consumer_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py304 def test_unicode_intermediate_and_grouped_paths_are_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py314 def test_combining_mark_alias_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py336 def test_crate_alias_root_symbol_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py345 def test_super_glob_bare_root_symbol_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py354 def test_visible_super_glob_variants_are_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py402 def test_unicode_xid_alias_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py412 def test_grouped_raw_root_symbol_after_sibling_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py419 def test_macro_surface_metavariable_is_resolved_at_its_invocation(self):CODE
LOW⚡tests/security/test_open_core_boundary.py427 def test_uninvoked_and_unrelated_macros_are_not_consumers(self):CODE
LOW⚡tests/security/test_open_core_boundary.py467 def test_extern_self_alias_in_protocol_crate_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py474 def test_self_and_super_root_symbol_references_are_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py482 def test_nested_surface_import_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py489 def test_nested_grouped_and_spaced_surface_paths_are_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py497 def test_raw_identifier_surface_reference_is_rejected(self):CODE
LOW⚡tests/security/test_open_core_boundary.py504 def test_comments_and_literals_are_not_consumers(self):CODE
LOW⚡tests/security/test_open_core_boundary.py514 def test_unrelated_surface_names_and_unused_crate_alias_are_not_consumers(self):CODE
LOW⚡tests/security/test_open_core_boundary.py529 def test_identifier_suffixes_do_not_match_private_namespaces(self):CODE
LOW⚡tests/security/test_open_core_boundary.py539 def test_private_and_protocol_prefixes_are_not_namespace_matches(self):CODE
LOW⚡tests/security/test_open_core_boundary.py549 def test_combining_mark_suffixes_preserve_identifier_boundaries(self):CODE
LOW⚡tests/security/test_open_core_boundary.py701 def test_source_entry_bound_fails_closed(self):CODE
LOW⚡tests/security/test_open_core_boundary.py710 def test_oversized_source_fails_closed(self):CODE
554 more matches not shown…
Modern AI Meta-Vocabulary38 hits · 111 pts
SeverityFileLineSnippetContext
MEDIUMllms.txt22- [Where LeanCTX fits](https://github.com/yvgude/lean-ctx/blob/main/docs/where-leanctx-fits.md): RAG, vector stores, modCODE
MEDIUMrust/src/core/jsonc.rs12/// "config is corrupt" and scaffold a fresh one over the user's file (#1586).COMMENT
MEDIUMrust/src/core/shell_allowlist/self_config.rs2//! Agent shells must not loosen lean-ctx's own guardrails.COMMENT
MEDIUMrust/src/core/input_filters/mod.rs5//! - [`pii`] — email, phone and payment cards (checksum guardrails againstCOMMENT
MEDIUMrust/src/core/input_filters/pii.rs1//! PII detection with checksum guardrails (GL #675).COMMENT
MEDIUMrust/src/core/extractive/tests.rs147/// `#[ignore]`d (needs the embedding model + is slow); reproduce with:COMMENT
MEDIUMrust/src/core/extractive/tests.rs152#[ignore = "benchmark; needs the embedding model; run with --ignored --nocapture"]COMMENT
MEDIUMrust/src/proxy/compress_tests.rs491/// shape, the CCR agentic loop silently stops firing — this test failsCOMMENT
MEDIUMrust/src/proxy/compress.rs174/// remote gateway whose agentic loop scans for `hash=<24hex>` (#702).COMMENT
MEDIUMrust/src/proxy/compress_api.rs9//! guardrail resolves through `GET /v1/retrieve/{hash}` — the CCR agentic loopCOMMENT
MEDIUMrust/src/proxy/compress_api.rs438 /// guardrail's CCR agentic loop.COMMENT
MEDIUMrust/src/shell/agent_wrapper.rs18//! The leading scaffold (`source`/`shopt`/`setopt`) and any `< /dev/null` areCOMMENT
MEDIUMrust/src/shell/agent_wrapper.rs41//! requires `eval` AND host scaffold markers (`setopt NO_EXTENDED_GLOB` /COMMENT
MEDIUMrust/src/shell/agent_wrapper.rs130 // Requires BOTH host scaffold markers AND trailing bare pwd.COMMENT
MEDIUMrust/src/shell/agent_wrapper.rs131 // A model-chosen `eval 'x' && pwd` without scaffold stays blocked.COMMENT
MEDIUMrust/src/shell/agent_wrapper.rs490/// True when the command prefix (before any `eval`) contains agent-host scaffoldCOMMENT
MEDIUMrust/src/shell/agent_wrapper.rs720 /// `source <snapshot> … && shopt … &&` scaffold must be scanned past so theCOMMENT
MEDIUMrust/src/shell/agent_wrapper.rs721 /// inner command is still found and the scaffold dropped.COMMENT
MEDIUMrust/src/shell/agent_wrapper.rs782 /// SECURITY: `eval 'payload' && pwd` without host scaffold must NOT unwrap.COMMENT
MEDIUMrust/src/shell/exec/execution.rs357 // #595: when the agent wraps its command in host scaffoldingCOMMENT
MEDIUMrust/src/cli/embeddings_cmd.rs42/// #1887: whether the selected embedding model is on disk, and where.COMMENT
MEDIUMrust/src/cli/dispatch/network/provider.rs112/// Writes the scaffold for `args` and returns its path.COMMENT
MEDIUMrust/src/cli/dispatch/network/provider.rs163/// `provider init <id>` — scaffold a config-provider TOML in the project-localCOMMENT
MEDIUMrust/src/dashboard/routes/system.rs53 // Protection area (GL #487): the OWASP agentic-risk alignment thatCOMMENT
MEDIUMrust/src/dashboard/routes/system.rs53 // Protection area (GL #487): the OWASP agentic-risk alignment thatCOMMENT
MEDIUMrust/src/hooks/agents/opencode.rs7/// never replaced with a fresh lean-ctx-only scaffold. Starting from an emptyCOMMENT
MEDIUMrust/src/hooks/agents/opencode.rs168 // is left alone, never overwritten with a fresh scaffold.COMMENT
MEDIUMrust/src/hooks/agents/opencode.rs799 // rejection used to be read as "corrupt, scaffold a fresh one".COMMENT
MEDIUMcookbook/sdk/README.md57## Historical conformance scaffoldingCOMMENT
MEDIUMdocs/user-journeys.md28### Act I — Govern & scale the context windowCOMMENT
MEDIUMdocs/user-journeys.md133## Journey 2 — "One `grep` blew up my context window" → Context FirewallCOMMENT
MEDIUMdocs/architecture/ADR-v4-via-resolution.md409### VIA as a second orchestration or control planeCOMMENT
MEDIUMdocs/reference/10-customization-and-governance.md174lean-ctx filter init # scaffold a filter configCODE
MEDIUMdocs/reference/05-advanced.md643lean-ctx plugin init # scaffold a new pluginCODE
MEDIUMintegrations/hermes-lean-ctx/config.py21# Sensible default context window when the host has not called update_model().COMMENT
MEDIUMintegrations/hermes-lean-ctx/config.py75 # Fraction of the context window at which compaction fires.COMMENT
MEDIUM.github/workflows/ci.yml30 # CI must be hermetic: never let tests download the embedding modelCOMMENT
MEDIUM.github/workflows/ci.yml845 # Raised 3000→3100 after wave of multi-agent merges pushed fixed cost to ~3008.COMMENT
Structural Annotation Overuse51 hits · 86 pts
SeverityFileLineSnippetContext
LOWrust/tests/suite/cortex_wiring_integration.rs58 // Step 1: ConsolidateCOMMENT
LOWrust/tests/suite/cortex_wiring_integration.rs78 // Step 2: Apply to session cacheCOMMENT
LOW⚡rust/tests/suite/cortex_wiring_integration.rs90 // Step 3: Verify cache contains provider dataCOMMENT
LOW⚡rust/tests/suite/cortex_wiring_integration.rs100 // Step 4: Cross-source hints for the referenced fileCOMMENT
LOWrust/tests/suite/cortex_wiring_integration.rs117 // Step 5: Format hints (as ctx_read would append them)COMMENT
LOWrust/tests/suite/cortex_wiring_integration.rs267 // Step 1: Provider query produces chunks and consolidates themCOMMENT
LOW⚡rust/tests/suite/cortex_wiring_integration.rs295 // Step 2: Apply edges (these would be in the graph index)COMMENT
LOW⚡rust/tests/suite/cortex_wiring_integration.rs300 // Step 3: Simulate ctx_read — check cross-source hints for referenced filesCOMMENT
LOW⚡rust/tests/suite/cortex_wiring_integration.rs331 // Step 4: Verify format output matches what ctx_read appendsCOMMENT
LOW⚡rust/tests/suite/cortex_wiring_integration.rs336 // Step 5: Verify cache hit (session cache stores the provider results)COMMENT
LOWrust/src/core/context_compiler.rs315 // Step 4: DEDUP — drop items whose CONTENT is >70% redundant with anCOMMENT
LOWrust/src/core/context_compiler.rs349 // Step 5: ORDER — Lost-in-the-Middle (LiTM) reorder.COMMENT
LOWrust/src/core/cognition_loop.rs101 // Step 3: Fidelity Check (structural only, no LLM)COMMENT
LOWrust/src/core/cognition_loop.rs162/// Step 1: Promote recent session decisions/findings into project knowledge.COMMENT
LOWrust/src/core/cognition_loop.rs223/// Step 2: Remove edges whose endpoints no longer exist in the knowledge store.COMMENT
LOWrust/src/core/cognition_loop.rs239/// Step 4: Connect related facts that share vocabulary but lack an explicit edge.COMMENT
LOWrust/src/core/cognition_loop.rs279/// Step 5: Resolve contradictions — same category+key, different values.COMMENT
LOWrust/src/core/cognition_loop.rs317/// Step 6: Strengthen edges between facts co-retrieved in the same session window.COMMENT
LOWrust/src/core/cognition_loop.rs354/// Step 7: Decay confidence on stale facts, and decay edge counts for unseen edges.COMMENT
LOWrust/src/core/embeddings/mod.rs890/// NOTE: This function BLOCKS on first call while loading the ONNX model.COMMENT
LOWrust/src/core/hive/auth.rs52/// Step 1: ask Hive for a device code; `label` is the user's `--label`, ifCOMMENT
LOWrust/src/core/hive/auth.rs108/// Step 2: poll until the user approved (or the code expired), then verifyCOMMENT
LOWrust/src/cli/hive_connect_cmd.rs571/// Step 3: name the vault of the project at `root`. Never fails theCOMMENT
LOWdocs/guides/claude-code.md42### Step 1: MCP Server RegistrationCOMMENT
LOWdocs/guides/claude-code.md74### Step 2: Agent Instructions (CLAUDE.md block + skill)COMMENT
LOWdocs/guides/claude-code.md122### Step 3: Shell HookCOMMENT
LOWdocs/guides/claude-code.md149### Step 4: SKILL.md (Optional)COMMENT
LOWdocs/guides/windsurf.md49### Step 1: MCP Server RegistrationCOMMENT
LOWdocs/guides/windsurf.md65### Step 2: Agent RulesCOMMENT
LOWdocs/guides/windsurf.md102### Step 3: Shell HookCOMMENT
LOWdocs/guides/cursor.md36### Step 1: MCP Server RegistrationCOMMENT
LOWdocs/guides/cursor.md54### Step 2: Agent Rules (MDC Format)COMMENT
LOWdocs/guides/cursor.md83### Step 3: Shell HookCOMMENT
LOWdocs/guides/cursor.md91### Step 4: SKILL.mdCOMMENT
LOWdocs/guides/codex-cli.md83### Step 1: MCP Server RegistrationCOMMENT
LOWdocs/guides/codex-cli.md97### Step 2: Agent RulesCOMMENT
LOWdocs/guides/codex-cli.md135### Step 3: Shell HookCOMMENT
LOW⚡docs/guides/codex-cli.md323# Step 1: AnalyzeCOMMENT
LOW⚡docs/guides/codex-cli.md327# Step 2: PlanCOMMENT
LOW⚡docs/guides/codex-cli.md331# Step 3: Execute — Codex applies the rename with its own edit toolsCOMMENT
LOWdocs/guides/aider.md129### Step 1: Understand the CodebaseCOMMENT
LOW⚡docs/guides/aider.md145### Step 2: Analyze ImpactCOMMENT
LOW⚡docs/guides/aider.md155### Step 3: Add Files to AiderCOMMENT
LOW⚡docs/guides/aider.md163### Step 4: Make ChangesCOMMENT
LOW⚡docs/guides/aider.md167### Step 5: DocumentCOMMENT
LOWdocs/guides/gemini-cli.md35### Step 1: MCP Server RegistrationCOMMENT
LOWdocs/guides/gemini-cli.md54### Step 2: Rules (GEMINI.md)COMMENT
LOWdocs/guides/gemini-cli.md90### Step 3: Shell HookCOMMENT
LOWdocs/guides/opencode.md35### Step 1: MCP Server RegistrationCOMMENT
LOWdocs/guides/opencode.md62### Step 2: Rules (AGENTS.md)COMMENT
LOWdocs/guides/opencode.md103### Step 3: Shell HookCOMMENT
AI Slop Vocabulary29 hits · 86 pts
SeverityFileLineSnippetContext
MEDIUMrust/tests/suite/security_hardening.rs5/// so that the security-invariant checks below stay robust to internal moduleCOMMENT
MEDIUMrust/tests/suite/hn_hardening_scenarios.rs10/// so that the invariant checks below stay robust to internal module structure.COMMENT
MEDIUMrust/tests/suite/hn_hardening_scenarios.rs28/// brace) so structural assertions stay robust to where the guard lives and toCOMMENT
MEDIUMrust/tests/suite/lock_contention_hardening.rs289 // instead of a fixed sleep so the test stays robust on slow/loaded CICOMMENT
MEDIUMrust/tests/suite/setup_symlink_596.rs128 // Fake `codex` binary so detection is robust regardless of host PATH.COMMENT
MEDIUMrust/src/tools/ctx_shell.rs532 // Preserve #989's escape hatch for harness-provided scratch paths.COMMENT
MEDIUMrust/src/tools/ctx_callgraph.rs187 // widely-called AND cognitively complex is the highest-leverage refactor.COMMENT
MEDIUMrust/src/core/path_resolve.rs349 // it. Asserts only the Ok case (robust against parallel env mutation): withCOMMENT
MEDIUMrust/src/core/handle.rs18//! robust than a brittle line-only reference.COMMENT
MEDIUMrust/src/core/tabular_crush.rs17//! The compact form is serialized with `serde_json` (robust quoting, escapes andCOMMENT
MEDIUMrust/src/core/ort_execution_providers.rs98/// scale batch size: small mini-batches under-utilize a GPU and payCOMMENT
MEDIUMrust/src/core/pgvector_store.rs11//! one JSON object per line (`json_build_object(...)::text`), which is robustCOMMENT
MEDIUMrust/src/core/tool_profiles.rs287/// formatting, and unrelated keys (robust against substring/comment matches).COMMENT
MEDIUMrust/src/core/graph_provider.rs472 /// its current [`SymbolInfo`], robust to line drift. Resolution order:COMMENT
MEDIUMrust/src/core/graph_provider.rs483 /// `@Lline` is never a hard requirement, so this is strictly more robustCOMMENT
MEDIUMrust/src/core/graph_provider.rs1049 // the current symbol at its real line (robust beyond line-only refs).COMMENT
MEDIUMrust/src/core/auto_mode_resolver.rs578 // Structure-first cold-read floor (#361): on a phase-isolated harness a coldCOMMENT
MEDIUMrust/src/core/editor_registry/paths.rs627 // Env-robust: compares the two paths against each other, so it holdsCOMMENT
MEDIUMrust/src/core/code_health/annotate.rs43/// name (more robust than line numbers when attributes/decorators shift lines).COMMENT
MEDIUMrust/src/core/config/proxy_tests.rs385 // assertion is robust without mutating process-global env vars.COMMENT
MEDIUMrust/src/core/config/render.rs188 // through `toml::Value` (map equality is order-independent) so it is robustCOMMENT
MEDIUMrust/src/server/call_tool/pipeline.rs1247 // which break a JSON contract. This guard is the robust catch-all:COMMENT
MEDIUMrust/src/cli/shell_init.rs429 # Answers on a pipe too: an agent harness captures stdout (#2092).\n\COMMENT
MEDIUMrust/src/cli/shell_init.rs606# Called on purpose, so it answers on a pipe too: an agent harness capturesCOMMENT
MEDIUMrust/src/cli/shell_init.rs1116 // #2092: stdout is a pipe here, as in every agent harness.COMMENT
MEDIUMcookbook/package-lock.json2923 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",CODE
MEDIUMscripts/preflight.sh274 # Both became modules of the merged harness (`tests/main.rs` → `suite/`) inCOMMENT
MEDIUM.github/workflows/ci.yml644 # a benchmark smoke that proves the harness runs offline (local fallback).COMMENT
MEDIUMskills/lean-ctx-review/scripts/scan_session.py127 # a body full of scary words is not a signal; only the harness flag isCOMMENT
Unused Imports80 hits · 80 pts
SeverityFileLineSnippetContext
LOWrust/scripts/train_triage_model.py13CODE
LOWrust/scripts/train_triage_model.py14CODE
LOWrust/scripts/train_triage_model.py16CODE
LOWrust/scripts/train_triage_model.py24CODE
LOWrust/scripts/train_triage_model.py24CODE
LOWtests/test_ip_provenance_audit.py13CODE
LOWtests/governance/test_narrative_governance.py3CODE
LOWintegrations/hermes-lean-ctx/config.py9CODE
LOWintegrations/hermes-lean-ctx/transport.py8CODE
LOWintegrations/hermes-lean-ctx/presets.py9CODE
LOWintegrations/hermes-lean-ctx/tools.py7CODE
LOWintegrations/hermes-lean-ctx/__init__.py16CODE
LOWintegrations/hermes-lean-ctx/tokens.py8CODE
LOWintegrations/hermes-lean-ctx/_hermes_compat.py18CODE
LOWintegrations/hermes-lean-ctx/engine.py9CODE
LOWintegrations/hermes-lean-ctx/schemas.py10CODE
LOWintegrations/hermes-lean-ctx/compaction.py17CODE
LOWintegrations/hermes-lean-ctx/tests/test_engine_abc.py3CODE
LOWintegrations/hermes-lean-ctx/tests/test_lifecycle.py8CODE
LOWintegrations/hermes-lean-ctx/tests/conftest.py13CODE
LOW…egrations/hermes-lean-ctx/tests/test_engine_adapter.py11CODE
LOWintegrations/hermes-lean-ctx/tests/test_compaction.py3CODE
LOWintegrations/hermes-lean-ctx/tests/test_benchmark.py9CODE
LOWintegrations/hermes-lean-ctx/tests/test_live_daemon.py11CODE
LOWintegrations/hermes-lean-ctx/tests/test_config.py3CODE
LOWintegrations/hermes-lean-ctx/tests/test_config.py5CODE
LOWintegrations/hermes-lean-ctx/tests/test_registration.py3CODE
LOWintegrations/hermes-lean-ctx/tests/test_tools.py3CODE
LOWintegrations/hermes-lean-ctx/tests/_helpers.py3CODE
LOWintegrations/hermes-lean-ctx/benchmarks/metrics.py11CODE
LOWintegrations/hermes-lean-ctx/benchmarks/run.py12CODE
LOWintegrations/hermes-lean-ctx/benchmarks/engines.py9CODE
LOWintegrations/hermes-lean-ctx/benchmarks/corpus.py12CODE
LOWexamples/sprint-poc/poc.py8CODE
LOWexamples/sprint-poc/poc.py73CODE
LOWexamples/sprint-poc/secret_guard.py3CODE
LOWexamples/sprint-poc/agent.py7CODE
LOWexamples/sprint-poc/quality.py7CODE
LOWscripts/release-prebuild.py23CODE
LOWscripts/pinned-evidence.py29CODE
LOWscripts/public-export.py20CODE
LOWscripts/generate-release-manifest.py5CODE
LOWscripts/check-addon-versions.py18CODE
LOWscripts/check-sdk-engine-coupling.py10CODE
LOWscripts/check-v3-fixture-migrations.py5CODE
LOWscripts/check-package-versions.py33CODE
LOWscripts/verify-engine-agent-tools.py14CODE
LOWscripts/publish-pins.py20CODE
LOWscripts/sync-capabilities.py34CODE
LOWscripts/export-offline-build.py26CODE
LOWscripts/export-secret-gate.py25CODE
LOWscripts/generate-third-party-notices.py10CODE
LOWscripts/check-narrative-governance.py4CODE
LOWscripts/check-sdk-surface.py10CODE
LOWscripts/check-capabilities.py15CODE
LOWscripts/verify-ocla-contract-suite.py4CODE
LOWscripts/check-receipt-authority.py5CODE
LOWscripts/source-export-manifest.py11CODE
LOWscripts/publish-gate.py25CODE
LOWscripts/license-policy-check.py5CODE
20 more matches not shown…
Deep Nesting78 hits · 76 pts
SeverityFileLineSnippetContext
LOWrust/tests/e2e_test.py33CODE
LOWrust/tests/embedding_download_test.py119CODE
LOWrust/tests/embedding_download_test.py32CODE
LOWtests/release/test_generate_release_manifest.py40CODE
LOWtests/release/test_generate_release_manifest.py183CODE
LOWtests/governance/test_narrative_governance.py228CODE
LOWtests/delivery/test_windows_packages.py18CODE
LOWintegrations/hermes-lean-ctx/tokens.py35CODE
LOWintegrations/hermes-lean-ctx/compaction.py147CODE
LOWintegrations/hermes-lean-ctx/compaction.py268CODE
LOWintegrations/hermes-lean-ctx/tests/test_tools.py62CODE
LOWintegrations/hermes-lean-ctx/benchmarks/engines.py50CODE
LOWscripts/release-prebuild.py426CODE
LOWscripts/pinned-evidence.py308CODE
LOWscripts/pinned-evidence.py372CODE
LOWscripts/public-export.py43CODE
LOWscripts/check-addon-versions.py109CODE
LOWscripts/release_inventory.py60CODE
LOWscripts/check-v3-fixture-migrations.py17CODE
LOWscripts/verify-team-context-v1.py71CODE
LOWscripts/verify-team-context-v1.py538CODE
LOWscripts/verify-team-context-v1.py1110CODE
LOWscripts/verify-team-context-v1.py1151CODE
LOWscripts/verify-team-context-v1.py1355CODE
LOWscripts/verify-release-integrity.py78CODE
LOWscripts/verify-release-integrity.py136CODE
LOWscripts/verify-team-seat-value-v1.py224CODE
LOWscripts/verify-team-seat-value-v1.py357CODE
LOWscripts/verify-team-seat-value-v1.py747CODE
LOWscripts/generate-third-party-notices.py242CODE
LOWscripts/generate-third-party-notices.py354CODE
LOWscripts/generate-third-party-notices.py375CODE
LOWscripts/check-narrative-governance.py388CODE
LOWscripts/check-narrative-governance.py437CODE
LOWscripts/check-narrative-governance.py468CODE
LOWscripts/check-narrative-governance.py570CODE
LOWscripts/check-narrative-governance.py669CODE
LOWscripts/check-narrative-governance.py418CODE
LOWscripts/history-policy-gate.py427CODE
LOWscripts/check-capabilities.py49CODE
LOWscripts/check-capabilities.py171CODE
LOWscripts/check-capabilities.py260CODE
LOWscripts/check-capabilities.py306CODE
LOWscripts/check-source-layout.py120CODE
LOWscripts/project-capabilities.py33CODE
LOWscripts/check-open-core-boundary.py324CODE
LOWscripts/check-open-core-boundary.py428CODE
LOWscripts/check-open-core-boundary.py575CODE
LOWscripts/check-open-core-boundary.py658CODE
LOWscripts/check-open-core-boundary.py782CODE
LOWscripts/check-open-core-boundary.py805CODE
LOWscripts/check-open-core-boundary.py972CODE
LOWscripts/check-open-core-boundary.py1070CODE
LOWscripts/check-open-core-boundary.py1188CODE
LOWscripts/check-open-core-boundary.py1321CODE
LOWscripts/check-open-core-boundary.py1410CODE
LOWscripts/check-local-free.py52CODE
LOWscripts/scan-release-artifacts.py189CODE
LOWscripts/check-publish-dependency-graph.py39CODE
LOWscripts/ip-provenance-audit.py192CODE
18 more matches not shown…
Verbosity Indicators22 hits · 38 pts
SeverityFileLineSnippetContext
LOWrust/tests/suite/cortex_wiring_integration.rs58 // Step 1: ConsolidateCOMMENT
LOWrust/tests/suite/cortex_wiring_integration.rs78 // Step 2: Apply to session cacheCOMMENT
LOW⚡rust/tests/suite/cortex_wiring_integration.rs90 // Step 3: Verify cache contains provider dataCOMMENT
LOW⚡rust/tests/suite/cortex_wiring_integration.rs100 // Step 4: Cross-source hints for the referenced fileCOMMENT
LOWrust/tests/suite/cortex_wiring_integration.rs117 // Step 5: Format hints (as ctx_read would append them)COMMENT
LOWrust/tests/suite/cortex_wiring_integration.rs267 // Step 1: Provider query produces chunks and consolidates themCOMMENT
LOW⚡rust/tests/suite/cortex_wiring_integration.rs295 // Step 2: Apply edges (these would be in the graph index)COMMENT
LOW⚡rust/tests/suite/cortex_wiring_integration.rs300 // Step 3: Simulate ctx_read — check cross-source hints for referenced filesCOMMENT
LOW⚡rust/tests/suite/cortex_wiring_integration.rs331 // Step 4: Verify format output matches what ctx_read appendsCOMMENT
LOW⚡rust/tests/suite/cortex_wiring_integration.rs336 // Step 5: Verify cache hit (session cache stores the provider results)COMMENT
LOWrust/src/core/context_compiler.rs315 // Step 4: DEDUP — drop items whose CONTENT is >70% redundant with anCOMMENT
LOWrust/src/core/context_compiler.rs349 // Step 5: ORDER — Lost-in-the-Middle (LiTM) reorder.COMMENT
LOWrust/src/core/cognition_loop.rs101 // Step 3: Fidelity Check (structural only, no LLM)COMMENT
LOWrust/src/core/cognition_loop.rs162/// Step 1: Promote recent session decisions/findings into project knowledge.COMMENT
LOWrust/src/core/cognition_loop.rs223/// Step 2: Remove edges whose endpoints no longer exist in the knowledge store.COMMENT
LOWrust/src/core/cognition_loop.rs239/// Step 4: Connect related facts that share vocabulary but lack an explicit edge.COMMENT
LOWrust/src/core/cognition_loop.rs279/// Step 5: Resolve contradictions — same category+key, different values.COMMENT
LOWrust/src/core/cognition_loop.rs317/// Step 6: Strengthen edges between facts co-retrieved in the same session window.COMMENT
LOWrust/src/core/cognition_loop.rs354/// Step 7: Decay confidence on stale facts, and decay edge counts for unseen edges.COMMENT
LOWrust/src/core/hive/auth.rs52/// Step 1: ask Hive for a device code; `label` is the user's `--label`, ifCOMMENT
LOWrust/src/core/hive/auth.rs108/// Step 2: poll until the user approved (or the code expired), then verifyCOMMENT
LOWrust/src/cli/hive_connect_cmd.rs571/// Step 3: name the vault of the project at `root`. Never fails theCOMMENT
Excessive Try-Catch Wrapping34 hits · 36 pts
SeverityFileLineSnippetContext
LOWrust/tests/e2e_test.py114 except Exception as e:CODE
LOWrust/tests/embedding_download_test.py105 except Exception as e:CODE
LOWrust/tests/pre_release_check.sh71except Exception:CODE
LOWrust/scripts/train_triage_model.py210 except Exception as e:CODE
LOWrust/scripts/train_triage_model.py343 except Exception:CODE
LOWintegrations/hermes-lean-ctx/transport.py40 except Exception as exc: # pragma: no cover - depends on installCODE
LOWintegrations/hermes-lean-ctx/transport.py56 except Exception as exc:CODE
LOWintegrations/hermes-lean-ctx/transport.py81 except Exception as exc:CODE
LOWintegrations/hermes-lean-ctx/transport.py103 except Exception as exc:CODE
LOWintegrations/hermes-lean-ctx/transport.py117 except Exception as exc:CODE
LOWintegrations/hermes-lean-ctx/transport.py128 except Exception as exc:CODE
LOWintegrations/hermes-lean-ctx/__init__.py31 except Exception:CODE
MEDIUMintegrations/hermes-lean-ctx/__init__.py26def _resolve_hermes_home() -> str:CODE
LOWintegrations/hermes-lean-ctx/tokens.py30 except Exception: # pragma: no cover - depends on optional depCODE
LOWintegrations/hermes-lean-ctx/tokens.py65 except Exception: # pragma: no cover - encoder edge casesCODE
LOWintegrations/hermes-lean-ctx/engine.py17except Exception: # pragma: no cover - exercised outside HermesCODE
LOWintegrations/hermes-lean-ctx/engine.py72 except Exception: # pragma: no cover - exotic host baseCODE
LOWintegrations/hermes-lean-ctx/engine.py146 except Exception as exc: # never break the agent loopCODE
LOWintegrations/hermes-lean-ctx/tests/conftest.py53 except Exception:CODE
MEDIUMintegrations/hermes-lean-ctx/tests/conftest.py48def _ensure_agent_context_engine() -> None:CODE
LOWintegrations/hermes-lean-ctx/benchmarks/engines.py56 except Exception as exc: # noqa: BLE001 - any import failure → skipCODE
LOWintegrations/hermes-lean-ctx/benchmarks/engines.py68 except Exception: # noqa: BLE001 - try the next constructor shapeCODE
LOWexamples/sprint-poc/poc.py110 except Exception as exc:CODE
LOW⚡examples/sprint-poc/poc.py278 except Exception:CODE
LOWscripts/verify-team-seat-value-v1.py207 except Exception as exc:CODE
LOWscripts/source-export-manifest.py55 except Exception as exc:CODE
LOWscripts/source-export-manifest.py145 except Exception as exc:CODE
LOWscripts/source-export-manifest.py156 except Exception as exc:CODE
LOWscripts/source-export-manifest.py226 except Exception as exc:CODE
LOWscripts/source-export-manifest.py498 except Exception as exc:CODE
LOWscripts/source-export-manifest.py544 except Exception as exc:CODE
LOWscripts/source-export-manifest.py620 except Exception:CODE
LOWscripts/tests/check_compose_admission.py177 except Exception as error:CODE
LOWscripts/tests/check_agent_tools_policy.py308 except Exception as error:CODE
Empty Error Handlers7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHrust/scripts/train_triage_model.py143except (json.JSONDecodeError, ValueError):CODE
HIGHintegrations/hermes-lean-ctx/tokens.py65except Exception: # pragma: no cover - encoder edge casesCODE
HIGHintegrations/hermes-lean-ctx/engine.py72except Exception: # pragma: no cover - exotic host baseCODE
HIGHintegrations/hermes-lean-ctx/tests/conftest.py53except Exception:CODE
HIGHintegrations/hermes-lean-ctx/tests/test_live_daemon.py51except json.JSONDecodeError:CODE
HIGHscripts/verify-engine-agent-tools.py119except OSError:CODE
HIGHscripts/generate-third-party-notices.py677except OSError:CODE
Fake / Example Data21 hits · 21 pts
SeverityFileLineSnippetContext
LOW…t/crates/lean-ctx-protocol/src/credential_redaction.rs91 "placeholder",CODE
LOWrust/src/tools/ctx_transcript_compact.rs414 "lorem ipsum dolor sit amet ".repeat(n)CODE
LOWrust/src/tools/ctx_transcript_compact.rs414 "lorem ipsum dolor sit amet ".repeat(n)CODE
LOWrust/src/core/redaction.rs152 "placeholder",CODE
LOWrust/src/core/graph_enricher.rs749 assert_eq!(commits[0].author, "John Doe");CODE
LOWrust/src/core/providers/jira.rs694 crate::test_env::set_var("JIRA_EMAIL", "test@test.com");CODE
LOWrust/src/core/agents/registry_tests.rs53 .expect("placeholder");CODE
LOWrust/src/core/bm25_index/chunking.rs771 let prose = format!("{}\n", "lorem ipsum dolor sit amet ".repeat(60)).repeat(60);CODE
LOWrust/src/core/bm25_index/chunking.rs771 let prose = format!("{}\n", "lorem ipsum dolor sit amet ".repeat(60)).repeat(60);CODE
LOWrust/src/proxy/compress_tests.rs539 .map(|i| format!("Line {i:04}: lorem ipsum dolor sit amet consectetur"))CODE
LOWrust/src/proxy/compress_tests.rs539 .map(|i| format!("Line {i:04}: lorem ipsum dolor sit amet consectetur"))CODE
LOWrust/src/proxy/compress_tests.rs554 .map(|i| format!("Line {i:04}: lorem ipsum dolor sit amet consectetur"))CODE
LOWrust/src/proxy/compress_tests.rs554 .map(|i| format!("Line {i:04}: lorem ipsum dolor sit amet consectetur"))CODE
LOWrust/src/proxy/cache_policy.rs217 let big = "lorem ipsum dolor sit amet ".repeat(50);CODE
LOWrust/src/proxy/cache_policy.rs217 let big = "lorem ipsum dolor sit amet ".repeat(50);CODE
LOWrust/src/proxy/anthropic_tests.rs1125 let huge_tail = "lorem ipsum dolor sit amet consectetur ".repeat(4000);CODE
LOWrust/src/proxy/anthropic_tests.rs1125 let huge_tail = "lorem ipsum dolor sit amet consectetur ".repeat(4000);CODE
LOWrust/src/proxy/anthropic_tests.rs1155 let huge_tail = "lorem ipsum dolor sit amet consectetur ".repeat(4000);CODE
LOWrust/src/proxy/anthropic_tests.rs1155 let huge_tail = "lorem ipsum dolor sit amet consectetur ".repeat(4000);CODE
LOWintegrations/hermes-lean-ctx/tests/_helpers.py9 return "lorem ipsum dolor sit amet " * nCODE
LOWintegrations/hermes-lean-ctx/tests/_helpers.py9 return "lorem ipsum dolor sit amet " * nCODE
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALrust/src/core/engine_interface/source_execution.rs65 plan.context_plan_id = Some(snapshot.plan.result.plan.context_plan_id.clone());CODE
CRITICALrust/src/core/hive/bus/handoff.rs193 org_id: c.session.lease.lease.org_id.clone(),CODE
Magic Placeholder Names3 hits · 18 pts
SeverityFileLineSnippetContext
HIGHrust/src/core/redaction.rs319/// authentication", "Bearer YOUR_TOKEN_HERE" must survive), but the identifierCOMMENT
HIGHrust/src/core/security_corpus_tests.rs379 wrap("<your-api-key>"),CODE
HIGHrust/src/core/security_corpus_tests.rs396 wrap("curl -H 'Authorization-Hint: Bearer YOUR_TOKEN_HERE'"),CODE
Cross-Language Confusion3 hits · 18 pts
SeverityFileLineSnippetContext
HIGHtests/delivery/test_sdk_engine_coupling.py113 "wrong fields": (PAIR.replace('"evidence": null', '"evidence": null, "note": 1'),CODE
HIGH⚡scripts/tests/test_release_prebuild.py395 self.assertIn("name: release-build-config-${{ matrix.artifact || matrix.target }}", self.WORKFLOW)CODE
HIGHscripts/tests/test_ip_provenance_audit.py398 "Apache-2.0 && __import__('os')",CODE
Slop Phrases6 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMrust/src/tools/ctx_response.rs567 assert!(is_filler_line("Let me know if you need more"));CODE
MEDIUMrust/src/proxy/response_shaper.rs300 let input = "The fix is applied.\n\nLet me know if you need anything else!";CODE
MEDIUMrust/src/proxy/response_shaper.rs328 let input = "Great, I'll fix that for you.\n\nChanged line 42 from `x` to `y`.\n\nLet me know if you need anythiCODE
MEDIUMrust/src/proxy/response_shaper.rs349 "content": "Great, I'll check that.\n\nThe answer is 42.\n\nLet me know if you need more help!"CODE
MEDIUMrust/src/proxy/shaping_hook.rs83 "choices": [{"message": {"role": "assistant", "content": "Great, I'll do that.\n\nDone.\n\nLet me know if yoCODE
MEDIUMrust/src/proxy/shaping_hook.rs92 "choices": [{"message": {"role": "assistant", "content": "Sure, let me check that.\n\nThe answer is 42.\n\nLCODE
Modern Structural Boilerplate7 hits · 7 pts
SeverityFileLineSnippetContext
LOWintegrations/hermes-lean-ctx/transport.py16logger = logging.getLogger(__name__)CODE
LOWintegrations/hermes-lean-ctx/__init__.py23logger = logging.getLogger(__name__)CODE
LOWintegrations/hermes-lean-ctx/__init__.py74__all__ = ["register", "LeanCtxEngine", "__version__"]CODE
LOWintegrations/hermes-lean-ctx/tokens.py13logger = logging.getLogger(__name__)CODE
LOWintegrations/hermes-lean-ctx/_hermes_compat.py62 def update_from_response(self, usage: Dict[str, Any]) -> None:CODE
LOWintegrations/hermes-lean-ctx/engine.py27logger = logging.getLogger(__name__)CODE
LOWintegrations/hermes-lean-ctx/engine.py93 def update_from_response(self, usage: Dict[str, Any]) -> None:CODE
Self-Referential Comments2 hits · 4 pts
SeverityFileLineSnippetContext
MEDIUM…ents/rust/lean-ctx-client/tests/dependency_boundary.rs33 "# This file is automatically @generated by Cargo.\n\CODE
MEDIUM⚡rust/tests/suite/pattern_snapshots.rs664 release # Create a release build\n\CODE
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippetContext
LOWinstall.sh4# Usage:COMMENT
LOWscripts/preflight.sh25# Usage:COMMENT
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWintegrations/hermes-lean-ctx/benchmarks/run.py68CODE
LOWscripts/tests/check_agent_tools_policy.py98CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWrust/src/core/code_health/cognitive.rs10//! ## Increment rulesCOMMENT