Public report — code, published 27 Sep 2026. Concrete security findings (which rule fired, in which file, on which line; CVE IDs, secret matches, dependency versions) are REDACTED in this version; ask the repo owner for the full report.
Public
Codebase survey Measured under the Code Assurance Index · rubric rubric-2026.09.15 (frozen) · verify this survey Filed cd_bdc4dcad04b141bea9ad8a4e215517c1 Filed 27 September 2026, 06:03 UTC Public

Nikivdev/code

Measured 27 September 2026, 06:01 UTC

61% At Risk

Large · 143,638 LoC · rebuild ~1.3 person-years · weakest lens: Readiness (51%)

Findings by grade

63 critical 1113 serious 39 minor 40 could not be resolved — could be critical — see Limitations

This survey was produced by

Watchdog
Producer
Canine Development
Analyzer
Watchdog engine 1.0.0
Measured
27 September 2026, 06:01 UTC

A measurement, not a certificate. The Code Assurance Index does not certify, approve or guarantee this codebase; it records a reproducible number and the evidence it was computed from. The standard is authored by Canine Development, who also build Watchdog — its only implementation today. That is said here so the number is checked rather than believed.

Grounded in facts. Every number here is computed, not narrated — reproducible, tool-backed, and traceable to a line of code. How to trust this ▸

34/38dimensions tool-verifieddeterministic · confidence 1.0 · 4 LLM-assisted, advisory
1190findings with an exact file:lineof 1215 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
38/121dimensions across the health lenses143638 LoC — wide & deep
Chapters

Executive summary

⚠ A critical security finding caps this grade — resolve it before relying on the score below; see the Security lens.

Preview (pre-1.0). This repo hasn't declared a stable release, so it's judged against a relaxed, pre-production bar.

This system is a large, valuable asset currently rated at risk, with an overall health score of 61%. While the core domain logic is sound, the platform’s operational fragility and hidden maintenance costs threaten delivery speed and security. The business faces a choice: accept a growing tax on every change or invest in stabilizing the foundation to protect the €200,000 value tied up in this codebase.

The most critical vulnerability lies in Production Readiness, which scores poorly at 51%. For a system of this size, this means changes are risky to deploy and hard to monitor. Without robust testing and release gates, a single defect can reach users, causing outages or security breaches that are expensive to fix and damaging to trust. The lack of automated security checks in the build pipeline is a specific, high-impact gap that leaves the system exposed to known vulnerabilities.

Secondly, the codebase carries a significant Velocity Tax. While the architecture is decent, the code quality in key areas is mediocre, creating a drag on development. Every modification in these weaker sections likely costs 7–15% more effort than it should. This is not a one-time cost but a recurring tax on the hundreds of thousands of lines changed annually, slowly eroding team productivity and increasing the cost of new features.

There are genuine strengths to build on. The domain modeling is excellent, and the code is free of unnecessary boilerplate, meaning the core business logic is clear and maintainable. The effort to rebuild this system is estimated at roughly 1.3 person-years, indicating that the value is substantial and worth protecting. However, the bus factor is dangerously low, with only one key contributor, creating a single point of failure for knowledge.

The highest-leverage action is immediate: integrate automated security scanning into the continuous integration pipeline. This small change pays for itself within months by preventing security regressions and reducing the annual drag on productivity. Focus here first to stop the bleeding, then address the broader readiness gaps to ensure the system can scale safely.

How the score is built — each lens's share of the headline Width is the lens's weight in the worst-heaviest fold (the weakest area pulls hardest); colour is that lens's own band. A lens fixes the score in proportion to its width.
Readiness 51% · 46% weightMaturity 60% · 25% weightSecurity 68% · 14% weightCode Health 77% · 8% weightArchitecture 84% · 4% weightDomain Modelling 100% · 2% weightEvent Sourcing 100% · 1% weight

Raise Readiness 51 → 70 (the Healthy floor) ⇒ headline 61 → ~67.

Code composition — where the lines go
Tests 100%
New since the last scan (100+)

1174 finding(s) are new versus the previous scan (2026-08-07) — surfaced by this scheduled scan itself, no pull request required. Showing the first 100; the full set is in the report.

  • D1 · flowd::main (cyclomatic 158) src/main.rs
  • D1 · flowd::sync::run_sync (cyclomatic 100) src/sync.rs
  • D1 · flowd::commit::run_with_check_sync (cyclomatic 95) src/commit.rs
  • D1 · flowd::sync::run_jj_sync (cyclomatic 90) src/sync.rs
  • D1 · flowd::commit::run_commit_queue (cyclomatic 84) src/commit.rs
  • D1 · flowd::ai::run (cyclomatic 76) src/ai.rs
  • D1 · flowd::startup_policy_for (cyclomatic 63) src/main.rs
  • D1 · flowd::env::bootstrap_cloudflare_secrets (cyclomatic 39) src/env.rs
  • D1 · flowd::sync_plan::render_markdown (cyclomatic 38) src/sync_plan.rs
  • D1 · flowd::setup::setup_deploy (cyclomatic 37) src/setup.rs
  • D1 · flowd::commit::approve_all_queued_commits (cyclomatic 35) src/commit.rs
  • D1 · flowd::deploy_setup::handle_key (cyclomatic 35) src/deploy_setup.rs
  • D1 · flowd::commit::run_codex_review_once (cyclomatic 34) src/commit.rs
  • D1 · flowd::publish::run_github (cyclomatic 33) src/publish.rs
  • D1 · flowd::ai::scan_all_project_sessions (cyclomatic 31) src/ai.rs
  • D1 · flowd::tasks::run_command_with_pty (cyclomatic 30) src/tasks.rs
  • D1 · flowd::ai::recover_row_score (cyclomatic 30) src/ai.rs
  • D1 · flowd::ai::run_sessions (cyclomatic 30) src/ai.rs
  • D1 · flowd::env_setup::handle_key (cyclomatic 30) src/env_setup.rs
  • D1 · flowd::codex_memory::fact_score (cyclomatic 29) src/codex_memory.rs
  • D1 · flowd::commit::run_invariant_gate (cyclomatic 29) src/commit.rs
  • D1 · flowd::ai::copy_session (cyclomatic 29) src/ai.rs
  • D1 · flowd::ai::copy_session_by_search (cyclomatic 29) src/ai.rs
  • D1 · flowd::repos::bootstrap_home_branch (cyclomatic 29) src/repos.rs
  • D1 · flowd::commit::run_claude_review (cyclomatic 28) src/commit.rs
  • D1 · flowd::env::fetch_env_vars (cyclomatic 28) src/env.rs
  • D1 · flowd::supervisor::monitor_daemons (cyclomatic 27) src/supervisor.rs
  • D1 · flowd::deploy::deploy_host (cyclomatic 27) src/deploy.rs
  • D1 · flowd::deploy::deploy_cloudflare (cyclomatic 27) src/deploy.rs
  • D1 · flowd::upstream::sync_upstream (cyclomatic 26) src/upstream.rs
  • D1 · flowd::gh_release::create_release (cyclomatic 25) src/gh_release.rs
  • D1 · flowd::deps::build_pick_entries (cyclomatic 25) src/deps.rs
  • D1 · flowd::config::merge_config (cyclomatic 25) src/config.rs
  • D1 · flowd::env::show_keys (cyclomatic 25) src/env.rs
  • D1 · flowd::skills::fetch_skills (cyclomatic 24) src/skills.rs
  • D1 · flowd::sync::run_switch (cyclomatic 24) src/sync.rs
  • D1 · flowd::commit::parse_review_selection_spec (cyclomatic 24) src/commit.rs
  • D1 · flowd::commit::parse_commit_message_selection_spec (cyclomatic 24) src/commit.rs
  • D1 · flowd::updates::render_markdown (cyclomatic 24) src/updates.rs
  • D1 · flowd::ai::read_context_since (cyclomatic 24) src/ai.rs
  • D1 · flowd::ai::list_sessions (cyclomatic 24) src/ai.rs
  • D1 · flowd::ai::strip_codex_session_followup_prefix (cyclomatic 24) src/ai.rs
  • D1 · flowd::ai::copy_context (cyclomatic 24) src/ai.rs
  • D1 · flowd::url_inspect::inspect_url (cyclomatic 24) src/url_inspect.rs
  • D1 · flow_commit_scan::scan_diff_for_secrets (cyclomatic 24) crates/flow_commit_scan/src/lib.rs
  • D1 · flowd::hive::discover_agents (cyclomatic 23) src/hive.rs
  • D1 · flowd::deploy::run_prod_with_project_context (cyclomatic 23) src/deploy.rs
  • D1 · flowd::env::set_project_env_var_internal (cyclomatic 23) src/env.rs
  • D1 · flowd::codex_memory::score_code_path (cyclomatic 22) src/codex_memory.rs
  • D1 · flowd::setup::repair_existing_host_config (cyclomatic 22) src/setup.rs
  • D1 · flowd::ai::collect_codex_doctor_snapshot (cyclomatic 22) src/ai.rs
  • D1 · flowd::setup::run (cyclomatic 21) src/setup.rs
  • D1 · flowd::sync::merge_remote_branch_into_current (cyclomatic 21) src/sync.rs
  • D1 · flowd::commit::warn_secrets_in_diff (cyclomatic 21) src/commit.rs
  • D1 · flowd::ai::codex_project_ai_command (cyclomatic 21) src/ai.rs
  • D1 · flowd::ai::read_cross_project_context (cyclomatic 21) src/ai.rs
  • D1 · flowd::ai_project_manifest::build_manifest (cyclomatic 21) src/ai_project_manifest.rs
  • D1 · flowd::bin::ai_taskd_client::run (cyclomatic 20) src/bin/ai_taskd_client.rs
  • D1 · flowd::commit::run_fast (cyclomatic 20) src/commit.rs
  • D1 · flowd::commit::run_kimi_review (cyclomatic 20) src/commit.rs
  • D1 · flowd::ssh_keys::upsert_ssh_block (cyclomatic 20) src/ssh_keys.rs
  • D1 · flowd::commit::run_sync (cyclomatic 19) src/commit.rs
  • D1 · flowd::commit::run_pre_commit_test_gate (cyclomatic 19) src/commit.rs
  • D1 · flowd::tasks::run (cyclomatic 19) src/tasks.rs
  • D1 · flowd::deploy_setup::draw_ui (cyclomatic 19) src/deploy_setup.rs
  • D1 · flowd::ai::build_codex_eval_opportunities (cyclomatic 19) src/ai.rs
  • D1 · flowd::ai::build_codex_open_plan (cyclomatic 19) src/ai.rs
  • D1 · flowd::code::move_sessions (cyclomatic 19) src/code.rs
  • D1 · flowd::repos::clone_repo (cyclomatic 19) src/repos.rs
  • D1 · flowd::codex_memory::collect_symbol_candidate_paths (cyclomatic 18) src/codex_memory.rs
  • D1 · flowd::fish_trace::parse_meta_file (cyclomatic 18) src/fish_trace.rs
  • D1 · flowd::ai_everruns::wait_for_completion_sse (cyclomatic 18) src/ai_everruns.rs
  • D1 · flowd::deploy::run_with_project_context (cyclomatic 18) src/deploy.rs
  • D1 · flowd::pr_preview::collect_preview_issues (cyclomatic 18) src/pr_preview.rs
  • D1 · flowd::processes::show_task_logs (cyclomatic 18) src/processes.rs
  • D1 · flowd::processes::show_hub_task_logs (cyclomatic 18) src/processes.rs
  • D1 · flowd::code::copy_codex_session_file (cyclomatic 18) src/code.rs
  • D1 · EverrunsApi::read_sse_batch (cyclomatic 17) src/ai_everruns.rs
  • D1 · OptionsConfig::merge (cyclomatic 17) src/config.rs
  • D1 · flowd::gh_release::detect_version (cyclomatic 17) src/gh_release.rs
  • D1 · flowd::sync::restore_stash_result_with_packet_dir (cyclomatic 17) src/sync.rs
  • D1 · flowd::commit::openrouter_chat_completion_with_retry (cyclomatic 17) src/commit.rs
  • D1 · flowd::commit::write_agent_traces (cyclomatic 17) src/commit.rs
  • D1 · flowd::codex_runtime::build_skill_catalog (cyclomatic 17) src/codex_runtime.rs
  • D1 · flowd::tasks::select_discovered_task (cyclomatic 17) src/tasks.rs
  • D1 · flowd::tasks::execute_task (cyclomatic 17) src/tasks.rs
  • D1 · flowd::tasks::run_command_with_pipes (cyclomatic 17) src/tasks.rs
  • D1 · flowd::ai::get_session_exchanges_since (cyclomatic 17) src/ai.rs
  • D1 · flowd::ai::parse_session_file (cyclomatic 17) src/ai.rs
  • D1 · flowd::ai::read_last_context (cyclomatic 17) src/ai.rs
  • D1 · flowd::task_match::run_with_tasks (cyclomatic 17) src/task_match.rs
  • D1 · flowd::home::run (cyclomatic 16) src/home.rs
  • D1 · flowd::setup::load_server_setup_template (cyclomatic 16) src/setup.rs
  • D1 · flowd::setup::apply_server_template (cyclomatic 16) src/setup.rs
  • D1 · flowd::upgrade::run (cyclomatic 16) src/upgrade.rs
  • D1 · flowd::services::run_stripe (cyclomatic 16) src/services.rs
  • D1 · flowd::git_guard::run_git_repair (cyclomatic 16) src/git_guard.rs
  • D1 · flowd::commit::try_capture_unhash_bundle (cyclomatic 16) src/commit.rs
  • D1 · flowd::deploy::setup_cloudflare (cyclomatic 16) src/deploy.rs
  • D1 · flowd::proxy::summary::compute_summary (cyclomatic 16) src/proxy/summary.rs

A full-fidelity diff against the previous run's complete recorded findings — line-move tolerant: a finding that only shifted line counts as unchanged, only genuinely new titles/files surface here.

Rebuild cost & value ~ Modeled — €65,000–€330,000
Cost to rebuild€65,000–€330,000 (0.6–2.0 person-years (1,082–3,432 h), ~1–3 engineers)
Domain complexityStandard — harder problems cost more per line
Quality factor0.8× (at 61% quality) — the last 20% of quality is most of the work
Size & shapeLarge · effort split not classified (source measured from disk; the effort-tier breakdown is a C#-only syntax walk)

This codebase represents roughly ~1.3 person-years of build effort (about ~€200,000 to rebuild). Its weakest lens is Readiness at 51% — the part of that asset most exposed by the findings below.

How we model this: boilerplate at a scaffolding rate + logic × domain Standard (×1.3) — vertical slice, domain model × a 0.8× quality factor, at €60–95/h; indicative, ±~30% · size measured directly from source · effort from total production LoC as straight-line logic (the tier split is a C#-only syntax walk), a conservative lower bound. Indicative only — most sensitive to the hourly rate and the domain tier (both tunable in config).

Top priorities

The highest-leverage moves; the full ranked list is in the Roadmap below.

1
Add a SAST step to CI running what this repository's stack ships: cargo-audit / cargo-deny (or clippy) — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.
+8.6 pts · Medium effort · Security & performance tooling
2
Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.
+8.6 pts · Medium effort · Deployment & Rollback
3
Resolve the 1 No ADRs found finding(s) in ADR Quality.
+4.2 pts · Low effort · ADR Quality

Diagnosis — what's actually going on

The top fix pays for itself · High · Economics
The top-ranked fix costs roughly 3–10 engineer-days once. Not doing it costs about 113.6–681.5 engineer-days every year, paid as drag on the ~659,851 lines this team changes annually — a bill that arrives whether or not anyone books it. On those figures the fix breaks even in roughly 1–2 months and is free after that. Method, stated so this is not read as a quotation: debt from the ranked task's effort band; interest = annual changed lines (measured, annualised from the 90-day window) ÷ an ASSUMED 150–400 lines per engineer-day × the 7–15% drag implied by the code-quality signals; breaking point = debt ÷ annual interest. A modelled planning range built from measured inputs and one named assumption — not a quotation, a valuation, or a certified figure.
Evidence: D15 churn: 162,703 line(s) changed over a 90-day window ⇒ ~659,851/year · D1/D2/D4 code quality: averaging 5.2/10 ⇒ a 7–15% drag on each change · top-ranked remediation: Medium effort ⇒ about 3–10 engineer-day(s)
→ Do the top-ranked fix now if this code will still be yours in 2 months.
Value concentrated against a weak lens · Medium · Value at risk
This is a Large asset (~1.3 person-years to rebuild), and its weakest lens is Readiness at 51%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
Evidence: valuation: Large, ~1.3 person-years rebuild (143,638 LoC) · weakest lens: Readiness 51%
→ Direct remediation budget at Readiness first — highest risk-reduction per euro on an asset this size.
Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Add a SAST step to CI running what this repository's stack ships: cargo-audit / cargo-deny (or clippy) — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Add a SAST step to CI running what this repository's stack ships: cargo-audit / cargo-deny (or clippy) — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.
A velocity tax on every change · Medium · Economics
The code-quality signals (complexity, duplication, cohesion) average 5.2/10, which acts as a tax on every change in the weaker areas: modifications there plausibly cost on the order of 7–15% more than in clean code, and the tax compounds as the codebase grows. (A modelled estimate, not a measured fact.)
Evidence: D1/D2/D4 code quality: averaging 5.2/10 across the code-quality signals actually measured
→ Pay it down where churn is highest — the hotspots — not everywhere; that's where the tax is actually paid.

Architecture — module dependency matrix

Rows and columns are the same modules, ordered so that a module only depends on ones above it. A cell means the row depends on the column, and its number is how many type pairs create that dependency. Read one thing: is anything above the diagonal? A mark there is a dependency cycle. (A cycle is all this shows — an unusual but cycle-free dependency sits below the diagonal like any other.)

170 modules, 206 dependencies. 1 dependency cycle across 8 modules, marked above the diagonal.

Showing the 40 most-connected modules; 130 more are not drawn.

Module dependency matrix. The row depends on the column; the number is how many type pairs create the dependency. A cell above the diagonal is part of a dependency cycle.
depends on →1 flowd.activity_log2 flowd.ai_project_manifest3 flowd.ai_server4 flowd.ai_tasks5 flowd.bin.flow-workspace-bootstrap6 flowd.daemon_snapshot7 opentui_lite8 seq_client9 seq_everruns_bridge.maple10 flowd.ai_taskd11 flowd.deploy12 flowd.config13 flowd.commit14 flowd.discover15 flowd.servers16 flowd.ask17 flowd.cli18 flowd.project_snapshot19 flowd.ai20 flowd.ai_everruns21 flowd.code22 flowd.env23 flowd.explain_commits24 flowd.jj25 flowd.lifecycle26 flowd.log_server27 flowd.main28 flowd.palette29 flowd.repo_capsule30 flowd.repos31 flowd.server32 flowd.setup33 flowd.task_match34 flowd.tasks35 flowd.codex_memory36 flowd.deps37 flowd.ops_overview38 flowd.sync_plan39 flowd.sync40 flowd.updates
1 flowd.activity_log
2 flowd.ai_project_manifest
3 flowd.ai_server
4 flowd.ai_tasks
5 flowd.bin.flow-workspace-bootstrap
6 flowd.daemon_snapshot
7 opentui_lite
8 seq_client
9 seq_everruns_bridge.maple
10 flowd.ai_taskd2
11 flowd.deploy122
12 flowd.config6
13 flowd.commit31421
14 flowd.discover7
15 flowd.servers1
16 flowd.ask1
17 flowd.cli11
18 flowd.project_snapshot332
19 flowd.ai111213
20 flowd.ai_everruns11112
21 flowd.code16
22 flowd.env113
23 flowd.explain_commits11
24 flowd.jj118
25 flowd.lifecycle122
26 flowd.log_server11
27 flowd.main113
28 flowd.palette1111
29 flowd.repo_capsule22
30 flowd.repos16
31 flowd.server111
32 flowd.setup311
33 flowd.task_match111
34 flowd.tasks113212
35 flowd.codex_memory11
36 flowd.deps141
37 flowd.ops_overview121
38 flowd.sync_plan111
39 flowd.sync251
40 flowd.updates112
Dependency, pointing down the layeringAbove the diagonal — part of a cycleThe module itself
flowd.activity_log…d.ai_project_manifestflowd.ai_serverflowd.ai_tasks…w-workspace-bootstrapflowd.daemon_snapshotopentui_liteseq_client…everruns_bridge.mapleflowd.ai_taskdflowd.deployflowd.configflowd.commitflowd.discoverflowd.serversflowd.askflowd.cliflowd.project_snapshotflowd.aiflowd.ai_everrunsflowd.codeflowd.envflowd.explain_commitsflowd.jjflowd.lifecycleflowd.log_serverflowd.mainflowd.paletteflowd.repo_capsuleflowd.reposflowd.serverflowd.setupflowd.task_matchflowd.tasksflowd.codex_memoryflowd.depsflowd.ops_overviewflowd.sync_planflowd.syncflowd.updatesflowd.activity_log1…d.ai_project_manifest2flowd.ai_server3flowd.ai_tasks4…w-workspace-bootstrap5flowd.daemon_snapshot6opentui_lite7seq_client8…everruns_bridge.maple9flowd.ai_taskd10flowd.deploy11flowd.config12flowd.commit13flowd.discover14flowd.servers15flowd.ask16flowd.cli17flowd.project_snapshot18flowd.ai19flowd.ai_everruns20flowd.code21flowd.env22flowd.explain_commits23flowd.jj24flowd.lifecycle25flowd.log_server26flowd.main27flowd.palette28flowd.repo_capsule29flowd.repos30flowd.server31flowd.setup32flowd.task_match33flowd.tasks34flowd.codex_memory35flowd.deps36flowd.ops_overview37flowd.sync_plan38flowd.sync39flowd.updates40212263142171111332111213111121611311118122111131111221611131111111321211141121111251112+130 more modules (most-connected shown)

At a glance — Code Health · 77% · Adequate · gated by D2 ·

At a glance — Architecture · 84% · Strong ·

At a glance — Maturity · 60% · Adequate · gated by M2 ·

At a glance — Readiness · 51% · Adequate · gated by P3 ·

At a glance — Security · 68% · Adequate · gated by D29, D30, D36 ·

At a glance — Domain Modelling · 100% · Exemplary ·

At a glance — Event Sourcing · 100% · Exemplary ·

Security & Compliance — OWASP Top-10 mapping

Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).

OWASP categoryFindingsSeverity
A03:2021 — Injection52High / Critical
A06:2021 — Vulnerable & Outdated Components30High / Critical

Roadmap

First, integrate automated security scanning into the CI pipeline to block regressions and add a manual approval gate to prevent bad builds from reaching users. Next, document how to run the test suite in the README and establish a structured repository for architecture decision records to capture key design choices. Finally, address the missing architecture documentation to ensure these decisions are preserved and discoverable for the team.

Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.

Do thisHelpsEffortDimension
Add a SAST step to CI running what this repository's stack ships: cargo-audit / cargo-deny (or clippy) — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.+8.6 ptsMediumSecurity & performance tooling
Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.+8.6 ptsMediumDeployment & Rollback
Resolve the 1 No ADRs found finding(s) in ADR Quality.+4.2 ptsLowADR Quality
Add a 'Testing' section to the root README — how to run the test suite.+4.5 ptsMediumDocumentation (README)
Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree, with each file named `NNNN-title` in whatever markup those docs already use, is the most discoverable form).+4.5 ptsMediumArchitecture documentation
Resolve the 25 Hotspot finding(s) in Churn × Complexity Hotspots — start with main.rs, commit.rs, sync.rs.+2.5 ptsHighChurn × Complexity Hotspots
Set security response headers on the surface this repository serves: an `add_header` directive per header in the nginx/Caddy/Apache config, a `_headers` / `vercel.json` / `netlify.toml` entry for a static host, or `helmet()` in the HTTP server. `Content-Security-Policy` is the one that pays for itself first — it is what contains an injected script once one reaches the page — followed by `X-Content-Type-Options: nosniff` and a frame policy (`X-Frame-Options: DENY`, or CSP `frame-ancestors`). Where the app is served from a build container, the header configuration belongs in the image beside the built assets, so it ships with them rather than depending on where it lands.+2.0 ptsMediumWeb-Security Posture
Resolve the 4 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (3), REDACTED.+0.7 ptsLowStatic Analysis (SAST)

File quality

Per-file score 0–10 — a quality signature. Of 122 files carrying findings, judged against the Preview bar: 3% slop · 4% mixed · 93% near-clean.

