fix: tolerate runtime schema drift
This commit is contained in:
@@ -16,6 +16,14 @@ type Store struct {
|
||||
}
|
||||
|
||||
func (s Store) View() (View, error) {
|
||||
if s.Runtime == nil {
|
||||
return View{
|
||||
Events: []Event{},
|
||||
HandoffEdges: []HandoffEdge{},
|
||||
Phases: []Phase{},
|
||||
Source: SourceEvidence{Kind: "runtime_missing", Confidence: "low", Message: "Runtime reader is not configured; returning an empty workflow view."},
|
||||
}, nil
|
||||
}
|
||||
snapshot, err := s.Runtime.Snapshot()
|
||||
if err != nil {
|
||||
return View{}, err
|
||||
|
||||
Reference in New Issue
Block a user