Follow-up from doctor command review.
runDoctorChecks hardcodes the check list. A registry pattern would let plugins / future subsystems (vector store, embeddings, telemetry exporters) register their own readiness probes without touching doctor.go.
Sketch
type doctorCheckFn func(ctx context.Context, opts doctorOpts) []doctorCheck
var doctorRegistry []doctorCheckFn
func RegisterDoctorCheck(fn doctorCheckFn) { doctorRegistry = append(doctorRegistry, fn) }
YAGNI for now — file so we revisit when the second subsystem wants to plug in.
File: cmd/aixgo/cmd/doctor.go:132.
Follow-up from doctor command review.
runDoctorCheckshardcodes the check list. A registry pattern would let plugins / future subsystems (vector store, embeddings, telemetry exporters) register their own readiness probes without touching doctor.go.Sketch
YAGNI for now — file so we revisit when the second subsystem wants to plug in.
File:
cmd/aixgo/cmd/doctor.go:132.