Documentation
¶
Index ¶
Constants ¶
const EventsRelativePath = "provenance/events.jsonl"
EventsRelativePath is the project-relative path of the append-only event ledger.
Variables ¶
This section is empty.
Functions ¶
func LastOutputEquals ¶
LastOutputEquals reports whether the latest event with action has output key equal to expected.
func Note ¶ added in v0.1.11
Note appends a researcher annotation event to the project provenance log. It is the CLI-safe path for recording human observations without a full search run.
func ReadRelativePath ¶ added in v0.2.0
ReadRelativePath selects the canonical ledger, falling back to the legacy path only when the canonical ledger is absent. Invalid canonical files are not hidden by a legacy ledger. Callers must still validate the selected file before reading.
Types ¶
type Event ¶
type Event struct {
SchemaVersion string `json:"schemaVersion"`
ID string `json:"id"`
Timestamp string `json:"timestamp"`
Actor string `json:"actor"`
ActorKind automation.Actor `json:"actor_kind,omitempty"`
RunID string `json:"run_id,omitempty"`
Action string `json:"action"`
Target string `json:"target"`
Inputs map[string]any `json:"inputs"`
Outputs map[string]any `json:"outputs"`
Warnings []string `json:"warnings"`
}
Event is one append-only Provenance record in a ResearchForge project.
type Level ¶ added in v0.2.0
type Level string
Level describes mechanical provenance, never the truth of a research claim.
func DirectoryLevel ¶ added in v0.2.0
DirectoryLevel is the fail-closed display level for current project outputs. A topic index takes precedence and checks every referenced run. Without an index, a newer checksum-bound engine event supersedes an older receipt only when its entire output set is covered by newer, validated runs. Historical receipts remain immutable and can still be validated explicitly.
type Validation ¶ added in v0.2.0
type Validation struct {
Level Level `json:"provenance_level"`
RunID string `json:"run_id,omitempty"`
Warnings []string `json:"warnings"`
}
func Validate ¶ added in v0.2.0
func Validate(path string) (Validation, error)
Validate computes the level using output bytes, the immutable run receipt and its engine-kind ledger event. It does not trust a declared engine level.