Knowhere extracts, parses, and outputs structured chunks ready for AI Agents and RAG.
This report summarizes scanner evidence for Ontos-AI/knowhere, a Python project with 3,705 GitHub stars. SynthScan examined 233,564 lines of code across 1182 source files, recording 3984 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 19.9 (Elevated 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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 2275 finding(s).
Are imports declared and package/API names verified? 923 finding(s).
Are wrappers, guards, and repeated structures necessary? 2771 finding(s).
Which changes need focused human review? 3984 finding(s).
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.
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.
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.
The scanner identified 3984 distinct pattern matches across 22 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | deploy/ecs/test_manage_staging_workflow.py | 15 | def test_workflow_exposes_only_manual_status_start_and_stop() -> None: | CODE |
| LOW | deploy/ecs/test_manage_staging_workflow.py | 26 | def test_mutations_require_an_ontos_ai_github_approval_url() -> None: | CODE |
| LOW | deploy/ecs/test_manage_staging_workflow.py | 35 | def test_workflow_uses_named_profile_and_approved_account() -> None: | CODE |
| LOW | deploy/ecs/test_manage_staging_workflow.py | 46 | def test_start_restores_healthy_workers_before_api() -> None: | CODE |
| LOW | deploy/ecs/test_manage_staging_workflow.py | 70 | def test_worker_health_gate_polls_through_container_start_period() -> None: | CODE |
| LOW | deploy/ecs/test_manage_staging_workflow.py | 85 | def test_public_api_health_gate_retries_transient_alb_errors() -> None: | CODE |
| LOW | deploy/ecs/test_manage_staging_workflow.py | 102 | def test_stop_closes_api_then_drains_before_workers() -> None: | CODE |
| LOW | deploy/ecs/test_manage_staging_workflow.py | 117 | def test_status_uses_the_jobs_ledger_for_backlog() -> None: | CODE |
| LOW | deploy/ecs/test_manage_staging_workflow.py | 130 | def test_start_reports_readiness_time() -> None: | CODE |
| LOW | deploy/ecs/test_render_task_definitions.py | 114 | def test_staging_templates_preserve_expected_staging_configuration( | CODE |
| LOW | deploy/ecs/test_render_task_definitions.py | 143 | def test_staging_worker_preserves_evidence_selected_capacity(tmp_path: Path) -> None: | CODE |
| LOW | deploy/ecs/test_render_task_definitions.py | 159 | def test_staging_api_preserves_selected_capacity(tmp_path: Path) -> None: | CODE |
| LOW | deploy/ecs/test_render_task_definitions.py | 185 | def test_renderer_rejects_unresolved_placeholders() -> None: | CODE |
| LOW | deploy/ecs/render_task_definitions.py | 72 | def validate_rendered_definition(definition: object) -> None: | CODE |
| LOW | scripts/publication_benchmark/admit_telemetry.py | 81 | def evaluate_telemetry_admission( | CODE |
| LOW | scripts/publication_benchmark/admit_telemetry.py | 561 | def _evaluate_terminal_traces( | CODE |
| LOW | scripts/publication_benchmark/admit_telemetry.py | 660 | def _evaluate_sql_write_parity( | CODE |
| LOW | scripts/publication_benchmark/admit_telemetry.py | 705 | def _evaluate_duration_overhead( | CODE |
| LOW | scripts/publication_benchmark/publication_execution.py | 58 | def build_publication_environment( | CODE |
| LOW | scripts/publication_benchmark/publication_execution.py | 89 | def apply_publication_environment( | CODE |
| LOW | scripts/publication_benchmark/publication_execution.py | 375 | def capture_background_activity(db: Session) -> dict[str, Any]: | CODE |
| LOW | scripts/publication_benchmark/publication_execution.py | 414 | def _cache_invalidation_effects( | CODE |
| LOW | scripts/publication_benchmark/capacity_execution.py | 140 | def _monitor_peak_connections(database_url: str, stop_event: Event) -> int: | CODE |
| LOW | scripts/publication_benchmark/aggregate.py | 178 | def _background_activity_note(raw_records: Sequence[Mapping[str, Any]]) -> str: | CODE |
| LOW | scripts/publication_benchmark/aggregate.py | 239 | def _load_terminal_trace_accounting( | CODE |
| LOW | scripts/publication_benchmark/aggregate.py | 263 | def _build_trace_mode_statistics( | CODE |
| LOW | scripts/publication_benchmark/trace_accounting.py | 38 | def terminal_trace_accounting_contract() -> dict[str, object]: | CODE |
| LOW | scripts/publication_benchmark/trace_accounting.py | 118 | def assert_terminal_trace_accounting(accounting: TerminalTraceAccounting) -> None: | CODE |
| LOW | scripts/publication_benchmark/guards.py | 40 | def assert_writable_database_url(database_url: str, *, purpose: str) -> None: | CODE |
| LOW | scripts/publication_benchmark/guards.py | 64 | def assert_not_source_database( | CODE |
| LOW | scripts/publication_benchmark/guards.py | 84 | def assert_clone_record_is_usable( | CODE |
| LOW | scripts/publication_benchmark/guards.py | 108 | def assert_clone_target_is_distinct_from_source( | CODE |
| LOW | scripts/publication_benchmark/guards.py | 128 | def assert_frozen_input_digest(manifest: "FrozenInputManifest | None") -> None: | CODE |
| LOW | scripts/publication_benchmark/guards.py | 141 | def assert_strategy_matches_environment( | CODE |
| LOW | scripts/publication_benchmark/run_capacity.py | 58 | def build_two_stage_sampling_plan() -> dict[str, Any]: | CODE |
| LOW | scripts/publication_benchmark/run_capacity.py | 165 | def summarize_arrival_latency(samples: Sequence[CapacitySample]) -> float: | CODE |
| LOW | scripts/publication_benchmark/check_memory_growth.py | 132 | def verify_live_test_database(database_url: str, record: CloneRecord) -> int: | CODE |
| LOW | scripts/publication_benchmark/run_record.py | 165 | def find_comparability_conflicts( | CODE |
| LOW | scripts/publication_benchmark/run_record.py | 184 | def find_comparability_exceptions( | CODE |
| LOW | scripts/publication_benchmark/run_record.py | 200 | def assert_runs_are_comparable( | CODE |
| LOW | scripts/publication_benchmark/run_record.py | 224 | def resolve_source_content_digest(repository_root: Path) -> str: | CODE |
| LOW | scripts/publication_benchmark/state_snapshot.py | 188 | def canonical_semantic_digest(value: object) -> str: | CODE |
| LOW | scripts/publication_benchmark/state_snapshot.py | 199 | def normalize_serving_payload( | CODE |
| LOW | scripts/publication_benchmark/state_snapshot.py | 265 | def capture_semantic_fingerprints( | CODE |
| LOW | scripts/publication_benchmark/state_snapshot.py | 572 | def _normalize_namespace_snapshot( | CODE |
| LOW | scripts/publication_benchmark/cases.py | 260 | def _verify_replacement_state( | CODE |
| LOW | scripts/publication_benchmark/cases.py | 332 | def _replacement_transition_mismatches(pair: ReplacementCaseEvidence) -> tuple[str, ...]: | CODE |
| LOW | scripts/publication_benchmark/cases.py | 505 | def _verify_new_document_state( | CODE |
| LOW | scripts/publication_benchmark/cases.py | 584 | def _new_document_before_mismatches(snapshot: Mapping[str, Any]) -> tuple[str, ...]: | CODE |
| LOW | scripts/publication_benchmark/cases.py | 609 | def _new_document_after_mismatches(snapshot: Mapping[str, Any]) -> tuple[str, ...]: | CODE |
| LOW | scripts/publication_benchmark/compare_state.py | 107 | def state_parity_artifact_path( | CODE |
| LOW | scripts/publication_benchmark/clone_db.py | 421 | def _template_database_url_path(self, template_id: str) -> Path: | CODE |
| LOW | scripts/publication_benchmark/clone_db.py | 838 | def _settle_restored_database(self, clone_container: str) -> float: | CODE |
| LOW | scripts/publication_benchmark/clone_db.py | 1180 | def _assert_managed_clone_target( | CODE |
| LOW | scripts/publication_benchmark/clone_db.py | 1194 | def _assert_not_template_volume(self, volume_name: str) -> None: | CODE |
| LOW | scripts/publication_benchmark/state_parity.py | 66 | def compare_publication_state( | CODE |
| LOW | scripts/publication_benchmark/state_parity.py | 147 | def write_state_parity_artifact( | CODE |
| LOW | scripts/publication_benchmark/cli_support.py | 18 | def bootstrap_repository_path() -> Path: | CODE |
| LOW | scripts/publication_benchmark/cli_support.py | 87 | def resolve_dependency_lock_digest( | CODE |
| LOW | scripts/publication_benchmark/frozen_input.py | 202 | def get_prohibited_payload_values( | CODE |
| 1901 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | deploy/ecs/render_task_definitions.py | 3 | CODE | |
| LOW | scripts/backup-demo-originals.py | 3 | CODE | |
| LOW | scripts/retire_legacy_token_lookup.py | 3 | CODE | |
| LOW | scripts/restore-demo-originals.py | 3 | CODE | |
| LOW | scripts/publication_benchmark/admit_telemetry.py | 8 | CODE | |
| LOW | scripts/publication_benchmark/publication_execution.py | 13 | CODE | |
| LOW | scripts/publication_benchmark/run_correctness.py | 13 | CODE | |
| LOW | scripts/publication_benchmark/capacity_execution.py | 3 | CODE | |
| LOW | scripts/publication_benchmark/aggregate.py | 7 | CODE | |
| LOW | scripts/publication_benchmark/trace_accounting.py | 9 | CODE | |
| LOW | scripts/publication_benchmark/guards.py | 8 | CODE | |
| LOW | scripts/publication_benchmark/guards.py | 17 | CODE | |
| LOW | scripts/publication_benchmark/guards.py | 17 | CODE | |
| LOW | scripts/publication_benchmark/guards.py | 21 | CODE | |
| LOW | scripts/publication_benchmark/run_capacity.py | 10 | CODE | |
| LOW | scripts/publication_benchmark/check_memory_growth.py | 8 | CODE | |
| LOW | scripts/publication_benchmark/layout.py | 8 | CODE | |
| LOW | scripts/publication_benchmark/run_record.py | 8 | CODE | |
| LOW | scripts/publication_benchmark/check_pool_reuse.py | 8 | CODE | |
| LOW | scripts/publication_benchmark/freeze_input.py | 13 | CODE | |
| LOW | scripts/publication_benchmark/state_snapshot.py | 8 | CODE | |
| LOW | scripts/publication_benchmark/cases.py | 7 | CODE | |
| LOW | scripts/publication_benchmark/compare_state.py | 3 | CODE | |
| LOW | scripts/publication_benchmark/clone_db.py | 14 | CODE | |
| LOW | scripts/publication_benchmark/run_retrieval_probe.py | 8 | CODE | |
| LOW | scripts/publication_benchmark/state_parity.py | 8 | CODE | |
| LOW | scripts/publication_benchmark/cli_support.py | 3 | CODE | |
| LOW | scripts/publication_benchmark/frozen_input.py | 13 | CODE | |
| LOW | scripts/publication_benchmark/capacity_campaign.py | 3 | CODE | |
| LOW | scripts/publication_benchmark/retrieval_interference.py | 3 | CODE | |
| LOW | scripts/publication_benchmark/run_publication.py | 11 | CODE | |
| LOW | scripts/publication_benchmark/report.py | 9 | CODE | |
| LOW | scripts/publication_benchmark/clone_state.py | 8 | CODE | |
| LOW | scripts/publication_benchmark/formal_campaign_report.py | 10 | CODE | |
| LOW | packages/shared-python/shared/core/logging.py | 12 | CODE | |
| LOW | packages/shared-python/shared/core/response/__init__.py | 3 | CODE | |
| LOW | packages/shared-python/shared/core/response/__init__.py | 4 | CODE | |
| LOW | packages/shared-python/shared/core/response/__init__.py | 4 | CODE | |
| LOW | packages/shared-python/shared/core/response/__init__.py | 4 | CODE | |
| LOW | packages/shared-python/shared/core/response/__init__.py | 4 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 5 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 8 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 8 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 8 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 8 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 8 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 15 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 16 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 17 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 18 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 19 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 20 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 20 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 24 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 25 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 25 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 25 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 26 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 27 | CODE | |
| LOW | …ython/shared/core/state_machine/transition_payloads.py | 1 | CODE | |
| 846 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/backup-demo-originals.py | 106 | except Exception as error: | CODE |
| LOW | scripts/retire_legacy_token_lookup.py | 64 | except Exception as error: | CODE |
| LOW | scripts/restore-demo-originals.py | 251 | except Exception as error: | CODE |
| LOW | scripts/publication_benchmark/publication_execution.py | 579 | except Exception as error: # noqa: BLE001 - recorded as the sample | CODE |
| LOW | scripts/publication_benchmark/publication_execution.py | 782 | except Exception as error: # noqa: BLE001 - recorded as the sample | CODE |
| LOW | scripts/publication_benchmark/capacity_execution.py | 313 | except Exception as error: # noqa: BLE001 - failures are evidence | CODE |
| LOW | scripts/publication_benchmark/check_memory_growth.py | 298 | except Exception: | CODE |
| LOW | scripts/publication_benchmark/check_memory_growth.py | 536 | except Exception: | CODE |
| LOW | scripts/publication_benchmark/clone_db.py | 391 | except Exception: | CODE |
| LOW | scripts/publication_benchmark/clone_db.py | 398 | except Exception: | CODE |
| LOW | scripts/publication_benchmark/clone_db.py | 743 | except Exception: | CODE |
| LOW | scripts/publication_benchmark/clone_db.py | 746 | except Exception: | CODE |
| LOW | scripts/publication_benchmark/clone_db.py | 1108 | except Exception: | CODE |
| LOW | scripts/publication_benchmark/clone_db.py | 1120 | except Exception: | CODE |
| LOW | scripts/publication_benchmark/clone_db.py | 1146 | except Exception: | CODE |
| LOW | scripts/publication_benchmark/retrieval_interference.py | 318 | except Exception as exception: | CODE |
| LOW | packages/shared-python/shared/core/database.py | 114 | except Exception: | CODE |
| LOW⚡ | packages/shared-python/shared/core/database.py | 129 | except Exception as commit_error: | CODE |
| LOW⚡ | packages/shared-python/shared/core/database.py | 134 | except Exception as rollback_error: | CODE |
| LOW⚡ | packages/shared-python/shared/core/database.py | 138 | except Exception: | CODE |
| LOW⚡ | packages/shared-python/shared/core/database.py | 144 | except Exception as rollback_error: | CODE |
| LOW⚡ | packages/shared-python/shared/core/database.py | 155 | except Exception as close_error: | CODE |
| LOW | packages/shared-python/shared/core/database.py | 229 | except Exception as e: | CODE |
| LOW | packages/shared-python/shared/core/database.py | 332 | except Exception as e: | CODE |
| LOW | packages/shared-python/shared/core/database.py | 341 | except Exception as e: | CODE |
| LOW | packages/shared-python/shared/core/database.py | 355 | except Exception as e: | CODE |
| LOW | packages/shared-python/shared/core/celery_router.py | 166 | except Exception as e: | CODE |
| LOW | packages/shared-python/shared/core/celery_router.py | 207 | except Exception as e: | CODE |
| LOW | packages/shared-python/shared/core/celery_router.py | 249 | except Exception as e: | CODE |
| LOW | packages/shared-python/shared/core/celery_router.py | 305 | except Exception as e: | CODE |
| LOW | packages/shared-python/shared/core/database_sync.py | 92 | except Exception: | CODE |
| LOW | packages/shared-python/shared/core/config/database.py | 138 | except Exception as e: | CODE |
| LOW | packages/shared-python/shared/core/config/redis.py | 115 | except Exception as e: | CODE |
| LOW | …hared-python/shared/core/state_machine/service_sync.py | 168 | except Exception as e: | CODE |
| LOW | …hared-python/shared/core/state_machine/service_sync.py | 173 | except Exception as rollback_err: | CODE |
| LOW | …hared-python/shared/core/state_machine/service_sync.py | 253 | except Exception as e: | CODE |
| LOW | …hared-python/shared/core/state_machine/service_sync.py | 296 | except Exception as e: | CODE |
| LOW⚡ | …hared-python/shared/core/state_machine/service_sync.py | 339 | except Exception as e: | CODE |
| LOW⚡ | …hared-python/shared/core/state_machine/service_sync.py | 344 | except Exception as rollback_err: | CODE |
| LOW | …hared-python/shared/core/state_machine/service_sync.py | 440 | except Exception as e: | CODE |
| LOW | …hared-python/shared/core/state_machine/service_sync.py | 472 | except Exception as e: | CODE |
| LOW | …hared-python/shared/core/state_machine/service_sync.py | 480 | except Exception as e: | CODE |
| LOW | …ges/shared-python/shared/core/state_machine/service.py | 181 | except Exception as e: | CODE |
| LOW | …ges/shared-python/shared/core/state_machine/service.py | 186 | except Exception as rollback_err: | CODE |
| LOW | …ges/shared-python/shared/core/state_machine/service.py | 271 | except Exception as e: | CODE |
| LOW | …ges/shared-python/shared/core/state_machine/service.py | 319 | except Exception as e: | CODE |
| LOW | …ges/shared-python/shared/core/state_machine/service.py | 363 | except Exception as e: | CODE |
| LOW | …ges/shared-python/shared/core/state_machine/service.py | 368 | except Exception as rollback_err: | CODE |
| LOW | …ges/shared-python/shared/core/state_machine/service.py | 385 | except Exception as e: | CODE |
| LOW | …ges/shared-python/shared/core/state_machine/service.py | 496 | except Exception as e: | CODE |
| LOW | …ges/shared-python/shared/core/state_machine/service.py | 500 | except Exception as rollback_err: | CODE |
| LOW | …ges/shared-python/shared/core/state_machine/service.py | 534 | except Exception as e: | CODE |
| LOW | …ges/shared-python/shared/core/state_machine/service.py | 542 | except Exception as e: | CODE |
| LOW⚡ | …ython/shared/core/state_machine/transition_payloads.py | 23 | except Exception: | CODE |
| LOW | …ed-python/shared/core/exceptions/knowhere_exception.py | 250 | except Exception as e: | STRING |
| LOW | packages/shared-python/shared/utils/json_utils.py | 71 | except Exception: # pragma: no cover | CODE |
| LOW | packages/shared-python/shared/utils/json_utils.py | 88 | except Exception: # pragma: no cover | CODE |
| LOW⚡ | packages/shared-python/shared/utils/token_estimate.py | 21 | except Exception: | CODE |
| LOW⚡ | packages/shared-python/shared/utils/token_estimate.py | 27 | except Exception: | CODE |
| LOW⚡ | packages/shared-python/shared/utils/token_estimate.py | 33 | except Exception: | CODE |
| 456 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …hared-python/shared/core/state_machine/service_sync.py | 52 | # ── Public API ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | …hared-python/shared/core/state_machine/service_sync.py | 348 | # ── Private helpers ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ges/shared-python/shared/core/state_machine/service.py | 50 | # ── Public API ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ges/shared-python/shared/core/state_machine/service.py | 389 | # ── Private helpers ───────────────────────────────────────────────── | COMMENT |
| MEDIUM | …red-python/shared/core/exceptions/domain_exceptions.py | 50 | # ============================================================================ | COMMENT |
| MEDIUM | …red-python/shared/core/exceptions/domain_exceptions.py | 52 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | …red-python/shared/core/exceptions/domain_exceptions.py | 69 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | …red-python/shared/core/exceptions/domain_exceptions.py | 71 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …red-python/shared/core/exceptions/domain_exceptions.py | 74 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | …red-python/shared/core/exceptions/domain_exceptions.py | 339 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | …red-python/shared/core/exceptions/domain_exceptions.py | 341 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …red-python/shared/core/exceptions/domain_exceptions.py | 345 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | …red-python/shared/core/exceptions/domain_exceptions.py | 457 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | …red-python/shared/core/exceptions/domain_exceptions.py | 459 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …red-python/shared/core/exceptions/domain_exceptions.py | 462 | # ============================================================================ | COMMENT |
| MEDIUM | …ed-python/shared/core/exceptions/knowhere_exception.py | 148 | # ======================================================================= | COMMENT |
| MEDIUM | …ed-python/shared/core/exceptions/knowhere_exception.py | 150 | # ======================================================================= | COMMENT |
| MEDIUM | …ages/shared-python/shared/core/billing/micro_dollar.py | 56 | # ============================================= | COMMENT |
| MEDIUM | …ages/shared-python/shared/core/billing/micro_dollar.py | 58 | # ============================================= | COMMENT |
| MEDIUM | …ages/shared-python/shared/core/billing/micro_dollar.py | 82 | # ============================================= | COMMENT |
| MEDIUM | …ages/shared-python/shared/core/billing/micro_dollar.py | 84 | # ============================================= | COMMENT |
| MEDIUM | …ages/shared-python/shared/core/billing/micro_dollar.py | 126 | # ============================================= | COMMENT |
| MEDIUM | …ages/shared-python/shared/core/billing/micro_dollar.py | 128 | # ============================================= | COMMENT |
| MEDIUM | …ages/shared-python/shared/core/billing/micro_dollar.py | 162 | # ============================================= | COMMENT |
| MEDIUM | …ages/shared-python/shared/core/billing/micro_dollar.py | 164 | # ============================================= | COMMENT |
| MEDIUM⚡ | …ared-python/shared/tests/test_agent_explore_harness.py | 43 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ared-python/shared/tests/test_agent_explore_harness.py | 45 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ared-python/shared/tests/test_agent_explore_harness.py | 64 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ared-python/shared/tests/test_agent_explore_harness.py | 66 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ared-python/shared/tests/test_agent_explore_harness.py | 270 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ared-python/shared/tests/test_agent_explore_harness.py | 272 | # -------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …hared-python/shared/services/redis/distributed_lock.py | 81 | # ------------------------------------------------------------------ | STRING |
| MEDIUM | …hared-python/shared/services/redis/distributed_lock.py | 83 | # ------------------------------------------------------------------ | STRING |
| MEDIUM⚡ | …hared-python/shared/services/redis/distributed_lock.py | 123 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …hared-python/shared/services/redis/distributed_lock.py | 125 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …hared-python/shared/services/redis/distributed_lock.py | 141 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …hared-python/shared/services/redis/distributed_lock.py | 143 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …ython/shared/services/retrieval/publication_service.py | 56 | # ── Public API ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | …on/shared/services/ai/openai_compatible_client_sync.py | 178 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM⚡ | …on/shared/services/ai/openai_compatible_client_sync.py | 180 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …on/shared/services/ai/openai_compatible_client_sync.py | 299 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …ed-python/shared/services/ai/iloveapi_quota_manager.py | 147 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …ed-python/shared/services/ai/iloveapi_quota_manager.py | 149 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …ges/shared-python/shared/services/ai/prompt_service.py | 17 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ges/shared-python/shared/services/ai/prompt_service.py | 19 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ges/shared-python/shared/services/ai/prompt_service.py | 66 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ges/shared-python/shared/services/ai/prompt_service.py | 68 | # ────────────────────────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …ages/shared-python/shared/services/quota/token_pool.py | 133 | # ------------------------------------------------------------------ | STRING |
| MEDIUM | …ages/shared-python/shared/services/quota/token_pool.py | 135 | # ------------------------------------------------------------------ | STRING |
| MEDIUM | …ages/shared-python/shared/services/quota/token_pool.py | 205 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …ages/shared-python/shared/services/quota/token_pool.py | 207 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …ages/shared-python/shared/services/quota/token_pool.py | 275 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …ages/shared-python/shared/services/quota/token_pool.py | 277 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | …hared-python/shared/services/jobs/lifecycle/service.py | 52 | # ── Public API ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | apps/api/app/services/rate_limit/config.py | 16 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | apps/api/app/services/rate_limit/config.py | 18 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | apps/api/app/services/rate_limit/config.py | 76 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | apps/api/app/services/rate_limit/config.py | 78 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | apps/api/app/services/rate_limit/config.py | 99 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | apps/api/app/services/rate_limit/config.py | 101 | # ------------------------------------------------------------------ | COMMENT |
| 74 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/backup-demo-originals.py | 53 | CODE | |
| LOW | scripts/retire_legacy_token_lookup.py | 19 | CODE | |
| LOW | scripts/restore-demo-originals.py | 87 | CODE | |
| LOW | scripts/publication_benchmark/admit_telemetry.py | 291 | CODE | |
| LOW | scripts/publication_benchmark/publication_execution.py | 506 | CODE | |
| LOW | scripts/publication_benchmark/publication_execution.py | 654 | CODE | |
| LOW | scripts/publication_benchmark/run_correctness.py | 101 | CODE | |
| LOW | scripts/publication_benchmark/capacity_execution.py | 140 | CODE | |
| LOW | scripts/publication_benchmark/run_record.py | 224 | CODE | |
| LOW | scripts/publication_benchmark/clone_db.py | 1347 | CODE | |
| LOW | scripts/publication_benchmark/capacity_campaign.py | 104 | CODE | |
| LOW | scripts/publication_benchmark/capacity_campaign.py | 241 | CODE | |
| LOW | scripts/publication_benchmark/report.py | 349 | CODE | |
| LOW | packages/shared-python/shared/core/logging.py | 143 | CODE | |
| LOW | packages/shared-python/shared/core/database.py | 120 | CODE | |
| LOW | packages/shared-python/shared/core/celery_router.py | 216 | CODE | |
| LOW | packages/shared-python/shared/core/config/database.py | 81 | CODE | |
| LOW | …hared-python/shared/core/state_machine/service_sync.py | 75 | CODE | |
| LOW | …ges/shared-python/shared/core/state_machine/service.py | 76 | CODE | |
| LOW | …hared-python/shared/tests/test_agent_tools_contract.py | 61 | CODE | |
| LOW | …on/shared/tests/test_publication_trace_sql_contract.py | 253 | CODE | |
| LOW | packages/shared-python/shared/utils/text_utils.py | 140 | CODE | |
| LOW | packages/shared-python/shared/utils/text_utils.py | 223 | CODE | |
| LOW | packages/shared-python/shared/utils/zip_download.py | 11 | CODE | |
| LOW | …ed-python/shared/services/encryption/fernet_service.py | 116 | CODE | |
| LOW | …red-python/shared/services/redis/redis_sync_service.py | 152 | CODE | |
| LOW | …s/shared-python/shared/services/redis/redis_service.py | 469 | CODE | |
| LOW | …s/shared-python/shared/services/redis/redis_monitor.py | 92 | CODE | |
| LOW | …s/shared-python/shared/services/redis/redis_monitor.py | 185 | CODE | |
| LOW | …s/shared-python/shared/services/redis/redis_monitor.py | 278 | CODE | |
| LOW | …red-python/shared/services/storage/zip_chunk_schema.py | 17 | CODE | |
| LOW | …red-python/shared/services/storage/zip_chunk_schema.py | 46 | CODE | |
| LOW | …d-python/shared/services/storage/zip_doc_navigation.py | 37 | CODE | |
| LOW | …d-python/shared/services/storage/zip_doc_navigation.py | 128 | CODE | |
| LOW | …-python/shared/services/storage/adapters/s3_adapter.py | 152 | CODE | |
| LOW | …on/shared/services/chunks/dataframe_chunk_converter.py | 291 | CODE | |
| LOW | …red-python/shared/services/chunks/chunk_connections.py | 112 | CODE | |
| LOW | …red-python/shared/services/chunks/chunk_connections.py | 169 | CODE | |
| LOW | …on/shared/services/retrieval/publication_token_copy.py | 91 | CODE | |
| LOW | …on/shared/services/retrieval/publication_token_copy.py | 127 | CODE | |
| LOW | …red-python/shared/services/retrieval/map_unit_index.py | 52 | CODE | |
| LOW | …ared-python/shared/services/retrieval/demo_examples.py | 18 | CODE | |
| LOW | …thon/shared/services/retrieval/hydration/table_grid.py | 79 | CODE | |
| LOW | …d-python/shared/services/retrieval/hydration/assets.py | 223 | CODE | |
| LOW | …ared/services/retrieval/agent_explore/evidence_pool.py | 173 | CODE | |
| LOW | …ices/retrieval/agent_explore/harness/openai_harness.py | 174 | CODE | |
| LOW | …shared/services/retrieval/agent_tools/explore_mount.py | 52 | CODE | |
| LOW | …ed/services/retrieval/agent_tools/tools/node_filter.py | 117 | CODE | |
| LOW | …/shared/services/retrieval/agent_tools/tools/assets.py | 186 | CODE | |
| LOW | …on/shared/services/retrieval/agent_tools/tools/read.py | 372 | CODE | |
| LOW | …shared/services/retrieval/search/map_unit_discovery.py | 224 | CODE | |
| LOW | …red-python/shared/services/retrieval/search/ranking.py | 25 | CODE | |
| LOW | …shared/services/retrieval/scoring/knowhere_provider.py | 171 | CODE | |
| LOW | …/shared-python/shared/services/http/pinned_outbound.py | 236 | CODE | |
| LOW | …ed-python/shared/services/ai/iloveapi_quota_manager.py | 96 | CODE | |
| LOW | …ges/shared-python/shared/services/ai/token_tracking.py | 147 | CODE | |
| LOW | …ges/shared-python/shared/services/ai/prompt_service.py | 119 | CODE | |
| LOW | …ges/shared-python/shared/services/ai/summary/engine.py | 74 | CODE | |
| LOW | …ges/shared-python/shared/services/ai/summary/engine.py | 99 | CODE | |
| LOW | …shared-python/shared/services/telemetry/api_metrics.py | 37 | CODE | |
| 121 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | scripts/publication_benchmark/clone_db.py | 398 | except Exception: | CODE |
| HIGH | scripts/publication_benchmark/clone_db.py | 746 | except Exception: | CODE |
| HIGH | …ckages/shared-python/shared/core/otel_gevent_compat.py | 23 | except ValueError: | CODE |
| HIGH | packages/shared-python/shared/utils/token_estimate.py | 27 | except Exception: | CODE |
| HIGH | packages/shared-python/shared/utils/token_estimate.py | 63 | except Exception: | CODE |
| HIGH | …on/shared/services/chunks/dataframe_chunk_converter.py | 201 | except json.JSONDecodeError: | CODE |
| HIGH | …-python/shared/services/ai/response_process_service.py | 31 | except Exception: | CODE |
| HIGH | …ges/shared-python/shared/services/ai/token_tracking.py | 64 | except ImportError: | CODE |
| HIGH | apps/api/main.py | 200 | except ImportError: | CODE |
| HIGH | …pi/app/services/auth/api_key_authentication_service.py | 206 | except Exception: | CODE |
| HIGH | …app/services/document_parser/support/stage_profiler.py | 49 | except ImportError: | CODE |
| HIGH | …pp/services/document_parser/structure/layout_parser.py | 402 | except (TypeError, ValueError): | CODE |
| HIGH | …ices/document_parser/structure/heading_llm_executor.py | 317 | except (TypeError, ValueError): | CODE |
| HIGH | apps/worker/app/services/common/file_utils.py | 36 | except Exception: | CODE |
| HIGH | apps/worker/app/services/document_agent/trace.py | 122 | except Exception: | CODE |
| HIGH | apps/worker/app/services/document_agent/trace.py | 276 | except Exception: | CODE |
| HIGH | apps/worker/app/services/document_agent/visual.py | 92 | except Exception: | CODE |
| HIGH | …services/document_agent/tools/find_toc_anchor_pages.py | 253 | except Exception: | CODE |
| HIGH | …p/services/document_agent/tools/probe_page_features.py | 389 | except Exception: | CODE |
| HIGH | …es/document_agent/tools/extract_toc_with_boundaries.py | 98 | except Exception: | CODE |
| HIGH | …ker/scripts/page_memory/debug_pm_stage2_calibration.py | 142 | except FileNotFoundError: | CODE |
| HIGH | apps/worker/scripts/page_memory/_debug_pm_shared.py | 612 | except FileNotFoundError: | CODE |
| HIGH | apps/worker/scripts/page_memory/_debug_pm_shared.py | 1480 | except (ValueError, json.JSONDecodeError, OSError): | CODE |
| HIGH | deprecated/mapnav/nav/nav_agent.py | 247 | except Exception: | CODE |
| HIGH | deprecated/mapnav/nav/nav_assets.py | 401 | except (ValueError, json.JSONDecodeError): | CODE |
| HIGH | deprecated/mapnav/nav/nav_assets.py | 410 | except (ValueError, json.JSONDecodeError): | CODE |
| HIGH | deprecated/mapnav/nav/nav_assets.py | 419 | except (ValueError, json.JSONDecodeError): | CODE |
| HIGH | deprecated/mapnav/nav/nav_assets.py | 468 | except (ValueError, json.JSONDecodeError): | CODE |
| HIGH | deprecated/mapnav/nav/nav_projection.py | 29 | except Exception: | CODE |
| HIGH | deprecated/mapnav/nav/nav_control.py | 54 | except Exception: | CODE |
| HIGH | deprecated/mapnav/nav/nav_control.py | 106 | except Exception: | CODE |
| HIGH | deprecated/mapnav/nav/nav_policy.py | 16 | except Exception: | CODE |
| HIGH | deprecated/mapnav/nav/nav_plan.py | 132 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/shared-python/shared/core/database.py | 20 | logger = logging.getLogger(__name__) | CODE |
| LOW | packages/shared-python/shared/core/response/__init__.py | 11 | __all__ = [ | CODE |
| LOW | packages/shared-python/shared/core/config/__init__.py | 29 | __all__ = [ | CODE |
| LOW | …es/shared-python/shared/core/state_machine/__init__.py | 19 | __all__ = [ | CODE |
| LOW | …ckages/shared-python/shared/core/constants/__init__.py | 8 | __all__ = [ | CODE |
| LOW | …kages/shared-python/shared/core/exceptions/__init__.py | 25 | __all__ = [ | CODE |
| LOW | packages/shared-python/shared/core/billing/__init__.py | 26 | __all__ = [ | CODE |
| LOW | packages/shared-python/shared/repositories/__init__.py | 8 | __all__ = ["CreditsRepository", "SyncCreditsRepository"] | CODE |
| LOW | packages/shared-python/shared/models/__init__.py | 10 | __all__ = [ | CODE |
| LOW | …kages/shared-python/shared/models/database/__init__.py | 50 | __all__ = [ | CODE |
| LOW | …es/shared-python/shared/models/schemas/job_metadata.py | 129 | def set_file_source(metadata: Dict[str, Any], *, source_file_name: str) -> None: | CODE |
| LOW | …ages/shared-python/shared/services/webhook/__init__.py | 5 | __all__ = ["WebhookDispatcher", "get_webhook_dispatcher"] | CODE |
| LOW | …s/shared-python/shared/services/encryption/__init__.py | 8 | __all__ = ["FernetService", "get_fernet_service"] | CODE |
| LOW | …ckages/shared-python/shared/services/redis/__init__.py | 24 | __all__ = [ | CODE |
| LOW | packages/shared-python/shared/services/auth/__init__.py | 5 | __all__ = ["ensure_better_auth_user_table"] | CODE |
| LOW | …ed-python/shared/services/storage/adapters/__init__.py | 8 | __all__ = ["FileSystemStorageAdapter", "S3StorageAdapter"] | CODE |
| LOW | …shared-python/shared/services/retrieval/app_service.py | 13 | __all__ = ["run_retrieval_query"] | CODE |
| LOW | …red-python/shared/services/retrieval/map_unit_index.py | 45 | __all__ = ["MAP_UNIT_INDEX_FORMAT_VERSION", "replace_document_map_units"] | CODE |
| LOW | …red-python/shared/services/retrieval/trace/__init__.py | 6 | __all__ = [ | CODE |
| LOW | …ared-python/shared/services/retrieval/graph/service.py | 32 | logger = logging.getLogger(__name__) | CODE |
| LOW | …on/shared/services/retrieval/agent_explore/__init__.py | 17 | __all__ = [ | CODE |
| LOW | …d/services/retrieval/agent_explore/harness/__init__.py | 14 | __all__ = ["Harness", "resolve_harness"] | CODE |
| LOW | …thon/shared/services/retrieval/agent_tools/registry.py | 33 | logger = logging.getLogger(__name__) | CODE |
| LOW | …thon/shared/services/retrieval/agent_tools/__init__.py | 42 | __all__ = [ | CODE |
| LOW | …hared/services/retrieval/agent_tools/tools/__init__.py | 21 | __all__ = [ | CODE |
| LOW | packages/shared-python/shared/services/http/__init__.py | 46 | __all__ = [ | CODE |
| LOW | packages/shared-python/shared/services/ai/__init__.py | 9 | __all__ = [ | CODE |
| LOW | …ckages/shared-python/shared/services/quota/__init__.py | 5 | __all__ = ["BaseQuotaManager", "TokenConfig", "TokenLease"] | CODE |
| LOW | …es/shared-python/shared/services/telemetry/__init__.py | 15 | __all__ = [ | CODE |
| LOW | …hared/services/jobs/lifecycle/publication_trace_sql.py | 391 | __all__ = [ | CODE |
| LOW | …ages/shared-python/shared/services/billing/__init__.py | 12 | __all__ = [ | CODE |
| LOW | apps/api/app/core/__init__.py | 25 | __all__ = [ | CODE |
| LOW | apps/api/app/core/middleware/__init__.py | 6 | __all__ = ["setup_cors", "LoggingMiddleware"] | CODE |
| LOW | apps/api/app/repositories/__init__.py | 9 | __all__ = [ | CODE |
| LOW | apps/api/app/mcp/__init__.py | 3 | __all__ = ["create_retrieval_mcp_server"] | CODE |
| LOW | apps/api/app/api/api_router.py | 15 | __all__ = ["api_router"] | CODE |
| LOW | apps/api/app/api/v1/api_v1.py | 68 | __all__ = ["api_router"] | CODE |
| LOW | apps/api/app/api/v2/api_v2.py | 14 | __all__ = ["api_router"] | CODE |
| LOW | apps/api/app/api/v2/routes/documents.py | 42 | __all__ = ["router"] | CODE |
| LOW | apps/api/app/services/document_ingestion/__init__.py | 3 | __all__ = ["DocumentIngestionService"] | CODE |
| LOW | apps/api/app/services/rate_limit/__init__.py | 20 | __all__ = [ | CODE |
| LOW | apps/api/app/services/jobs/__init__.py | 7 | __all__ = [ | CODE |
| LOW | apps/api/app/services/jobs/read_service.py | 12 | __all__ = [ | CODE |
| LOW | …s/api/app/services/billing/billing_workflow_service.py | 17 | __all__ = ["BillingWorkflowService", "ParseUsageResponse"] | CODE |
| LOW | apps/api/scripts/add_credits.py | 106 | async def _set_user_tier(session: AsyncSession, user_id: str, tier_name: str) -> None: | CODE |
| LOW | …ions/4a5b6c7d8e9f_add_retrieval_serving_generations.py | 16 | __all__ = [ | CODE |
| LOW | …/6c7d8e9f0a1b_add_retrieval_namespace_map_snapshots.py | 16 | __all__ = [ | CODE |
| LOW | …ns/9f0a1b2c3d4e_drop_retrieval_namespace_statistics.py | 22 | __all__ = [ | CODE |
| LOW | …versions/e4f5a6b7c8d9_drop_chunk_search_tsv_columns.py | 20 | __all__ = [ | CODE |
| LOW | …ersions/2b3c4d5e6f7a_drop_map_unit_term_search_text.py | 21 | __all__ = [ | CODE |
| LOW | …mbic/versions/5b6c7d8e9f0a_add_term_trigram_indexes.py | 15 | __all__ = [ | CODE |
| LOW | apps/worker/app/services/__init__.py | 3 | __all__ = [] | CODE |
| LOW | …ices/document_parser/formats/markdown/deferred_task.py | 35 | __all__ = [ | CODE |
| LOW | …ker/app/services/document_parser/profiling/taxonomy.py | 24 | __all__ = ["PdfRoutingCategory"] | CODE |
| LOW⚡ | …app/services/document_parser/profiling/doc_profiler.py | 256 | __all__ = ["profile_document"] | CODE |
| LOW | …pp/services/document_parser/profiling/profile_model.py | 81 | __all__ = ["ParserDocumentProfile", "ParserTocProfile", "TocEvidence"] | CODE |
| LOW | …ent_parser/orchestration/office_container_validator.py | 96 | __all__ = ["validate_office_container"] | CODE |
| LOW | …nt_parser/orchestration/office_container_inspection.py | 56 | __all__ = [ | CODE |
| LOW | apps/worker/app/services/document_ingestion/service.py | 5 | __all__ = ["parse_uploaded_file_job"] | CODE |
| LOW | apps/worker/app/services/common/__init__.py | 13 | __all__ = [ | CODE |
| 21 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …ges/shared-python/shared/services/ai/token_tracking.py | 0 | walk up the greenlet parent chain to find a registered root id. | STRING |
| HIGH | …ages/shared-python/shared/services/ai/llm_overrides.py | 0 | walk up the greenlet parent chain to find a registered root id. | STRING |
| HIGH | …app/services/document_parser/support/stage_profiler.py | 0 | walk up the greenlet parent chain to find a registered root id. | STRING |
| HIGH | apps/api/tests/contract/test_documents_contract.py | 0 | insert into documents ( document_id, user_id, namespace, status, current_job_result_id, source_file_name, parse_track, c | STRING |
| HIGH | apps/api/tests/contract/test_job_creation_contract.py | 0 | insert into documents ( document_id, user_id, namespace, status, current_job_result_id, source_file_name, parse_track, c | STRING |
| HIGH | apps/api/tests/support/contract_database.py | 0 | insert into documents ( document_id, user_id, namespace, status, current_job_result_id, source_file_name, parse_track, c | STRING |
| HIGH | apps/api/tests/contract/test_documents_contract.py | 0 | update documents set current_job_result_id = :job_result_id where document_id = :document_id | STRING |
| HIGH | apps/api/tests/contract/test_retrieval_contract.py | 0 | update documents set current_job_result_id = :job_result_id where document_id = :document_id | STRING |
| HIGH | apps/api/tests/contract/test_job_creation_contract.py | 0 | update documents set current_job_result_id = :job_result_id where document_id = :document_id | STRING |
| HIGH | …s/contract/test_retrieval_classic_map_unit_contract.py | 0 | update documents set current_job_result_id = :job_result_id where document_id = :document_id | STRING |
| HIGH | …api-contract/test_retrieval_map_unit_index_contract.py | 0 | update documents set current_job_result_id = :job_result_id where document_id = :document_id | STRING |
| HIGH | apps/api/tests/support/sync_contract_database.py | 0 | insert into "user" (id, name, email) values (:user_id, :name, :email) | STRING |
| HIGH | apps/api/tests/support/contract_database.py | 0 | insert into "user" (id, name, email) values (:user_id, :name, :email) | STRING |
| HIGH | apps/worker/tests/support/contract_database.py | 0 | insert into "user" (id, name, email) values (:user_id, :name, :email) | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | scripts/publication_benchmark/clone_db.py | 278 | "/from/global/pg_control 2>/dev/null || true", | CODE |
| HIGH⚡ | packages/shared-python/shared/services/ai/llm_mock.py | 131 | "detect-toc-range": '{"toc_start": null, "toc_end": null, "confidence": "low"}', | CODE |
| HIGH⚡ | packages/shared-python/shared/services/ai/llm_mock.py | 136 | '"entities": [], "chart": null}' | CODE |
| HIGH⚡ | packages/shared-python/shared/services/ai/llm_mock.py | 144 | '"entities": [], "chart": null}' | CODE |
| HIGH | …ges/shared-python/shared/services/ai/prompt_service.py | 940 | "toc_start": null, | CODE |
| HIGH | …ges/shared-python/shared/services/ai/prompt_service.py | 941 | "toc_end": null, | CODE |
| HIGH | apps/api/scripts/ensure_test_environment.py | 53 | "Ubuntu: sudo apt-get update && sudo apt-get install -y " | CODE |
| HIGH | …ker/app/services/document_agent/calibration/prompts.py | 13 | "found_page": "number|null, the physical page number where it starts", | CODE |
| HIGH | …/app/services/document_agent/coarse_profile/prompts.py | 15 | "you observe (largest y) when any header is present, otherwise null; " | CODE |
| HIGH | deprecated/mapnav/nav/nav_plan.py | 677 | '"cardinality": null},\n' | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …thon/shared/services/retrieval/agent_tools/registry.py | 121 | budget: ToolBudget = field(default_factory=ToolBudget) | COMMENT |
| LOW | apps/api/alembic.ini | 1 | # A generic, single database configuration. | COMMENT |
| LOW | apps/api/alembic.ini | 21 | COMMENT | |
| LOW | apps/api/alembic.ini | 41 | COMMENT | |
| LOW | apps/api/alembic.ini | 61 | # behavior of splitting on spaces and/or commas. | COMMENT |
| LOW | apps/api/alembic.ini | 81 | # are written from script.py.mako | COMMENT |
| LOW | apps/api/alembic.ini | 101 | COMMENT | |
| LOW | apps/api/app/api/v1/routes/webhook.py | 181 | raise | COMMENT |
| LOW | apps/api/app/api/v1/routes/webhook.py | 201 | # logger.info(f"Headers: {dict(request.headers)}") | COMMENT |
| LOW | apps/worker/requirements.txt | 1 | # This file was autogenerated by uv via the following command: | COMMENT |
| LOW | apps/worker/requirements.txt | 21 | annotated-doc==0.0.4 | COMMENT |
| LOW | apps/worker/requirements.txt | 41 | # via aiohttp | COMMENT |
| LOW | apps/worker/requirements.txt | 61 | # via | COMMENT |
| LOW | apps/worker/requirements.txt | 81 | charset-normalizer==3.4.7 | COMMENT |
| LOW | apps/worker/requirements.txt | 101 | crcmod==1.7 | COMMENT |
| LOW | apps/worker/requirements.txt | 121 | et-xmlfile==2.0.0 | COMMENT |
| LOW | apps/worker/requirements.txt | 141 | # knowhere-shared | COMMENT |
| LOW | apps/worker/requirements.txt | 161 | # via | COMMENT |
| LOW | apps/worker/requirements.txt | 181 | # botocore | COMMENT |
| LOW | apps/worker/requirements.txt | 201 | markdownify==1.2.2 | COMMENT |
| LOW | apps/worker/requirements.txt | 221 | # rank-bm25 | COMMENT |
| LOW | apps/worker/requirements.txt | 241 | # opentelemetry-instrumentation-asgi | COMMENT |
| LOW | apps/worker/requirements.txt | 261 | # via opentelemetry-instrumentation-fastapi | COMMENT |
| LOW | apps/worker/requirements.txt | 281 | # opentelemetry-instrumentation-asgi | COMMENT |
| LOW | apps/worker/requirements.txt | 301 | pandas==2.3.1 | COMMENT |
| LOW | apps/worker/requirements.txt | 321 | # aiohttp | COMMENT |
| LOW | apps/worker/requirements.txt | 341 | pycparser==3.0 ; implementation_name != 'PyPy' | COMMENT |
| LOW | apps/worker/requirements.txt | 361 | # fastapi-users | COMMENT |
| LOW | apps/worker/requirements.txt | 381 | # pytest-mock | COMMENT |
| LOW | apps/worker/requirements.txt | 401 | # via knowhere-worker-app | COMMENT |
| LOW | apps/worker/requirements.txt | 421 | regex==2026.4.4 | COMMENT |
| LOW | apps/worker/requirements.txt | 441 | sniffio==1.3.1 | COMMENT |
| LOW | apps/worker/requirements.txt | 461 | tenacity==9.1.4 | COMMENT |
| LOW | apps/worker/requirements.txt | 481 | # opentelemetry-semantic-conventions | COMMENT |
| LOW | apps/worker/requirements.txt | 501 | # via | COMMENT |
| LOW | deprecated/mapnav/nav/nav_types.py | 41 | # Display budget for the one-shot planning map; executor still uses map_char_limit. | COMMENT |
| LOW | deprecated/mapnav/nav/nav_types.py | 261 | subgoal_widen_gaps: Dict[str, str] = field(default_factory=dict) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | deploy/local-dev/localstack/init/setup-aws-resources.sh | 19 | # Create the buckets used by local development. | COMMENT |
| MEDIUM | deploy/local-dev/localstack/init/setup-aws-resources.sh | 55 | # Create the SNS topic used for upload notifications. | COMMENT |
| MEDIUM | packages/shared-python/shared/core/database.py | 72 | # Create the async session factory. | COMMENT |
| MEDIUM⚡ | packages/shared-python/shared/core/database.py | 160 | # Create an app-level context manager for operations without an injected DB session. | COMMENT |
| MEDIUM⚡ | packages/shared-python/shared/core/config/app.py | 75 | # Create the shared application config instance. | COMMENT |
| MEDIUM⚡ | packages/shared-python/shared/core/config/app.py | 81 | # Create the Redis connection-pool manager. | COMMENT |
| MEDIUM⚡ | packages/shared-python/shared/core/config/app.py | 84 | # Create the Redis config manager. | COMMENT |
| MEDIUM | apps/api/scripts/reset_alembic.py | 21 | # Create the SQLAlchemy engine. | COMMENT |
| MEDIUM | …pp/services/document_parser/formats/markdown/parser.py | 375 | # Create a placeholder chunk so the previous heading's path | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | README.md | 81 | ### Step 1: Parse and Build Memory | COMMENT |
| LOW | README.md | 88 | ### Step 2: Agentic Retrieval | COMMENT |
| LOW | …ared-python/shared/services/billing/credits_service.py | 164 | # Step 1: Insert transaction record (ledger entry) | COMMENT |
| LOW⚡ | …ared-python/shared/services/billing/credits_service.py | 175 | # Step 2: Recalculate balance from ledger (source of truth) | COMMENT |
| LOW⚡ | …ared-python/shared/services/billing/credits_service.py | 180 | # Step 3: Update materialized view | COMMENT |
| LOW | apps/api/app/services/rate_limit/tier_service.py | 98 | # Step 1: sum lifetime successful payments in micro-dollars | COMMENT |
| LOW | apps/api/app/services/rate_limit/tier_service.py | 120 | # Step 4: persist the tier on user_balances | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 141 | # Step 1: Start task | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 170 | # Step 2: Upload from memory (BytesIO, no disk write) | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 193 | # Step 3: Process | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 220 | # Step 4: Download PDF to memory | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 434 | # Step 1: PPTX → PDF (in memory) | COMMENT |
| LOW⚡ | …r/app/services/document_parser/structure/toc_parser.py | 117 | # Step 1: find all TOC keywords | COMMENT |
| LOW⚡ | …r/app/services/document_parser/structure/toc_parser.py | 123 | # Step 2: if no TOC keywords found, use the first line as the candidate area | COMMENT |
| LOW⚡ | …r/app/services/document_parser/structure/toc_parser.py | 132 | # Step 3: build candidate areas for each start index | COMMENT |
| LOW⚡ | …r/app/services/document_parser/structure/toc_parser.py | 288 | # Step 1: detect candidate areas (may be multiple) | COMMENT |
| LOW⚡ | …r/app/services/document_parser/structure/toc_parser.py | 296 | # Step 2: evaluate each candidate area with LLM (parallel when multiple) | COMMENT |
| LOW | …r/app/services/document_parser/structure/toc_parser.py | 516 | # Step 3: Remove TOC lines from md_lines (process in reverse order to correct indices) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ared-python/shared/services/billing/credits_service.py | 164 | # Step 1: Insert transaction record (ledger entry) | COMMENT |
| LOW⚡ | …ared-python/shared/services/billing/credits_service.py | 175 | # Step 2: Recalculate balance from ledger (source of truth) | COMMENT |
| LOW⚡ | …ared-python/shared/services/billing/credits_service.py | 180 | # Step 3: Update materialized view | COMMENT |
| LOW | apps/api/app/services/rate_limit/tier_service.py | 98 | # Step 1: sum lifetime successful payments in micro-dollars | COMMENT |
| LOW | apps/api/app/services/rate_limit/tier_service.py | 120 | # Step 4: persist the tier on user_balances | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 141 | # Step 1: Start task | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 170 | # Step 2: Upload from memory (BytesIO, no disk write) | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 193 | # Step 3: Process | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 220 | # Step 4: Download PDF to memory | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 434 | # Step 1: PPTX → PDF (in memory) | COMMENT |
| LOW⚡ | …r/app/services/document_parser/structure/toc_parser.py | 117 | # Step 1: find all TOC keywords | COMMENT |
| LOW⚡ | …r/app/services/document_parser/structure/toc_parser.py | 123 | # Step 2: if no TOC keywords found, use the first line as the candidate area | COMMENT |
| LOW⚡ | …r/app/services/document_parser/structure/toc_parser.py | 132 | # Step 3: build candidate areas for each start index | COMMENT |
| LOW⚡ | …r/app/services/document_parser/structure/toc_parser.py | 288 | # Step 1: detect candidate areas (may be multiple) | COMMENT |
| LOW⚡ | …r/app/services/document_parser/structure/toc_parser.py | 296 | # Step 2: evaluate each candidate area with LLM (parallel when multiple) | COMMENT |
| LOW | …r/app/services/document_parser/structure/toc_parser.py | 516 | # Step 3: Remove TOC lines from md_lines (process in reverse order to correct indices) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | AGENTS.md | 243 | │ ├── doc_nav.json # Hierarchical navigation tree for agentic retrieval | CODE |
| MEDIUM | …sign/retrieval-heart-vessel-trace-optimization-plan.md | 548 | ### Deferred: LLM orchestration improvements | COMMENT |
| MEDIUM | …thon/shared/services/retrieval/agent_explore/config.py | 31 | # episode.py; this is completion budget, not context window). | COMMENT |
| MEDIUM | …/demo_documents/stem-transformers-tutorial/chunks.json | 5676 | "content": "►\nLibrary system\n►\nImagine you're looking for information on a specific topic (query)\n►\nEach book | CODE |
| MEDIUM | …/demo_documents/stem-transformers-tutorial/chunks.json | 5676 | "content": "►\nLibrary system\n►\nImagine you're looking for information on a specific topic (query)\n►\nEach book | CODE |
| MEDIUM | …/versions/e5f6a7b8c9d0_add_agentic_retrieval_tables.py | 21 | # ── retrieval_runs: one row per agentic retrieval query ── | COMMENT |
| MEDIUM | apps/worker/scripts/debug_retrieval.py | 473 | # --query mode should exercise the production agentic path; omitting | COMMENT |
| MEDIUM | deprecated/mapnav/nav/nav_agent.py | 414 | # Checklist: wave orchestration. Every episode runs plan + harvest + control. | COMMENT |
| MEDIUM | deprecated/mapnav/nav/nav_types.py | 66 | # WHERE node filter (pre-harvest). Off until orchestrate enables a subgoal. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/publication_benchmark/run_correctness.py | 101 | CODE | |
| LOW | …ges/shared-python/shared/services/redis/key_builder.py | 221 | CODE | |
| LOW | …shared-python/shared/services/retrieval/app_service.py | 16 | CODE | |
| LOW | …ared-python/shared/services/retrieval/cache_service.py | 65 | CODE | |
| LOW | …red-python/shared/services/retrieval/trace/recorder.py | 33 | CODE | |
| LOW | …ython/shared/services/retrieval/agent_tools/snippet.py | 78 | CODE | |
| LOW | …red-python/shared/services/retrieval/execution/plan.py | 37 | CODE | |
| LOW | …n/shared/services/retrieval/execution/query_request.py | 41 | CODE | |
| LOW | …ges/shared-python/shared/services/ai/summary/engine.py | 187 | CODE | |
| LOW | …ges/shared-python/shared/services/ai/summary/engine.py | 204 | CODE | |
| LOW | …ges/shared-python/shared/services/ai/summary/engine.py | 220 | CODE | |
| LOW | apps/api/app/api/v1/routes/documents.py | 60 | CODE | |
| LOW | apps/api/app/api/v1/routes/jobs.py | 58 | CODE | |
| LOW | apps/api/app/api/v2/routes/jobs.py | 51 | CODE | |
| LOW | …tract/test_publication_telemetry_admission_contract.py | 53 | CODE | |
| LOW | apps/api/tests/support/contract_database.py | 358 | CODE | |
| LOW | apps/api/tests/support/contract_database.py | 741 | CODE | |
| LOW | …s/worker/app/services/document_parser/parse_service.py | 10 | CODE | |
| LOW | …pp/services/document_parser/formats/markdown/parser.py | 230 | CODE | |
| LOW | …pp/services/document_parser/structure/layout_parser.py | 477 | CODE | |
| LOW | apps/worker/tests/support/contract_database.py | 37 | CODE | |
| LOW | deprecated/mapnav/nav/nav_agent.py | 278 | CODE | |
| LOW | deprecated/mapnav/nav/nav_agent.py | 318 | CODE | |
| LOW | deprecated/mapnav/nav/nav_llm.py | 162 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | …ared-python/shared/tests/test_agent_explore_harness.py | 271 | # harness/resolve.py: AGENT_EXPLORE_HARNESS switch | COMMENT |
| MEDIUM | …s/shared-python/shared/services/redis/redis_monitor.py | 261 | """Get a comprehensive monitoring report.""" | STRING |
| MEDIUM | …es/shared-python/shared/services/retrieval/settings.py | 7 | # agent tool-loop harness caps (``ToolBudget.max_chars``). | COMMENT |
| MEDIUM | …thon/shared/services/retrieval/agent_explore/config.py | 13 | # Model for AGENT_EXPLORE_HARNESS=cursor_sdk (harness/cursor_harness.py) — | COMMENT |
| MEDIUM | …thon/shared/services/retrieval/agent_explore/config.py | 14 | # a separate constant from AGENT_EXPLORE_MODEL because that harness's | COMMENT |
| MEDIUM | …thon/shared/services/retrieval/agent_tools/registry.py | 37 | # ``scoring/map_lighting.py`` and each harness's ``tool_message_content`` call. | COMMENT |
| MEDIUM | deprecated/mapnav/nav/nav_types.py | 60 | # Default 1 so shared-checklist probe/harness match without silent overrides. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …ared-python/shared/tests/test_agent_tools_map_scope.py | 86 | CODE | |
| MEDIUM | …hared-python/shared/tests/test_agent_tools_contract.py | 25 | CODE | |
| MEDIUM | …es/shared-python/shared/tests/test_agent_tools_grep.py | 129 | CODE | |
| MEDIUM | …n/shared/tests/test_agent_tools_explore_table_image.py | 72 | CODE | |
| MEDIUM | …ared/tests/test_agent_tools_discovery_read_contract.py | 89 | CODE | |
| MEDIUM | …es/shared-python/shared/tests/test_agent_tools_read.py | 73 | CODE | |
| MEDIUM | …red-python/shared/tests/test_agent_tools_read_trace.py | 48 | CODE | |
| MEDIUM | …sts/contract/test_agent_evidence_retention_contract.py | 138 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …es/shared-python/shared/services/redis/retry_policy.py | 28 | Execute a Redis operation with retry support. Args: operation: Operation callback to execu | STRING |
| HIGH | …ared-python/shared/services/billing/credits_service.py | 312 | Deduct credits using ledger pattern. Raises InsufficientCreditsException if balance too low. A | STRING |
| HIGH | …ices/document_parser/formats/pdf/pymupdf_subprocess.py | 338 | Run PyMuPDF work through a bounded gevent threadpool slot. Args: worker_fn: Top-level function with signatu | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ges/shared-python/shared/services/ai/token_tracking.py | 50 | # Check if this greenlet was registered as a child | COMMENT |
| LOW | …ared-python/shared/services/billing/credits_service.py | 384 | # Check if already refunded | COMMENT |
| LOW | apps/api/app/api/v1/routes/webhook_secrets.py | 146 | # Check if secret already exists for this endpoint | COMMENT |
| LOW | apps/api/app/services/rate_limit/config.py | 154 | # Check if there are actual changes | COMMENT |
| LOW | …er/app/services/document_parser/formats/html/parser.py | 263 | # Check if purely numeric | COMMENT |
| LOW | …rvices/document_parser/structure/metadata_extractor.py | 113 | # Check if this is a # heading | COMMENT |
| LOW | …rvices/document_parser/structure/metadata_extractor.py | 198 | # Check if span contains table html | COMMENT |
| LOW | …rvices/document_parser/structure/metadata_extractor.py | 409 | # Check if this is a tracked heading | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ckages/shared-python/shared/tests/test_asset_inline.py | 124 | ("asset_type", "file_path", "placeholder", "display_marker"), | CODE |
| LOW⚡ | …/tests/contract/test_self_hosted_telemetry_contract.py | 92 | "email": "user@example.com", | CODE |
| LOW | …/tests/contract/test_self_hosted_telemetry_contract.py | 150 | "email": "user@example.com", | CODE |
| LOW | …/tests/contract/test_self_hosted_telemetry_contract.py | 161 | "email": "user@example.com", | CODE |
| LOW | …/tests/contract/test_self_hosted_telemetry_contract.py | 170 | "email": "user@example.com", | CODE |
| LOW | …/tests/contract/test_self_hosted_telemetry_contract.py | 317 | "email": "user@example.com", | CODE |
| LOW | …/tests/contract/test_self_hosted_telemetry_contract.py | 381 | "email": "user@example.com", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …documents/financial-micron-report-9c0becf5/chunks.json | 1724 | "content": "March 18, 2026\n30\nOutlook\n• We expect higher price, lower cost and favorable mix to \nall contribut | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/smoke_byok.sh | 3 | # Usage: | COMMENT |