Repository navigation
Collect live fleet interface and route evidence for local GroupMind - #150
Conversation
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 59f4b7cfe5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if(!/^[a-zA-Z0-9_-]+$/.test(peer.id||'') || isIP(peer.address)!==4)throw Error('Peer requires slot id and literal IPv4'); | ||
| if(os!=='linux')continue; | ||
| const output=command('ip',['-j','route','get',peer.address]);let route; | ||
| try{route=JSON.parse(output)[0];}catch{continue;} |
There was a problem hiding this comment.
Distinguish failed route collection from removed links
When ip is missing, times out, or returns malformed output, run returns an empty string and this catch silently omits the configured peer. mergeNetwork then treats the result as a complete inventory, and publishNetwork patches away the peer's existing link and independent transfer measurement. Thus a temporary collection failure permanently deletes previously collected data even though the peer is still configured. Track collection failures and either abort publication or preserve the affected records, while still removing peers genuinely absent from the configuration.
Useful? React with 👍 / 👎.
Collect live Linux interface and route evidence for the Fleet Connections map. Reports canonical subnets, authorized host addresses, interface kind, readable NIC speed and timestamped route evidence; it does not invent remote interfaces or throughput.
Publishing is explicit and patches only network on an existing device slot. Configured localhost/tailnet API targets are supported and redirects rejected. Route changes invalidate retained transfer measurements; removed links disappear on refresh. macOS physical kinds and Linux InfiniBand remain unknown until identified reliably.
Validation: eight targeted tests cover route classification, canonical prefixes, measurement invalidation, peer removal, publication shape and destination validation. No installation or production publication. asus1 has no Node on SSH PATH; a snapshot bridge/runtime preflight is required. Local asus3 GroupMind runs old code and needs compatibility review before fleet publication there.