fix(torghut): default invalid route counts - #12741
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 88223e31eb
ℹ️ 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".
88223e3 to
e15f369
Compare
e15f369 to
1a447e6
Compare
|
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1a447e6521
ℹ️ 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".
| try: | ||
| return int(value) |
There was a problem hiding this comment.
Reject non-integral route counts before coercion
When the gate-report JSON supplies a malformed numeric count such as 0.5 (or a boolean such as false), int(value) silently produces 0 instead of using the default. The dry run then emits an expert-router artifact that fails the configured minimum-route gate, whereas these inputs should receive the same missing-input treatment as blank and non-integer strings; route counts generated by the real registry are integer len(...) values.
Useful? React with 👍 / 👎.
|
@codex address that feedback. Update |
|
@codex address the remaining P2 on the latest branch. |
|
Summary
Testing
|
|
@codex push commit |
|
@codex apply the completed |
|
Summary
Testing
|
|
Summary
Caveat
Testing
|
|
Codex couldn't complete this request. Try again later. |
Summary
Related Issues
Historical Codex finding: PR #12668 discussion
r3593612000.Testing
uv run --frozen pytest -q tests/test_governance_policy_dry_run.py(21 passed)git diff --checkBreaking Changes
None.
Checklist
N/Awith justification).