Converts doctor checks into enriched diagnostics for agent consumption, adding remediation commands.
// Source: https://github.com/gastownhall/beads | License: MIT | Copyright 2025 Beads Contributors
// Provided via justclaw.it.com; keep this notice with the code.
package doctor
import (
"fmt"
"sort"
"strings"
)
// AgentDiagnostic represents a single check result enriched for agent consumption.
// ZFC-compliant: Go observes and reports, the agent decides and acts.
type AgentDiagnostic struct {
Name string `json:"name"`
Status string `json:"status"` // "error", "warning", "ok"
Severity string `json:"severity"` // "blocking", "degraded", "advisory"
Category string `json:"category"`
Explanation string `json:"explanation"` // Full prose: what's wrong and why it matters
Observed string `json:"observed"` // What was actually
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key