Repository navigation
Warn the host when guests cannot reach each other - #156
Conversation
Guests link to each other through the host's rendezvous, but a guest's registration state only showed in the call report, never in veil.log. A failed guest-to-guest link could not be traced from logs. Guests now log when they register, and why not when they cannot. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Guests link to each other only through the host's own rendezvous. A guest that reached the host but not the rendezvous got no links to the others, and nothing said so: "Guests apart" only fired when the router refused the second port, not when it opened but could not be reached. The rendezvous server now offers a Roster of registered keys. The host compares it with the call's members every 2 s. A member not registered after 10 s is named in veil.log, and while two or more others are in the call the host sees "Guests may not see each other". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. Walkthrough
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
A member dials a joiner as soon as the host's plan names it, often before the joiner's presence has registered on the rendezvous. The server recorded the request but never delivered it, so the asker waited out its 5 s answer timeout and only a later redial could succeed. Register now sends the new member any unexpired requests for it. Only the target learns of them, so the asker still learns nothing until it accepts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
|
Pushed one commit on top (55f99b4): the rendezvous now passes a waiting request on to a member when it registers. In Martin's log for the 06/12 call, his introduce/relay request to Jimmy went out the moment Jimmy joined and timed out ("rendezvous did not answer in time"). Test: 🤖 Generated with Claude Code |



What and why
Guests reach each other only through the host's own rendezvous (introductions for a punch, then its relay). In a three-way call on 06/12/2026, both guests linked to the host directly but never to each other. The Linux guest's introduce and relay requests to the Windows guest got no answer, so the Windows guest was either not registered on the rendezvous or never accepted. The logs could not say which. Guests never logged their rendezvous state, and "Guests may not see each other" only fired when the router refused the second port. In this call both ports mapped, so the host saw no warning.
This PR adds the missing evidence and a warning that follows the real failure:
veil-rendezvousgains a read-onlyRoster(keys only, held weakly) fromRendezvousServer::roster(). Every 2 s the host compares it with the call's members (engine/host/apart.rs). A member that is not registered 10 s after it joined is named once in veil.log. While two or more others are in the call, the host sees "Guests may not see each other", unless the router line already says so. A member that registers later is logged and the warning clears.rendezvous: registered in the call's roomorrendezvous: not registered: <reason>at the start and on every change (helper_evidence.rs).The next real three-way call should confirm the cause. If the log shows the guest was never registered, the planned follow-up is to serve the rendezvous on the call's own port, so a guest who reaches the call also reaches the rendezvous.
Reviewer notes:
server.rsonly changesStateandroomstopub(crate)and addsroster(). The new code is inroster.rs, which keeps the file under the size limit.docs/TRANSPARENCY.mddoes not change.Checks
apart.rsunit tests,veil-rendezvous/tests/roster.rs, the guest log line inhelper_evidence.rs)cargo clippyclean for the crates I changed (veil-app,veil-rendezvous, all targets)docs/TRANSPARENCY.mdupdated, if this changes what Veil protects or what others can see (not needed: nothing new goes on the network)unsafe, and any new dependency passestools/licences.py(no new dependencies)Not yet tried in a real call. A dev build of this branch is running on the host PC for the next test.
🤖 Generated with Claude Code
Summary by CodeRabbit