consent: founding gateway grant carries a mesh admission it can't redeem (no netbird) #908

Closed
opened 2026-08-27 16:35:36 +00:00 by matou-build-agent · 1 comment

The failure

consent is 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:

time=2026-08-27T16:26:43.268Z level=ERROR msg="enroll did not complete" component=agent err="join: mesh admission: meshup: netbird is not installed on this device — the community mesh adapter needs it to join wt0 (ADR 0100): netbird [up --setup-key ,x\xa4\x8b=\x0e\x8bd\xb6M\x15\x81\x11\xe3\xfd\xf5XO\xc2f\xe2\xf3\x8e\xd7.\xf8^\x8c\xe2\xab\x06\t --management-url mesh.internal]: exec: \"netbird\": executable file not found in $PATH: "

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, request req-0001 — the one and only machine on this drive:

"role": "gateway",
"grant": { "node": "node-req-0001",
  "mesh": { "setup_key": "LHikiz0Oi2S2TRWBEeP99VhPwmbi847XLvhejOKrBgk=",
            "management": "mesh.internal",
            "tls_pin": "Lbntkie5BbL5A31klwiD6yBfB+k6DHQigRjdSH5HMFY=" } }

That setup_key base64-decodes to 2c 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.internal is a non-resolvable placeholder management URL. So netbird up here 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". A role: gateway grant on the founding machine should carry no mesh admission.

3. HEAD's netbird fix did not fire on this drive. artifacts/verdict.json pins "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)". Yet grep -i 'netbird\|meshup\|wt0' logs/droplet-journal.txt returns zero matches across all 140 KB, while the same journal shows the doorway landing and starting the agent seconds earlier:

Aug 27 16:26:41 clan-lab-rehearsal-f1ef1058 systemd[1]: Started idss-agent.service - IDSS agent (ADR 0053).
Aug 27 16:26:41 clan-lab-rehearsal-f1ef1058 idss-agent[6605]: time=2026-08-27T16:26:41.372Z level=INFO msg="join socket listening" component=agent path=/run/idss/agent.sock

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, and ss -tlnp shows only sshd:22 and systemd-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.json records no skipped legs and no skip reasons at all (verdict.json: "skip": 0), and pairing did flip on this drive: state/enroll.json req-0001 is "status": "approved", and state/founding-state.json logs the event "gateway paired and approved as node node-req-0001 — probed 2 vCPU · 4 GB · 76 GB meets the minimum" with standup.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, droplet 595653034 clan-lab-rehearsal-f1ef1058, status active), so a re-run with an access line could still confirm §3 by checking command -v netbird on it.

What is absent from the harvest

  • artifacts/journey.json is {"rows": null, "fault": null} — the drive died at consent, 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.log is 0 bytes; logs/state-logs.log is ERROR: 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.out records {"action":"healed","commit":"01c12ed3…"} and asserts the production fault was fixed on main by 3141ddd1 (internal/enroll/community_ca.go meshAdmissionFor, internal/join/land.go) which "landed 18s after this drive ended — the drive ran on the stale parent d53a4de3", and that 3141ddd1 left the seam double behind (internal/enroll/enrolltesting/granter.go:44 building MeshAdmission{randBytes, "mesh.internal", randBytes} for every role, so the dev-tagged helper would still redeem nothing). I could not verify any of that — the repo is outside this session's readable root, and logs/healer-claude.err shows the healer's own rebase left a conflict in internal/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

  1. Branch the mesh admission on role at mint time. A role: gateway grant must carry mesh == nil; only joining nodes get an admission. Add the invariant as an assertion in the ledger's approve path so a placeholder can never reach exec.
  2. Mirror the same role split into the test double, or the guard passes in prod while the dev-tagged helper keeps handing out {randBytes, "mesh.internal", randBytes} — this is exactly the gap healer-claude.err shows unresolved in internal/enroll/enrolltesting/granter.go.
  3. Make 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 inside netbird up.
  4. Re-drive at current main, not at d53a4de3. If the rehearsal harness pins or caches the install payload at host.json's payloadMode path, that pin is a second, separately-fileable harness bug — it is why d53a4de3's advertised netbird fix left no trace on the box.
  5. Separate low-severity defect visible in the same transcript (do not fold into this ticket): the community name renders empty — idss-agent unknown · joining and ✓ connection request sent to — while state/founding-state.json holds "name": "E2E Drive". The person at the machine is asked to type WIPE without being told which community they are joining.

