report

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package report provides offline evidence writing for benchmark runs. Online reporting is handled by harness.ReportToBench (POST /v1/bench/runs).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	EvidencePath string
}

Config configures the offline reporter.

type EvidenceEntry

type EvidenceEntry struct {
	ID         string            `json:"id"`
	Type       string            `json:"type"`
	Actor      string            `json:"actor"`
	Timestamp  time.Time         `json:"timestamp"`
	ScenarioID string            `json:"scenario_id"`
	Adapter    string            `json:"adapter"`
	Passed     bool              `json:"passed"`
	ExitCode   int               `json:"exit_code"`
	Duration   time.Duration     `json:"duration_ns"`
	Metadata   map[string]string `json:"metadata,omitempty"`
}

EvidenceEntry represents a single benchmark evidence record.

type Reporter

type Reporter struct {
	// contains filtered or unexported fields
}

Reporter writes benchmark evidence to local JSONL files.

func NewReporter

func NewReporter(cfg Config) *Reporter

NewReporter creates a Reporter with the given config.

func (*Reporter) Report

func (r *Reporter) Report(entries []EvidenceEntry) error

Report writes evidence locally.

func (*Reporter) WriteOffline

func (r *Reporter) WriteOffline(entries []EvidenceEntry) error

WriteOffline writes evidence entries as JSONL to the evidence directory.

Jump to

Keyboard shortcuts

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