provisioning: Fleet > gateway + change shows provision: no device gateway in the fleet #483

Closed
opened 2026-08-12 17:52:58 +00:00 by ben · 3 comments
Owner

Filed from Ben's 2026-08-12 manual fresh-install trial (full Tier 1+2 reset: cold /nix, wiped community env, private path, tree at 35b387b).

What happened

After the relaunch/resume of the standing private community, opening Fleet > gateway and the change screen surfaced: provision: no device "gateway" in the fleet. The gateway device demonstrably exists (the guest VM is enrolled, deployed, control-plane active; enrollment doc names node "gateway").

Suspicion

The fleet/provisioning read model after an app relaunch (fresh helper process, resumed state) is missing the founding-enrolled device — possibly a fleet-state hydration gap on resume rather than a provisioning defect proper. Reproduce: found private path → quit app → relaunch → Fleet > gateway → change.

Definition of done

  • Root cause identified (resume hydration vs fleet store vs render); fix lands with a test pinning the resumed-community fleet view showing the gateway device.
  • The change-assessment screen works against the resumed community.
Filed from Ben's 2026-08-12 manual fresh-install trial (full Tier 1+2 reset: cold /nix, wiped community env, private path, tree at 35b387b). ## What happened After the relaunch/resume of the standing private community, opening Fleet > gateway and the change screen surfaced: `provision: no device "gateway" in the fleet`. The gateway device demonstrably exists (the guest VM is enrolled, deployed, control-plane active; enrollment doc names node "gateway"). ## Suspicion The fleet/provisioning read model after an app relaunch (fresh helper process, resumed state) is missing the founding-enrolled device — possibly a fleet-state hydration gap on resume rather than a provisioning defect proper. Reproduce: found private path → quit app → relaunch → Fleet > gateway → change. ## Definition of done - Root cause identified (resume hydration vs fleet store vs render); fix lands with a test pinning the resumed-community fleet view showing the gateway device. - The change-assessment screen works against the resumed community.
Author
Owner

Likely upstream cause filed as #484: founded flipped true before the stand-up completed, so the relaunch skipped the remaining legs (including the S12 credential hand-off) and entered the standing-community flow on a half-stood community. The missing gateway in the fleet view may be downstream of that skipped tail — check #484's resume-at-faulted-leg fix first when reproducing.

Likely upstream cause filed as #484: `founded` flipped true before the stand-up completed, so the relaunch skipped the remaining legs (including the S12 credential hand-off) and entered the standing-community flow on a half-stood community. The missing gateway in the fleet view may be downstream of that skipped tail — check #484's resume-at-faulted-leg fix first when reproducing.
Author
Owner

