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
This commit is contained in:
Mikael Hugo 2026-05-02 04:40:08 +02:00
parent 59aaf3dcf3
commit d883f885e9

View file

@ -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",