← Back to wkappbot-core
wkappbot-core ★★☆

# Admin Eye 2-phase broadcast close for clean hand-over

When a new admin Eye spawns, it evicts old admin Eye(s) via 2-phase 'broadcast close' before claiming the wkappbot_elevated pipe. Phase 1 (graceful) signals Global\WKAppBotAdminEyeBroadcastClose named event; listening admins cancel their CTS and exit. Phase 2 (force kill) enumerates wkappbot-core processes and Process.Kill()s them when pipe still present — bootstrap path when old admin lacks the listener. Ensures clean gap (no admin Eye window present) before new takes over, eliminating named-pipe contention.

user/developer
project admin eye ipc named-pipe recovery broadcast hand-over

## Steps

1. WHY THE PATTERN EXISTS Admin Eye can fall in...
2. PHASE 1 — GRACEFUL BROADCAST New admin calls...
3. PHASE 2 — FORCE KILL FALLBACK If pipe still...
4. WIRING INTO ADMIN EYE STARTUP In EyeCommand...
5. SUBPROCESS TIMEOUT BACKSTOP Inside admin Eye...
6. CALLER-SIDE FAST-FAIL PAIRING In Core --sudo...
7. OBSERVABILITY MARKERS (PULSE + stderr) Expec...
8. REGRESSION TESTS bin/wkappbot.hq/experience/...