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.
Operational Trust Protection Posture Record
Date: 2026-07-19
Scope
This record closes the Phase 2 protection-posture slice in
OPERATIONAL_TRUST_IMPLEMENTATION_SPEC.md. It does not claim completion of
the Patrol attention workbench, availability attachment, governed actions, or
the full Operational Trust specification.
User job and evidence
The least-expert plausible user's job is: “Tell me which workloads I can actually recover, which need attention, and why.”
Relevant issue history shows why artifact presence cannot be the answer:
- #1541 reports current PBS backups displayed with an incorrect unverified conclusion.
- #81 records a token that can list datastores but cannot enumerate backup snapshots, proving that partial permission must remain visible rather than becoming a healthy empty result.
- #1389 records VM and container backups mis-correlated by numeric id, proving that provider-scoped subject identity is part of protection evidence.
- #1592 and #1437 report missing PVE backups and snapshots, proving that one provider's visible artifacts do not establish complete cross-provider coverage.
- #1056 and #1162 show the operator cost of treating retained orphan artifacts as current workload protection.
Canonical runtime result
internal/recovery/model/posture.godefines the provider-neutral posture, provider-state, policy, query, and provider-observation contracts. The only customer-facing states are protected, attention, unprotected, and unknown.internal/recovery/posture.goderives posture by canonical resource id and provider scope. Protected requires a current subject-linked backup plus complete sufficient collection evidence. Attention covers actionable stale, failed, partial, or expected-but-unverified evidence. Unprotected requires complete evidence of no qualifying backup. Unknown is mandatory for identity, permission, history, or collection uncertainty.- Backup and snapshot semantics remain distinct. A snapshot alone never proves independent recovery, provider job success without a subject-linked point never becomes subject protection, and a limitation from an unrelated provider cannot erase a confirmed complete PBS recovery.
- Recovery-point persistence adds provider scope and typed evidence additively. Existing databases migrate in place, and legacy points receive explicit unknown-quality evidence rather than invented certainty.
- Provider observations and materialized postures have indexed, bounded, retained storage. Requested postures are re-evaluated from current points and observations at read time so a reassuring stored row cannot age into a lie. Point, observation, and posture retention share the 90-day boundary.
- PBS is the first explicit provider adapter. Every poll records complete, partial, unavailable, or denied collection evidence separately from its subject-linked recovery points. Collection evidence is persisted before the point batch and reconciliation, so a large point write, timeout, cached artifact path, or failed enumeration cannot preserve a healthier claim.
GET /api/recovery/posturessupplies one-resource, bounded batch, paged list, andstate=attentionreads undermonitoring:read. Resource batches are capped at 200, return unknown for requested ids without sufficient evidence, and include policy plus provider evidence for drill-down.useProtectionPosturessorts and deduplicates canonical resource ids, fetches one batch per 200 resources, and exposes a keyed read model. Proxmox passes exact unified-resource ids and does not parse table keys or derive posture from raw PBS, PVE, or guest-snapshot artifacts.- The Proxmox Backups coverage table keeps the default monitor compact. Each workload has one canonical status and latest restore time; the row drill-down contains the plain-language reason, human-readable provider evidence quality, and bounded restore artifacts.
docs/API.mdanddocs/RECOVERY.mddocument the bounded API, the artifact-versus-posture distinction, the four states, and unknown-state troubleshooting.
Failure, migration, retention, and performance proof
The Phase 2 proof covers:
- the provider-aware derivation truth table, including stale, failed, unverified, partial, denied, missing-identity, snapshot-only, complete-empty, and mixed-provider cases
- schema migration and legacy evidence backfill
- read-time re-evaluation over a deliberately corrupted reassuring materialization
- indexed query plans and bounded 200-resource API batches
- recovery-point, provider-observation, and materialized-posture retention
- complete, partial, unavailable, and denied PBS collection mappings
- provider-observation persistence before a deliberately failed point write
- API authorization, validation, pagination, attention filtering, missing requested resources, and compatibility serialization
- frontend batch normalization, one-call table integration, state filtering, evidence drill-down, type-check, and Proxmox regression tests
Live product and user-lens proof
The changed surface was exercised against the managed live runtime at
/proxmox/backups, through the deepest row expansion, at desktop and 390px
mobile widths.
- Distance to goal is the existing Proxmox Backups route, the Coverage selector, then one workload expansion for the reason and evidence.
- The live pass found an inherited presentation defect: the explanation and provider evidence were initially repeated inside every PBS table cell. That detail was demoted to the expansion. The resulting workload row is 33px high and the default table remains scannable.
- Default-visible elements all support the job: the four-state summary identifies fleet posture, filters narrow the queue, the table answers per workload, and the expansion explains the claim. Raw artifacts are retained only as forensic restore evidence.
- Provider codes were replaced with product vocabulary in the expansion
(
Proxmox Backup Server,Proxmox VE), and evidence-quality values are presented as readable labels. - The live dataset honestly remained unknown where no complete provider collection observation had yet been persisted, despite current verified PBS artifacts. This is the required fail-closed behavior, not a healthy guess.
- The phone-sized page has no body-level horizontal overflow; wide evidence tables scroll inside their bounded table wrappers.
- The durable Playwright guard proves one bounded posture request, compact default presentation, evidence-on-expansion, and mobile containment.
The Phase 2 surface is classified as product.
Boundary carried forward
Phase 2 supplies canonical protection truth but does not invent a work queue. Phase 3 must project lifecycle records into typed attention items and consume this posture as one input. Patrol must not parse recovery metadata, raw artifacts, provider job payloads, or table presentation state to create its own protection verdict.