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 2a226f0
Browse filesBrowse the repository at this point in the historyBrowse files
`main` @ `5ca5623`. The previous run was structural, so this run was a sweep. There was no maintainer steering, and no PR of mine merged or closed. The next audited, unswept rows were `cli/src/commands/remove.rs` and `repair.rs`. No open PR touches either file (`rollback.rs`, the next row, is in #1864).
4
+
5
+
**PR:**[#1875](https://github.com/SocketDev/socket-patch/pull/1875), ready for review. CI and Bugbot are pending.
- The `hosted_reverted` event and the kept-exit tail are each built once now, by `hosted_reverted_event` and `kept_exit_code`.
11
+
- Renamed `print_hosted_leg_warnings` to `print_run_warnings`.
12
+
- 6 envelopes now go through `ui::print_json`, and 2 warning literals use `RunWarning::new`.
13
+
- About 15 comment lines removed.
14
+
- 1 can't-fail test deleted. 1 test now asserts exact lines instead of `.contains`.
15
+
- Net: production −62, tests +4.
16
+
-**`repair.rs`:**
17
+
- The always-`BLOB``noun` parameter is dropped from 5 formatters.
18
+
- About 35 comment lines removed.
19
+
- 1 tautological assert and 2 duplicate multibyte tests deleted.
20
+
- 2 offline tests merged into 1 that covers the wet and dry runs, shown red→green by dropping the `!offline` conjunct.
21
+
- Net: production −52, tests −108.
22
+
-**Total:** +188 / −406.
23
+
24
+
### Not done
25
+
-**The split of remove's 924-line `run`:** too big for a sweep.
26
+
-**T16, T17, T19, T20:** structural.
27
+
-**The typed vendor-reference tuple:** it lives in `vendored_backend/repair.rs`.
28
+
29
+
### Merges recorded
30
+
None.
31
+
32
+
### Lessons
33
+
- Before deleting a single-caller formatter's test, check that the wording it pins is covered somewhere else. `format_found_missing` stayed for that reason.
34
+
-`print_json(&env.to_value())` is byte-identical to `to_pretty_json()` only because the workspace builds `serde_json` with `preserve_order`.
|[#1849](https://github.com/SocketDev/socket-patch/pull/1849)| structural | A01 [#1832](https://github.com/SocketDev/socket-patch/issues/1832): `utils/cargo_build_cache.rs`| ready; CI and Bugbot green |
10
10
|[#1864](https://github.com/SocketDev/socket-patch/pull/1864)| sweep |`cli/src/commands/{hosted_bundle,hosted_unwind,list,lock_cli,mod,pypi_reinstall}.rs` (+ dead branch in `rollback.rs`) | ready; CI (82 checks) and Bugbot green |
11
11
|[#1870](https://github.com/SocketDev/socket-patch/pull/1870)| structural | A27 [#1869](https://github.com/SocketDev/socket-patch/issues/1869): `api/client.rs`, one serve GET and one vendor retry loop | ready; CI (82 checks) and Bugbot green |
12
+
|[#1875](https://github.com/SocketDev/socket-patch/pull/1875)| sweep |`cli/src/commands/{remove,repair}.rs`| ready; CI and Bugbot pending |
A02 [#1833](https://github.com/SocketDev/socket-patch/issues/1833) moved to the fixer's #1866. T03 [#1837](https://github.com/SocketDev/socket-patch/issues/1837) stays at 4, A05 [#1844](https://github.com/SocketDev/socket-patch/issues/1844) at ~2.
25
26
26
-
The next run is a sweep (this one was structural). Next sweep files, in order: `cli/commands/remove.rs`, `repair.rs`, `rollback.rs`, `scan/discovery.rs` (check against #1856), then `core/constants.rs`, `core/lib.rs`, `core/utils/cargo_home.rs`, `core/utils/cargo_workspace.rs` (skip `cargo_build_cache.rs` while #1849 is open, and `api/client.rs` while #1870 is open). Skip `agent_download.rs`, `apply.rs`, `get.rs` and `vendor.rs` while #1698 is open.
27
+
The next run is structural if a candidate scores 6 or more and its files are free (T09 is not yet), else a sweep. Next sweep files, in order: `scan/discovery.rs` (`rollback.rs` waits for #1864), then `core/constants.rs`, `core/lib.rs`, `core/utils/cargo_home.rs`, `core/utils/cargo_workspace.rs` (skip `cargo_build_cache.rs` while #1849 is open, and `api/client.rs` while #1870 is open). Skip `agent_download.rs`, `apply.rs`, `get.rs` and `vendor.rs` while #1698 is open.
27
28
28
29
#### Notes
29
30
- The PRs of the first thread (`arch-refactor/<issue>-*`) are listed in `review/2026-10-v1/register/90-refactor.md`.
@@ -34,4 +35,6 @@ The next run is a sweep (this one was structural). Next sweep files, in order: `
34
35
-#1698 also touches `vendor.rs`, so the three `bun_vendor_preflight*` entry points (callers in `get.rs`, `agent_download.rs`, `vendor.rs`) and `StageOutcome::Unavailable`'s payload (caller `apply.rs`) wait until it merges. Check every caller file against open PRs, not only the swept file.
35
36
- Build with `CARGO_PROFILE_DEV_DEBUG=0 CARGO_INCREMENTAL=0`: a default debug build of the CLI tests exhausts the session disk allowance. CI's clippy is `--workspace --all-features` without `--tests`; the integration tests carry pre-existing lints.
36
37
-`ApiClient::with_vendor_retry` is the policy builder; a new private helper with that name collides (E0592). Grep a name before you introduce it.
38
+
-`tests/repair` has 2 chmod-based tests that fail under the root sandbox (`repair_cleanup_failure_is_reported_in_json_and_silent_modes`, `repair_exits_zero_and_stays_quiet_when_lock_file_unremovable`); they pass in CI.
39
+
- remove's ~900-line `run` split (audit note) is too big for a sweep; it wants an issue alongside T16/T17/T20.
37
40
- A shared GET must keep every caller's bounds: folding an uncapped `resp.text()` error read into the capped `PatchApi` path is what /code-review caught on #1870.
0 commit comments