feat(ai-206): add policy-aware score calibration for AI appeal outputs#1
Open
khaadish wants to merge 1 commit into
Open
feat(ai-206): add policy-aware score calibration for AI appeal outputs#1khaadish wants to merge 1 commit into
khaadish wants to merge 1 commit into
Conversation
- ScoreCalibrationService decouples raw model confidence from policy thresholds - CalibrationPolicy exposes approveThreshold, rejectThreshold, humanReviewThreshold, biasCorrectionFactor - needsHumanReview=true whenever confidence < humanReviewThreshold (explicit review boundary) - appliedPolicy + rawScore preserved in every output for audit/replay - Corresponding types exported from @devconsole/api-contracts - Spec covers approve/escalate/reject bands, bias correction, clamping, and traceability Closes Ibinola#423
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
Separates raw model confidence from policy thresholds so fairness, review timing, and risk tolerances can be tuned without rewriting the AI pipeline.
Changes
ScoreCalibrationService— explicit inputs (rawScore,CalibrationPolicy) and outputs (band,action,needsHumanReview,appliedPolicy)needsHumanReview=truewheneverconfidence < humanReviewThreshold— hard review boundarybiasCorrectionFactorenables fairness tuning without touching model code@devconsole/api-contractsdocs/ai-206-score-calibration.mdAcceptance Criteria
CalibrationPolicy— measurable and safe to tuneneedsHumanReview+appliedPolicyenable human inspection and audit replayCloses Ibinola#423