-
[NA] [BE] Reclassify system_tools/system_tools_deferred into the built_in_tools lane (#7555)
发布于
2026-07-24 11:13:02 +00:00 - Reclassify system_tools/system_tools_deferred into the built_in_tools lane
These categories carry built-in tool schema (definition) cost, but were
tagged bd_lane='static_overhead' at ingestion, landing under the "Static
overhead" card in the AI-Spend breakdown instead of "Built-in tools". MCP's
equivalent (mcp_tools_active) already shares bd_lane='mcp_servers' with its
usage rows (tool_io), so mirror that: route these two categories to
built_in_tools in lane()/bdLane(), keyed by tool_name (falling back to
"(unattributed)" for the blank-tool_name deferred-tools reminder block)
instead of the bare category string.Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
- Address review feedback: dedupe lane()/bdLane(), test static_overhead regression
- bdLane() now delegates to lane() for the shared dispatch table and only
overrides the two intentional differences (mcp_tools_deferred/
mcp_server_instructions excluded; "unattributed" collapses to ""), so a
future category addition can't update one table and forget the other. - Extend the new ingestion test with system_prompt/env_info blocks, asserting
their lane()/bdLane() still resolve to static_overhead — a regression guard
for the dispatch-table refactor, since the prior test only covered the two
reclassified categories.
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
- Use getFirst()/getLast() for list edge access in systemToolsLandInBuiltInToolsLane
Matches the project's own List Access guideline (.agents/skills/opik-backend/SKILL.md).
Co-Authored-By: Claude Sonnet 5 noreply@anthropic.com
Co-authored-by: Claude Sonnet 5 noreply@anthropic.com
下载附件