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
Part of #115 (ADR 0005, requirements 9, 28–31, 35).
Scope
Drain: a drained worker keeps its leases and receives no dispatches; worker.drain-started / worker.drain-ended.
Uplink down: no dispatches; renew/release/exec for a lease on that worker fail with WORKER_UNREACHABLE (kind: "transport"); the gateway never guesses a lease is gone before the worker's lease.expired fact arrives after reconnect.
Request dispatched then uplink lost: the client sees WORKER_UNREACHABLE; a grant that landed lives on the worker until its TTL; the fleet-wide rule catches a retry once the index is rebuilt (the documented 409 → GET loop).
Gateway restart: workers reconnect on backoff; every view and the lease index are rebuilt; clients resume renewing.
Version skew: a worker outside the gateway's protocol range is incompatible in its view with both ranges, never dispatched to.
e2e: two fake-driver workers and a gateway in one process tree; lease through the gateway, kill a worker, drain the other, restart the gateway.
Handler suites against scripted uplinks and a manually-advanced Clock: dispatch order and pass-over, stale-view NO_CAPACITY, drained and disconnected workers, fleet-wide rule, lease id routing, reconnect rebuild.
Done when
The e2e above passes and no gateway code path can touch a device or release a lease the worker has not ended.
Activity
feat(ports,daemon): the worker uplink, and a daemon that can serve ei…
feat(ports,daemon): the worker uplink, and a daemon that can serve ei…
feat(ports,daemon): the worker uplink, and a daemon that can serve ei…
feat(gateway): fleet queue, routing, lease + exec forwarding (#118)
feat(ports,daemon): the worker uplink, and a daemon that can serve ei…
feat(gateway): fleet queue, routing, lease + exec forwarding (#118)
test(gateway): pin the drain-persistence claim and turn two timeouts …
feat(ports,daemon): the worker uplink, and a daemon that can serve ei…
feat(gateway): fleet queue, routing, lease + exec forwarding (#118)
test(gateway): prove drain lifecycle, WORKER_UNREACHABLE paths, and r…
test(gateway): pin the drain-persistence claim and turn two timeouts …
test(gateway): prove drain lifecycle, WORKER_UNREACHABLE paths, and r…
test(gateway): pin the drain-persistence claim and turn two timeouts …
test(gateway): prove drain lifecycle, WORKER_UNREACHABLE paths, and r…
test(gateway): pin the drain-persistence claim and turn two timeouts …
test(gateway): prove drain lifecycle, WORKER_UNREACHABLE paths, and r…
test(gateway): pin the drain-persistence claim and turn two timeouts …
feat(ports,daemon): the worker uplink, and a daemon that can serve ei…
test(gateway): prove drain lifecycle, WORKER_UNREACHABLE paths, and r…
test(gateway): pin the drain-persistence claim and turn two timeouts …
feat(gateway,ports,http,cli): gateway skeleton — config.mode, uplink,…
feat(gateway,core,contract,daemon): fleet queue, routing, and lease +…
test(gateway,e2e): prove drain, WORKER_UNREACHABLE and reconnect rebu…
V3RON commentedon Sep 9, 2026
Implemented in PR #131 (gateway drain, WORKER_UNREACHABLE, and reconnect-rebuild failure paths with e2e coverage). Closing as done.