Code trace sharpening the #484 link (Ben asked whether the skipped app-window ceremony could cause this — answer: sibling, not cause):

  • The error is internal/provision/assess.go (assess.go:166/:231) via fleetstate.Projection.Devices() (projection.go), which derives devices from inv.Placement() nodes enriched by the enroll ledger.
  • "no device gateway" therefore means the inventory placement is empty — not an un-enriched or degraded device (a ledger read fault would surface as Degraded, #279 discipline, not absence).
  • What populates the placement is the fleet-seeding leg, which runs on the LIVE control plane after the deploy — i.e. inside the tail that #484's early founded:true caused the resume to skip.
  • The skipped S12 ceremony is a sibling symptom of the same skip: fleet data never depends on the operator credential (and with #388 dashboard auth unbuilt, no identity is even demanded — which is why the panel opened at all).

Expectation: fixing #484's resume-at-faulted-leg routing (deploy → seed → hand-off re-run) makes this reproduce path vanish; this ticket then only needs its own regression pin (a resumed community's fleet view shows the gateway).

Code trace sharpening the #484 link (Ben asked whether the skipped app-window ceremony could cause this — answer: sibling, not cause): - The error is `internal/provision/assess.go` (`assess.go:166/:231`) via `fleetstate.Projection.Devices()` (`projection.go`), which derives devices from **`inv.Placement()` nodes** enriched by the enroll ledger. - "no device gateway" therefore means the **inventory placement is empty** — not an un-enriched or degraded device (a ledger read fault would surface as `Degraded`, #279 discipline, not absence). - What populates the placement is the **fleet-seeding leg**, which runs on the LIVE control plane after the deploy — i.e. inside the tail that #484's early `founded:true` caused the resume to skip. - The skipped S12 ceremony is a *sibling* symptom of the same skip: fleet data never depends on the operator credential (and with #388 dashboard auth unbuilt, no identity is even demanded — which is why the panel opened at all). Expectation: fixing #484's resume-at-faulted-leg routing (deploy → seed → hand-off re-run) makes this reproduce path vanish; this ticket then only needs its own regression pin (a resumed community's fleet view shows the gateway).
Author
Owner

close-report for #483 — status success

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

envelope
{
  "issue": 483,
  "status": "success",
  "commits": [
    "677edaeec2b29a01cf3b703a34fbfc049ba0085b"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/resumed_fleet_gateway_test.go"
  ],
  "tests": [
    {
      "command": "nix develop .#go-ci -c go test ./control-plane/cmd/control-plane/ -run TestResumedCommunity",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go test ./control-plane/cmd/control-plane/",
      "exit_code": 0
    },
    {
      "command": "nix develop .#go-ci -c go vet ./control-plane/cmd/control-plane/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Root cause identified (resume hydration vs fleet store vs render)": "Determination: NONE of the three. The fleet read model holds no state (ADR 0103 §3) and re-derives on relaunch from the config-repo placement + persisted enroll ledger. The founding gateway placement reaches the control-plane config repo only at the SEED leg (flipRepoAuthority, internal/founding/seed.go); the trial's deploy fault (#476) skipped seed while `founded` flipped early (#484), so the relaunch ran the standing-community flow over a repo that never received the placement. Recorded in the commit body and STATUS.md (header lead + milestone log).",
    "fix lands with a test pinning the resumed-community fleet view showing the gateway device": "control-plane/cmd/control-plane/resumed_fleet_gateway_test.go: TestResumedCommunity_FleetViewSurfacesTheGateway drives a fresh compose() (the relaunch path) over a config repo carrying the private-path gateway placement and asserts fleet.Gateway() surfaces the provisioned gateway (id \"gateway\"). The read-model guard the DoD asks for; the live-symptom repair rides #484.",
    "The change-assessment screen works against the resumed community": "TestResumedCommunity_ChangeAssessmentFindsTheGateway asserts provision.ChangeSetup(\"gateway\") over the resumed community returns the change assessment (a.Change, device id \"gateway\") — no `no device` fault. TestResumedCommunity_MissingPlacementIsTheUpstreamSkippedSeed pins that an absent placement reproduces the trial's exact `no device \"gateway\" in the fleet` fault, fixing the causal boundary to the missing placement (#484)."
  },
  "summary": "Determined #483's resumed-community empty fleet view is the upstream skipped seed (#484), not a read-model defect, and landed a control-plane regression guard pinning the resumed Fleet-view and change-assessment gateway-surfacing path.",
  "reason": "The fleet read model is correct on relaunch (proven by the new tests). The trial's `no device` symptom is the founding gateway placement never reaching the control-plane config repo because the deploy fault (#476) skipped the seed leg and `founded` flipped early (#484). #483 delivers the diagnosis the DoD requests plus a regression guard; the live-symptom repair belongs to #484's resume-at-faulted-leg fix.",
  "blockers": []
}
**close-report** for #483 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; closing. <details><summary>envelope</summary> ```json { "issue": 483, "status": "success", "commits": [ "677edaeec2b29a01cf3b703a34fbfc049ba0085b" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/resumed_fleet_gateway_test.go" ], "tests": [ { "command": "nix develop .#go-ci -c go test ./control-plane/cmd/control-plane/ -run TestResumedCommunity", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go test ./control-plane/cmd/control-plane/", "exit_code": 0 }, { "command": "nix develop .#go-ci -c go vet ./control-plane/cmd/control-plane/", "exit_code": 0 } ], "criteria": { "Root cause identified (resume hydration vs fleet store vs render)": "Determination: NONE of the three. The fleet read model holds no state (ADR 0103 §3) and re-derives on relaunch from the config-repo placement + persisted enroll ledger. The founding gateway placement reaches the control-plane config repo only at the SEED leg (flipRepoAuthority, internal/founding/seed.go); the trial's deploy fault (#476) skipped seed while `founded` flipped early (#484), so the relaunch ran the standing-community flow over a repo that never received the placement. Recorded in the commit body and STATUS.md (header lead + milestone log).", "fix lands with a test pinning the resumed-community fleet view showing the gateway device": "control-plane/cmd/control-plane/resumed_fleet_gateway_test.go: TestResumedCommunity_FleetViewSurfacesTheGateway drives a fresh compose() (the relaunch path) over a config repo carrying the private-path gateway placement and asserts fleet.Gateway() surfaces the provisioned gateway (id \"gateway\"). The read-model guard the DoD asks for; the live-symptom repair rides #484.", "The change-assessment screen works against the resumed community": "TestResumedCommunity_ChangeAssessmentFindsTheGateway asserts provision.ChangeSetup(\"gateway\") over the resumed community returns the change assessment (a.Change, device id \"gateway\") — no `no device` fault. TestResumedCommunity_MissingPlacementIsTheUpstreamSkippedSeed pins that an absent placement reproduces the trial's exact `no device \"gateway\" in the fleet` fault, fixing the causal boundary to the missing placement (#484)." }, "summary": "Determined #483's resumed-community empty fleet view is the upstream skipped seed (#484), not a read-model defect, and landed a control-plane regression guard pinning the resumed Fleet-view and change-assessment gateway-surfacing path.", "reason": "The fleet read model is correct on relaunch (proven by the new tests). The trial's `no device` symptom is the founding gateway placement never reaching the control-plane config repo because the deploy fault (#476) skipped the seed leg and `founded` flipped early (#484). #483 delivers the diagnosis the DoD requests plus a regression guard; the live-symptom repair belongs to #484's resume-at-faulted-leg fix.", "blockers": [] } ``` </details>
ben closed this issue 2026-08-12 18:08:08 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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#483
No description provided.