fix(chat): enforce effort ceilings without model pins - #4349
Conversation
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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (7)
Included review availability: Your plan provides up to 10 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughNative Chat effort handling now applies eligible caps without model pins, conditionally normalizes rewritten values for provider transmission, preserves unchanged caller notation, and expands integration coverage for compaction and retry behavior. ChangesNative Chat effort handling
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix Sequence Diagram(s)sequenceDiagram
participant NativeChat
participant EffortNormalizer
participant Provider
NativeChat->>EffortNormalizer: provide effort and compaction_trigger
EffortNormalizer->>EffortNormalizer: apply eligible cap
EffortNormalizer->>Provider: send mapped effort when rewritten
EffortNormalizer-->>NativeChat: preserve original notation when unchanged
Merge Risk: ⚪ Minimal · up to The change is ready to merge after the normal hosted CI checks complete. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. (7 skipped: 7 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cc1421d089
ℹ️ 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".
|
✅ Deterministic PR hygiene checks passed. |
리뷰 · 우선순위 70 / 80지금 고치는 흐름은 짧다. 먼저 compaction이면 pin을 건너뛴다. pin이 있으면 값을 넣고 wire 정규화 후보로 표시한다. 그다음 pin 성공 여부와 무관하게 라인 / 라인 / 경로 / #4124 - 같은 제목·같은 구멍의 원본 PR이 아직 OPEN이다. 이 PR이 머지되면 #4124는 landed-via로 닫아야 한다. 둘을 같이 살리지 말 것. 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
8f1cc4c to
f302982
Compare
Carry #4124 with unchanged pin/cap/mapping policy and regression coverage. Co-authored-by: luvs01 <27862058+luvs01@users.noreply.github.com>
f302982 to
300ee08
Compare
…epseek-flash-vision Lane I3 of the contributor carry train: the remaining #3775 catalog defect, and the deepseek-flash native-multimodal fix carried from #4467 by jaychou0642-create. #4467 was found by the dispatch-time ownership re-check rather than by the candidate harvest — it was opened after the harvest and before this lane, by the person who filed #4436 — so it is carried with a Co-authored-by trailer instead of being reimplemented. That check exists because lane I1 implemented #4442 fresh while contributor draft #4465 had already proposed it. The #3775 link is an implementation with no source branch. It bounds custom native-id effort lists on gateways, which is what #3804 deliberately left open pending Desktop gateway evidence; the original report is that evidence, since Desktop names gpt-6-astra in the 400 rather than the provider prefix. #4349 and the #4409 ladders do not fix this catalog projection. Cross-platform CI run 34751593123 concluded success on 9f318cb, the exact head merged here, and it covers both links because the lane is cumulative. #4499 carries no ci check of its own under the owner-authorized tip-only CI economy for this batch.
Summary
Native Chat Completions now enforces qualifying main/subagent effort ceilings even when no model pin resolves. Pin selection precedes cap admission; provider wire mapping runs only for a pin or cap rewrite. Compaction/V1 exemptions, lower/unranked caller values and retry snapshot behavior are preserved.
Carries #4124 at 38c9b70 as an independent dev PR. Regression coverage and eight translated configuration pages are included.
Co-authored-by: luvs01 27862058+luvs01@users.noreply.github.com
Verification
Checklist
Summary by CodeRabbit
Documentation
Bug Fixes
Maintainer integration decision
The owner-authorized coordinator will integrate exact head 300ee08 into dev with trailing final-tip CI. Independent Erdos implementation review and Laplace final preservation review passed; coordinator inspected the final runtime/test delta, all documentation changes, effort-policy consumers, and fresh resolved review state. No auth/credential boundary changes were introduced. The five document conflicts preserve both sides and the original coauthor trailer remains intact.
Automatic exact-head run 34694883965 ended CANCELLED: product jobs did not execute, and the aggregate ci job failed. This is not passing runtime evidence. Local suites/build/typecheck/install are NOT RUN by explicit user instruction. Manual redispatch remains on hold pending the separate actor-cancellation clarification; no workflow or protection changes are authorized. Technical acceptance stays open until final hosted evidence is obtained.