Require explicit manifest schemas

This commit is contained in:
2026-09-02 11:45:40 +00:00
parent 9679117e94
commit 2cfca710ec
17 changed files with 307 additions and 123 deletions

View File

@@ -69,6 +69,17 @@ func TestStageMarkHelpers(t *testing.T) {
}
}
func TestEnsureAnalyzeStageStartsWithCurrentAuthority(t *testing.T) {
now := time.Date(2026, 5, 3, 12, 0, 0, 0, time.UTC)
m := New("2026-05-03", now)
m.MarkStageRunning("analyze", now)
stage := m.Stages["analyze"]
if stage == nil || stage.AnalyzeStateVersion != AnalyzeStateContractVersion || stage.AnalyzeArtifacts == nil {
t.Fatalf("analyze stage = %#v, want initialized current authority", stage)
}
}
func TestMarkStageRunningClearsPriorCompletionErrorAndResultDetails(t *testing.T) {
m := New("2026-05-03", time.Date(2026, 5, 3, 10, 0, 0, 0, time.UTC))