Repository navigation
test(j5): a peer live test can start two servers the peering check finds a route between - #1124
Conversation
…nds a route between In --peer, both test servers listen on loopback, where a server offers the peering check no address. Every dialog then says it found no route and asks for one, so the state a person usually meets could not be tested or captured. --peer --reachable starts both servers on every interface, as the phone mode does for its one server. Each then offers this machine's network addresses and the check finds a route. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
A link's tools take plain http only at a Tailscale name or IPv6 address. On 0.0.0.0 the servers offered IPv4 addresses only, so the check found a route for messages that tools were refused on. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Problem
In a
--peerlive test, both servers listen on loopback, and a server on loopback offers the peering check no address. Every peering and linking dialog on the rig therefore says it found no route and asks for an address. The state a person usually meets, where the check succeeds and nothing is asked, could not be tested or captured. It came up in the review of #1119, whose captures all show the "no route" state.What changed
--peer --reachableis a third peer mode. It starts both test servers on every interface, IPv4 and IPv6 (--host ::), much as--mobile phonealready does for its one server. Each server then offers this machine's network addresses, and the check finds a route.IPv6 is included because a link's tools take plain http only at a Tailscale name or IPv6 address (upstream's rule in
PeerLinks.ts). A first tester pass on0.0.0.0found a LAN route that messages used and tools were refused on. Tools between the two servers therefore work only when the machine is on a tailnet; the script's output and the skill say so.It is a mode, not a setting, so
restartkeeps it and a plain--peerstart on that home is refused, like every other mode.The dev runner binds a server with a web client to loopback or to every interface, never to one address, so the mode needs no address from a personal config file.
The two servers are still peered through
127.0.0.1, as in--peer.--peeritself is unchanged, so the "no route" state stays reachable. The skill now says why its dialogs ask for an address, and what to type.The servers are reachable from this machine's LAN and Docker networks while they run. They are isolated test homes and admit only a device with a pairing link. The script's output says so, as it does for the phone mode.
Live testing
Run by hand on this branch, not by a tester:
adc201fce7:--peer --reachablebuilt and started both servers.ssshowed both server ports on*(every interface, both families) and the web port on127.0.0.1. Each server answered/.well-known/t3/environmentat this machine's Tailscale IPv6 address and at127.0.0.1.removestopped both and deleted the home.192739e6ab, when the mode bound0.0.0.0:restartbrought both back in the same mode, and--peeron that home was refused with the mode message. Not repeated at the head: the bind address is the only thing that changed.A Peer Agent tester (GPT 6.1 Sol) ran the #1004 stack on this script twice:
192739e6ab: the check found a route with no address typed, and the Link dialog showed its ordinary state. One direction's tools were then refused, which is the IPv4-only problem above.adc201fce7: pass. Both server ports listened on every interface, the check chose the Tailscale IPv6 address, and Link reported messages and tools both ways with no address typed. The captures are on feat(web): one dialog links servers, after adding one and from an agent's request #1119.Not exercised: the mode on a machine with no tailnet, where the check still finds a route for messages and tools are refused.
Checklist
FORK.md(case text and file-table row) in this PR: none editeddocs/j5/product/upstream.md: noneAGENTS.md): the rig's usage text, itsrebuildhelp and thej5-live-testskill name the modedocs/j5/product/and user docs rewritten where this changes them: none apply; the skill is updatedClaude Fable 5.2, in Claude Code through J5 Code.
🤖 Generated with Claude Code