Documentation
¶
Index ¶
- func AppendTransitionRecord(chain *proof.Chain, transition Transition, eventType string) error
- func ChainPath(statePath string) string
- func LoadChain(path string) (*proof.Chain, error)
- func ParseExpiry(raw string, now time.Time) (time.Time, error)
- func RecordsForAgent(chain *proof.Chain, agentID string) []proof.Record
- func SaveChain(path string, chain *proof.Chain) error
- type ObservedTool
- type Transition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendTransitionRecord ¶
func AppendTransitionRecord(chain *proof.Chain, transition Transition, eventType string) error
Types ¶
type ObservedTool ¶
type Transition ¶
type Transition struct {
AgentID string `json:"agent_id" yaml:"agent_id"`
PreviousState string `json:"previous_state" yaml:"previous_state"`
NewState string `json:"new_state" yaml:"new_state"`
Trigger string `json:"trigger" yaml:"trigger"`
Diff map[string]any `json:"diff,omitempty" yaml:"diff,omitempty"`
Timestamp string `json:"timestamp" yaml:"timestamp"`
}
func ApplyManualState ¶
func Reconcile ¶
func Reconcile(previous manifest.Manifest, observed []ObservedTool, now time.Time) (manifest.Manifest, []Transition)
Click to show internal directories.
Click to hide internal directories.