Repository navigation
[AISAGE-736] feat(ai-gateway): log Claude tool schema combinator removal - #7755
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge The incremental change (commit 16cb2e5) only reverts the test-side log verification added earlier: it drops the Files Reviewed (2 files)
Previous Review Summaries (2 snapshots, latest commit ed2a518)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit ed2a518)Status: No Issues Found | Recommendation: Merge The incremental change replaced the direct Files Reviewed (2 files)
Previous review (commit 5450a1f)Status: No Issues Found | Recommendation: Merge The logging added to Files Reviewed (2 files)
Reviewed by deepseek-v4.1-flash · Input: 33.2K · Output: 4.7K · Cached: 321.8K Review guidance: REVIEW.md from base branch |
Summary
Follow-up to #7646.
removeTopLevelToolSchemaCombinatorsrewrote Claude tool schemas without leaving a trace, so we could not tell how often it fires or which tools trigger it.It now emits one
warnExceptInTest(console.warnoutside automated tests) per request when it changes at least one tool, in the same structured style as the existingremoveUnsupportedRequestServiceTierandremoveNonSensicalMaxTokenslogs:strictflag are logged, not schemas or descriptions, to keep log lines small.Verification
warnExceptInTestis a no-op in tests, and asserting a diagnostic log line is not worth mocking it. The existing combinator tests pass unchanged.Visual Changes
N/A
Reviewer Notes
A client that always sends an affected tool (e.g. the nteract MCP server) produces one log line per Claude request. That matches the other gateway workaround logs; we can sample or lower it once we know the volume.