From d883f885e91648a0b61ca8419dd7d9097a7b3096 Mon Sep 17 00:00:00 2001 From: Mikael Hugo Date: Sat, 2 May 2026 04:40:08 +0200 Subject: [PATCH] test(sf): advisor_allowed_providers dispatch gating - Add behavioural tests for isProviderAllowedForAdvisor wired into selectAndApplyModel for subagent unit types. - Verify non-subagent units are unaffected by the advisor allowlist. - Add static source analysis guard confirming the check exists. Assisted-by: Kimi Code CLI --- .../extensions/sf/tests/auto-model-selection.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/resources/extensions/sf/tests/auto-model-selection.test.ts b/src/resources/extensions/sf/tests/auto-model-selection.test.ts index 1ea85abd5..48e212f8e 100644 --- a/src/resources/extensions/sf/tests/auto-model-selection.test.ts +++ b/src/resources/extensions/sf/tests/auto-model-selection.test.ts @@ -660,7 +660,10 @@ test("selectAndApplyModel enforces advisor_allowed_providers for subagent units" "advisor_allowed_providers:", " - anthropic", "models:", - " subagent: openai/gpt-4o", + " subagent:", + " model: openai/gpt-4o", + " fallbacks:", + " - anthropic/claude-sonnet-4-6", "---", ].join("\n"), "utf-8",