FileScoreBandWorst signal
REDACTED0.2SlopDependency Vulnerabilities: High CVE: REDACTED
REDACTED0.2SlopDependency Vulnerabilities: Critical CVE: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED2.3SlopStatic Analysis (SAST): High: REDACTED
REDACTED4.4MixedStatic Analysis (SAST): High: REDACTED
REDACTED4.8MixedStatic Analysis (SAST): High: REDACTED
REDACTED5.1MixedStatic Analysis (SAST): High: REDACTED
src/commit.rs6.0MixedExplicit Debt: TodoComment
src/cli.rs6.0MixedExplicit Debt: TodoComment
src/sync.rs7.0Near-cleanCyclomatic Complexity: flowd::sync::run_sync (cyclomatic 100)
src/ai.rs7.0Near-cleanCyclomatic Complexity: flowd::ai::run (cyclomatic 76)
src/env.rs7.0Near-cleanCyclomatic Complexity: flowd::env::bootstrap_cloudflare_secrets (cyclomatic 39)
src/sync_plan.rs7.0Near-cleanCyclomatic Complexity: flowd::sync_plan::render_markdown (cyclomatic 38)
src/setup.rs7.0Near-cleanCyclomatic Complexity: flowd::setup::setup_deploy (cyclomatic 37)
src/deploy_setup.rs7.0Near-cleanCyclomatic Complexity: flowd::deploy_setup::handle_key (cyclomatic 35)
src/publish.rs7.0Near-cleanCyclomatic Complexity: flowd::publish::run_github (cyclomatic 33)
src/tasks.rs7.0Near-cleanCyclomatic Complexity: flowd::tasks::run_command_with_pty (cyclomatic 30)
src/codex_memory.rs7.0Near-cleanCyclomatic Complexity: flowd::codex_memory::fact_score (cyclomatic 29)
src/repos.rs7.0Near-cleanCyclomatic Complexity: flowd::repos::bootstrap_home_branch (cyclomatic 29)
src/supervisor.rs7.0Near-cleanCyclomatic Complexity: flowd::supervisor::monitor_daemons (cyclomatic 27)

How the grades work

Every finding carries one of four grades. Three say how serious it is. The fourth says this survey could not settle it — and it is a grade, not a gap.

Critical — 63

A definite problem that already costs you something and drags the score down: a missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here tends to cause failures elsewhere.

Serious — 1113

Likely wrong, but not failing yet. It degrades the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to carry for two years either.

Minor — 39

Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.

Could not be resolved — 40

Something this survey could not settle from the outside, and which could be critical or serious. Either a control was required and no positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean result. These are excluded from the score rather than awarded a pass, so the number on the cover neither rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each one is named under Limitations.

Methodology & how to trust this report

Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 34 of 38 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 4 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.8 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.

Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.

What we checked — 38 dimensions across the health lenses
D1D2D3D4D9D12D13D15D17D19D20D21D22D28D29D30D34D35D36D43D44AX10AX5AX7AX9DM1DM4ES1ES2M1M2M3M4P1P3P4P6S1

Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.

How to trust any code-health report — three questions
  1. Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 1190 of 1215 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
  2. Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
  3. Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.

This report answers yes to all three. That's the bar to hold any assessment to.

Tools & methods

The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.

MethodBacksVersionEvaluator
Roslyn static analysisComplexity, cohesion, coupling, dead code, API surface, layering5.3.0✓ deterministic
Native secret scannerHardcoded secrets / credentials1.0.0✓ deterministic
Watchdog duplication detector (in-process)Code duplication1.0.0✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.400✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.400✓ deterministic
git / LibGit2SharpChurn hotspots, knowledge concentration, history2.43.0 · 0.31.0✓ deterministic
gitleaks · semgrep · trivySecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 · 0.69.3✓ deterministic
LLM (sampled · advisory)Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurementLocal LLM◐ LLM · sampled · advisory

Every finding is locatable in findings.md. Run 01a0e174-26ef-7509-9890-894abb906ccd.

The exact command behind every deep-scan dimension — tool, version, invocation and retained raw output — is in Appendix B — Reproduction & audit trail.

Run transparency — what happened this run

What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.

  • D8 Code Coverage — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: test source is present (.rs, .ts) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo. To have real coverage read, produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`, or lcov — `vitest --coverage`, `jest --coverage`, `bun test --coverage --coverage-reporter=lcov`, or `nyc`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures. You can widen what we reach: optional: produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`, or lcov — `vitest --coverage`, `jest --coverage`, `bun test --coverage --coverage-reporter=lcov`, or `nyc`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures — then the real number is read on the next scan.
  • D11 Test Reliability — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.rs, .ts) and this repository declares a Cargo test suite (repository root, 80 test files), but it was not re-run: no test result was produced. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
  • AX3 Project dependency cycles — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over which project references which. That is a language-neutral question, but the project-reference graph is collected from MSBuild .csproj, Gradle and Maven builds only, and this repository commits none — so there was no graph to read, and re-running the same commit reads the same nothing. Its modules are declared as: Cargo crates and workspaces (Cargo.toml); Python distributions (REDACTED, setup.py, setup.cfg). A reader for that graph is the collector this check is missing. That is a COLLECTOR gap in this analyzer — no change to the scan image closes it — and not a finding that the repository is free of what this check looks for.
  • AX6 Interface segregation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over the public interfaces this run's compilations declare, and none was loaded, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • AX8 Test isolation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is computed over which projects are test projects, and what they reference. That is a language-neutral question, but the project-reference graph is collected from MSBuild .csproj, Gradle and Maven builds only, and this repository commits none — so there was no graph to read, and re-running the same commit reads the same nothing. Its modules are declared as: Cargo crates and workspaces (Cargo.toml); Python distributions (REDACTED, setup.py, setup.cfg). A reader for that graph is the collector this check is missing. That is a COLLECTOR gap in this analyzer — no change to the scan image closes it — and not a finding that the repository is free of what this check looks for.
  • C1 Data Protection — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These personal data controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks personal data controls.
  • C2 Access Controls — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These authorization controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks authorization controls.
  • C3 Audit Trail — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These audit controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks audit controls.
  • C4 Data Retention — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These retention controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks retention controls.
  • C5 Data-Subject Rights — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. These data-subject rights controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks data-subject rights controls.
  • ED5 Idempotency — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check finds retry-prone mutations by walking the repository's declared types, and NONE was loaded on this run, so it had nothing to look at. That is a limit of the analyzer's reach — it reads .NET projects — not a finding that this repository has no command handlers or message consumers.
  • GD1 Unfinished & placeholder code — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • IC1 Incompleteness & stubs — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X1 Async correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X12 Unreachable branch — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X13 Undrained process stream — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X14 Bypassable address classification — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X15 Unvalidated length from an untrusted reader — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X16 Unfloored truncation loop — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X17 Uncapped recursion over a caller-supplied document — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X18 Disposal-pattern correctness — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X19 Unrestored process-global state — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X2 Cancellation propagation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X20 Mistyped argument guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X21 Side-effecting pattern guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X22 Contradicted release guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X23 Unguarded diagnostic materialisation — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X24 Document value interpolated into markup unescaped — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X25 Inert configuration knob — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X26 Unsynchronised callback handoff — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X27 Collection changed while being enumerated — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X28 Index access outside its own emptiness guard — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X29 Per-element action decided by a fixed element — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X3 Exception handling — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X30 Support guard that admits what it rejects — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X32 Type resolved by simple name across every loaded assembly — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X4 Structured logging — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
  • X5 Nullable reference types — not measured this run — Watchdog could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check is implemented over the C# syntax tree, and no C# was loaded on this run, so it had nothing to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.

Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.

Limitations & what we did not check

Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.

Per-dimension blind spots

For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.

  • D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
  • D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
  • D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
  • D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
  • D9 Test Distribution: The test-pyramid shape is inferred from project/folder naming and references, with a single test host bucketed per-file by its path tier and content signals — a suite that names tiers unconventionally and gives no per-file signal can still be mis-bucketed.
  • D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
  • D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
  • D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
  • D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
  • D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement. Its critique rows are drawn from a closed category vocabulary and each row means the same thing in every run, so two scans can be compared row by row; the SET that fires is still a sample, and does not repeat exactly. Measured on one frozen input, six scans at one engine SHA: 2-5 critique rows per scan, 8 distinct rows across the six, 3 of those 8 seen in only one scan. So a D19 row is evidence about the documentation, but a COUNT of D19 rows is not a quantity — never read a change in it as an improvement or a regression.
  • D20 ADR Quality: ADR quality is an LLM read of the decision records present — it cannot know about decisions made and never recorded, and its verdict is sampled and advisory.
  • D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
  • D22 Internal API Consistency: API-surface coherence is an LLM judgement over a sample of the public surface — consistency of intent across the whole API is approximated, not exhaustively verified.
  • D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
  • D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
  • D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
  • D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
  • D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
  • D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
  • D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a Dockerfile (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
  • AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
  • AX9 CQS / query purity: Handlers are found by interface/name convention — a query handler using neither is not seen. Mutation is a resolved write/publish invocation (SaveChanges/repository/bus), so a write hidden behind a hand-rolled wrapper, reflection, or a string-keyed service locator resolves to a non-persistence type and isn't flagged; it detects that a query writes state, not whether the write is a legitimate read-side cache update. Clean means "no resolved write/publish in a query body", not a proof of CQS purity.
  • DM4 Rich vs anemic domain model: Behaviour is detected as state mutation inside a method body — a method that enforces an invariant by validating-and-throwing without mutating reads as a query, and mutation delegated through an interface the scan can't resolve isn't credited; entities with zero public properties still drop out of the population. It detects that state changes, not whether the rule is correct.
  • M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
  • P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
  • P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.

The LLM boundary

LLM-set scores this run (4): D19, D21, D22, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score; each names its own sample and method on its card. They are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.

Dimensions

D1 · Cyclomatic Complexity5.5 / 10Adequate✓ Tool-verified

What it measures: How tangled the control flow is — methods with many branches are hard to test and change.

Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.

Maturity: Documented → Verified → Prevented · effective 5.5 / 10 · rule-coverage 100% · ceiling Prevented

109 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was flowd::main at 158. A further 4 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being flowd::ai::run_provider at 53 — they are counted neither in the figure above nor in this dimension's score. 2 files carry no cyclomatic complexity row at all for this reason — every one of their over-threshold functions was excluded, so the exclusion is disclosed nowhere in the file itself: src/proxy/trace.rs (Method::from at 19), crates/seq_everruns_bridge/src/lib.rs (seq_everruns_bridge::map_tool_name_to_seq_op at 16). They are named here because the per-file figures other dimensions report are taken BEFORE this exclusion, so such a file can show a high maximum complexity elsewhere in this report and nothing here, with nothing to reconcile the two.

flowd::main (cyclomatic 158) · ×103src/main.rs:44
flow_commit_scan::scan_diff_for_secrets (cyclomatic 24)crates/flow_commit_scan/src/lib.rs:198
EverrunsApi::read_sse_batch (cyclomatic 17)src/ai_everruns.rs:894
OptionsConfig::merge (cyclomatic 17)src/config.rs:1361
bench-moonbit-rust-ffi.main (cyclomatic 16)scripts/bench-moonbit-rust-ffi.py:44

+ 2 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 103 flowd finding(s) in Cyclomatic Complexity — start with ai.rs (20), commit.rs (16), sync.rs (5). — One of this dimension's main actionable groups (103 warning-level).
  2. Resolve the 1 flow_commit_scan finding(s) in Cyclomatic Complexity — start with lib.rs. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 EverrunsApi finding(s) in Cyclomatic Complexity — start with ai_everruns.rs. — One of this dimension's main actionable groups (1 warning-level).
  4. Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.

D2 · Cognitive Complexity2.0 / 10Critical✓ Tool-verified

What it measures: How hard the code is for a person to follow, beyond raw branching.

Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.

Maturity: Documented → Verified → Prevented · effective 2.0 / 10 · rule-coverage 100% · ceiling Prevented

291 method(s) exceeded the cognitive complexity threshold of 15; the worst was flowd::sync::run_sync at 227.

flowd::sync::run_sync (cognitive 227) · ×274src/sync.rs:1271
ParallelRunner::run_task (cognitive 26) · ×3src/parallel.rs:209
flow_commit_scan::scan_diff_for_secrets (cognitive 54) · ×2crates/flow_commit_scan/src/lib.rs:198
PrEditService::run_loop (cognitive 35)src/pr_edit.rs:179
build_rl_runtime_dataset._normalize_seq (cognitive 27)scripts/build_rl_runtime_dataset.py:226

+ 10 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 274 flowd finding(s) in Cognitive Complexity — start with commit.rs (50), ai.rs (34), sync.rs (16). — One of this dimension's main actionable groups (274 warning-level).
  2. Resolve the 3 ParallelRunner finding(s) in Cognitive Complexity — start with parallel.rs (3). — One of this dimension's main actionable groups (3 warning-level).
  3. Resolve the 2 flow_commit_scan finding(s) in Cognitive Complexity — start with lib.rs (2). — One of this dimension's main actionable groups (2 warning-level).
  4. Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.

D3 · God Classes8.1 / 10Strong✓ Tool-verified

What it measures: Over-large classes that try to do too much ("god classes").

Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.

Maturity: Documented → Verified → Prevented · effective 8.1 / 10 · rule-coverage 100% · ceiling Prevented

107 god class(es) detected.

FunctionTooLong: flowd::sync::run_sync · ×52src/sync.rs:1271
FileTooLong: src/ai.rs · ×48src/ai.rs
TooManyFields: Config · ×3src/config.rs:21
TooManyFunctions: flowd::daemon · ×3src/daemon.rs:24
ClassTooLong: Commandssrc/cli.rs:68

What to do

  1. Resolve the 52 FunctionTooLong finding(s) in God Classes — start with ai.rs (14), sync.rs (4), tasks.rs (4). — One of this dimension's main actionable groups (52 warning-level).
  2. Resolve the 48 FileTooLong finding(s) in God Classes — start with ai.rs, commit.rs, sync.rs. — One of this dimension's main actionable groups (48 warning-level).
  3. Resolve the 3 TooManyFields finding(s) in God Classes — start with config.rs, ai.rs, codex_session_docs.rs. — One of this dimension's main actionable groups (3 warning-level).
  4. Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.

D4 · Code Duplication8.2 / 10Strong✓ Tool-verified

What it measures: Copy-pasted code that should be shared instead.

Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.

Maturity: Documented → Verified → Prevented · effective 8.2 / 10 · rule-coverage 100% · ceiling Verified

522 duplicated block group(s) detected. A further 25 rows report members as variants of one another; they aggregate block groups already counted above and are not themselves counted.

Duplicated block (9 lines × 2) · ×44src/ai.rs:2592
Duplicated block (10 lines × 2) · ×36crates/seq_everruns_bridge/src/maple.rs:422
Duplicated block (8 lines × 2) · ×33src/agents.rs:539
Duplicated block (6 lines × 2) · ×31src/codex_runtime.rs:320
Duplicated block (11 lines × 2) · ×28src/ai.rs:1497

+ 140 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 44 Duplicated block (9 lines × 2) finding(s) in Code Duplication — start with commit.rs (7), deploy.rs (4), ai.rs (3). — One of this dimension's main actionable groups (44 warning-level).
  2. Resolve the 36 Duplicated block (10 lines × 2) finding(s) in Code Duplication — start with commit.rs (6), ai.rs (3), sync_plan.rs (3). — One of this dimension's main actionable groups (36 warning-level).
  3. Resolve the 33 Duplicated block (8 lines × 2) finding(s) in Code Duplication — start with commit.rs (7), ai.rs (4), deploy.rs (3). — One of this dimension's main actionable groups (33 warning-level).
  4. Enforce Code Duplication in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.

D9 · Test Distribution10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the test suite has a healthy mix of unit / integration / end-to-end tests.

Method: Test projects classified (Unit/Integration/BDD/E2E) from compiled metadata; test methods counted exhaustively across projects with placement-agnostic disk fallback. Deterministic.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

548 test methods: 548 unit, 0 integration, 0 BDD, 0 e2e. The Rust suite contributes 548 `#[test]` function(s) across 80 file(s) declaring at least one; its unit/integration split is Cargo's own — 0 of those file(s) are integration-test targets under a crate's tests/ directory, and the rest are #[test] functions compiled into the crate they test.

✓ On the Gold path — maintain.

Detailed fixes: d9_recommendation.md.

D12 · Dependency Hygiene9.4 4.3 / 10Weak✓ Tool-verified

What it measures: Whether dependencies are current, secure, and not bloated.

Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (saturating for vulnerabilities, capped-linear for deprecation/outdated) per KLoC. Exhaustive, deterministic.

Maturity: Documented → Verified → Prevented · effective 4.3 / 10 · rule-coverage 46% · ceiling Verified

12 outdated, 0 yanked direct Cargo dependencies. 22 of 48 direct crates were graded against crates.io (0 not published there, 26 not resolved by a committed REDACTED). Only DIRECT edges are graded: a transitive crate cannot be moved past what its parent's requirement admits, so reporting one would be advice its owner cannot take. A newer release is reported only where this repository's OWN requirement already admits it, so the remedy is `cargo update` and never a manifest edit — which means a release outside the declared range is deliberately NOT charged, because a written-down constraint is a decision rather than a defect. Note that a bare requirement is a CARET, and for a 0.x crate its ceiling is the minor. Whether any crate is UNMAINTAINED is not graded — crates.io publishes no maintenance status, and release age does not stand in for one. Known CVEs in this dependency graph are D30's question, read from REDACTED there.

Outdated: anyhow · ×12

What to do

  1. Enforce Dependency Hygiene in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Verified — provenance only; does not change the score.

Detailed fixes: d12_recommendation.md · top locations in Appendix A, every location in findings.md.

D13 · Secret Scanning10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.

Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D15 · Churn × Complexity Hotspots7.7 / 10Strong✓ Tool-verified

What it measures: Files that change often and are also complex — the riskiest hotspots.

Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.

Maturity: Documented → Verified → Prevented · effective 7.7 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: src/main.rs (36×158=5688); src/commit.rs (37×95=3515); src/sync.rs (32×100=3200)

Hotspot: src/main.rs · ×25src/main.rs:44

What to do

  1. Resolve the 25 Hotspot finding(s) in Churn × Complexity Hotspots — start with main.rs, commit.rs, sync.rs. — One of this dimension's main actionable groups (25 warning-level).

Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.

D17 · Explicit Debt10.0 / 10Stronggated by 8 serious findings✓ Tool-verified

What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.

Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

8 deducted task-comment markers across 143638 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.

TodoComment · ×8src/tools.rs:210

What to do

  1. Resolve the 8 TodoComment finding(s) in Explicit Debt — start with cli.rs (6), tools.rs, commit.rs. — One of this dimension's main actionable groups (8 warning-level).
  2. Enforce Explicit Debt in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.

D19 · Documentation QualityExemplary◐ Sampled · advisory

What it measures: Whether the project's documentation is clear, complete, and useful.

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.

Maturity: Documented → Verified → Prevented · effective Exemplary / 10 · rule-coverage 100% · ceiling Documented

The repository's root README and the docs/bench/ directory are the only visible documents (the rest are architecture/design markdown files), with a strong focus on installation, upgrade, build-from-source, and command-reference documentation. The root README is clear and complete for its deploy tier: it installs via curl/install.sh, runs f --version and doctor, explains upgrade steps including FLOW_UPGRADE_REPO and FLOW_GITHUB_TOKEN auth, and documents the full CI/CD runbook (pr-fast, canary, nightly validation). It also covers dev fast from source clone/hydrate/deploy. The docs/bench/ README is a focused directory doc that is itself well written for its tier. All visible documents are clear and complete; no missing-overview, missing-installation, or unstructured sections. This project's documentation is comprehensive and well-structured: the READMEs cover the repository root (with an overview, installation/usage/contribution guidance), while architecture/design docs and per-project XML-doc coverage dominate. The Codex-first control-plane roadmap explains the target state, problem, design principles, existing building blocks, and a full outline; codex-fork-tasks documents narrow Flow tasks with commands and what each does; flow-codex-interface covers the normal Codex CLI lane plus app-server paths and the four main pieces (wrapper, command layer, jd daemon, run-owned agent); codex-maple-telemetry-runbook describes local-first telemetry plus optional Maple export; codex-openai-session-resolver documents a repo-specific wrapper with recovery prompts; dependency-vendoring explains the Cargo-first model and its benefits; dev-server-management defines servers in config.ts and their generated flow.toml entries; env-security-roadmap outlines the hardening path for Flow env storage. The outline is consistent across all docs, so each named section exists and must not be flagged as missing. A strong documentation set for the Flow ecosystem: five README-style integration docs (Everruns+Seq bridge, external CLI install/run, manifest, fast-commit review loop) plus architecture/design docs covering dependency setup, no-overlap contracts, and a generic roadmap. Each document is well-structured with an overview paragraph, change rationale, concrete examples, and a full outline; the visible content is complete for its scope.

✓ On the Gold path — maintain.

Detailed fixes: d19_recommendation.md.

D20 · ADR Quality0.0 / 10Critical✓ Tool-verified

What it measures: Whether architecture decisions are recorded well (context, decision, consequences).

Method: Per-ADR judgment by language model at low temperature with two-pass stability; confidence is share of ADRs evaluated; enforcement-field presence detected deterministically. Advisory.

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

No architecture decision records were found.

No ADRs found

What to do

  1. Resolve the 1 No ADRs found finding(s) in ADR Quality. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d20_recommendation.md · top locations in Appendix A, every location in findings.md.

D21 · Naming ConsistencyExemplary◐ Sampled · advisory

What it measures: Whether names — types, methods, variables — are clear and consistent.

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.

Maturity: Documented → Verified → Prevented · effective Exemplary / 10 · rule-coverage 100% · ceiling Verified

0 naming inconsistencies across 0 sampled symbols.

✓ On the Gold path — maintain.

Detailed fixes: d21_recommendation.md.

D22 · Internal API ConsistencyStronggated by 2 serious findings◐ Sampled · advisory

What it measures: Whether the internal API surface is consistent and coherent.

Method: Judged by language model at low temperature over a sample of the public API surface (IsPackable or .Contracts types). Sampled, advisory; confidence discounted by model uncertainty.

Maturity: Documented → Verified → Prevented · effective Strong / 10 · rule-coverage 100% · ceiling Verified

2 API inconsistencies across a 400-member sample of 731 exposed types.

Three methods in the same type perform the exact same arithmetic operation (addition of two u64s) with identical signatures. The naming suggests different implementation strategies (host boundary, inline, function), but for a public API consumer, these are redundant operations.
Two methods on `SeqClient` appear to perform the same core action (sending an RPC request). `call_ok` likely implies a wrapper that asserts success or handles errors differently, but without distinct return types or clear semantic separation in the name (e.g., `call_async` vs `call_sync`), it creates ambiguity about when to use which.

What to do

  1. Resolve the 1 Three methods in the same type perform the exact same arithmetic… finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 Two methods on `SeqClient` appear to perform the same core action… finding(s) in Internal API Consistency. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d22_recommendation.md · top locations in Appendix A, every location in findings.md.

D28 · Secrets (history)10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.

Method: Secret scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

gitleaks scanned the full history AND the current working tree and found no secrets.

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)2.7 / 10Weak✓ Tool-verified

What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.

Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.

Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).

Maturity: Documented → Verified → Prevented · effective 2.7 / 10 · rule-coverage 100% · ceiling Documented

52 finding(s): 0 critical, 50 high, 2 medium, 0 low. 43 unpinned-GitHub-Actions row(s) are reported here but scored by D36 (supply-chain provenance), which measures that posture as `pinned_actions` — one pinning decision is charged once, not once per lens. semgrep hit a parse error in 2 file(s) — `REDACTED` (lines 106–124, line 682), `scripts/myflow-commit-session-smoke.sh` (line 237) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them. Separately, one or more rules could not re-parse an embedded snippet in 3 file(s) (e.g. a workflow `run:` block read as shell). Those files WERE scanned and their other rows are unaffected; only those rules' view of those snippets is missing.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

+ 1 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 4 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED (3), REDACTED. — One of this dimension's main actionable groups (4 issue-level).
  2. Resolve the 2 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 issue-level).
  3. No action in Static Analysis (SAST) — all 43 REDACTED finding(s) are reported here at file:line but scored by D36 (supply-chain provenance), so none is charged to this dimension. — One of this dimension's main actionable groups (43 issue-level, 0 of them charged here).

Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.

D30 · Dependency Vulnerabilities0.0 / 10Critical✓ Tool-verified

What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir/Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.

Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex, Go, Java and Kotlin via Maven/Gradle, npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05.

Maturity: Documented → Verified → Prevented · effective 0.0 / 10 · rule-coverage 100% · ceiling Documented

