GEN2-016: add intelligence strategy and benchmark evidence
CI / test (push) Failing after 26s

This commit is contained in:
m
2026-08-29 11:16:07 +03:00
parent 42871f2e47
commit 26207d93ef
7 changed files with 123 additions and 6 deletions
@@ -0,0 +1,15 @@
package domain_test
import (
"git.cin.su/m/Assistant/contracts/capability"
"testing"
)
func TestStrategyUsesRiskAndCostSignals(t *testing.T) {
if got := (capability.StrategyRequest{RequiredQuality: 400, CostBudgetMicros: 10}).Select().Path; got != capability.PathRule {
t.Fatal(got)
}
if got := (capability.StrategyRequest{RiskClass: "HIGH", CostOfError: 900}).Select(); got.Path != capability.PathStrongLocal || !got.Escalate {
t.Fatalf("%#v", got)
}
}