- Add identity-based allowed_tools resolution shared by ConvertResponsesToolChoiceToGemini and FilterGeminiFunctionDeclarationsByResponsesToolChoice, enforcing exact namespace, local name, and tool-kind matching with fail-closed NONE fallbacks.
- Filter Gemini functionDeclarations in ConvertOpenAIResponsesRequestToGemini for allowed_tools while preserving the full forwardMap for historical tool-call replay.
- Add unit and request-level regression tests covering required/any/auto/none modes, namespace and tool_search entries, shadowing collisions, and kind mismatches.
Closes: #8215