Repository navigation
fix(cloud): remove the retired relay client, keep the watch exchange - #2114
Merged
Merged
Conversation
Core stopped dialling the relay in #1687 and Uplink.Run never reaches the relay code. This is #1691 on current master: the dial loop, hourly handle rotation and epoch correction, the dead man's switch, the rendezvous handle, the relay's session table and the tests that drove a fake relay go. The tests that still matter run through the FTW Cloud tunnel. Unlike #1691, the watch exchange stays: #1819 moved it onto FTW Cloud. RotateRendezvousSecret goes; only a test called it. The box still puts the secret in the QR, so the pairing QR keeps its six segments. The software identity's route lookup asks for cloud.ftw.energy. Refs #1691 Signed-off-by: Fredrik Ahlgren <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
The relay and the escrow are gone, so the three lines that named them now name FTW Cloud. The web client's working copy changes the same way in its paired pull request. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Fredrik Ahlgren <[email protected]>
Comments in api_app_link.go, appproto's Tick and appenroll's package doc still named the relay as a live carrier. docs/architecture.md said the fleet report goes through an Oblivious HTTP relay once a release names one, and from a box that said yes; it goes straight to FTW Cloud, only with Cloud on. ADR 0008 gets a dated note that ftwcloudd no longer serves /v1/ohttp (srcfl/ftw-cloud#72). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Fredrik Ahlgren <[email protected]>
frahlg
added a commit
that referenced
this pull request
Nov 28, 2026
The energy report waited for an independent relay that never came, so no box sent one and stats.ftw.energy showed no energy. The box now posts it to https://cloud.ftw.energy/v1/energy, as the fleet report goes to /v1/fleet (Fredrik, 12 November 2026). The body is the padded inner request (reportwire), unsealed, as message/bhttp; only a 204 counts. FTW Cloud sees the box's address while the request is open and keeps neither the address nor the report. It goes only with FTW Cloud on under the current terms and never for a site a partner controls: the sender reads the one statistics answer from #2112. The energy report has no sealed path any more: FTW Cloud's OHTTP gateway is gone (srcfl/ftw-cloud#72), so the sender always uses the direct client and the Settings preview drops its relay field. The sealed half of statsrelay stays, since fleetping.RelayProvider still calls it. Rebased onto master after #2112 and #2114. Settings, the config example, main.go, ADR 0008, architecture.md and protocol-cloud.md say where the report goes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Fredrik Ahlgren <[email protected]>
frahlg
added a commit
that referenced
this pull request
Nov 28, 2026
The energy report waited for an independent relay that never came, so no box sent one and stats.ftw.energy showed no energy. The box now posts it to https://cloud.ftw.energy/v1/energy, as the fleet report goes to /v1/fleet (Fredrik, 12 November 2026). The body is the padded inner request (reportwire), unsealed, as message/bhttp; only a 204 counts. FTW Cloud sees the box's address while the request is open and keeps neither the address nor the report. It goes only with FTW Cloud on under the current terms and never for a site a partner controls: the sender reads the one statistics answer from #2112. The energy report has no sealed path any more: FTW Cloud's OHTTP gateway is gone (srcfl/ftw-cloud#72), so the sender always uses the direct client and the Settings preview drops its relay field. The sealed half of statsrelay stays, since fleetping.RelayProvider still calls it. Rebased onto master after #2112 and #2114. Settings, the config example, main.go, ADR 0008, architecture.md and protocol-cloud.md say where the report goes. Signed-off-by: Fredrik Ahlgren <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
frahlg
added a commit
that referenced
this pull request
Nov 29, 2026
Core stopped dialling the relay in #1687 and #2114 removed its client. Handler.Tick and agentTick stayed, with only tests calling them, and comments and config.example.yaml still named the relay as the way a phone reaches the box. Remove Tick, its cadenceLeft counter, agentTick and errAgentEnded. A session through FTW Cloud streams with Push and Beat, and the agent sweep and revocation end an agent's holds and sessions. Tests that drove Tick now use Push, or Beat with the clock for a hidden session. Comments now name FTW Cloud where they named the relay. Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Core stopped dialling the Frankfurt relay in #1687 (v0.147.0), and the watch's exchange moved to FTW Cloud in #1819. The relay client stayed in the source anyway: the dial loop, hourly handle rotation and epoch correction, the dead man's switch that posted to the relay's HTTPS side, the rendezvous handle, the relay contract test and their fixtures.
Uplink.Runnever calls any of it. Software identity also still asked the kernel for the route torelay.ftw.energy, a host Core no longer uses.#1691 removed all of this in October but no longer applies to master: #1819 put the watch exchange on FTW Cloud, so the exchange code #1691 deleted is live again.
Change
This is #1691 rebased onto current master, and it supersedes #1691.
appuplink:client.gokeeps only the session tables FTW Cloud carries (the tunnel and the watch exchange). Gone:deadman.go,rendezvous.go, the relay'ssessionstable insession.go, and the tests that drove a fake relay (relay_test.go,rotation_test.go,deadman_test.go,uplink_test.go,relay_contract_test.go,legacy_test.go). The tests that still matter run through the tunnel, as in fix(cloud): remove retired relay code and DNS dependency #1691 (site_test.go,tunnel_test.go,cmdlog_test.go,arrival_test.go,agents_test.go).appuplink/exchange.go,appproto/exchange.go,appproto.Config.Exchange, their tests andtestdata/exchange-vectors.json. The watch uses them through FTW Cloud.appenroll:RotateRendezvousSecretgoes; only a test called it. The box still mints the secret and puts it in the QR, so the pairing QR keeps its six segments, which the iPhone, Android and web parsers check.gatewayidentity: the route lookup asks forcloud.ftw.energy. The identity is the answering interface's MAC, so it does not change.app link ready transport=cloudrather than naming the relay.docs/protocol.md: three lines named the relay and the escrow; they now name FTW Cloud. The web client's working copy changes the same way in its paired PR, srcfl/ftw-webapp#152, which removes the web client's relay and escrow code.Not in this PR:
statsrelay,protocol/ohttp,protocol/reportwireandfleetping.RelayProvider. No build pins a relay, so they send nothing today, but open #2007 builds the energy report's direct path to FTW Cloud onstatsrelayandreportwire, and #2112 asks for #2007 to land after it. Removing them here would undo that PR. They can go once the owner decides #2007.For #2007: srcfl/ftw-cloud#72 removes FTW Cloud's OHTTP gateway, so
https://cloud.ftw.energy/v1/ohttpanswers 404 once it deploys (501 today). #2007 must not send anything there. Its sealed path throughstatsrelaywould have no gateway. Its directPOST /v1/energystays, and ftw-cloud#72 keeps that route.Second commit: a few comments in
api_app_link.go,appprotoTickand theappenrollpackage doc still named the relay as a live carrier; they no longer do.docs/architecture.mdsaid the fleet report goes through an OHTTP relay once a release names one, and from a box that said yes. It now says the report goes straight to/v1/fleet, only with Cloud on. ADR 0008 gets a dated note that/v1/ohttpwas removed.appproto.Handler.Ticknow has only test callers, so it could go in a follow-up.contract/registry.yamlis unchanged; therelaycarrier name stays for the clients.Evidence
Refs #1691
Refs #2112
🤖 Generated with Claude Code