Measured on ipad-head-cederik (node-ea866a02) on 2026-11-08, directly after the iPadOS 27.2 update.
From the 12:23:21Z heartbeat:
From the same heartbeat recent_logs:
12:21:40.522Z Discovering body for 'world-of-warcraft' in bxl1-mercator-39/cloud-seven
12:21:42.125Z Body host 10.10.100.12 did not answer within 1000ms
12:21:43.191Z Body host 11.0.11.24 did not answer within 1000ms
12:21:43.194Z Found cosmic-pretzel-98 (stream_count:0, host:10.10.100.12)
12:21:43.195Z Pairing with cosmic-pretzel-98 at 10.10.100.12
12:21:48.210Z Pairing failed: The request timed out.
The body address is a mesh address. The tunnel is the only route to it. The tunnel was down, so the pairing could not succeed.
The application adopts an installed tunnel at launch but it never connects it.
In AppState.restoreEnrollmentIfNeeded:
Task { await WireGuardManager.shared.loadExisting() }
The comment on loadExisting states that it adopts the profile "without touching the network". That is correct behaviour for a status read. The defect is that nothing else ever calls start().
The only two calls to start() in the whole application are both inside the WireGuard panel:
There are no on demand rules. A search for isOnDemandEnabled, onDemandRules and NEOnDemand across Sources returns nothing. The stream start path does not check the tunnel and does not try to raise it. The heartbeat tick does not either.
The heartbeat value is disconnected and not not-installed. WireGuardManager.heartbeatState returns not-installed when isInstalled is false, so the profile and the stored private key both survived the operating system update. Only the tunnel session dropped.
Issue #512 moved the WireGuard panel behind an operator PIN, for good reason: it is a destructive surface on a public kiosk. The result is that the only control that can raise the tunnel is now behind that PIN. A head that loses its tunnel cannot recover without a person who knows the PIN.
There is also nothing on this iPad to restart the application after a reboot. ipad-head-cederik has no SimpleMDM record, so it has no Single App Mode payload. So a reboot gives a head that is enrolled, heartbeating over the public internet, reporting healthy, and unable to stream anything.
The operator sees only "Pairing failed: The request timed out." That message does not name the tunnel, so it does not point at the cause.
Connect at launch. When isInstalled and hasStoredConfig are both true, call start() after loadExisting(). This touches no network and reuses the stored key, exactly as the existing reuse path in setUpWireGuard already does. Small and safe.
Set on demand rules on the tunnel profile. This is the correct behaviour for a kiosk, because iOS then raises the tunnel whenever it is needed, with no application running at all, and it survives a reboot. A deliberate Disconnect must clear the rules first, or the two fight each other.
The second is the real answer for an unattended head. The first is worth having in any case, because it costs almost nothing.
A third, separate improvement: name the tunnel in the failure. When a body host does not answer and wireguard is not connected, the error the operator reads should say that the tunnel is down, not only that a request timed out.
Tag v0.5.1 = 895501f on main. Validate run 42489152740 green, release run 42489619629 all 30 steps, Build 212: VALID read live from the log.
Both mechanisms are in:
Three holes closed while writing it:
The launch rule is a nonisolated pure static with five cases in Tests/TunnelRestoreTests.swift, wired into both workflows. The runbook gains the diagnostics table that tells disconnected from not-installed. The testbook gains fourteen steps across an application restart, an iPad restart, a deliberate disconnect and a removed tunnel.
STILL OPEN, and why this issue stays open: the operator reads only "Pairing failed: The request timed out.", which does not name the tunnel. Device verification is also outstanding. ipad-head-cederik is still on v0.4.0, so nothing has run this yet.