Repository Analysis

latitude-dev/latitude-llm

Latitude is the open-source ai monitoring platform.

3.1 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of latitude-dev/latitude-llm, a TypeScript project with 4,431 GitHub stars. SynthScan v2.0 examined 1,272,138 lines of code across 4994 source files, recording 3521 pattern matches distributed across 22 syntactic categories. The overall adjusted score of 3.1 places this repository in the Likely human-written 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).

3.1
Adjusted Score
3.1
Raw Score
100%
Time Factor
2026-07-14
Last Push
4.4K
Stars
TypeScript
Language
1.3M
Lines of Code
5.0K
Files
3.5K
Pattern Hits
2026-07-14
Scan Date
0.06
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

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.

CRITICAL 1HIGH 323MEDIUM 254LOW 2943

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 3521 distinct pattern matches across 22 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.

Unused Imports1998 hits · 1162 pts
SeverityFileLineSnippetContext
LOWscripts/pin-deps.py17CODE
LOWpackages/sdk/python/src/latitude_sdk/client.py3CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
LOWpackages/sdk/python/src/latitude_sdk/__init__.py9CODE
1938 more matches not shown…
Decorative Section Separators225 hits · 687 pts
SeverityFileLineSnippetContext
MEDIUMdocker-stack.yml20 # ==========================================================================COMMENT
MEDIUMdocker-stack.yml22 # ==========================================================================COMMENT
MEDIUMdocker-stack.yml141 # ==========================================================================COMMENT
MEDIUMdocker-stack.yml144 # ==========================================================================COMMENT
MEDIUMcharts/latitude/values.yaml75# ---------------------------------------------------------------------------COMMENT
MEDIUMcharts/latitude/values.yaml77# ---------------------------------------------------------------------------COMMENT
MEDIUMcharts/latitude/values.yaml143# ---------------------------------------------------------------------------COMMENT
MEDIUMcharts/latitude/values.yaml145# ---------------------------------------------------------------------------COMMENT
MEDIUM…i-conversation/parts/source-mapped-text-plugin.test.ts34// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…i-conversation/parts/source-mapped-text-plugin.test.ts36// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…i-conversation/parts/source-mapped-text-plugin.test.ts76// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…i-conversation/parts/source-mapped-text-plugin.test.ts78// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…i-conversation/parts/source-mapped-text-plugin.test.ts176// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…i-conversation/parts/source-mapped-text-plugin.test.ts178// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…i-conversation/parts/source-mapped-text-plugin.test.ts205// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…i-conversation/parts/source-mapped-text-plugin.test.ts207// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…i-conversation/parts/source-mapped-text-plugin.test.ts262// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…i-conversation/parts/source-mapped-text-plugin.test.ts264// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…i-conversation/parts/source-mapped-text-plugin.test.ts375// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…i-conversation/parts/source-mapped-text-plugin.test.ts377// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…i-conversation/parts/source-mapped-text-plugin.test.ts428// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…i-conversation/parts/source-mapped-text-plugin.test.ts430// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…i-conversation/parts/source-mapped-text-plugin.test.ts548// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…i-conversation/parts/source-mapped-text-plugin.test.ts550// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…i-conversation/parts/source-mapped-text-plugin.test.ts648// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…i-conversation/parts/source-mapped-text-plugin.test.ts650// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ts/genai-conversation/parts/highlight-segments.test.ts5// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ts/genai-conversation/parts/highlight-segments.test.ts7// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ts/genai-conversation/parts/highlight-segments.test.ts83// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ts/genai-conversation/parts/highlight-segments.test.ts85// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ts/genai-conversation/parts/highlight-segments.test.ts156// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…ts/genai-conversation/parts/highlight-segments.test.ts158// ──────────────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…res/src/repositories/wrapped-report-repository.test.ts244 // ─── findLeaderboardRankForReport ───────────────────────────────────────────COMMENT
MEDIUM…orm/db-clickhouse/src/repositories/trace-repository.ts460// ─── Percentile filter resolution ────────────────────────────────────────────COMMENT
MEDIUM…b-clickhouse/src/repositories/trace-repository.test.ts719 // ─── Shape 1: ≥1 phrases, empty semantic — pure lexical filter ────────COMMENT
MEDIUM…b-clickhouse/src/repositories/trace-repository.test.ts794 // ─── Shape 2: empty phrases, ≥1 semantic — pure semantic ranking ──────COMMENT
MEDIUM…b-clickhouse/src/repositories/trace-repository.test.ts841 // ─── Multi-chunk rollup ──────────────────────────────────────────────COMMENT
MEDIUM…ickhouse/src/repositories/metric-series-reader.test.ts409 // ── spans stream (per tool-call) ────────────────────────────────────────────COMMENT
MEDIUM…clickhouse/src/repositories/claude-code-span-reader.ts488 // ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…clickhouse/src/repositories/claude-code-span-reader.ts490 // ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…clickhouse/src/repositories/claude-code-span-reader.ts542 // ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…clickhouse/src/repositories/claude-code-span-reader.ts548 // ─────────────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/custom_commands.rs73 // ── Registry (test-only) ────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/custom_commands.rs299 // ── Typed command tests ─────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/hooks.rs13// ── Pattern matching ────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/hooks.rs73// ── Hook storage ────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/hooks.rs242// ── Tests ───────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/output.rs12// ── Dangerous character detection ─────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/output.rs33// ── Sanitization ──────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/output.rs74// ── Color ─────────────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/output.rs99 // ── sanitize_for_terminal ─────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/output.rs155 // ── reject_dangerous_chars ────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/output.rs221 // ── colorize ──────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/app.rs57// ── Tier 1 deferred operations ──────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/app.rs75// ── Root CliApp ─────────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/app.rs132 // ── CLI metadata ────────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/app.rs155 // ── Binding registration ────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/app.rs166 // ── Auth registration ────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/app.rs231 // ── Custom commands ──────────────────────────────────────────────COMMENT
MEDIUMpackages/cli/src/app.rs433 // ── Tier 1: Declarative ─────────────────────────────────────────COMMENT
165 more matches not shown…
Magic Placeholder Names215 hits · 548 pts
SeverityFileLineSnippetContext
HIGHdocs/scores/api.md38 -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/telemetry/python.md29 api_key="your-api-key",CODE
HIGHdocs/telemetry/python.md65 api_key="your-api-key",CODE
HIGHdocs/telemetry/python.md186 api_key="your-api-key",CODE
HIGHdocs/telemetry/python.md205 api_key="your-api-key",CODE
HIGHdocs/telemetry/otel-exporter.md27| **`Authorization`** | `Bearer <your-api-key>` |CODE
HIGHdocs/telemetry/otel-exporter.md39 -H "Authorization: Bearer YOUR_API_KEY" \CODE
HIGHdocs/telemetry/otel-exporter.md153export OTEL_EXPORTER_OTLP_TRACES_HEADERS="Authorization=Bearer YOUR_API_KEY,X-Latitude-Project=YOUR_PROJECT_SLUG"CODE
HIGHpackages/sdk/python/src/latitude_sdk/client.py82 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/client.py353 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/monitors/client.py75 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/monitors/client.py116 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/monitors/client.py167 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/monitors/client.py216 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/monitors/client.py252 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/monitors/client.py305 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/monitors/client.py361 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/monitors/client.py400 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/monitors/client.py437 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/monitors/client.py504 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/monitors/client.py553 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/monitors/client.py612 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/monitors/client.py669 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/monitors/client.py713 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/monitors/client.py774 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/monitors/client.py838 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/monitors/client.py885 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/monitors/client.py930 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/api_keys/client.py49 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/api_keys/client.py78 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/api_keys/client.py109 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/api_keys/client.py139 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/api_keys/client.py173 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/api_keys/client.py220 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/api_keys/client.py257 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/api_keys/client.py296 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/api_keys/client.py334 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/api_keys/client.py378 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/traces/client.py91 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/traces/client.py144 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/traces/client.py182 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/traces/client.py219 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/traces/client.py259 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/traces/client.py309 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/traces/client.py356 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/traces/client.py403 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/traces/client.py486 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/traces/client.py547 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/traces/client.py593 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/traces/client.py638 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/traces/client.py686 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/traces/client.py744 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/traces/client.py799 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/traces/client.py854 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/tools/client.py80 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/tools/client.py142 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/tools/client.py210 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/tools/client.py276 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/tools/client.py342 api_key="YOUR_API_KEY",STRING
HIGHpackages/sdk/python/src/latitude_sdk/tools/client.py403 api_key="YOUR_API_KEY",STRING
155 more matches not shown…
Cross-File Repetition102 hits · 510 pts
SeverityFileLineSnippetContext
HIGH…de_sdk/types/experiment_signals_metrics_cost_impact.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…atitude_sdk/types/experiment_tools_metrics_distinct.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…itude_sdk/types/experiment_tools_metrics_error_rate.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…de_sdk/types/experiment_sessions_metrics_tokens_avg.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…atitude_sdk/types/experiment_sessions_metrics_users.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…tude_sdk/types/experiment_sessions_metrics_cost_avg.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…itude_sdk/types/experiment_signals_metrics_distinct.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…k/types/experiment_users_metrics_error_session_rate.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…ude_sdk/types/experiment_tools_metrics_duration_p90.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…pes/experiment_behaviours_metrics_distinct_clusters.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…atitude_sdk/types/experiment_users_metrics_distinct.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…dk/types/experiment_sessions_metrics_cache_hit_rate.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…s/experiment_signals_metrics_affected_sessions_rate.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…ude_sdk/types/experiment_behaviours_metrics_moments.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…de_sdk/types/experiment_sessions_metrics_cost_total.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…de_sdk/types/experiment_sessions_metrics_error_rate.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…ude_sdk/types/experiment_tools_metrics_duration_p95.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…de_sdk/types/experiment_signals_metrics_occurrences.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…sdk/types/experiment_signals_metrics_affected_users.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…atitude_sdk/types/experiment_users_metrics_cost_avg.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…_sdk/types/experiment_users_metrics_duration_median.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…de_sdk/types/experiment_sessions_metrics_traces_avg.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…pes/experiment_signals_metrics_affected_traces_rate.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…k/types/experiment_sessions_metrics_duration_median.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…ude_sdk/types/experiment_users_metrics_duration_p90.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…c/latitude_sdk/types/experiment_tools_metrics_calls.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…dk/types/experiment_users_metrics_sessions_per_user.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…ude_sdk/types/experiment_tools_metrics_duration_p50.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…ude_sdk/types/experiment_sessions_metrics_spans_avg.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…ude_sdk/types/experiment_users_metrics_duration_p95.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…_sdk/types/experiment_sessions_metrics_duration_p95.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…dk/types/experiment_behaviours_metrics_observations.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…_sdk/types/experiment_sessions_metrics_tokens_total.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…atitude_sdk/types/experiment_sessions_metrics_count.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…_sdk/types/experiment_sessions_metrics_duration_p90.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…_sdk/types/experiment_users_metrics_traces_per_user.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…e_sdk/types/experiment_sessions_metrics_ttft_median.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…s/experiment_tools_metrics_sessions_with_tools_rate.py0value in the metric's unit; `null` when empty or not computable.STRING
HIGH…tude_sdk/types/create_monitor_body_threshold_target.py0product target category: `savedsearch`, `tool`, `user`, or `session`.STRING
HIGH…ude_sdk/types/create_monitor_body_escalating_target.py0product target category: `savedsearch`, `tool`, `user`, or `session`.STRING
HIGH…es/sdk/python/src/latitude_sdk/types/monitor_target.py0product target category: `savedsearch`, `tool`, `user`, or `session`.STRING
HIGH…latitude_sdk/types/create_monitor_body_match_target.py0product target category: `savedsearch`, `tool`, `user`, or `session`.STRING
HIGH…tude_sdk/types/create_monitor_body_threshold_target.py0target entity id, or `null` for project-wide targets.STRING
HIGH…ude_sdk/types/create_monitor_body_escalating_target.py0target entity id, or `null` for project-wide targets.STRING
HIGH…es/sdk/python/src/latitude_sdk/types/monitor_target.py0target entity id, or `null` for project-wide targets.STRING
HIGH…latitude_sdk/types/create_monitor_body_match_target.py0target entity id, or `null` for project-wide targets.STRING
HIGH…tude_sdk/types/create_monitor_body_threshold_target.py0semantic query applied when evaluating inline trace targets.STRING
HIGH…ude_sdk/types/create_monitor_body_escalating_target.py0semantic query applied when evaluating inline trace targets.STRING
HIGH…es/sdk/python/src/latitude_sdk/types/monitor_target.py0semantic query applied when evaluating inline trace targets.STRING
HIGH…latitude_sdk/types/create_monitor_body_match_target.py0semantic query applied when evaluating inline trace targets.STRING
HIGH…tude_sdk/types/create_monitor_body_threshold_target.py0normalized target kind returned on persisted monitors.STRING
HIGH…ude_sdk/types/create_monitor_body_escalating_target.py0normalized target kind returned on persisted monitors.STRING
HIGH…es/sdk/python/src/latitude_sdk/types/monitor_target.py0normalized target kind returned on persisted monitors.STRING
HIGH…latitude_sdk/types/create_monitor_body_match_target.py0normalized target kind returned on persisted monitors.STRING
HIGH…on/src/latitude_sdk/types/analytics_query_behaviors.py0structured filter set applied to the stream (same dsl as `listtraces`).STRING
HIGH…ython/src/latitude_sdk/types/analytics_query_scores.py0structured filter set applied to the stream (same dsl as `listtraces`).STRING
HIGH…ython/src/latitude_sdk/types/analytics_query_traces.py0structured filter set applied to the stream (same dsl as `listtraces`).STRING
HIGH…hon/src/latitude_sdk/types/analytics_query_sessions.py0structured filter set applied to the stream (same dsl as `listtraces`).STRING
HIGH…thon/src/latitude_sdk/types/analytics_query_moments.py0structured filter set applied to the stream (same dsl as `listtraces`).STRING
HIGH…rc/latitude_sdk/types/analytics_query_traces_metric.py0the metric: `count`, `errorrate`, `cachehitrate`, `{sum|min|max|avg|median}` over `duration`/`cost`/`tokens`, or `{kind:STRING
42 more matches not shown…
Hyper-Verbose Identifiers444 hits · 460 pts
SeverityFileLineSnippetContext
LOWinfra/lib/ecs.ts718function createMigrationTaskDefinition(CODE
LOWinfra/lib/security-compliance.ts178function createCloudTrailWithCloudWatch(name: string, config: EnvironmentConfig): {CODE
LOWinfra/lib/security-compliance.ts282function createGuardDutyServiceLinkedRole(name: string, config: EnvironmentConfig): aws.iam.ServiceLinkedRole | undefineCODE
LOWinfra/lib/dns.ts30export function createTryLatitudeDnsRecords(CODE
LOWinfra/lib/alb.ts194function createStatusPageRedirectActions() {CODE
LOWtools/live-seeds/src/runtime.ts366function buildTraceDispatchContext(trace: ResolvedLiveSeedTrace): TraceDispatchContext {CODE
LOWtools/live-seeds/src/runtime.ts996function buildScheduledSpansForCase(CODE
LOWtools/ai-benchmarks/src/runner/cache.ts4export function createBenchmarkCacheLayer() {CODE
LOW…oral-developer/references/typescript/error-handling.md47export async function workflowWithErrorHandling(): Promise<string> {CODE
LOWdocs/telemetry/python.md278def stream_support_agent_turn():CODE
LOWpackages/ui/src/components/charts/bar-chart.tsx92function computeBucketBottomAnchor(CODE
LOWpackages/ui/src/components/charts/chart-css-theme.ts71export function readChartThemeFromCssStable(): ChartCssThemeColors {CODE
LOW…ai-conversation/parts/remark-code-content-positions.ts4export function remarkCodeContentPositions() {CODE
LOWpackages/ui/src/components/modal/primitives.tsx41function isPortaledPickerInteraction(target: EventTarget | null): boolean {CODE
LOWpackages/platform/op-gepa/python/tests/test_protocol.py12def test_first_remote_message_returns_first_matching_key() -> None:CODE
LOWpackages/platform/op-gepa/python/tests/test_protocol.py24def test_exception_message_falls_back_to_class_name_for_cancelled_error() -> None:CODE
LOWpackages/platform/op-gepa/python/tests/test_protocol.py28def test_create_exception_error_never_emits_empty_message() -> None:CODE
LOW…platform/op-gepa/python/op_gepa_engine/rpc/protocol.py75def create_remote_error_exception(error: JsonRpcError) -> RpcRemoteError:CODE
LOWpackages/platform/op-gepa/src/protocol.ts191export function createInternalErrorResponse(id: JsonRpcId, error: unknown): JsonRpcResponse {CODE
LOWpackages/platform/op-gepa/src/protocol.ts269export function createJsonRpcResponseError(input: {CODE
LOWpackages/platform/db-postgres/src/schemaHelpers.ts17export function subscriptionReferenceRLSPolicy() {CODE
LOW…ckages/platform/db-postgres/src/seeds/signals/index.ts124function buildCentroidFromEmbeddings(CODE
LOW…ckages/platform/db-postgres/src/seeds/signals/index.ts155function buildRandomFallbackCentroid(seedKey: string, clusteredAt: Date): SignalCentroid & { clusteredAt: Date } {CODE
LOWpackages/platform/db-postgres/src/seeds/scores/index.ts24function scopedSignalIdByFixtureIndex(scope: SeedScope, index: number): string {CODE
LOWpackages/platform/db-postgres/src/seeds/scores/index.ts39function buildFailedTrajectoryIndexesByFamily(maxTrajectories = TAU2_SEED_TRAJECTORIES.length) {CODE
LOW…ges/platform/testkit/src/clickhouse/test-clickhouse.ts44function rewriteUnsupportedChdbFunctions(sql: string): string {CODE
LOW…form/db-clickhouse/src/session-intelligence-filters.ts85export function buildSessionIntelligenceFilters(filters: FilterSet | undefined): {CODE
LOW…kages/platform/db-clickhouse/src/registries/helpers.ts87export function buildHasLlmActivityClause(CODE
LOW…orm/db-clickhouse/src/repositories/trace-repository.ts444function buildTraceFilterCondition(CODE
LOW…orm/db-clickhouse/src/repositories/trace-repository.ts505function collectPercentileRequests(filters: FilterSet | undefined): {CODE
LOW…platform/db-clickhouse/src/repositories/search-plan.ts62function buildLexicalSearchSubquery(parsed: ParsedSearchQuery): {CODE
LOW…platform/db-clickhouse/src/repositories/search-plan.ts149function buildSharedMessageSemanticSearchSubquery(CODE
LOW…platform/db-clickhouse/src/repositories/search-plan.ts213function buildSemanticSearchSubquery(CODE
LOW…m/db-clickhouse/src/repositories/session-repository.ts355export function buildSessionFilterClauses(filters: FilterSet | undefined): {CODE
LOW…m/db-clickhouse/src/repositories/session-repository.ts417function collectPercentileRequests(filters: FilterSet | undefined): {CODE
LOW…platform/db-clickhouse/src/seeds/spans/fixed-traces.ts9function formatClickHouseTimestamp(date: Date): string {CODE
LOW…platform/db-clickhouse/src/seeds/spans/fixed-traces.ts245function createCompatibilityChatSpan(opts: {CODE
LOW…platform/db-clickhouse/src/seeds/spans/fixed-traces.ts419export function buildCompatibilitySupportSpans(scope: SeedScope): SpanRow[] {CODE
LOW…platform/db-clickhouse/src/seeds/spans/fixed-traces.ts463function buildLargeConversationMessages(spec: LargeConversationSpec): Tau2Message[] {CODE
LOW…platform/db-clickhouse/src/seeds/spans/fixed-traces.ts473function createLargeConversationChatSpan(opts: { scope: SeedScope; spec: LargeConversationSpec }): SpanRow {CODE
LOW…platform/db-clickhouse/src/seeds/spans/fixed-traces.ts596function buildLargeConversationSpans(scope: SeedScope): SpanRow[] {CODE
LOW…form/db-clickhouse/src/seeds/spans/orphan-fragments.ts8function formatClickHouseTimestamp(date: Date): string {CODE
LOW…form/db-clickhouse/src/seeds/spans/orphan-fragments.ts105function buildOrphanFragmentTraceSpans({ scope, spec }: BuildSpansArgs): SpanRow[] {CODE
LOW…form/db-clickhouse/src/seeds/spans/orphan-fragments.ts278function buildAllOrphanFragmentSpans(scope: SeedScope): SpanRow[] {CODE
LOW…kages/platform/db-clickhouse/src/seeds/scores/index.ts24function scopedSignalIdByFixtureIndex(scope: SeedScope, index: number): string {CODE
LOW…kages/platform/db-clickhouse/src/seeds/scores/index.ts39function buildFailedTrajectoryIndexesByFamily(maxTrajectories = TAU2_SEED_TRAJECTORIES.length) {CODE
LOW…kages/platform/db-clickhouse/src/seeds/scores/index.ts97export function buildLifecycleAnalyticsRows(scope: SeedScope) {CODE
LOWpackages/utils/src/env.ts13export function loadDevelopmentEnvironments(importMetaUrl: string) {CODE
LOWpackages/observability/src/record-span-exception.ts39export function recordSpanExceptionForDatadog(span: Span, error: unknown): Error {CODE
LOWpackages/sdk/python/tests/test_client.py30def test_client_exposes_documented_resources(client_class):CODE
LOWpackages/sdk/python/tests/test_client.py36def test_default_base_url_is_production():CODE
LOWpackages/sdk/python/src/latitude_sdk/client.py284def _make_default_async_client(CODE
LOW…ckages/sdk/python/src/latitude_sdk/core/http_client.py121def _retry_timeout_from_retries(retries: int) -> float:CODE
LOW…ckages/sdk/python/src/latitude_sdk/core/http_client.py181def _maybe_filter_none_from_multipart_data(CODE
LOW…ckages/sdk/python/src/latitude_sdk/core/http_client.py209def maybe_filter_request_body(CODE
LOW…ges/sdk/python/src/latitude_sdk/core/client_wrapper.py65 def get_stream_reconnection_enabled(self) -> bool:CODE
LOW…ges/sdk/python/src/latitude_sdk/core/client_wrapper.py68 def get_max_stream_reconnection_attempts(self) -> typing.Optional[int]:CODE
LOWpackages/sdk/python/src/latitude_sdk/core/file.py25def convert_file_dict_to_httpx_tuples(CODE
LOW…ges/sdk/python/src/latitude_sdk/core/datetime_utils.py42 def __get_pydantic_core_schema__(cls, _source_type: Any, _handler: Any) -> Any: # type: ignore[override]CODE
LOW…ges/sdk/python/src/latitude_sdk/core/datetime_utils.py57 def _serialize_zoned_datetime(v: dt.datetime) -> str:CODE
384 more matches not shown…
Over-Commented Block341 hits · 308 pts
SeverityFileLineSnippetContext
LOWinfra/Pulumi.production.yaml21 # Set them out-of-band before `pulumi up`:COMMENT
LOWtools/ai-benchmarks/src/index.ts1// Public surface of @tools/ai-benchmarks. Most of this package is CLI-onlyCOMMENT
LOWtools/ai-benchmarks/src/optimize/candidate-loader.ts161 outputBytes: bundled.length,COMMENT
LOWtools/ai-benchmarks/src/optimize/candidate-loader.ts221 },COMMENT
LOWtools/ai-benchmarks/src/optimize/flagger/proposer.ts381 Effect.sync(() => {COMMENT
LOWtools/ai-benchmarks/src/runner/benchmark-identity.ts1// Fixed identifiers used for every benchmark row. These end up as both:COMMENT
LOWtools/ai-benchmarks/src/scripts/benchmark-optimize.ts81// Hybrid formula: cap = max(baseline × MULTIPLIER, baseline + MIN_HEADROOM).COMMENT
LOWtools/ai-benchmarks/src/scripts/benchmark-optimize.ts321 let evalCurrentHash: string | null = nullCOMMENT
LOWtools/ai-benchmarks/src/scripts/benchmark-optimize.ts521 const elapsed = Math.floor((Date.now() - attemptStartedAtMs) / 1000)COMMENT
LOWtools/ai-benchmarks/src/scripts/benchmark-optimize.ts681 const noImprovement = winner.hash === baselineCandidate.hashCOMMENT
LOWtools/ai-benchmarks/src/scripts/benchmark-report.ts1import { dirname, join } from "node:path"COMMENT
LOW…/ai-benchmarks/src/mappers/jailbreak/jailbreakbench.ts21// per model share the same wrapping; only the final `goal` varies. ThisCOMMENT
LOWspecs/signals.md241### Shared contracts (`@domain/shared`, `@domain/scores`)COMMENT
LOWspecs/signals.md301COMMENT
LOWcharts/latitude/values.yaml1# Default values for the Latitude chart.COMMENT
LOWcharts/latitude/values.yaml41 # in the pod spec.COMMENT
LOWcharts/latitude/values.yaml221# Workflow engine — single-instance Temporal server backed by Postgres forCOMMENT
LOWfern/invoke.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/audit/mini-shai-hulud.sh1#!/usr/bin/env bashCOMMENT
LOW…gres/src/repositories/admin-organization-repository.ts201 organizationId: members.organizationId,COMMENT
LOWpackages/platform/queue-bullmq/src/adapter.ts61 // - debounce: `extend: true, replace: true` — each publish within the TTLCOMMENT
LOW…atform/db-clickhouse/clickhouse/scripts/dump-schema.sh1#!/usr/bin/env bashCOMMENT
LOW…clickhouse/src/repositories/session-repository.test.ts1441 // 6) Multi-trace session: matching_trace_ids and matching_trace_scoresCOMMENT
LOW…ckhouse/src/repositories/score-analytics-repository.ts1161 return { dimension, baseRate, signalAffectedTraces, values } satisfies SignalDimensionComparisonCOMMENT
LOW…ckhouse/src/repositories/score-analytics-repository.ts1241COMMENT
LOW…ckhouse/src/repositories/score-analytics-repository.ts1341 // project) granule of history because the PK can't position byCOMMENT
LOW…clickhouse/src/repositories/claude-code-span-reader.ts61// Derives the skill name: the `Skill` tool's `skill` argument, else the parentCOMMENT
LOW…clickhouse/src/repositories/claude-code-span-reader.ts81//COMMENT
LOW…clickhouse/src/repositories/claude-code-span-reader.ts541COMMENT
LOW…clickhouse/src/repositories/claude-code-span-reader.ts761 // "Claude time" = sum-of-active-turn-bursts across all sessions.COMMENT
LOW…clickhouse/src/repositories/claude-code-span-reader.ts841 //COMMENT
LOWpackages/cli/Cargo.toml21[features]COMMENT
LOWpackages/cli/src/custom_commands.rs1//! Helpers for grafting custom CLI subcommands onto a spec-derivedCOMMENT
LOWpackages/cli/src/man.rs1//! Man page generation.COMMENT
LOWpackages/cli/src/error.rs201/// Shape:COMMENT
LOWpackages/cli/src/lib.rs41/// `cli_name` is the binary name (e.g. `"my-cli"`). The function readsCOMMENT
LOWpackages/cli/src/logging.rs1//! Structured LoggingCOMMENT
LOWpackages/cli/src/formatter.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWpackages/cli/src/formatter.rs41///COMMENT
LOWpackages/cli/src/formatter.rs61 /// 2. the per-binary `<NAME>_OUTPUT` env var, if set to a valid formatCOMMENT
LOWpackages/cli/src/formatter.rs201COMMENT
LOWpackages/cli/src/cli_args.rs41COMMENT
LOWpackages/cli/src/cli_args.rs81 // Value-taking flag: skip the immediately following token if itCOMMENT
LOWpackages/cli/src/cli_args.rs101///COMMENT
LOWpackages/cli/src/output.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWpackages/cli/src/binding.rs21 /// A decoded response value. The root `CliApp` will runCOMMENT
LOWpackages/cli/src/binding.rs61 ///COMMENT
LOWpackages/cli/src/binding.rs81 /// - `Ok(Some(value))` — this binding owns the path; `value` is the JSONCOMMENT
LOWpackages/cli/src/binding.rs101 /// to resolve global flags like server vars and global headers).COMMENT
LOWpackages/cli/src/binding.rs121 /// if validation passes, or `Err(CliError::Validation(...))` listingCOMMENT
LOWpackages/cli/src/text.rs41/// `x-fern-sdk-variables` to derive the env-var fallback for each global.COMMENT
LOWpackages/cli/src/text.rs181 | '\u{2066}'..='\u{2069}' // LRI, RLI, FSI, PDICOMMENT
LOWpackages/cli/src/http.rs1//! HTTP client construction and TLS-error diagnostics.COMMENT
LOWpackages/cli/src/http.rs21//! `<NAME>_INSECURE_SKIP_VERIFY` (= `_INSECURE`).COMMENT
LOWpackages/cli/src/http.rs41COMMENT
LOWpackages/cli/src/http.rs61 /// later `build_client` failure can only come from runtime input.COMMENT
LOWpackages/cli/src/http.rs81/// The reqwest path in [`HttpConfig::build_client`] reads env varsCOMMENT
LOWpackages/cli/src/http.rs181 /// SSE / raw-socket consumers) that need to build their own TLSCOMMENT
LOWpackages/cli/src/pager.rs1// SPDX-License-Identifier: Apache-2.0COMMENT
LOWpackages/cli/src/debug.rs1//! Debug HTTP dump and rich error display.COMMENT
281 more matches not shown…
Modern Structural Boilerplate40 hits · 41 pts
SeverityFileLineSnippetContext
LOWpackages/sdk/python/src/latitude_sdk/__init__.py1796__all__ = [CODE
LOW…kages/sdk/python/src/latitude_sdk/monitors/__init__.py37__all__ = ["ListMonitorsForTargetBodyTargetType", "UpdateMonitorBodySeverity"]CODE
LOW…sdk/python/src/latitude_sdk/monitors/types/__init__.py38__all__ = ["ListMonitorsForTargetBodyTargetType", "UpdateMonitorBodySeverity"]CODE
LOWpackages/sdk/python/src/latitude_sdk/traces/__init__.py34__all__ = ["ListTracesBodySortBy", "ListTracesBodySortDirection"]CODE
LOW…s/sdk/python/src/latitude_sdk/traces/types/__init__.py38__all__ = ["ListTracesBodySortBy", "ListTracesBodySortDirection"]CODE
LOWpackages/sdk/python/src/latitude_sdk/tools/__init__.py50__all__ = [CODE
LOW…es/sdk/python/src/latitude_sdk/tools/types/__init__.py48__all__ = [CODE
LOWpackages/sdk/python/src/latitude_sdk/types/__init__.py1527__all__ = [CODE
LOWpackages/sdk/python/src/latitude_sdk/core/__init__.py91__all__ = [CODE
LOW…sdk/python/src/latitude_sdk/core/pydantic_utilities.py455def update_forward_refs(model: Type["Model"], **localns: Any) -> None:CODE
LOW…/sdk/python/src/latitude_sdk/core/http_sse/__init__.py42__all__ = ["EventSource", "SSEError", "ServerSentEvent", "aconnect_sse", "connect_sse"]CODE
LOWpackages/sdk/python/src/latitude_sdk/spans/__init__.py44__all__ = [CODE
LOW…es/sdk/python/src/latitude_sdk/spans/types/__init__.py42__all__ = [CODE
LOW…sdk/python/src/latitude_sdk/saved_searches/__init__.py37__all__ = ["ListTracesSavedSearchesRequestSortBy", "ListTracesSavedSearchesRequestSortDirection"]CODE
LOW…thon/src/latitude_sdk/saved_searches/types/__init__.py38__all__ = ["ListTracesSavedSearchesRequestSortBy", "ListTracesSavedSearchesRequestSortDirection"]CODE
LOW…es/sdk/python/src/latitude_sdk/experiments/__init__.py60__all__ = [CODE
LOW…/python/src/latitude_sdk/experiments/types/__init__.py74__all__ = [CODE
LOW…kages/sdk/python/src/latitude_sdk/projects/__init__.py34__all__ = ["UpdateProjectBodyFlaggers", "UpdateProjectBodySettings"]CODE
LOW…sdk/python/src/latitude_sdk/projects/types/__init__.py38__all__ = ["UpdateProjectBodyFlaggers", "UpdateProjectBodySettings"]CODE
LOW…ckages/sdk/python/src/latitude_sdk/signals/__init__.py130__all__ = [CODE
LOW…/sdk/python/src/latitude_sdk/signals/types/__init__.py176__all__ = [CODE
LOW…kages/sdk/python/src/latitude_sdk/datasets/__init__.py104__all__ = [CODE
LOW…sdk/python/src/latitude_sdk/datasets/types/__init__.py108__all__ = [CODE
LOWpackages/sdk/python/src/latitude_sdk/users/__init__.py48__all__ = [CODE
LOW…es/sdk/python/src/latitude_sdk/users/types/__init__.py46__all__ = [CODE
LOW…ckages/sdk/python/src/latitude_sdk/members/__init__.py34__all__ = ["InviteMemberBodyRole", "UpdateMemberRoleBodyRole"]CODE
LOW…/sdk/python/src/latitude_sdk/members/types/__init__.py38__all__ = ["InviteMemberBodyRole", "UpdateMemberRoleBodyRole"]CODE
LOWpackages/sdk/python/src/latitude_sdk/errors/__init__.py46__all__ = [CODE
LOW…ages/sdk/python/src/latitude_sdk/incidents/__init__.py37__all__ = ["ListIncidentsRequestSeveritiesItem", "ListIncidentsRequestSourceType"]CODE
LOW…dk/python/src/latitude_sdk/incidents/types/__init__.py38__all__ = ["ListIncidentsRequestSeveritiesItem", "ListIncidentsRequestSourceType"]CODE
LOW…es/telemetry/python/src/latitude_telemetry/__init__.py78__all__ = [CODE
LOW…ry/python/src/latitude_telemetry/constants/__init__.py4__all__ = [CODE
LOW…etry/python/src/latitude_telemetry/sdk/_deprecation.py11logger = logging.getLogger(__name__)CODE
LOW…elemetry/python/src/latitude_telemetry/sdk/__init__.py19__all__ = [CODE
LOW…es/telemetry/python/src/latitude_telemetry/sdk/init.py28logger = logging.getLogger(__name__)CODE
LOW…/python/src/latitude_telemetry/sdk/instrumentations.py20logger = logging.getLogger(__name__)CODE
LOW…on/src/latitude_telemetry/instrumentations/__init__.py7__all__ = [CODE
LOW…ry/python/src/latitude_telemetry/telemetry/__init__.py5__all__ = [CODE
LOW…lemetry/hermes/src/latitude_telemetry_hermes/config.py52logger = logging.getLogger(__name__)CODE
LOW…metry/hermes/src/latitude_telemetry_hermes/__init__.py5__all__ = ["register"]CODE
Excessive Try-Catch Wrapping33 hits · 40 pts
SeverityFileLineSnippetContext
MEDIUM.agents/skills/ci-watchdog/scripts/parse_failures.py59 print("Error: Could not parse JSON from stdin", file=sys.stderr)CODE
MEDIUM.agents/skills/ci-watchdog/scripts/parse_failures.py63 print("Error: Expected JSON array", file=sys.stderr)CODE
LOWdocs/telemetry/python.md106except Exception as error:CODE
LOW…s/platform/op-gepa/python/op_gepa_engine/rpc/server.py206 except Exception as error:CODE
LOW…s/platform/op-gepa/python/op_gepa_engine/rpc/server.py265 except Exception as error:CODE
LOW…ckages/sdk/python/src/latitude_sdk/core/http_client.py36 except Exception:CODE
LOW…s/sdk/python/src/latitude_sdk/core/jsonable_encoder.py98 except Exception as e:CODE
LOW…s/sdk/python/src/latitude_sdk/core/jsonable_encoder.py103 except Exception as e:CODE
LOW…ges/sdk/python/src/latitude_sdk/core/datetime_utils.py23 except Exception:CODE
LOWpackages/telemetry/python/README.md301except Exception as error:CODE
LOWpackages/telemetry/python/examples/run_all.py99 except Exception as e:CODE
MEDIUMpackages/telemetry/python/examples/run_all.py125 print(f"Error: Missing required env vars: {', '.join(missing_common)}")CODE
LOW…telemetry/python/src/latitude_telemetry/sdk/context.py191 except Exception as e:CODE
LOW…telemetry/python/src/latitude_telemetry/sdk/context.py202 except Exception as e:CODE
LOW…telemetry/python/src/latitude_telemetry/sdk/context.py213 except Exception as e:CODE
LOW…telemetry/python/src/latitude_telemetry/sdk/context.py303 except Exception as e:CODE
LOW…telemetry/python/src/latitude_telemetry/sdk/context.py320 except Exception as e:CODE
LOW…es/telemetry/python/src/latitude_telemetry/sdk/init.py195 except Exception:CODE
LOW…/python/src/latitude_telemetry/sdk/instrumentations.py238 except Exception as e:CODE
LOW…/python/src/latitude_telemetry/sdk/instrumentations.py256 except Exception as e:CODE
LOW…/python/src/latitude_telemetry/sdk/instrumentations.py268 except Exception as e:CODE
LOW…elemetry/hermes/src/latitude_telemetry_hermes/hooks.py21 except Exception as exc: # fail-openCODE
LOW…elemetry/hermes/src/latitude_telemetry_hermes/hooks.py30 except Exception as exc: # fail-openCODE
LOW…elemetry/hermes/src/latitude_telemetry_hermes/hooks.py39 except Exception as exc: # fail-openCODE
LOW…elemetry/hermes/src/latitude_telemetry_hermes/hooks.py48 except Exception as exc: # fail-openCODE
LOW…elemetry/hermes/src/latitude_telemetry_hermes/hooks.py57 except Exception as exc: # fail-openCODE
LOW…elemetry/hermes/src/latitude_telemetry_hermes/hooks.py66 except Exception as exc: # fail-openCODE
LOW…elemetry/hermes/src/latitude_telemetry_hermes/hooks.py84 except Exception as exc: # fail-openCODE
LOW…elemetry/hermes/src/latitude_telemetry_hermes/hooks.py89 except Exception as exc: # fail-openCODE
LOW…lemetry/hermes/src/latitude_telemetry_hermes/config.py46 except Exception:CODE
LOW…etry/hermes/src/latitude_telemetry_hermes/transport.py35 except Exception as exc: # fail-openCODE
LOW…telemetry/hermes/src/latitude_telemetry_hermes/util.py29 except Exception:CODE
LOW…metry/hermes/src/latitude_telemetry_hermes/messages.py119 except Exception:CODE
Modern AI Meta-Vocabulary16 hits · 40 pts
SeverityFileLineSnippetContext
MEDIUMspecs/agent-dispatch.md159. [Idempotency, guardrails, and failure policy](#idempotency-guardrails-and-failure-policy)CODE
MEDIUMspecs/agent-dispatch.md1594. **Guardrail gate** — per-config `maxDispatchesPerDay` and `cooldownMinutes` (see [Idempotency, guardrails, failure poCODE
MEDIUMspecs/agent-dispatch.md363## Idempotency, guardrails, and failure policyCOMMENT
MEDIUMspecs/signals.md461One builder ([R1](#r1--builder-ui-mvp), shipped #3773), three entry points (Signals list "New signal", "Create signal frCODE
MEDIUMspecs/signals.md461One builder ([R1](#r1--builder-ui-mvp), shipped #3773), three entry points (Signals list "New signal", "Create signal frCODE
MEDIUMspecs/signals.md641> Phases 1–6 above are shipped. **R1 (builder UI, #3773), R2's describe→script generation (since retired into R4), R3's CODE
MEDIUMspecs/signals.md660- [x] **Describe → script generation** (shipped #3763, then **retired into [R4](#r4--agentic-signal-creation-shipped)**)CODE
MEDIUM…ckhouse/src/repositories/score-analytics-repository.ts1600 // Bucket scaffold aligned to `toStartOfInterval(... , INTERVAL N SECOND)`COMMENT
MEDIUMpackages/telemetry/claude-code/src/otlp.ts21// entirely ASCII). A long agentic turn can contain hundreds of LLM calls, eachCOMMENT
MEDIUMpackages/telemetry/claude-code/src/index.ts145 // Long agentic turns produce payloads far beyond what a single POST can deliver,COMMENT
MEDIUM…ages/domain/signals/src/use-cases/list-signals.test.ts990 // Every bucket key is aligned to the chosen interval — no drift between scaffold rows.COMMENT
MEDIUMpackages/domain/shared/src/settings.ts9 keepMonitoring: z.boolean().optional(), // TODO: deprecated. Removed from frontend but maintained to keep cascaded setCODE
MEDIUM…main/taxonomy/src/use-cases/list-project-behaviours.ts195 // node whose members all moved into children must still scaffold them.COMMENT
MEDIUMpackages/domain/flaggers/src/helpers.ts234 // are intermediate agentic-loop steps in `lastInput` history, not the final response.COMMENT
MEDIUM…b/src/domains/organizations/organizations.functions.ts151 keepMonitoring: z.boolean().optional(), // TODO: deprecated. Removed from frontend but maintained to keep cascaded setCODE
MEDIUM…/signals/-components/builder/judge-detector-editor.tsx4// scaffold teaches the expected shape: a description of the session, not instructions.COMMENT
Structural Annotation Overuse15 hits · 27 pts
SeverityFileLineSnippetContext
LOW…temporal-developer/references/typescript/versioning.md45#### Step 1: Patch in New CodeCOMMENT
LOW…temporal-developer/references/typescript/versioning.md63#### Step 2: Deprecate the PatchCOMMENT
LOW…temporal-developer/references/typescript/versioning.md79#### Step 3: Remove the PatchCOMMENT
LOW.agents/skills/api-endpoints/SKILL.md55// Step 1: declare the mount path once; the module carries it.COMMENT
LOW.agents/skills/api-endpoints/SKILL.md58// Step 2: bind the operation factory to the Env type AND the path.COMMENT
LOW.agents/skills/api-endpoints/SKILL.md61// Step 3: define the boundary schemas. EVERY field gets `.describe(...)` if itsCOMMENT
LOW.agents/skills/api-endpoints/SKILL.md78// Step 4: declare each operation.COMMENT
LOW.agents/skills/api-endpoints/SKILL.md105// Step 5: export the module — mount order within `operations` is meaningfulCOMMENT
LOWdocs/getting-started/quick-start-dev.md15## Step 1: Create a ProjectCOMMENT
LOWdocs/getting-started/quick-start-dev.md21## Step 2: Connect TelemetryCOMMENT
LOWdocs/getting-started/quick-start-dev.md27## Step 3: View Your TracesCOMMENT
LOWdocs/getting-started/quick-start-dev.md38## Step 4: Explore ScoresCOMMENT
LOWdocs/getting-started/quick-start-dev.md50## Step 5: Explore with Search and AnnotateCOMMENT
LOWpackages/cli/src/text.rs68 // Step 1: reject control characters and whitespace.COMMENT
LOWpackages/cli/src/text.rs84 // Step 2: NFKD decompose → strip combining marks and zero-width/bidiCOMMENT
Fake / Example Data20 hits · 21 pts
SeverityFileLineSnippetContext
LOW…kages/platform/db-postgres/src/outbox-consumer.test.ts12 payload: { email: "user@example.com" },CODE
LOW…src/repositories/admin-feature-flag-repository.test.ts34 email: "admin@example.com",CODE
LOWpackages/cli/src/asyncapi/executor.rs917 ("placeholder", ""),CODE
LOWpackages/cli/src/openapi/skill_emitter.rs454 "email" => return "user@example.com".to_string(),CODE
LOWpackages/cli/src/openapi/skill_emitter.rs618 assert_eq!(example_placeholder(&email_param), "user@example.com");CODE
LOW…kages/telemetry/python/tests/telemetry/capture_test.py339 "user_email": "user@example.com",CODE
LOW…kages/telemetry/python/tests/telemetry/capture_test.py349 assert captured_ctx.user_email == "user@example.com"CODE
LOWpackages/domain/shared/src/errors.test.ts77 const err = new ConflictError({ entity: "User", field: "email", value: "foo@bar.com" })CODE
LOWpackages/domain/shared/src/errors.test.ts79 expect(err.httpMessage).toBe("User with email 'foo@bar.com' already exists")CODE
LOWpackages/domain/users/src/testing/index.ts1export { createFakeUserRepository } from "./fake-user-repository.ts"CODE
LOWpackages/domain/users/src/use-cases/delete-user.test.ts14import { createFakeUserRepository } from "../testing/fake-user-repository.ts"CODE
LOWpackages/domain/users/src/use-cases/get-account.test.ts14import { createFakeUserRepository } from "../testing/fake-user-repository.ts"CODE
LOW…/src/domains/organizations/complete-onboarding.test.ts10 const result = completeOnboardingInputSchema.safeParse({ name: "John Doe", organizationName: "Acme Inc." })CODE
LOW…/src/domains/organizations/complete-onboarding.test.ts18 expect(result.data).toEqual({ name: "John Doe", organizationName: "Acme" })CODE
LOW…/src/domains/organizations/complete-onboarding.test.ts81const INPUT = { actorUserId: "user-1", name: "John Doe", organizationName: "Acme" }CODE
LOW…/src/domains/organizations/complete-onboarding.test.ts106 expect(deps.updateUserName).toHaveBeenCalledWith("John Doe")CODE
LOWapps/web/src/domains/admin/users.functions.test.ts57 const result = adminChangeUserEmailInputSchema.safeParse({ userId: "user-123", newEmail: "user@example.com" })CODE
LOWapps/web/src/domains/admin/users.functions.test.ts60 expect(result.data.newEmail).toBe("user@example.com")CODE
LOWapps/web/src/domains/admin/users.functions.test.ts91 expect(adminChangeUserEmailInputSchema.safeParse({ userId: "", newEmail: "user@example.com" }).success).toBe(false)CODE
LOW…ackoffice/-components/account-actions/change-email.tsx112 placeholder="user@example.com"CODE
AI Structural Patterns20 hits · 19 pts
SeverityFileLineSnippetContext
LOWpackages/sdk/python/src/latitude_sdk/client.py86CODE
LOWpackages/sdk/python/src/latitude_sdk/client.py357CODE
LOW…ckages/sdk/python/src/latitude_sdk/core/http_client.py292CODE
LOW…ckages/sdk/python/src/latitude_sdk/core/http_client.py452CODE
LOW…ckages/sdk/python/src/latitude_sdk/core/http_client.py581CODE
LOW…ckages/sdk/python/src/latitude_sdk/core/http_client.py744CODE
LOW…ges/sdk/python/src/latitude_sdk/core/client_wrapper.py107CODE
LOW…sdk/python/src/latitude_sdk/core/pydantic_utilities.py280CODE
LOWpackages/sdk/python/src/latitude_sdk/signals/client.py46CODE
LOWpackages/sdk/python/src/latitude_sdk/signals/client.py707CODE
LOW…ages/sdk/python/src/latitude_sdk/signals/raw_client.py47CODE
LOW…ages/sdk/python/src/latitude_sdk/signals/raw_client.py1192CODE
LOWpackages/sdk/python/src/latitude_sdk/users/client.py39CODE
LOWpackages/sdk/python/src/latitude_sdk/users/client.py433CODE
LOW…ckages/sdk/python/src/latitude_sdk/users/raw_client.py39CODE
LOW…ckages/sdk/python/src/latitude_sdk/users/raw_client.py721CODE
LOWpackages/telemetry/python/examples/test_watsonx.py63CODE
LOW…es/telemetry/python/src/latitude_telemetry/sdk/init.py204CODE
LOW…es/telemetry/python/src/latitude_telemetry/sdk/init.py74CODE
LOW…/telemetry/python/src/latitude_telemetry/sdk/tracer.py80CODE
Self-Referential Comments5 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMdocker/seaweedfs/init.sh4# Create the storage bucket once the S3 gateway is up (idempotent), then handCOMMENT
MEDIUMcharts/latitude/templates/seaweedfs.yaml15 # Create the storage bucket once the S3 gateway is up (idempotent), then handCOMMENT
MEDIUMpackages/platform/db-postgres/scripts/migration.ts30# This file is auto-generated by the migration script.COMMENT
MEDIUM…es/platform/db-clickhouse/clickhouse/scripts/create.sh20# This file is auto-generated by the migration script.COMMENT
MEDIUM…emetry/python/tests/telemetry/trace_continuity_test.py38 # Create a child spanCOMMENT
AI Slop Vocabulary6 hits · 16 pts
SeverityFileLineSnippetContext
MEDIUMpackages/platform/latitude-api/src/client.test.ts215 // to 3 total attempts; asserting `> 1` keeps the test robust to theCOMMENT
LOW…ages/sdk/python/src/latitude_sdk/core/serialization.py251 # then we can just pass the value through as isCOMMENT
MEDIUM…s/_authenticated/projects/$projectSlug/tools/index.tsx158 // tool call — a robust empty-state signal (not the best-effort `firstTraceAt`).COMMENT
MEDIUM…projects/$projectSlug/-components/project-explorer.tsx440 // means the project has no traces at all, a robust "empty project" signal. `firstTraceAt` isCOMMENT
MEDIUM…ts/$projectSlug/-components/use-project-time-window.ts112 // data (a robust signal, unlike the best-effort `firstTraceAt` flag). Forward `searchQuery` so theCOMMENT
MEDIUM…s/_authenticated/projects/$projectSlug/users/index.tsx154 // `totalCount` is over the All-time default, so 0 means the project has no users at all — a robustCOMMENT
Overly Generic Function Names15 hits · 16 pts
SeverityFileLineSnippetContext
LOW…kages/telemetry/python/tests/telemetry/capture_test.py217 def my_function():CODE
LOW…kages/telemetry/python/tests/telemetry/capture_test.py355 def my_function():CODE
LOW…kages/telemetry/python/tests/telemetry/capture_test.py24 def my_function():CODE
LOW…kages/telemetry/python/tests/telemetry/capture_test.py174 def my_function():CODE
LOW…kages/telemetry/python/tests/telemetry/capture_test.py194 def my_function():CODE
LOW…kages/telemetry/python/tests/telemetry/capture_test.py326 def my_function():CODE
LOW…emetry/python/tests/telemetry/trace_continuity_test.py28 def my_function():CODE
LOW…emetry/python/tests/telemetry/trace_continuity_test.py66 def my_function():CODE
LOW…emetry/python/tests/telemetry/trace_continuity_test.py89 def my_function():CODE
LOW…emetry/python/tests/telemetry/trace_continuity_test.py106 def my_function():CODE
LOW…emetry/python/tests/telemetry/trace_continuity_test.py164 def my_function():CODE
LOW…emetry/python/tests/telemetry/trace_continuity_test.py188 def my_function():CODE
LOW…emetry/python/tests/telemetry/trace_continuity_test.py214 def my_function():CODE
LOW…emetry/python/tests/telemetry/trace_continuity_test.py239 def my_function():CODE
LOW…emetry/python/tests/telemetry/trace_continuity_test.py267 def my_function():CODE
Synthetic Comment Markers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH.agents/skills/humanizer/SKILL.md620This skill is based on [Wikipedia:Signs of AI writing](https://en.wikipedia.org/wiki/Wikipedia:Signs_of_AI_writing), maiCODE
HIGHpackages/cli/cli/latitude/openapi0.json1{"openapi":"3.1.0","info":{"title":"Latitude","version":"v1","description":"Open-source AI agent monitoring platform. FuCODE
HIGHpackages/cli/cli/latitude/openapi0.json1{"openapi":"3.1.0","info":{"title":"Latitude","version":"v1","description":"Open-source AI agent monitoring platform. FuCODE
Deep Nesting14 hits · 14 pts
SeverityFileLineSnippetContext
LOWpackages/platform/op-gepa/python/op_gepa_engine/util.py13CODE
LOW…s/sdk/python/src/latitude_sdk/core/jsonable_encoder.py31CODE
LOWpackages/sdk/python/src/latitude_sdk/core/file.py46CODE
LOW…ages/sdk/python/src/latitude_sdk/core/query_encoder.py9CODE
LOW…ages/sdk/python/src/latitude_sdk/core/query_encoder.py26CODE
LOW…sdk/python/src/latitude_sdk/core/pydantic_utilities.py187CODE
LOW…sdk/python/src/latitude_sdk/core/pydantic_utilities.py344CODE
LOW…sdk/python/src/latitude_sdk/core/http_sse/_decoders.py15CODE
LOW…/telemetry/python/src/latitude_telemetry/util/utils.py12CODE
LOW…/latitude_telemetry/telemetry/redact_span_processor.py32CODE
LOW…/latitude_telemetry/telemetry/redact_span_processor.py72CODE
LOWpackages/telemetry/hermes/tests/test_plugin.py22CODE
LOW…metry/hermes/src/latitude_telemetry_hermes/messages.py44CODE
LOW…metry/hermes/src/latitude_telemetry_hermes/messages.py141CODE
Cross-Language Confusion (JS/TS)2 hits · 10 pts
SeverityFileLineSnippetContext
HIGHscripts/taxonomy/rebuild.ts96 print(child.id, `${indent} `)CODE
HIGHscripts/taxonomy/rebuild.ts100 print(null, "")CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICAL…src/domains/agent-dispatch/agent-dispatch.functions.ts227 return parsed.data.data.users.nodes.map((user) => ({ id: user.id, name: user.name, email: user.email ?? null }))CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…s/platform/op-gepa/python/op_gepa_engine/rpc/server.py115Execute multiple RPC calls concurrently and wait for all to complete. All calls use the same method and responsSTRING
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWpackages/cli/src/text.rs68 // Step 1: reject control characters and whitespace.COMMENT
LOWpackages/cli/src/text.rs84 // Step 2: NFKD decompose → strip combining marks and zero-width/bidiCOMMENT
TODO Padding3 hits · 3 pts
SeverityFileLineSnippetContext
LOW…ges/domain/flaggers/src/flagger-strategies/laziness.ts76 • Placeholder comments in code ("// TODO: implement the rest")CODE
LOW…omain/flaggers/src/flagger-strategies/laziness.test.ts55 assistant("```ts\nexport function auth() {\n // TODO: implement\n}\n```"),CODE
LOW…omain/flaggers/src/flagger-strategies/laziness.test.ts79 assistant("```py\ndef fib(n):\n # TODO: implement\n```"),CODE