agentresolver

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const WorkflowChainVersion = "1"

Variables

This section is empty.

Functions

func Resolve

func Resolve(findings []model.Finding) map[string]agginventory.AgentBindingContext

func WorkflowChainRefsByPath added in v1.6.0

func WorkflowChainRefsByPath(artifact *WorkflowChainArtifact) map[string][]string

Types

type WorkflowChain added in v1.6.0

type WorkflowChain struct {
	ChainID                  string                 `json:"chain_id"`
	PathIDs                  []string               `json:"path_ids,omitempty"`
	GraphNodeRefs            []string               `json:"graph_node_refs,omitempty"`
	GraphEdgeRefs            []string               `json:"graph_edge_refs,omitempty"`
	ProofRefs                []string               `json:"proof_refs,omitempty"`
	EvidenceRefs             []string               `json:"evidence_refs,omitempty"`
	SourceFindingKeys        []string               `json:"source_finding_keys,omitempty"`
	IntroducedBy             *attribution.Result    `json:"introduced_by,omitempty"`
	Repo                     WorkflowChainDimension `json:"repo"`
	PullRequest              WorkflowChainDimension `json:"pull_request"`
	Workflow                 WorkflowChainDimension `json:"workflow"`
	Task                     WorkflowChainDimension `json:"task"`
	Tool                     WorkflowChainDimension `json:"tool"`
	Credential               WorkflowChainDimension `json:"credential"`
	Owner                    WorkflowChainDimension `json:"owner"`
	Approval                 WorkflowChainDimension `json:"approval"`
	Target                   WorkflowChainDimension `json:"target"`
	Evidence                 WorkflowChainDimension `json:"evidence"`
	Outcome                  WorkflowChainDimension `json:"outcome"`
	AutonomyTier             string                 `json:"autonomy_tier,omitempty"`
	DelegationReadinessState string                 `json:"delegation_readiness_state,omitempty"`
	RecommendedControl       string                 `json:"recommended_control,omitempty"`
	TargetClass              string                 `json:"target_class,omitempty"`
	EvidenceCompleteness     string                 `json:"evidence_completeness,omitempty"`
}

type WorkflowChainArtifact added in v1.6.0

type WorkflowChainArtifact struct {
	Version string               `json:"version"`
	Summary WorkflowChainSummary `json:"summary"`
	Chains  []WorkflowChain      `json:"chains"`
}

func BuildWorkflowChains added in v1.6.0

func BuildWorkflowChains(inputs []WorkflowChainInput) *WorkflowChainArtifact

type WorkflowChainDimension added in v1.6.0

type WorkflowChainDimension struct {
	Key          string   `json:"key"`
	Label        string   `json:"label,omitempty"`
	Status       string   `json:"status,omitempty"`
	EvidenceRefs []string `json:"evidence_refs,omitempty"`
}

type WorkflowChainInput added in v1.6.0

type WorkflowChainInput struct {
	PathID                    string
	Org                       string
	Repo                      string
	AgentID                   string
	ToolFamilyID              string
	ToolInstanceID            string
	ToolType                  string
	Location                  string
	Purpose                   string
	PurposeSource             string
	OperationalOwner          string
	CredentialAccess          bool
	CredentialProvenance      *agginventory.CredentialProvenance
	CredentialAuthority       *agginventory.CredentialAuthority
	ApprovalEvidenceState     string
	ProofEvidenceState        string
	RuntimeEvidenceState      string
	TargetEvidenceState       string
	ControlResolutionState    string
	DeploymentStatus          string
	DeliveryChainStatus       string
	TargetClass               string
	IntroducedBy              *attribution.Result
	AutonomyTier              string
	DelegationReadinessState  string
	RecommendedControl        string
	MatchedProductionTargets  []string
	EvidenceCompletenessLabel string
	GraphNodeRefs             []string
	GraphEdgeRefs             []string
	ProofRefs                 []string
	EvidenceRefs              []string
	SourceFindingKeys         []string
}

type WorkflowChainRollup added in v1.6.0

type WorkflowChainRollup struct {
	Value string `json:"value"`
	Count int    `json:"count"`
}

type WorkflowChainSummary added in v1.6.0

type WorkflowChainSummary struct {
	TotalChains               int                   `json:"total_chains"`
	Workflows                 []WorkflowChainRollup `json:"workflows,omitempty"`
	Repos                     []WorkflowChainRollup `json:"repos,omitempty"`
	AutonomyTiers             []WorkflowChainRollup `json:"autonomy_tiers,omitempty"`
	DelegationReadinessStates []WorkflowChainRollup `json:"delegation_readiness_states,omitempty"`
	RecommendedControls       []WorkflowChainRollup `json:"recommended_controls,omitempty"`
	TargetClasses             []WorkflowChainRollup `json:"target_classes,omitempty"`
	EvidenceCompleteness      []WorkflowChainRollup `json:"evidence_completeness,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL