consent: founding gateway grant carries a mesh admission it can't redeem (no netbird) #908
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
2 participants
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#908
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?
The failure
consentis the last of 6 legs and the only red (artifacts/legs.json: 5 green, 1 red, 0 skip;artifacts/verdict.json"firstRedLeg": "consent"). The terminal join on the droplet exited 1 while redeeming its grant:The missing binary is the symptom. The defect is that this grant had a mesh admission to redeem at all, and that the admission it carried is a placeholder that could never have redeemed.
Evidence
1. The founding gateway was handed a fabricated mesh admission.
state/enroll.json, requestreq-0001— the one and only machine on this drive:That
setup_keybase64-decodes to2c 78 a4 8b 3d 0e 8b 64 b6 4d 15 81 11 e3 fd f5 58 4f c2 66 e2 f3 8e d7 2e f8 5e 8c e2 ab 06 09— byte-identical to the argv in the error line above (,x\xa4\x8b=\x0e\x8bd\xb6M…). It is 32 raw random bytes, not a NetBird setup key;mesh.internalis a non-resolvable placeholder management URL. Sonetbird uphere would have failed even with the binary on the box: installing the mesh client cannot turn this leg green.2. This machine is the mesh anchor — there is no mesh for it to join.
state/founding-state.json:"founded": true,standup.node: "node-req-0001",standup.gateway_ip: "170.64.179.20",access.kind: "self-hosted". Arole: gatewaygrant on the founding machine should carry no mesh admission.3. HEAD's netbird fix did not fire on this drive.
artifacts/verdict.jsonpins"commit": "d53a4de3c6c705e0e3502c796fedf40d5e10d4e0"— the commit whose own message reads "install: the doorway lands the mesh client — since #843 the agent runs netbird up at the operator's approval, and a plain-Ubuntu self-hosted box has none (#788 drive 161538Z red at consent; GOTCHAS 108)". Yetgrep -i 'netbird\|meshup\|wt0' logs/droplet-journal.txtreturns zero matches across all 140 KB, while the same journal shows the doorway landing and starting the agent seconds earlier:So the doorway ran and did not land netbird. Whether that is a stale install payload (
artifacts/host.json:"payloadMode": "/home/dev/swarm/rehearsal-payload") or a fix that no-ops on this path is not decidable from inside the run directory.4. Nothing on the box crashed.
logs/droplet-units.txt—=== systemctl --failed ===is empty, andss -tlnpshows onlysshd:22andsystemd-resolve:53. The agent exited 1 on its own join; no unit failed, no health probe was ever reached.This is NOT the known frontier
The brief names the KNOWN frontier as "pairing never flips — the own-VPS carrier issue named in legs.json's skip reasons."
legs.jsonrecords no skipped legs and no skip reasons at all (verdict.json:"skip": 0), and pairing did flip on this drive:state/enroll.jsonreq-0001 is"status": "approved", andstate/founding-state.jsonlogs the event"gateway paired and approved as node node-req-0001 — probed 2 vCPU · 4 GB · 76 GB meets the minimum"withstandup.step: "reachability". This red is past the named frontier, not it.No live box was offered
No live-box section was appended to this brief — no access line, no read-only limits — so I asked the droplet nothing and diagnosed from the harvested logs alone. For the record the box was still answering at harvest time (
logs/droplet-do-forensics.txt:tcp/22: a FRESH connect succeeded — the box answers, whatever ssh did, droplet595653034clan-lab-rehearsal-f1ef1058, statusactive), so a re-run with an access line could still confirm §3 by checkingcommand -v netbirdon it.What is absent from the harvest
artifacts/journey.jsonis{"rows": null, "fault": null}— the drive died atconsent, before any founding rows exist. Expected, not a gap.logs/broker-journal.txt— harvest failed by design:ssh: connect to host 100.98.48.68 port 22: Network is unreachable… "a drive on an off-mesh host harvests nothing by design and the drive's verdict does not depend on it (#681)".logs/guest-*.log,logs/guest-journal.log,logs/droplet-caddy.txt— all-- No entries --; no guest VM and no Caddy ever came up, consistent with dying before deploy.logs/helper.logis 0 bytes;logs/state-logs.logisERROR: no state logs directory … ENOENT;logs/qemu.log/host.json"qemu": "exit ENOENT"— a real-droplet drive, so no qemu is expected.The run directory's own healer already claims a fix
logs/healer-claude.outrecords{"action":"healed","commit":"01c12ed3…"}and asserts the production fault was fixed on main by3141ddd1(internal/enroll/community_ca.gomeshAdmissionFor,internal/join/land.go) which "landed 18s after this drive ended — the drive ran on the stale parentd53a4de3", and that3141ddd1left the seam double behind (internal/enroll/enrolltesting/granter.go:44buildingMeshAdmission{randBytes, "mesh.internal", randBytes}for every role, so thedev-tagged helper would still redeem nothing). I could not verify any of that — the repo is outside this session's readable root, andlogs/healer-claude.errshows the healer's own rebase left a conflict ininternal/enroll/enrolltesting/granter.go. Treat it as a lead, not as established.Suspected layer
Product, in the enroll/grant-minting seam (the mesh admission is minted role-blind), with a harness contributor in §3 (the drive ran against a commit whose install payload did not carry the change it advertises). Not infra: the droplet was healthy, reachable, and had no failed unit.
What plugging it needs
role: gatewaygrant must carrymesh == nil; only joining nodes get an admission. Add the invariant as an assertion in the ledger's approve path so a placeholder can never reachexec.{randBytes, "mesh.internal", randBytes}— this is exactly the gaphealer-claude.errshows unresolved ininternal/enroll/enrolltesting/granter.go.mesh.internal+ random-bytes keys unminatable. If a placeholder admission is constructible on any path, fail hard at mint with a named error rather than emitting a value that only fails 2 seconds later insidenetbird up.d53a4de3. If the rehearsal harness pins or caches the install payload athost.json'spayloadModepath, that pin is a second, separately-fileable harness bug — it is why d53a4de3's advertised netbird fix left no trace on the box.idss-agent unknown · joiningand✓ connection request sent to— whilestate/founding-state.jsonholds"name": "E2E Drive". The person at the machine is asked to typeWIPEwithout being told which community they are joining.drive
20260827T162500Zred atconsent:the terminal join exited 1 --- transcript --- Warning: Permanently added '170.64.179.20' (ED25519) to the list of known hosts. idss-agent unknown · joining How should this machine contribute? [1] Fulevidence:
/home/dev/swarm/Matou/idss/test-results/drive-idip/20260827T162500Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedDuplicate of #907 — fixed on
mainat3141ddd1/ab538cc9(aRoleGatewaygrant carries no mesh admission; the landing skips the gate) plusd53a4de3(the doorway lands netbird). Drive 162500Z ran against the STALE served agent (get.idss.nzpin2f077e23, GOTCHAS #43) — theidiptarget now carries the bootstrap-staleness gate too (7a160eb3), so no further droplet is spent until the reseed pipeline serves a build pastab538cc9. Closing.sshd.service; the Ubuntu 24.04 droplet hasssh.service#912sshd.service; the Ubuntu 24.04 droplet hasssh.service#912