Make prewarm resync MCP tools and rebuild frozen wire cache.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-12 21:34:45 +08:00
parent 25d09d78ce
commit 3785e78a72
10 changed files with 253 additions and 110 deletions

View file

@ -190,8 +190,8 @@ def materialize_tool_specs(
except Exception as exc:
logger.warning("expert tool load skipped: %s", exc)
# MCP tools are role-bound and should be materialized before model injection.
# Fine-grained penalty/visibility is still applied by wire policy in direct_loop.
# MCP tools are role-bound and materialized before model injection.
# Wire penalty/suppression was removed; visibility is specialist↔MCP binding only.
mcp_enabled = True
try:
if store is not None: