Path: redb-route/tests/redb.Route.Tests.Llm/Governance/ApprovalDefaultsTests.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/tests/redb.Route.Tests.Llm/Governance/ApprovalDefaultsTests.cs ---- using Microsoft.Extensions.DependencyInjection; using redb.Route.Llm.Engine.Governance; namespace redb.Route.Tests.Llm.Governance; /// /// Lock, not red. Records the shipped default that the governance docs talk about: a container /// built by AddRedbRouteLlm() resolves , i.e. the approval flag /// alone does not stop a tool call. /// /// This stays true after wave 6 by decision: discovered MCP tools now declare /// RequiresApproval = true, which with this gate produces an audit row /// (ApprovalId = "auto"), not a blocked call. A host that wants approval to be a control point /// registers its own gate — and AddRedbLlmStorage() leaves that registration alone. /// /// [Trait("Category", "Governance")] public sealed class ApprovalDefaultsTests { [Fact] public void AddRedbRouteLlm_ResolvesAutoApproveGateByDefault() { var services = new ServiceCollection(); services.AddRedbRouteLlm(); using var provider = services.BuildServiceProvider(); var gate = provider.GetRequiredService(); gate.Should().BeOfType( "the shipped default gate auto-approves; a real control point requires replacing it"); } }