You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 246cc4d
Browse filesBrowse the repository at this point in the historyBrowse files
`main` @ `5ca5623`. The previous run was a sweep, so this run looked for structural work first. Every candidate scoring 6 or more still has files held by an open PR:
4
+
- A30 (#1886), A05 (#1865) and A32 (#1882, and now the fixer's #1895);
5
+
- T09, T01 and T25 (#1864, #1698).
6
+
7
+
The free candidates, A20 and A26, score about 4. So I ran a sweep, per the rule. The next audited, unswept row with free files is `scan/hosted.rs`. There was no maintainer steering, and no PR of mine merged or closed.
8
+
9
+
**PR:**[#1897](https://github.com/SocketDev/socket-patch/pull/1897), ready for review. `/code-review high` ran first and found no bugs in the diff. CI and Bugbot were pending at handoff.
10
+
11
+
### Per file
12
+
-**`scan/hosted.rs`** (all but the 1,233-line `run_redirect_selected_untracked`, which is T24):
13
+
- 1 fn inlined (`emit_json_error`), and `run_redirect`'s dead human arm deleted (it runs only under `--json`).
14
+
- 1 test-only wrapper deleted (`installed_stale_positive_evidence`), and 1 `#[cfg(test)]` re-export shim of 17 core items deleted.
15
+
- The gem probe's vendor/cache fold is flattened. Shown red→green.
16
+
- About 120 comment lines removed, including 3 banners and bare issue references.
17
+
- Tests: 13 guidance tests moved to core `hosted/guidance.rs`, and 2 pnpm lock-sniff tests moved to `formats/pnpm/mod.rs`.
|[#1875](https://github.com/SocketDev/socket-patch/pull/1875)| sweep |`cli/src/commands/{remove,repair}.rs`| ready; CI (82 checks) and Bugbot green |
13
13
|[#1884](https://github.com/SocketDev/socket-patch/pull/1884)| sweep |`cli/src/commands/scan/discovery.rs` (+ T18 [#1859](https://github.com/SocketDev/socket-patch/issues/1859); tests moved to core `ranking.rs`, `lock_inventory/tests.rs`, `ui/text.rs`) | ready; CI (82 checks) and Bugbot green |
14
14
|[#1892](https://github.com/SocketDev/socket-patch/pull/1892)| sweep |`cli/src/commands/scan/gc.rs`| ready; CI (82 checks) and Bugbot green |
15
+
|[#1897](https://github.com/SocketDev/socket-patch/pull/1897)| sweep |`cli/src/commands/scan/hosted.rs` (all but `run_redirect_selected_untracked`, T24; 13 guidance tests moved to core `hosted/guidance.rs`, 2 to `formats/pnpm/mod.rs`) | ready; CI and Bugbot pending |
A03 [#1834](https://github.com/SocketDev/socket-patch/issues/1834) is the fixer's #1876. T28 [#1880](https://github.com/SocketDev/socket-patch/issues/1880) and T23 [#1860](https://github.com/SocketDev/socket-patch/issues/1860) wait on #1864 (`list.rs`) and #1698 (`get.rs`).
28
29
29
-
The next run is structural if a candidate scores 6 or more and its files are free, else a sweep. Next sweep files, in order: `scan/hosted.rs` (region, `partial@L<n>`), `scan/hosted/{nuget,takeover}.rs` (`python.rs` is in #1883), then `scan/policy.rs` and `scan/render.rs` once #1856/#1884 merge (policy's getters and `admit_crawled` are called from `scan/mod.rs`), then `core/constants.rs`, `core/lib.rs`,`core/utils/cargo_home.rs`, `core/utils/cargo_workspace.rs`. Skip `agent_download.rs`, `apply.rs`, `get.rs`, `vendor.rs` while #1698 is open, `rollback.rs` while #1864 is open, `cargo_build_cache.rs` (#1849) and `api/client.rs` (#1870).
30
+
The next run is structural if a candidate scores 6 or more and its files are free, else a sweep. Next sweep files, in order: `scan/hosted/{nuget,takeover}.rs` (`python.rs` is in #1883), then `scan/policy.rs` and `scan/render.rs` once #1856/#1884 merge (policy's getters and `admit_crawled` are called from `scan/mod.rs`), then `core/constants.rs`, `core/utils/cargo_home.rs`.`core/lib.rs` is in #1891 and `core/utils/cargo_workspace.rs` in #1866. Skip `agent_download.rs`, `apply.rs`, `get.rs`, `vendor.rs` while #1698 is open, `rollback.rs` while #1864 is open, `cargo_build_cache.rs` (#1849) and `api/client.rs` (#1870).
30
31
31
32
#### Notes
32
33
- The PRs of the first thread (`arch-refactor/<issue>-*`) are listed in `review/2026-10-v1/register/90-refactor.md`.
@@ -44,3 +45,5 @@ The next run is structural if a candidate scores 6 or more and its files are fre
44
45
- A test of a re-export or forwarding wrapper belongs beside the real function: move it to the defining crate and rebuild it on that module's helpers, instead of deleting coverage the target lacks (`ui::shell_word` had no test).
45
46
-`scan/gc.rs`'s pre-lock ledger gate (`has_ledger`) probes `--cwd`, while `run_vendor_gc` reads `project_root()` (C43): a foreign `--manifest-path` skips a due vendor-only revert. Pre-existing; it wants an issue. The preview path also drops `cargo_cache_patch_kept` warnings.
46
47
- Pushing a branch deletion (`git push origin :branch`) is refused by the sandbox proxy. Name the branch right the first time: `arch-refactor/sweep-scan-gc-policy` is left stale.
48
+
-`scan::hosted::run_redirect` runs only under `--json` (scan/mod.rs calls it inside `if args.common.json`); the human arm goes through `boxed_run_redirect_selected`. `run_redirect_selected` still takes `Option<Envelope>` keyed on `common.json`; making it a value touches `get.rs` (#1698) and the T24 body.
49
+
- The gem stale probe (`scan/hosted.rs` pass 3) has two pre-existing gaps /code-review found on #1897: it dedups vendor/cache warnings by purl string (two spellings of one installed dir can warn twice), and it names the standalone archive `{name}-{version}.gem`, missing a platform gem's suffix. Both change output, so they want an issue.
0 commit comments