evidence

package
v0.7.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ManifestSchemaVersion = "agentprovenance.evidence_manifest/v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type GCResult

type GCResult struct {
	Processed       int
	ReclaimedBytes  int64
	ReclaimedInodes int64
	Failed          int
}

type Manifest

type Manifest struct {
	SchemaVersion    string                  `json:"schema_version"`
	RunID            string                  `json:"run_id"`
	ResultSetID      string                  `json:"result_set_id"`
	PageHash         string                  `json:"page_hash"`
	QueryRefs        []ManifestQueryRef      `json:"query_refs,omitempty"`
	Summary          observability.Summary   `json:"summary"`
	Timeline         ManifestTimelineRef     `json:"timeline"`
	Objects          ManifestObjectSummary   `json:"objects"`
	Security         ManifestSecuritySummary `json:"security"`
	RecommendedViews []string                `json:"recommended_views"`
}

func BuildManifest

func BuildManifest(db *sql.DB, opts ManifestOptions) (Manifest, error)

type ManifestObjectRef

type ManifestObjectRef struct {
	Hash      string `json:"hash"`
	Type      string `json:"type"`
	SourceID  string `json:"source_id"`
	Path      string `json:"path"`
	SizeBytes int64  `json:"size_bytes"`
}

type ManifestObjectSummary

type ManifestObjectSummary struct {
	SchemaVersion string              `json:"schema_version"`
	ObjectCount   int                 `json:"object_count"`
	HasMore       bool                `json:"has_more"`
	NextCursor    string              `json:"next_cursor,omitempty"`
	ResultSetID   string              `json:"result_set_id"`
	PageHash      string              `json:"page_hash"`
	TotalBytes    int64               `json:"total_bytes"`
	ByType        map[string]int      `json:"by_type"`
	TopRefs       []ManifestObjectRef `json:"top_refs,omitempty"`
}

type ManifestOptions

type ManifestOptions struct {
	RunID       string
	ObjectLimit int
}

type ManifestQueryRef

type ManifestQueryRef struct {
	Kind          string `json:"kind"`
	SchemaVersion string `json:"schema_version,omitempty"`
	Command       string `json:"command"`
	ResultSetID   string `json:"result_set_id,omitempty"`
	PageHash      string `json:"page_hash,omitempty"`
	HasMore       bool   `json:"has_more,omitempty"`
	NextCursor    string `json:"next_cursor,omitempty"`
}

type ManifestSecuritySummary

type ManifestSecuritySummary struct {
	RisksResultSetID     string `json:"risks_result_set_id,omitempty"`
	RisksPageHash        string `json:"risks_page_hash,omitempty"`
	RiskCount            int    `json:"risk_count"`
	ResponsesResultSetID string `json:"responses_result_set_id,omitempty"`
	ResponsesPageHash    string `json:"responses_page_hash,omitempty"`
	ResponseCount        int    `json:"response_count"`
}

type ManifestTimelineRef

type ManifestTimelineRef struct {
	SchemaVersion string             `json:"schema_version"`
	EventCount    int                `json:"event_count"`
	ResultSetID   string             `json:"result_set_id"`
	PageHash      string             `json:"page_hash"`
	LaneCounts    map[string]int     `json:"lane_counts,omitempty"`
	QueryRefs     []ManifestQueryRef `json:"query_refs"`
}

type MaterializedManifest

type MaterializedManifest struct {
	Manifest   Manifest `json:"manifest"`
	ObjectHash string   `json:"object_hash,omitempty"`
	ObjectPath string   `json:"object_path,omitempty"`
}

type ProcessResult

type ProcessResult struct {
	Processed int
}

type Service

type Service struct {
	DB    *sql.DB
	Paths store.Paths
}

func (Service) ProcessEvidence

func (s Service) ProcessEvidence(limit int) (ProcessResult, error)

func (Service) RunGC

func (s Service) RunGC(limit int) (GCResult, error)

Jump to

Keyboard shortcuts

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