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.

Fix RC7 documentation contract checks

rcourtmande5a1b20df6e
diff --git a/internal/api/contract_test.go b/internal/api/contract_test.go
index 25105878ff..15740a34bb 100644
--- a/internal/api/contract_test.go
+++ b/internal/api/contract_test.go
@@ -17526,25 +17526,24 @@ func TestContract_AgentSubstrateDocReflectsCurrentMCPOnboarding(t *testing.T) {
t.Fatalf("read docs/AGENT_SUBSTRATE.md: %v", err)
}
doc := string(source)
+ normalized := strings.Join(strings.Fields(doc), " ")
for _, required := range []string{
- "Settings -> API Access -> Agent integrations",
- "client-ready `pulse-mcp` config snippets",
- "manifest-owned MCP adapter setup contract",
+ "Settings, then API Access, then Agent integrations",
+ "lists the declared capabilities by category",
"surface contract and affordance badges",
- "server name, command",
- "supported client config families",
- "OpenCode's native `opencode.json` / `mcp` shape",
- "common `mcpServers` shape for Claude-style clients",
- "from the same adapter contract",
- "shows both",
+ "method, path, scope, and stable error codes",
+ "client-ready `pulse-mcp` configuration snippets",
"OpenCode's native `opencode.json` shape",
- "common `mcpServers`",
- "`pulse-mcp` also has a published distribution path",
- "`install-mcp.sh` and `install-mcp.ps1`",
- "release installers",
- "frontend-modern/src/components/Settings/AgentIntegrationsPanel.tsx",
+ "`mcpServers` shape used by Claude-style clients",
+ "API tokens are minted on the same tab",
+ "`cmd/pulse-mcp`",
+ "projects each manifest capability into one MCP tool",
+ "`--emit-notifications`",
+ "The one-line installers `install-mcp.sh` and `install-mcp.ps1`",
+ "verify its checksum",
+ "`cmd/agent-probe`",
} {
- if !strings.Contains(doc, required) {
+ if !strings.Contains(normalized, required) {
t.Errorf("docs/AGENT_SUBSTRATE.md must reflect current MCP onboarding; missing %q", required)
}
}
@@ -17555,8 +17554,12 @@ func TestContract_AgentSubstrateDocReflectsCurrentMCPOnboarding(t *testing.T) {
"A distribution path for `pulse-mcp`. Today an integrator must",
"clone the repo and `go build`",
"generates the reusable `pulse-mcp` server block",
+ "Suitable as the basis for release notes",
+ "reminder to yourself",
+ "## Provable claims",
+ "frontend-modern/src/",
} {
- if strings.Contains(doc, forbidden) {
+ if strings.Contains(normalized, forbidden) {
t.Errorf("docs/AGENT_SUBSTRATE.md must not preserve stale pre-onboarding gap copy; found %q", forbidden)
}
}
diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.go
index 9fed41576c..d86d2c0658 100644
--- a/scripts/installtests/build_release_assets_test.go
+++ b/scripts/installtests/build_release_assets_test.go
@@ -499,14 +499,14 @@ func TestCurrentSupportPrereleasePacketTracksInstallMetadata(t *testing.T) {
"documentation set linked from Pulse now ships with the application",
"bounded configuration-backup retention",
"hostname changes heal without detaching findings",
- "browser-verification receipts are now enforced",
+ "Browser-verification receipts are now enforced",
"Windows PowerShell 5.1",
"iOS build 12 is distributed through the TestFlight public beta link",
"Android versionCode 9 remains available through Play open testing",
"No public mobile-store rollout is part of this RC",
"not yet Authenticode-signed",
"No unsigned-Windows exception applies to any `v6.2.0` release",
- "rollback target is `v"+previous+"`",
+ "rollback target is stable `v"+previous+"`",
)
assertFileContainsAllNormalized(t, changelogPath,
"Version: `v"+version+"`",