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
Limit planning status audit to tracked documents
rcourtmanb87ab7596503
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.mdindex cfe7df867f..8988419bd1 100644--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md@@ -430,6 +430,8 @@ that manual-channel consequence must stay visible at desktop and narrow widths.127. `frontend-modern/scripts/settings-diagnostics-boundary-audit.mjs`128. `frontend-modern/scripts/shared-template-audit.mjs`129. `frontend-modern/scripts/shared-template-registry.json`+ 129a. `frontend-modern/scripts/planning-doc-status-audit.mjs`+ 129b. `frontend-modern/scripts/__tests__/planning-doc-status-audit.test.mjs`130. `frontend-modern/src/features/platformPage/sharedPlatformPage.tsx`131a. `frontend-modern/src/features/platformPage/platformSearchSuggestions.ts`131b. `frontend-modern/src/features/platformPage/PlatformResourceDetailTableRow.tsx`@@ -1016,6 +1018,14 @@ AGENT_SURFACE_ID_PULSE_MCP)` and `getAgentSurfaceToolPosturePresentation`,## Extension Points+The planning-document status audit is a repository-governance support boundary+owned here because it runs through the frontend lint entrypoint. It must derive+its input set from Git-tracked `docs/` files, skip separately governed subsystem+contracts, and ignore untracked or ignored workspace notes. Local scratch+documents cannot become mainline demand signals or block an otherwise valid+push merely because their names end in `_SPEC.md`, `_PLAN.md`, or+`_CONTRACT.md`.+Global Actions review uses the canonical shared `Dialog`, `Button`, `Subtabs`,`Card`, `MetadataBadge`, and mobile navigation primitives. The Open/Historyselector is an in-page sub-navigation surface and must compose `Subtabs`diff --git a/docs/release-control/v6/internal/subsystems/registry.json b/docs/release-control/v6/internal/subsystems/registry.jsonindex 5e2e2da33b..4323898667 100644--- a/docs/release-control/v6/internal/subsystems/registry.json+++ b/docs/release-control/v6/internal/subsystems/registry.json@@ -5011,8 +5011,10 @@"frontend-modern/src/components/shared/"],"owned_files": [+ "frontend-modern/scripts/__tests__/planning-doc-status-audit.test.mjs","frontend-modern/scripts/canonical-platform-audit.mjs","frontend-modern/scripts/header-audit.mjs",+ "frontend-modern/scripts/planning-doc-status-audit.mjs","frontend-modern/scripts/settings-diagnostics-boundary-audit.mjs","frontend-modern/scripts/shared-template-audit.mjs","frontend-modern/scripts/shared-template-registry.json",@@ -5142,6 +5144,19 @@],"require_explicit_path_policy_coverage": true,"path_policies": [+ {+ "id": "tracked-planning-document-status-audit",+ "label": "tracked planning-document status audit proof",+ "match_prefixes": [],+ "match_files": [+ "frontend-modern/scripts/planning-doc-status-audit.mjs"+ ],+ "allow_same_subsystem_tests": false,+ "test_prefixes": [],+ "exact_files": [+ "frontend-modern/scripts/__tests__/planning-doc-status-audit.test.mjs"+ ]+ },{"id": "global-app-shell-css","label": "global app-shell css proof",diff --git a/frontend-modern/scripts/__tests__/planning-doc-status-audit.test.mjs b/frontend-modern/scripts/__tests__/planning-doc-status-audit.test.mjsnew file mode 100644index 0000000000..7a2c42a2dd--- /dev/null+++ b/frontend-modern/scripts/__tests__/planning-doc-status-audit.test.mjs@@ -0,0 +1,68 @@+import { spawnSync } from 'node:child_process';+import fs from 'node:fs';+import os from 'node:os';+import path from 'node:path';++import { afterEach, describe, expect, it } from 'vitest';++const auditPath = path.join(process.cwd(), 'scripts', 'planning-doc-status-audit.mjs');+const temporaryRoots = [];++function writeFile(file, content) {+ fs.mkdirSync(path.dirname(file), { recursive: true });+ fs.writeFileSync(file, content);+}++function git(repoRoot, ...args) {+ const result = spawnSync('git', ['-C', repoRoot, ...args], { encoding: 'utf8' });+ if (result.status !== 0) {+ throw new Error(`git ${args.join(' ')} failed: ${result.stderr}`);+ }+}++function runAudit(frontendRoot) {+ return spawnSync(process.execPath, [auditPath], { cwd: frontendRoot, encoding: 'utf8' });+}++afterEach(() => {+ while (temporaryRoots.length > 0) {+ fs.rmSync(temporaryRoots.pop(), { force: true, recursive: true });+ }+});++describe('planning document status audit', () => {+ it('checks tracked planning documents and ignores workspace-only files', () => {+ const repoRoot = fs.mkdtempSync(path.join(os.tmpdir(), 'pulse-planning-doc-audit-'));+ temporaryRoots.push(repoRoot);+ const frontendRoot = path.join(repoRoot, 'frontend-modern');+ const trackedPlan = path.join(repoRoot, 'docs', 'TRACKED_PLAN.md');+ const ignoredContract = path.join(repoRoot, 'docs', 'architecture', 'IGNORED_CONTRACT.md');+ const subsystemContract = path.join(+ repoRoot,+ 'docs',+ 'release-control',+ 'v6',+ 'internal',+ 'subsystems',+ 'IGNORED_CONTRACT.md',+ );++ fs.mkdirSync(frontendRoot, { recursive: true });+ writeFile(path.join(repoRoot, '.gitignore'), 'docs/architecture/\n');+ writeFile(trackedPlan, '# Tracked plan\n');+ writeFile(ignoredContract, '# Ignored local contract\n');+ writeFile(subsystemContract, '# Separately governed subsystem contract\n');+ git(repoRoot, 'init', '--quiet');+ git(repoRoot, 'add', '.gitignore', 'docs/TRACKED_PLAN.md', 'docs/release-control');++ const failing = runAudit(frontendRoot);+ expect(failing.status).toBe(1);+ expect(failing.stderr).toContain('docs/TRACKED_PLAN.md');+ expect(failing.stderr).not.toContain('IGNORED_CONTRACT.md');++ writeFile(trackedPlan, '# Tracked plan\n\nStatus: PARKED. Last reviewed 2026-09-01.\n');+ const passing = runAudit(frontendRoot);+ expect(passing.status).toBe(0);+ expect(passing.stdout).toContain('planning-doc-status-audit: ok');+ });+});diff --git a/frontend-modern/scripts/planning-doc-status-audit.mjs b/frontend-modern/scripts/planning-doc-status-audit.mjsindex e3a24f2fdd..196c38f706 100644--- a/frontend-modern/scripts/planning-doc-status-audit.mjs+++ b/frontend-modern/scripts/planning-doc-status-audit.mjs@@ -17,27 +17,45 @@// it is not scanned even though the filenames do not match the suffixes above.import fs from 'node:fs';import path from 'node:path';+import { execFileSync } from 'node:child_process';const ROOT = process.cwd();const REPO_ROOT = path.resolve(ROOT, '..');-const DOCS_ROOT = path.join(REPO_ROOT, 'docs');-const SKIP_DIRS = new Set([path.join(DOCS_ROOT, 'release-control', 'v6', 'internal', 'subsystems')]);+const SKIP_PREFIXES = ['docs/release-control/v6/internal/subsystems/'];const PLANNING_SUFFIX = /_(SPEC|PLAN|CONTRACT)\.md$/;const HEADER_LINES = 40;const STATUS_LINE = /^(Status:\s*\S|## Status\s*$)/;-function walk(dir, out) {- if (SKIP_DIRS.has(dir)) return out;- for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {- const full = path.join(dir, entry.name);- if (entry.isDirectory()) walk(full, out);- else if (entry.isFile() && PLANNING_SUFFIX.test(entry.name)) out.push(full);+function trackedPlanningDocuments() {+ let tracked;+ try {+ tracked = execFileSync('git', ['-C', REPO_ROOT, 'ls-files', '-z', '--', 'docs'], {+ encoding: 'utf8',+ });+ } catch (error) {+ console.error(+ `planning-doc-status-audit: unable to enumerate tracked documents: ${error.message}`,+ );+ process.exit(2);}- return out;++ return tracked+ .split('\0')+ .filter(Boolean)+ .filter((relative) => PLANNING_SUFFIX.test(relative))+ .filter((relative) => !SKIP_PREFIXES.some((prefix) => relative.startsWith(prefix)))+ .map((relative) => path.join(REPO_ROOT, ...relative.split('/')))+ .filter((file) => {+ try {+ return fs.lstatSync(file).isFile();+ } catch {+ return false;+ }+ });}const failures = [];-for (const file of walk(DOCS_ROOT, []).sort()) {+for (const file of trackedPlanningDocuments().sort()) {const head = fs.readFileSync(file, 'utf8').split('\n').slice(0, HEADER_LINES);if (!head.some((line) => STATUS_LINE.test(line))) {failures.push(path.relative(REPO_ROOT, file));