Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Normalize remaining graph residue

rcourtman33247d65c3b9
diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.md
index c330133416..d76ba56cce 100644
--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md
+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md
@@ -239,7 +239,7 @@ hardcoding their own labels.
Action-plan stale-plan protection now keys the durable audit payload on the
canonical `resourceVersion`, `policyVersion`, and `planHash` fields only,
so the audit record stays on the minimal deterministic contract instead of
-carrying a separate topology version.
+carrying extra versioning for relationship topology.
Resource-only incident context should follow the same rule: if an alert
timeline is absent, the incident prompt path should fall back to the canonical
unified-resource timeline rather than depending only on patrol-local change
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index 52ff72a821..e42c269564 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -193,8 +193,7 @@ response shapes so the execution trail remains queryable through the governed
API surface rather than only through the underlying store.
Action-plan stale-plan protection on those audit records now uses the canonical
`resourceVersion`, `policyVersion`, and `planHash` fields only, so the
-response contract stays deterministic without a separate topology-version
-alias.
+response contract stays deterministic without extra version baggage.
The same API contract now also owns the dedicated frontend resource facet
client in `frontend-modern/src/api/resources.ts`, which fetches the governed
capability, relationship, and timeline surfaces from `internal/api/resources.go`
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 4b8fd03f04..e1fb592891 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -549,8 +549,8 @@ owns a `resource_changes` persistence table with `RecordChange` and
time window.
Action plans in `actions.go` now keep stale-plan protection to the canonical
`resourceVersion`, `policyVersion`, and `planHash` fields, so the durable
-audit record stays minimal and does not need a separate topology-version
-field.
+audit record stays minimal and does not need extra relationship-topology
+versioning.
The shared change presentation helper also owns the canonical kind, source
type, and source adapter labels for those timeline entries, so summary cards
and drawer history surfaces both read the same badge vocabulary instead of
diff --git a/internal/ai/coverage_increase_test.go b/internal/ai/coverage_increase_test.go
index cda2789556..9caea314eb 100644
--- a/internal/ai/coverage_increase_test.go
+++ b/internal/ai/coverage_increase_test.go
@@ -484,7 +484,7 @@ func TestService_BuildRelationshipContext_UsesCanonicalReadState(t *testing.T) {
s := NewService(nil, nil)
ps := NewPatrolService(nil, nil)
- resourceID := "vm-graph-1"
+ resourceID := "vm-rel-1"
readState := &mockReadState{
resources: map[string]*unifiedresources.Resource{
resourceID: {
@@ -495,7 +495,7 @@ func TestService_BuildRelationshipContext_UsesCanonicalReadState(t *testing.T) {
Relationships: []unifiedresources.ResourceRelationship{
{
SourceID: resourceID,
- TargetID: "node-graph-1",
+ TargetID: "node-rel-1",
Type: unifiedresources.RelRunsOn,
Confidence: 0.9,
Active: true,
@@ -526,8 +526,8 @@ func TestService_BuildRelationshipContext_UsesCanonicalReadState(t *testing.T) {
Timestamp: now.Add(-30 * time.Minute),
})
corr.RecordEvent(correlation.Event{
- ResourceID: "vm-graph-2",
- ResourceName: "vm-graph-2",
+ ResourceID: "vm-rel-2",
+ ResourceName: "vm-rel-2",
ResourceType: "vm",
EventType: CorrelationEventRestart,
Timestamp: now.Add(-25 * time.Minute),
diff --git a/internal/ai/tools/control_run_command_test.go b/internal/ai/tools/control_run_command_test.go
index d2cfded3f7..be7094012e 100644
--- a/internal/ai/tools/control_run_command_test.go
+++ b/internal/ai/tools/control_run_command_test.go
@@ -224,8 +224,6 @@ func TestPulseToolExecutor_ExecuteRunCommand(t *testing.T) {
planMap := mustParseJSONMap(t, string(planJSON))
_, hasRelationshipVersion := planMap["relationshipVersion"]
assert.False(t, hasRelationshipVersion)
- _, hasGraphVersion := planMap["graphVersion"]
- assert.False(t, hasGraphVersion)
events, err := store.GetActionLifecycleEvents(audits[0].ID, time.Time{}, 10)
require.NoError(t, err)
diff --git a/internal/api/contract_test.go b/internal/api/contract_test.go
index 056cfa48d4..d510ac3392 100644
--- a/internal/api/contract_test.go
+++ b/internal/api/contract_test.go
@@ -4091,7 +4091,7 @@ func TestContract_ResourceTimelineRelationshipJSONSnapshot(t *testing.T) {
SourceAdapter: unifiedresources.AdapterProxmox,
Confidence: unifiedresources.ConfidenceHigh,
RelatedResources: []string{"db:alpha", "service:beta"},
- Reason: "dependency graph updated",
+ Reason: "relationship updated",
Metadata: map[string]any{
"edgeType": "depends_on",
"active": true,
@@ -4121,7 +4121,7 @@ func TestContract_ResourceTimelineRelationshipJSONSnapshot(t *testing.T) {
"sourceAdapter":"proxmox_adapter",
"confidence":"high",
"relatedResources":["db:alpha","service:beta"],
- "reason":"dependency graph updated",
+ "reason":"relationship updated",
"metadata":{"active":true,"edgeType":"depends_on"}
}
],
diff --git a/internal/unifiedresources/store_test.go b/internal/unifiedresources/store_test.go
index ee59a17ad2..a59a3290e3 100644
--- a/internal/unifiedresources/store_test.go
+++ b/internal/unifiedresources/store_test.go
@@ -521,7 +521,7 @@ func TestRecordChange_PreservesTimelineMetadata(t *testing.T) {
Confidence: ConfidenceMedium,
Actor: "pulse:differ",
RelatedResources: []string{"node:20", "service:api"},
- Reason: "dependency graph updated",
+ Reason: "relationship updated",
Metadata: map[string]any{
"edgeType": "runs_on",
"active": true,