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

@@ -48,3 +48,14 @@ func TestRunManifestStageMarkHelpers(t *testing.T) {
t.Fatalf("status = %q, want %q", rm.Status, RunManifestStatusSucceeded)
}
}
func TestRunEnsureAnalyzeStageStartsWithCurrentAuthority(t *testing.T) {
now := time.Date(2026, 5, 3, 10, 0, 0, 0, time.UTC)
run := NewRun("2026-05-03", "forsaken", "run-123", false, nil, now)
run.MarkStageRunning("analyze", now)
stage := run.Stages["analyze"]
if stage == nil || stage.AnalyzeStateVersion != AnalyzeStateContractVersion || stage.AnalyzeArtifacts == nil {
t.Fatalf("analyze stage = %#v, want initialized current authority", stage)
}
}