惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
云风的 BLOG
云风的 BLOG
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
D
Docker
H
Help Net Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Azure Blog
Microsoft Azure Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
月光博客
月光博客
C
Check Point Blog
S
SegmentFault 最新的问题
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
M
MIT News - Artificial intelligence
B
Blog RSS Feed
MyScale Blog
MyScale Blog
大猫的无限游戏
大猫的无限游戏
Hugging Face - Blog
Hugging Face - Blog
腾讯CDC
美团技术团队
I
InfoQ
Blog — PlanetScale
Blog — PlanetScale

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(agents): quarantine unsupported tool schemas · opencl...
vincentkoc · 2026-05-27 · via Recent Commits to openclaw:main

@@ -194,6 +194,10 @@ import {

194194

} from "../../tool-allowlist-guard.js";

195195

import { UNKNOWN_TOOL_THRESHOLD } from "../../tool-loop-detection.js";

196196

import { normalizeToolName } from "../../tool-policy.js";

197+

import {

198+

filterRuntimeCompatibleTools,

199+

type RuntimeToolSchemaDiagnostic,

200+

} from "../../tool-schema-projection.js";

197201

import {

198202

addClientToolsToToolSearchCatalog,

199203

applyToolSearchCatalog,

@@ -480,6 +484,40 @@ function collectTrustedLocalMediaToolNames(params: {

480484

]);

481485

}

482486487+

function logRuntimeToolSchemaQuarantine(params: {

488+

diagnostics: readonly RuntimeToolSchemaDiagnostic[];

489+

tools: readonly Parameters<typeof getPluginToolMeta>[0][];

490+

runId: string;

491+

sessionKey?: string;

492+

sessionId?: string;

493+

}): void {

494+

if (params.diagnostics.length === 0) {

495+

return;

496+

}

497+

const summary = params.diagnostics

498+

.map((diagnostic) => {

499+

const tool = params.tools[diagnostic.toolIndex];

500+

const pluginId = tool ? getPluginToolMeta(tool)?.pluginId : undefined;

501+

const owner = pluginId ? ` plugin=${pluginId}` : "";

502+

emitTrustedDiagnosticEvent({

503+

type: "tool.execution.blocked",

504+

runId: params.runId,

505+

...(params.sessionKey ? { sessionKey: params.sessionKey } : {}),

506+

...(params.sessionId ? { sessionId: params.sessionId } : {}),

507+

toolName: diagnostic.toolName,

508+

toolSource: pluginId ? "plugin" : "core",

509+

...(pluginId ? { toolOwner: pluginId } : {}),

510+

deniedReason: "unsupported_tool_schema",

511+

reason: diagnostic.violations.join(", "),

512+

});

513+

return `${diagnostic.toolName}${owner}: ${diagnostic.violations.join(", ")}`;

514+

})

515+

.join("; ");

516+

log.warn(

517+

`[tools] quarantined ${params.diagnostics.length} unsupported tool schema${params.diagnostics.length === 1 ? "" : "s"} before model runtime projection: ${summary}. Run openclaw doctor for details.`,

518+

);

519+

}

520+483521

const MAX_BTW_SNAPSHOT_MESSAGES = 100;

484522

const TOOL_SEARCH_CONTROL_ALLOWLIST_NAMES = [

485523

TOOL_SEARCH_CODE_MODE_TOOL_NAME,

@@ -1917,11 +1955,22 @@ export async function runEmbeddedAttempt(

19171955

model: params.model,

19181956

})

19191957

: filteredBundledTools;

1920-

const uncompactedEffectiveTools = filterLocalModelLeanTools({

1958+

const projectedUncompactedEffectiveTools = filterLocalModelLeanTools({

19211959

tools: [...tools, ...normalizedBundledTools],

19221960

config: params.config,

19231961

agentId: sessionAgentId,

19241962

});

1963+

const uncompactedToolSchemaProjection = filterRuntimeCompatibleTools(

1964+

projectedUncompactedEffectiveTools,

1965+

);

1966+

logRuntimeToolSchemaQuarantine({

1967+

diagnostics: uncompactedToolSchemaProjection.diagnostics,

1968+

tools: projectedUncompactedEffectiveTools,

1969+

runId: params.runId,

1970+

sessionKey: params.sessionKey,

1971+

sessionId: params.sessionId,

1972+

});

1973+

const uncompactedEffectiveTools = [...uncompactedToolSchemaProjection.tools];

19251974

let effectiveTools = uncompactedEffectiveTools;

19261975

const catalogToolHookContext = {

19271976

agentId: sessionAgentId,

@@ -1978,11 +2027,20 @@ export async function runEmbeddedAttempt(

19782027

toolHookContext: catalogToolHookContext,

19792028

});

19802029

toolSearchCatalogApplied = true;

1981-

effectiveTools = filterLocalModelLeanTools({

2030+

const projectedToolSearchTools = filterLocalModelLeanTools({

19822031

tools: toolSearch.tools,

19832032

config: params.config,

19842033

agentId: sessionAgentId,

19852034

});

2035+

const toolSearchSchemaProjection = filterRuntimeCompatibleTools(projectedToolSearchTools);

2036+

logRuntimeToolSchemaQuarantine({

2037+

diagnostics: toolSearchSchemaProjection.diagnostics,

2038+

tools: projectedToolSearchTools,

2039+

runId: params.runId,

2040+

sessionKey: params.sessionKey,

2041+

sessionId: params.sessionId,

2042+

});

2043+

effectiveTools = [...toolSearchSchemaProjection.tools];

19862044

if (toolSearch.compacted) {

19872045

prepStages.mark(codeModeControlsEnabledForRun ? "code-mode" : "tool-search");

19882046

log.info(