fleet: the DEVICE report-only heartbeat unit (item 2 device half, split from #1221) — mesh origin + resume-anchor identity + pin 4b #1356
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1356
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Split from #1221 (Ben's "one ticket, or split 1/2 from 3" allowance, DDR/ruling 2026-09-08). #1221's build-list item 2 GATEWAY half landed (the
idss-agent-reportunit on all four gateway renders,gatewayReportUnit, bakingIDSS_NODE_ID= the founding gateway's ledger identitynode-req-0001). This ticket carries the DEVICE half of item 2, plus pin 4b.Why the device half is its own slice
The gateway reports to the control plane at loopback (
http://127.0.0.1:8080) under a deterministic identity (node-req-0001). Neither holds for a device:IDSS_COMMUNITY_ORIGINis "the mesh address".renderMemberMesh(internal/clan/netbird.go) has only the netbirdSetupKey+ManagementURL(https://mesh.<apex>:443) — that is the netbird management plane, NOT the IDSS community API. The gateway's IDSS API overwt0is a dynamic address the fleet resolves post-reboot; there is no clean origin string atrenderMemberMeshtime.node-<requestID>, not baked. Ben: "identity from the pairing-mintedenroll.json/device.keythat survive the clan update." A member device HAS a resume anchor, soreportNodeIDderivesnode-+requestID from it (agent/cmd/agent/main.go) — noIDSS_NODE_IDbake needed — but the report unit still needs a validIDSS_COMMUNITY_ORIGIN.renderMemberMesh, which emits NO systemd unit today). The stock-Ubuntu device is a non-declarative/etc/systemd/system/idss-agent.servicewritten byinternal/install(ExecStart=<bin> join). Both need a report unit; they are different surfaces.What to build
renderMemberMesh(or a sibling module the member takeover bakes) declaresidss-agent-reportrunning the member's agent binary in the report-only shape,IDSS_COMMUNITY_ORIGIN= the gateway's IDSS API over the mesh (resolve the right address — likely the community front doorhttps://<apex>or the gateway'swt0address:8080), identity from the resume anchor. Mirror the gateway's path-unit-on-binary-arrival pattern where the binary is seeded, not switch-baked.internal/installlays a secondidss-agent-report.servicealongside thejoinunit, reusing the join unit's bakedIDSS_COMMUNITY_ORIGIN; identity from the resume anchor. Clean because both are already available there.silentafter StaleAfter (the #183 B·6 leg — never proven live). Needs a live device drive.Depends on / reference
agent reportloop, sampler, monitor identity join — all merged).internal/clan/vmguest.gogatewayReportUnit.internal/clan/netbird.gomeshSelfAdmitOneshot.Found while landing #1221 item 2's gateway half.