fix(ai): scale triage timeout and report build versions - #101
Merged
Conversation
alxxjohn
marked this pull request as ready for review
August 18, 2026 14:37
Contributor
Author
|
Fixed the Homebrew validation failure in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CODEGUARD_AI_TRIAGE_TIMEOUToverridesmax_tokensand OpenAIlengthresponses as truncation errors instead of invalid JSONcodeguard versionfrom Go build info forgo installbuilds, with VCS-derived development versions for local source builds and linker injection retaining precedenceRoot causes
Triage used one constant whole-request client timeout even though each request includes every pending finding and non-streaming providers return headers only after generation. Version reporting relied exclusively on linker flags, which
go install module@versiondoes not supply even though the module version is embedded in Go build info.Validation
make fmtmake lint-strict— 0 issuesmake testmake codeguard-ci— 0 fail findingsmake checkgo install ./cmd/codeguard && codeguard version— reported0.1.0-dev+<revision>v9.9.9Provider keys were removed for all gates. Anthropic's official model documentation confirms
claude-sonnet-4-6is a valid dateless API model ID, so the default model was left unchanged.