diff --git a/fleetd/src/main/java/dev/ltms/fleet/Fleetd.java b/fleetd/src/main/java/dev/ltms/fleet/Fleetd.java
index ecf73e0..d06c01f 100644
--- a/fleetd/src/main/java/dev/ltms/fleet/Fleetd.java
+++ b/fleetd/src/main/java/dev/ltms/fleet/Fleetd.java
@@ -673,9 +673,9 @@ public final class Fleetd {
outageSource,
new FleetMcp.LeadSeatSource(leadSeatLookup(() -> config.get().profiles(), leaders, leads)),
// fleetd #602 gauge-wiring: threads each lead's configured configDir into the
- // context gauge — see leadConfigDirLookup's own doc for why this, not a hardcoded
+ // context gauge — see leadConfigDirSource's own doc for why this, not a hardcoded
// null, is what fleet_list's context row now reads.
- new FleetMcp.LeadConfigDirSource(leadConfigDirLookup(() -> config.get().profiles(), leaders)),
+ leadConfigDirSource(() -> config.get().profiles(), leaders),
// fleetd #361: the operator-declared peers this daemon's fleet_list should try to
// reach. Read from the SAME snapshot leadMailbox itself opened from (cfg.coordinator()),
// not the live config.get() — coordinator wiring is already boot-time-fixed (see
@@ -1611,6 +1611,27 @@ public final class Fleetd {
};
}
+ /**
+ * fleetd #602 gauge-wiring follow-up (PR #606 review comment 17353): {@code main} used to build
+ * {@code new FleetMcp.LeadConfigDirSource(leadConfigDirLookup(...))} inline, with nothing a test
+ * could call directly. Measured on that shape: replacing the whole expression with {@code
+ * FleetMcp.LeadConfigDirSource.none()} at the call site compiled with 0 errors and left the full
+ * 1822-test suite green — the daemon could be changed to always report every lead's context as
+ * {@code UNKNOWN}, forever, while every test stayed green. That is the same hand-built-vs-wired
+ * shape as fleetd #561/#248/#426/#562 ({@link #loopHealthSource}).
+ *
+ *
The fix extracts the inline {@code new} into this factory, in the same style as {@link
+ * #loopHealthSource}/{@link #capacitySource}/{@link #healthCoverageSource} — which is exactly
+ * what makes it directly callable from {@code FleetdLeadConfigDirSourceWiringTest}. That test
+ * calls this factory with real {@link FleetConfig.Profile}/{@link FleetConfig.Leader} fixtures and
+ * asserts the returned source resolves a real {@code configDir} — a property that would be false
+ * if this method's body were mutated to {@code return FleetMcp.LeadConfigDirSource.none();}.
+ */
+ static FleetMcp.LeadConfigDirSource leadConfigDirSource(Supplier