Skip to main content

validate_runtime_tool_declarations

Function validate_runtime_tool_declarations 

Source
pub fn validate_runtime_tool_declarations(
    declared: &[DeclaredExtensionTool],
    registered: &[RegisteredExtensionToolSpec],
) -> Result<(), &'static str>
Expand description

Strict initialize-time declaration check: the runtime’s registered tool specs must match the manifest’s passive declarations EXACTLY — same name set (no missing, no undeclared extras) and identical canonical schema digests. Static reasons only; callers shut the child down and fail closed on any mismatch, before any registration or grant.