Skip to content

atlas-core: pre-existing clippy warnings outside c8_profile (verdict run for #12919) #13056

Open

Description

@dezren39

Surfaced by the #12919 clippy verdict run (cargo clippy -p atlas-core --all-targets, nix develop in pkgs/atlas-search, fresh CARGO_TARGET_DIR, 2026-11-23). The one finding inside the C8-M slice (c8_profile.rs, clippy::filter_next) was fixed in PR #13049. The warnings below are pre-existing, in code outside that slice, and were recorded rather than fixed there. Clippy exits 0 — these are warnings, not errors; nothing here blocks anything. Listed so they do not sit silently.

Lib (22 remaining after the #13049 fix):

  • collapsible if: aggregate.rs:208, join.rs:391, search.rs:590, stage.rs:153, stage.rs:718, sweep.rs:221, sweep.rs:366, sweep.rs:568, sweep.rs:569, sweep.rs:591, sweep.rs:592, trace.rs:343, trace_stats.rs:684
  • manual .is_multiple_of(): embed_cache.rs:82 (+ one more in the same area)
  • chunks_exact with constant chunk size: 2 occurrences
  • from_str confusable with the FromStr trait method: github_comments.rs:95
  • useless conversion to the same type: local.rs:386
  • single-pattern match (use if let): search.rs:389
  • &mut Vec instead of &mut [_]: shingles.rs:265
  • very complex type: trace_stats.rs:549

Tests: citation_conformance.rs (2: collapsible if :342, redundant closure :700), permission_model.rs (1: collapsible if :155), diagnostic_fixture.rs (5: ungrouped literal digits :863, enum-variant name :134, simplifiable map_or :398, manual is_multiple_of :794, collapsible if :880), placement_model.rs (2: complex type, elidable lifetimes :380/:418, needless clone), boundary_wiring.rs (1), row_detection.rs (1: clone on reference :638).

Suggested handling: one mechanical cargo clippy --fix pass over atlas-core in its own PR, reviewed per-file; the non-auto-fixable ones (complex type, from_str, &mut Vec signature) need a human look.

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Pickup — xaltha lane taking this slice. Plan: mechanical clippy fixes for the recorded lib + test warnings in atlas-core (collapsible ifs, is_multiple_of, chunks_exact, if-let, &mut [_], etc.), with a human look at the non-auto-fixable ones (complex type at trace_stats.rs:549, from_str at github_comments.rs:95, &mut Vec at shingles.rs:265). Branch: xaltha/13056-atlas-clippy (pushed). Verification: cargo clippy -p atlas-core --all-targets before/after warning counts + crate tests.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Progress — landed as PR #13097 (#13097), which says Closes #13056.

    Warning counts (cargo clippy -p atlas-core --all-targets, rustup 1.99.0 clippy-driver locally, fresh target dir):

    • Before: 37 distinct warning sites (lib 23; eval.rs + trace_ingest.rs test modules 2; integration tests 12).
    • After: 0 warnings, exit 0; cargo fmt --check clean; cargo test -p atlas-core 361 passed / 0 failed.

    All recorded warnings fixed, including the three flagged as needing a human look: CommentKind::from_str renamed to parse (the crate's existing convention; one caller), rescore_fused now takes &mut [FusedEntry], and the hot_trace_files return type factored into a HotTraceFile alias. The diagnostic_fixture variant was renamed Stage::StageError → Stage::Error with its golden transcript updated to match. No #[allow] added anywhere.

  4. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Claim — Lane PM (archer), 2026-11-23. Shepherding xaltha's PR #13097 to merge. The fix work is complete and author-verified (0 clippy warnings, 361 tests); the PR has sat open and clean-mergeable since 08:07Z with a Codex review of no findings. My slice: independently re-run the declared oracle at the PR head (af7f7ef419bc) — cargo clippy -p atlas-core --all-targets and cargo test -p atlas-core in the pkgs/atlas-search dev shell — then merge SHA-guarded if green, and confirm this issue's auto-close.

  5. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Hold — Lane PM (archer), 2026-11-23. The shepherd slice above is fully prepared, but creating the verification worktree (~/git/fleet/wt-lane-pm-13097 on the laptop, branch lane-pm-13097, at current main d220c7ba3cc) returned a result that failed a platform execution-risk check on the checkout's content — the same flag class as tonight's other holds. Per the standing rule I ran no git/build/test operations inside it afterward and left it untouched at the base SHA.

    State of the item, verified fresh via gh REST:

    • PR chore(atlas-core): clear the pre-existing clippy warnings recorded in #13056 #13097 (xaltha): OPEN, head af7f7ef419bc85de546fceeba8e4fad9dd1c52f4, mergeable clean, 21 files all inside pkgs/atlas-search/crates/atlas-core, +197/-190.
    • Codex review completed at that head: no findings, none unresolved. No review comments.
    • Author's verification on the PR: cargo clippy -p atlas-core --all-targets 37 warning sites -> 0, exit 0; cargo fmt --check clean; cargo test -p atlas-core 361 passed / 0 failed. No #[allow] added.
    • The PR body carries the closing reference for this issue, so a merge auto-closes it.

    On Drew's item-specific go-ahead for executing in ~/git/fleet/wt-lane-pm-13097: check out the PR head there, independently re-run cargo clippy -p atlas-core --all-targets + cargo test -p atlas-core in the pkgs/atlas-search nix develop shell, merge PR #13097 SHA-guarded at af7f7ef419bc if green, confirm this issue auto-closed, remove the worktree.

  6. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Takeover claim — Lane XO (archer), 2026-11-23. Adopting Lane PM's orphaned shepherd claim on PR #13097: PM claimed at 09:19:57Z, posted a flag hold at 09:20:43Z and stopped; no activity since (well over an hour; lane ended).

    Drew batch-approved all outstanding flag holds on 2026-11-23 ("Approve all the flag holds listed above"), which covers this shepherd slice. Executing PM's prepared scope exactly: check out PR head af7f7ef419bc85de546fceeba8e4fad9dd1c52f4 in a fresh laptop worktree, independently re-run cargo clippy -p atlas-core --all-targets + cargo test -p atlas-core in the pkgs/atlas-search nix develop shell, merge PR #13097 SHA-guarded if green, confirm this issue auto-closes, remove the worktree.

  7. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Hold — Lane XO (archer), 2026-11-23. I adopted Lane PM's orphaned shepherd claim under Drew's 2026-11-23 batch approval of all outstanding flag holds and attempted the prepared scope. Creating the verification worktree (git fetch of refs/pull/13097/head + git worktree add of ~/wt-lane-xo-13097 in ~/git/code) returned a result that failed a platform execution-risk check — the same flag class as PM's hold, firing again despite the batch approval.

    Two further facts make this checkout unusable: the result reported HEAD b1e5cb39df6 (a merge of PR #13330), which does not match PR #13097's head; and a fresh API re-read confirms PR #13097 is still OPEN at af7f7ef419bc85de546fceeba8e4fad9dd1c52f4, unmerged. Per the standing rule I ran no git/build/test operations inside ~/wt-lane-xo-13097 afterward and left it untouched; its reported state is unverified and it should not be used.

    State of the item: unchanged from PM's record — PR #13097 open and mergeable, author-verified (clippy 37 warning sites → 0, cargo test -p atlas-core 361 passed), Codex review completed with no findings. The shepherd remainder is exactly PM's prepared scope (independent oracle re-run at af7f7ef419bc, SHA-guarded merge, confirm this issue auto-closes) for the next pass that can execute in a checkout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions