GeezerVison is showing github.com — clippy-lint gate red since 2026-11-02: 571 deny-level sites in pkgs/id (campaign) · Issue #6462 · developing-today/code
clippy-lint gate red since 2026-11-02: 571 deny-level sites in pkgs/id (campaign) #6462DescriptionProblem
pkgs/id's clippy gate (checks.x86_64-linux.clippy-lint, recipe: cargo clippy --all-targets --all-features) is red at HEAD with 571 deny-level lint errors and has been red since the workspace lints table landed:
Evidence (measured on the laptop at origin/main 917e1a3, 2026-11-06)
id-core: exactly 1 error — clippy::panic at crates/id-core/src/residency.rs:399 (panic!("allowed") in the storage_evidence_does_not_cover_other_planes test's let-else). The codebase's sanctioned pattern exists: #[allow(clippy::panic)] on the test fn (precedent: src/store_traits.rs:1205). One-line fix, verified shape.
id (lib target): 20 errors — production-code unwrap()/expect()/panic sites.
id (lib test target): 551 errors. The lints table's own comment states the convention: "Test modules should add: #[allow(clippy::unwrap_used, clippy::expect_used)]" — most test modules never got the attribute.
- Error mix (lib test): unwrap Result ×241, expect Result ×188, unwrap Option ×57, expect_err ×26, expect Option ×23, panic ×15, unwrap_err ×3.
- Hottest files:
src/currency_poc/tests.rs ~100 sites, src/web/markdown.rs ~50, src/publications.rs ~43, src/world/handle.rs ~36, src/app_manifest.rs ~33, src/world_session/mod.rs ~29, src/commands/world.rs ~28, src/world/replication.rs ~27 — 40+ files in total.
- Full logs from the evaluation:
nix log of the clippy-lint derivation at that tree; summary in the dead-at-cap evaluation report (2026-11-06).
What done looks like
clippy-lint check passes on main.
- Test-module errors resolved with the conventional
#[allow(clippy::unwrap_used, clippy::expect_used)] (and clippy::panic where a test genuinely needs it), module by module — not a workspace-level weakening of the lints table.
- The 20 production (lib) errors fixed individually with real error handling, or a narrowly-scoped, justified allow where the operation is provably infallible.
- The
id-core residency.rs site fixed with the one-line allow.
- Note the lints table references a planned "lints review in plan step P8.8" — if that review intends a different end-state for these lints, this issue is where that decision should be recorded instead of silently leaving the gate red.
Context
Acceptance criteria
- checks.x86_64-linux.clippy-lint passes on main (cargo clippy --all-targets --all-features in pkgs/id is clean under the deny lints).
- Test-module sites are resolved with the conventional per-module #[allow(clippy::unwrap_used, clippy::expect_used)] (and clippy::panic only where a test genuinely needs it) — no workspace-level weakening of the lints table.
- The 20 production (lib) errors are fixed individually with real error handling, or carry a narrowly-scoped allow with a justification comment; the id-core residency.rs:399 site uses the sanctioned one-line allow precedent.
Activitydeveloping-today commented on Nov 6, 2026 dezren39 commented on Nov 6, 2026 Intake review
Related: Parent breakage: issue #5459 (this is its clippy leg; the format leg was fixed in PR #6461). Why it sat untouched: issue #6463 (its remediation task burned 24 attempts on claim evaporation).
Notes: Measured filing (571 deny-level sites at origin/main 917e1a3, broken down by target, error kind, and hottest files) — the scope is a campaign, hence effort/l, but the bulk (551 test-target sites) is mechanical per-module allows; the real judgment work is the 20 production sites. Verified still live this run: no merged PR resolves it. Risks: blanket allows drifting into production modules; reviewers should sample per-module diffs. Suggested approach: slice by file cluster (currency_poc/tests.rs first at ~100 sites), one PR per cluster, production sites in their own PR.
— fleet monitor intake (protocol §5), 2026-11-06. dezren39 commented on Nov 6, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 8, 2026 🤖 Agent note · picked up
- Agent: repo-worker-code, OpenChamber scheduled lane 02cafe76-eafd-4d0b-aaa6-2b7a737d68dc
- Task: 11184 (triage)
- Fresh verification: clippy-lint gate red since 2026-11-02: 571 deny-level sites in pkgs/id (campaign) #6462 is OPEN, no hard-stop labels, and no matching PR was found in a fresh all-state PR search. Normalized queue lifecycle labels to claimed/in-progress.
- Next: verify whether the clippy gate is still red on current main, then route with evidence.
dezren39 commented on Nov 8, 2026 Triage — #6462 (current main, confirmed live)
Verdict: keep OPEN; this is still a real clippy breakage, distinct from the now-closed parent #5459. Formatting was handled by merged PR #6461; no open PR referencing #6462 was found.
Current-main evidence: after fast-forwarding the laptop clone and task worktree to origin/main 08dd577, nix develop --command cargo clippy --all-targets --all-features in pkgs/id exited 101. The workspace run reports three deny-level errors in the id-core lib-test target: unwrap() at crates/id-core/src/json_unique.rs:142, unwrap_err() at :153, and panic! at crates/id-core/src/residency.rs:399. The gate is therefore still red. The historical 571-site count was measured at 917e1a3bdb and was not re-counted. A separate -p id run in this fresh worktree could not assess the root package’s lint total because generated web/dist assets are absent (RustEmbed errors).
Fix scope / ordering: keep this issue as the implementation scope already described in its body. First resolve the reproducible id-core test lints using the existing per-test-module allow convention and a narrowly scoped clippy::panic allow or a non-panicking test path; then rerun the full clippy-lint check with the generated assets available and refresh the remaining id production/test tally. Do not weaken the workspace lint policy. No Drew decision or other blocker is outstanding.
No code changes in this triage.
dezren39 commented on Nov 8, 2026 Consolidation of the duplicate main-broken filings (2026-11-08)
Queue task 10722 (lane 9aca43b4-5439-4939-9f71-323f5d32521b) closed the duplicate clippy-lint main-broken issues as consolidated here — this issue remains the single tracker: #5580, #5666, #6201, #6203, #6363. #6206 is left open because open PR #7245 references it.
Two things the next lane will hit when measuring this gate on the laptop (spend the time on them deliberately):
pkgs/id/web/dist must exist before cargo clippy can reach the id lint phase — RustEmbed fails to compile without it, so an un-generated clone silently skips the package that carries nearly the whole backlog. Build the web assets first, or use the nix check.
- The primary clone's
pkgs/id/target (18 GB) was produced by a different rustc and now fails with E0514 ... found crate ... compiled by an incompatible version of rustc. Do not cargo clean the primary clone; use a fresh worktree with nix develop --command cargo clippy --all-targets --all-features.
Source-level status at HEAD 9615ae1e11: the three id-core deny sites from the 2026-11-08 triage are unchanged (crates/id-core/src/json_unique.rs:142, :153, crates/id-core/src/residency.rs:399), and no lint-sweep commit has touched pkgs/id/src since 2026-11-05, so the id package backlog is untouched. dezren39 commented on Nov 17, 2026 agent-note:v1
state: triaged
task: 18488 (queue repo-health-code-pilot, worker repo-worker-code, lane code-d)
Triage verdict for issue #6462: ALREADY TRIAGED — triage of record stands, re-verified fresh this shift (2026-11-17).
- Fresh GitHub state: issue clippy-lint gate red since 2026-11-02: 571 deny-level sites in pkgs/id (campaign) #6462 OPEN, no hard-stop labels; labels already normalized (kind/ci, priority/high, effort/l, status/triaged) — no status/needs-triage present, so per runbook 1c this packet completes as triaged naming the existing triage.
- Triage of record: task 11184, 2026-11-08 — verdict keep OPEN; gate confirmed red on main 08dd577 (cargo clippy exit 101; three deny-level id-core lib-test sites: json_unique.rs:142 unwrap, :153 unwrap_err, residency.rs:399 panic); fix scope and ordering recorded there and in the issue body (id-core test lints first under the per-module allow convention, then full tally with web/dist generated; 20 production lib sites fixed individually; never weaken the workspace lints table).
- Fresh check this shift: an all-state PR search for 6462 returns no PRs — no fix has landed or is in flight, so the 2026-11-08 red-gate evidence is uncontradicted. The 2026-11-08 consolidation note also stands: clippy-lint gate red since 2026-11-02: 571 deny-level sites in pkgs/id (campaign) #6462 is the single tracker for the duplicate clippy filings main-broken: developing-today/code id @864ed8a — basic: nix flake check (clippy-lint) #5580/main-broken: developing-today/code id @e4777f1 — basic: nix flake check (clippy-lint) #5666/main-broken: developing-today/code id @25e5093 — basic: nix flake check (clippy-lint) #6201/main-broken: developing-today/code id @7bd8b36 — basic: nix flake check (clippy-lint) #6203/main-broken: developing-today/code id @7ddc3c0 — basic: nix flake check (clippy-lint) #6363.
- The fix itself is an effort/l campaign (571 historical sites) and proceeds via its own implementation packet(s), not this triage packet; no Drew decision or blocker is outstanding per the triage of record.
dezren39 commented on Nov 22, 2026 New deny-level sites for the campaign, found 2026-11-22 during #12657 slice 1a verification (Lane AE; not that slice's files):
cargo clippy -p id-core --all-targets on main-derived code fails with 9 × clippy::unwrap_used errors, all in pkgs/id/crates/id-core/src/screen_codec.rs lines 217, 233, 234, 252, 253, 274, 277, 284, 295. That file's tests module (line ~143) has #[cfg(test)] but not the standard #[allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)] test-module attribute the rest of pkgs/id carries (#5950 convention). The file landed with PR #12241 (MessagePack codec foundation, #12242); the fix is the one-line attribute, in that feature's lane.
Evidence: fleet-run 45063569659 (developing-today/fleet), command step log — the same run's cargo check -p id -p id-web and cargo check -p id-native-shell --all-targets passed; these 9 are the only clippy errors in id-core.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|