MCPcopy Create free account
hub / github.com/compozy/agh / normalizeRunFailure

Function normalizeRunFailure

internal/task/manager.go:2720–2728  ·  view source on GitHub ↗
(failure RunFailure)

Source from the content-addressed store, hash-verified

2718}
2719
2720func normalizeRunFailure(failure RunFailure) (RunFailure, error) {
2721 normalized := failure
2722 normalized.Error = strings.TrimSpace(normalized.Error)
2723 normalized.Metadata = normalizeRawJSON(normalized.Metadata)
2724 if err := normalized.Validate("run_failure"); err != nil {
2725 return RunFailure{}, err
2726 }
2727 return normalized, nil
2728}
2729
2730func normalizeRunBootRecovery(recovery RunBootRecovery) (RunBootRecovery, error) {
2731 normalized := recovery

Callers 1

FailRunMethod · 0.85

Calls 2

normalizeRawJSONFunction · 0.70
ValidateMethod · 0.65

Tested by

no test coverage detected