Documentation
¶
Overview ¶
Package review defines the provider-neutral, offline multimodal review boundary for benchmark artifacts. Deterministic benchmark scorers remain the authority for pass/fail; a review provider can surface media-quality and behavioral problems for a human without becoming part of the realtime server or presentation clients.
Index ¶
- Constants
- func BeginEvaluationBundlePublication(ctx context.Context, config EvaluationBundlePublicationConfig) (*EvaluationBundlePublication, EvaluationBundlePublicationPreparation, error)
- func CanonicalContextSHA256(ctx context.Context, source json.RawMessage) (string, error)
- func MarshalRecord(record Record) ([]byte, error)
- func VerifyArtifacts(record Record, ...) error
- func VerifyArtifactsContext(ctx context.Context, record Record, ...) error
- func WriteEvaluationBundleReceipt(ctx context.Context, path string, receipt EvaluationBundleReceipt) (resultErr error)
- type Assessment
- type CatalogEntry
- type ContentIdentity
- type Evaluation
- type EvaluationBundle
- type EvaluationBundleFile
- type EvaluationBundleManifest
- type EvaluationBundleOptions
- type EvaluationBundlePublication
- type EvaluationBundlePublicationConfig
- type EvaluationBundlePublicationError
- type EvaluationBundlePublicationPreparation
- type EvaluationBundleReceipt
- type EvaluationBundleReceiptLease
- type EvaluationBundleReceiptStore
- type FileEvaluationBundleReceiptStore
- type Finding
- type Media
- type PreparedMedia
- type PreparedRequest
- func (prepared PreparedRequest) ContainsDeclaredSensitiveLiteralContext(ctx context.Context, payload []byte) (bool, error)
- func (prepared PreparedRequest) ContainsDeclaredSensitiveValue(payload []byte) bool
- func (prepared PreparedRequest) ContainsDeclaredSensitiveValueContext(ctx context.Context, payload []byte) (bool, error)
- func (prepared PreparedRequest) Validate() (resultErr error)
- func (prepared PreparedRequest) ValidateContext(ctx context.Context) (resultErr error)
- type Provider
- type ProviderCapabilities
- type ProviderDescriptor
- type ProviderFactory
- type ProviderLease
- type ProviderResponse
- type Record
- type Registration
- type Registry
- type Request
Constants ¶
const ( EvaluationBundleFormat = "openrealtime.review-evaluation-bundle" EvaluationBundleFormatVersion = 1 )
const ( RecordFormat = "openrealtime.multimodal-review" FormatVersion = 5 CasePromptVersion = "openrealtime.case-media-review.prompt.v7" CaseSchemaVersion = "openrealtime.case-media-review.schema.v3" SanitizationVersion = "openrealtime.review-sanitization.v4" MediaValidationVersion = "openrealtime.media-container-validation.v4" ProviderRequestIDMissing = "missing" ProviderRequestIDNull = "null" ProviderRequestIDValue = "value" )
Variables ¶
This section is empty.
Functions ¶
func BeginEvaluationBundlePublication ¶
func BeginEvaluationBundlePublication( ctx context.Context, config EvaluationBundlePublicationConfig, ) (*EvaluationBundlePublication, EvaluationBundlePublicationPreparation, error)
BeginEvaluationBundlePublication acquires an exclusive crash-released lease, recovers a receipt-anchored final/stage, or quarantines an unanchored stage. The returned publication must remain open while the provider is invoked and must always be closed.
func CanonicalContextSHA256 ¶
CanonicalContextSHA256 returns the same content identity Evaluate records for a public review context, without opening or validating any media. This lets retention and aggregation plug-ins rebind an already verified source request without repeating expensive evidence reads. The input must still be one strict, bounded JSON object.
func MarshalRecord ¶
MarshalRecord emits the one canonical create-only JSON representation.
func VerifyArtifacts ¶
func VerifyArtifacts( record Record, implementation, configuration, providerRequest, prompt, schema, contextJSON, rawResponse, normalizedOutput []byte, ) error
VerifyArtifacts proves that the prompt, schema, context, raw provider envelope, and normalized assessment still match a validated record.
func VerifyArtifactsContext ¶
func VerifyArtifactsContext( ctx context.Context, record Record, implementation, configuration, providerRequest, prompt, schema, contextJSON, rawResponse, normalizedOutput []byte, ) error
VerifyArtifactsContext is VerifyArtifacts with cooperative cancellation through every potentially large retained-artifact hash and between bounded canonicalization steps.
func WriteEvaluationBundleReceipt ¶
func WriteEvaluationBundleReceipt( ctx context.Context, path string, receipt EvaluationBundleReceipt, ) (resultErr error)
WriteEvaluationBundleReceipt retains a verified portable receipt outside its evaluation directory. The destination is create-only and opened through an identity-checked parent handle; a receipt can therefore anchor a sibling evaluation without becoming mutable content inside that evaluation.
Types ¶
type Assessment ¶
type Assessment struct {
MediaUsable bool `json:"media_usable"`
ObservedOutcome string `json:"observed_outcome"`
AgreesWithDeterministic bool `json:"agrees_with_deterministic"`
Confidence float64 `json:"confidence"`
Summary string `json:"summary"`
SignificantProblems []Finding `json:"significant_problems"`
MinorObservations []Finding `json:"minor_observations"`
Limitations []string `json:"limitations"`
}
Assessment is the normalized secondary review. ObservedOutcome never overrides the deterministic benchmark result retained in Request.Context.
type CatalogEntry ¶
type CatalogEntry struct {
Name string `json:"name"`
Descriptor ProviderDescriptor `json:"descriptor"`
Capabilities ProviderCapabilities `json:"capabilities"`
}
CatalogEntry is the resource-free inventory safe to expose in plans and review metadata. It deliberately contains no factory or credential source.
type ContentIdentity ¶
type Evaluation ¶
type Evaluation struct {
Record Record
// Media owns the exact immutable media bytes passed to the provider. The
// paths in Record identify the source artifacts, while this snapshot lets a
// create-only retention layer preserve what was actually reviewed even if
// those source paths later change.
Media []PreparedMedia
ProviderImplementation []byte
ProviderConfiguration []byte
ProviderRequest []byte
Prompt []byte
Schema []byte
Context []byte
RawResponse []byte
NormalizedOutput []byte
// contains filtered or unexported fields
}
func Evaluate ¶
func Evaluate( ctx context.Context, lease *ProviderLease, request Request, ) (evaluation Evaluation, resultErr error)
Evaluate prepares a content-addressed request, invokes one provider plugin, validates its structured output strictly, and returns retention-ready bytes.
type EvaluationBundle ¶
type EvaluationBundle struct {
Manifest EvaluationBundleManifest
Record Record
Receipt EvaluationBundleReceipt
}
EvaluationBundle is the bounded result of reopening and verifying a final bundle. Large artifact bytes are verified while opening but are not retained in this return value.
func OpenEvaluationBundle ¶
func OpenEvaluationBundle( ctx context.Context, options EvaluationBundleOptions, ) (EvaluationBundle, error)
OpenEvaluationBundle strictly checks the current local bytes of one committed bundle. Missing, extra, symlinked, in-tree duplicate-identity, noncanonical, traversal-bearing, sensitive, and incomplete trees are rejected. It does not authenticate mutable storage across time; callers retaining evidence must use VerifyEvaluationBundle with a trusted receipt.
func VerifyEvaluationBundle ¶
func VerifyEvaluationBundle( ctx context.Context, options EvaluationBundleOptions, expected EvaluationBundleReceipt, ) (EvaluationBundle, error)
VerifyEvaluationBundle reopens a bundle and requires an externally retained portable receipt. Unlike a local OpenEvaluationBundle consistency check, this rejects a fully recomputed mutable tree whose bytes no longer match the trusted receipt. Directory is informational and excluded from portability.
type EvaluationBundleFile ¶
type EvaluationBundleFile struct {
Path string `json:"path"`
Purpose string `json:"purpose"`
SHA256 string `json:"sha256"`
SizeBytes int64 `json:"size_bytes"`
MediaOrdinal int `json:"media_ordinal,omitempty"`
MediaType string `json:"media_type,omitempty"`
}
EvaluationBundleFile is one exact non-manifest byte artifact. MediaOrdinal is one-based for reviewed media and zero for all other purposes.
type EvaluationBundleManifest ¶
type EvaluationBundleManifest struct {
Format string `json:"format"`
FormatVersion int `json:"format_version"`
Complete bool `json:"complete"`
AttemptID string `json:"attempt_id"`
Suite string `json:"suite"`
Case string `json:"case"`
Trial int `json:"trial"`
EvidenceScope string `json:"evidence_scope"`
IndependentRemoteAttestation bool `json:"independent_remote_attestation"`
AuthenticityCaveat string `json:"authenticity_caveat"`
RecordSHA256 string `json:"record_sha256"`
FileSetSHA256 string `json:"file_set_sha256"`
Files []EvaluationBundleFile `json:"files"`
}
EvaluationBundleManifest is the create-only commit marker. Complete is always true in an accepted manifest; an interrupted writer leaves no manifest rather than publishing a partial evaluation.
type EvaluationBundleOptions ¶
EvaluationBundleOptions names one final create-only directory. Optional SensitiveValues add a caller-local leakage scan and are never serialized or fingerprinted. WriteEvaluationBundle always enforces the exact opaque guard captured by Evaluate; callers do not need to repeat those values.
type EvaluationBundlePublication ¶
type EvaluationBundlePublication struct {
// contains filtered or unexported fields
}
EvaluationBundlePublication holds exclusive ownership from preparation, across the provider call, through receipt commit and atomic promotion.
func (*EvaluationBundlePublication) Close ¶
func (publication *EvaluationBundlePublication) Close() error
Close releases the publication lease. It is idempotent.
func (*EvaluationBundlePublication) Write ¶
func (publication *EvaluationBundlePublication) Write( ctx context.Context, source Evaluation, ) (EvaluationBundleReceipt, error)
Write publishes exactly one provider-verified evaluation through this held lease. It commits and reopens the durable external receipt before the final name becomes visible. A Publish error never authorizes promotion.
type EvaluationBundlePublicationConfig ¶
type EvaluationBundlePublicationConfig struct {
Bundle EvaluationBundleOptions
ReceiptStore EvaluationBundleReceiptStore
QuarantineDirectory string
}
EvaluationBundlePublicationConfig binds one final bundle, one durable receipt store, and a disjoint caller-owned quarantine directory. Quarantine is intentionally outside the reportable bundle tree so exact-tree verifiers never mistake preserved pre-receipt crash debris for evidence.
type EvaluationBundlePublicationError ¶
type EvaluationBundlePublicationError struct {
ExpectedReceipt EvaluationBundleReceipt
VerifiedReceipt EvaluationBundleReceipt
MarkerMayRemain bool
// contains filtered or unexported fields
}
EvaluationBundlePublicationError reports the exceptional case in which a writer failed after publishing manifest.json and could not prove that its invalidation removed the marker. ExpectedReceipt identifies the bytes the writer intended to publish. VerifiedReceipt is non-zero only when a fresh anchored verification proved that the still-visible tree matches them.
func (*EvaluationBundlePublicationError) Error ¶
func (failure *EvaluationBundlePublicationError) Error() string
func (*EvaluationBundlePublicationError) Unwrap ¶
func (failure *EvaluationBundlePublicationError) Unwrap() error
type EvaluationBundlePublicationPreparation ¶
type EvaluationBundlePublicationPreparation struct {
Recovered *EvaluationBundle
QuarantinedDirectory string
}
EvaluationBundlePublicationPreparation reports restart recovery before a caller invokes a review provider. A non-nil Recovered means no provider call is needed. QuarantinedDirectory is preserved but permanently non-reportable.
type EvaluationBundleReceipt ¶
type EvaluationBundleReceipt struct {
Directory string `json:"directory"`
ManifestSHA256 string `json:"manifest_sha256"`
RecordSHA256 string `json:"record_sha256"`
FileSetSHA256 string `json:"file_set_sha256"`
ReceiptSHA256 string `json:"receipt_sha256"`
}
EvaluationBundleReceipt is a portable digest receipt plus the local directory at which it was verified. ReceiptSHA256 excludes Directory so a byte-identical copy has the same receipt.
func ReadEvaluationBundleReceipt ¶
func ReadEvaluationBundleReceipt( ctx context.Context, path string, ) (receipt EvaluationBundleReceipt, resultErr error)
ReadEvaluationBundleReceipt strictly reopens one canonical external receipt. Directory is informational; VerifyEvaluationBundle accepts a caller-selected relocated byte-identical bundle while comparing the portable digest fields.
func WriteEvaluationBundle ¶
func WriteEvaluationBundle( ctx context.Context, options EvaluationBundleOptions, source Evaluation, ) (receipt EvaluationBundleReceipt, resultErr error)
WriteEvaluationBundle retains one successful Evaluation at an exclusive final directory, publishes manifest.json last, reopens the result, and returns its verified portable receipt. It never replaces an existing path.
type EvaluationBundleReceiptLease ¶
type EvaluationBundleReceiptLease interface {
Publish(context.Context, EvaluationBundleReceipt) error
Load(context.Context) (EvaluationBundleReceipt, bool, error)
Close() error
}
EvaluationBundleReceiptLease is caller-owned durable receipt storage held exclusively from pre-provider recovery through final publication. Publish is create-only and a nil return guarantees durable commit. Load returns found=false only when no receipt has been durably committed.
type EvaluationBundleReceiptStore ¶
type EvaluationBundleReceiptStore interface {
Acquire(context.Context) (EvaluationBundleReceiptLease, error)
}
EvaluationBundleReceiptStore is scoped to exactly one publication target and acquires its exclusive, crash-released lease without receiving the final directory. The store does not see that directory until Publication.Write has checked it against the provider-owned sensitive-value guard.
type FileEvaluationBundleReceiptStore ¶
type FileEvaluationBundleReceiptStore struct {
Path string
}
FileEvaluationBundleReceiptStore is the standard filesystem-backed store. Path must be an absolute canonical file outside the final evaluation tree. Acquire holds an operating-system file lock whose descriptor is released by Close or by process exit; the lock marker itself is deliberately persistent.
func (FileEvaluationBundleReceiptStore) Acquire ¶
func (store FileEvaluationBundleReceiptStore) Acquire( ctx context.Context, ) (EvaluationBundleReceiptLease, error)
type Media ¶
type Media struct {
Kind string `json:"kind"`
Role string `json:"role"`
Path string `json:"path"`
SHA256 string `json:"sha256"`
MediaType string `json:"media_type"`
Validation string `json:"validation"`
SizeBytes int64 `json:"size_bytes,omitempty"`
}
Media identifies one retained artifact within RootDirectory. Path is always a clean relative path; SHA256 is checked against the bytes before a provider can observe them.
type PreparedMedia ¶
PreparedMedia is an immutable copy of one digest-verified artifact. Bytes is deliberately omitted from JSON and copied for every provider invocation.
type PreparedRequest ¶
type PreparedRequest struct {
AttemptID string `json:"attempt_id"`
Suite string `json:"suite"`
Case string `json:"case"`
Trial int `json:"trial"`
FindingTimestampMaximumMS int64 `json:"finding_timestamp_maximum_ms"`
PromptVersion string `json:"prompt_version"`
Prompt string `json:"prompt"`
SchemaVersion string `json:"schema_version"`
Schema json.RawMessage `json:"schema"`
Context json.RawMessage `json:"context"`
Media []PreparedMedia `json:"media"`
RequestFingerprint string `json:"request_fingerprint"`
Sanitization string `json:"sanitization"`
SensitiveValueCount int `json:"sensitive_value_count"`
// contains filtered or unexported fields
}
PreparedRequest is the exact provider input produced by Prepare. Prompt, schema, context, and media identities are all versioned and fingerprinted.
func Prepare ¶
func Prepare(request Request) (PreparedRequest, error)
Prepare snapshots and verifies all local evidence before external provider work. Symlinks, traversal, digest drift, duplicate artifacts, and oversized inputs fail closed.
func PrepareContext ¶
func PrepareContext( ctx context.Context, request Request, ) (result PreparedRequest, resultErr error)
PrepareContext is Prepare with cancellation checks before and during every potentially large evidence read.
func (PreparedRequest) ContainsDeclaredSensitiveLiteralContext ¶
func (prepared PreparedRequest) ContainsDeclaredSensitiveLiteralContext( ctx context.Context, payload []byte, ) (bool, error)
ContainsDeclaredSensitiveLiteralContext checks exact encoded bytes without interpreting JSON escapes or replaying embedded JSON. Provider plug-ins use this only after their structured inputs have passed the contextual guard, at binary/base64 wire and retention boundaries where the precise transmitted byte sequence is the security contract.
func (PreparedRequest) ContainsDeclaredSensitiveValue ¶
func (prepared PreparedRequest) ContainsDeclaredSensitiveValue(payload []byte) bool
ContainsDeclaredSensitiveValue checks final encoded provider bytes against the opaque guard created by PrepareContext. The guarded values are never serialized, fingerprinted, or exposed directly. Provider implementations must call this on the final wire payload before any transport side effect.
func (PreparedRequest) ContainsDeclaredSensitiveValueContext ¶
func (prepared PreparedRequest) ContainsDeclaredSensitiveValueContext( ctx context.Context, payload []byte, ) (bool, error)
ContainsDeclaredSensitiveValueContext is the cancellable form of ContainsDeclaredSensitiveValue for provider work over bounded large inputs.
func (PreparedRequest) Validate ¶
func (prepared PreparedRequest) Validate() (resultErr error)
Validate recomputes the complete standard provider input contract. Exported providers must call it so a syntactically valid but forged PreparedRequest cannot bypass PrepareContext.
func (PreparedRequest) ValidateContext ¶
func (prepared PreparedRequest) ValidateContext(ctx context.Context) (resultErr error)
ValidateContext is Validate with cooperative cancellation checkpoints for every large hash and declared-sensitive-value scan.
type Provider ¶
type Provider interface {
Descriptor() ProviderDescriptor
Capabilities() ProviderCapabilities
Implementation() []byte
Configuration() []byte
// Claim transfers exclusive lifetime ownership to one ProviderLease. It
// must succeed at most once for a provider instance. On failure ownership
// remains with the factory and Registry will not call Close.
Claim() error
Review(context.Context, PreparedRequest) (ProviderResponse, error)
// VerifyResponse must prove Request is the exact transmitted wire and apply
// the contextual declared-sensitive guard to every provider-specific text or
// JSON input before core retains that wire as literal bytes.
VerifyResponse(context.Context, PreparedRequest, ProviderResponse) error
Close() error
}
Provider is a replaceable offline evaluator plugin. Every method must be concurrency-safe, and returned errors must never contain credentials. Review receives only content-addressed media and public benchmark context; credentials remain private to the provider implementation.
type ProviderCapabilities ¶
type ProviderCapabilities struct {
MediaTypes []string `json:"media_types"`
MaximumMediaCount int `json:"maximum_media_count"`
MaximumMediaBytes int64 `json:"maximum_media_bytes"`
}
ProviderCapabilities is the provider-neutral media admission contract. It describes what a selected evaluator can actually review before any network side effect occurs; presentation clients and benchmark runners do not need provider-specific type assertions.
func (ProviderCapabilities) Clone ¶
func (capabilities ProviderCapabilities) Clone() ProviderCapabilities
func (ProviderCapabilities) SHA256 ¶
func (capabilities ProviderCapabilities) SHA256() (string, error)
SHA256 is the canonical identity of the complete media-admission contract. Provider descriptors and retained records bind this digest so a capability change cannot masquerade as another run of the same evaluator provenance.
func (ProviderCapabilities) Validate ¶
func (capabilities ProviderCapabilities) Validate() error
type ProviderDescriptor ¶
type ProviderDescriptor struct {
Provider string `json:"provider"`
Model string `json:"model"`
API string `json:"api"`
APIRevision string `json:"api_revision"`
Implementation ContentIdentity `json:"implementation"`
ConfigurationSHA256 string `json:"configuration_sha256"`
CapabilitiesSHA256 string `json:"capabilities_sha256"`
}
ProviderDescriptor is immutable review-provider provenance. APIRevision pins the wire contract separately from Model so a protocol migration cannot masquerade as another run of the same evaluator.
func (ProviderDescriptor) Validate ¶
func (descriptor ProviderDescriptor) Validate() error
type ProviderFactory ¶
ProviderFactory opens one selected offline review provider. Registry construction never calls factories, so credentials and network resources stay behind explicit selection. Until the returned provider successfully accepts Claim, the factory retains ownership. A factory returning an error must clean up any provider it constructed and should return nil; Registry deliberately does not close an unclaimed value because it may be a singleton already owned by another lease.
type ProviderLease ¶
type ProviderLease struct {
// contains filtered or unexported fields
}
ProviderLease is the only provider handle accepted by Evaluate. It must not be copied after first use because it owns synchronization and provider lifetime state. Its unexported construction binds a selected registration's exact implementation and configuration bytes to the live provider and guarantees cleanup.
func (*ProviderLease) Capabilities ¶
func (lease *ProviderLease) Capabilities() ProviderCapabilities
Capabilities returns an owned snapshot of the exact provider-neutral media contract bound when this lease was opened.
func (*ProviderLease) Close ¶
func (lease *ProviderLease) Close() error
Close prevents new evaluations, waits for active calls, and closes the provider exactly once. Concurrent Close calls receive the same result.
func (*ProviderLease) Descriptor ¶
func (lease *ProviderLease) Descriptor() ProviderDescriptor
Descriptor returns the immutable descriptor bound to an open lease. A nil, closed, or malformed zero-value lease returns the zero descriptor.
type ProviderResponse ¶
type ProviderResponse struct {
Raw []byte
Output json.RawMessage
ReportedModel string
RequestID string
RequestIDState string
Request []byte
// VerificationEvidence is a provider-private, non-retained capability that
// can bind one transport exchange to VerifyResponse. Core treats it as
// opaque and copies only the interface value between the two calls.
VerificationEvidence any
}
ProviderResponse retains the raw provider envelope and the structured JSON text extracted from it. ReportedModel is checked against Descriptor.Model.
type Record ¶
type Record struct {
Format string `json:"format"`
FormatVersion int `json:"format_version"`
AttemptID string `json:"attempt_id"`
Suite string `json:"suite"`
Case string `json:"case"`
Trial int `json:"trial"`
FindingTimestampMaximumMS int64 `json:"finding_timestamp_maximum_ms"`
Provider ProviderDescriptor `json:"provider"`
ProviderCapabilities ProviderCapabilities `json:"provider_capabilities"`
Prompt ContentIdentity `json:"prompt"`
Schema ContentIdentity `json:"schema"`
ContextSHA256 string `json:"context_sha256"`
Media []Media `json:"media"`
RequestFingerprint string `json:"request_fingerprint"`
Sanitization string `json:"sanitization"`
SensitiveValueCount int `json:"sensitive_value_count"`
ProviderRequestID string `json:"provider_request_id,omitempty"`
ProviderRequestIDState string `json:"provider_request_id_state"`
ProviderRequestSHA256 string `json:"provider_request_sha256"`
ReportedModel string `json:"reported_model"`
RawResponseSHA256 string `json:"raw_response_sha256"`
NormalizedOutputSHA256 string `json:"normalized_output_sha256"`
Assessment Assessment `json:"assessment"`
}
Record is the immutable provenance index for one successful model review. RawResponse and NormalizedOutput are returned separately so the bundle can retain them as create-only files and verify these digests.
func DecodeRecord ¶
DecodeRecord accepts only the canonical representation produced by MarshalRecord, rejecting duplicate keys, unknown fields, and trailing data.
type Registration ¶
type Registration struct {
Name string
Descriptor ProviderDescriptor
Capabilities ProviderCapabilities
Implementation []byte
Configuration []byte
Factory ProviderFactory
}
Registration is one immutable provider-plugin contribution. Descriptor is checked again against the opened provider to prevent a symbolic selection from silently drifting to another model or wire configuration.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is an immutable, concurrency-safe catalog of offline review plugins. A benchmark runner chooses a symbolic entry and calls Open only after deterministic evidence has been retained.
func NewRegistry ¶
func NewRegistry(source []Registration) (*Registry, error)
func (*Registry) Catalog ¶
func (registry *Registry) Catalog() []CatalogEntry
Catalog returns a sorted owned snapshot without exposing factories.
type Request ¶
type Request struct {
AttemptID string `json:"attempt_id"`
Suite string `json:"suite"`
Case string `json:"case"`
Trial int `json:"trial"`
// FindingTimestampMaximumMS is the inclusive end of the sealed media
// timeline. Zero selects the contract-wide 24-hour ceiling for callers that
// have no more precise, attested media duration.
FindingTimestampMaximumMS int64 `json:"finding_timestamp_maximum_ms,omitempty"`
RootDirectory string `json:"-"`
Context json.RawMessage `json:"context"`
Media []Media `json:"media"`
// SensitiveValues are exact in-memory secrets that must not occur in the
// public context or retained media. Values are checked before a provider
// can observe bytes and are never serialized or fingerprinted themselves.
SensitiveValues []string `json:"-"`
}
Request is one deterministic benchmark attempt to review. Context must be a self-contained JSON object containing scorer outcomes, errors, transcripts, action traces, and any suite-specific criteria intended for the reviewer.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package candidate defines the suite-neutral evidence plug-in boundary for new benchmark attempts.
|
Package candidate defines the suite-neutral evidence plug-in boundary for new benchmark attempts. |
|
campaign
Package campaign composes a sealed candidate source bundle with one selected offline review provider.
|
Package campaign composes a sealed candidate source bundle with one selected offline review provider. |
|
sourcebundle
Package sourcebundle implements the provider-neutral recording half of the candidate evidence plug-in.
|
Package sourcebundle implements the provider-neutral recording half of the candidate evidence plug-in. |
|
Package gemini implements the Google Gemini Interactions API as one replaceable offline benchmark-review plugin.
|
Package gemini implements the Google Gemini Interactions API as one replaceable offline benchmark-review plugin. |
|
Package media retains the exact audio and video delivered during one benchmark attempt.
|
Package media retains the exact audio and video delivered during one benchmark attempt. |
|
ffmpeg
Package ffmpeg provides independently claimable, sandboxed encoder and full-decode attestor plug-ins for retained benchmark review media.
|
Package ffmpeg provides independently claimable, sandboxed encoder and full-decode attestor plug-ins for retained benchmark review media. |