provenance

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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