Add OpenRouter authentication diagnostics

This commit is contained in:
2026-10-13 17:23:47 +00:00
parent 2e81c9e61b
commit edaaecc982
7 changed files with 551 additions and 4 deletions

View File

@@ -540,6 +540,14 @@ rejected, anonymous rejection, malformed/unrecognized 200, other status, and
transport failure. Add applicability/support tests without duplicating HTTP
client tests. Synthetic credentials must not appear in report-facing values.
**Completed: 2026-10-13.** Added metadata-driven authentication applicability
and an OpenRouter key probe with optional direct/environment credentials. It
recognizes the documented minimal 200 response, records 401 rejection, leaves
other outcomes undetermined as specified, and distinguishes interrupted body
reads from malformed JSON. Validation passed: `go test -race
./internal/usecase ./internal/llm`, `go vet ./...`, `go test ./...`, and
`git diff --check`.
## Stage 13: Build And Evaluate Private Inference Cases
Scope: private fixtures and validation collaborators in `internal/usecase`.