provenance

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(projectPath string, event Event) error

Append records one Provenance event in the project JSONL ledger.

func LastOutputEquals

func LastOutputEquals(projectPath, action, key string, expected any) (bool, error)

LastOutputEquals reports whether the latest event with action has output key equal to expected.

func Note added in v0.1.11

func Note(projectPath, message, actorName string) error

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.

Types

type Event

type Event struct {
	SchemaVersion string         `json:"schemaVersion"`
	ID            string         `json:"id"`
	Timestamp     string         `json:"timestamp"`
	Actor         string         `json:"actor"`
	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.

func Read

func Read(projectPath string) ([]Event, error)

Read returns all Provenance events from the project JSONL ledger.

Jump to

Keyboard shortcuts

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