GeezerVison is showing github.com — #803 final slice: last assert_is_empty sites (id-core, id-web, id-import-notion, id-caps, id-events) by developing-today-fleet[bot] · Pull Request #15648 · developing-today/code
Conversation
Final slice of the #803 clippy sweep. The final census (comment 7193686761) found 15 clippy::assert_is_empty sites left in 5 crates; the negative control on current main found 18 — main advanced past the census base and added 3 more (id-core's navigation.rs is a new file; one new id-web snapshot test). All 18 are rewritten here; clippy::chunks_exact_to_as_chunks was already 0 and is untouched.
Fix pattern follows the merged slices: assert!(x.is_empty()) → assert_eq!(x, [] as [T; 0]) with in-scope short type names; no assertion weakened.
Sites:
- id-core (3): tests/social_object_contract.rs:346; src/graph/navigation.rs:1456 (Step), :1488 (Node) — post-census additions
- id-web (3): src/collab.rs:4207, :4358 (census :3816/:3967, shifted by +391 inserted lines), :4058 — post-census addition
- id-import-notion (5): src/rows.rs:756; tests/recorded_comments.rs:260, :268; tests/recorded_rows.rs:149; tests/recorded_content.rs:344
- id-caps (2): src/world_manifest.rs:1417, :1433
- id-events (5): src/attestation/v1/reducer.rs:1521, :2001, :2007, :2019; src/event_store/compaction.rs:914
Also completes the sibling-standard test allow sets that blocked the id-caps / id-events crate gates (pre-existing, found by the census): id-caps agent_quota_ledger.rs + portal.rs test modules (82 unwrap_used errors) and id-events tests/append_list_state_machine.rs (9 errors) get the same #[allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)] their siblings carry.
Verification (fleet-command runs on this branch, GitHub-hosted):
- Negative control, run 45831946171 (unmodified main): id-core 3, id-web 3, id-import-notion 5, id-caps 2, id-events 5; chunks 0 everywhere (warning mode, JSON diagnostic counts).
- After fix, run 45848394433: census 0/0 for all five crates; per-crate clippy gate (the two sweep lints at -D, crate lint config as-is) exit 0 for all five.
- Tests, run 45848409034: id-core 993 passed, id-web 811, id-import-notion 37, id-caps 375, id-events 450 — 2,666 passed, 0 failed.
Refs #803. Left unmerged for Felix's review/merge.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-26T16:01:52Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": "/home/hatch",
"model": null,
"lane_start_issues": [],
"workspace_ref": {
"kind": "worktree",
"id": "/home/hatch",
"repo": "developing-today/code",
"branch": "main",
"sha": "4291c7d25d6699e6d0378dcce687f1935ec39c09"
},
"auth_subject": "felix",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…sus sites + 3 post-census additions on current main)
assert!(x.is_empty()) -> assert_eq!(x, [] as [T; 0]) following the merged
slices (#15400/#15403/#15412/#15491/#15522/#15525/#15529/#15535).
Negative control (run 45831946171, current main, warning mode, JSON
counts): id-core 3 (social_object_contract.rs:346 + navigation.rs:1456,1488
— navigation.rs is a new file added after the census base), id-web 3
(collab.rs:4207,4358 + collab.rs:4058 added after the census base),
id-import-notion 5, id-caps 2, id-events 5. chunks_exact_to_as_chunks 0
everywhere. Also adds temporary census/gate/test scripts under
pkgs/id/census-803-final/ (verification only, removed before the PR).
…rnings denies hundreds of unrelated pre-existing warn-level lints; not the house gate)
…the id-caps/id-events gates (pre-existing)
id-caps lib-test target failed to compile under the crate's own deny
lints: 82 clippy::unwrap_used errors, all in the only two test modules
missing the sibling-standard allow — agent_quota_ledger.rs and
portal.rs. id-events test target append_list_state_machine had 9
unwrap_used errors and no allow header at all (siblings
deletion_state_machine.rs / feed_cursor_model.rs carry it). Adds
#[allow(clippy::unwrap_used, clippy::expect_used, clippy::panic)] /
the file-level #![allow(...)] in exactly those three places.
Important
Review skipped
Bot user detected.
To trigger a single review, invoke the @coderabbitai review command.
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
133a75e6-58f9-4833-a47d-bb6cefdeaf44
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|