Documentation
¶
Overview ¶
Package checks provides diagnostic check implementations for the doctor command.
Index ¶
- type A2ACheck
- type APIKeySecurityCheck
- type AgentRegistryCheck
- type ApprovalCheck
- type BootstrapAwareCheck
- type ChannelCheck
- type Check
- type CompanionConnectionCheck
- type ConfigCheck
- type ContextHealthCheck
- type ContractCheck
- type DatabaseCheck
- type EconomyCheck
- type EmbeddingCheck
- type GraphStoreCheck
- type LibrarianCheck
- type MultiAgentCheck
- func (c *MultiAgentCheck) Fix(ctx context.Context, cfg *config.Config) Result
- func (c *MultiAgentCheck) Name() string
- func (c *MultiAgentCheck) Run(_ context.Context, cfg *config.Config) Result
- func (c *MultiAgentCheck) RunWithBootstrap(ctx context.Context, cfg *config.Config, boot *bootstrap.Result) Result
- type NetworkCheck
- type ObservabilityCheck
- type ObservationalMemoryCheck
- type OutputScanningCheck
- type ProvidersCheck
- type Result
- type RetrievalCheck
- type RunLedgerCheck
- type SecurityCheck
- type Status
- type Summary
- type ToolHooksCheck
- type TraceFailure
- type WorkspaceCheck
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type A2ACheck ¶
type A2ACheck struct{}
A2ACheck validates A2A protocol configuration.
type APIKeySecurityCheck ¶
type APIKeySecurityCheck struct{}
APIKeySecurityCheck validates that API keys use environment variable references rather than plaintext values.
func (*APIKeySecurityCheck) Name ¶
func (c *APIKeySecurityCheck) Name() string
Name returns the check name.
type AgentRegistryCheck ¶ added in v0.4.0
type AgentRegistryCheck struct{}
AgentRegistryCheck validates agent registry configuration.
func (*AgentRegistryCheck) Fix ¶ added in v0.4.0
Fix delegates to Run as automatic fixing is not supported.
func (*AgentRegistryCheck) Name ¶ added in v0.4.0
func (c *AgentRegistryCheck) Name() string
Name returns the check name.
type ApprovalCheck ¶ added in v0.4.0
type ApprovalCheck struct{}
ApprovalCheck validates the approval system configuration.
func (*ApprovalCheck) Fix ¶ added in v0.4.0
Fix delegates to Run as automatic fixing is not supported.
func (*ApprovalCheck) Name ¶ added in v0.4.0
func (c *ApprovalCheck) Name() string
Name returns the check name.
type BootstrapAwareCheck ¶ added in v0.7.0
type BootstrapAwareCheck interface {
Check
RunWithBootstrap(ctx context.Context, cfg *config.Config, boot *bootstrap.Result) Result
}
BootstrapAwareCheck can use the already-open bootstrap result when available.
type ChannelCheck ¶
type ChannelCheck struct{}
ChannelCheck validates channel token configurations.
type Check ¶
type Check interface {
// Name returns the human-readable name of the check.
Name() string
// Run executes the check and returns the result.
Run(ctx context.Context, cfg *config.Config) Result
// Fix attempts to repair the issue if possible.
// Returns an updated result after the fix attempt.
Fix(ctx context.Context, cfg *config.Config) Result
}
Check is the interface that all diagnostic checks must implement.
type CompanionConnectionCheck ¶
type CompanionConnectionCheck struct{}
CompanionConnectionCheck checks if the Gateway is running and if companions are connected.
func (*CompanionConnectionCheck) Name ¶
func (c *CompanionConnectionCheck) Name() string
type ConfigCheck ¶
type ConfigCheck struct{}
ConfigCheck validates the encrypted configuration profile.
type ContextHealthCheck ¶ added in v0.7.0
type ContextHealthCheck struct{}
ContextHealthCheck validates the overall context engineering configuration.
func (*ContextHealthCheck) Fix ¶ added in v0.7.0
Fix delegates to Run as automatic fixing is not supported.
func (*ContextHealthCheck) Name ¶ added in v0.7.0
func (c *ContextHealthCheck) Name() string
Name returns the check name.
type ContractCheck ¶ added in v0.5.0
type ContractCheck struct{}
ContractCheck validates smart contract configuration.
func (*ContractCheck) Fix ¶ added in v0.5.0
Fix delegates to Run as automatic fixing is not supported.
func (*ContractCheck) Name ¶ added in v0.5.0
func (c *ContractCheck) Name() string
Name returns the check name.
type DatabaseCheck ¶
type DatabaseCheck struct{}
DatabaseCheck validates the session database accessibility.
type EconomyCheck ¶ added in v0.5.0
type EconomyCheck struct{}
EconomyCheck validates economy layer configuration.
func (*EconomyCheck) Fix ¶ added in v0.5.0
Fix delegates to Run as automatic fixing is not supported.
func (*EconomyCheck) Name ¶ added in v0.5.0
func (c *EconomyCheck) Name() string
Name returns the check name.
type EmbeddingCheck ¶
type EmbeddingCheck struct{}
EmbeddingCheck validates embedding/RAG configuration.
type GraphStoreCheck ¶
type GraphStoreCheck struct{}
GraphStoreCheck validates graph store configuration.
type LibrarianCheck ¶ added in v0.4.0
type LibrarianCheck struct{}
LibrarianCheck validates the proactive librarian configuration.
func (*LibrarianCheck) Fix ¶ added in v0.4.0
Fix delegates to Run as automatic fixing is not supported.
func (*LibrarianCheck) Name ¶ added in v0.4.0
func (c *LibrarianCheck) Name() string
Name returns the check name.
type MultiAgentCheck ¶
type MultiAgentCheck struct{}
MultiAgentCheck validates multi-agent orchestration configuration.
func (*MultiAgentCheck) RunWithBootstrap ¶ added in v0.7.0
func (c *MultiAgentCheck) RunWithBootstrap( ctx context.Context, cfg *config.Config, boot *bootstrap.Result, ) Result
RunWithBootstrap adds runtime diagnostics on top of static config validation.
type NetworkCheck ¶
type NetworkCheck struct{}
NetworkCheck validates network-related configuration.
type ObservabilityCheck ¶ added in v0.5.0
type ObservabilityCheck struct{}
ObservabilityCheck validates observability configuration.
func (*ObservabilityCheck) Fix ¶ added in v0.5.0
Fix delegates to Run as automatic fixing is not supported.
func (*ObservabilityCheck) Name ¶ added in v0.5.0
func (c *ObservabilityCheck) Name() string
Name returns the check name.
type ObservationalMemoryCheck ¶
type ObservationalMemoryCheck struct{}
ObservationalMemoryCheck validates observational memory configuration.
func (*ObservationalMemoryCheck) Name ¶
func (c *ObservationalMemoryCheck) Name() string
Name returns the check name.
type OutputScanningCheck ¶
type OutputScanningCheck struct{}
OutputScanningCheck validates output scanning and interceptor configuration.
func (*OutputScanningCheck) Name ¶
func (c *OutputScanningCheck) Name() string
Name returns the check name.
type ProvidersCheck ¶
type ProvidersCheck struct{}
ProvidersCheck validates the AI provider configurations.
type Result ¶
type Result struct {
// Name is the human-readable name of the check.
Name string `json:"name"`
// Status is the result status.
Status Status `json:"status"`
// Message is the main result message.
Message string `json:"message"`
// Details provides additional information or hints.
Details string `json:"details,omitempty"`
// Fixable indicates if this issue can be auto-repaired.
Fixable bool `json:"fixable,omitempty"`
// FixAction is a description of the fix action.
FixAction string `json:"fixAction,omitempty"`
// TraceFailures carries structured recent trace metadata when relevant.
TraceFailures []TraceFailure `json:"traceFailures,omitempty"`
// IsolationLeakCount reports persisted raw isolated specialist turns.
IsolationLeakCount *int `json:"isolationLeakCount,omitempty"`
}
Result represents the result of a single check.
func FeatureStatusToDoctorResult ¶ added in v0.7.0
func FeatureStatusToDoctorResult(s types.FeatureStatus) Result
FeatureStatusToDoctorResult converts a types.FeatureStatus to a doctor Result.
type RetrievalCheck ¶ added in v0.7.0
type RetrievalCheck struct{}
RetrievalCheck validates retrieval coordinator configuration.
func (*RetrievalCheck) Fix ¶ added in v0.7.0
Fix delegates to Run as automatic fixing is not supported.
func (*RetrievalCheck) Name ¶ added in v0.7.0
func (c *RetrievalCheck) Name() string
Name returns the check name.
type RunLedgerCheck ¶ added in v0.7.0
type RunLedgerCheck struct{}
RunLedgerCheck validates RunLedger configuration invariants.
func (*RunLedgerCheck) Fix ¶ added in v0.7.0
Fix delegates to Run as automatic fixing is not supported.
func (*RunLedgerCheck) Name ¶ added in v0.7.0
func (c *RunLedgerCheck) Name() string
Name returns the check name.
type SecurityCheck ¶
type SecurityCheck struct{}
SecurityCheck checks security configuration and state
func (*SecurityCheck) Name ¶
func (c *SecurityCheck) Name() string
type Summary ¶
type Summary struct {
Results []Result `json:"results"`
Passed int `json:"passed"`
Warnings int `json:"warnings"`
Failed int `json:"failed"`
Skipped int `json:"skipped"`
}
Summary aggregates multiple check results.
func NewSummary ¶
NewSummary creates a Summary from a slice of Results.
func (Summary) HasWarnings ¶
HasWarnings returns true if any check has warnings.
type ToolHooksCheck ¶ added in v0.4.0
type ToolHooksCheck struct{}
ToolHooksCheck validates tool hooks configuration.
func (*ToolHooksCheck) Fix ¶ added in v0.4.0
Fix delegates to Run as automatic fixing is not supported.
func (*ToolHooksCheck) Name ¶ added in v0.4.0
func (c *ToolHooksCheck) Name() string
Name returns the check name.
type TraceFailure ¶ added in v0.7.0
type TraceFailure struct {
TraceID string `json:"traceId"`
Outcome string `json:"outcome"`
ErrorCode string `json:"errorCode"`
CauseClass string `json:"causeClass"`
Summary string `json:"summary"`
}
TraceFailure is a structured recent failure record for doctor output.
type WorkspaceCheck ¶ added in v0.6.0
type WorkspaceCheck struct{}
WorkspaceCheck validates P2P workspace configuration and dependencies.
func (*WorkspaceCheck) Name ¶ added in v0.6.0
func (c *WorkspaceCheck) Name() string
Name returns the check name.
Source Files
¶
- a2a.go
- adapter.go
- agent_registry.go
- apikey_security.go
- approval.go
- channels.go
- checks.go
- config.go
- context_health.go
- contract.go
- database.go
- economy.go
- embedding.go
- graph_store.go
- librarian.go
- multi_agent.go
- network.go
- observability.go
- observational_memory.go
- output_scanning.go
- providers.go
- retrieval.go
- runledger.go
- security.go
- tool_hooks.go
- workspace.go