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
LocalAgentProviderDetector not hermetic — ignores injected PATH/home (OpenClaw discovery) #9033
PiMonoWiringTests/testLocalAgentProviderDetectorMissingPromptIsUserFacing injects an empty PATH and a missing home directory to force "OpenClaw unavailable", but the detector still reports isAvailable == true on a machine where OpenClaw is discoverable — i.e. LocalAgentProviderDetector doesn't fully honor the injected environment/home. Likely a non-hermetic-detection product bug.
Evidence
Test injects PATH → a missing dir and homeDirectory: /tmp/missing-home, expecting the local agent (OpenClaw) to be reported unavailable.
On a machine where OpenClaw is installed/discoverable, the assertion fails: isAvailable == true.
This means the detector reaches outside the injected environment (e.g. hard-coded paths or the real home) instead of honoring the provided PATH/homeDirectory.
Why this is product, not a test fix
The test is asserting a correct invariant (detection must be hermetic w.r.t. injected environment). If the detector consulted only the injected PATH/home, the test would pass. The fix is to make LocalAgentProviderDetector fully honor injected environment/home — which also makes provider detection deterministic across machines/CI runners.
Ask
Make LocalAgentProviderDetector respect the injected PATH and homeDirectory (no out-of-band discovery), then re-enable the test.
Found during macOS desktop test-suite hardening; test is currently --skip-ped with this rationale in desktop/macos/test.sh.
Parent/executor issue: #9688 — binds this issue and its siblings into one PR (Swift shadow-state census, bridge-lifecycle fuzzer, contract fixtures, adapter conformance, anti-regrowth guards) with per-child closure criteria. Sequenced after the PTT stability PR (post-#9660) to reuse its kernel-restore seam and fixture conventions.
Activity
chore(desktop/test): link skip tracking to GitHub issues
test(desktop): isolate Swift suites per-process; fix stale tests; lin…
fix(desktop): make LocalAgentProviderDetector hermetic (#9033) (#9047)
Git-on-my-level commentedon Jul 14, 2026
Parent/executor issue: #9688 — binds this issue and its siblings into one PR (Swift shadow-state census, bridge-lifecycle fuzzer, contract fixtures, adapter conformance, anti-regrowth guards) with per-child closure criteria. Sequenced after the PTT stability PR (post-#9660) to reuse its kernel-restore seam and fixture conventions.
fix(macos): converge agent runtime contracts (BasedHardware#9698)