fleetd #589 (Groups 1 & 2): pin 6 main() wiring sites with named factories #599
Reference in New Issue
Block a user
Delete Branch "worker/589-f64303-2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes the Group 1 (exhaustion/quarantine) and Group 2 (CB-596 credential policy) portion of fleetd #589, strictly within Fleetd.main()'s :214-:468 range (Group 3 at line 500+ is handled by a concurrent worker, worker/589-fcd2aa-1, on a separate branch).
What changed
Extracted 6 previously-inline wiring expressions in main() into named, package-private static factories on Fleetd, following the FleetdLoopHealthSourceWiringTest (#584) shape, each with a new behavioral wiring test:
Group 1
forwardingExhaustionSink(was inlineExhaustionSink.forwardingTo(exhaustionSinkRef::get)at :221)publishExhaustionSink(was two untested statements at :468 building the sink and.set()-ing it)liveExhaustedPatterns(was inlinenew LiveExhaustedPatterns(...)at :411)exhaustedPatternLookup(was an inline lambda at :412-416; losing this wiring is the worst-case regression in the ticket - a real usage-limit refusal would stop being classified as BACKEND_EXHAUSTED and would be handed back as real completed work)Group 2
claudeCodeLauncher(was inlinenew ClaudeCodeLauncher(...)at :230, whose memberCredentials supplier argument is the CB-596 credential-shadowing policy)openCodeLauncher(was inlinenew OpenCodeLauncher(...)at :237, same memberCredentials argument)Verification
For each of the 6 sites: applied the named inert mutation, confirmed the new test failed BY NAME (named AssertionFailedError, not a crowd failure), restored, confirmed GREEN again; then separately applied a behavior-preserving rewrite (reformatted the call across lines and extracted the wired argument into a local variable) and confirmed the test stayed GREEN, ruling out a disguised source-text test. No
Files.readString/source.containsassertions anywhere.Full suite: 1789 -> 1799 tests (+10, matching the 10 new tests added), 0 failures, 0 errors.
mvn -o clean install: BUILD SUCCESS (verified with unpiped, captured exit status per the ticket's mid-task correction comment).No other files touched;
.mcp.json,opencode.json,.autoenv,fleetd.yaml, andwiki/were not touched.