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 1,916 GitHub stars. SynthScan v2.0 examined 311,878 lines of code across 1442 source files, recording 2380 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 9.2 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 2380 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 | packages/shared-python/shared/core/logging.py | 82 | def _is_expected_client_exception(exception: BaseException) -> bool: | CODE |
| LOW | packages/shared-python/shared/core/logging.py | 104 | def _downgrade_expected_logfire_exception( | CODE |
| LOW | packages/shared-python/shared/core/logging.py | 255 | 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 | 125 | def get_http_status_from_error_code( | CODE |
| LOW | …ckages/shared-python/shared/core/response/ErrorCode.py | 132 | def get_error_code_from_http_status( | CODE |
| LOW | packages/shared-python/shared/core/config/database.py | 61 | 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 | 88 | def get_celery_result_backend(self) -> str: | CODE |
| LOW | packages/shared-python/shared/core/config/storage.py | 213 | def get_cached_storage_adapter(): | 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 | 318 | def _reconstruct_knowhere_exception(cls, state): | CODE |
| LOW | …/shared-python/shared/tests/test_page_memory_config.py | 15 | def test_page_memory_config_defaults_resolve_concurrency_settings() -> None: | CODE |
| LOW | …ed-python/shared/tests/test_page_memory_vlm_limiter.py | 74 | def test_page_memory_vlm_limiter_acquire_release_updates_inflight_count() -> None: | CODE |
| LOW | …ed-python/shared/tests/test_page_memory_vlm_limiter.py | 86 | def test_page_memory_vlm_limiter_waits_then_succeeds() -> None: | CODE |
| LOW | …ed-python/shared/tests/test_page_memory_vlm_limiter.py | 96 | def test_page_memory_vlm_limiter_timeout_raises_unavailable() -> None: | CODE |
| LOW | …ed-python/shared/tests/test_page_memory_vlm_limiter.py | 110 | def test_page_memory_vlm_limiter_redis_failure_raises_unavailable() -> None: | CODE |
| LOW | …ed-python/shared/tests/test_page_memory_vlm_limiter.py | 117 | def test_page_memory_provider_exception_still_releases_lease(monkeypatch) -> None: | CODE |
| LOW | …ed-python/shared/tests/test_page_memory_vlm_limiter.py | 165 | def test_page_memory_summary_unavailable_exception_propagates( | CODE |
| LOW | …ed-python/shared/tests/test_page_memory_vlm_limiter.py | 170 | def chat_completion_with_usage(self, **kwargs: Any) -> Any: | CODE |
| LOW | …ed-python/shared/tests/test_page_memory_vlm_limiter.py | 194 | def test_page_memory_transcription_unavailable_exception_propagates( | CODE |
| LOW | …ed-python/shared/tests/test_page_memory_vlm_limiter.py | 199 | def chat_completion_with_usage(self, **kwargs: Any) -> Any: | CODE |
| LOW | packages/shared-python/shared/utils/text_utils.py | 35 | def remove_duplicates_orderkept(input_list: List) -> List: | CODE |
| LOW | packages/shared-python/shared/utils/text_utils.py | 165 | def _normalize_retrieval_token(token: str) -> str: | CODE |
| LOW | packages/shared-python/shared/utils/text_utils.py | 172 | def _split_mixed_language_segments(text: str) -> list[tuple[str, bool]]: | CODE |
| LOW | packages/shared-python/shared/utils/text_utils.py | 192 | def _tokenize_english_segment(text: str) -> list[str]: | CODE |
| LOW | packages/shared-python/shared/utils/text_utils.py | 209 | def _resolve_retrieval_stopwords( | CODE |
| LOW | packages/shared-python/shared/utils/text_utils.py | 260 | def tokenize_contents_for_retrieval( | CODE |
| LOW | …hared-python/shared/repositories/credits_repository.py | 25 | async def recalculate_balance_from_ledger( | CODE |
| LOW | …hared-python/shared/repositories/credits_repository.py | 98 | async def get_recent_payment_credits( | CODE |
| LOW | …hared-python/shared/repositories/credits_repository.py | 123 | async def get_positive_credit_total_by_transaction_types( | CODE |
| LOW | …-python/shared/repositories/credits_sync_repository.py | 20 | def recalculate_balance_from_ledger( | CODE |
| LOW | …-python/shared/repositories/credits_sync_repository.py | 64 | def get_recent_payment_credits( | CODE |
| LOW | …-python/shared/repositories/credits_sync_repository.py | 81 | def get_positive_credit_total_by_transaction_types( | CODE |
| LOW | …es/shared-python/shared/models/schemas/job_metadata.py | 174 | def get_processing_generation(metadata: Optional[Dict[str, Any]]) -> str: | CODE |
| LOW | …ed-python/shared/models/schemas/retrieval_namespace.py | 6 | def normalize_retrieval_namespace(namespace: str | None) -> str: | CODE |
| LOW | …shared-python/shared/testing/postgresql_environment.py | 8 | def _get_common_postgresql_bin_directories() -> tuple[Path, ...]: | CODE |
| LOW⚡ | …kages/shared-python/shared/testing/contract_runtime.py | 131 | def _reset_contract_storage_state(database_url: str) -> None: | CODE |
| LOW⚡ | …kages/shared-python/shared/testing/contract_runtime.py | 141 | def _ensure_contract_postgresql_port(database_url: URL) -> None: | CODE |
| LOW⚡ | …kages/shared-python/shared/testing/contract_runtime.py | 151 | def _resolve_base_database_url( | CODE |
| LOW⚡ | …kages/shared-python/shared/testing/contract_runtime.py | 180 | def get_contract_database_url( | CODE |
| LOW⚡ | …kages/shared-python/shared/testing/contract_runtime.py | 189 | def _get_contract_sync_database_url() -> str: | CODE |
| LOW⚡ | …kages/shared-python/shared/testing/contract_runtime.py | 196 | def _get_admin_sync_database_url() -> str: | CODE |
| LOW⚡ | …kages/shared-python/shared/testing/contract_runtime.py | 203 | def _build_admin_sync_database_url(contract_database_url: str) -> str: | CODE |
| LOW⚡ | …kages/shared-python/shared/testing/contract_runtime.py | 209 | def _reset_redis_service_factory() -> None: | CODE |
| LOW | …kages/shared-python/shared/testing/contract_runtime.py | 301 | def _configure_contract_redis(monkeypatch: MonkeyPatch) -> None: | CODE |
| 834 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/shared-python/shared/core/logging.py | 11 | 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 | …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 | …/shared-python/shared/tests/test_page_memory_config.py | 1 | CODE | |
| LOW | …ed-python/shared/tests/test_page_memory_vlm_limiter.py | 1 | CODE | |
| LOW | packages/shared-python/shared/utils/utc_now.py | 3 | CODE | |
| LOW | packages/shared-python/shared/utils/json_utils.py | 3 | CODE | |
| LOW | packages/shared-python/shared/utils/token_estimate.py | 7 | CODE | |
| LOW | packages/shared-python/shared/repositories/__init__.py | 5 | CODE | |
| LOW | packages/shared-python/shared/repositories/__init__.py | 6 | CODE | |
| LOW | packages/shared-python/shared/models/__init__.py | 3 | CODE | |
| 507 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 | 246 | except Exception as e: | CODE |
| LOW | packages/shared-python/shared/core/database.py | 255 | except Exception as e: | CODE |
| LOW | packages/shared-python/shared/core/database.py | 269 | 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 | 118 | 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 | 165 | except Exception as e: | CODE |
| LOW | …hared-python/shared/core/state_machine/service_sync.py | 170 | except Exception as rollback_err: | CODE |
| LOW | …hared-python/shared/core/state_machine/service_sync.py | 250 | except Exception as e: | CODE |
| LOW | …hared-python/shared/core/state_machine/service_sync.py | 293 | except Exception as e: | CODE |
| LOW⚡ | …hared-python/shared/core/state_machine/service_sync.py | 336 | except Exception as e: | CODE |
| LOW⚡ | …hared-python/shared/core/state_machine/service_sync.py | 341 | except Exception as rollback_err: | CODE |
| LOW | …hared-python/shared/core/state_machine/service_sync.py | 430 | except Exception as e: | CODE |
| LOW | …hared-python/shared/core/state_machine/service_sync.py | 462 | except Exception as e: | CODE |
| LOW | …hared-python/shared/core/state_machine/service_sync.py | 470 | 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 | 252 | except Exception as e: | STRING |
| LOW | packages/shared-python/shared/utils/json_utils.py | 48 | except Exception: # pragma: no cover | CODE |
| LOW | packages/shared-python/shared/utils/json_utils.py | 65 | 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 | 41 | except Exception as exc: | CODE |
| LOW | packages/shared-python/shared/services/worker_health.py | 74 | 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 |
| 387 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …hared-python/shared/core/state_machine/service_sync.py | 49 | # ── Public API ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | …hared-python/shared/core/state_machine/service_sync.py | 345 | # ── 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 | 147 | # ======================================================================= | COMMENT |
| MEDIUM | …ed-python/shared/core/exceptions/knowhere_exception.py | 149 | # ======================================================================= | 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 | 40 | # ── Public API ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | …thon/shared/services/retrieval/agentic/orchestrator.py | 356 | # ══════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | …thon/shared/services/retrieval/agentic/orchestrator.py | 358 | # ══════════════════════════════════════════════════════════════════ | COMMENT |
| MEDIUM | …shared/services/retrieval/agentic/navigation/assets.py | 373 | # ── Route by asset type ────────────────────────────────────────── | COMMENT |
| MEDIUM | …ared/services/retrieval/agentic/navigation/document.py | 257 | # ── Execute asset tools (SEARCH) ───────────────────────────── | COMMENT |
| MEDIUM | …ared/services/retrieval/agentic/navigation/document.py | 301 | # ── Process COLLECT ────────────────────────────────────────── | COMMENT |
| MEDIUM | …ared/services/retrieval/agentic/navigation/document.py | 316 | # ── Process navigation action ──────────────────────────────── | COMMENT |
| MEDIUM | …ared/services/retrieval/agentic/navigation/document.py | 364 | # ── Build trace entry ──────────────────────────────────────── | COMMENT |
| MEDIUM | …ared/services/retrieval/agentic/navigation/document.py | 396 | # ── Record decision step ───────────────────────────────────── | COMMENT |
| MEDIUM | …ared/services/retrieval/agentic/navigation/document.py | 489 | # ── Navigate summary — record exit reason and final state ───── | COMMENT |
| MEDIUM | …/shared/services/retrieval/agentic/navigation/state.py | 63 | # ── Coverage helpers (single source: collected_paths) ──────────────── | COMMENT |
| MEDIUM | …/shared/services/retrieval/agentic/navigation/state.py | 84 | # ── Snapshot / delta for replayable traces ────────────────────────── | COMMENT |
| MEDIUM | …/shared/services/retrieval/agentic/navigation/state.py | 117 | # ── Mutation helpers ──────────────────────────────────────────────── | 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 |
| 71 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages/shared-python/shared/core/logging.py | 115 | 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 | 61 | CODE | |
| LOW | …hared-python/shared/core/state_machine/service_sync.py | 72 | 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 | 357 | 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 | 36 | CODE | |
| LOW | …d-python/shared/services/storage/zip_doc_navigation.py | 127 | 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 | …d-python/shared/services/retrieval/hydration/assets.py | 159 | CODE | |
| LOW | …shared/services/retrieval/hydration/result_assembly.py | 16 | CODE | |
| LOW | …shared/services/retrieval/agentic/evidence/renderer.py | 11 | CODE | |
| LOW | …shared/services/retrieval/agentic/evidence/renderer.py | 131 | CODE | |
| LOW | …/shared/services/retrieval/agentic/navigation/tools.py | 36 | CODE | |
| LOW | …hared/services/retrieval/agentic/navigation/actions.py | 48 | CODE | |
| LOW | …shared/services/retrieval/agentic/navigation/assets.py | 155 | CODE | |
| LOW | …ared/services/retrieval/agentic/navigation/document.py | 1257 | CODE | |
| LOW | …ared/services/retrieval/agentic/navigation/document.py | 158 | CODE | |
| LOW | …/services/retrieval/agentic/navigation/section_tree.py | 140 | CODE | |
| LOW | …d-python/shared/services/retrieval/execution/routes.py | 158 | CODE | |
| LOW | …ed-python/shared/services/retrieval/workflow/wallet.py | 50 | 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 | 114 | CODE | |
| LOW | …ges/shared-python/shared/services/ai/prompt_service.py | 119 | CODE | |
| LOW | …ges/shared-python/shared/services/ai/summary/engine.py | 73 | CODE | |
| LOW | …ges/shared-python/shared/services/ai/summary/engine.py | 98 | 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 | 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 | |
| LOW | apps/api/scripts/log_manager.py | 127 | CODE | |
| LOW | apps/worker/app/core/tasks/stale_job_sweeper.py | 37 | CODE | |
| LOW | apps/worker/app/core/tasks/webhook_tasks.py | 103 | CODE | |
| LOW | …ices/document_parser/tables/dataframe_html_renderer.py | 8 | CODE | |
| LOW | …ices/document_parser/tables/dataframe_html_renderer.py | 101 | CODE | |
| LOW | …/services/document_parser/tables/table_frame_parser.py | 22 | CODE | |
| LOW | …/services/document_parser/tables/table_frame_parser.py | 233 | CODE | |
| LOW | …p/services/document_parser/tables/dataframe_helpers.py | 54 | CODE | |
| LOW | …s/document_parser/formats/markdown/deferred_summary.py | 161 | CODE | |
| LOW | …pp/services/document_parser/formats/markdown/parser.py | 73 | CODE | |
| LOW | …pp/services/document_parser/formats/markdown/parser.py | 141 | CODE | |
| LOW | …pp/services/document_parser/formats/markdown/parser.py | 227 | CODE | |
| 54 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 | 24 | __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 | 47 | __all__ = [ | CODE |
| LOW | …es/shared-python/shared/models/schemas/job_metadata.py | 101 | 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 | 13 | __all__ = ["merge_channels_rrf", "run_retrieval_query"] | CODE |
| LOW | …ared-python/shared/services/retrieval/graph/service.py | 30 | logger = logging.getLogger(__name__) | CODE |
| LOW | …-python/shared/services/retrieval/workflow/__init__.py | 6 | __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/api/v2/routes/retrieval.py | 5 | __all__ = ["router"] | CODE |
| LOW⚡ | …pi/app/services/auth/api_key_authentication_service.py | 173 | async def _update_last_used_best_effort(self, api_key_id: str) -> None: | 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 | 236 | __all__ = ["profile_document"] | CODE |
| LOW | …pp/services/document_parser/profiling/profile_model.py | 83 | __all__ = ["ParserDocumentProfile", "ParserTocProfile", "TocEvidence"] | 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 | 902 | __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 | 23 | __all__ = [ | CODE |
| LOW | …orker/app/services/document_agent/tools/page_locate.py | 16 | __all__ = ["grep_title_pages", "verify_section_page"] | CODE |
| LOW | …s/worker/app/services/document_agent/tools/__init__.py | 14 | __all__ = ["REGISTRY"] | CODE |
| LOW | …p/services/document_agent/bootstrap/aggregate_stats.py | 156 | __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 | 7 | __all__ = ["aggregate_doc_stats", "classify_page_kinds", "probe_page_features"] | CODE |
| LOW | …/worker/app/services/document_agent/bootstrap/probe.py | 5 | __all__ = ["probe_page_features"] | CODE |
| LOW | …worker/app/services/document_agent/planner/__init__.py | 9 | __all__ = [ | CODE |
| LOW | …/worker/app/services/document_agent/planner/prompts.py | 20 | __all__ = ["PLANNER_INSTRUCTIONS"] | CODE |
| LOW | …orker/app/services/document_agent/executor/__init__.py | 9 | __all__ = [ | CODE |
| 4 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| 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 | 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⚡ | packages/shared-python/shared/services/ai/llm_mock.py | 283 | "detect-toc-range": '{"toc_start": null, "toc_end": null, "confidence": "low"}', | CODE |
| HIGH⚡ | packages/shared-python/shared/services/ai/llm_mock.py | 288 | '"entities": [], "chart": null}' | CODE |
| HIGH⚡ | packages/shared-python/shared/services/ai/llm_mock.py | 296 | '"entities": [], "chart": null}' | CODE |
| HIGH | …ges/shared-python/shared/services/ai/prompt_service.py | 1012 | "toc_start": null, | CODE |
| HIGH | …ges/shared-python/shared/services/ai/prompt_service.py | 1013 | "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 | …services/document_agent/structure/page_locate_agent.py | 387 | "Return strict JSON: {\"selected_page\": number|null, " | CODE |
| 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 | 52 | # Create the shared application config instance. | COMMENT |
| MEDIUM⚡ | packages/shared-python/shared/core/config/app.py | 58 | # Create the Redis connection-pool manager. | COMMENT |
| MEDIUM⚡ | packages/shared-python/shared/core/config/app.py | 61 | # Create the Redis config manager. | COMMENT |
| MEDIUM | …ared/services/retrieval/agentic/navigation/document.py | 1252 | # Create the child node on the target | COMMENT |
| MEDIUM | apps/api/scripts/reset_alembic.py | 21 | # Create the SQLAlchemy engine. | COMMENT |
| MEDIUM | …pp/services/document_parser/formats/markdown/parser.py | 372 | # Create a placeholder chunk so the previous heading's path | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ges/shared-python/shared/services/ai/prompt_service.py | 721 | max_tokens = kwargs.get("paras", {}).get("max_tokens", 1200) | COMMENT |
| LOW | …ges/shared-python/shared/services/ai/prompt_service.py | 741 | # ] | 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 | botocore==1.38.46 | COMMENT |
| LOW | apps/worker/requirements.txt | 81 | # gevent | COMMENT |
| LOW | apps/worker/requirements.txt | 101 | # click | COMMENT |
| LOW | apps/worker/requirements.txt | 121 | # via email-validator | COMMENT |
| LOW | apps/worker/requirements.txt | 141 | frozenlist==1.8.0 | COMMENT |
| LOW | apps/worker/requirements.txt | 161 | httpx==0.28.1 | COMMENT |
| LOW | apps/worker/requirements.txt | 181 | jiter==0.14.0 | COMMENT |
| LOW | apps/worker/requirements.txt | 201 | magika==0.6.2 | COMMENT |
| LOW | apps/worker/requirements.txt | 221 | networkx==3.6.1 | COMMENT |
| LOW | apps/worker/requirements.txt | 241 | # knowhere-shared | COMMENT |
| LOW | apps/worker/requirements.txt | 261 | # via | COMMENT |
| LOW | apps/worker/requirements.txt | 281 | # opentelemetry-exporter-otlp-proto-http | COMMENT |
| LOW | apps/worker/requirements.txt | 301 | # via knowhere-worker-app | COMMENT |
| LOW | apps/worker/requirements.txt | 321 | # via pytest | COMMENT |
| LOW | apps/worker/requirements.txt | 341 | # via | COMMENT |
| LOW | apps/worker/requirements.txt | 361 | pydantic-settings==2.14.1 | COMMENT |
| LOW | apps/worker/requirements.txt | 381 | pypdf==6.10.2 | COMMENT |
| LOW | apps/worker/requirements.txt | 401 | # via | COMMENT |
| LOW | apps/worker/requirements.txt | 421 | rank-bm25==0.2.2 | COMMENT |
| LOW | apps/worker/requirements.txt | 441 | # via boto3 | COMMENT |
| LOW | apps/worker/requirements.txt | 461 | starlette==0.52.1 | COMMENT |
| LOW | apps/worker/requirements.txt | 481 | # beautifulsoup4 | COMMENT |
| LOW | apps/worker/requirements.txt | 501 | # fastapi | COMMENT |
| LOW | apps/worker/requirements.txt | 521 | # via loguru | 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 | 67 | # Step 1: sum lifetime successful payments in micro-dollars | COMMENT |
| LOW | apps/api/app/services/rate_limit/tier_service.py | 89 | # Step 4: persist the tier on user_balances | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 146 | # Step 1: Start task | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 175 | # Step 2: Upload from memory (BytesIO, no disk write) | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 198 | # Step 3: Process | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 225 | # Step 4: Download PDF to memory | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 446 | # Step 1: PPTX → PDF (in memory) | COMMENT |
| LOW⚡ | …r/app/services/document_parser/structure/toc_parser.py | 116 | # Step 1: find all TOC keywords | COMMENT |
| LOW⚡ | …r/app/services/document_parser/structure/toc_parser.py | 122 | # 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 | 131 | # Step 3: build candidate areas for each start index | COMMENT |
| LOW⚡ | …r/app/services/document_parser/structure/toc_parser.py | 285 | # Step 1: detect candidate areas (may be multiple) | COMMENT |
| LOW⚡ | …r/app/services/document_parser/structure/toc_parser.py | 293 | # Step 2: evaluate each candidate area with LLM (parallel when multiple) | COMMENT |
| LOW | …r/app/services/document_parser/structure/toc_parser.py | 513 | # 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 | 67 | # Step 1: sum lifetime successful payments in micro-dollars | COMMENT |
| LOW | apps/api/app/services/rate_limit/tier_service.py | 89 | # Step 4: persist the tier on user_balances | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 146 | # Step 1: Start task | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 175 | # Step 2: Upload from memory (BytesIO, no disk write) | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 198 | # Step 3: Process | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 225 | # Step 4: Download PDF to memory | COMMENT |
| LOW | …er/app/services/document_parser/formats/pptx/parser.py | 446 | # Step 1: PPTX → PDF (in memory) | COMMENT |
| LOW⚡ | …r/app/services/document_parser/structure/toc_parser.py | 116 | # Step 1: find all TOC keywords | COMMENT |
| LOW⚡ | …r/app/services/document_parser/structure/toc_parser.py | 122 | # 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 | 131 | # Step 3: build candidate areas for each start index | COMMENT |
| LOW⚡ | …r/app/services/document_parser/structure/toc_parser.py | 285 | # Step 1: detect candidate areas (may be multiple) | COMMENT |
| LOW⚡ | …r/app/services/document_parser/structure/toc_parser.py | 293 | # Step 2: evaluate each candidate area with LLM (parallel when multiple) | COMMENT |
| LOW | …r/app/services/document_parser/structure/toc_parser.py | 513 | # Step 3: Remove TOC lines from md_lines (process in reverse order to correct indices) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …s/shared-python/shared/services/redis/redis_monitor.py | 261 | """Get a comprehensive monitoring report.""" | STRING |
| MEDIUM | …fy26-annual-report/tables/table-77 Equity Changes.html | 1 | <table border='1' border='1'><tr><td rowspan="2"></td><td colspan="2">Common Stock Outstanding</td><td rowspan="2">Addit | CODE |
| MEDIUM | …-fy26-annual-report/tables/table-76 Balance Sheet.html | 1 | <table border='1' border='1'><tr><td></td><td>Jan 25, 2026</td><td>Jan 26, 2025</td></tr><tr><td colspan="3">Assets</td> | CODE |
| MEDIUM | …pp/data/demo_documents/research-rag-survey/chunks.json | 486 | "content": "19\n[89] Langchain, “Recursively split by character,” https://python.langchain.\ncom/docs/modules/data | CODE |
| MEDIUM | …pp/data/demo_documents/research-rag-survey/chunks.json | 550 | "content": "International Conference on Computational Linguistics, 2002.\n[156] R. Socher, A. Perelygin, J. Wu, J. | CODE |
| MEDIUM | …/data/demo_documents/research-rag-realized/chunks.json | 310 | "content": "19:2:4. Version \nTitle: T orah Commentary by Rabbi Bachya ben Asher, trans. \nEliyahu Munk, 1998.. Do | CODE |
| MEDIUM | …ta/demo_documents/financial-goog-10-k-2025/chunks.json | 11475 | "content": "<table><tr><td rowspan=\"2\"></td><td colspan=\"2\">Class A, Class B, Class C Stock and Additional Pai | CODE |
| MEDIUM | …og-10-k-2025/tables/table-24 Stockholders' Equity.html | 1 | <table border='1' border='1'><tr><td rowspan="2"></td><td colspan="2">Class A, Class B, Class C Stock and Additional Pai | CODE |
| MEDIUM | …s/spacex-s1/tables/table-123 Stockholders' Equity.html | 1 | <table border='1' border='1'><tr><td rowspan="2"></td><td colspan="2">Redeemable Convertible Preferred Stock</td><td col | CODE |
| MEDIUM | …o_documents/financial-meta-q1-2026-results/chunks.json | 725 | "content": "<table><tr><td></td><td>March 31, 2026</td><td>December 31, 2025</td></tr><tr><td colspan=\"3\">Assets | CODE |
| MEDIUM | …meta-q1-2026-results/tables/table-2 Balance Sheet.html | 1 | <table border='1' border='1'><tr><td></td><td>March 31, 2026</td><td>December 31, 2025</td></tr><tr><td colspan="3">Asse | CODE |
| MEDIUM | …pp/services/document_agent/tools/propose_shard_plan.py | 256 | # entry (siblings are not ancestors). This is robust to non-monotonic | COMMENT |
| MEDIUM | apps/worker/experiments/chart_asset_probe.py | 64 | # BOTH axes, with origin at the top-left of the page image. This is robust | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | AGENTS.md | 240 | │ ├── doc_nav.json # Hierarchical navigation tree for agentic retrieval | CODE |
| MEDIUM | …hon/shared/services/retrieval/workflow/orchestrator.py | 141 | # TODO(retrieval-agentic-nav): redesign this outer workflow as a real | COMMENT |
| MEDIUM | …hon/shared/services/retrieval/workflow/orchestrator.py | 145 | # a sub-agent and should not take over cross-document orchestration. | COMMENT |
| MEDIUM | packages/shared-python/shared/services/ai/llm_mock.py | 23 | # For agentic tasks that need dynamic content extraction, build the response here. | COMMENT |
| MEDIUM | …pp/data/demo_documents/research-rag-survey/chunks.json | 550 | "content": "International Conference on Computational Linguistics, 2002.\n[156] R. Socher, A. Perelygin, J. Wu, J. | CODE |
| MEDIUM | …/demo_documents/stem-jurafsky-transformers/chunks.json | 21 | "content": "8\nTransformers\n\"The true art of memory is the art of attention\"\nSamuel Johnson, Idler #74, Septem | CODE |
| MEDIUM | …pp/data/demo_documents/research-toolformer/chunks.json | 230 | "content": "Example L−\ni −L+\ni Useful\nThe Flodden Window (a war memorial dedicated to The Middleton Archers), i | CODE |
| MEDIUM | …/versions/e5f6a7b8c9d0_add_agentic_retrieval_tables.py | 21 | # ── retrieval_runs: one row per agentic retrieval query ── | COMMENT |
| MEDIUM | …pp/services/document_parser/formats/markdown/parser.py | 421 | # integrate tabula-py as an independent extraction path to solve VLM hallucinations and misplacement | 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 | 16 | CODE | |
| LOW | …ared-python/shared/services/retrieval/cache_service.py | 34 | CODE | |
| LOW | …ared-python/shared/services/retrieval/agentic/tools.py | 77 | CODE | |
| LOW | …thon/shared/services/retrieval/agentic/orchestrator.py | 65 | CODE | |
| LOW | …/shared/services/retrieval/agentic/navigation/tools.py | 36 | CODE | |
| LOW | …red-python/shared/services/retrieval/execution/plan.py | 23 | CODE | |
| LOW | …n/shared/services/retrieval/execution/query_request.py | 35 | CODE | |
| LOW | …hon/shared/services/retrieval/workflow/orchestrator.py | 62 | CODE | |
| LOW | …ges/shared-python/shared/services/ai/summary/engine.py | 196 | CODE | |
| LOW | …ges/shared-python/shared/services/ai/summary/engine.py | 216 | CODE | |
| LOW | …ges/shared-python/shared/services/ai/summary/engine.py | 235 | 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 | 227 | CODE | |
| LOW | …pp/services/document_parser/structure/layout_parser.py | 454 | 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 | 279 | 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 | 43 | # 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 |
|---|---|---|---|---|
| HIGH | …demo_documents/stem-transformers-tutorial/doc_nav.json | 390 | "summary": "Output MLM teaches BERT to understand relationships between words 3. Each token moves away fro | CODE |
| HIGH | …/demo_documents/stem-transformers-tutorial/chunks.json | 2934 | "content": "Output\nMLM teaches BERT to understand relationships between words\n\n3. Each token moves away from hi | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …ocuments/financial-micron-report-9c0becf5/doc_nav.json | 256 | "summary": "- We expect higher price, lower cost and favorable mix to all contribute to gross margin expansion | CODE |
| MEDIUM | …documents/financial-micron-report-9c0becf5/chunks.json | 2896 | "content": "- We expect higher price, lower cost and favorable mix to all contribute to gross margin expansion in | CODE |
| MEDIUM | …cuments/financial-nvda-fy26-annual-report/doc_nav.json | 472 | "summary": "As discussed above, the NCGC and the Board understand the importance of Board refreshment. On | CODE |
| MEDIUM | …/demo_documents/stem-jurafsky-transformers/chunks.json | 2778 | "content": "We described the training process for language models in the prior chapter. Recall that large language | 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 |