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
docs(alerts): record the contract gate, history authority, and the registered identity migration
rcourtman0d381ee24fc4
diff --git a/docs/ALERT_ENGINE_EVOLUTION.md b/docs/ALERT_ENGINE_EVOLUTION.mdindex 27bc251ff8..db42207ca5 100644--- a/docs/ALERT_ENGINE_EVOLUTION.md+++ b/docs/ALERT_ENGINE_EVOLUTION.md@@ -133,7 +133,26 @@ Status (2026-08-27): the tracking maps are deleted; the check bodies'imperative transition bulk is replaced by the reducer core (what remainsof them is evidence assembly for the spec evaluator); suppressiondecisions emit typed, reasoned events through the Phase 0 log; policy-reads go through the Phase 3 fold. The history-file retirement stays-conditional on the event log becoming the sole history authority — a-follow-on, alongside the unified-incidents reconciler emitting-reducer-shaped events at that same boundary.+reads go through the Phase 3 fold.++Post-plan hardening (2026-08-27, same-day follow-through):++- **The lifecycle contract suite is a release gate.** Engine contracts+ (config-save silence, resolve-exactly-once, ack halts escalation,+ acknowledged recovery suppressed) in+ `internal/alerts/lifecycle_contract_test.go`; grouped-rendering+ contracts (N grouped ⇒ N rendered on email, apprise, and every+ webhook service template; cancel-before-delivery holds the recovery)+ in `internal/notifications/grouped_rendering_contract_test.go`.+- **The event log is the alert history authority.** Lifecycle events+ carry full alert snapshots; history is projected from the log+ (`history_projection.go`), the legacy JSON entries migrate in once+ and the files retire to `*.imported`, clears are append-only+ tombstones, and every alert family — reconciler and system alerts+ included — records its fired event. The JSON snapshot history file is+ retired. Parity with the JSON model is pinned by+ `history_projection_parity_test.go`.+- **The identity/config migration is registered, not rushed:** governed+ coverage gap `alert-identity-config-migration` records why the alias+ layers persist until a versioned migration rewrites persisted+ override keys and ack records to canonical identity.diff --git a/docs/release-control/v6/internal/records/alert-lifecycle-contract-coverage-2026-08-26.md b/docs/release-control/v6/internal/records/alert-lifecycle-contract-coverage-2026-08-26.mdindex 631627bf90..26a54393f4 100644--- a/docs/release-control/v6/internal/records/alert-lifecycle-contract-coverage-2026-08-26.md+++ b/docs/release-control/v6/internal/records/alert-lifecycle-contract-coverage-2026-08-26.md@@ -157,3 +157,27 @@ deletion, Phase 3 engine-side rule model. Open follow-ons recorded in theplan doc: event-log-as-sole-history-authority (retires the JSON snapshotfile), the unified-incidents reconciler emitting reducer-shaped events atthat boundary, and the demand-gated rules-first UI.++Post-plan hardening (2026-08-27): the lifecycle contract suite landed as a+release gate (3049da030) — engine contracts for config-save silence,+resolve-exactly-once, ack-halts-escalation, and suppressed recovery, plus+grouped-rendering contracts proving every delivery surface names all N+grouped alerts and that a cancelled-before-delivery firing holds its+recovery. Building the suite surfaced that dispatch bookkeeping only runs+when callbacks are installed (test-harness nuance, not a defect) and that+acknowledgement by an alert's internal legacy ID does not resolve — the+exported canonical ID is the working surface (evidence for+alert-identity-config-migration).++The event log then became the history authority (871f2348b, 2dc2b7275,+fbbdb929d): lifecycle events carry full alert snapshots, history is+projected from the log with the JSON entries imported once and the files+retired to *.imported, clears are append-only tombstones, and the+reconciler and system-alert families now record fired events. Parity work+surfaced and fixed one real defect: the JSON history never propagated+acknowledgement onto its rows, so the History view showed acknowledged+alerts as unacknowledged for their entire active life.++Registered follow-on: alert-identity-config-migration (the versioned+migration of persisted override keys and ack records to canonical+identity, after which the alias layers can be deleted).diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.jsonindex ad598ab63f..7ee1a8ae04 100644--- a/docs/release-control/v6/internal/status.json+++ b/docs/release-control/v6/internal/status.json@@ -9820,10 +9820,57 @@"kind": "file"}]+ },+ {+ "id": "alert-identity-config-migration",+ "summary": "Persisted alert state (threshold override keys, ack records, active-alert IDs) still carries legacy identity forms bridged at read time by alias layers (thresholdOverrideForResourceNoLock registry translation, lookupGuestOverride's three-key fallback, storageThresholdLookupIDs, testAlertEquivalentIDs' ~8 equivalent forms). The Phase 3 policy fold contains the bridging behind one resolution surface, but the alias code must be maintained until an explicit, versioned config migration rewrites persisted keys to canonical identity. Deliberately deferred from the 2026-08 evolution work: rewriting user override keys requires the live resource registry for translation and carries the #1738 failure mode in reverse (silently orphaning overrides), so it needs its own migration design, dry-run tooling, and test round rather than landing mid-RC.",+ "owner": "project-owner",+ "status": "triaged",+ "recorded_at": "2026-08-27",+ "lane_ids": [+ "L6",+ "L13"+ ],+ "subsystem_ids": [+ "alerts"+ ],+ "proposed_resolution": "lane-expansion",+ "coverage_impact": 3,+ "evidence": [+ {+ "repo": "pulse",+ "path": "docs/ALERT_ENGINE_EVOLUTION.md",+ "kind": "file"+ },+ {+ "repo": "pulse",+ "path": "internal/alerts/alert_policy.go",+ "kind": "file"+ },+ {+ "repo": "pulse",+ "path": "internal/alerts/guest_override_identity.go",+ "kind": "file"+ }+ ]}],"candidate_lanes": [],- "work_claims": [],+ "work_claims": [+ {+ "id": "claude-alert-reducer-coverage-gap-alert-lifecycle-contract-coverage",+ "agent_id": "claude-alert-reducer",+ "summary": "Lifecycle contract suite: end-to-end contracts through notification rendering as release gate",+ "target_id": "v6-product-lane-expansion",+ "claimed_at": "2026-08-27T08:00:19Z",+ "heartbeat_at": "2026-08-27T08:00:19Z",+ "expires_at": "2026-08-27T14:00:19Z",+ "work_item": {+ "kind": "coverage-gap",+ "id": "alert-lifecycle-contract-coverage"+ }+ }+ ],"open_decisions": [],"source_of_truth_file": "docs/release-control/v6/internal/SOURCE_OF_TRUTH.md","resolved_decisions": [