Files
Assistant/tests/semantic_evolution/self_development_contract_test.go
m 1ccd43c552
CI / test (push) Failing after 15s
CI / test (pull_request) Failing after 14s
feat(work): add governed self-development gate
2026-08-22 13:46:01 +03:00

16 lines
501 B
Go

package semantic_evolution_test
import (
"testing"
"git.cin.su/m/Assistant/contracts/work"
workdomain "git.cin.su/m/Assistant/modules/work/domain"
)
func TestSelfDevelopmentRollbackIsAvailableOnlyFromCanary(t *testing.T) {
gate := work.DevelopmentGate{ID: "dev-1", Stage: work.DevelopmentCanary, EvidenceRefs: []string{"obs"}, CanaryEvidence: "canary", RollbackRef: "rollback"}
if _, err := workdomain.AdvanceDevelopmentGate(gate, work.DevelopmentRolledBack); err != nil {
t.Fatal(err)
}
}