chore: start cognitive route remediation trace
CI / test (push) Failing after 35s

This commit is contained in:
m
2026-08-30 15:33:59 +03:00
parent f0360a8e13
commit 2e824b3c1f
3 changed files with 66 additions and 1 deletions
+4
View File
@@ -1483,6 +1483,10 @@ func main() {
candidates, err = capabilityRepository.LoadCognitiveCandidates(r.Context(), requirement.CapabilityID, requirement.OwnerPrincipalID)
}
if err != nil {
// The resolver is an internal capability boundary. Keep request identity
// and content out of logs, but preserve the repository error so a 503
// can be distinguished from a true empty/unsuitable binding set.
log.Printf("cognitive registry resolve unavailable: %v", err)
http.Error(w, "cognitive registry unavailable", http.StatusServiceUnavailable)
return
}