evidence

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 15 Imported by: 1 module, 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

Overview

Package evidence defines the separate, non-executable manifest that binds empirical benchmark profiles to exact plans, elements, implementations, hardware, and load definitions. It never contains credentials or runtime service handles. An empty Profiles list truthfully states that a shipped graph makes no empirical performance claims.

Index

Constants

View Source
const (
	APIVersion = "openrealtime.ai/evidence/v1alpha1"
)

Variables

This section is empty.

Functions

func Fingerprint

func Fingerprint(document Document) (string, error)

Fingerprint identifies the canonical evidence manifest. It covers profile references and applicability axes, never benchmark payloads or secrets.

func MarshalJSON

func MarshalJSON(document Document) ([]byte, error)

func MarshalYAML

func MarshalYAML(document Document) ([]byte, error)

Types

type Document

type Document struct {
	APIVersion string    `json:"apiVersion" yaml:"apiVersion"`
	Graph      string    `json:"graph" yaml:"graph"`
	Profiles   []Profile `json:"profiles" yaml:"profiles"`
}

Document is one graph-scoped manifest of empirical profile artifacts.

func Bind

func Bind(plan *graphconfig.Plan, document Document) (Document, error)

Bind validates that every empirical claim applies to the exact prepared plan. Hardware and load identities remain claim axes rather than deployment selectors, while graph, plan, node, element, and implementation must match the immutable launch plan exactly. Empty Profiles is an explicit no-claims manifest and still binds to one graph.

func Clone

func Clone(document Document) Document

Clone returns an independent copy suitable for retaining across a launch boundary. Profile fields contain only immutable value identities; the slice is the sole mutable container in Document.

func ParseJSON

func ParseJSON(path string, source []byte) (Document, error)

func ParseYAML

func ParseYAML(path string, source []byte) (Document, error)

type Profile

type Profile struct {
	Name            string                   `json:"name" yaml:"name"`
	Artifact        inspect.ArtifactIdentity `json:"artifact" yaml:"artifact"`
	PlanFingerprint string                   `json:"plan_fingerprint" yaml:"plan_fingerprint"`
	NodeID          string                   `json:"node_id" yaml:"node_id"`
	Element         element.Identity         `json:"element" yaml:"element"`
	Implementation  inspect.ArtifactIdentity `json:"implementation" yaml:"implementation"`
	Hardware        inspect.ArtifactIdentity `json:"hardware" yaml:"hardware"`
	Load            inspect.ArtifactIdentity `json:"load" yaml:"load"`
}

Profile points at one immutable empirical result and records every axis needed to decide whether that result applies to a deployment. Metrics stay in Artifact; this manifest cannot turn an unmeasured graph into a claim.

Jump to

Keyboard shortcuts

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