Knowhere extracts, parses, and outputs structured chunks ready for AI Agents and RAG.
This report presents the forensic synthetic code analysis of Ontos-AI/knowhere, a Python project with 2,722 GitHub stars. SynthScan v2.0 examined 246,659 lines of code across 1246 source files, recording 3033 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 14.3 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 3033 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| 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 | 113 | def test_staging_templates_preserve_expected_staging_configuration( | CODE |
| LOW | deploy/ecs/test_render_task_definitions.py | 142 | def test_staging_worker_preserves_evidence_selected_capacity(tmp_path: Path) -> None: | CODE |
| LOW | deploy/ecs/test_render_task_definitions.py | 170 | def test_renderer_rejects_unresolved_placeholders() -> None: | CODE |
| LOW | deploy/ecs/render_task_definitions.py | 70 | def validate_rendered_definition(definition: object) -> None: | CODE |
| LOW | packages/shared-python/shared/core/logging.py | 96 | def contains_database_credentials(value: object) -> bool: | CODE |
| LOW | packages/shared-python/shared/core/logging.py | 101 | def _is_expected_client_exception(exception: BaseException) -> bool: | CODE |
| LOW | packages/shared-python/shared/core/logging.py | 123 | def _downgrade_expected_logfire_exception( | CODE |
| LOW | packages/shared-python/shared/core/logging.py | 281 | def _configure_noisy_third_party_loggers() -> None: | CODE |
| LOW | packages/shared-python/shared/core/database.py | 199 | def setup_pool_event_listeners(): | CODE |
| LOW | …ckages/shared-python/shared/core/otel_gevent_compat.py | 27 | def patch_otel_context_for_gevent() -> None: | CODE |
| LOW | …-python/shared/core/response/error_response_builder.py | 11 | def build_standard_error_response( | CODE |
| LOW | …ckages/shared-python/shared/core/response/ErrorCode.py | 128 | def get_http_status_from_error_code( | CODE |
| LOW | …ckages/shared-python/shared/core/response/ErrorCode.py | 135 | def get_error_code_from_http_status( | CODE |
| LOW | packages/shared-python/shared/core/config/database.py | 63 | def get_async_ssl_connect_args(self) -> dict: | CODE |
| LOW | packages/shared-python/shared/core/config/qstash.py | 45 | def qstash_failure_callback_url(self) -> Optional[str]: | CODE |
| LOW | packages/shared-python/shared/core/config/celery.py | 106 | def get_celery_result_backend(self) -> str: | CODE |
| LOW | packages/shared-python/shared/core/config/storage.py | 118 | def validate_storage_credentials(self) -> "StorageConfig": | CODE |
| LOW | packages/shared-python/shared/core/config/storage.py | 240 | def get_cached_storage_adapter(): | CODE |
| LOW | packages/shared-python/shared/core/config/app.py | 37 | def validate_worker_redelivery_window(self) -> "AppConfig": | CODE |
| LOW⚡ | packages/shared-python/shared/core/config/base.py | 126 | def validate_telemetry_posthog_host(cls, v): | CODE |
| LOW⚡ | packages/shared-python/shared/core/config/base.py | 132 | def validate_telemetry_batch_size(cls, v): | CODE |
| LOW⚡ | packages/shared-python/shared/core/config/base.py | 140 | def validate_telemetry_request_timeout_seconds(cls, v): | CODE |
| LOW⚡ | packages/shared-python/shared/core/config/base.py | 148 | def validate_telemetry_aggregate_interval_seconds(cls, v): | CODE |
| LOW⚡ | …ython/shared/core/state_machine/transition_payloads.py | 15 | def serialize_transition_metadata( | CODE |
| LOW⚡ | …ython/shared/core/state_machine/transition_payloads.py | 27 | def build_failure_transition_metadata( | CODE |
| LOW | …ython/shared/core/state_machine/transition_payloads.py | 61 | def build_progress_cache_payload( | CODE |
| LOW | …-python/shared/core/state_machine/transition_runner.py | 28 | def prepare_transition_attempt( | CODE |
| LOW⚡ | …-python/shared/core/state_machine/transition_runner.py | 63 | def should_retry_cas_conflict( | CODE |
| LOW⚡ | …-python/shared/core/state_machine/transition_runner.py | 71 | def get_cas_retry_delay_seconds(attempt_index: int) -> float: | CODE |
| LOW⚡ | …-python/shared/core/state_machine/transition_runner.py | 75 | def build_cas_conflict_outcome( | CODE |
| LOW | …-python/shared/core/state_machine/transition_runner.py | 91 | def build_transition_exception_outcome( | CODE |
| LOW | …-python/shared/core/state_machine/transition_runner.py | 107 | def build_rollback_exception_outcome( | CODE |
| LOW | …ed-python/shared/core/exceptions/knowhere_exception.py | 316 | def _reconstruct_knowhere_exception(cls, state): | CODE |
| LOW | packages/shared-python/shared/tests/test_llm_config.py | 29 | def test_flat_root_applies_to_both_channels() -> None: | CODE |
| LOW | packages/shared-python/shared/tests/test_llm_config.py | 41 | def test_models_map_same_endpoint_different_models() -> None: | CODE |
| LOW | packages/shared-python/shared/tests/test_llm_config.py | 53 | def test_models_map_partial_leaves_other_channel_default() -> None: | CODE |
| LOW | packages/shared-python/shared/tests/test_llm_config.py | 63 | def test_models_overrides_root_model_per_channel() -> None: | CODE |
| LOW⚡ | packages/shared-python/shared/tests/test_llm_config.py | 74 | def test_text_only_leaves_vision_on_defaults() -> None: | CODE |
| LOW⚡ | packages/shared-python/shared/tests/test_llm_config.py | 80 | def test_vision_only_leaves_text_on_defaults() -> None: | CODE |
| LOW⚡ | packages/shared-python/shared/tests/test_llm_config.py | 86 | def test_two_different_endpoints() -> None: | CODE |
| LOW | packages/shared-python/shared/tests/test_llm_config.py | 100 | def test_channel_replaces_root() -> None: | CODE |
| LOW | packages/shared-python/shared/tests/test_llm_config.py | 113 | def test_root_plus_text_override() -> None: | CODE |
| LOW⚡ | packages/shared-python/shared/tests/test_llm_config.py | 124 | def test_partial_root_rejected() -> None: | CODE |
| LOW⚡ | packages/shared-python/shared/tests/test_llm_config.py | 129 | def test_auth_without_model_rejected() -> None: | CODE |
| LOW⚡ | packages/shared-python/shared/tests/test_llm_config.py | 134 | def test_empty_config_rejected() -> None: | CODE |
| LOW⚡ | packages/shared-python/shared/tests/test_llm_config.py | 139 | def test_masked_dump_masks_root_and_channels() -> None: | CODE |
| LOW⚡ | …kages/shared-python/shared/tests/test_path_segments.py | 30 | def test_escape_round_trip_for_slash_in_title() -> None: | CODE |
| LOW⚡ | …kages/shared-python/shared/tests/test_path_segments.py | 38 | def test_escape_round_trip_for_literal_escape_char() -> None: | CODE |
| LOW⚡ | …kages/shared-python/shared/tests/test_path_segments.py | 43 | def test_join_and_split_keeps_slash_title_as_one_segment() -> None: | CODE |
| LOW | …kages/shared-python/shared/tests/test_path_segments.py | 56 | def test_append_under_escaped_parent() -> None: | CODE |
| LOW | …kages/shared-python/shared/tests/test_path_segments.py | 63 | def test_split_document_path_unescapes_section_titles() -> None: | CODE |
| 1300 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | deploy/ecs/render_task_definitions.py | 3 | 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 | 21 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 21 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 21 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 22 | CODE | |
| LOW | packages/shared-python/shared/core/config/__init__.py | 23 | CODE | |
| LOW | …ython/shared/core/state_machine/transition_payloads.py | 1 | CODE | |
| LOW | …-python/shared/core/state_machine/transition_runner.py | 1 | CODE | |
| LOW | …es/shared-python/shared/core/state_machine/__init__.py | 12 | CODE | |
| LOW | …es/shared-python/shared/core/state_machine/__init__.py | 12 | CODE | |
| LOW | …es/shared-python/shared/core/state_machine/__init__.py | 12 | CODE | |
| LOW | …es/shared-python/shared/core/state_machine/__init__.py | 12 | CODE | |
| LOW | …python/shared/core/state_machine/transition_outcome.py | 1 | CODE | |
| LOW | …ckages/shared-python/shared/core/constants/__init__.py | 3 | CODE | |
| LOW | …ckages/shared-python/shared/core/constants/__init__.py | 4 | CODE | |
| LOW | …ckages/shared-python/shared/core/constants/__init__.py | 5 | CODE | |
| LOW | …ckages/shared-python/shared/core/constants/__init__.py | 6 | CODE | |
| LOW | …kages/shared-python/shared/core/exceptions/__init__.py | 3 | CODE | |
| LOW | …kages/shared-python/shared/core/exceptions/__init__.py | 3 | CODE | |
| LOW | …kages/shared-python/shared/core/exceptions/__init__.py | 3 | CODE | |
| LOW | …kages/shared-python/shared/core/exceptions/__init__.py | 3 | CODE | |
| LOW | …kages/shared-python/shared/core/exceptions/__init__.py | 3 | CODE | |
| LOW | …kages/shared-python/shared/core/exceptions/__init__.py | 3 | CODE | |
| LOW | …kages/shared-python/shared/core/exceptions/__init__.py | 3 | CODE | |
| LOW | …kages/shared-python/shared/core/exceptions/__init__.py | 3 | CODE | |
| LOW | …kages/shared-python/shared/core/exceptions/__init__.py | 3 | CODE | |
| LOW | …kages/shared-python/shared/core/exceptions/__init__.py | 3 | CODE | |
| LOW | …kages/shared-python/shared/core/exceptions/__init__.py | 3 | CODE | |
| LOW | …kages/shared-python/shared/core/exceptions/__init__.py | 3 | CODE | |
| LOW | …kages/shared-python/shared/core/exceptions/__init__.py | 17 | CODE | |
| LOW | …kages/shared-python/shared/core/exceptions/__init__.py | 18 | CODE | |
| LOW | …kages/shared-python/shared/core/exceptions/__init__.py | 19 | CODE | |
| LOW | …kages/shared-python/shared/core/exceptions/__init__.py | 19 | CODE | |
| LOW | …kages/shared-python/shared/core/exceptions/__init__.py | 19 | CODE | |
| LOW | packages/shared-python/shared/core/billing/__init__.py | 23 | CODE | |
| LOW | packages/shared-python/shared/core/billing/__init__.py | 24 | CODE | |
| LOW | packages/shared-python/shared/tests/test_llm_config.py | 3 | CODE | |
| LOW | …kages/shared-python/shared/tests/test_path_segments.py | 3 | CODE | |
| LOW | …shared-python/shared/tests/test_zip_manifest_schema.py | 1 | CODE | |
| LOW | …hared-python/shared/tests/test_database_pool_config.py | 3 | CODE | |
| LOW | …ges/shared-python/shared/tests/test_nav_llm_backend.py | 3 | CODE | |
| LOW | …kages/shared-python/shared/tests/test_nav_trace_map.py | 3 | CODE | |
| 628 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | packages/shared-python/shared/core/database.py | 75 | except Exception: | CODE |
| LOW⚡ | packages/shared-python/shared/core/database.py | 89 | except Exception as commit_error: | CODE |
| LOW⚡ | packages/shared-python/shared/core/database.py | 94 | except Exception as rollback_error: | CODE |
| LOW⚡ | packages/shared-python/shared/core/database.py | 98 | except Exception: | CODE |
| LOW⚡ | packages/shared-python/shared/core/database.py | 104 | except Exception as rollback_error: | CODE |
| LOW | packages/shared-python/shared/core/database.py | 115 | except Exception as close_error: | CODE |
| LOW | packages/shared-python/shared/core/database.py | 168 | except Exception as e: | CODE |
| LOW | packages/shared-python/shared/core/database.py | 271 | except Exception as e: | CODE |
| LOW | packages/shared-python/shared/core/database.py | 280 | except Exception as e: | CODE |
| LOW | packages/shared-python/shared/core/database.py | 294 | 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 | 120 | 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 |
| LOW | packages/shared-python/shared/utils/token_estimate.py | 63 | except Exception: | CODE |
| LOW | …ython/shared/repositories/webhook_secret_repository.py | 210 | except Exception as e: | CODE |
| LOW⚡ | packages/shared-python/shared/services/worker_health.py | 64 | except Exception as exc: | CODE |
| LOW | packages/shared-python/shared/services/worker_health.py | 97 | except Exception as exc: | CODE |
| LOW | …ared-python/shared/services/webhook/delivery_client.py | 143 | except Exception as error: | CODE |
| LOW | …hared-python/shared/services/webhook/event_delivery.py | 126 | except Exception as error: | CODE |
| LOW | …hared-python/shared/services/webhook/qstash_payload.py | 38 | except Exception as exc: | CODE |
| LOW | …shared-python/shared/services/webhook/qstash_client.py | 115 | except Exception as exc: | CODE |
| LOW | …ared-python/shared/services/webhook/secret_resolver.py | 54 | except Exception as error: | CODE |
| LOW | …red-python/shared/services/webhook/qstash_publisher.py | 116 | except Exception as exc: | CODE |
| LOW | …d-python/shared/services/webhook/payload_enrichment.py | 48 | except Exception as error: | CODE |
| LOW | …ed-python/shared/services/encryption/fernet_service.py | 51 | except Exception as error: | CODE |
| LOW | …ed-python/shared/services/encryption/fernet_service.py | 86 | except Exception as error: | CODE |
| LOW⚡ | …hared-python/shared/services/redis/distributed_lock.py | 118 | except Exception as exc: | CODE |
| LOW | …hared-python/shared/services/redis/distributed_lock.py | 172 | except Exception as exc: | CODE |
| LOW | …red-python/shared/services/redis/task_redis_service.py | 39 | except Exception as e: | CODE |
| 424 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 | …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 | 41 | # ── 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 | 43 | # ── 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 |
| MEDIUM | apps/api/app/services/rate_limit/config.py | 134 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | apps/api/app/services/rate_limit/config.py | 136 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | apps/api/app/services/rate_limit/limiter.py | 30 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | apps/api/app/services/rate_limit/limiter.py | 32 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | apps/api/app/services/rate_limit/limiter.py | 104 | # ------------------------------------------------------------------ | COMMENT |
| MEDIUM | apps/api/app/services/rate_limit/limiter.py | 106 | # ------------------------------------------------------------------ | COMMENT |
| 68 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/shared-python/shared/core/logging.py | 141 | CODE | |
| LOW | packages/shared-python/shared/core/database.py | 82 | CODE | |
| LOW | packages/shared-python/shared/core/celery_router.py | 216 | CODE | |
| LOW | packages/shared-python/shared/core/config/database.py | 63 | 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 | 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 | 379 | 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 | …hared-python/shared/services/retrieval/nav_snapshot.py | 242 | CODE | |
| LOW | …hared-python/shared/services/retrieval/nav_snapshot.py | 419 | CODE | |
| LOW | …hared-python/shared/services/retrieval/trace/mapnav.py | 361 | CODE | |
| LOW | …d-python/shared/services/retrieval/hydration/assets.py | 159 | CODE | |
| LOW | …shared/services/retrieval/hydration/result_assembly.py | 17 | CODE | |
| LOW | …d-python/shared/services/retrieval/nav/nav_knowhere.py | 752 | CODE | |
| LOW | …d-python/shared/services/retrieval/nav/nav_knowhere.py | 1199 | CODE | |
| LOW | …red-python/shared/services/retrieval/nav/nav_verify.py | 32 | CODE | |
| LOW | …red-python/shared/services/retrieval/nav/nav_verify.py | 53 | CODE | |
| LOW | …ython/shared/services/retrieval/nav/nav_orchestrate.py | 303 | CODE | |
| LOW | …ython/shared/services/retrieval/nav/nav_orchestrate.py | 405 | CODE | |
| LOW | …red-python/shared/services/retrieval/nav/nav_assets.py | 424 | CODE | |
| LOW | …red-python/shared/services/retrieval/nav/nav_policy.py | 280 | CODE | |
| LOW | …hared-python/shared/services/retrieval/nav/nav_plan.py | 112 | CODE | |
| LOW | …hared-python/shared/services/retrieval/nav/nav_plan.py | 343 | CODE | |
| LOW | …hared-python/shared/services/retrieval/nav/nav_plan.py | 384 | CODE | |
| LOW | …hared-python/shared/services/retrieval/nav/nav_plan.py | 675 | CODE | |
| LOW | …d-python/shared/services/retrieval/nav/nav_navigate.py | 442 | CODE | |
| LOW | …python/shared/services/retrieval/nav/nav_map_scores.py | 388 | CODE | |
| LOW | …python/shared/services/retrieval/nav/nav_map_scores.py | 420 | CODE | |
| LOW | …ed-python/shared/services/retrieval/nav/nav_compose.py | 536 | CODE | |
| LOW | …ed-python/shared/services/retrieval/nav/nav_compose.py | 632 | CODE | |
| LOW | …ython/shared/services/retrieval/nav/knowhere_hybrid.py | 663 | 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 | |
| LOW | apps/api/custom_openapi.py | 5 | CODE | |
| LOW | apps/api/custom_openapi.py | 19 | CODE | |
| LOW | apps/api/app/repositories/job_repository.py | 292 | CODE | |
| LOW | …tract/test_retrieval_lazy_snapshot_quality_contract.py | 49 | CODE | |
| LOW | apps/api/scripts/log_manager.py | 163 | CODE | |
| LOW | apps/api/scripts/log_manager.py | 38 | CODE | |
| LOW | apps/api/scripts/log_manager.py | 101 | CODE | |
| 86 more matches not shown… | ||||
| 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 | 25 | __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 | 119 | 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 | 20 | __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 | 14 | __all__ = ["merge_channels_rrf", "run_retrieval_query"] | CODE |
| LOW | …red-python/shared/services/retrieval/trace/__init__.py | 13 | __all__ = [ | CODE |
| LOW | …ared-python/shared/services/retrieval/graph/service.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | …d-python/shared/services/retrieval/nav/nav_knowhere.py | 668 | def set_session(self, *, readonly: bool, autocommit: bool) -> None: | CODE |
| LOW | …ython/shared/services/retrieval/nav/nav_orchestrate.py | 103 | def _set_focus(state: NavState, subgoal: Subgoal, retrieval_query: str) -> None: | CODE |
| LOW | …red-python/shared/services/retrieval/nav/nav_assets.py | 38 | def set_nav_vlm_backend(fn: Optional[NavVlmBackend]) -> None: | CODE |
| LOW | …shared-python/shared/services/retrieval/nav/nav_llm.py | 48 | def set_nav_chat_backend(fn: Optional[NavChatBackend]) -> None: | CODE |
| LOW | …hared-python/shared/services/retrieval/nav/__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 | …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 | 40 | __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 | 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 | 258 | __all__ = ["profile_document"] | CODE |
| LOW | …pp/services/document_parser/profiling/profile_model.py | 82 | __all__ = ["ParserDocumentProfile", "ParserTocProfile", "TocEvidence"] | CODE |
| LOW | …ent_parser/orchestration/office_container_validator.py | 98 | __all__ = ["validate_office_container"] | 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 |
| LOW⚡ | apps/worker/app/services/page_memory/page_assets.py | 899 | __all__ = [ | CODE |
| LOW | apps/worker/app/services/document_agent/trace.py | 80 | def set_anatomy_map(self, anatomy: PageAnatomyMap, artifact_path: str) -> None: | CODE |
| LOW | apps/worker/app/services/document_agent/trace.py | 85 | def set_doc_profile(self, profile: Any) -> None: | CODE |
| LOW | apps/worker/app/services/document_agent/__init__.py | 10 | __all__ = [ | CODE |
| LOW | …s/worker/app/services/document_agent/tools/__init__.py | 18 | __all__ = ["REGISTRY"] | CODE |
| LOW | …p/services/document_agent/bootstrap/aggregate_stats.py | 141 | __all__ = ["PROFILE_METRICS", "aggregate_doc_stats"] | CODE |
| LOW | …rker/app/services/document_agent/bootstrap/classify.py | 5 | __all__ = ["classify_page_kinds"] | CODE |
| LOW | …rker/app/services/document_agent/bootstrap/__init__.py | 10 | __all__ = [ | CODE |
| LOW | …/worker/app/services/document_agent/bootstrap/probe.py | 8 | __all__ = ["probe_page_assets", "probe_page_features"] | CODE |
| 6 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 | …sts/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/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 | 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 | …hared-python/shared/services/retrieval/nav/nav_plan.py | 633 | '"cardinality": null}\n' | 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 |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …red-python/shared/services/retrieval/execution/plan.py | 81 | return await self._execute_with_overrides(request) | COMMENT |
| LOW | …ared-python/shared/services/retrieval/nav/nav_types.py | 61 | navigate_max_steps: int = 8 | COMMENT |
| LOW | …ared-python/shared/services/retrieval/nav/nav_types.py | 301 | harvested_owner_subgoal: Dict[str, str] = field(default_factory=dict) | 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 |
| 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 | 59 | # Create the async session factory. | COMMENT |
| MEDIUM⚡ | packages/shared-python/shared/core/database.py | 80 | # Create an app-level context manager for operations without an injected DB session. | COMMENT |
| MEDIUM⚡ | packages/shared-python/shared/core/config/app.py | 71 | # Create the shared application config instance. | COMMENT |
| MEDIUM⚡ | packages/shared-python/shared/core/config/app.py | 77 | # Create the Redis connection-pool manager. | COMMENT |
| MEDIUM⚡ | packages/shared-python/shared/core/config/app.py | 80 | # 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 | 53 | ### Step 1: Parse and Build Memory | COMMENT |
| LOW | README.md | 63 | ### 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 | 241 | │ ├── doc_nav.json # Hierarchical navigation tree for agentic retrieval | CODE |
| MEDIUM | …ared-python/shared/services/retrieval/nav/nav_agent.py | 452 | # Checklist: wave orchestration; navigate mode: classic single navigate. | COMMENT |
| MEDIUM⚡ | …pp/data/demo_documents/research-rag-survey/chunks.json | 1032 | "content": "17\nThe growing ecosystem of RAG is evidenced by the rise in\nRAG-centric AI applications and the cont | CODE |
| MEDIUM⚡ | …pp/data/demo_documents/research-rag-survey/chunks.json | 1032 | "content": "17\nThe growing ecosystem of RAG is evidenced by the rise in\nRAG-centric AI applications and the cont | 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 | …/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 | …pp/data/demo_documents/research-toolformer/chunks.json | 760 | "content": "Example\nL−\ni −L+\ni\nUseful\nThe Flodden Window (a war memorial dedicated to The Middleton Archers), | 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 |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ges/shared-python/shared/services/redis/key_builder.py | 221 | CODE | |
| LOW | …shared-python/shared/services/retrieval/app_service.py | 17 | CODE | |
| LOW | …ared-python/shared/services/retrieval/cache_service.py | 33 | CODE | |
| LOW | …red-python/shared/services/retrieval/trace/recorder.py | 34 | CODE | |
| LOW | …red-python/shared/services/retrieval/execution/plan.py | 28 | CODE | |
| LOW | …n/shared/services/retrieval/execution/query_request.py | 37 | CODE | |
| LOW | …ared-python/shared/services/retrieval/nav/nav_agent.py | 294 | CODE | |
| LOW | …ared-python/shared/services/retrieval/nav/nav_agent.py | 334 | CODE | |
| LOW | …shared-python/shared/services/retrieval/nav/nav_llm.py | 162 | 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 | 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 |
| 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 |
|---|---|---|---|---|
| MEDIUM | …s/shared-python/shared/services/redis/redis_monitor.py | 261 | """Get a comprehensive monitoring report.""" | STRING |
| MEDIUM | …ared-python/shared/services/retrieval/nav/nav_types.py | 101 | # Default 1 so shared-checklist probe/harness match without silent overrides. | COMMENT |
| MEDIUM⚡ | …pp/data/demo_documents/research-rag-survey/chunks.json | 1032 | "content": "17\nThe growing ecosystem of RAG is evidenced by the rise in\nRAG-centric AI applications and the cont | CODE |
| MEDIUM⚡ | …pp/data/demo_documents/research-rag-survey/chunks.json | 1032 | "content": "17\nThe growing ecosystem of RAG is evidenced by the rise in\nRAG-centric AI applications and the cont | CODE |
| MEDIUM | …/data/demo_documents/research-rag-realized/chunks.json | 930 | "content": "RAG: Strategic & Technical Insights\n17\nChallenges Addressed\n\t\n●\nIncomplete Queries: User \nqueri | CODE |
| MEDIUM | …ta/demo_documents/financial-goog-10-k-2025/chunks.json | 6 | "content": "UNITED STATES\nSECURITIES AND EXCHANGE COMMISSION\nWashington, D.C. 20549\n___________________________ | CODE |
| 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 |
|---|---|---|---|---|
| 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 |
| MEDIUM | …ents/stem-probability-theory-lecture-notes/chunks.json | 832 | "content": "5.4. THE C.D.F.\n34\n5.4. The C.D.F.\nDefinition. De\u001cne F : R →[0, 1] to be the function\nF(x) = | CODE |
| MEDIUM | …demo_documents/stem-jurafsky-transformers/doc_nav.json | 338 | "summary": "Figure 8.17 Training a transformer as a language model. [images/image_page_21_figure_1.png]" | CODE |
| MEDIUM | …/demo_documents/stem-jurafsky-transformers/chunks.json | 262 | "content": "Figure 8.17 Training a transformer as a language model.\n[images/image_page_21_figure_1.png]", | CODE |
| MEDIUM | …/demo_documents/stem-jurafsky-transformers/chunks.json | 1015 | "content": "8.8\n•\nDEALING WITH SCALE\n21\nlong\nand\nthanks\nfor\nNext token\nall\nLoss\n…\n=\n−log yand\n…\n−lo | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| 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 |
|---|---|---|---|---|
| LOW | scripts/smoke_byok.sh | 3 | # Usage: | COMMENT |