device-vm evidence: the guest-* harvest probes are target-confused — on --target device they probe the EXECUTOR for a local guest and the guest's own journal is never gathered #1205

Closed
opened 2026-09-03 22:28:50 +00:00 by ben · 11 comments
Owner

Seen on drive 20260903T211817Z (the #1204 red): the run dir's guest-journal.log, guest-unit.log, guest-unit-file.log etc. are noise stubs — systemctl --user status idss-guest.service and cat ~/.config/systemd/user/idss-guest.service ran on the DRIVE HOST (elitebook), where no guest exists on a --target device drive. The guest lives on the member droplet, supervised by the device agent.

What's missing: on a device-target red, nothing gathers the guest's own story — journalctl inside the guest (netbird-mesh unit, idss-enroll-trust unit), netbird-mesh status, ip addr show wt0. With the afterAll teardown now leaving red boxes up for harvest (c7c50611), this is reachable: ssh to the device (root, its recorded IP in artifacts/device-ip.txt), then loopback ssh to the guest on the hostfwd port with -i /var/lib/idss/enroll-trust/id_ed25519 -o LogLevel=ERROR (GOTCHAS #41) — the same channel the agent's GuestMeshJoin uses (DDR 0224).

Shape: in the executor's device evidence gather, make the guest-* probes target-aware: on --target device, run them THROUGH the device against the guest (best-effort, each probe's failure recorded honestly in its file); on --target self, keep the local user-unit probes as-is. The hostfwd port is in the device agent's vm unit / state (/var/lib/idss/vm).

Fault-keyed to drive 20260903T211817Z; the #1204 root cause was diagnosed from the GATEWAY journal only because the guest evidence was a stub and the box was reaped — either alone next time means a blind red.

Seen on drive `20260903T211817Z` (the #1204 red): the run dir's `guest-journal.log`, `guest-unit.log`, `guest-unit-file.log` etc. are noise stubs — `systemctl --user status idss-guest.service` and `cat ~/.config/systemd/user/idss-guest.service` ran on the DRIVE HOST (elitebook), where no guest exists on a `--target device` drive. The guest lives on the member droplet, supervised by the device agent. **What's missing:** on a device-target red, nothing gathers the guest's own story — `journalctl` inside the guest (netbird-mesh unit, idss-enroll-trust unit), `netbird-mesh status`, `ip addr show wt0`. With the afterAll teardown now leaving red boxes up for harvest (`c7c50611`), this is reachable: ssh to the device (root, its recorded IP in `artifacts/device-ip.txt`), then loopback ssh to the guest on the hostfwd port with `-i /var/lib/idss/enroll-trust/id_ed25519` `-o LogLevel=ERROR` (GOTCHAS #41) — the same channel the agent's GuestMeshJoin uses (DDR 0224). **Shape:** in the executor's device evidence gather, make the guest-* probes target-aware: on `--target device`, run them THROUGH the device against the guest (best-effort, each probe's failure recorded honestly in its file); on `--target self`, keep the local user-unit probes as-is. The hostfwd port is in the device agent's vm unit / state (`/var/lib/idss/vm`). Fault-keyed to drive `20260903T211817Z`; the #1204 root cause was diagnosed from the GATEWAY journal only because the guest evidence was a stub and the box was reaped — either alone next time means a blind red.

swarm-claim host=elitebook-distributed-server-03 run=17425
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=17425 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=17425
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=17425 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=17425
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=17425 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=17436
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=17436 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=17436
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=17436 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=17443
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=17443 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=17443
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=17443 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=17444
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=17444 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=17473
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=17473 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=17487
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=matou-dev-server-01 run=17487 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1205 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 1205,
  "status": "success",
  "commits": [
    "5996e36d0dab7f2809533ece55cd1f69f6dddc48"
  ],
  "changed_files": [
    "app/tests/e2e/fixtures/evidence.ts",
    "app/tests/e2e/fixtures/evidence.test.ts",
    "STATUS.md"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/e2e/fixtures/evidence.test.ts",
      "exit_code": 0
    },
    {
      "command": "npx vue-tsc -p tsconfig.json --noEmit",
      "exit_code": 0
    },
    {
      "command": "npx eslint tests/e2e/fixtures/evidence.ts tests/e2e/fixtures/evidence.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "on --target device the guest-* probes run THROUGH the device against the guest": "evidence.ts deviceGuestCollectors + guestThroughDeviceScript loopback-ssh into the guest on its committed hostfwd port with -i /var/lib/idss/enroll-trust/id_ed25519 -o LogLevel=ERROR (DDR 0224, GOTCHAS #41); harvest() selects it via harvestCollectors on OC_E2E_TARGET=device + artifacts/device-ip.txt; pinned in evidence.test.ts 'device-target guest harvest (#1205)'",
    "on --target self keep the local user-unit probes as-is": "harvestCollectors returns guestCollectors(live) unchanged for non-device targets; pinned by the unchanged evidence-contract test and the selector test's self-target case",
    "the guest journal (netbird-mesh, idss-enroll-trust), netbird-mesh status, ip addr show wt0 are gathered": "device-guest-journal / device-guest-mesh-status / device-guest-wt0 collectors in deviceGuestCollectors, names pinned in evidence.test.ts",
    "each probe best-effort, failure recorded honestly in its file": "runCollectors records per-collector ERROR; guestThroughDeviceScript speaks a 'guest was never created' line rather than a silent blank; pinned by 'records a never-created guest rather than a silent blank'",
    "device IP read from artifacts/device-ip.txt (#1199)": "readDeviceIp/deviceIpPath read <runDir>/artifacts/device-ip.txt; pinned by 'locates the run-scoped device-ip.txt'"
  },
  "summary": "harvest() is target-aware: on --target device it gathers the guest's own journal/mesh/wt0 story through the device over the GuestMeshJoin channel instead of probing the drive host.",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1205 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1205, "status": "success", "commits": [ "5996e36d0dab7f2809533ece55cd1f69f6dddc48" ], "changed_files": [ "app/tests/e2e/fixtures/evidence.ts", "app/tests/e2e/fixtures/evidence.test.ts", "STATUS.md" ], "tests": [ { "command": "npx vitest run tests/e2e/fixtures/evidence.test.ts", "exit_code": 0 }, { "command": "npx vue-tsc -p tsconfig.json --noEmit", "exit_code": 0 }, { "command": "npx eslint tests/e2e/fixtures/evidence.ts tests/e2e/fixtures/evidence.test.ts", "exit_code": 0 } ], "criteria": { "on --target device the guest-* probes run THROUGH the device against the guest": "evidence.ts deviceGuestCollectors + guestThroughDeviceScript loopback-ssh into the guest on its committed hostfwd port with -i /var/lib/idss/enroll-trust/id_ed25519 -o LogLevel=ERROR (DDR 0224, GOTCHAS #41); harvest() selects it via harvestCollectors on OC_E2E_TARGET=device + artifacts/device-ip.txt; pinned in evidence.test.ts 'device-target guest harvest (#1205)'", "on --target self keep the local user-unit probes as-is": "harvestCollectors returns guestCollectors(live) unchanged for non-device targets; pinned by the unchanged evidence-contract test and the selector test's self-target case", "the guest journal (netbird-mesh, idss-enroll-trust), netbird-mesh status, ip addr show wt0 are gathered": "device-guest-journal / device-guest-mesh-status / device-guest-wt0 collectors in deviceGuestCollectors, names pinned in evidence.test.ts", "each probe best-effort, failure recorded honestly in its file": "runCollectors records per-collector ERROR; guestThroughDeviceScript speaks a 'guest was never created' line rather than a silent blank; pinned by 'records a never-created guest rather than a silent blank'", "device IP read from artifacts/device-ip.txt (#1199)": "readDeviceIp/deviceIpPath read <runDir>/artifacts/device-ip.txt; pinned by 'locates the run-scoped device-ip.txt'" }, "summary": "harvest() is target-aware: on --target device it gathers the guest's own journal/mesh/wt0 story through the device over the GuestMeshJoin channel instead of probing the drive host.", "blockers": [], "no_code_change": "" } ``` </details>
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.

Dependencies

No dependencies set.

Reference
Matou/idss#1205
No description provided.