Repository navigation
docs(adr): 0054 a lease holder tunnels device ports to its own machine - #1111
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nel only Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…weep Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rule 2) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Back to draft: the PR-body check needs a Written by an agent. |
Findings (round 1, ADR-only: spec lens, Opus/high)Commit: 2e09e78
Assessment: complete against the ADRs and binding rules. No issue body was in the inputs (the PR closes no issue), so "every question the specification leaves to a decision" was not checked against #1110. Rerun: round 2 after fixes. Written by an agent. |
Decision takenThe ADR review (round 1, R1 and R2) found two questions that the spec left open. Both are decided here, pending the maintainer. #1112's body now says the same, with Tests lines that pin each one. R2: tunnel rules on enrolled phones. Reclaim and the start sweep ran
Why (a): it keeps the safety rule as it is, it is the smaller change, and it is easy to widen later. Reverting means option (b): a rule amendment, plus putting the phone branch back in R1: the loopback listener accepts any local connection. While a tunnel is open, another lease's device on the same worker can reach the holder's tunnelled port: an emulator through 10.0.2.2, or any device through an
Why (a): it is what the code does today, and the exposure is opt-in. Reverting means option (b), which would be a follow-up task under #1110. Written by an agent. |
Decision takenThe ADR review (round 2, R5): a tunnel rule left on a phone (after a daemon crash or a failed removal) keeps pointing at a port in 47000-47999. If nothing reserves that port, a later tunnel on another lease could get it, and would then receive that phone's connections for a different holder.
Why (a): it closes a path from one lease into another, and it only reads phone state, so safety rule 1 holds. Reverting means dropping the read of phone rules at start and at reclaim. Written by an agent. |
… the no-leak claim to emulators
Findings (fix-check, 3f5537e)R4 and R5 resolved (spec lens, Opus). Note, nonblocking: ADR 0054 line 117 "On a leased device ... the device's reclaim removes the rules" now follows the phone start-read, so it can read as covering phones; lines 97-106 state phone reclaim removes nothing. Assessment: complete. Written by an agent. |
Review ledgerRound 1: 2e09e78 {"findings":[{"id":"R1","role":"spec","class":"undecided trust boundary; false consequence","outcome":"fixed","path":"docs/internal/adr/0054-a-lease-holder-tunnels-device-ports-to-its-own-machine.md","round":"1","fix":"6788e5bc0b71549b33a2cf233189a89b43c46255"},{"id":"R2","role":"spec","class":"safety 1, safety 9","outcome":"fixed","path":"docs/internal/adr/0054-a-lease-holder-tunnels-device-ports-to-its-own-machine.md","round":"1","fix":"6788e5bc0b71549b33a2cf233189a89b43c46255"},{"id":"R3","role":"spec","class":"adr-index: old Status points at narrowing ADR","outcome":"fixed","path":"docs/internal/adr/README.md","round":"1","fix":"6788e5bc0b71549b33a2cf233189a89b43c46255"},{"id":"R4","role":"spec","class":"false consequence after narrowed reclaim","outcome":"fixed","path":"docs/internal/adr/0054-a-lease-holder-tunnels-device-ports-to-its-own-machine.md","round":"2","fix":"3f5537e0eaf852c920874bf3f42a7b2d98c0fc66"},{"id":"R5","role":"spec","class":"undecided cross-lease routing from stale phone rule","outcome":"fixed","path":"docs/internal/adr/0054-a-lease-holder-tunnels-device-ports-to-its-own-machine.md","round":"2","fix":"3f5537e0eaf852c920874bf3f42a7b2d98c0fc66"}]}Written by an agent. |
Review notesNot blocking, not verified. Each is one reviewer's claim.
Written by an agent. |
Decisions confirmedThe maintainer confirmed the delivery decisions on 2026-11-01:
Written by an agent. |
ADR 0054 for #1110, Accepted. A new optional
tunnelmodule (off by default) lets a lease holder carry TCP between its own machine and its leased Android device,reverseandforward, over one lease WebSocket and one uplink channel persimlock tunnelrun. It narrows ADR 0005's port-forwarding non-goal; ADR 0005's one-inbound-port rule stands.This PR is the bottom of #1110's stack and merges with the feature's last task.
🤖 Generated with Claude Code
Status
Review: fix-check passed, 5 fixed; flip to Accepted at 1075c97 (adr-flip-check ok 0054); index row order fixed at 7241ba8 (the same row moved, verified by: coordinator) Gate: running
Review
Spec review: 5 blocking, 5 fixed, 1 notes. Code review: skipped. Claims review: skipped.
Rounds: 2. Tokens: 29.9M.
Runs: 15. Cost USD: 10.9339. Agent seconds: 7632.
Assessment: complete
Written by an agent.