stage-foreign-restart-452
Prompts
Fix carlos/platform#452 overnight while Paul is asleep: carlos-stage rolled back a healthy titogo release (2bf0a40) as "did not come up" because titogo-controld restarted the same unit at the same second as the staging pass ("systemd restarted it (new invocation)"). The staging/adopt "did it come up" check should survive a restart it didn't make: if the unit is active, running the new target, and healthy by whatever proof the check already uses, a restart by something else onto the same new build counts as a pass. If the invocation changes mid-check, keep checking for the remaining time instead of failing at once. Only fail when the new build genuinely doesn't come up (crash loop, or still running the old build at the deadline). The failure message should say when the extra invocation wasn't a crash-restart, or at least stop implying a crash. Fix the root cause in the check itself, not by special-casing titogo. Don't widen into a redesign. TDD; independent review from Astra via codex; push the branch and link it from a reply on #452. Do not merge, tag, release, roll, or touch production.