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 1–9, 20–25, 31–33). The fleet becomes visible before it is routable, which is what the console (#88) needs first.
Scope
config.mode: "worker" | "gateway"; a gateway starts no drivers, no roots, no reaper/health/capacity, always listens on HTTP and its socket. Worker keys gateway.url, gateway.token, gateway.label.
Token role worker (join tokens via simlock token create --role worker); a worker token on a /v1 route is 403.
Uplink ports (UplinkListenerFactory gateway-side, UplinkConnector worker-side) with WebSocket adapters; in-memory fakes for tests. Worker dials on start and reconnects with exponential backoff; the gateway sends hello and negotiates the protocol range; the worker grants the session admin.
Worker views: on connect the gateway calls status.get, list.get, catalog.get, events.subscribe; refreshes on capacity/lease events plus a slow tick. Reachability is the uplink; gateway.disconnectedRetentionMs (24 h) forgets a disconnected worker, never while it holds known gateway leases.
worker.list|drain|undrain|remove (admin) and GET /v1/workers, POST/DELETE /v1/workers/{id}/drain, DELETE /v1/workers/{id} (WORKER_CONNECTED on removing a connected one).
status.get on a gateway: same shape plus workers[], workerId on every device and lease, mode in the daemon block. catalog.get: union annotated by worker. Worker events republished with workerId; gateway events worker.connected|disconnected|removed|drain-started|drain-ended documented in EVENTS.md.
src/gateway/ boundary test: nothing from drivers; from core only queue and bus modules.
Two fake-driver workers join a gateway; simlock status against the gateway shows both with capacity, leases, and catalog; killing one flips it to disconnected without polling.
Activity
refactor(contract,cli,config): mode lives in status.get's daemon block
docs: say what the code does about exec refusals, streaming and modes
feat(contract,core): config.mode, worker views and the gateway error …
docs: gateway and worker modes, the uplink, and the worker surface
fix(gateway): bound worker RPCs and stop a stale link from disconnect…
docs(gateway): replace the stale "gateway is inert" paragraph (D4)
fix(core): reject a gateway with http disabled; document gateway's re…
feat(contract,daemon,cli,http): settle device.exec's authorization, s…
refactor(contract,cli,config): mode lives in status.get's daemon block
docs: say what the code does about exec refusals, streaming and modes
fix(core): reject a gateway with http disabled; document gateway's re…
feat(contract,core): config.mode, worker views and the gateway error …
docs: gateway and worker modes, the uplink, and the worker surface
15 remaining items
fix(gateway): bound worker RPCs and stop a stale link from disconnect…
docs(gateway): replace the stale "gateway is inert" paragraph (D4)
feat(gateway): fleet queue, routing, lease + exec forwarding (#118)
feat(contract,daemon,cli,http): settle device.exec's authorization, s…
refactor(contract,cli,config): mode lives in status.get's daemon block
docs: say what the code does about exec refusals, streaming and modes
fix(core): reject a gateway with http disabled; document gateway's re…
feat(contract,core): config.mode, worker views and the gateway error …
docs: fix the mode/gateway contradiction, spell out an agent token's …
docs: gateway and worker modes, the uplink, and the worker surface
fix(gateway): bound worker RPCs and stop a stale link from disconnect…
docs(gateway): replace the stale "gateway is inert" paragraph (D4)
feat(contract,daemon,http,cli): device.exec runs simctl/adb on the wo…
feat(gateway,ports,http,cli): gateway skeleton — config.mode, uplink,…