feat: debug-log the capability-gate verdict per add + SupportState.String()

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PSK5g6qYLknKj8u3QAFEr6
This commit is contained in:
2026-07-11 13:59:23 +02:00
parent d9da5a0678
commit 53ab971fe4
2 changed files with 16 additions and 9 deletions
+12
View File
@@ -35,6 +35,18 @@ const (
SupportNo
)
// String returns the state's wire/template vocabulary: "yes" | "no" | "unknown".
func (s SupportState) String() string {
switch s {
case SupportYes:
return "yes"
case SupportNo:
return "no"
default:
return "unknown"
}
}
// SupportProber is the minimal agent surface a probe needs. *Client satisfies it, and so does the
// web layer's netAgent seam — tests inject fakes there.
type SupportProber interface {