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
feat(calibration): consume the ai_review_close_confidence override and flip the knob to live (#8197)
The #8176 gate-authority change, mirroring the satisfaction floor's
consumption discipline exactly:
- One bounds-validated resolution point: getKnobOverride reads the knob's
system_flags row only when its own wrangler var
(AI_REVIEW_CLOSE_CONFIDENCE_AUTOTUNE_ENABLED, false by default) is ON, and
refuses anything not strictly below the shipped 0.93 or under the 0.85
hard minimum. gateCheckPolicy threads it as the LAST-resort default — an
explicit per-repo gate.aiReview.closeConfidence setting always wins.
- Generic apply machinery (knob-loosening-run.ts): the satisfaction
run/status/tick generalized over the registry entry rather than
duplicated. The satisfaction floor keeps its legacy module and event
shape; the shared cron tick now runs every OTHER live knob, double-gated
per knob. Report-only refusal stays enforced in the write path itself.
- Registry entries carry their apply plumbing (override flag key, event
type, autotune var), pinned against the legacy constants by invariant
tests; the close-confidence knob flips to applyMode live.
- Operator surface: GET /v1/internal/calibration/knobs renders every live
knob's flag state, shipped/live/override values, and applied history
through one projector that reads both proposal spellings.
Closes#8176
const notFound = sanitizePublicComment([AGENT_COMMAND_COMMENT_MARKER, "", "> [!NOTE]", `> **No review finding \`${findingRef.findingCode}\` on this PR**`, "> That id is not among this PR's current review findings — re-run `@loopover explain <finding-id>` with an id from the review summary.", "", "---", loopoverFooter(env)].join("\n"));
0 commit comments