Migrate item occurrences to native correction while preserving holder semantics

This commit is contained in:
2026-11-22 01:08:02 +00:00
parent 2c1d727232
commit 1fe231b6fb
14 changed files with 519 additions and 486 deletions

View File

@@ -36,8 +36,8 @@ func testSourceRefs() []source.SourceRef {
func TestModuleSpecDeclaresRequiredRegistry(t *testing.T) {
spec := ModuleSpec()
if spec.CorrectionProtocol != contracts.CorrectionProtocolSingleResponseV1 {
t.Fatalf("correction protocol = %q, want %q", spec.CorrectionProtocol, contracts.CorrectionProtocolSingleResponseV1)
if !reflect.DeepEqual(spec.Prompts, []string{PromptID, CorrectionPromptID}) {
t.Fatalf("prompt dependencies = %#v", spec.Prompts)
}
var slot contracts.ReferenceSlot
for _, candidate := range spec.ReferenceSlots {