mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 18:45:53 +00:00
3bbbee323f
The fast-path nailed identity but emitted the bare-guest access path, so for a service running in Docker inside an LXC/VM (e.g. Home Assistant Container) it told the Assistant to 'pct exec' into the guest shell — wrong: the service is one layer deeper. Access topology is index-level 'how to reach it' (only a probe can know a service runs in a nested container), so re-add a LIGHT nested-container probe (docker ps names+images, not the deep enumeration) to the LXC/VM surface sets. When a nested container matches the identified service, layer cli_access: '... docker exec <container> <command>'. Identity stays instant from the name; the access path is corrected by one cheap command when the agent is connected, and falls back to bare-guest guidance when not. Verified live: HA LXC 101 (homeassistant container under Docker, alongside watchtower) now yields cli_access including 'docker exec homeassistant', in ~1s. Tests cover the match (HA by name, postgres by image), non-matches (watchtower, unrelated service, no docker), and the cli_access layering.