Document native configuration inheritance

This commit is contained in:
2026-10-04 15:25:48 +00:00
parent 39af6ef941
commit f1f71d8cdf
7 changed files with 75 additions and 13 deletions

View File

@@ -442,6 +442,18 @@ func TestExamplesLoadAndValidate(t *testing.T) {
if !exists || artifact.Enabled {
t.Fatalf("testing-only disabled artifact = %#v", artifact)
}
recap := cfg.Pipeline.Scriptorium.Artifacts["session_recap"]
if artifact.PromptID != "dnd.session_recap" ||
artifact.PromptID != recap.PromptID ||
artifact.ProfileID != recap.ProfileID ||
artifact.ProfileID != "testing-placeholder" ||
!reflect.DeepEqual(artifact.Inputs, recap.Inputs) ||
artifact.Inputs["transcript"].Source != "narratio.transcript.final_trimmed" {
t.Fatalf("testing notes did not inherit the testing recap prompt, profile, and inputs: notes=%#v recap=%#v", artifact, recap)
}
if artifact.OutputPath != "artifacts/testing-notes.md" || artifact.OutputPath == recap.OutputPath {
t.Fatalf("testing notes output path = %q, want its distinct override", artifact.OutputPath)
}
}
})
}