doctor

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package doctor turns factual detection into evidence-backed diagnostics. It is read-only: findings propose actions but never apply them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronState

type CronState struct {
	Supported bool
	Readable  bool
	Installed bool
	Entry     string
	Binary    string
	HasPATH   bool
	Error     string
}

type Finding

type Finding struct {
	ID               string   `json:"id"`
	Severity         Severity `json:"severity"`
	Component        string   `json:"component"`
	Title            string   `json:"title"`
	Detail           string   `json:"detail"`
	Evidence         []string `json:"evidence,omitempty"`
	Missing          []string `json:"missing,omitempty"`
	NextActions      []string `json:"next_actions,omitempty"`
	RequiresApproval bool     `json:"requires_approval"`
}

type Report

type Report struct {
	State    capability.State `json:"state"`
	Summary  Summary          `json:"summary"`
	Findings []Finding        `json:"findings"`
}

func Analyze

func Analyze(report detect.Report, tenants []TenantState, cron CronState) Report

Analyze is the deterministic core used by tests and alternative frontends.

func Run

func Run(report detect.Report) Report

Run evaluates the current local machine without modifying it.

type Severity

type Severity string
const (
	P0 Severity = "P0"
	P1 Severity = "P1"
	P2 Severity = "P2"
	P3 Severity = "P3"
)

type Summary

type Summary struct {
	P0   int `json:"p0"`
	P1   int `json:"p1"`
	P2   int `json:"p2"`
	P3   int `json:"p3"`
	Open int `json:"open"`
}

type TenantState

type TenantState struct {
	Slug          string
	Active        bool
	VaultOK       bool
	GraphEngine   string
	GraphIndexed  bool
	GraphEvidence []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL