fix(tools): repair integral float arguments for native integer fields - #2360
fix(tools): repair integral float arguments for native integer fields#2360chilung-cgu wants to merge 1 commit into
Conversation
|
✅ Deterministic PR hygiene checks passed. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe PR adds native integer property repair for tool-call arguments, resolves parameter schemas across bare and namespaced tool names, and applies the lookup in streaming and buffered bridge paths. Tests cover schema-aware, schema-free, and alias-based repair cases. ChangesInteger argument repair
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This localized change repairs integral floating-point tool arguments while preserving fractional values and non-integer fields; no actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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 |
✅ READY
Review readiness checklist
✅ 4/4 boxes ticked. This pull request is already Ready for Review. Hygiene✅ Deterministic PR hygiene checks passed. |
리뷰 · 우선순위 64 / 80설명: 이 PR은 이슈 #2316 이 말한, Grok 이 보낸 정수 도구 인자가 src/lib/tool-argument-integers.ts CODEX_NATIVE_INTEGER_PROPERTY_NAMES - timeout_ms만이 아니라 line/start/end/port 까지 이름만으로 정수 취급한다. 스키마 없어도 탄다 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
Opens devlog/_plan/260822_backlog_disposition_program/ as the planning unit for
clearing the open PR/issue backlog by explicit per-item disposition.
000 objective, 45-PR inventory captured at unit open, disposition classes, and the
dependency-ordered wp0-wp9 map
001 baseline verifier evidence actually run at unit open (tool-argument-integers
24 pass, tsc exit 0), remote host state, and repository authority
002 A-phase audit synthesis: round 1 returned FAIL with 7 blockers, all accepted
with zero rebuttals, each re-verified against the tree before disposition
003 live drift at the A gate (45 -> 50 open PRs) and the disposition of competitor
PR #2360, which fixes the same issue as wp3
010 wp1 green-and-ready merges, with per-PR verified change maps
020 wp2 changes-requested rebuilds, including the full 16-PR roster the audit
found missing
030 wp3 #2316, re-scoped by the audit to a single file after the bare-name alias
was shown unreachable behind the bridge authorization guard
040 wp4 #2292 Windows picker, with a bounded subprocess seam
050 wp5 #2221 native main token refresh, with external-writer CAS promoted into
acceptance criteria
060 wp6 #1049, recorded as deferred: it needs a crash-safe publisher phase first
070 wp7 Bun 1.4 memory stack retarget, preserving the recorded FAIL verdicts
080 wp8 conflicting and remaining PR disposition
Docs only: no production file is touched by this commit, and nothing in the build,
typecheck, or test path reads from devlog/. privacy:scan passes.
|
|
Closes #2316
Summary
120000.0) emitted by providers like Grok for Codex native integer fields (e.g.timeout_ms,yield_time_ms,session_id,max_tokens, etc.) even when the tool parameter schema declarestype: "number"ortype: ["number", "null"].multi_agent_v1__wait_agent,collaboration__wait_agent) and bare names (wait_agent) so tool argument repair reliably finds the declared schema in both streaming and non-streaming responses.timeout_ms: 1.5) and leaves non-integer number fields (e.g.temperature: 1.0) untouched.Verification
bun test tests/tool-argument-integers.test.ts(30 pass, 0 fail, covering integral floats, aliases, non-integral preservation, and streaming/non-streaming bridges)bun test tests/core-lab-boundary.test.ts(13 pass, 0 fail)bun test tests/bridge-reasoning-replay-batch.test.ts tests/responses-tools-parity.test.ts(pass)bun run typecheck(clean)bun run privacy:scan(passed)git diff --check(clean)Checklist
Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
Summary by CodeRabbit
Bug Fixes
Tests