Migrate item normalization to native correction and explicit fallback handling

This commit is contained in:
2026-11-22 00:17:58 +00:00
parent 2348730820
commit 772b8619c1
11 changed files with 704 additions and 337 deletions

View File

@@ -35,7 +35,7 @@ func TestValidatorApprovesAndRegisters(t *testing.T) {
if err := Register(registry); err != nil {
t.Fatalf("Register() error = %v", err)
}
if got, ok := registry.Spec(Key); !ok || got != Spec() || got.ExecutionClass != contracts.ExecutionClassDeterministic {
if got, ok := registry.Spec(Key); !ok || !reflect.DeepEqual(got, Spec()) || got.ExecutionClass != contracts.ExecutionClassDeterministic {
t.Fatalf("registered spec = %#v, ok = %t", got, ok)
}
if _, err := DecodeOptions(map[string]any{"unexpected": true}); err == nil {