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

Function forceRunDiagnosticError

internal/task/force_ops.go:646–668  ·  view source on GitHub ↗
(
	code string,
	title string,
	message string,
	severity string,
	suggestedCommand string,
	evidence map[string]any,
	cause error,
)

Source from the content-addressed store, hash-verified

644}
645
646func forceRunDiagnosticError(
647 code string,
648 title string,
649 message string,
650 severity string,
651 suggestedCommand string,
652 evidence map[string]any,
653 cause error,
654) error {
655 item := diagnosticitems.NewItem(
656 "task.force."+code,
657 code,
658 diagnosticcontract.CategoryTask,
659 title,
660 message,
661 severity,
662 diagnosticcontract.FreshnessLive,
663 diagnosticitems.WithDocURL(forceOpsDocURL),
664 diagnosticitems.WithSuggestedCommand(suggestedCommand),
665 diagnosticitems.WithEvidence(evidence),
666 )
667 return diagnosticitems.NewStructuredError(item, cause)
668}
669
670func optionalPayloadTime(value time.Time) *time.Time {
671 if value.IsZero() {

Callers 10

ForceReleaseRunMethod · 0.85
RetryRunMethod · 0.85
RecoverRunMethod · 0.85
requireForceRunRateMethod · 0.85
requireForceFailStatusFunction · 0.85
normalizeForceFailRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected