parity

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrParityMetadata = errors.New("invalid parity metadata")

Functions

func ValidateRunnerOrder

func ValidateRunnerOrder(events []TraceEvent) error

Types

type AutomationRunSnapshot

type AutomationRunSnapshot struct {
	Status          string
	FailureCategory string
	SafeSummary     string
	AttemptCount    int
	ClaimRefs       []string
	RunnerRefs      []string
}

type ChainSnapshot

type ChainSnapshot struct {
	Status          string
	StageStatuses   map[string]string
	StageRefs       []string
	CarriedTaskRefs []string
	GitOpsReady     bool
	PullRequestRefs []string
}

type Comparison

type Comparison struct {
	Scenario    string
	Divergences []string
}

func CompareSnapshots

func CompareSnapshots(scenario string, current Snapshot, durable Snapshot) (Comparison, error)

func (Comparison) Equal

func (c Comparison) Equal() bool

type ConfidenceSnapshot

type ConfidenceSnapshot struct {
	Refs []string
}

type ControlFlowSnapshot

type ControlFlowSnapshot struct {
	WorkerEnabled                 bool
	DurableExecutionAuthoritative bool
	ComparisonError               string
	AuthoritativeResultChanged    bool
	Events                        []TraceEvent
	DurableMutations              []Mutation
}

func (ControlFlowSnapshot) Validate

func (c ControlFlowSnapshot) Validate() error

type EvidenceSnapshot

type EvidenceSnapshot struct {
	Refs []string
}

type GitOpsSnapshot

type GitOpsSnapshot struct {
	Refs              []string
	FailureCategories []string
}

type KnowledgeSnapshot

type KnowledgeSnapshot struct {
	Refs []string
}

type Mutation

type Mutation struct {
	Ref                string
	ApprovedShadowPort bool
	MatchesCurrentPath bool
}

type Snapshot

type Snapshot struct {
	KnownRefs  []string
	Automation AutomationRunSnapshot
	WorkPlan   WorkPlanSnapshot
	WorkTasks  []WorkTaskSnapshot
	Chain      ChainSnapshot
	GitOps     GitOpsSnapshot
	Evidence   EvidenceSnapshot
	Confidence ConfidenceSnapshot
	Knowledge  KnowledgeSnapshot
	Control    ControlFlowSnapshot
}

func (Snapshot) Validate

func (s Snapshot) Validate() error

type TraceEvent

type TraceEvent struct {
	Kind string
}

type WorkPlanSnapshot

type WorkPlanSnapshot struct {
	Status         string
	SafeNextAction string
}

type WorkTaskSnapshot

type WorkTaskSnapshot struct {
	TaskRef        string
	Status         string
	DependencyRefs []string
	VerifierRefs   []string
	ReviewRefs     []string
	EvidenceRefs   []string
	ContextRefs    []string
	ArtifactRefs   []string
}

Jump to

Keyboard shortcuts

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