Repository navigation
Reject non-finite routing settings and bound prompt calibration - #946
Gajesh2007 wants to merge 6 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 00d1ffad29
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
00d1ffa to
281ea37
Compare
|
@codex review Please review stacked head281ea379c against base refactor/coordinator-capacity; downstream sum fix and the new API-to-registry regression now make the dependency explicit. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 281ea379c6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review Head6317351e5 clarifies and characterizes the preserved disabled-controller finite range exception; no production delta from the fully race-tested281ea379c head. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Consolidated into #1056 for review and merge after #1094, #1095 and #1096. #1056 contains this branch's exact head ( |
Stacked on #943 (
refactor/coordinator-capacity); merge #943 first. Its safe context-token addition is required for the calibrated estimate to reach the registry gate without wrapping.Operator settings such as
NaNand+Infpassed the registry's numeric range checks, and prompt-calibration overrides treated non-finite pairs as valid replacements. Reject non-finite quality/warm-pool settings during startup validation and skip non-finite calibration pairs. Bound large finite calibrated products before integer conversion so context estimates have consistent behavior across architectures.flowchart LR subgraph Before E[Operator float settings] --> C[Config.Check range comparisons] C --> A[Nonfinite values reach target and admission math] P[Calibration pairs] --> S[SetPromptContextCalibrationFromEnv] S --> M[Replace map including NaN or infinity] M --> I[Unchecked float-to-int estimate] end subgraph After E2[Operator float settings] --> C2[Config.Check finite and range checks] C2 --> R[Reject nonfinite configuration before serving] P2[Calibration pairs] --> S2[Skip nonfinite or invalid pairs] S2 --> M2[Replace only when valid pairs remain] M2 --> I2[Clamp oversized calibrated product before int conversion] I2 --> T[Context-only estimate with stable bounds] T --> R2[PredictServable safe sum from parent PR943] R2 --> C3[Oversized context rejected] endThe checks include the decode floor even when the warm controller is disabled because admission also consumes it. Valid defaults, finite ranges, zero-value behavior, unmatched/nonpositive estimates, and truncation of ordinary products are unchanged. The shared
env.EnvFloatparser and registry setter contracts remain unchanged; main already validates the assembled configuration before invoking those setters. The implementation remains focused on calibration/configuration; the PR now explicitly depends on #943 for the downstream safe context-token sum.Validation:
ReadConfig().Check()acceptance and calibration setter replacement/counts, including all-invalid and mixed overrides.Review follow-up: an API-to-registry regression fails on the previously independent head (oversized calibrated prompt declared servable) and passes when stacked on #943. Focused stacked registry/API races pass (registry 1.510s, API 1.952s). Full stacked Go 1.25 race suites also pass (registry 24.721s, API 225.800s); pre-stack full results above remain explicitly historical.
The disabled, zero-interval warm-controller range bypass remains compatible: finite negative decode floors still disable the quality cap. This exception is now documented explicitly and covered through actual
ReadConfig().Check()calls; non-finite floors remain rejected. Follow-up registry race passes 1.455s and docs lint passes 278 pages. No production code changed after the full stacked race run.Ready for human review: all findings are resolved and the source/test checks pass. Fresh Codex review of final head
6317351e5completed with a thumbs-up and no unresolved findings. Merge the explicit #943 dependency first.