You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: Terraform plan was skipped because secrets are not configured. This is expected for external contributors. See docs/GETTING_STARTED.md for setup instructions.
packages/slack-bot/src/classifier/index.ts Medium confidence auto-clarifies
needsClarification currently becomes true for confidence === "medium"only ifalternatives.length > 0. With the new tool schema, the model can return confidence: "medium" with an empty alternatives array, which will make the bot proceed without asking the user even though the model explicitly said it’s not confident. This is a reachable behavior regression. Consider treating any non-high confidence as requiring clarification (or enforce non-empty alternatives when confidence != high).
Prompt To Fix With AI
This is a comment left during a code review.
Path: packages/slack-bot/src/classifier/index.ts
Line: 279:287
Comment:
**Medium confidence auto-clarifies**`needsClarification` currently becomes `true` for `confidence === "medium"`*only if*`alternatives.length > 0`. With the new tool schema, the model can return `confidence: "medium"` with an empty `alternatives` array, which will make the bot proceed without asking the user even though the model explicitly said it’s not confident. This is a reachable behavior regression. Consider treating any non-`high` confidence as requiring clarification (or enforce non-empty `alternatives` when confidence != high).
How can I resolve this? If you propose a fix, please make it concise.
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
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
classify_repository)Validation