drive 20260827T162500Z red at consent: 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] Ful
evidence: /home/dev/swarm/Matou/idss/test-results/drive-idip/20260827T162500Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## The failure `consent` is 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: ``` time=2026-08-27T16:26:43.268Z level=ERROR msg="enroll did not complete" component=agent err="join: mesh admission: meshup: netbird is not installed on this device — the community mesh adapter needs it to join wt0 (ADR 0100): netbird [up --setup-key ,x\xa4\x8b=\x0e\x8bd\xb6M\x15\x81\x11\xe3\xfd\xf5XO\xc2f\xe2\xf3\x8e\xd7.\xf8^\x8c\xe2\xab\x06\t --management-url mesh.internal]: exec: \"netbird\": executable file not found in $PATH: " ``` 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`, request `req-0001` — the one and only machine on this drive: ```json "role": "gateway", "grant": { "node": "node-req-0001", "mesh": { "setup_key": "LHikiz0Oi2S2TRWBEeP99VhPwmbi847XLvhejOKrBgk=", "management": "mesh.internal", "tls_pin": "Lbntkie5BbL5A31klwiD6yBfB+k6DHQigRjdSH5HMFY=" } } ``` That `setup_key` base64-decodes to `2c 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.internal` is a non-resolvable placeholder management URL. So `netbird up` here 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"`. A `role: gateway` grant on the founding machine should carry no mesh admission. **3. HEAD's netbird fix did not fire on this drive.** `artifacts/verdict.json` pins `"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)"*. Yet `grep -i 'netbird\|meshup\|wt0' logs/droplet-journal.txt` returns **zero matches** across all 140 KB, while the same journal shows the doorway landing and starting the agent seconds earlier: ``` Aug 27 16:26:41 clan-lab-rehearsal-f1ef1058 systemd[1]: Started idss-agent.service - IDSS agent (ADR 0053). Aug 27 16:26:41 clan-lab-rehearsal-f1ef1058 idss-agent[6605]: time=2026-08-27T16:26:41.372Z level=INFO msg="join socket listening" component=agent path=/run/idss/agent.sock ``` 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, and `ss -tlnp` shows only `sshd:22` and `systemd-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.json` records **no skipped legs and no skip reasons at all** (`verdict.json`: `"skip": 0`), and pairing **did** flip on this drive: `state/enroll.json` req-0001 is `"status": "approved"`, and `state/founding-state.json` logs the event `"gateway paired and approved as node node-req-0001 — probed 2 vCPU · 4 GB · 76 GB meets the minimum"` with `standup.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`, droplet `595653034` `clan-lab-rehearsal-f1ef1058`, status `active`), so a re-run with an access line could still confirm §3 by checking `command -v netbird` on it. ## What is absent from the harvest - `artifacts/journey.json` is `{"rows": null, "fault": null}` — the drive died at `consent`, 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.log` is 0 bytes; `logs/state-logs.log` is `ERROR: 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.out` records `{"action":"healed","commit":"01c12ed3…"}` and asserts the production fault was fixed on main by `3141ddd1` (`internal/enroll/community_ca.go` `meshAdmissionFor`, `internal/join/land.go`) which *"landed 18s after this drive ended — the drive ran on the stale parent d53a4de3"*, and that `3141ddd1` left the seam double behind (`internal/enroll/enrolltesting/granter.go:44` building `MeshAdmission{randBytes, "mesh.internal", randBytes}` for **every** role, so the `dev`-tagged helper would still redeem nothing). **I could not verify any of that** — the repo is outside this session's readable root, and `logs/healer-claude.err` shows the healer's own rebase left a conflict in `internal/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 1. **Branch the mesh admission on role at mint time.** A `role: gateway` grant must carry `mesh == nil`; only joining nodes get an admission. Add the invariant as an assertion in the ledger's approve path so a placeholder can never reach `exec`. 2. **Mirror the same role split into the test double**, or the guard passes in prod while the dev-tagged helper keeps handing out `{randBytes, "mesh.internal", randBytes}` — this is exactly the gap `healer-claude.err` shows unresolved in `internal/enroll/enrolltesting/granter.go`. 3. **Make `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 inside `netbird up`. 4. **Re-drive at current main, not at `d53a4de3`.** If the rehearsal harness pins or caches the install payload at `host.json`'s `payloadMode` path, that pin is a second, separately-fileable harness bug — it is why d53a4de3's advertised netbird fix left no trace on the box. 5. **Separate low-severity defect visible in the same transcript** (do not fold into this ticket): the community name renders empty — `idss-agent unknown · joining ` and `✓ connection request sent to ` — while `state/founding-state.json` holds `"name": "E2E Drive"`. The person at the machine is asked to type `WIPE` without being told which community they are joining. drive `20260827T162500Z` red at `consent`: `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] Ful` evidence: `/home/dev/swarm/Matou/idss/test-results/drive-idip/20260827T162500Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 28ff46f6d26f -->
Owner

Duplicate of #907 — fixed on main at 3141ddd1/ab538cc9 (a RoleGateway grant carries no mesh admission; the landing skips the gate) plus d53a4de3 (the doorway lands netbird). Drive 162500Z ran against the STALE served agent (get.idss.nz pin 2f077e23, GOTCHAS #43) — the idip target now carries the bootstrap-staleness gate too (7a160eb3), so no further droplet is spent until the reseed pipeline serves a build past ab538cc9. Closing.

Duplicate of #907 — fixed on `main` at `3141ddd1`/`ab538cc9` (a `RoleGateway` grant carries no mesh admission; the landing skips the gate) plus `d53a4de3` (the doorway lands netbird). Drive 162500Z ran against the STALE served agent (`get.idss.nz` pin `2f077e23`, GOTCHAS #43) — the `idip` target now carries the bootstrap-staleness gate too (`7a160eb3`), so no further droplet is spent until the reseed pipeline serves a build past `ab538cc9`. Closing.
ben closed this issue 2026-08-27 16:35:55 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#908
No description provided.