Documentation
¶
Overview ¶
Package provenance provides deterministic local attestations. It does not assign Registry trust labels; those are derived by an independent policy.
Index ¶
Constants ¶
View Source
const ( JournalSchema = "urn:agentapi-doctor:run-journal-event:v1alpha1" MaxJournalEventBytes = 1 << 20 )
View Source
const EnvelopeVersion = "dsse-envelope-v1"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Envelope ¶
type Envelope struct {
Version string `json:"version"`
PayloadType string `json:"payloadType"`
Payload string `json:"payload"`
Signatures []Signature `json:"signatures"`
}
func AddSignature ¶
func AddSignature(envelope Envelope, privateKey ed25519.PrivateKey) (Envelope, error)
AddSignature signs the same immutable payload with another key. Duplicate key IDs are rejected so threshold verification counts independent keys.
type EventInput ¶
type Journal ¶
type Journal struct {
// contains filtered or unexported fields
}
func NewJournal ¶
func NewJournal(runID schema.InstanceID) (*Journal, error)
func (*Journal) Append ¶
func (journal *Journal) Append(input EventInput) (JournalEvent, error)
func (*Journal) EncodeJSONL ¶
func (*Journal) Events ¶
func (journal *Journal) Events() []JournalEvent
type JournalEvent ¶
type JournalEvent struct {
SchemaVersion string `json:"schema_version"`
RunID schema.InstanceID `json:"run_id"`
Sequence uint64 `json:"sequence"`
PreviousEventDigest schema.Digest `json:"previous_event_digest"`
EventType string `json:"event_type"`
Status RunStatus `json:"status"`
OccurredAt schema.UTCTime `json:"occurred_at"`
MonotonicOffsetNS int64 `json:"monotonic_offset_ns"`
PayloadDigest schema.Digest `json:"payload_digest"`
EventDigest schema.Digest `json:"event_digest"`
}
Click to show internal directories.
Click to hide internal directories.