30 finding(s): 2 critical, 11 high, 16 medium, 1 low.

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

+ 3 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 9 High CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (7), REDACTED (2). — One of this dimension's main actionable groups (9 issue-level).
  2. Resolve the 2 Critical CVE finding(s) in Dependency Vulnerabilities — start with REDACTED (2). — One of this dimension's main actionable groups (2 issue-level).
  3. Resolve the 2 High vulnerability finding(s) in Dependency Vulnerabilities — start with REDACTED, REDACTED. — One of this dimension's main actionable groups (2 issue-level).

Detailed fixes: d30_recommendation.md · top locations in Appendix A, every location in findings.md.

D34 · Knowledge Freshness10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.

Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

Every significant source file has living knowledge — recently and meaningfully worked. Counted over 160 of the 174 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

✓ On the Gold path — maintain.

Detailed fixes: d34_recommendation.md.

D35 · Change Coupling9.9 / 10Stronggated by 1 serious finding✓ Tool-verified

What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.

Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.

Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.

Maturity: Documented → Verified → Prevented · effective 9.9 / 10 · rule-coverage 100% · ceiling Documented

Strongest change-coupling: cli.rs↔config.rs 57%

Change coupling: cli.rs ↔ config.rssrc/cli.rs

What to do

  1. Resolve the 1 Change coupling finding(s) in Change Coupling — start with cli.rs. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d35_recommendation.md · top locations in Appendix A, every location in findings.md.

D36 · Supply-chain Provenance & Signing2.5 / 10Weak✓ Tool-verified

What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.

Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.

Maturity: Documented → Verified → Prevented · effective 2.5 / 10 · rule-coverage 100% · ceiling Documented

1/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).

REDACTED
REDACTED
REDACTED
REDACTED
REDACTED

What to do

  1. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 REDACTED finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.md.

D43 · Malicious Dependencies10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Scored apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.

Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. SCORED, not informational.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No dependency in any ecosystem this repository declares is published as malicious.

✓ On the Gold path — maintain.

Detailed fixes: d43_recommendation.md.

D44 · Platform End-of-Life10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.

Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 1 platform declaration(s) and 2 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.

✓ On the Gold path — maintain.

Detailed fixes: d44_recommendation.md.

Frontend & cross-cutting dimensions

R = React/JS · M = Maturity · P = Readiness.

AX10 · Code composition9.7 / 10Exemplary✓ Tool-verified

Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.

Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.

Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.

