Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Register host-identity fork-heal coverage gap
rcourtman6991208ad62c
diff --git a/docs/release-control/v6/internal/records/host-identity-fork-heal-on-reenrollment-2026-08-24.md b/docs/release-control/v6/internal/records/host-identity-fork-heal-on-reenrollment-2026-08-24.mdnew file mode 100644index 0000000000..2e435143a4--- /dev/null+++ b/docs/release-control/v6/internal/records/host-identity-fork-heal-on-reenrollment-2026-08-24.md@@ -0,0 +1,50 @@+# Host identity fork is permanent after re-enrollment (2026-08-24)++## Context++PR #1715 (landed trimmed as `0e8f63cdd`) reported and fixed the visible+symptom: the Discovery tab said "No saved discovery run" for hosts that had+been analyzed, because discovery records were stored under a forked host+identity while the PVE node kept reporting the base agent UUID as+`LinkedAgentID`. The lookup side now resolves equivalent spellings+(`equivalentDiscoveryTargetIDs` in `internal/servicediscovery/service.go`),+but the identity itself remains forked.++## Root cause of the fork's permanence++`internal/monitoring/monitor_agents.go` forks a host onto `<base>-<hex>`+when an incoming report collides with an existing record under a different+token (clone safety, #1584). Re-running an agent install with `--proxmox` on+the same machine is enough: same machine, same hostname, new token.++The only heal path, `hostRenameHealSource` (monitor_agents.go), requires all+of:++- the same reporting token,+- a **changed** hostname (`hostAgentHostnamesMatch` returning false),+- no report for 3 health windows.++A re-enrollment fork has a **new** token and the **same** hostname, so it+fails two of the three conditions structurally — the fork is held open+forever, not merely until the old record goes quiet. The #1667 heal only+covers the rename case it was built for.++## Why this is a governed gap rather than a quick fix++Every identity consumer downstream of the fork must either resolve+equivalent spellings forever (as discovery now does) or silently miss+records. Healing at the source is a host-identity lifecycle change in clone+territory: rebinding must not merge genuine clones that share a machine ID,+which is the exact hazard #1584 forked to avoid. The machine-id evidence+already carried on host records, and the cross-estate veto signals from the+#1753 fix (`53ba9786c`), plausibly give a re-enrollment enough evidence to+rebind the existing base identity instead of forking — but that needs an+owned slice with clone-safety regression coverage, not an opportunistic+patch.++## Affected spellings observed in the field (from PR #1715)++- `<uuid>-bffd0339` — single fork.+- `<uuid>-d3b-83adbde6` — twice-forked: a base over 40 characters is+ truncated before the next suffix lands, leaving an amputated first suffix+ plus a full second one.diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.jsonindex eb99948ec0..f86e20d9ba 100644--- a/docs/release-control/v6/internal/status.json+++ b/docs/release-control/v6/internal/status.json@@ -9691,6 +9691,38 @@}],"coverage_gaps": [+ {+ "id": "host-identity-fork-heal-on-reenrollment",+ "summary": "Host identities fork onto a '<base>-<hex>' spelling when an agent re-enrolls under a new token against an existing record (re-running an install with --proxmox is enough), and the only heal path (hostRenameHealSource in internal/monitoring/monitor_agents.go) requires the same token plus a changed hostname plus three missed health windows, so a re-enrollment fork fails two of the three conditions structurally and is held open forever. The PVE node keeps reporting the base agent UUID as LinkedAgentID while the host record carries the forked ID, so every identity consumer must resolve equivalent spellings indefinitely; discovery lookups were fixed symptom-side in 0e8f63cdd (PR #1715). Healing at the source is clone-safety territory (#1584): the machine-id evidence already on host records and the cross-estate veto signals from 53ba9786c plausibly let a re-enrollment rebind the existing base identity instead of forking, but that needs an owned slice with clone-safety regression coverage.",+ "owner": "project-owner",+ "status": "triaged",+ "recorded_at": "2026-08-24",+ "lane_ids": [+ "L16"+ ],+ "subsystem_ids": [+ "agent-lifecycle"+ ],+ "proposed_resolution": "lane-expansion",+ "coverage_impact": 3,+ "evidence": [+ {+ "repo": "pulse",+ "path": "docs/release-control/v6/internal/records/host-identity-fork-heal-on-reenrollment-2026-08-24.md",+ "kind": "file"+ },+ {+ "repo": "pulse",+ "path": "internal/monitoring/monitor_agents.go",+ "kind": "file"+ },+ {+ "repo": "pulse",+ "path": "internal/servicediscovery/service.go",+ "kind": "file"+ }+ ]+ },{"id": "resource-payload-static-metadata","summary": "The client-facing resource stream ships ~3KB of mostly-static metadata per resource (duplicated capabilities blobs with only 10 distinct values across 1,508 resources, canonicalIdentity alias/superseded-id history, aiSafeSummary prose, and policy routing) on every snapshot, REST recovery, and reconnect. At 50-node scale the snapshot is a single 4.73MB websocket frame and browser main-thread cost per delta reaches ~1s even on desktop hardware. Slimming the stream is a wire-format change with consumers beyond frontend-modern (pulse-mobile OTA compatibility, Pro surfaces, AI runtime), so it needs an owned slice with contract updates and cross-client verification.",