Repository navigation
socket-patch architecture refactor: real problems only (living document) #2244
Replies: 10 comments
Register[agent] This comment is the register for the architecture refactor routine. It is rendered from Last updated 2026-11-26 · 9 runs under this charter · In flight
Next PR: #2259, a wrong refusal with a probe on Merged
The 2026-10/11 sweep PRs are listed in LeadsL01 to L18 came from the previous thread's automated audits, the later rows from this routine's runs. No person has checked them: a row is a hypothesis until its Status says it ran.
Read, not run: #1912 (the two reuse caches differ on Issues looked at:
Areas examined
Notes
|
|
[agent] 2026-11-25: architecture refactor
Chosen
The evidence is PR#2246, ready, awaiting review. Three commits after the start commit:
Leads and issues
Areas examinedThe prune GC ( Lessons
|
|
[agent] 2026-11-25: architecture refactor
Chosen
I found it by running the built binary over five small broken projects and comparing the commands, not from a lead: The evidence is PR#2250, ready, awaiting review. Three commits after the start commit:
Production +143 −80, tests +308 −3, contract +7 −7. Exit codes are unchanged (1). CI passed on Leads and issues
Areas examined
Lessons
|
|
[agent] 2026-11-25: architecture refactor
ChosenNo PR this run. Three PRNone opened. #2246 and #2250 are ready and await review. #2241 is the old charter's test-helper PR and waits for a maintainer. Leads and issues
Areas examined
Lessons
|
|
[agent] 2026-11-25: architecture refactor
ChosenA reviewer's comment on #2250, which step 2 puts ahead of any new work. The PR had two approvals and auto-merge armed, and was not merging 45 minutes later: The comment was right. With the vendor ledger unreadable,
PR#2250, ready and in the merge queue since 21:22Z (approved twice; a maintainer had armed auto-merge). One commit ( No new PR: the review comment was the run. The rest of the time went to leads, each run on Leads and issues
Seen and left: after a revert of a removed or bumped requirement, the pip reinstall advisory says "the restored requirement pins the same version as the patched build". It doesn't there, but following the remedy still leaves a correct environment. Areas examined
Lessons
|
|
[agent] 2026-11-26: architecture refactor
Chosen
Two states, each run with the built binary on Six tests fail on PR#2261, ready and awaiting review, with one check red for a cause outside it (below). Seven commits after the start commit, production +163 −26, tests +481 −15, contract +3 −2:
Nothing new is deleted or reverted: every new branch only reports. Exit codes and Local verification: clippy clean, 1081 CLI unit tests, and the CI on Leads and issues
Seen and left, each with its reason in the PR: on an empty crawl with an unreadable ledger, human mode prints the new warning and then the existing " Areas examined
Lessons
Needs a person
|
|
[agent] 2026-11-26: architecture refactor
ChosenAfter On The same state with real vlt 1.2.0 (a throwaway copy of the So the lock is back on the registry, the patched copy is still installed, a plain PR#2265, ready and awaiting review, with one check red for a cause outside it. CI on Two commits after the start commit, production +25 −11, tests +152 −1, coverage map +3 −1:
Local verification: clippy clean, 1077 CLI unit tests, and the Leads and issues
Areas examined
Lessons
Needs a person
|
|
[agent] 2026-11-26: architecture refactor
ChosenThree Gradle tests named for Two one-line mutations of production code on // core crawlers/maven_crawler.rs: the prefix is ignored for JVM caches
- if let Some(ref custom) = options.global_prefix {
+ if let Some(ref custom) = options.global_prefix.as_ref().filter(|_| false) {
// CLI commands/scan/mod.rs: the user-home note is printed under --global-prefix too
- let mismatch = (!prefixed && (global || gradle_build))
+ let mismatch = ((global || gradle_build) || prefixed)With the first, PR#2267, ready and awaiting review. CI on Two commits after the start commit, test code only, +84 −11 in three files:
With this PR's tests each mutation fails its test, at the One trade-off is in the PR for the reviewer. The note is printed only when the Gradle user home comes from the passwd home, so a scan that prints it reads the account's real Leads and issues
Areas examined
Lessons
Needs a person
|
|
[agent] 2026-11-26: architecture refactor
ChosenNo PR this run. Three routine PRs are open (#2261, #2265, #2267), so step 3 applies: open none and verify up to five leads or issues. All three are I took the issues the register listed to check first (#1926, #1917, #1899), one more whose title claims a drifted duplicate (#1860), and the oldest lead a probe could settle here (L17). Three are confirmed by running the built binary on PRNone opened. #2261, #2265 and #2267 still await review. Their Leads and issues#1917, confirmed. The NuGet crawler tests a project file's extension case-sensitively ( A project whose file is #1926, confirmed for the prune's copy. A crate So a cached blob that says nothing about the copy decides whether the record is kept, and the warning calls a file that was read, and is not the patched one, "still patched (or could not be read to tell)". The cause is #1860, confirmed for
#1899, out of charter. Its drift, the scan and the resolver classifying a store entry's children differently, was fixed by the issue's first slice (#1986): both now go through L17, rejected. A throwaway probe test, not committed, fed four Gemfiles (three shown) to the line scanner behind VEX's source-block reading ( They agree on every block socket-patch writes (an opener, Read, not run.
Areas examined
Lessons
Needs a person
|
|
[agent] 2026-11-26: architecture refactor
ChosenNo PR this run. Three routine PRs are open (#2261, #2265, #2267), so step 3 applies: open none and verify up to five leads or issues. All three are I took the four issues the register listed to check first that a run here could settle (#647, #1064, #882, #1981) and the one lead a file-only fixture could reach (L22). Two are confirmed by running the built binary on PRNone opened. #2261, #2265 and #2267 still await review. Their Leads and issuesL22, confirmed (the last bullet of #1910). Four commands unwire the same vendored Go module in a project that commits its After each of the four, #647, confirmed on
Two rows contradict what is written down. #1064, out of charter. A project with no detectable product, a saved patch, then #882, out of charter. Its dangerous case no longer reaches the Maven rewriter. Since #2052 the hosted engine runs #1981, out of charter (read, not run). Read, not run.
Areas examined
Lessons
Needs a person
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Note
[agent] This is the third architecture thread for socket-patch. It replaces #1830 (file-by-file sweeps, now closed), which replaced #560 (module-level review). Both are archived on the ledger branch under
review/.Progress: 8 problems tracked · 3 filed · 5 to verify. On GitHub: 86 open and 151 closed
arch-auditissues · 3 open and 111 mergedarch-refactorPRs.arch-refactor· issues labelledarch-audit· decisions neededRendered 2026-11-26 07:11 UTC (ledger
13f3e338) fromdoc/on thearch-audit/ledgerbranch.socket-patch architecture refactor: real problems only
Started 2026-11-25.
Charter
A scheduled routine improves socket-patch's structure, one real problem per PR. Each PR shows the problem on
mainwith a failing test or a command's output, and shows it gone after the fix. A problem counts when it is one of these:--json/--silenthandled two ways, leaked credentials, wrong exit codes,--cwdignored.These aren't enough on their own: inlining, wrappers, comments, naming, moving code, helper copies that still agree, and line counts. They are welcome only inside code a real fix already touches.
A run that finds nothing worth fixing records what it examined and opens no PR. At most 3 of the routine's PRs are open at a time, because a person reviews every one.
The full procedure is
REFACTOR.mdon the ledger branch.All reactions