What to do

  • The domain core is a small share of production code, but most of the rest matched no layer vocabulary at all — so this is not yet an anemic-domain finding. The namespace/path convention could not place that code, which makes the composition above a statement about the naming, not about the design. Name the layers (or check that the repository's conventions differ from the ones this check knows) before reading a thin domain into it.
AX5 · Architecture & structure10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether the codebase has a recognisable, scale-appropriate structure (a named architectural style, or modular enough for its size) rather than being an ad-hoc ball of mud.

Method: Roslyn plus csproj analysis: architecture style detection (DDD, clean, vertical-slice, CQRS) and structure fitness for repo size. Deterministic.

AX7 · Slice cohesion5.4 / 10Adequate✓ Tool-verified

Other · Architecture — Whether feature slices stay independent (no direct cross-slice references) — the discipline that makes vertical-slice architecture pay off.

Method: Roslyn scan (vertical-slice gated): feature slices resolved from namespaces (.Features.*, .Slices.*) or project names; cross-slice type references detected. Deterministic, traceable.

  • `SeqBridge` (slice 'flowd') depends on `SeqClient` from slice 'seq_client'. — src/ai_everruns.rs:1040

What to do

  • Keep slices independent: share cross-slice needs via an explicit contract/shared-kernel, not direct references between slices.
AX9 · CQS / query purity10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether read (query) handlers stay side-effect-free — a query that writes persistent state or raises events breaks CQS and makes reads unsafe to retry, cache, or route to a read replica.

Method: Roslyn scan: CQRS handlers classified query-vs-command by interface (IQueryHandler/ICommandHandler/IRequestHandler<TQuery,TResult>) and name convention (*Query/Get*/Find* vs *Command); each query handler's body checked for persistent-state writes (SaveChanges/repository Add-Update) or event publishes by resolved invocation. Deterministic, type-level, exhaustive over the detected handlers.

Coverage: Population: CQRS handlers identified by IQueryHandler/ICommandHandler/IRequestHandler interface + *Query/Get*/Find*/*Command NAME convention; query purity then checked exhaustively within that set — a query handler using neither convention is invisible, and mutation is a resolved persistence/publish CALL, not full dataflow.

DM1 · Aggregate boundaries10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether an aggregate references another aggregate by identity rather than embedding it by object reference.

Method: Roslyn (DDD-gated): aggregate roots identified by convention; each aggregate field checked for direct references to other aggregates versus id-only. Deterministic, DDD-native.

Coverage: Population: aggregate roots identified by AggregateRoot/IAggregateRoot base/interface NAME convention; reference-by-identity then checked exhaustively within that set — a root not using those names is invisible.

DM4 · Rich vs anemic domain model10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether domain entities own their behaviour (invariant-enforcing commands) rather than being data-only structs driven by a foreign service.

Method: Roslyn (DDD-gated): entity method BODIES classified mutator-vs-query — only methods that mutate the entity's own declared state count as invariant-protecting behaviour, so a getter/passthrough doesn't rescue an anemic class. Deterministic, exhaustive over domain-layer entities.

Coverage: Population: entities by name/base convention; rich-vs-anemic judged by classifying each method body mutator-vs-query — logic-bearing domain types outside the convention are invisible.

ES1 · Fold determinism10.0 / 10Exemplary✓ Tool-verified

Other · Event Sourcing — Whether the recovery-replay fold is deterministic — state derived purely from each event's own fields, no clock/random/IO on the replay path.

Method: Roslyn syntax scan (event-sourcing gated): Apply/When folds checked for forbidden tokens (DateTime.Now, Guid.NewGuid, Random, IO), stripped of comments/strings. Deterministic, hard fact per fold.

ES2 · Immutable events10.0 / 10Exemplary✓ Tool-verified

Other · Event Sourcing — Whether domain events stay immutable (private fields, set once) rather than carrying mutable state.

Method: Roslyn scan (event-sourcing gated): persisted events checked for public setters; immutability verified per property/field. Deterministic, hard fact.

M1 · Documentation (README)5.2 / 10Adequate✓ Tool-verified

Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.

Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.

  • 45 code files changed in the last 6 months but the README was not touched — it may no longer reflect the system.

What to do

  • Add a 'Testing' section to the root README — how to run the test suite.
  • Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
  • Add a README to the 6 of 6 project(s) that lack one — worth up to 2 pts.
  • Review the README against recent changes; refresh the parts that drifted.
M2 · Architecture documentation2.0 / 10Weak✓ Tool-verified

Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.

Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.

  • No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.

What to do

  • Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree, with each file named `NNNN-title` in whatever markup those docs already use, is the most discoverable form).
M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

Maturity · Maturity — Whether the repo is organised deliberately — src/test separation and consistent project naming.

Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.

M4 · Documentation accuracy10.0 / 10Exemplary◐ Sampled · advisory

Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).

Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.

P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

Readiness · Readiness — Whether an automated pipeline builds and tests every change.

Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.

P3 · Security & performance tooling0.0 / 10Critical✓ Tool-verified

Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).

Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.

  • No static application security testing detected. For this repository's stack, add cargo-audit / cargo-deny (or clippy) (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 18280 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.

What to do

  • Add a SAST step to CI running what this repository's stack ships: cargo-audit / cargo-deny (or clippy) — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.
  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback5.0 / 10Adequate✓ Tool-verified

Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.

Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.

  • The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY'S PIPELINE FILES. What was read: every file under `.github/workflows/`, `.forgejo/workflows/`, `.gitea/workflows/`, `.azuredevops/` and `.azure-pipelines/`, plus `.gitlab-ci*` and `azure-pipelines*` — with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab's `when: manual`, CircleCI's `type: approval`, an Azure `ManualValidation@` task or an `approvals:` block, a Jenkins `input` step, a `uses:` step naming an approval action, an `environment:` paired with `reviewers` / `required_reviewers` / `protection` / `wait-timer` / `deployment_branch_policy`, a draft-release step, a `workflow_dispatch` promotion, or a release-event gate. ★ What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy — all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release.

What to do

  • Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.
P6 · Release Hygiene10.0 / 10Exemplary✓ Tool-verified

Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.

Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.

S1 · Web-Security Posture8.0 / 10Strong✓ Tool-verified

Other · Security — Only what this repository's own non-C# files could be read for was assessed — and because this repository commits the configuration that serves its own HTTP surface, that configuration could be read in full for the security response headers it sets. Nothing else in this dimension was assessed: the transport, cookie, input-validation and crypto controls are read from a source model that was not loaded for this repository’s language, so their absence here is not a finding about this repository.

Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. Deterministic.

  • No Content-Security-Policy / X-Frame-Options / X-Content-Type-Options configuration found — defense in depth, even when a reverse proxy could set them. This is reported because `cdn-nginx.conf` is committed to this repository and declares the server that serves it, so the configuration that would carry these headers is in this repository and was read in full. (−2.0 on this card.) — scripts/cdn-nginx.conf:6

What to do

  • Set security response headers on the surface this repository serves: an `add_header` directive per header in the nginx/Caddy/Apache config, a `_headers` / `vercel.json` / `netlify.toml` entry for a static host, or `helmet()` in the HTTP server. `Content-Security-Policy` is the one that pays for itself first — it is what contains an injected script once one reaches the page — followed by `X-Content-Type-Options: nosniff` and a frame policy (`X-Frame-Options: DENY`, or CSP `frame-ancestors`). Where the app is served from a build container, the header configuration belongs in the image beside the built assets, so it ships with them rather than depending on where it lands.

Reference — by lens

The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.

LensScoreRatingImpact
Code Health77%Adequate — gated by D2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture84%StrongSolid.
Maturity60%Adequate — gated by M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness51%Adequate — gated by P3Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security68%Adequate — gated by D29, D30, D36Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Domain Modelling100%ExemplaryStrongest area.
Event Sourcing100%ExemplarySolid.
Unscored — 1 check(s) recorded observations but carry no score

These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.

  • X9 Subsumed condition operand — 18 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 4 control(s) we could not find positive evidence for

These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.

  • C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C4 Data Retention — Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 78 check(s) not relevant to this codebase

These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.

  • AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
  • AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
  • AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
  • AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
  • AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
  • AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
  • AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
  • AX1 Captive dependencies — no DI registrations detected
  • AX2 Stateful singletons — no singleton implementations detected
  • AX3 Project dependency cycles — not assessed — project cycles and dependency direction are computed over a project-reference graph that was not loaded for this repository, because the repository commits no project file of a kind this check models. This is a gap in the analyzer, not a finding about this repository
  • AX4 Dependency direction — not applicable to a vertical-slice architecture (the inward-dependency rule is for layered/clean styles)
  • AX6 Interface segregation — not assessed — interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX8 Test isolation — not assessed — test isolation is computed from a project graph (which projects are test projects, and what they reference) that was not loaded for this repository, because the repository commits no project file of a kind this check models. This is a gap in the analyzer, not a finding about this repository
  • C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • D10 Test Quality — ~466 lines of test source are present (.rs, .ts) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D11 Test Reliability — Test reliability not included — the .rs suite was found but not re-run
  • D14 License Compliance — Not scored — this repository's 388 shipped crate(s) were read from its REDACTED, but crates.io could not be asked for the licence of 28 of them (HTTP 429 Unknown Error), and a licence verdict over part of a dependency graph is not a licence verdict. Nothing is asserted about this repository's licensing in either direction.
  • D16 Bus Factor — bus factor 1 — one contributor carries this repository
  • D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
  • D23 Boundary Type-Coupling — Production source is present (.py, .rs) but bounded contexts are resolved over the C#/VB project set, which exposed none, so context scope could not be assessed. Not scored — this is a gap in the analyzer, not a verdict about this repository. Declaring the codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed — see the recommendation on this dimension for where. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
  • D24 Comment Value — No inline comments to assess — comment value is not applicable here.
  • D25 ADR Conformance — no ADRs to check
  • D26 Project Cohesion — Project cohesion is assessed over the .NET project set; this target exposed no projects, so project size and spread could not be assessed. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
  • D27 Navigability — symbol resolution incomplete — too few calls resolved to assess navigability
  • D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.
  • D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
  • D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
  • D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
  • D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
  • D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
  • D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
  • D5 Coupling — Inter-project coupling could not be assessed — no analyzable project graph was found for this repository. Not scored: a gap in the analyzer's reach, not a verdict about this repository. (Coupling here is Martin afferent/efferent/instability plus reference cycles across a project-reference graph, read today from .NET project files; other ecosystems' module graphs are not read yet.)
  • D6 Cohesion (LCOM4) — Cohesion (LCOM4) is measured over a CS/VB/GO/SCALA/SWIFT/DART class graph, and this repository's production source is .cpp, .py, .rs, which this pass does not read — so no class could be assessed. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
  • D8 Code Coverage — Coverage not included — suite not readable by the collector
  • DM2 Strongly-typed ids — no in-repo typed-id idiom — primitive-obsession recorded as advisory DM8, DM2 not gated
  • DM3 Integration-event coupling — no integration events detected — coupling check not applicable
  • DM5 Encapsulated state — this Rust crate declares no type implementing a hand-rolled Hash/PartialEq, so DM5's value-identity encapsulation read has no population to be taken over
  • DM6 Domain ↔ infrastructure boundary — this Rust crate maps no type to a persistence framework (diesel/sea-orm/sqlx), so DM6's domain↔infrastructure fusion read has no population to be taken over
  • DM7 Repository granularity — no repository abstraction detected (e.g. uses a document session)
  • ED2 Event/command shape — not scored — deciding whether a command has more than one competing handler requires resolving the call graph, and a call made through an inferred or generic receiver has no resolvable owner in the source. Reported as guidance rather than measured
  • ED5 Idempotency — This check finds retry-prone mutations (command handlers and message/event consumers) by walking the repository's declared types, and none was loaded here, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • GD1 Unfinished & placeholder code — no source files were read — this check reads C# syntax, and none was loaded for this repository. That is a limit of the analyzer, not a finding about your code.
  • IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, and the automatic-re-run check to any GitHub-Actions workflow, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
  • P2 Observability — Observability was not assessed: this check reads a source model that does not carry this repository's product — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of a logging idiom this check recognises is NOT evidence that this repo lacks structured logging (it may log through its own ecosystem's logger). This is a gap in the analyzer, not a finding about this repository.
  • P7 Outbound HTTP resilience — not measured — the application kind could not be determined for this repo
  • P8 Schema migrations — not assessed — schema-migration practice is read from a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (lcov — `cargo install cargo-llvm-cov`, then `cargo llvm-cov --lcov --output-path lcov.info`) and commit it — a hosted scan measures a clone of the repository, so a report that exists only in a working tree, a CI runner's or your own, never reaches it; the artefact is commonly gitignored, so `git add -f` that one file (or un-ignore its path) and commit it alongside the code it measures, or wire coverage collection into CI, to enable this cross-layer check
  • PF1 Benchmark discipline — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • PF2 Allocation hygiene — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • PF3 Async & latency hygiene — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • X1 Async correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X12 Unreachable branch — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X13 Undrained process stream — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X14 Bypassable address classification — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X15 Unvalidated length from an untrusted reader — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X16 Unfloored truncation loop — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X17 Uncapped recursion over a caller-supplied document — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X18 Disposal-pattern correctness — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X19 Unrestored process-global state — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X20 Mistyped argument guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X21 Side-effecting pattern guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X22 Contradicted release guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X23 Unguarded diagnostic materialisation — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X24 Document value interpolated into markup unescaped — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X25 Inert configuration knob — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X26 Unsynchronised callback handoff — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X27 Collection changed while being enumerated — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X28 Index access outside its own emptiness guard — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X29 Per-element action decided by a fixed element — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X3 Exception handling — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X30 Support guard that admits what it rejects — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X32 Type resolved by simple name across every loaded assembly — This check reads C# syntax; no C# was loaded for this repository, so it has nothing to report. That is a limit of the analyzer, not a finding about your code.
  • X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
  • X5 Nullable reference types — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository

Appendix A — Findings (grouped)

The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.

Critical — 63 finding(s)
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • + 18 more in this group — see findings.md.
D30 · Dependency Vulnerabilities · High CVE · ×9
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED
  • REDACTED
  • REDACTED
D30 · Dependency Vulnerabilities · Critical CVE · ×2
  • REDACTED
  • REDACTED
D30 · Dependency Vulnerabilities · High vulnerability · ×2
  • REDACTED
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
Serious — 1113 finding(s)
D2 · Cognitive Complexity · flowd · ×274
  • flowd::sync::run_sync (cognitive 227) src/sync.rs:1271 — flowd::sync::run_sync has cognitive complexity 227 (threshold 15). Drivers by points: if/else 95 (188 pts), boolean chains 23, loops 3 (10 pts), match/switch 3 (6 pts) (nesting depth added 103). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • flowd::sync::run_jj_sync (cognitive 227) src/sync.rs:3237 — flowd::sync::run_jj_sync has cognitive complexity 227 (threshold 15). Drivers by points: if/else 92 (196 pts), boolean chains 16, loops 3 (8 pts), match/switch 2 (7 pts) (nesting depth added 114). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • flowd::commit::run_with_check_sync (cognitive 180) src/commit.rs:3898 — flowd::commit::run_with_check_sync has cognitive complexity 180 (threshold 15). Drivers by points: if/else 75 (131 pts), match/switch 8 (21 pts), boolean chains 16, loops 5 (12 pts) (nesting depth added 76). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • flowd::commit::run_commit_queue (cognitive 168) src/commit.rs:8959 — flowd::commit::run_commit_queue has cognitive complexity 168 (threshold 15). Drivers by points: if/else 55 (124 pts), match/switch 8 (22 pts), boolean chains 13, loops 4 (9 pts) (nesting depth added 88). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • flowd::ai::scan_all_project_sessions (cognitive 115) src/ai.rs:15654 — flowd::ai::scan_all_project_sessions has cognitive complexity 115 (threshold 15). Drivers by points: if/else 21 (76 pts), loops 7 (36 pts), boolean chains 3 (nesting depth added 84). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • flowd::ai::copy_session_by_search (cognitive 114) src/ai.rs:13481 — flowd::ai::copy_session_by_search has cognitive complexity 114 (threshold 15). Drivers by points: if/else 20 (89 pts), loops 5 (22 pts), boolean chains 3 (nesting depth added 86). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • flowd::sync_plan::render_markdown (cognitive 99) src/sync_plan.rs:1232 — flowd::sync_plan::render_markdown has cognitive complexity 99 (threshold 15). Drivers by points: if/else 24 (64 pts), loops 11 (32 pts), boolean chains 3 (nesting depth added 61). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • flowd::main (cognitive 98) src/main.rs:44 — flowd::main has cognitive complexity 98 (threshold 15). Drivers by points: if/else 38 (76 pts), boolean chains 15, match/switch 4 (7 pts) (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • flowd::setup::setup_deploy (cognitive 78) src/setup.rs:396 — flowd::setup::setup_deploy has cognitive complexity 78 (threshold 15). Drivers by points: if/else 43 (68 pts), boolean chains 7, match/switch 1 (3 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • flowd::supervisor::monitor_daemons (cognitive 78) src/supervisor.rs:895 — flowd::supervisor::monitor_daemons has cognitive complexity 78 (threshold 15). Drivers by points: if/else 19 (63 pts), loops 5 (10 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 51). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • flowd::hive::discover_agents (cognitive 72) src/hive.rs:188 — flowd::hive::discover_agents has cognitive complexity 72 (threshold 15). Drivers by points: if/else 17 (61 pts), loops 5 (11 pts) (nesting depth added 50). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • flowd::deps::build_pick_entries (cognitive 71) src/deps.rs:746 — flowd::deps::build_pick_entries has cognitive complexity 71 (threshold 15). Drivers by points: if/else 22 (52 pts), loops 6 (14 pts), match/switch 2 (5 pts) (nesting depth added 41). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • flowd::publish::run_github (cognitive 68) src/publish.rs:111 — flowd::publish::run_github has cognitive complexity 68 (threshold 15). Drivers by points: if/else 36 (65 pts), boolean chains 3 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • flowd::commit::approve_all_queued_commits (cognitive 67) src/commit.rs:7712 — flowd::commit::approve_all_queued_commits has cognitive complexity 67 (threshold 15). Drivers by points: if/else 23 (51 pts), boolean chains 7, loops 4 (6 pts), match/switch 2 (3 pts) (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • flowd::env::bootstrap_cloudflare_secrets (cognitive 65) src/env.rs:2653 — flowd::env::bootstrap_cloudflare_secrets has cognitive complexity 65 (threshold 15). Drivers by points: if/else 32 (55 pts), boolean chains 4, loops 3, match/switch 1 (3 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • flowd::commit::run_codex_review_once (cognitive 64) src/commit.rs:5043 — flowd::commit::run_codex_review_once has cognitive complexity 64 (threshold 15). Drivers by points: if/else 23 (49 pts), match/switch 5 (10 pts), loops 4 (5 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • flowd::setup::load_server_setup_template (cognitive 62) src/setup.rs:953 — flowd::setup::load_server_setup_template has cognitive complexity 62 (threshold 15). Drivers by points: if/else 14 (56 pts), match/switch 1 (6 pts) (nesting depth added 47). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • flowd::deploy::deploy_cloudflare (cognitive 62) src/deploy.rs:1054 — flowd::deploy::deploy_cloudflare has cognitive complexity 62 (threshold 15). Drivers by points: if/else 27 (53 pts), boolean chains 3, loops 1 (3 pts), match/switch 1 (3 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • flowd::ai::recover_row_score (cognitive 62) src/ai.rs:7470 — flowd::ai::recover_row_score has cognitive complexity 62 (threshold 15). Drivers by points: if/else 35 (60 pts), boolean chains 1, loops 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • flowd::env::show_keys (cognitive 59) src/env.rs:3081 — flowd::env::show_keys has cognitive complexity 59 (threshold 15). Drivers by points: if/else 18 (37 pts), loops 5 (15 pts), match/switch 1 (5 pts), boolean chains 2 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • flowd::commit::run_invariant_gate (cognitive 56) src/commit.rs:3264 — flowd::commit::run_invariant_gate has cognitive complexity 56 (threshold 15). Drivers by points: if/else 19 (41 pts), loops 5 (11 pts), boolean chains 4 (nesting depth added 28). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • flowd::tasks::run_command_with_pty (cognitive 56) src/tasks.rs:2552 — flowd::tasks::run_command_with_pty has cognitive complexity 56 (threshold 15). Drivers by points: if/else 24 (48 pts), loops 3 (4 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • flowd::ai::codex_project_ai_command (cognitive 54) src/ai.rs:10972 — flowd::ai::codex_project_ai_command has cognitive complexity 54 (threshold 15). Drivers by points: if/else 19 (38 pts), loops 4 (15 pts), match/switch 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • flowd::processes::show_hub_task_logs (cognitive 52) src/processes.rs:572 — flowd::processes::show_hub_task_logs has cognitive complexity 52 (threshold 15). Drivers by points: if/else 17 (41 pts), loops 3 (8 pts), match/switch 1 (3 pts) (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
  • flowd::updates::render_markdown (cognitive 51) src/updates.rs:1204 — flowd::updates::render_markdown has cognitive complexity 51 (threshold 15). Drivers by points: if/else 15 (33 pts), loops 6 (16 pts), boolean chains 2 (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • + 249 more in this group — see findings.md.
D1 · Cyclomatic Complexity · flowd · ×103
  • flowd::main (cyclomatic 158) src/main.rs:44 — flowd::main has cyclomatic complexity 158 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
  • flowd::sync::run_sync (cyclomatic 100) src/sync.rs:1271 — flowd::sync::run_sync has cyclomatic complexity 100 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • flowd::commit::run_with_check_sync (cyclomatic 95) src/commit.rs:3898 — flowd::commit::run_with_check_sync has cyclomatic complexity 95 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • flowd::sync::run_jj_sync (cyclomatic 90) src/sync.rs:3237 — flowd::sync::run_jj_sync has cyclomatic complexity 90 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • flowd::commit::run_commit_queue (cyclomatic 84) src/commit.rs:8959 — flowd::commit::run_commit_queue has cyclomatic complexity 84 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • flowd::ai::run (cyclomatic 76) src/ai.rs:784 — flowd::ai::run has cyclomatic complexity 76 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
  • flowd::startup_policy_for (cyclomatic 63) src/main.rs:695 — flowd::startup_policy_for has cyclomatic complexity 63 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
  • flowd::env::bootstrap_cloudflare_secrets (cyclomatic 39) src/env.rs:2653 — flowd::env::bootstrap_cloudflare_secrets has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • flowd::sync_plan::render_markdown (cyclomatic 38) src/sync_plan.rs:1232 — flowd::sync_plan::render_markdown has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • flowd::setup::setup_deploy (cyclomatic 37) src/setup.rs:396 — flowd::setup::setup_deploy has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • flowd::commit::approve_all_queued_commits (cyclomatic 35) src/commit.rs:7712 — flowd::commit::approve_all_queued_commits has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • flowd::deploy_setup::handle_key (cyclomatic 35) src/deploy_setup.rs:283 — flowd::deploy_setup::handle_key has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • flowd::commit::run_codex_review_once (cyclomatic 34) src/commit.rs:5043 — flowd::commit::run_codex_review_once has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • flowd::publish::run_github (cyclomatic 33) src/publish.rs:111 — flowd::publish::run_github has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • flowd::ai::scan_all_project_sessions (cyclomatic 31) src/ai.rs:15654 — flowd::ai::scan_all_project_sessions has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: flowd::ai::run_provider (cyclomatic 53) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
  • flowd::tasks::run_command_with_pty (cyclomatic 30) src/tasks.rs:2552 — flowd::tasks::run_command_with_pty has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • flowd::ai::recover_row_score (cyclomatic 30) src/ai.rs:7470 — flowd::ai::recover_row_score has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: flowd::ai::run_provider (cyclomatic 53) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
  • flowd::ai::run_sessions (cyclomatic 30) src/ai.rs:15469 — flowd::ai::run_sessions has cyclomatic complexity 30 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This is NOT this file's highest cyclomatic complexity: flowd::ai::run_provider (cyclomatic 53) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
  • flowd::env_setup::handle_key (cyclomatic 30) src/env_setup.rs:254 — flowd::env_setup::handle_key has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • flowd::codex_memory::fact_score (cyclomatic 29) src/codex_memory.rs:592 — flowd::codex_memory::fact_score has cyclomatic complexity 29 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
  • flowd::commit::run_invariant_gate (cyclomatic 29) src/commit.rs:3264 — flowd::commit::run_invariant_gate has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • flowd::ai::copy_session (cyclomatic 29) src/ai.rs:13286 — flowd::ai::copy_session has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: flowd::ai::run_provider (cyclomatic 53) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
  • flowd::ai::copy_session_by_search (cyclomatic 29) src/ai.rs:13481 — flowd::ai::copy_session_by_search has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file's highest cyclomatic complexity: flowd::ai::run_provider (cyclomatic 53) is higher and carries no row of its own — it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded function is counted neither in this dimension's figures nor in its score.
  • flowd::repos::bootstrap_home_branch (cyclomatic 29) src/repos.rs:791 — flowd::repos::bootstrap_home_branch has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • flowd::commit::run_claude_review (cyclomatic 28) src/commit.rs:5543 — flowd::commit::run_claude_review has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
  • + 78 more in this group — see findings.md.
D3 · God Classes · FunctionTooLong · ×52
  • FunctionTooLong: flowd::sync::run_sync src/sync.rs:1271 — FunctionTooLong — flowd::sync::run_sync runs 497 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 397 over it, 4.97× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::sync::run_jj_sync src/sync.rs:3237 — FunctionTooLong — flowd::sync::run_jj_sync runs 484 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 384 over it, 4.84× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::main src/main.rs:44 — FunctionTooLong — flowd::main runs 449 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 349 over it, 4.49× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::ai::run src/ai.rs:784 — FunctionTooLong — flowd::ai::run runs 285 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 185 over it, 2.85× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::ai::run_provider src/ai.rs:542 — FunctionTooLong — flowd::ai::run_provider runs 203 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 103 over it, 2.03× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::pr_preview::collect_preview_issues src/pr_preview.rs:706 — FunctionTooLong — flowd::pr_preview::collect_preview_issues runs 198 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 98 over it, 1.98× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::repos::bootstrap_home_branch src/repos.rs:791 — FunctionTooLong — flowd::repos::bootstrap_home_branch runs 197 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 97 over it, 1.97× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::tasks::run_command_with_pty src/tasks.rs:2552 — FunctionTooLong — flowd::tasks::run_command_with_pty runs 195 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 95 over it, 1.95× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::ai::build_codex_open_plan src/ai.rs:11374 — FunctionTooLong — flowd::ai::build_codex_open_plan runs 192 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 92 over it, 1.92× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::env::bootstrap_cloudflare_secrets src/env.rs:2653 — FunctionTooLong — flowd::env::bootstrap_cloudflare_secrets runs 185 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 85 over it, 1.85× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::publish::run_github src/publish.rs:111 — FunctionTooLong — flowd::publish::run_github runs 184 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 84 over it, 1.84× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::deploy_setup::draw_ui src/deploy_setup.rs:398 — FunctionTooLong — flowd::deploy_setup::draw_ui runs 180 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 80 over it, 1.80× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::workflow::inspect_jj_repo src/workflow.rs:397 — FunctionTooLong — flowd::workflow::inspect_jj_repo runs 160 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 60 over it, 1.60× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::tasks::execute_task src/tasks.rs:1595 — FunctionTooLong — flowd::tasks::execute_task runs 155 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 55 over it, 1.55× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::ai_taskd::run_request src/ai_taskd.rs:413 — FunctionTooLong — flowd::ai_taskd::run_request runs 154 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 54 over it, 1.54× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::sync::run_switch src/sync.rs:1952 — FunctionTooLong — flowd::sync::run_switch runs 152 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 52 over it, 1.52× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::env_setup::draw_ui src/env_setup.rs:359 — FunctionTooLong — flowd::env_setup::draw_ui runs 151 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 51 over it, 1.51× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::supervisor::monitor_daemons src/supervisor.rs:895 — FunctionTooLong — flowd::supervisor::monitor_daemons runs 149 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 49 over it, 1.49× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::codex_skill_eval::build_scorecard src/codex_skill_eval.rs:417 — FunctionTooLong — flowd::codex_skill_eval::build_scorecard runs 143 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 43 over it, 1.43× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::setup::setup_deploy src/setup.rs:396 — FunctionTooLong — flowd::setup::setup_deploy runs 143 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 43 over it, 1.43× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::ai::collect_codex_doctor_snapshot src/ai.rs:8566 — FunctionTooLong — flowd::ai::collect_codex_doctor_snapshot runs 142 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 42 over it, 1.42× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::startup_policy_for src/main.rs:695 — FunctionTooLong — flowd::startup_policy_for runs 141 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 41 over it, 1.41× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::proxy::summary::compute_summary src/proxy/summary.rs:146 — FunctionTooLong — flowd::proxy::summary::compute_summary runs 139 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 39 over it, 1.39× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::tasks::run src/tasks.rs:1240 — FunctionTooLong — flowd::tasks::run runs 138 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 38 over it, 1.38× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • FunctionTooLong: flowd::ai_project_manifest::build_manifest src/ai_project_manifest.rs:391 — FunctionTooLong — flowd::ai_project_manifest::build_manifest runs 137 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted) in one body. The bar is 100 significant lines; this is 37 over it, 1.37× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
  • + 27 more in this group — see findings.md.
D3 · God Classes · FileTooLong · ×48
  • FileTooLong: src/ai.rs src/ai.rs — FileTooLong — 11731 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 479 free functions. The bar is 500 significant lines; this is 11231 over it, 23.46× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/commit.rs src/commit.rs — FileTooLong — 11307 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 391 free functions. The bar is 500 significant lines; this is 10807 over it, 22.61× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/sync.rs src/sync.rs — FileTooLong — 4197 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 166 free functions. The bar is 500 significant lines; this is 3697 over it, 8.39× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/cli.rs src/cli.rs — FileTooLong — 3310 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 2810 over it, 6.62× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/env.rs src/env.rs — FileTooLong — 2874 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 125 free functions. The bar is 500 significant lines; this is 2374 over it, 5.75× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/tasks.rs src/tasks.rs — FileTooLong — 2255 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 89 free functions. The bar is 500 significant lines; this is 1755 over it, 4.51× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/deploy.rs src/deploy.rs — FileTooLong — 2216 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 102 free functions. The bar is 500 significant lines; this is 1716 over it, 4.43× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/setup.rs src/setup.rs — FileTooLong — 2082 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 100 free functions. The bar is 500 significant lines; this is 1582 over it, 4.16× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/jj.rs src/jj.rs — FileTooLong — 2020 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 106 free functions. The bar is 500 significant lines; this is 1520 over it, 4.04× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/config.rs src/config.rs — FileTooLong — 1926 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 58 free functions. The bar is 500 significant lines; this is 1426 over it, 3.85× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/codex_session_docs.rs src/codex_session_docs.rs — FileTooLong — 1505 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 68 free functions. The bar is 500 significant lines; this is 1005 over it, 3.01× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/pr_preview.rs src/pr_preview.rs — FileTooLong — 1491 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 52 free functions. The bar is 500 significant lines; this is 991 over it, 2.98× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/codex_memory.rs src/codex_memory.rs — FileTooLong — 1455 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 51 free functions. The bar is 500 significant lines; this is 955 over it, 2.91× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/repos.rs src/repos.rs — FileTooLong — 1416 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 60 free functions. The bar is 500 significant lines; this is 916 over it, 2.83× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/sync_plan.rs src/sync_plan.rs — FileTooLong — 1337 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 59 free functions. The bar is 500 significant lines; this is 837 over it, 2.67× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/code.rs src/code.rs — FileTooLong — 1178 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 54 free functions. The bar is 500 significant lines; this is 678 over it, 2.36× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: bin/flow-workspace-bootstrap.rs src/bin/flow-workspace-bootstrap.rs — FileTooLong — 1152 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 56 free functions. The bar is 500 significant lines; this is 652 over it, 2.30× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/updates.rs src/updates.rs — FileTooLong — 1151 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 44 free functions. The bar is 500 significant lines; this is 651 over it, 2.30× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/deps.rs src/deps.rs — FileTooLong — 1030 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 56 free functions. The bar is 500 significant lines; this is 530 over it, 2.06× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/workflow.rs src/workflow.rs — FileTooLong — 1026 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 43 free functions. The bar is 500 significant lines; this is 526 over it, 2.05× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/url_inspect.rs src/url_inspect.rs — FileTooLong — 1025 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 45 free functions. The bar is 500 significant lines; this is 525 over it, 2.05× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/skills.rs src/skills.rs — FileTooLong — 968 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 54 free functions. The bar is 500 significant lines; this is 468 over it, 1.94× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/ai_everruns.rs src/ai_everruns.rs — FileTooLong — 962 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted). The bar is 500 significant lines; this is 462 over it, 1.92× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/supervisor.rs src/supervisor.rs — FileTooLong — 904 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 52 free functions. The bar is 500 significant lines; this is 404 over it, 1.81× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • FileTooLong: src/agents.rs src/agents.rs — FileTooLong — 888 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), declaring 43 free functions. The bar is 500 significant lines; this is 388 over it, 1.78× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
  • + 23 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×44
  • Duplicated block (9 lines × 2) src/ai.rs:2592 — src/ai.rs:2592-2600 | src/codex_text.rs:5-13 — before extracting anything, compare `src/ai.rs` and `src/codex_text.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) src/ai.rs:7090 — src/ai.rs:7090-7098 | src/ai.rs:7225-7233 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) src/ai.rs:15660 — src/ai.rs:15660-15668 | src/ai.rs:15722-15730 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) src/ai_server.rs:175 — src/ai_server.rs:175-183 | src/health.rs:138-146 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (9 lines × 2) src/ai_taskd.rs:771 — src/ai_taskd.rs:771-779 | src/ai_taskd.rs:801-809 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) src/ai_taskd.rs:783 — src/ai_taskd.rs:783-791 | src/ai_taskd.rs:813-821 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) src/codex_memory.rs:1487 — src/codex_memory.rs:1487-1495 | src/codex_memory.rs:1571-1579 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) src/codex_runtime.rs:853 — src/codex_runtime.rs:853-861 | src/codex_runtime.rs:883-891 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) src/codex_skill_eval.rs:129 — src/codex_skill_eval.rs:129-137 | src/codex_skill_eval.rs:164-172 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) src/codex_telemetry.rs:653 — src/codex_telemetry.rs:653-661 | src/codex_telemetry.rs:751-759 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) src/commit.rs:6499 — src/commit.rs:6499-6507 | src/commit.rs:12808-12816 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) src/commit.rs:12551 — src/commit.rs:12551-12559 | src/commit.rs:12575-12583 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) src/commit.rs:15285 — src/commit.rs:15285-15293 | src/commit.rs:15395-15408 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) src/deploy.rs:2213 — src/deploy.rs:2213-2221 | src/deploy.rs:2249-2257 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) src/deploy_setup.rs:273 — src/deploy_setup.rs:273-281 | src/env_setup.rs:244-252 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) src/env.rs:3399 — src/env.rs:3399-3407 | src/env.rs:3503-3511 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) src/explain_commits.rs:103 — src/explain_commits.rs:103-111 | src/sync.rs:5476-5484 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (9 lines × 2) src/info.rs:112 — src/info.rs:112-120 | src/repo_capsule.rs:924-932 — before extracting anything, compare `src/info.rs` and `src/repo_capsule.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) src/install.rs:930 — src/install.rs:930-938 | src/registry.rs:657-665 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (9 lines × 2) src/macos.rs:309 — src/macos.rs:309-317 | src/macos.rs:367-375 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) src/gh_release.rs:110 — src/gh_release.rs:110-118 | src/publish.rs:303-311 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (9 lines × 2) src/publish.rs:297 — src/publish.rs:297-305 | src/publish.rs:460-468 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9 lines × 2) src/skills.rs:572 — src/skills.rs:572-580 | src/tools.rs:240-248 — before extracting anything, compare `src/skills.rs` and `src/tools.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) src/sync.rs:5798 — src/sync.rs:5798-5806 | src/upstream.rs:650-658 — before extracting anything, compare `src/sync.rs` and `src/upstream.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9 lines × 2) src/tasks.rs:938 — src/tasks.rs:938-946 | src/tasks.rs:949-957 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • + 19 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×36
  • Duplicated block (10 lines × 2) crates/seq_everruns_bridge/src/maple.rs:422 — crates/seq_everruns_bridge/src/maple.rs:422-431 | crates/seq_everruns_bridge/src/maple.rs:441-450 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) src/ai.rs:10922 — src/ai.rs:10922-10931 | src/ai.rs:10953-10962 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) src/ai.rs:13311 — src/ai.rs:13311-13320 | src/ai.rs:13873-13882 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) src/code.rs:75 — src/code.rs:75-85 | src/ssh.rs:396-405 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (10 lines × 2) src/code.rs:1056 — src/code.rs:1056-1065 | src/code.rs:1137-1146 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) src/codex_skill_eval.rs:429 — src/codex_skill_eval.rs:429-438 | src/codex_skill_eval.rs:444-453 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) src/commit.rs:9616 — src/commit.rs:9616-9625 | src/commit.rs:11722-11731 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) src/commit.rs:12567 — src/commit.rs:12567-12576 | src/sync.rs:5470-5479 — before extracting anything, compare `src/commit.rs` and `src/sync.rs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 2) src/env.rs:1647 — src/env.rs:1647-1657 | src/env.rs:1843-1852 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) src/env.rs:3985 — src/env.rs:3985-3994 | src/env.rs:4109-4118 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) src/git_guard.rs:427 — src/git_guard.rs:427-436 | src/undo.rs:60-69 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (10 lines × 2) src/history.rs:87 — src/history.rs:87-96 | src/history.rs:126-135 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) src/jd.rs:642 — src/jd.rs:642-651 | src/supervisor.rs:1247-1256 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (10 lines × 2) src/ext.rs:387 — src/ext.rs:387-396 | src/jj.rs:3385-3394 — before extracting anything, compare `src/ext.rs` and `src/jj.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 2) src/publish.rs:673 — src/publish.rs:673-682 | src/push.rs:321-330 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (10 lines × 2) src/setup.rs:963 — src/setup.rs:963-972 | src/setup.rs:988-997 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) src/supervisor.rs:110 — src/supervisor.rs:110-119 | src/supervisor.rs:136-145 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) src/supervisor.rs:579 — src/supervisor.rs:579-588 | src/supervisor.rs:601-610 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) src/sync.rs:5452 — src/sync.rs:5452-5461 | src/sync.rs:5478-5487 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) src/sync_plan.rs:1221 — src/sync_plan.rs:1221-1230 | src/updates.rs:1193-1202 — before extracting anything, compare `src/sync_plan.rs` and `src/updates.rs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 2) src/processes.rs:228 — src/processes.rs:228-237 | src/tasks.rs:1542-1551 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (10 lines × 2) src/traces.rs:170 — src/traces.rs:170-179 | src/traces.rs:260-269 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (10 lines × 2) src/codex_session_docs.rs:1879 — src/codex_session_docs.rs:1879-1888 | src/repo_capsule.rs:986-995 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (10 lines × 2) src/commit.rs:12483 — src/commit.rs:12483-12492 | src/sync.rs:5383-5392 — before extracting anything, compare `src/commit.rs` and `src/sync.rs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 2) src/commit.rs:12513 — src/commit.rs:12513-12522 | src/sync.rs:5413-5422 — before extracting anything, compare `src/commit.rs` and `src/sync.rs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • + 11 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×33
  • Duplicated block (8 lines × 2) src/agents.rs:539 — src/agents.rs:539-546 | src/palette.rs:134-141 — before extracting anything, compare `src/agents.rs` and `src/palette.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) src/ai.rs:2080 — src/ai.rs:2080-2087 | src/ai.rs:3260-3267 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/ai.rs:4506 — src/ai.rs:4506-4513 | src/ai.rs:5568-5575 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/ai.rs:7065 — src/ai.rs:7065-7072 | src/ai.rs:7200-7207 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/commit.rs:3407 — src/commit.rs:3407-3414 | src/invariants.rs:182-189 — before extracting anything, compare `src/commit.rs` and `src/invariants.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) src/commit.rs:11995 — src/commit.rs:11995-12002 | src/commit.rs:12007-12014 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/commit.rs:12871 — src/commit.rs:12871-12878 | src/commit.rs:12956-12963 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/commit.rs:13958 — src/commit.rs:13958-13965 | src/commit.rs:14262-14269 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/deploy.rs:312 — src/deploy.rs:312-319 | src/deploy.rs:423-430 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/deploy.rs:1251 — src/deploy.rs:1251-1258 | src/deploy.rs:2700-2707 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/deploy_setup.rs:418 — src/deploy_setup.rs:418-425 | src/env_setup.rs:378-385 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) src/info.rs:189 — src/info.rs:189-196 | src/repo_capsule.rs:977-984 — before extracting anything, compare `src/info.rs` and `src/repo_capsule.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) src/fish_install.rs:146 — src/fish_install.rs:146-153 | src/install.rs:952-959 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (8 lines × 2) src/log_server.rs:681 — src/log_server.rs:681-688 | src/server.rs:1218-1225 — before extracting anything, compare `src/log_server.rs` and `src/server.rs` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) src/publish.rs:719 — src/publish.rs:719-726 | src/push.rs:349-356 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (8 lines × 2) src/sync.rs:4921 — src/sync.rs:4921-4928 | src/sync.rs:5012-5019 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/tasks.rs:1198 — src/tasks.rs:1198-1205 | src/tasks.rs:1218-1225 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/tasks.rs:2258 — src/tasks.rs:2258-2265 | src/tasks.rs:2381-2390 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/gh_release.rs:310 — src/gh_release.rs:310-317 | src/gh_release.rs:333-340 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/jazz_state.rs:106 — src/jazz_state.rs:106-113 | src/jazz_state_stub.rs:26-33 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (8 lines × 2) src/sealer_crypto.rs:47 — src/sealer_crypto.rs:47-54 | src/sealer_crypto.rs:66-73 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8 lines × 2) src/commit.rs:7080 — src/commit.rs:7080-7087 | src/updates.rs:1523-1530 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (8 lines × 2) src/commit.rs:12534 — src/commit.rs:12534-12541 | src/sync.rs:5434-5441 — before extracting anything, compare `src/commit.rs` and `src/sync.rs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) src/deploy_setup.rs:774 — src/deploy_setup.rs:774-781 | src/env_setup.rs:691-698 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 2) src/sync_plan.rs:85 — src/sync_plan.rs:85-92 | src/updates.rs:59-66 — before extracting anything, compare `src/sync_plan.rs` and `src/updates.rs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • + 8 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×31
  • Duplicated block (6 lines × 2) src/codex_runtime.rs:320 — src/codex_runtime.rs:320-325 | src/codex_skill_eval.rs:235-240 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (6 lines × 2) src/codex_runtime.rs:842 — src/codex_runtime.rs:842-847 | src/codex_runtime.rs:870-875 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) src/codex_telemetry.rs:663 — src/codex_telemetry.rs:663-668 | src/codex_telemetry.rs:769-774 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) src/commit.rs:6075 — src/commit.rs:6075-6080 | src/commit.rs:6222-6227 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) src/commit.rs:10989 — src/commit.rs:10989-10994 | src/commit.rs:11325-11330 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) src/deploy.rs:588 — src/deploy.rs:588-593 | src/deploy.rs:1808-1813 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) src/deploy.rs:1759 — src/deploy.rs:1759-1764 | src/deploy.rs:1774-1779 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) src/help_search.rs:81 — src/help_search.rs:81-86 | src/tasks.rs:749-754 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (6 lines × 2) src/repos.rs:1685 — src/repos.rs:1685-1690 | src/repos.rs:1703-1708 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) src/setup.rs:2462 — src/setup.rs:2462-2467 | src/setup.rs:2554-2559 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) src/upstream.rs:186 — src/upstream.rs:186-191 | src/upstream.rs:471-476 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) crates/seq_everruns_bridge/src/lib.rs:298 — crates/seq_everruns_bridge/src/lib.rs:298-303 | src/ai_everruns.rs:1210-1215 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (6 lines × 2) src/ai.rs:8922 — src/ai.rs:8922-8927 | src/jd.rs:232-237 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (6 lines × 2) src/ai.rs:11826 — src/ai.rs:11826-11831 | src/commit.rs:10119-10124 — before extracting anything, compare `src/ai.rs` and `src/commit.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 2) src/ask.rs:547 — src/ask.rs:547-552 | src/task_match.rs:286-291 — before extracting anything, compare `src/ask.rs` and `src/task_match.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 150 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 2) src/config.rs:2891 — src/config.rs:2891-2896 | src/repos.rs:1525-1530 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (6 lines × 2) src/sync_plan.rs:1443 — src/sync_plan.rs:1443-1448 | src/updates.rs:1361-1366 — before extracting anything, compare `src/sync_plan.rs` and `src/updates.rs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (6 lines × 2) src/processes.rs:220 — src/processes.rs:220-225 | src/tasks.rs:1534-1539 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (6 lines × 2) src/hub.rs:108 — src/hub.rs:108-113 | src/tasks.rs:3354-3359 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (6 lines × 2) src/codex_session_docs.rs:1571 — src/codex_session_docs.rs:1571-1576 | src/codex_skill_eval.rs:306-312 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (6 lines × 2) src/codex_session_docs.rs:1375 — src/codex_session_docs.rs:1375-1380 | src/codex_session_docs.rs:1637-1642 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) src/traces.rs:195 — src/traces.rs:195-200 | src/traces.rs:251-256 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) src/push.rs:373 — src/push.rs:373-378 | src/sync.rs:2623-2628 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (6 lines × 2) src/task_match.rs:215 — src/task_match.rs:215-220 | src/task_match.rs:227-232 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6 lines × 2) src/codex_skill_eval.rs:633 — src/codex_skill_eval.rs:633-638 | src/history.rs:242-247 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • + 6 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×28
  • Duplicated block (11 lines × 2) src/ai.rs:1497 — src/ai.rs:1497-1507 | src/ai.rs:1512-1522 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/ai.rs:5691 — src/ai.rs:5691-5701 | src/ai.rs:5767-5777 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/code.rs:344 — src/code.rs:344-354 | src/code.rs:364-374 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/codex_skill_eval.rs:147 — src/codex_skill_eval.rs:147-157 | src/codex_skill_eval.rs:185-195 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/commit.rs:916 — src/commit.rs:916-926 | src/commit.rs:1195-1205 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/commit.rs:953 — src/commit.rs:953-963 | src/commit.rs:1232-1242 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/commit.rs:2767 — src/commit.rs:2767-2777 | src/commit.rs:2812-2822 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/commit.rs:8496 — src/commit.rs:8496-8506 | src/release_signing.rs:218-228 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (11 lines × 2) src/commit.rs:10995 — src/commit.rs:10995-11005 | src/commit.rs:11332-11342 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/commit.rs:12307 — src/commit.rs:12307-12317 | src/commit.rs:12329-12339 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/commit.rs:12344 — src/commit.rs:12344-12354 | src/commit.rs:12458-12468 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/deploy.rs:2780 — src/deploy.rs:2780-2790 | src/url_inspect.rs:951-961 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (11 lines × 2) src/deploy_setup.rs:855 — src/deploy_setup.rs:855-865 | src/env_setup.rs:754-764 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (11 lines × 2) src/domains.rs:257 — src/domains.rs:257-267 | src/domains.rs:683-693 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/env.rs:1647 — src/env.rs:1647-1657 | src/env.rs:2346-2356 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/gitignore_policy.rs:378 — src/gitignore_policy.rs:378-388 | src/push_hook.rs:231-241 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (11 lines × 2) src/help_search.rs:83 — src/help_search.rs:83-93 | src/publish.rs:91-101 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (11 lines × 2) src/hive.rs:207 — src/hive.rs:207-217 | src/hive.rs:235-245 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/log_server.rs:363 — src/log_server.rs:363-373 | src/server.rs:263-273 — before extracting anything, compare `src/log_server.rs` and `src/server.rs` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (11 lines × 2) src/notify.rs:56 — src/notify.rs:56-66 | src/notify.rs:148-158 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/rl_signals.rs:96 — src/rl_signals.rs:96-106 | src/rl_signals.rs:111-121 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/setup.rs:589 — src/setup.rs:589-599 | src/setup.rs:664-674 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/ssh.rs:332 — src/ssh.rs:332-342 | src/ssh.rs:351-361 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/sync.rs:2345 — src/sync.rs:2345-2355 | src/sync.rs:4012-4022 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11 lines × 2) src/push.rs:113 — src/push.rs:113-123 | src/push.rs:128-138 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • + 3 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×28
  • Duplicated block (5 lines × 2) src/ai.rs:7060 — src/ai.rs:7060-7064 | src/ai.rs:7195-7199 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) src/bin/flow-workspace-bootstrap.rs:1402 — src/bin/flow-workspace-bootstrap.rs:1402-1407 | src/domains.rs:443-447 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (5 lines × 2) src/commit.rs:3534 — src/commit.rs:3534-3538 | src/commit.rs:3569-3573 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) src/commit.rs:14069 — src/commit.rs:14069-14073 | src/commit.rs:14080-14084 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) src/commits.rs:180 — src/commits.rs:180-186 | src/commits.rs:445-449 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) src/deploy.rs:649 — src/deploy.rs:649-653 | src/sync.rs:339-343 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (5 lines × 2) src/flow_config.rs:826 — src/flow_config.rs:826-830 | src/home.rs:439-443 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (5 lines × 2) src/home.rs:826 — src/home.rs:826-830 | src/repos.rs:1743-1748 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (5 lines × 2) src/usage.rs:432 — src/usage.rs:432-436 | src/usage.rs:447-451 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) src/ai_project_manifest.rs:241 — src/ai_project_manifest.rs:241-245 | src/codex_session_docs.rs:1909-1913 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (5 lines × 2) src/code.rs:795 — src/code.rs:795-799 | src/ext.rs:173-177 — before extracting anything, compare `src/code.rs` and `src/ext.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) src/commit.rs:12507 — src/commit.rs:12507-12511 | src/sync.rs:5407-5411 — before extracting anything, compare `src/commit.rs` and `src/sync.rs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) src/deploy.rs:736 — src/deploy.rs:736-740 | src/release.rs:11-15 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (5 lines × 2) src/processes.rs:239 — src/processes.rs:239-243 | src/tasks.rs:1553-1557 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (5 lines × 2) src/env.rs:503 — src/env.rs:503-507 | src/ssh.rs:306-310 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (5 lines × 2) src/install.rs:685 — src/install.rs:685-689 | src/install.rs:739-745 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) src/ext.rs:147 — src/ext.rs:147-151 | src/todo.rs:60-64 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (5 lines × 2) src/commit.rs:15309 — src/commit.rs:15309-15313 | src/commit.rs:15424-15428 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) src/sync_plan.rs:963 — src/sync_plan.rs:963-967 | src/updates.rs:961-965 — before extracting anything, compare `src/sync_plan.rs` and `src/updates.rs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 2) src/ai.rs:10039 — src/ai.rs:10039-10043 | src/ai.rs:10339-10343 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) src/failure.rs:305 — src/failure.rs:305-309 | src/trace.rs:76-80 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (5 lines × 2) src/push.rs:224 — src/push.rs:224-228 | src/push.rs:230-234 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) src/code.rs:719 — src/code.rs:719-723 | src/code.rs:741-745 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) src/env.rs:2030 — src/env.rs:2030-2034 | src/env.rs:2038-2042 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (5 lines × 2) src/failure.rs:521 — src/failure.rs:521-525 | src/tasks.rs:2161-2165 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • + 3 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×26
  • Duplicated block (7 lines × 2) src/ai.rs:2207 — src/ai.rs:2207-2213 | src/ai.rs:14329-14335 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) src/ai.rs:2334 — src/ai.rs:2334-2340 | src/ai.rs:2349-2355 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) src/ai.rs:2487 — src/ai.rs:2487-2494 | src/ai.rs:7304-7310 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) src/ai.rs:3009 — src/ai.rs:3009-3016 | src/ai.rs:3381-3387 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) src/ai.rs:13543 — src/ai.rs:13543-13549 | src/ai.rs:13600-13606 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) src/ai_tasks.rs:775 — src/ai_tasks.rs:775-781 | src/recipe.rs:481-487 — before extracting anything, compare `src/ai_tasks.rs` and `src/recipe.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (7 lines × 2) src/codex_telemetry.rs:268 — src/codex_telemetry.rs:268-274 | src/codex_telemetry.rs:276-282 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) src/deploy_setup.rs:970 — src/deploy_setup.rs:970-976 | src/env_setup.rs:830-836 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (7 lines × 2) src/domains.rs:271 — src/domains.rs:271-277 | src/domains.rs:294-300 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) src/env.rs:1914 — src/env.rs:1914-1920 | src/env.rs:3274-3280 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) src/failure.rs:192 — src/failure.rs:192-199 | src/failure.rs:252-258 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) src/jd.rs:490 — src/jd.rs:490-496 | src/supervisor.rs:659-665 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (7 lines × 2) src/log_server.rs:848 — src/log_server.rs:848-854 | src/log_server.rs:909-915 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) src/pr_edit.rs:262 — src/pr_edit.rs:262-268 | src/pr_edit.rs:373-379 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) src/publish.rs:167 — src/publish.rs:167-173 | src/publish.rs:544-550 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) src/ai.rs:1837 — src/ai.rs:1837-1843 | src/commit.rs:12591-12597 — before extracting anything, compare `src/ai.rs` and `src/commit.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (7 lines × 2) src/ai_server.rs:259 — src/ai_server.rs:259-265 | src/health.rs:386-392 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (7 lines × 2) src/ai_taskd.rs:964 — src/ai_taskd.rs:964-970 | src/bin/ai_taskd_client.rs:308-314 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (7 lines × 2) src/codex_memory.rs:764 — src/codex_memory.rs:764-770 | src/repo_capsule.rs:997-1003 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (7 lines × 2) src/commit.rs:4681 — src/commit.rs:4681-4687 | src/skills.rs:1103-1109 — before extracting anything, compare `src/commit.rs` and `src/skills.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (7 lines × 2) src/commit.rs:10723 — src/commit.rs:10723-10729 | src/commit.rs:10896-10903 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) src/deploy_setup.rs:557 — src/deploy_setup.rs:557-563 | src/env_setup.rs:490-496 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (7 lines × 2) src/traces.rs:168 — src/traces.rs:168-174 | src/traces.rs:246-252 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7 lines × 2) src/deploy_setup.rs:437 — src/deploy_setup.rs:437-443 | src/env_setup.rs:425-431 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (7 lines × 2) src/explain_commits.rs:626 — src/explain_commits.rs:626-632 | src/explain_commits.rs:700-706 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • + 1 more in this group — see findings.md.
D15 · Churn × Complexity Hotspots · Hotspot · ×25
  • Hotspot: src/main.rs src/main.rs:44 — src/main.rs changed 36 times in last 90 days, max cyclomatic complexity 158 in flowd::main at line 44. 3 of those changes were fix/bug commits, and the other 33 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/main.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/commit.rs src/commit.rs:3898 — src/commit.rs changed 37 times in last 90 days, max cyclomatic complexity 95 in flowd::commit::run_with_check_sync at line 3898. 4 of those changes were fix/bug commits, and the other 33 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/commit.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/sync.rs src/sync.rs:1271 — src/sync.rs changed 32 times in last 90 days, max cyclomatic complexity 100 in flowd::sync::run_sync at line 1271. 4 of those changes were fix/bug commits, and the other 28 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/sync.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/ai.rs src/ai.rs:784 — src/ai.rs changed 30 times in last 90 days, max cyclomatic complexity 76 in flowd::ai::run at line 784. 2 of those changes were fix/bug commits, and the other 28 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/ai.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/tasks.rs src/tasks.rs:2552 — src/tasks.rs changed 26 times in last 90 days, max cyclomatic complexity 30 in flowd::tasks::run_command_with_pty at line 2552. 1 of those changes was a fix/bug commit, and the other 25 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/tasks.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/config.rs src/config.rs:2535 — src/config.rs changed 23 times in last 90 days, max cyclomatic complexity 25 in flowd::config::merge_config at line 2535. 1 of those changes was a fix/bug commit, and the other 22 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/config.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/setup.rs src/setup.rs:396 — src/setup.rs changed 15 times in last 90 days, max cyclomatic complexity 37 in flowd::setup::setup_deploy at line 396. 2 of those changes were fix/bug commits, and the other 13 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/setup.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/env.rs src/env.rs:2653 — src/env.rs changed 13 times in last 90 days, max cyclomatic complexity 39 in flowd::env::bootstrap_cloudflare_secrets at line 2653. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/env.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/skills.rs src/skills.rs:792 — src/skills.rs changed 11 times in last 90 days, max cyclomatic complexity 24 in flowd::skills::fetch_skills at line 792. 1 of those changes was a fix/bug commit, and the other 10 changed it for other reasons — this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/skills.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/repos.rs src/repos.rs:791 — src/repos.rs changed 9 times in last 90 days, max cyclomatic complexity 29 in flowd::repos::bootstrap_home_branch at line 791. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/repos.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/supervisor.rs src/supervisor.rs:895 — src/supervisor.rs changed 8 times in last 90 days, max cyclomatic complexity 27 in flowd::supervisor::monitor_daemons at line 895. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/supervisor.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/deploy.rs src/deploy.rs:877 — src/deploy.rs changed 8 times in last 90 days, max cyclomatic complexity 27 in flowd::deploy::deploy_host at line 877. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/deploy.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/code.rs src/code.rs:702 — src/code.rs changed 9 times in last 90 days, max cyclomatic complexity 19 in flowd::code::move_sessions at line 702. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/code.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/jj.rs src/jj.rs:530 — src/jj.rs changed 9 times in last 90 days, max cyclomatic complexity 15 in flowd::jj::run_workspace at line 530. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/jj.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/task_match.rs src/task_match.rs:175 — src/task_match.rs changed 6 times in last 90 days, max cyclomatic complexity 17 in flowd::task_match::run_with_tasks at line 175. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/task_match.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/upgrade.rs src/upgrade.rs:551 — src/upgrade.rs changed 6 times in last 90 days, max cyclomatic complexity 16 in flowd::upgrade::run at line 551. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/upgrade.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/hive.rs src/hive.rs:188 — src/hive.rs changed 3 times in last 90 days, max cyclomatic complexity 23 in flowd::hive::discover_agents at line 188. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/hive.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/publish.rs src/publish.rs:111 — src/publish.rs changed 2 times in last 90 days, max cyclomatic complexity 33 in flowd::publish::run_github at line 111. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/publish.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/bin/ai_taskd_client.rs src/bin/ai_taskd_client.rs:61 — src/bin/ai_taskd_client.rs changed 3 times in last 90 days, max cyclomatic complexity 20 in flowd::bin::ai_taskd_client::run at line 61. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/bin/ai_taskd_client.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/codex_memory.rs src/codex_memory.rs:592 — src/codex_memory.rs changed 2 times in last 90 days, max cyclomatic complexity 29 in flowd::codex_memory::fact_score at line 592. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/codex_memory.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/ai_everruns.rs src/ai_everruns.rs:160 — src/ai_everruns.rs changed 3 times in last 90 days, max cyclomatic complexity 18 in flowd::ai_everruns::wait_for_completion_sse at line 160. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/ai_everruns.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/deps.rs src/deps.rs:746 — src/deps.rs changed 2 times in last 90 days, max cyclomatic complexity 25 in flowd::deps::build_pick_entries at line 746. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/deps.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/ssh_keys.rs src/ssh_keys.rs:294 — src/ssh_keys.rs changed 2 times in last 90 days, max cyclomatic complexity 20 in flowd::ssh_keys::upsert_ssh_block at line 294. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/ssh_keys.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/proxy/trace.rs src/proxy/trace.rs:55 — src/proxy/trace.rs changed 2 times in last 90 days, max cyclomatic complexity 19 in Method::from at line 55. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/proxy/trace.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
  • Hotspot: src/gitignore_policy.rs src/gitignore_policy.rs:188 — src/gitignore_policy.rs changed 2 times in last 90 days, max cyclomatic complexity 15 in flowd::gitignore_policy::run_scan at line 188. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-01-14..2026-04-14, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-01-14 23:37:33 -07:00' --until='2026-04-14 23:37:33 -07:00' --full-history --no-merges -- src/gitignore_policy.rs`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×20
  • Duplicated block (12 lines × 2) src/ai.rs:2603 — src/ai.rs:2603-2614 | src/codex_text.rs:43-54 — before extracting anything, compare `src/ai.rs` and `src/codex_text.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) src/code.rs:278 — src/code.rs:278-289 | src/code.rs:593-604 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) src/codex_session_docs.rs:801 — src/codex_session_docs.rs:801-812 | src/codex_session_docs.rs:1194-1205 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) src/codex_skill_eval.rs:682 — src/codex_skill_eval.rs:682-693 | src/history.rs:283-294 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (12 lines × 2) src/commit.rs:2467 — src/commit.rs:2467-2478 | src/commit.rs:2529-2540 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) src/commit.rs:5221 — src/commit.rs:5221-5232 | src/commit.rs:5351-5362 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) src/commit.rs:5911 — src/commit.rs:5911-5922 | src/invariants.rs:293-304 — before extracting anything, compare `src/commit.rs` and `src/invariants.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) src/commit.rs:13652 — src/commit.rs:13652-13663 | src/todo.rs:287-298 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (12 lines × 2) src/commit.rs:13826 — src/commit.rs:13826-13837 | src/publish.rs:642-653 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (12 lines × 2) src/commit.rs:14144 — src/commit.rs:14144-14155 | src/skills.rs:702-713 — before extracting anything, compare `src/commit.rs` and `src/skills.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) src/deploy_setup.rs:594 — src/deploy_setup.rs:594-605 | src/env_setup.rs:520-531 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) src/deploy_setup.rs:608 — src/deploy_setup.rs:608-619 | src/env_setup.rs:533-544 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) src/deploy_setup.rs:1007 — src/deploy_setup.rs:1007-1018 | src/env_setup.rs:867-878 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) src/failure.rs:579 — src/failure.rs:579-590 | src/vcs.rs:56-67 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (12 lines × 2) src/home.rs:723 — src/home.rs:723-734 | src/home.rs:758-769 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) src/log_server.rs:428 — src/log_server.rs:428-439 | src/server.rs:328-339 — before extracting anything, compare `src/log_server.rs` and `src/server.rs` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) src/log_server.rs:449 — src/log_server.rs:449-460 | src/server.rs:349-360 — before extracting anything, compare `src/log_server.rs` and `src/server.rs` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) src/log_server.rs:575 — src/log_server.rs:575-586 | src/server.rs:472-483 — before extracting anything, compare `src/log_server.rs` and `src/server.rs` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 2) src/setup.rs:1868 — src/setup.rs:1868-1879 | src/setup.rs:1925-1936 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (12 lines × 2) src/sync.rs:615 — src/sync.rs:615-626 | src/sync.rs:792-803 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×18
  • Duplicated block (13 lines × 2) src/ai.rs:1739 — src/ai.rs:1739-1751 | src/ai.rs:15932-15944 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) src/ai.rs:2997 — src/ai.rs:2997-3009 | src/ai.rs:3050-3062 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) src/ai_project_manifest.rs:141 — src/ai_project_manifest.rs:141-153 | src/project_snapshot.rs:267-279 — before extracting anything, compare `src/ai_project_manifest.rs` and `src/project_snapshot.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (13 lines × 2) src/commit.rs:668 — src/commit.rs:668-680 | src/commit.rs:693-705 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) src/commit.rs:4746 — src/commit.rs:4746-4758 | src/commit.rs:4779-4791 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) src/commit.rs:7798 — src/commit.rs:7798-7810 | src/commit.rs:9321-9333 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) src/commit.rs:12775 — src/commit.rs:12775-12787 | src/commit.rs:12837-12849 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) src/deploy.rs:2793 — src/deploy.rs:2793-2805 | src/url_inspect.rs:964-976 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (13 lines × 2) src/deploy_setup.rs:571 — src/deploy_setup.rs:571-583 | src/env_setup.rs:500-512 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (13 lines × 2) src/env.rs:1518 — src/env.rs:1518-1530 | src/env.rs:1557-1569 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) src/env.rs:1612 — src/env.rs:1612-1624 | src/env.rs:2535-2547 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) src/env.rs:1960 — src/env.rs:1960-1972 | src/env.rs:2168-2180 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) src/git_guard.rs:371 — src/git_guard.rs:371-383 | src/jj.rs:3557-3569 — before extracting anything, compare `src/git_guard.rs` and `src/jj.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (13 lines × 2) src/gitignore_policy.rs:551 — src/gitignore_policy.rs:551-563 | src/gitignore_policy.rs:586-598 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) src/repos.rs:64 — src/repos.rs:64-76 | src/repos.rs:390-402 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) src/sync.rs:4562 — src/sync.rs:4562-4574 | src/sync.rs:5501-5513 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) src/commit.rs:6341 — src/commit.rs:6341-6353 | src/commit.rs:6380-6392 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (13 lines × 2) src/supervisor.rs:306 — src/supervisor.rs:306-318 | src/supervisor.rs:437-449 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×13
  • Duplicated block (15 lines × 2) src/ai_tasks.rs:786 — src/ai_tasks.rs:786-800 | src/tasks.rs:1124-1138 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (15 lines × 2) src/changes.rs:708 — src/changes.rs:708-722 | src/env.rs:1045-1059 — before extracting anything, compare `src/changes.rs` and `src/env.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (15 lines × 2) src/code.rs:879 — src/code.rs:879-893 | src/ext.rs:224-238 — before extracting anything, compare `src/code.rs` and `src/ext.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (15 lines × 2) src/commit.rs:8450 — src/commit.rs:8450-8464 | src/commit.rs:8469-8483 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (15 lines × 2) src/commit.rs:10281 — src/commit.rs:10281-10295 | src/failure.rs:685-699 — before extracting anything, compare `src/commit.rs` and `src/failure.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (15 lines × 2) src/daemon.rs:555 — src/daemon.rs:555-569 | src/hub.rs:92-106 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (15 lines × 2) src/deploy_setup.rs:793 — src/deploy_setup.rs:793-807 | src/env_setup.rs:701-715 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (15 lines × 2) src/env.rs:527 — src/env.rs:527-541 | src/ssh_keys.rs:514-528 — before extracting anything, compare `src/env.rs` and `src/ssh_keys.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (15 lines × 2) src/env.rs:3506 — src/env.rs:3506-3520 | src/env.rs:3535-3549 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (15 lines × 2) src/info.rs:80 — src/info.rs:80-94 | src/repo_capsule.rs:395-409 — before extracting anything, compare `src/info.rs` and `src/repo_capsule.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (15 lines × 2) src/tasks.rs:805 — src/tasks.rs:805-819 | src/tasks.rs:853-867 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (15 lines × 2) src/workflow.rs:566 — src/workflow.rs:566-580 | src/workflow.rs:685-699 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (15 lines × 2) src/commit.rs:5526 — src/commit.rs:5526-5540 | src/commit.rs:6530-6544 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×11
  • Duplicated block (14 lines × 2) src/ai.rs:1627 — src/ai.rs:1627-1640 | src/ai.rs:16232-16245 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (14 lines × 2) src/ai_tasks.rs:755 — src/ai_tasks.rs:755-768 | src/recipe.rs:461-474 — before extracting anything, compare `src/ai_tasks.rs` and `src/recipe.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (14 lines × 2) src/commit.rs:252 — src/commit.rs:252-265 | src/commit.rs:549-562 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (14 lines × 2) src/commit.rs:879 — src/commit.rs:879-892 | src/commit.rs:1132-1145 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (14 lines × 2) src/commit.rs:8336 — src/commit.rs:8336-8349 | src/commit.rs:8352-8365 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (14 lines × 2) src/commit.rs:8509 — src/commit.rs:8509-8522 | src/sync.rs:2635-2648 — before extracting anything, compare `src/commit.rs` and `src/sync.rs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (14 lines × 2) src/commit.rs:15295 — src/commit.rs:15295-15308 | src/commit.rs:15410-15423 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (14 lines × 2) src/config.rs:2817 — src/config.rs:2817-2830 | src/config.rs:2852-2865 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (14 lines × 2) src/deploy.rs:2234 — src/deploy.rs:2234-2247 | src/deploy.rs:2422-2435 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (14 lines × 2) src/deploy_setup.rs:55 — src/deploy_setup.rs:55-68 | src/env_setup.rs:51-64 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (14 lines × 2) src/sync.rs:5602 — src/sync.rs:5602-5616 | src/sync.rs:5682-5695 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D17 · Explicit Debt · TodoComment · ×8
  • TodoComment src/tools.rs:210 — // TODO: Implement tool logic — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/commit.rs:4126 — // TODO: track actual review time — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/cli.rs:2142 — /// Todo id (short prefix or full). — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/cli.rs:2147 — /// Todo id (short prefix or full). — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/cli.rs:2152 — /// Todo id to fix. If omitted with --all, fixes all open review todos. — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/cli.rs:3792 — /// Todo id (full or prefix). — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/cli.rs:3797 — /// Todo id (full or prefix). — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
  • TodoComment src/cli.rs:3811 — /// Todo id (full or prefix). — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
D4 · Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) · ×8
  • Members sharing a duplicated core (4 members, 50+ identical tokens) src/ai.rs:4563 — src/ai.rs:4563-4581 | src/ai.rs:12744-12759 | src/ai_project_manifest.rs:219-235 | src/codex_session_docs.rs:1757-1773 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) crates/flow_commit_scan/src/lib.rs:198 — crates/flow_commit_scan/src/lib.rs:198-314 | src/commit.rs:248-296 | src/commit.rs:545-581 | src/commit.rs:6615-6638 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) src/commit.rs:2938 — src/commit.rs:2938-2945 | src/fish_install.rs:145-155 | src/fish_install.rs:157-167 | src/install.rs:951-961 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) src/commit.rs:5049 — src/commit.rs:5049-5372 | src/commit.rs:5455-5540 | src/commit.rs:5800-5907 | src/commit.rs:6456-6544 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) src/deploy.rs:616 — src/deploy.rs:616-667 | src/fish_install.rs:12-117 | src/push_hook.rs:70-108 | src/setup.rs:1222-1246 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) src/deploy_setup.rs:916 — src/deploy_setup.rs:916-967 | src/deploy_setup.rs:969-1018 | src/discover.rs:115-257 | src/env_setup.rs:829-878 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) src/failure.rs:293 — src/failure.rs:293-325 | src/trace.rs:72-87 | src/trace.rs:154-183 | src/trace.rs:256-288 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
  • Members sharing a duplicated core (4 members, 50+ identical tokens) src/sync_plan.rs:982 — src/sync_plan.rs:982-1144 | src/sync_plan.rs:1232-1407 | src/updates.rs:1027-1131 | src/updates.rs:1204-1322 — These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication · Duplicated block (24 lines × 2) · ×8
  • Duplicated block (24 lines × 2) src/ai.rs:1933 — src/ai.rs:1933-1956 | src/ai.rs:1983-2006 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (24 lines × 2) src/ai.rs:2645 — src/ai.rs:2645-2668 | src/codex_text.rs:57-80 — before extracting anything, compare `src/ai.rs` and `src/codex_text.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (24 lines × 2) src/ai.rs:14617 — src/ai.rs:14617-14640 | src/ai.rs:14693-14716 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (24 lines × 2) src/ai_tasks.rs:729 — src/ai_tasks.rs:729-752 | src/recipe.rs:403-426 — before extracting anything, compare `src/ai_tasks.rs` and `src/recipe.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (24 lines × 2) src/commit.rs:2177 — src/commit.rs:2177-2200 | src/commit.rs:2345-2368 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (24 lines × 2) src/commit.rs:14118 — src/commit.rs:14118-14141 | src/skills.rs:676-699 — before extracting anything, compare `src/commit.rs` and `src/skills.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (24 lines × 2) src/deploy_setup.rs:532 — src/deploy_setup.rs:532-555 | src/env_setup.rs:466-489 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (24 lines × 2) src/deploy_setup.rs:891 — src/deploy_setup.rs:891-914 | src/env_setup.rs:790-813 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×8
  • Duplicated block (17 lines × 2) src/ai.rs:1778 — src/ai.rs:1778-1794 | src/ai.rs:15971-15987 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (17 lines × 2) src/ai_taskd.rs:831 — src/ai_taskd.rs:831-847 | src/ai_taskd.rs:855-871 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (17 lines × 2) src/bin/flow-workspace-bootstrap.rs:1498 — src/bin/flow-workspace-bootstrap.rs:1498-1514 | src/jj.rs:2321-2337 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
  • Duplicated block (17 lines × 2) src/commit.rs:2156 — src/commit.rs:2156-2172 | src/commit.rs:2326-2342 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (17 lines × 2) src/deploy_setup.rs:184 — src/deploy_setup.rs:184-200 | src/env_setup.rs:167-183 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (17 lines × 2) src/deps.rs:483 — src/deps.rs:483-499 | src/fix.rs:174-190 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (17 lines × 2) src/hive.rs:317 — src/hive.rs:317-333 | src/hive.rs:343-359 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (17 lines × 2) src/watchers.rs:103 — src/watchers.rs:103-119 | src/watchers.rs:179-195 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×8
  • Duplicated block (16 lines × 2) src/ai_tasks.rs:373 — src/ai_tasks.rs:373-388 | src/ai_tasks.rs:400-415 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (16 lines × 2) src/commit.rs:14367 — src/commit.rs:14367-14382 | src/commit.rs:14479-14494 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (16 lines × 2) src/commit.rs:14436 — src/commit.rs:14436-14451 | src/commit.rs:14481-14496 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (16 lines × 2) src/deps.rs:782 — src/deps.rs:782-797 | src/deps.rs:803-818 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (16 lines × 2) src/git_guard.rs:344 — src/git_guard.rs:344-359 | src/jj.rs:3572-3587 — before extracting anything, compare `src/git_guard.rs` and `src/jj.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (16 lines × 2) src/info.rs:123 — src/info.rs:123-138 | src/repo_capsule.rs:935-950 — before extracting anything, compare `src/info.rs` and `src/repo_capsule.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (16 lines × 2) src/log_server.rs:540 — src/log_server.rs:540-555 | src/server.rs:438-453 — before extracting anything, compare `src/log_server.rs` and `src/server.rs` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (16 lines × 2) src/todo.rs:242 — src/todo.rs:242-257 | src/todo.rs:260-275 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (8 lines × 3) · ×8
  • Duplicated block (8 lines × 3) src/env.rs:2297 — src/env.rs:2297-2304 | src/env.rs:2353-2360 | src/env.rs:3497-3504 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 3) src/failure.rs:632 — src/failure.rs:632-639 | src/jj.rs:1741-1748 | src/jj.rs:2398-2405 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (8 lines × 3) src/server.rs:824 — src/server.rs:824-831 | src/server.rs:867-874 | src/server.rs:912-919 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 3) src/ext.rs:417 — src/ext.rs:417-424 | src/services.rs:513-520 | src/setup.rs:2948-2955 — before extracting anything, compare `src/services.rs` and `src/setup.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 3) src/trace.rs:73 — src/trace.rs:73-80 | src/trace.rs:158-165 | src/trace.rs:260-267 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (8 lines × 3) src/push_policy.rs:267 — src/push_policy.rs:267-274 | src/skills.rs:758-765 | src/tasks.rs:1586-1593 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
  • Duplicated block (8 lines × 3) src/ai_project_manifest.rs:191 — src/ai_project_manifest.rs:191-198 | src/config.rs:2454-2461 | src/project_snapshot.rs:216-223 — before extracting anything, compare `src/ai_project_manifest.rs` and `src/project_snapshot.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 3) src/commit.rs:12281 — src/commit.rs:12281-12288 | src/commit.rs:12693-12700 | src/commit.rs:13522-13529 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D30 · Dependency Vulnerabilities · Medium CVE · ×7
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×7
  • Duplicated block (19 lines × 2) src/ai.rs:1651 — src/ai.rs:1651-1669 | src/ai.rs:16254-16272 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (19 lines × 2) src/commit.rs:2062 — src/commit.rs:2062-2080 | src/commit.rs:2250-2268 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (19 lines × 2) src/commit.rs:12650 — src/commit.rs:12650-12668 | src/commit.rs:12729-12747 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (19 lines × 2) src/deploy_setup.rs:870 — src/deploy_setup.rs:870-888 | src/env_setup.rs:769-787 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (19 lines × 2) src/log_server.rs:378 — src/log_server.rs:378-396 | src/server.rs:278-296 — before extracting anything, compare `src/log_server.rs` and `src/server.rs` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (19 lines × 2) src/log_server.rs:463 — src/log_server.rs:463-481 | src/server.rs:363-381 — before extracting anything, compare `src/log_server.rs` and `src/server.rs` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (19 lines × 2) src/log_server.rs:616 — src/log_server.rs:616-634 | src/server.rs:535-553 — before extracting anything, compare `src/log_server.rs` and `src/server.rs` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (11 lines × 3) · ×7
  • Duplicated block (11 lines × 3) src/ai.rs:3431 — src/ai.rs:3431-3441 | src/ai.rs:16034-16044 | src/code.rs:1511-1521 — before extracting anything, compare `src/ai.rs` and `src/code.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (11 lines × 3) src/archive.rs:127 — src/archive.rs:127-137 | src/code.rs:862-872 | src/ext.rs:207-217 — before extracting anything, compare `src/archive.rs` and `src/code.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (11 lines × 3) src/archive.rs:140 — src/archive.rs:140-150 | src/code.rs:875-885 | src/ext.rs:220-230 — before extracting anything, compare `src/archive.rs` and `src/code.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (11 lines × 3) src/env.rs:1520 — src/env.rs:1520-1530 | src/env.rs:1559-1569 | src/env.rs:3776-3786 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (11 lines × 3) src/ext.rs:369 — src/ext.rs:369-379 | src/jj.rs:3367-3377 | src/sync.rs:4577-4587 — before extracting anything, compare `src/ext.rs` and `src/jj.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (11 lines × 3) src/sync.rs:1014 — src/sync.rs:1014-1024 | src/sync.rs:1115-1125 | src/sync.rs:5862-5872 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (11 lines × 3) src/code.rs:373 — src/code.rs:373-383 | src/palette.rs:97-107 | src/repos.rs:128-138 — before extracting anything, compare `src/code.rs` and `src/palette.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6 lines × 3) · ×7
  • Duplicated block (6 lines × 3) src/ai.rs:1539 — src/ai.rs:1539-1544 | src/ai.rs:1746-1751 | src/ai.rs:15939-15944 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 3) src/branches.rs:366 — src/branches.rs:366-371 | src/ext.rs:401-406 | src/repos.rs:1516-1521 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
  • Duplicated block (6 lines × 3) src/deploy.rs:1251 — src/deploy.rs:1251-1256 | src/deploy.rs:2700-2705 | src/env.rs:2591-2596 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 3) src/env.rs:3398 — src/env.rs:3398-3403 | src/env.rs:3502-3507 | src/env.rs:3805-3810 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 3) src/deploy.rs:1313 — src/deploy.rs:1313-1318 | src/env.rs:1365-1370 | src/services.rs:225-230 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
  • Duplicated block (6 lines × 3) src/upstream.rs:289 — src/upstream.rs:289-296 | src/upstream.rs:403-408 | src/upstream.rs:452-459 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (6 lines × 3) src/ai.rs:9809 — src/ai.rs:9809-9814 | src/ai.rs:9826-9832 | src/codex_skill_eval.rs:321-327 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
D4 · Code Duplication · Duplicated block (5 lines × 3) · ×6
  • Duplicated block (5 lines × 3) src/ai_project_manifest.rs:140 — src/ai_project_manifest.rs:140-144 | src/config.rs:2502-2506 | src/project_snapshot.rs:266-270 — before extracting anything, compare `src/ai_project_manifest.rs` and `src/project_snapshot.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 3) src/ai_tasks.rs:784 — src/ai_tasks.rs:784-788 | src/commit.rs:8777-8781 | src/tasks.rs:1122-1126 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
  • Duplicated block (5 lines × 3) src/commit.rs:9620 — src/commit.rs:9620-9624 | src/commit.rs:9909-9913 | src/commit.rs:11726-11730 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 3) src/deploy.rs:1690 — src/deploy.rs:1690-1695 | src/deploy.rs:1759-1763 | src/deploy.rs:1774-1778 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (5 lines × 3) src/ai_project_manifest.rs:180 — src/ai_project_manifest.rs:180-184 | src/config.rs:2474-2479 | src/project_snapshot.rs:238-243 — before extracting anything, compare `src/ai_project_manifest.rs` and `src/project_snapshot.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (5 lines × 3) src/sync_plan.rs:1621 — src/sync_plan.rs:1621-1626 | src/sync_plan.rs:1725-1730 | src/updates.rs:1455-1459 — before extracting anything, compare `src/sync_plan.rs` and `src/updates.rs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D30 · Dependency Vulnerabilities · Medium advisory (unsound) · ×5
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) · ×5
  • Members sharing a duplicated core (5 members, 50+ identical tokens) src/ai.rs:3427 — src/ai.rs:3427-3448 | src/ai.rs:16023-16054 | src/code.rs:407-453 | src/code.rs:1508-1528 | src/web.rs:281-325 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) src/commit.rs:1984 — src/commit.rs:1984-2200 | src/commit.rs:2209-2368 | src/commit.rs:3909-4678 | src/commit.rs:7717-7919 | src/commit.rs:8959-9532 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) src/commit.rs:8449 — src/commit.rs:8449-8466 | src/commit.rs:8468-8485 | src/commit.rs:12226-12296 | src/commit.rs:12649-12725 | src/commit.rs:13490-13529 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) src/failure.rs:572 — src/failure.rs:572-590 | src/failure.rs:625-639 | src/jj.rs:1737-1748 | src/jj.rs:2394-2405 | src/vcs.rs:52-67 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
  • Members sharing a duplicated core (5 members, 50+ identical tokens) src/ext.rs:410 — src/ext.rs:410-424 | src/publish.rs:897-916 | src/publish.rs:918-934 | src/services.rs:506-520 | src/setup.rs:2941-2955 — These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times.
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×5
  • Duplicated block (18 lines × 2) src/code.rs:373 — src/code.rs:373-390 | src/repos.rs:128-145 — before extracting anything, compare `src/code.rs` and `src/repos.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 54 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (18 lines × 2) src/code.rs:1230 — src/code.rs:1230-1247 | src/code.rs:1266-1283 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (18 lines × 2) src/commit.rs:7837 — src/commit.rs:7837-7854 | src/commit.rs:9360-9377 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (18 lines × 2) src/explain_commits.rs:649 — src/explain_commits.rs:649-666 | src/explain_commits.rs:726-743 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (18 lines × 2) src/log_server.rs:401 — src/log_server.rs:401-418 | src/server.rs:301-318 — before extracting anything, compare `src/log_server.rs` and `src/server.rs` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (7–8 lines × 2) · ×5
  • Duplicated block (7–8 lines × 2) src/ask.rs:288 — src/ask.rs:288-295 | src/commit.rs:2952-2958 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (7–8 lines × 2) src/branches.rs:365 — src/branches.rs:365-371 | src/commit.rs:12550-12557 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (7–8 lines × 2) src/commit.rs:9469 — src/commit.rs:9469-9476 | src/commit.rs:9516-9522 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (7–8 lines × 2) src/push_hook.rs:216 — src/push_hook.rs:216-223 | src/recipe.rs:679-685 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (7–8 lines × 2) crates/flow_commit_scan/src/lib.rs:165 — crates/flow_commit_scan/src/lib.rs:165-171 | crates/flow_commit_scan/src/lib.rs:173-180 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×4
  • Duplicated block (21 lines × 2) src/ai.rs:14594 — src/ai.rs:14594-14614 | src/ai.rs:14670-14690 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (21 lines × 2) src/commit.rs:2013 — src/commit.rs:2013-2033 | src/commit.rs:3951-3971 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (21 lines × 2) src/ext.rs:364 — src/ext.rs:364-384 | src/jj.rs:3362-3382 — before extracting anything, compare `src/ext.rs` and `src/jj.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (21 lines × 2) src/tasks.rs:2875 — src/tasks.rs:2875-2895 | src/tasks.rs:2922-2942 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×4
  • Duplicated block (20 lines × 2) src/ai.rs:8070 — src/ai.rs:8070-8093 | src/ai.rs:8138-8157 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (20 lines × 2) src/deploy_setup.rs:753 — src/deploy_setup.rs:753-772 | src/env_setup.rs:670-689 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (20 lines × 2) src/log_server.rs:591 — src/log_server.rs:591-610 | src/server.rs:488-507 — before extracting anything, compare `src/log_server.rs` and `src/server.rs` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (20 lines × 2) src/commit.rs:12228 — src/commit.rs:12228-12248 | src/commit.rs:12651-12670 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (13 lines × 3) · ×4
  • Duplicated block (13 lines × 3) src/ai_tasks.rs:738 — src/ai_tasks.rs:738-750 | src/recipe.rs:412-424 | src/recipe.rs:444-456 — before extracting anything, compare `src/ai_tasks.rs` and `src/recipe.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (13 lines × 3) src/server.rs:835 — src/server.rs:835-847 | src/server.rs:878-890 | src/server.rs:923-935 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (13 lines × 3) src/sync.rs:5518 — src/sync.rs:5518-5530 | src/sync.rs:5545-5557 | src/upstream.rs:603-615 — before extracting anything, compare `src/sync.rs` and `src/upstream.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (13 lines × 3) src/changes.rs:710 — src/changes.rs:710-722 | src/env.rs:1047-1059 | src/storage.rs:494-506 — before extracting anything, compare `src/changes.rs` and `src/env.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (10 lines × 3) · ×4
  • Duplicated block (10 lines × 3) src/ai.rs:3993 — src/ai.rs:3993-4002 | src/ai.rs:13354-13363 | src/ai.rs:13912-13921 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (10 lines × 3) src/env.rs:1616 — src/env.rs:1616-1625 | src/env.rs:2539-2548 | src/env.rs:4043-4052 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (10 lines × 3) src/sync_plan.rs:1628 — src/sync_plan.rs:1628-1637 | src/sync_plan.rs:1732-1741 | src/updates.rs:1461-1470 — before extracting anything, compare `src/sync_plan.rs` and `src/updates.rs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (10 lines × 3) src/tasks.rs:2622 — src/tasks.rs:2622-2631 | src/tasks.rs:2886-2895 | src/tasks.rs:2933-2942 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (8–9 lines × 2) · ×4
  • Duplicated block (8–9 lines × 2) src/ask.rs:525 — src/ask.rs:525-533 | src/task_match.rs:40-47 — before extracting anything, compare `src/ask.rs` and `src/task_match.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 150 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8–9 lines × 2) src/ext.rs:330 — src/ext.rs:330-337 | src/jj.rs:3590-3598 — before extracting anything, compare `src/ext.rs` and `src/jj.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8–9 lines × 2) src/macos.rs:236 — src/macos.rs:236-243 | src/macos.rs:245-253 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (8–9 lines × 2) src/trace.rs:158 — src/trace.rs:158-165 | src/trace.rs:260-268 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D2 · Cognitive Complexity · ParallelRunner · ×3
  • ParallelRunner::run_task (cognitive 26) src/parallel.rs:209 — ParallelRunner::run_task has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (21 pts), loops 2 (4 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • ParallelRunner::strip_ansi (cognitive 16) src/parallel.rs:110 — ParallelRunner::strip_ansi has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (5 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • ParallelRunner::run (cognitive 16) src/parallel.rs:325 — ParallelRunner::run has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 4 (5 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D3 · God Classes · TooManyFields · ×3
  • TooManyFields: Config src/config.rs:21 — TooManyFields — 43 stored fields. The bar is 30 stored fields; this is 13 over it, 1.43× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
  • TooManyFields: CodexDoctorSnapshot src/ai.rs:8424 — TooManyFields — 36 stored fields. The bar is 30 stored fields; this is 6 over it, 1.20× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
  • TooManyFields: SessionDocPacket src/codex_session_docs.rs:56 — TooManyFields — 32 stored fields. The bar is 30 stored fields; this is 2 over it, 1.07× the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member — each reader then names only the group it uses.
D3 · God Classes · TooManyFunctions · ×3
  • TooManyFunctions: flowd::daemon src/daemon.rs:24 — TooManyFunctions — 34 free functions. The bar is 30 free functions; this is 4 over it, 1.13× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyFunctions: flowd::ssh src/ssh.rs:17 — TooManyFunctions — 33 free functions. The bar is 30 free functions; this is 3 over it, 1.10× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
  • TooManyFunctions: flowd::activity_log src/activity_log.rs:107 — TooManyFunctions — 32 free functions. The bar is 30 free functions; this is 2 over it, 1.07× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
D30 · Dependency Vulnerabilities · Medium vulnerability · ×3
  • REDACTED
  • REDACTED
  • REDACTED
D4 · Code Duplication · Duplicated block (26 lines × 2) · ×3
  • Duplicated block (26 lines × 2) src/code.rs:1014 — src/code.rs:1014-1039 | src/code.rs:1081-1106 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (26 lines × 2) src/log_server.rs:722 — src/log_server.rs:722-747 | src/server.rs:1260-1285 — before extracting anything, compare `src/log_server.rs` and `src/server.rs` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (26 lines × 2) src/ssh_keys.rs:744 — src/ssh_keys.rs:744-769 | src/ssh_keys.rs:772-797 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (22 lines × 2) · ×3
  • Duplicated block (22 lines × 2) src/commit.rs:1647 — src/commit.rs:1647-1668 | src/commit.rs:1673-1694 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (22 lines × 2) src/commit.rs:9635 — src/commit.rs:9635-9656 | src/commit.rs:11737-11758 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (22 lines × 2) src/tasks.rs:2455 — src/tasks.rs:2455-2476 | src/tasks.rs:2525-2546 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (17–18 lines × 2) · ×3
  • Duplicated block (17–18 lines × 2) src/ai_taskd.rs:517 — src/ai_taskd.rs:517-534 | src/ai_taskd.rs:544-560 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (17–18 lines × 2) src/env.rs:2524 — src/env.rs:2524-2540 | src/env.rs:3483-3500 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (17–18 lines × 2) src/env.rs:3215 — src/env.rs:3215-3231 | src/env.rs:3293-3310 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (12–13 lines × 3) · ×3
  • Duplicated block (12–13 lines × 3) src/commit.rs:2138 — src/commit.rs:2138-2150 | src/commit.rs:2310-2321 | src/commit.rs:4574-4585 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (12–13 lines × 3) src/jd.rs:594 — src/jd.rs:594-605 | src/jd.rs:608-619 | src/jd.rs:623-635 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (12–13 lines × 3) src/log_server.rs:758 — src/log_server.rs:758-769 | src/log_server.rs:803-814 | src/log_server.rs:857-869 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (9 lines × 3) · ×3
  • Duplicated block (9 lines × 3) src/skills.rs:1387 — src/skills.rs:1387-1396 | src/skills.rs:1402-1410 | src/skills.rs:1416-1424 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 3) src/macos.rs:692 — src/macos.rs:692-700 | src/macos.rs:715-723 | src/macos.rs:740-748 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (9 lines × 3) src/url_inspect.rs:440 — src/url_inspect.rs:440-448 | src/url_inspect.rs:578-586 | src/url_inspect.rs:722-730 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (7 lines × 3) · ×3
  • Duplicated block (7 lines × 3) src/ai.rs:7357 — src/ai.rs:7357-7363 | src/ai.rs:9885-9891 | src/ai.rs:9941-9947 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (7 lines × 3) src/server.rs:848 — src/server.rs:848-854 | src/server.rs:891-897 | src/server.rs:936-942 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (7 lines × 3) src/upstream.rs:281 — src/upstream.rs:281-287 | src/upstream.rs:395-401 | src/upstream.rs:444-450 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (6 lines × 4) · ×3
  • Duplicated block (6 lines × 4) src/branches.rs:368 — src/branches.rs:368-373 | src/ext.rs:403-408 | src/publish.rs:723-728 | src/push.rs:353-358 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once.
  • Duplicated block (6 lines × 4) src/commit.rs:2940 — src/commit.rs:2940-2945 | src/fish_install.rs:150-155 | src/fish_install.rs:162-167 | src/install.rs:956-961 — there are 4 copies across 3 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (6 lines × 4) src/commit.rs:5324 — src/commit.rs:5324-5329 | src/commit.rs:5502-5507 | src/commit.rs:5873-5878 | src/commit.rs:6513-6518 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D2 · Cognitive Complexity · flow_commit_scan · ×2
  • flow_commit_scan::scan_diff_for_secrets (cognitive 54) crates/flow_commit_scan/src/lib.rs:198 — flow_commit_scan::scan_diff_for_secrets has cognitive complexity 54 (threshold 15). Drivers by points: if/else 16 (44 pts), boolean chains 6, loops 2 (4 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
  • flow_commit_scan::generic_secret_assignment_is_false_positive (cognitive 19) crates/flow_commit_scan/src/lib.rs:163 — flow_commit_scan::generic_secret_assignment_is_false_positive has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D4 · Code Duplication · Near-duplicate member pair (43 shared lines) · ×2
  • Near-duplicate member pair (43 shared lines) src/commit.rs:824 — src/commit.rs:824-912 | src/commit.rs:1043-1150 — These two members are variants of one another: 43 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
  • Near-duplicate member pair (43 shared lines) src/commit.rs:914 — src/commit.rs:914-968 | src/commit.rs:1193-1247 — These two members are variants of one another: 43 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (27 shared lines) · ×2
  • Near-duplicate member pair (27 shared lines) src/traces.rs:156 — src/traces.rs:156-226 | src/traces.rs:234-282 — These two members are variants of one another: 27 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
  • Near-duplicate member pair (27 shared lines) src/skills.rs:310 — src/skills.rs:310-357 | src/tools.rs:53-100 — These two members are variants of one another: 27 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Duplicated block (34 lines × 2) · ×2
  • Duplicated block (34 lines × 2) src/commit.rs:2296 — src/commit.rs:2296-2329 | src/commit.rs:4560-4593 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (34 lines × 2) src/deploy.rs:3009 — src/deploy.rs:3009-3042 | src/deploy.rs:3054-3087 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (21–22 lines × 2) · ×2
  • Duplicated block (21–22 lines × 2) src/commit.rs:15666 — src/commit.rs:15666-15687 | src/commit.rs:15726-15746 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (21–22 lines × 2) src/deps.rs:833 — src/deps.rs:833-853 | src/deps.rs:871-892 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (19–21 lines × 2) · ×2
  • Duplicated block (19–21 lines × 2) src/repos.rs:254 — src/repos.rs:254-272 | src/repos.rs:282-302 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (19–21 lines × 2) src/upstream.rs:292 — src/upstream.rs:292-312 | src/upstream.rs:404-422 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (20–21 lines × 2) · ×2
  • Duplicated block (20–21 lines × 2) src/sync.rs:2013 — src/sync.rs:2013-2033 | src/sync.rs:2264-2283 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (20–21 lines × 2) src/workflow.rs:542 — src/workflow.rs:542-562 | src/workflow.rs:662-681 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (18–19 lines × 2) · ×2
  • Duplicated block (18–19 lines × 2) src/commit.rs:3300 — src/commit.rs:3300-3317 | src/invariants.rs:114-132 — before extracting anything, compare `src/commit.rs` and `src/invariants.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (18–19 lines × 2) src/sync_plan.rs:1390 — src/sync_plan.rs:1390-1407 | src/updates.rs:1304-1322 — before extracting anything, compare `src/sync_plan.rs` and `src/updates.rs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (14–16 lines × 2) · ×2
  • Duplicated block (14–16 lines × 2) src/ai.rs:4487 — src/ai.rs:4487-4502 | src/ai.rs:5552-5565 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (14–16 lines × 2) src/env.rs:2279 — src/env.rs:2279-2292 | src/env.rs:3353-3368 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (15–16 lines × 2) · ×2
  • Duplicated block (15–16 lines × 2) src/ai.rs:14255 — src/ai.rs:14255-14270 | src/commit.rs:11927-11941 — before extracting anything, compare `src/ai.rs` and `src/commit.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (15–16 lines × 2) src/upgrade.rs:186 — src/upgrade.rs:186-201 | src/upgrade.rs:222-236 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (14–15 lines × 2) · ×2
  • Duplicated block (14–15 lines × 2) src/agents.rs:1045 — src/agents.rs:1045-1058 | src/agents.rs:1092-1106 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (14–15 lines × 2) src/help_search.rs:129 — src/help_search.rs:129-143 | src/help_search.rs:198-211 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (14 lines × 3) · ×2
  • Duplicated block (14 lines × 3) src/ai.rs:1642 — src/ai.rs:1642-1655 | src/ai.rs:1726-1739 | src/ai.rs:14072-14085 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (14 lines × 3) src/install.rs:903 — src/install.rs:903-916 | src/services.rs:484-497 | src/setup.rs:2966-2979 — before extracting anything, compare `src/services.rs` and `src/setup.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (12–14 lines × 3) · ×2
  • Duplicated block (12–14 lines × 3) src/ai.rs:3022 — src/ai.rs:3022-3033 | src/ai.rs:3082-3095 | src/ai.rs:15818-15829 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (12–14 lines × 3) src/env.rs:325 — src/env.rs:325-336 | src/env.rs:352-363 | src/env.rs:413-426 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (12 lines × 5) · ×2
  • Duplicated block (12 lines × 5) src/commit.rs:2152 — src/commit.rs:2152-2163 | src/commit.rs:2322-2333 | src/commit.rs:4586-4597 | src/commit.rs:7838-7849 | src/commit.rs:9361-9372 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (12 lines × 5) src/deps.rs:167 — src/deps.rs:167-178 | src/env.rs:1352-1363 | src/services.rs:451-462 | src/storage.rs:508-519 | src/todo.rs:584-595 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 5 call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (12 lines × 4) · ×2
  • Duplicated block (12 lines × 4) src/log_server.rs:493 — src/log_server.rs:493-504 | src/log_server.rs:521-532 | src/server.rs:391-402 | src/server.rs:419-430 — before extracting anything, compare `src/log_server.rs` and `src/server.rs` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (12 lines × 4) src/deploy.rs:863 — src/deploy.rs:863-874 | src/project_snapshot.rs:327-338 | src/publish.rs:659-670 | src/registry.rs:578-589 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (10–12 lines × 4) · ×2
  • Duplicated block (10–12 lines × 4) src/publish.rs:900 — src/publish.rs:900-911 | src/publish.rs:921-932 | src/services.rs:509-518 | src/setup.rs:2944-2953 — before extracting anything, compare `src/services.rs` and `src/setup.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (10–12 lines × 4) src/sync_plan.rs:1042 — src/sync_plan.rs:1042-1051 | src/sync_plan.rs:1395-1406 | src/updates.rs:1110-1119 | src/updates.rs:1310-1321 — before extracting anything, compare `src/sync_plan.rs` and `src/updates.rs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (12 lines × 3) · ×2
  • Duplicated block (12 lines × 3) src/deploy.rs:2236 — src/deploy.rs:2236-2247 | src/deploy.rs:2424-2435 | src/setup.rs:1185-1196 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (12 lines × 3) src/workflow.rs:796 — src/workflow.rs:796-807 | src/workflow.rs:835-846 | src/workflow.rs:992-1003 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (9–12 lines × 2) · ×2
  • Duplicated block (9–12 lines × 2) src/commit.rs:845 — src/commit.rs:845-853 | src/commit.rs:1077-1088 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9–12 lines × 2) src/commit.rs:895 — src/commit.rs:895-903 | src/commit.rs:1094-1105 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (11–12 lines × 2) · ×2
  • Duplicated block (11–12 lines × 2) src/commit.rs:859 — src/commit.rs:859-869 | src/commit.rs:1111-1122 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (11–12 lines × 2) src/todo.rs:463 — src/todo.rs:463-474 | src/todo.rs:504-514 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (11 lines × 4) · ×2
  • Duplicated block (11 lines × 4) src/changes.rs:705 — src/changes.rs:705-715 | src/commit.rs:8574-8584 | src/env.rs:1042-1052 | src/sync.rs:2547-2557 — before extracting anything, compare `src/changes.rs` and `src/env.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (11 lines × 4) src/commit.rs:2303 — src/commit.rs:2303-2313 | src/commit.rs:4567-4577 | src/commit.rs:7820-7830 | src/commit.rs:9343-9353 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (9–11 lines × 2) · ×2
  • Duplicated block (9–11 lines × 2) src/commit.rs:5995 — src/commit.rs:5995-6003 | src/commit.rs:12256-12266 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (9–11 lines × 2) src/commit.rs:11550 — src/commit.rs:11550-11560 | src/repos.rs:102-110 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (9–10 lines × 4) · ×2
  • Duplicated block (9–10 lines × 4) src/ai.rs:9804 — src/ai.rs:9804-9812 | src/ai.rs:9821-9829 | src/codex_session_docs.rs:973-981 | src/usage.rs:604-613 — before extracting anything, compare `src/ai.rs` and `src/codex_session_docs.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (9–10 lines × 4) src/ai.rs:14154 — src/ai.rs:14154-14163 | src/commit.rs:7450-7459 | src/failure.rs:744-753 | src/sync.rs:3107-3115 — before extracting anything, compare `src/ai.rs` and `src/commit.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (9–10 lines × 2) · ×2
  • Duplicated block (9–10 lines × 2) src/code.rs:67 — src/code.rs:67-75 | src/tasks.rs:743-752 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
  • Duplicated block (9–10 lines × 2) src/setup.rs:2483 — src/setup.rs:2483-2492 | src/setup.rs:2668-2676 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (8–9 lines × 3) · ×2
  • Duplicated block (8–9 lines × 3) src/code.rs:410 — src/code.rs:410-418 | src/code.rs:1509-1517 | src/web.rs:287-294 — there are 3 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart.
  • Duplicated block (8–9 lines × 3) src/commit.rs:12573 — src/commit.rs:12573-12581 | src/ext.rs:399-406 | src/repos.rs:1514-1521 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 3 call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (8 lines × 4) · ×2
  • Duplicated block (8 lines × 4) src/explain_commits.rs:105 — src/explain_commits.rs:105-112 | src/sync.rs:5452-5459 | src/sync.rs:5478-5485 | src/upstream.rs:588-595 — before extracting anything, compare `src/sync.rs` and `src/upstream.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
  • Duplicated block (8 lines × 4) src/config.rs:2734 — src/config.rs:2734-2741 | src/config.rs:2753-2760 | src/setup.rs:3033-3040 | src/workflow.rs:1271-1278 — there are 4 copies across 3 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart.
D4 · Code Duplication · Duplicated block (7 lines × 4) · ×2
  • Duplicated block (7 lines × 4) src/commit.rs:8456 — src/commit.rs:8456-8462 | src/commit.rs:8475-8481 | src/commit.rs:12280-12286 | src/commit.rs:12692-12698 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
  • Duplicated block (7 lines × 4) src/deploy.rs:657 — src/deploy.rs:657-663 | src/fish_install.rs:89-95 | src/push_hook.rs:96-102 | src/setup.rs:1233-1239 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (6–7 lines × 2) · ×2
  • Duplicated block (6–7 lines × 2) src/server.rs:589 — src/server.rs:589-595 | src/server.rs:722-727 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
  • Duplicated block (6–7 lines × 2) src/skills.rs:479 — src/skills.rs:479-484 | src/skills.rs:1293-1299 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
AX7 · Slice cohesion · Cross-slice coupling · ×1
  • Cross-slice coupling: flowd → seq_client src/ai_everruns.rs:1040 — `SeqBridge` (slice 'flowd') depends on `SeqClient` from slice 'seq_client'.
D1 · Cyclomatic Complexity · flow_commit_scan · ×1
  • flow_commit_scan::scan_diff_for_secrets (cyclomatic 24) crates/flow_commit_scan/src/lib.rs:198 — flow_commit_scan::scan_diff_for_secrets has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EverrunsApi · ×1
  • EverrunsApi::read_sse_batch (cyclomatic 17) src/ai_everruns.rs:894 — EverrunsApi::read_sse_batch has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · OptionsConfig · ×1
  • OptionsConfig::merge (cyclomatic 17) src/config.rs:1361 — OptionsConfig::merge has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · bench-moonbit-rust-ffi.main (cyclomatic 16) · ×1
  • bench-moonbit-rust-ffi.main (cyclomatic 16) scripts/bench-moonbit-rust-ffi.py:44 — bench-moonbit-rust-ffi.main has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D1 · Cyclomatic Complexity · build_rl_runtime_dataset._normalize_seq (cyclomatic 16) · ×1
  • build_rl_runtime_dataset._normalize_seq (cyclomatic 16) scripts/build_rl_runtime_dataset.py:226 — build_rl_runtime_dataset._normalize_seq has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · build_rl_runtime_dataset._build_report (cyclomatic 16) · ×1
  • build_rl_runtime_dataset._build_report (cyclomatic 16) scripts/build_rl_runtime_dataset.py:388 — build_rl_runtime_dataset._build_report has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D16 · Bus Factor · bus factor 1 · ×1
  • bus factor 1 — one contributor carries this repository — 3 contributor(s) have commits in this repository (automation and bot accounts excluded), but the commits of a single one of them cover most of its history — 90% of the 468 commit(s) sampled — so the number of people who actually carry it is 1. This is not the ambient state of a solo project: there ARE other contributors, and if the one who carries the repository becomes unavailable, the knowledge behind most of its history goes with them. Spread the next changes deliberately — have a second contributor review or pair on them — and write down the parts only one person can currently change.
D2 · Cognitive Complexity · PrEditService · ×1
  • PrEditService::run_loop (cognitive 35) src/pr_edit.rs:179 — PrEditService::run_loop has cognitive complexity 35 (threshold 15). Drivers by points: if/else 10 (26 pts), loops 3 (7 pts), match/switch 1 (2 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · build_rl_runtime_dataset._normalize_seq (cognitive 27) · ×1
  • build_rl_runtime_dataset._normalize_seq (cognitive 27) scripts/build_rl_runtime_dataset.py:226 — build_rl_runtime_dataset._normalize_seq has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 6, error handling 1 (4 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · designer_memwatch.select_workspace_processes (cognitive 23) · ×1
  • designer_memwatch.select_workspace_processes (cognitive 23) scripts/designer_memwatch.py:471 — designer_memwatch.select_workspace_processes has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 4 (5 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · EverrunsApi · ×1
  • EverrunsApi::read_sse_batch (cognitive 22) src/ai_everruns.rs:894 — EverrunsApi::read_sse_batch has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · rl_signal_summary.main (cognitive 21) · ×1
  • rl_signal_summary.main (cognitive 21) scripts/rl_signal_summary.py:19 — rl_signal_summary.main has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 4 (6 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · run-health-checks.runGiteditShareCheck (cognitive 19) · ×1
  • run-health-checks.runGiteditShareCheck (cognitive 19) scripts/run-health-checks.mjs:158 — run-health-checks.runGiteditShareCheck has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 6 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · build_rl_runtime_dataset._normalize_flow (cognitive 18) · ×1
  • build_rl_runtime_dataset._normalize_flow (cognitive 18) scripts/build_rl_runtime_dataset.py:115 — build_rl_runtime_dataset._normalize_flow has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 3 (7 pts), ternaries 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · bench-moonbit-rust-ffi.main (cognitive 17) · ×1
  • bench-moonbit-rust-ffi.main (cognitive 17) scripts/bench-moonbit-rust-ffi.py:44 — bench-moonbit-rust-ffi.main has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), loops 3, boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · build_rl_runtime_dataset._build_report (cognitive 17) · ×1
  • build_rl_runtime_dataset._build_report (cognitive 17) scripts/build_rl_runtime_dataset.py:388 — build_rl_runtime_dataset._build_report has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 5, ternaries 3 (4 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth — checks laid out side by side rather than stacked — so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition.
D2 · Cognitive Complexity · OptionsConfig · ×1
  • OptionsConfig::merge (cognitive 16) src/config.rs:1361 — OptionsConfig::merge has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · ci_blacksmith.rewrite_workflow (cognitive 16) · ×1
  • ci_blacksmith.rewrite_workflow (cognitive 16) scripts/ci_blacksmith.py:45 — ci_blacksmith.rewrite_workflow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · designer_memwatch.main (cognitive 16) · ×1
  • designer_memwatch.main (cognitive 16) scripts/designer_memwatch.py:112 — designer_memwatch.main has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D22 · Internal API Consistency · Three methods in the same type perform the exact same arithmetic operation (addition of two u64s) with identical signatures. The naming suggests different implementation strategies (host boundary, inline, function), but for a public API consumer, these are redundant operations. · ×1
  • Three methods in the same type perform the exact same arithmetic operation (addition of two u64s) with identical signatures. The naming suggests different implementation strategies (host boundary, inline, function), but for a public API consumer, these are redundant operations. — Remove `rust_inline_add` and `rust_fn_add`, keeping only `flow_host_add_u64` as the canonical addition operation, or rename them to reflect distinct semantic purposes if they are not truly identical. (signatures: flow_ffi_host_boundary.flow_host_add_u64(a: u64, b: u64): u64 | flow_ffi_host_boundary.rust_inline_add(a: u64, b: u64): u64 | flow_ffi_host_boundary.rust_fn_add(a: u64, b: u64): u64)
D22 · Internal API Consistency · Two methods on `SeqClient` appear to perform the same core action (sending an RPC request). `call_ok` likely implies a wrapper that asserts success or handles errors differently, but without distinct return types or clear semantic separation in the name (e.g., `call_async` vs `call_sync`), it creates ambiguity about when to use which. · ×1
  • Two methods on `SeqClient` appear to perform the same core action (sending an RPC request). `call_ok` likely implies a wrapper that asserts success or handles errors differently, but without distinct return types or clear semantic separation in the name (e.g., `call_async` vs `call_sync`), it creates ambiguity about when to use which. — Rename `call_ok` to something that indicates its specific behavior (e.g., `call_and_assert_ok` or `call_blocking`) or remove it if `call` is sufficient for all use cases. (signatures: seq_client.SeqClient.call(request: RpcRequest): Result | seq_client.SeqClient.call_ok(request: RpcRequest): Result)
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D29 · Static Analysis (SAST) · REDACTED · ×1
  • REDACTED
D3 · God Classes · ClassTooLong · ×1
  • ClassTooLong: Commands src/cli.rs:68 — ClassTooLong — 452 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code — #[cfg(test)] modules and bare #[test] functions — not counted), 0 methods. The bar is 400 significant lines; this is 52 over it, 1.13× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
D30 · Dependency Vulnerabilities · Medium advisory (unmaintained) · ×1
  • REDACTED
D35 · Change Coupling · Change coupling · ×1
  • Change coupling: cli.rs ↔ config.rs src/cli.rs — `src/cli.rs` and `src/config.rs` change together 57% of the time (37 of the 65 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well — a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 37 shared commits counted here, the most recent 3 are `a47f2aaa` feat(codex): add daemonized runtime skills and scorecards; `5d649f27` Harden env storage and add Codex URL resolution; `22c55336` feat: add jj workflow status and local env improvements — run `git show` on any of them.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D4 · Code Duplication · Near-duplicate member family (4 members, 30 shared lines) · ×1
  • Near-duplicate member family (4 members, 30 shared lines) src/ai.rs:14150 — src/ai.rs:14150-14206 | src/commit.rs:7445-7495 | src/failure.rs:739-795 | src/sync.rs:3102-3149 — These 4 members are variants of one another: a block of 30 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times.
D4 · Code Duplication · Near-duplicate member family (3 members, 63 shared lines) · ×1
  • Near-duplicate member family (3 members, 63 shared lines) src/ai.rs:3942 — src/ai.rs:3942-4091 | src/ai.rs:13286-13429 | src/ai.rs:13844-13990 — These 3 members are variants of one another: a block of 63 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times.
D4 · Code Duplication · Near-duplicate member pair (155 shared lines) · ×1
  • Near-duplicate member pair (155 shared lines) src/deploy_setup.rs:398 — src/deploy_setup.rs:398-619 | src/env_setup.rs:359-544 — These two members are variants of one another: 155 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (88 shared lines) · ×1
  • Near-duplicate member pair (88 shared lines) src/commit.rs:5947 — src/commit.rs:5947-6135 | src/commit.rs:6143-6282 — These two members are variants of one another: 88 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Near-duplicate member pair (34 shared lines) · ×1
  • Near-duplicate member pair (34 shared lines) src/commit.rs:15269 — src/commit.rs:15269-15326 | src/commit.rs:15339-15444 — These two members are variants of one another: 34 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members' grain — factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice.
D4 · Code Duplication · Edited copy of a member (37 corresponding lines) · ×1
  • Edited copy of a member (37 corresponding lines) src/deploy.rs:2992 — src/deploy.rs:2992-3042 | src/deploy.rs:3044-3087 — These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication · Members sharing a duplicated core (26 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (26 members, 50+ identical tokens) src/log_server.rs:375 — src/log_server.rs:375-396 | src/log_server.rs:398-418 | src/log_server.rs:422-439 | src/log_server.rs:441-460 | src/log_server.rs:462-481 | src/log_server.rs:485-509 | src/log_server.rs:513-537 | src/log_server.rs:539-555 | src/log_server.rs:569-586 | src/log_server.rs:588-610 | src/log_server.rs:615-634 | src/log_server.rs:754-769 | src/log_server.rs:799-814 | src/log_server.rs:830-869 | src/server.rs:275-296 | src/server.rs:298-318 | src/server.rs:322-339 | src/server.rs:341-360 | src/server.rs:362-381 | src/server.rs:383-407 | src/server.rs:411-435 | src/server.rs:437-453 | src/server.rs:467-483 | src/server.rs:485-507 | src/server.rs:509-529 | src/server.rs:534-553 — These 26 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 26 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 26 times.
D4 · Code Duplication · Members sharing a duplicated core (9 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (9 members, 50+ identical tokens) src/agents.rs:219 — src/agents.rs:219-256 | src/agents.rs:390-420 | src/agents.rs:494-532 | src/ai.rs:4094-4124 | src/code.rs:483-511 | src/commits.rs:275-328 | src/deps.rs:713-744 | src/palette.rs:33-73 | src/repos.rs:320-349 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
D4 · Code Duplication · Duplicated block (115 lines × 2) · ×1
  • Duplicated block (115 lines × 2) src/ai_everruns.rs:208 — src/ai_everruns.rs:208-322 | src/ai_everruns.rs:360-474 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (80 lines × 2) · ×1
  • Duplicated block (80 lines × 2) src/setup.rs:1518 — src/setup.rs:1518-1597 | src/setup.rs:1622-1701 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (74–79 lines × 2) · ×1
  • Duplicated block (74–79 lines × 2) src/ask.rs:562 — src/ask.rs:562-635 | src/task_match.rs:302-380 — before extracting anything, compare `src/ask.rs` and `src/task_match.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 150 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (71 lines × 2) · ×1
  • Duplicated block (71 lines × 2) src/deploy_setup.rs:315 — src/deploy_setup.rs:315-385 | src/env_setup.rs:276-346 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (62 lines × 2) · ×1
  • Duplicated block (62 lines × 2) src/sync_plan.rs:1242 — src/sync_plan.rs:1242-1303 | src/updates.rs:1214-1275 — before extracting anything, compare `src/sync_plan.rs` and `src/updates.rs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (58 lines × 2) · ×1
  • Duplicated block (58 lines × 2) src/deploy_setup.rs:622 — src/deploy_setup.rs:622-679 | src/env_setup.rs:547-604 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (56 lines × 2) · ×1
  • Duplicated block (56 lines × 2) src/ai.rs:564 — src/ai.rs:564-619 | src/ai.rs:812-867 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (48 lines × 2) · ×1
  • Duplicated block (48 lines × 2) src/commit.rs:6088 — src/commit.rs:6088-6135 | src/commit.rs:6235-6282 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (43–46 lines × 2) · ×1
  • Duplicated block (43–46 lines × 2) src/tasks.rs:2407 — src/tasks.rs:2407-2452 | src/tasks.rs:2480-2522 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (39–42 lines × 2) · ×1
  • Duplicated block (39–42 lines × 2) src/commit.rs:11570 — src/commit.rs:11570-11611 | src/pr_edit.rs:576-614 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (39–41 lines × 2) · ×1
  • Duplicated block (39–41 lines × 2) src/deploy_setup.rs:448 — src/deploy_setup.rs:448-488 | src/env_setup.rs:386-424 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (39–40 lines × 2) · ×1
  • Duplicated block (39–40 lines × 2) src/deploy_setup.rs:491 — src/deploy_setup.rs:491-530 | src/env_setup.rs:426-464 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (30–40 lines × 2) · ×1
  • Duplicated block (30–40 lines × 2) src/sync_plan.rs:1147 — src/sync_plan.rs:1147-1176 | src/updates.rs:981-1020 — before extracting anything, compare `src/sync_plan.rs` and `src/updates.rs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (39 lines × 2) · ×1
  • Duplicated block (39 lines × 2) src/ai.rs:13379 — src/ai.rs:13379-13417 | src/ai.rs:13936-13974 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (32–38 lines × 2) · ×1
  • Duplicated block (32–38 lines × 2) src/ai.rs:1690 — src/ai.rs:1690-1721 | src/ai.rs:1792-1829 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (35–37 lines × 3) · ×1
  • Duplicated block (35–37 lines × 3) src/ai.rs:15985 — src/ai.rs:15985-16021 | src/ai.rs:16092-16126 | src/ai.rs:16136-16170 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (36 lines × 3) · ×1
  • Duplicated block (36 lines × 3) src/publish.rs:937 — src/publish.rs:937-972 | src/services.rs:523-558 | src/setup.rs:2982-3017 — before extracting anything, compare `src/services.rs` and `src/setup.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (36 lines × 2) · ×1
  • Duplicated block (36 lines × 2) src/env.rs:552 — src/env.rs:552-587 | src/ssh_keys.rs:539-574 — before extracting anything, compare `src/env.rs` and `src/ssh_keys.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (31–33 lines × 3) · ×1
  • Duplicated block (31–33 lines × 3) src/ai.rs:4006 — src/ai.rs:4006-4038 | src/ai.rs:13367-13397 | src/ai.rs:13924-13954 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (27–32 lines × 2) · ×1
  • Duplicated block (27–32 lines × 2) src/ask.rs:654 — src/ask.rs:654-680 | src/task_match.rs:430-461 — before extracting anything, compare `src/ask.rs` and `src/task_match.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 150 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (31 lines × 2) · ×1
  • Duplicated block (31 lines × 2) src/deploy_setup.rs:686 — src/deploy_setup.rs:686-716 | src/env_setup.rs:611-641 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (29–31 lines × 2) · ×1
  • Duplicated block (29–31 lines × 2) src/sync.rs:5571 — src/sync.rs:5571-5601 | src/sync.rs:5653-5681 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (28–30 lines × 2) · ×1
  • Duplicated block (28–30 lines × 2) src/ai.rs:15243 — src/ai.rs:15243-15270 | src/ai.rs:15304-15333 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (29 lines × 2) · ×1
  • Duplicated block (29 lines × 2) src/commit.rs:5952 — src/commit.rs:5952-5980 | src/commit.rs:6144-6172 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (28 lines × 3) · ×1
  • Duplicated block (28 lines × 3) src/deploy_setup.rs:926 — src/deploy_setup.rs:926-953 | src/deploy_setup.rs:979-1006 | src/env_setup.rs:839-866 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (27–28 lines × 2) · ×1
  • Duplicated block (27–28 lines × 2) src/codex_memory.rs:1030 — src/codex_memory.rs:1030-1056 | src/codex_memory.rs:1423-1450 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (28 lines × 2) · ×1
  • Duplicated block (28 lines × 2) src/log_server.rs:692 — src/log_server.rs:692-719 | src/server.rs:1229-1256 — before extracting anything, compare `src/log_server.rs` and `src/server.rs` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (27 lines × 2) · ×1
  • Duplicated block (27 lines × 2) src/deploy.rs:393 — src/deploy.rs:393-419 | src/deploy.rs:532-558 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (23–26 lines × 2) · ×1
  • Duplicated block (23–26 lines × 2) src/ai.rs:13846 — src/ai.rs:13846-13871 | src/ai.rs:14000-14022 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (25–26 lines × 2) · ×1
  • Duplicated block (25–26 lines × 2) src/ai.rs:14156 — src/ai.rs:14156-14181 | src/failure.rs:746-770 — before extracting anything, compare `src/ai.rs` and `src/failure.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (22–25 lines × 3) · ×1
  • Duplicated block (22–25 lines × 3) src/ai.rs:3967 — src/ai.rs:3967-3991 | src/ai.rs:13331-13352 | src/ai.rs:13889-13910 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (24–25 lines × 3) · ×1
  • Duplicated block (24–25 lines × 3) src/commit.rs:2107 — src/commit.rs:2107-2130 | src/commit.rs:2281-2304 | src/commit.rs:4544-4568 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (24 lines × 4) · ×1
  • Duplicated block (24 lines × 4) src/deploy_setup.rs:926 — src/deploy_setup.rs:926-949 | src/deploy_setup.rs:979-1002 | src/discover.rs:164-187 | src/env_setup.rs:839-862 — before extracting anything, compare `src/deploy_setup.rs` and `src/env_setup.rs` as WHOLE FILES: this scan already matched 27 separate duplicated blocks between them, totalling at least 552 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (24 lines × 3) · ×1
  • Duplicated block (24 lines × 3) src/setup.rs:1590 — src/setup.rs:1590-1613 | src/setup.rs:1694-1717 | src/setup.rs:1787-1810 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (19–24 lines × 2) · ×1
  • Duplicated block (19–24 lines × 2) src/upstream.rs:263 — src/upstream.rs:263-286 | src/upstream.rs:382-400 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (21–23 lines × 2) · ×1
  • Duplicated block (21–23 lines × 2) src/commit.rs:7452 — src/commit.rs:7452-7474 | src/sync.rs:3109-3129 — before extracting anything, compare `src/commit.rs` and `src/sync.rs` as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 152 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (23 lines × 2) · ×1
  • Duplicated block (23 lines × 2) src/commit.rs:13935 — src/commit.rs:13935-13957 | src/commit.rs:14239-14261 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (21–22 lines × 4) · ×1
  • Duplicated block (21–22 lines × 4) src/ai.rs:14171 — src/ai.rs:14171-14192 | src/commit.rs:7465-7485 | src/failure.rs:761-781 | src/sync.rs:3120-3140 — before extracting anything, compare `src/ai.rs` and `src/commit.rs` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (18–22 lines × 2) · ×1
  • Duplicated block (18–22 lines × 2) src/commit.rs:12409 — src/commit.rs:12409-12426 | src/commit.rs:12432-12453 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (17–20 lines × 2) · ×1
  • Duplicated block (17–20 lines × 2) src/sync.rs:5771 — src/sync.rs:5771-5787 | src/upstream.rs:621-640 — before extracting anything, compare `src/sync.rs` and `src/upstream.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (15–17 lines × 8) · ×1
  • Duplicated block (15–17 lines × 8) src/agents.rs:395 — src/agents.rs:395-411 | src/agents.rs:501-515 | src/ai.rs:4100-4114 | src/code.rs:488-502 | src/commits.rs:293-308 | src/deps.rs:721-735 | src/palette.rs:40-54 | src/repos.rs:325-339 — before extracting anything, compare `src/agents.rs` and `src/palette.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (15–17 lines × 3) · ×1
  • Duplicated block (15–17 lines × 3) src/log_server.rs:782 — src/log_server.rs:782-796 | src/log_server.rs:885-899 | src/log_server.rs:917-933 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (16–17 lines × 2) · ×1
  • Duplicated block (16–17 lines × 2) src/commits.rs:65 — src/commits.rs:65-81 | src/commits.rs:99-114 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (15–17 lines × 2) · ×1
  • Duplicated block (15–17 lines × 2) src/daemon.rs:221 — src/daemon.rs:221-237 | src/supervisor.rs:1206-1220 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (16 lines × 3) · ×1
  • Duplicated block (16 lines × 3) src/ai.rs:2914 — src/ai.rs:2914-2929 | src/ai.rs:2971-2986 | src/ai.rs:3410-3425 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (15 lines × 4) · ×1
  • Duplicated block (15 lines × 4) src/commit.rs:2154 — src/commit.rs:2154-2168 | src/commit.rs:2324-2338 | src/commit.rs:7840-7854 | src/commit.rs:9363-9377 — all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (12–15 lines × 3) · ×1
  • Duplicated block (12–15 lines × 3) src/ai.rs:1698 — src/ai.rs:1698-1709 | src/ai.rs:1802-1815 | src/ai.rs:1893-1907 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (14–15 lines × 3) · ×1
  • Duplicated block (14–15 lines × 3) src/ask.rs:638 — src/ask.rs:638-651 | src/task_match.rs:383-396 | src/tasks.rs:1968-1982 — before extracting anything, compare `src/ask.rs` and `src/task_match.rs` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 150 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (13–15 lines × 2) · ×1
  • Duplicated block (13–15 lines × 2) src/ai.rs:3010 — src/ai.rs:3010-3022 | src/ai.rs:3068-3082 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (3–15 lines × 3) · ×1
  • Duplicated block (3–15 lines × 3) src/archive.rs:111 — src/archive.rs:111-113 | src/code.rs:851-865 | src/ext.rs:196-210 — before extracting anything, compare `src/archive.rs` and `src/code.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (3–14 lines × 5) · ×1
  • Duplicated block (3–14 lines × 5) src/commit.rs:5330 — src/commit.rs:5330-5332 | src/commit.rs:5881-5894 | src/commit.rs:6083-6095 | src/commit.rs:6230-6242 | src/commit.rs:6521-6534 — all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (13–14 lines × 3) · ×1
  • Duplicated block (13–14 lines × 3) src/jd.rs:533 — src/jd.rs:533-546 | src/jd.rs:551-563 | src/jd.rs:576-589 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (13–14 lines × 2) · ×1
  • Duplicated block (13–14 lines × 2) src/commit.rs:5104 — src/commit.rs:5104-5117 | src/skills.rs:1158-1170 — before extracting anything, compare `src/commit.rs` and `src/skills.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 57 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (12–14 lines × 2) · ×1
  • Duplicated block (12–14 lines × 2) src/env.rs:2295 — src/env.rs:2295-2306 | src/env.rs:2349-2362 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (11–13 lines × 3) · ×1
  • Duplicated block (11–13 lines × 3) src/ai.rs:4569 — src/ai.rs:4569-4581 | src/ai_project_manifest.rs:225-235 | src/codex_session_docs.rs:1763-1773 — before extracting anything, compare `src/ai.rs` and `src/codex_session_docs.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (12–13 lines × 2) · ×1
  • Duplicated block (12–13 lines × 2) src/env.rs:2924 — src/env.rs:2924-2935 | src/env.rs:2951-2963 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (11–12 lines × 4) · ×1
  • Duplicated block (11–12 lines × 4) crates/flow_commit_scan/src/lib.rs:201 — crates/flow_commit_scan/src/lib.rs:201-212 | src/commit.rs:251-262 | src/commit.rs:548-559 | src/commit.rs:6618-6628 — there are 4 copies across 2 file(s) — more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart.
D4 · Code Duplication · Duplicated block (11–12 lines × 3) · ×1
  • Duplicated block (11–12 lines × 3) src/commit.rs:13324 — src/commit.rs:13324-13335 | src/commit.rs:13406-13416 | src/commit.rs:13680-13690 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (10–12 lines × 2) · ×1
  • Duplicated block (10–12 lines × 2) src/push.rs:309 — src/push.rs:309-318 | src/sync.rs:5357-5368 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (10–11 lines × 4) · ×1
  • Duplicated block (10–11 lines × 4) src/ai.rs:4568 — src/ai.rs:4568-4578 | src/ai.rs:12748-12757 | src/ai_project_manifest.rs:224-233 | src/codex_session_docs.rs:1762-1771 — before extracting anything, compare `src/ai.rs` and `src/codex_session_docs.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (10–11 lines × 3) · ×1
  • Duplicated block (10–11 lines × 3) src/commit.rs:7447 — src/commit.rs:7447-7457 | src/failure.rs:741-751 | src/sync.rs:3104-3113 — before extracting anything, compare `src/commit.rs` and `src/failure.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (8–11 lines × 2) · ×1
  • Duplicated block (8–11 lines × 2) src/failure.rs:577 — src/failure.rs:577-587 | src/failure.rs:630-637 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (10 lines × 6) · ×1
  • Duplicated block (10 lines × 6) src/commit.rs:928 — src/commit.rs:928-937 | src/commit.rs:940-949 | src/commit.rs:952-961 | src/commit.rs:1207-1216 | src/commit.rs:1219-1228 | src/commit.rs:1231-1240 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (9 lines × 20) · ×1
  • Duplicated block (9 lines × 20) src/log_server.rs:383 — src/log_server.rs:383-391 | src/log_server.rs:405-413 | src/log_server.rs:426-434 | src/log_server.rs:447-455 | src/log_server.rs:468-476 | src/log_server.rs:542-550 | src/log_server.rs:573-581 | src/log_server.rs:597-605 | src/log_server.rs:621-629 | src/log_server.rs:801-809 | src/server.rs:283-291 | src/server.rs:305-313 | src/server.rs:326-334 | src/server.rs:347-355 | src/server.rs:368-376 | src/server.rs:440-448 | src/server.rs:470-478 | src/server.rs:494-502 | src/server.rs:516-524 | src/server.rs:540-548 — before extracting anything, compare `src/log_server.rs` and `src/server.rs` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (9 lines × 9) · ×1
  • Duplicated block (9 lines × 9) src/env.rs:1449 — src/env.rs:1449-1457 | src/env.rs:1483-1491 | src/env.rs:1534-1542 | src/env.rs:1573-1581 | src/env.rs:1619-1627 | src/env.rs:1663-1671 | src/env.rs:1791-1799 | src/env.rs:2542-2550 | src/env.rs:4046-4054 — all 9 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (6–9 lines × 2) · ×1
  • Duplicated block (6–9 lines × 2) src/commit.rs:15278 — src/commit.rs:15278-15283 | src/commit.rs:15376-15384 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
D4 · Code Duplication · Duplicated block (8 lines × 9) · ×1
  • Duplicated block (8 lines × 9) src/agents.rs:228 — src/agents.rs:228-235 | src/agents.rs:394-401 | src/agents.rs:500-507 | src/ai.rs:4099-4106 | src/code.rs:487-494 | src/commits.rs:292-299 | src/deps.rs:720-727 | src/palette.rs:39-46 | src/repos.rs:324-331 — before extracting anything, compare `src/agents.rs` and `src/palette.rs` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (8 lines × 5) · ×1
  • Duplicated block (8 lines × 5) src/ai.rs:3431 — src/ai.rs:3431-3438 | src/ai.rs:16034-16041 | src/code.rs:412-419 | src/code.rs:1511-1518 | src/web.rs:288-295 — before extracting anything, compare `src/ai.rs` and `src/code.rs` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (7–8 lines × 4) · ×1
  • Duplicated block (7–8 lines × 4) src/jj.rs:3397 — src/jj.rs:3397-3403 | src/sync_plan.rs:1758-1764 | src/updates.rs:1487-1494 | src/updates.rs:1502-1508 — before extracting anything, compare `src/sync_plan.rs` and `src/updates.rs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (7 lines × 26) · ×1
  • Duplicated block (7 lines × 26) src/log_server.rs:385 — src/log_server.rs:385-391 | src/log_server.rs:407-413 | src/log_server.rs:428-434 | src/log_server.rs:449-455 | src/log_server.rs:470-476 | src/log_server.rs:498-504 | src/log_server.rs:526-532 | src/log_server.rs:544-550 | src/log_server.rs:575-581 | src/log_server.rs:599-605 | src/log_server.rs:623-629 | src/log_server.rs:758-764 | src/log_server.rs:803-809 | src/log_server.rs:856-864 | src/server.rs:285-291 | src/server.rs:307-313 | src/server.rs:328-334 | src/server.rs:349-355 | src/server.rs:370-376 | src/server.rs:396-402 | src/server.rs:424-430 | src/server.rs:442-448 | src/server.rs:472-478 | src/server.rs:496-502 | src/server.rs:518-524 | src/server.rs:542-548 — before extracting anything, compare `src/log_server.rs` and `src/server.rs` as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 260 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6–7 lines × 6) · ×1
  • Duplicated block (6–7 lines × 6) src/explain_commits.rs:109 — src/explain_commits.rs:109-115 | src/fix.rs:280-285 | src/jj.rs:3402-3407 | src/sync_plan.rs:1763-1768 | src/updates.rs:1493-1499 | src/upstream.rs:592-598 — before extracting anything, compare `src/sync_plan.rs` and `src/updates.rs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (6–7 lines × 3) · ×1
  • Duplicated block (6–7 lines × 3) src/env.rs:2340 — src/env.rs:2340-2346 | src/env.rs:2525-2530 | src/env.rs:3484-3490 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (4–6 lines × 3) · ×1
  • Duplicated block (4–6 lines × 3) src/updates.rs:676 — src/updates.rs:676-679 | src/updates.rs:809-814 | src/updates.rs:887-892 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (5 lines × 5) · ×1
  • Duplicated block (5 lines × 5) src/branches.rs:367 — src/branches.rs:367-371 | src/ext.rs:402-406 | src/publish.rs:722-726 | src/push.rs:352-356 | src/repos.rs:1517-1521 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 5 call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (8 lines × 6) · ×1
  • Duplicated block (8 lines × 6) src/env.rs:1484 — src/env.rs:1484-1491 | src/env.rs:1535-1542 | src/env.rs:1574-1581 | src/env.rs:3271-3278 | src/env.rs:3995-4002 | src/env.rs:4047-4054 — all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
D4 · Code Duplication · Duplicated block (6 lines × 7) · ×1
  • Duplicated block (6 lines × 7) src/explain_commits.rs:109 — src/explain_commits.rs:109-115 | src/fix.rs:280-285 | src/jj.rs:3402-3407 | src/jj.rs:3416-3421 | src/sync_plan.rs:1763-1768 | src/updates.rs:1493-1499 | src/upstream.rs:592-598 — before extracting anything, compare `src/sync_plan.rs` and `src/updates.rs` as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
M1 · Documentation (README) · README may be stale · ×1
  • README may be stale — 45 code files changed in the last 6 months but the README was not touched — it may no longer reflect the system.
Minor — 27 finding(s)
X9 · Subsumed condition operand · Subsumed condition operand · ×18
  • Subsumed condition operand src/setup.rs:2385 — `scripts_str.contains("pnpm run")` can never decide this `||` — every value satisfying `scripts_str.contains("pnpm run")` also satisfies `scripts_str.contains("pnpm ")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.
  • Subsumed condition operand src/setup.rs:2388 — `scripts_str.contains("bun run")` can never decide this `||` — every value satisfying `scripts_str.contains("bun run")` also satisfies `scripts_str.contains("bun ")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.
  • Subsumed condition operand src/repo_capsule.rs:523 — `manifests_set.contains("bun.lockb")` can never decide this `||` — every value satisfying `manifests_set.contains("bun.lockb")` also satisfies `manifests_set.contains("bun.lock")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.
  • Subsumed condition operand src/jj.rs:3520 — `lowered.contains("untrack")` can never decide this `||` — every value satisfying `lowered.contains("untrack")` also satisfies `lowered.contains("track")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.
  • Subsumed condition operand src/env_setup.rs:802 — `lowered.contains("example.com")` can never decide this `||` — every value satisfying `lowered.contains("example.com")` also satisfies `lowered.contains("example")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.
  • Subsumed condition operand src/env_setup.rs:820 — `name.contains("development")` can never decide this `||` — every value satisfying `name.contains("development")` also satisfies `name.contains("dev")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.
  • Subsumed condition operand src/env_setup.rs:823 — `name.contains("production")` can never decide this `||` — every value satisfying `name.contains("production")` also satisfies `name.contains("prod")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.
  • Subsumed condition operand src/deploy_setup.rs:903 — `lowered.contains("example.com")` can never decide this `||` — every value satisfying `lowered.contains("example.com")` also satisfies `lowered.contains("example")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.
  • Subsumed condition operand src/commit.rs:3824 — `m.contains("documentation")` can never decide this `||` — every value satisfying `m.contains("documentation")` also satisfies `m.contains("doc")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.
  • Subsumed condition operand src/commit.rs:5527 — `lowered.contains("performance issue")` can never decide this `||` — every value satisfying `lowered.contains("performance issue")` also satisfies `lowered.contains("issue")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.
  • Subsumed condition operand src/commit.rs:5761 — `lowered.contains("performance issue")` can never decide this `||` — every value satisfying `lowered.contains("performance issue")` also satisfies `lowered.contains("issue")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.
  • Subsumed condition operand src/commit.rs:5891 — `lowered.contains("performance issue")` can never decide this `||` — every value satisfying `lowered.contains("performance issue")` also satisfies `lowered.contains("issue")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.
  • Subsumed condition operand src/commit.rs:6092 — `lowered.contains("performance issue")` can never decide this `||` — every value satisfying `lowered.contains("performance issue")` also satisfies `lowered.contains("issue")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.
  • Subsumed condition operand src/commit.rs:6239 — `lowered.contains("performance issue")` can never decide this `||` — every value satisfying `lowered.contains("performance issue")` also satisfies `lowered.contains("issue")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.
  • Subsumed condition operand src/commit.rs:6531 — `lowered.contains("performance issue")` can never decide this `||` — every value satisfying `lowered.contains("performance issue")` also satisfies `lowered.contains("issue")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.
  • Subsumed condition operand src/commit.rs:13574 — `lower.contains("issues.external_ref")` can never decide this `||` — every value satisfying `lower.contains("issues.external_ref")` also satisfies `lower.contains("external_ref")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.
  • Subsumed condition operand src/codex_memory.rs:2241 — `snippet.contains("pub name: String,")` can never decide this `||` — every value satisfying `snippet.contains("pub name: String,")` also satisfies `snippet.contains("pub name: String")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.
  • Subsumed condition operand src/proxy/summary.rs:402 — `body.contains("unauthorized")` can never decide this `||` — every value satisfying `body.contains("unauthorized")` also satisfies `body.contains("auth")`, so the `||` chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident.
D20 · ADR Quality · No ADRs found · ×1
  • No ADRs found — No ADRs found. No recognised ADR directory (`docs/adr/`, `docs/decisions/`, `adr/`, `docs/rfcs/`, an `ADR0001/` folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (`docs/adr/use-postgres.md`, `docs/adr/2024/0001-x.md`); or a file anywhere whose name is ADR-shaped (`0001-use-postgres.md`, `adr-012-caching.md`); or, when neither turned anything up, a document carrying the decision-record signature (an "Architecture Decision Record" heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these — unnumbered files outside any recognised directory, without those headings — is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in `docs/adr/`.
D30 · Dependency Vulnerabilities · Low vulnerability · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
M2 · Architecture documentation · No ADRs · ×1
  • No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
P3 · Security & performance tooling · No SAST · ×1
  • No SAST — No static application security testing detected. For this repository's stack, add cargo-audit / cargo-deny (or clippy) (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 18280 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
P4 · Deployment & Rollback · No release approval gate · ×1
  • No release approval gate — The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY'S PIPELINE FILES. What was read: every file under `.github/workflows/`, `.forgejo/workflows/`, `.gitea/workflows/`, `.azuredevops/` and `.azure-pipelines/`, plus `.gitlab-ci*` and `azure-pipelines*` — with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab's `when: manual`, CircleCI's `type: approval`, an Azure `ManualValidation@` task or an `approvals:` block, a Jenkins `input` step, a `uses:` step naming an approval action, an `environment:` paired with `reviewers` / `required_reviewers` / `protection` / `wait-timer` / `deployment_branch_policy`, a draft-release step, a `workflow_dispatch` promotion, or a release-event gate. ★ What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy — all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release.
S1 · Web-Security Posture · No security response headers detected · ×1
  • No security response headers detected scripts/cdn-nginx.conf:6 — No Content-Security-Policy / X-Frame-Options / X-Content-Type-Options configuration found — defense in depth, even when a reverse proxy could set them. This is reported because `cdn-nginx.conf` is committed to this repository and declares the server that serves it, so the configuration that would carry these headers is in this repository and was read in full. (−2.0 on this card.)
Minor — 12 finding(s)
D12 · Dependency Hygiene · Outdated · ×12
  • Outdated: anyhow — `anyhow` is locked at 1.0.102 but 1.0.104 is the current stable release on crates.io, and it already satisfies the `"1"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p anyhow` and commit the updated REDACTED.
  • Outdated: blake3 — `blake3` is locked at 1.8.3 but 1.8.7 is the current stable release on crates.io, and it already satisfies the `"1"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p blake3` and commit the updated REDACTED.
  • Outdated: chrono — `chrono` is locked at 0.4.44 but 0.4.45 is the current stable release on crates.io, and it already satisfies the `"0.4.42"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p chrono` and commit the updated REDACTED.
  • Outdated: data-encoding — `data-encoding` is locked at 2.10.0 but 2.11.1 is the current stable release on crates.io, and it already satisfies the `"2.6"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p data-encoding` and commit the updated REDACTED.
  • Outdated: libc — `libc` is locked at 0.2.183 but 0.2.189 is the current stable release on crates.io, and it already satisfies the `"0.2"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p libc` and commit the updated REDACTED.
  • Outdated: rand — `rand` is locked at 0.10.0 but 0.10.3 is the current stable release on crates.io, and it already satisfies the `"0.10"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p rand` and commit the updated REDACTED.
  • Outdated: rpassword — `rpassword` is locked at 7.4.0 but 7.5.4 is the current stable release on crates.io, and it already satisfies the `"7"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p rpassword` and commit the updated REDACTED.
  • Outdated: serde_json — `serde_json` is locked at 1.0.149 but 1.0.151 is the current stable release on crates.io, and it already satisfies the `"1"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p serde_json` and commit the updated REDACTED.
  • Outdated: tempfile — `tempfile` is locked at 3.26.0 but 3.27.0 is the current stable release on crates.io, and it already satisfies the `"3"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p tempfile` and commit the updated REDACTED.
  • Outdated: thiserror — `thiserror` is locked at 2.0.18 but 2.0.21 is the current stable release on crates.io, and it already satisfies the `"2.0"` requirement declared in crates/seq_client/Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p thiserror` and commit the updated REDACTED.
  • Outdated: uuid — `uuid` is locked at 1.22.0 but 1.26.1 is the current stable release on crates.io, and it already satisfies the `"1"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p uuid` and commit the updated REDACTED.
  • Outdated: which — `which` is locked at 8.0.2 but 8.0.6 is the current stable release on crates.io, and it already satisfies the `"8"` requirement declared in Cargo.toml — so the lockfile is behind this repository's own declared range. Run `cargo update -p which` and commit the updated REDACTED.

Appendix B — Reproduction & audit trail

Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-440430d4d7a44a9ab0ff02a4c4f13a8f/history.json --exit-code 0 --source .0artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/watchdog-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-440430d4d7a44a9ab0ff02a4c4f13a8f/tree.json --exit-code 0 --source .0artifacts/raw/gitleaks-tree.json
D29 · Static Analysis (SAST)semgrep—semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/watchdog-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off .52artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesosv-scanner—osv-scanner --format json --recursive .30artifacts/raw/osv-scanner.json
D31 · IaC & Container Securitytrivy—trivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Docker Compose, Terraform, Kubernetes/Helm, CloudFormation, ARM, Bicep, Ansible); nothing to scan.0—
D32 · Data Compliance (PII/GDPR)semgrep—semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.0—
D37 · Vulnerability-disclosure Policydisclosure—disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.0—
D40 · Network Egress Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.0—
D41 · Kernel & Syscall Confinementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.0—
D42 · Runtime Threat Enforcementruntime-hardening—runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.0—
D43 · Malicious Dependenciesosv-scanner—osv-scanner --format json --recursive .0artifacts/raw/osv-scanner.json

Run 01a0e174-26ef-7509-9890-894abb906ccd · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

Downloadable artifacts

Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.

⬇ Findings, MITRE CWE-tagged .sarif⬇ Health changelog .md