CAI Indexer — Metrics Dashboard

83.8% Line Coverage (5383/6424)
20 Files with Metrics
File Churn≤200 commits MI0–100 LoC CognitiveΣ per file CyclomaticΣ per file Functions Hottest Function Its Cognitive Biggest Function Its LoC Coverage
crates/indexer-core/src/batch.rs117824683120embed_batched5embed_batched2996%
crates/indexer-core/src/capture.rs30116510513246validate_batch17capture8895%
crates/indexer-core/src/checkout.rs117522973217safe_join4resolve2098%
crates/indexer-core/src/chunk.rs2192200213117split_body16split_body5499%
crates/indexer-core/src/config.rs59241874326ensure_artifact_cached2config_apply_wires_the_flag_and_cap_into_the_rerank_stage6394%
crates/indexer-core/src/embed.rs4113323134928new6embed3858%
crates/indexer-core/src/flag.rs10565619541append_flag15clear_flags5990%
crates/indexer-core/src/git_host.rs309744112254fresh_branch8pr_state4291%
crates/indexer-core/src/graph.rs40692498145walk_hops31walk_hops5280%
crates/indexer-core/src/lib.rs15377692104parse1parse953%
crates/indexer-core/src/manifest.rs127112211910read_or_corrupt1canonical_form_is_stable_across_runs1798%
crates/indexer-core/src/okf.rs454443336229first_atx_h18parse_note4294%
crates/indexer-core/src/pipeline.rs9016705017691index_note15index_note12088%
crates/indexer-core/src/rerank.rs226813422011rerank2rerank19100%
crates/indexer-core/src/retire.rs117923463218missing_reason_is_rejected2plan_retire2384%
crates/indexer-core/src/search.rs110936284028to_filter4to_request2786%
crates/indexer-core/src/store.rs6010752716392attach_vectors4snapshot_async5351%
crates/indexer-core/src/supersede.rs207813810063append_link9build_supersede_changes6895%
crates/indexer-core/src/validation.rs124556256333validate_link_targets9validate_note6695%
crates/indexer/src/main.rs417619534625main3main690%
goodcoverage ≥ 80% · MI ≥ 85 · function well under its gate · lower third of a relative column
middlecoverage ≥ 50% · MI ≥ 65 · function near its gate · middle third of a relative column
hotcoverage < 50% · MI < 65 · function at or above its gate · upper third of a relative column

Metric Configuration

Every color band in the table above is driven by one of the values below. Purpose says what the value decides; source names the file it is read from — the generator holds no metric constants of its own, so changing a value there recolors the dashboard on the next run. Relative-rank columns (churn, cognitive Σ, cyclomatic Σ, LoC) split each column into thirds anchored at that column's maximum: a "hot" is the worst file in this table, not an absolute verdict. Absolute thresholds (coverage, MI, per-function gates) stand independent of the table.

ValueCurrentPurposeSource
coverage_good_lines80line coverage at or above this is greenconfig.toml [presentation]
coverage_mid_lines50line coverage at or above this is amber, below is redconfig.toml [presentation]
mi_good85Maintainability Index at or above this is greenconfig.toml [presentation]
mi_mid65MI at or above this is amber, below is redconfig.toml [presentation]
relative_thirds0.34, 0.67rank split for churn / cognitive / cyclomatic / LoC columnsconfig.toml [presentation]
per_function_cognitive20a function at or above this is red — the lint gateclippy.toml
per_function_loc60a function at or above this is red — the lint gateclippy.toml

The hard coverage floor (the gate in [quality_gate]) is looser than the color bands; MI bands follow the Microsoft Visual Studio lineage convention.