Documentation
¶
Overview ¶
Package realtimecu owns OpenRealtime's audiovisual computer-use benchmark.
The tasks, browser pages, audio, runner, scoring, and report conversion all live in this repository. External suites remain useful independent checks, but no release or capability claim in this package depends on one.
Index ¶
- Constants
- func ByGrounding(result bench.Result) map[Grounding]Breakdown
- func ReferenceCell() bench.Cell
- func Run(ctx context.Context, options Options) (bench.Result, error)
- func WriteReviewBundleReceipt(ctx context.Context, path string, receipt ReviewBundleReceipt) (resultErr error)
- func WriteReviewSourceReceipt(ctx context.Context, path string, receipt ReviewSourceReceipt) (resultErr error)
- type ActionRecord
- type AttemptEvidence
- type Axis
- type Breakdown
- type Case
- type Environment
- type EnvironmentConfig
- type Episode
- func (episode *Episode) CaptureCamera(context.Context) ([]byte, error)
- func (episode *Episode) CaptureScreen(ctx context.Context) ([]byte, error)
- func (episode *Episode) Ready(ctx context.Context) error
- func (episode *Episode) Result(ctx context.Context) (PageResult, error)
- func (episode *Episode) Started() time.Time
- func (episode *Episode) Surface() *browsersurface.Surface
- type EvidenceAttempt
- type EvidenceCompletion
- type EvidencePlugin
- type EvidenceRunOrigin
- type FileReviewEvaluationReceiptStoreFactory
- type FileReviewSourceReceiptAnchor
- func (anchor FileReviewSourceReceiptAnchor) Acquire(ctx context.Context, publicationID string) (ReviewSourceReceiptLease, error)
- func (anchor FileReviewSourceReceiptAnchor) Publish(ctx context.Context, receipt ReviewSourceReceipt) error
- func (anchor FileReviewSourceReceiptAnchor) Verify(ctx context.Context, expected ReviewSourceReceipt) error
- type Grounding
- type NestedBundleReceipt
- type NestedEvaluationReceipt
- type Options
- type PageResult
- type PageResultCode
- type ReviewArtifact
- type ReviewAttempt
- type ReviewBundle
- func (bundle *ReviewBundle) AdoptEvaluationReceipt(ctx context.Context, caseID string, receipt revieweval.EvaluationBundleReceipt) error
- func (bundle *ReviewBundle) BeginAttempt(ctx context.Context, specification EvidenceAttempt) (AttemptEvidence, error)
- func (bundle *ReviewBundle) Close() error
- func (bundle *ReviewBundle) Directory() string
- func (bundle *ReviewBundle) EvaluationReceipts() map[string]revieweval.EvaluationBundleReceipt
- func (bundle *ReviewBundle) FinishSuite(ctx context.Context, source bench.Result) error
- func (bundle *ReviewBundle) Receipt() (ReviewBundleReceipt, bool)
- func (bundle *ReviewBundle) SourceReceipt() (ReviewSourceReceipt, bool)
- func (bundle *ReviewBundle) SourceResult() (bench.Result, error)
- type ReviewBundleOptions
- type ReviewBundlePublicationError
- type ReviewBundleReceipt
- type ReviewBundleResumeOptions
- type ReviewBundleVerification
- type ReviewBundleVerificationOptions
- type ReviewEvaluationReceiptStoreFactory
- type ReviewManifest
- func VerifyReviewBundle(directory, expectedManifestSHA256 string) (ReviewManifest, error)
- func VerifyReviewBundleReceipt(directory string, expected ReviewBundleReceipt) (ReviewManifest, error)
- func VerifyReviewSourceBundle(directory, expectedManifestSHA256 string) (ReviewManifest, error)
- func VerifyReviewSourceReceipt(directory string, expected ReviewSourceReceipt) (ReviewManifest, error)
- type ReviewMedia
- type ReviewMissing
- type ReviewSourcePublicationError
- type ReviewSourceReceipt
- type ReviewSourceReceiptAnchor
- type ReviewSourceReceiptLease
- type ReviewVideoFactory
- type Task
Constants ¶
const ( EvidenceOriginProduction = "production-shared-realtime" EvidenceOriginHermetic = "hermetic-test" )
const ( ReviewBundleFormat = "openrealtime.realtime-cu-review" ReviewBundleFormatVersion = 3 ReviewContextFormat = "openrealtime.realtime-cu-review-context" ReviewContextVersion = 3 ReviewSourceReceiptFormat = "openrealtime.realtime-cu-review-source-receipt" ReviewSourceReceiptVersion = 1 ReviewPhaseSource = "deterministic-source" ReviewPhaseReviewed = "reviewed-evidence" )
const RealtimeCUScorerIdentity = "openrealtime.realtime-cu.settled-success.v1"
RealtimeCUScorerIdentity is retained with every current review context. The version belongs in the identity so a source bundle can never acquire newer pass semantics merely because it is reopened by newer code.
const SuiteName = "openrealtime-realtime-cu-v1"
Variables ¶
This section is empty.
Functions ¶
func ByGrounding ¶
ByGrounding exposes the paired pixel/set-of-mark reading in one cell.
func ReferenceCell ¶
ReferenceCell is the complete baseline for this audiovisual suite. It is intentionally distinct from the voice-only global reference: labelling a video/keyframe run as audio/narration would make the report irreproducible even if its executable hash were perfect.
func WriteReviewBundleReceipt ¶
func WriteReviewBundleReceipt( ctx context.Context, path string, receipt ReviewBundleReceipt, ) (resultErr error)
WriteReviewBundleReceipt durably publishes a canonical final receipt outside the sealed review tree. It verifies the tree both before and after the create-only write; a failed call removes only the file created by this invocation.
func WriteReviewSourceReceipt ¶
func WriteReviewSourceReceipt( ctx context.Context, path string, receipt ReviewSourceReceipt, ) (resultErr error)
WriteReviewSourceReceipt durably publishes a canonical receipt outside its source bundle. The destination is create-only; a failed write removes only the file this call created.
Types ¶
type ActionRecord ¶
type ActionRecord struct {
Ordinal int `json:"ordinal"`
CallID string `json:"call_id"`
Name string `json:"name"`
Arguments json.RawMessage `json:"arguments"`
ReceivedAt time.Time `json:"-"`
CompletedAt time.Time `json:"-"`
Error string `json:"error,omitempty"`
PageBefore *PageResult `json:"page_before,omitempty"`
PageAfter *PageResult `json:"page_after,omitempty"`
}
ActionRecord is one model call and what the environment did with it.
type AttemptEvidence ¶
type AttemptEvidence interface {
CaptureAudio(bench.SessionAudioCapture) error
CaptureVideo(bench.SessionVideoCapture) error
Complete(context.Context, EvidenceCompletion) error
Abort() error
}
AttemptEvidence receives exact media from the same shared session used by the scorer, followed by exactly one terminal Complete or Abort call.
type Breakdown ¶
type Breakdown struct {
Cases int
Correct int
Accepted int
CorrectRate float64
AcceptedRate float64
}
Breakdown is one condition's raw correctness and fully accepted pass rate.
type Case ¶
Case is one task under one grounding condition.
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
Environment owns the isolated browser used by a run.
func NewEnvironment ¶
func NewEnvironment(ctx context.Context, config EnvironmentConfig) (*Environment, error)
func (*Environment) Close ¶
func (environment *Environment) Close() error
type EnvironmentConfig ¶
type EnvironmentConfig struct {
Browser string
}
EnvironmentConfig selects the browser executable. Empty discovers Chromium from the usual command names.
type Episode ¶
type Episode struct {
// contains filtered or unexported fields
}
Episode is one reset browser task. Its control-plane result never enters the model trajectory.
func (*Episode) CaptureCamera ¶
CaptureCamera renders the task's physical-camera fixture. The initial frame is clear; at the authored cue it becomes a smoky, red-bordered workshop.
func (*Episode) CaptureScreen ¶
CaptureScreen is the actual visual input for the session.
func (*Episode) Surface ¶
func (episode *Episode) Surface() *browsersurface.Surface
type EvidenceAttempt ¶
type EvidenceAttempt struct {
Suite string `json:"suite"`
Case string `json:"case"`
Trial int `json:"trial"`
Task Task `json:"task"`
Grounding Grounding `json:"grounding"`
Origin EvidenceRunOrigin `json:"run_origin"`
Observers []string `json:"observers,omitempty"`
ExecutionRequirement bench.ExecutionRequirement `json:"execution_requirement,omitempty"`
}
EvidenceAttempt identifies one exact v1 task/grounding combination before browser, media, or Realtime work begins.
type EvidenceCompletion ¶
type EvidenceCompletion struct {
Attempt EvidenceAttempt `json:"attempt"`
Outcome bench.TaskOutcome `json:"outcome"`
Transcript bench.Transcript `json:"transcript"`
Page PageResult `json:"page_result"`
Actions []ActionRecord `json:"actions"`
TimedOut bool `json:"timed_out"`
}
EvidenceCompletion is the deterministic scorer record presented after an attempt. Outcome.Passed remains authoritative; a secondary model reviewer may describe disagreement but cannot replace it.
type EvidencePlugin ¶
type EvidencePlugin interface {
BeginAttempt(context.Context, EvidenceAttempt) (AttemptEvidence, error)
FinishSuite(context.Context, bench.Result) error
}
EvidencePlugin is the provider-, encoder-, filesystem-, browser-, and presentation-neutral extension point for Realtime-CU. Implementations may retain media and invoke an offline reviewer, but the runner owns scoring and the browser remains an external client of the same Realtime endpoint.
type EvidenceRunOrigin ¶
type EvidenceRunOrigin struct {
Kind string `json:"kind"`
Live bool `json:"live"`
Transport string `json:"transport"`
EndpointSHA256 string `json:"endpoint_sha256"`
}
EvidenceRunOrigin distinguishes a production session from package-private hermetic runner plumbing. Both are useful evidence, but only the production path can contribute to a reportable live benchmark result.
type FileReviewEvaluationReceiptStoreFactory ¶
FileReviewEvaluationReceiptStoreFactory stores one create-only receipt per canonical Realtime-CU case in an external existing directory.
func (FileReviewEvaluationReceiptStoreFactory) Quarantine ¶
func (factory FileReviewEvaluationReceiptStoreFactory) Quarantine( caseID, finalDirectory string, ) (string, error)
func (FileReviewEvaluationReceiptStoreFactory) Store ¶
func (factory FileReviewEvaluationReceiptStoreFactory) Store( caseID, finalDirectory string, ) (revieweval.EvaluationBundleReceiptStore, error)
type FileReviewSourceReceiptAnchor ¶
type FileReviewSourceReceiptAnchor struct {
Path string
}
FileReviewSourceReceiptAnchor is the create-only filesystem implementation. Path must be absolute, clean, outside the review bundle, and have an existing identity-stable parent directory.
func (FileReviewSourceReceiptAnchor) Acquire ¶
func (anchor FileReviewSourceReceiptAnchor) Acquire( ctx context.Context, publicationID string, ) (ReviewSourceReceiptLease, error)
func (FileReviewSourceReceiptAnchor) Publish ¶
func (anchor FileReviewSourceReceiptAnchor) Publish( ctx context.Context, receipt ReviewSourceReceipt, ) error
func (FileReviewSourceReceiptAnchor) Verify ¶
func (anchor FileReviewSourceReceiptAnchor) Verify( ctx context.Context, expected ReviewSourceReceipt, ) error
type Grounding ¶
type Grounding string
Grounding is how a visual action names its target.
func ParseGrounding ¶
type NestedBundleReceipt ¶
type NestedBundleReceipt struct {
Path string `json:"path"`
ManifestSHA256 string `json:"manifest_sha256"`
}
NestedBundleReceipt binds a delegated create-only media or model-review bundle without copying its complete potentially large manifest here.
type NestedEvaluationReceipt ¶
type NestedEvaluationReceipt struct {
Path string `json:"path"`
ManifestSHA256 string `json:"manifest_sha256"`
RecordSHA256 string `json:"record_sha256"`
FileSetSHA256 string `json:"file_set_sha256"`
ReceiptSHA256 string `json:"receipt_sha256"`
}
NestedEvaluationReceipt is the portable, externally anchored receipt for a generic provider-neutral review.EvaluationBundle. Directory is represented by Path so no machine-local absolute path enters the suite manifest.
type Options ¶
type Options struct {
Endpoint string
Token string
Model string
Cell bench.Cell
Browser string
// Observers selects the exact server-side perception plug-in set. A live
// evidence run must supply the non-empty selection retained by the profile.
Observers []string
// Groundings and Categories restrict a diagnostic run. The Result still
// declares the complete authored suite, so no restricted smoke run can
// become publishable by accident.
Groundings []Grounding
Categories []string
Limit int
FrameRate int
Timeout time.Duration
Progress func(string)
RuntimeAttestor bench.RuntimeAttestor
// Evidence is an optional caller-supplied attempt/suite plug-in. It sees
// exact media from the shared session and cannot alter deterministic scoring.
Evidence EvidencePlugin
// contains filtered or unexported fields
}
Options configures one benchmark cell.
type PageResult ¶
type PageResult struct {
Complete bool `json:"complete"`
Success bool `json:"success"`
Code PageResultCode `json:"code,omitempty"`
Reason string `json:"reason"`
CompletedAtMS float64 `json:"completed_at_ms"`
Actions int `json:"actions"`
ActionsAfterCompletion int `json:"actions_after_completion"`
}
PageResult is the deterministic evaluator state owned by the fixture.
type PageResultCode ¶
type PageResultCode string
PageResultCode identifies a deterministic terminal condition reported by the browser fixture. Reason remains human-readable evidence; scoring must use the structured code rather than infer semantics from that prose.
const (
PageResultCodeBeforeCondition PageResultCode = "before_condition"
)
type ReviewArtifact ¶
type ReviewArtifact struct {
Path string `json:"path"`
SHA256 string `json:"sha256"`
SizeBytes int64 `json:"size_bytes"`
MediaType string `json:"media_type"`
}
ReviewArtifact identifies one exact file relative to the suite bundle.
type ReviewAttempt ¶
type ReviewAttempt struct {
Ordinal int `json:"ordinal"`
Case string `json:"case"`
Trial int `json:"trial"`
Grounding Grounding `json:"grounding"`
Observers []string `json:"observers,omitempty"`
Deterministic bench.TaskOutcome `json:"deterministic"`
Context ReviewArtifact `json:"context"`
MediaBundle NestedBundleReceipt `json:"media_bundle"`
Media []ReviewMedia `json:"media"`
ReviewStatus string `json:"review_status"`
EvaluationBundle *NestedEvaluationReceipt `json:"evaluation_bundle,omitempty"`
Reviewer *revieweval.ProviderDescriptor `json:"reviewer,omitempty"`
Assessment *revieweval.Assessment `json:"assessment,omitempty"`
EvidenceScope string `json:"review_evidence_scope,omitempty"`
IndependentRemoteAttestation bool `json:"independent_remote_attestation"`
AuthenticityCaveat string `json:"authenticity_caveat,omitempty"`
RunOrigin EvidenceRunOrigin `json:"run_origin"`
ExecutionStatus string `json:"execution_status"`
Reportable bool `json:"reportable"`
ReportabilityNote string `json:"reportability_note,omitempty"`
}
ReviewAttempt is the case-by-case pass/fail index consumed by REVIEW.md and presentation clients. Deterministic is always the benchmark authority.
type ReviewBundle ¶
type ReviewBundle struct {
// contains filtered or unexported fields
}
ReviewBundle is a create-only EvidencePlugin. Attempt sub-bundles own the full raw media lifecycle; this suite index closes admission and drains every active attempt before it publishes its manifest.
func NewReviewBundle ¶
func NewReviewBundle(options ReviewBundleOptions) (*ReviewBundle, error)
func ResumeReviewBundle ¶
func ResumeReviewBundle( ctx context.Context, options ReviewBundleResumeOptions, ) (*ReviewBundle, error)
func (*ReviewBundle) AdoptEvaluationReceipt ¶
func (bundle *ReviewBundle) AdoptEvaluationReceipt( ctx context.Context, caseID string, receipt revieweval.EvaluationBundleReceipt, ) error
AdoptEvaluationReceipt admits one externally retained sibling receipt for a later FinishSuite retry. The exact source context and media are reverified before the receipt enters bundle state; callers cannot attach an evaluation for another result, case, or media tree.
func (*ReviewBundle) BeginAttempt ¶
func (bundle *ReviewBundle) BeginAttempt( ctx context.Context, specification EvidenceAttempt, ) (AttemptEvidence, error)
func (*ReviewBundle) Close ¶
func (bundle *ReviewBundle) Close() error
Close abandons an uncommitted bundle without deleting its diagnostic media, or becomes an idempotent no-op after FinishSuite. It closes admission and drains attempt-owned recorders before releasing the suite directory handle.
func (*ReviewBundle) Directory ¶
func (bundle *ReviewBundle) Directory() string
func (*ReviewBundle) EvaluationReceipts ¶
func (bundle *ReviewBundle) EvaluationReceipts() map[string]revieweval.EvaluationBundleReceipt
EvaluationReceipts returns portable receipts already durable in the caller-owned store and atomically promoted by advisory publication. It is an observability snapshot, not the recovery authority; Resume reloads stores.
func (*ReviewBundle) FinishSuite ¶
func (*ReviewBundle) Receipt ¶
func (bundle *ReviewBundle) Receipt() (ReviewBundleReceipt, bool)
func (*ReviewBundle) SourceReceipt ¶
func (bundle *ReviewBundle) SourceReceipt() (ReviewSourceReceipt, bool)
func (*ReviewBundle) SourceResult ¶
func (bundle *ReviewBundle) SourceResult() (bench.Result, error)
SourceResult returns an independent decode of the exact canonical result sealed by the deterministic source phase. It is primarily a restart seam: callers can resume advisory evaluation without rerunning browser actions or trusting a separately supplied result file.
type ReviewBundleOptions ¶
type ReviewBundleOptions struct {
Directory string
VideoFactory ReviewVideoFactory
// Reviewer is an optional caller-owned provider lease. The bundle never
// closes it. When configured, every completed attempt is evaluated only
// after FinishSuite supplies the exact final cell, provenance, and result.
Reviewer *revieweval.ProviderLease
// SourceAnchor durably publishes and then independently verifies the
// portable deterministic-source receipt before Reviewer may observe any
// media. It is required whenever Reviewer is configured.
SourceAnchor ReviewSourceReceiptAnchor
// EvaluationStores supplies caller-owned durable receipt storage per case.
// Generic review publication reopens the receipt before atomically exposing
// the final evaluation directory. It is required whenever Reviewer is set.
EvaluationStores ReviewEvaluationReceiptStoreFactory
// ReviewConcurrency bounds parallel attempt reviews. Zero uses four;
// providers are concurrency-safe by review.Provider contract.
ReviewConcurrency int
SensitiveValues []string
}
ReviewBundleOptions contains only caller-owned plug-ins and storage. No encoder, browser, reviewer provider, server, or UI is selected by the suite.
type ReviewBundlePublicationError ¶
type ReviewBundlePublicationError struct {
ExpectedReceipt ReviewBundleReceipt
VerifiedReceipt ReviewBundleReceipt
MarkerMayRemain bool
// contains filtered or unexported fields
}
ReviewBundlePublicationError reports the exceptional case in which final verification failed and the published outer manifest could not be removed. VerifiedReceipt is populated only by a fresh anchored verification.
func (*ReviewBundlePublicationError) Error ¶
func (failure *ReviewBundlePublicationError) Error() string
func (*ReviewBundlePublicationError) Unwrap ¶
func (failure *ReviewBundlePublicationError) Unwrap() error
type ReviewBundleReceipt ¶
type ReviewBundleReceipt struct {
Directory string `json:"directory"`
ManifestSHA256 string `json:"manifest_sha256"`
SourceManifestSHA256 string `json:"source_manifest_sha256"`
SourceReceiptSHA256 string `json:"source_receipt_sha256"`
}
func ReadReviewBundleReceipt ¶
func ReadReviewBundleReceipt( ctx context.Context, path string, ) (receipt ReviewBundleReceipt, resultErr error)
ReadReviewBundleReceipt strictly reopens one canonical, single-link final receipt. It does not verify the named review tree or the other external anchors; use VerifyReviewBundlePublication for that.
type ReviewBundleResumeOptions ¶
type ReviewBundleResumeOptions struct {
Directory string
SourceReceipt ReviewSourceReceipt
// SourceAnchor is required only to recover a crash after the external
// receipt committed but before the staged source marker was promoted.
// Ordinary final-source resume still accepts the caller-retained receipt.
SourceAnchor ReviewSourceReceiptAnchor
Reviewer *revieweval.ProviderLease
EvaluationStores ReviewEvaluationReceiptStoreFactory
ReviewConcurrency int
SensitiveValues []string
}
ReviewBundleResumeOptions reopens only a previously verified deterministic source phase. Evaluation siblings are recovered only through caller-owned receipt stores; an unanchored final sibling is never silently adopted.
type ReviewBundleVerification ¶
type ReviewBundleVerification struct {
Receipt ReviewBundleReceipt
SourceReceipt ReviewSourceReceipt
Manifest ReviewManifest
EvaluationReceipts map[string]revieweval.EvaluationBundleReceipt
EvidenceComplete bool
}
ReviewBundleVerification is the credential-free result of reopening the final receipt, deterministic-source receipt, final sealed tree, and every externally retained evaluation receipt. EvidenceComplete describes structural population coverage only: it requires the exact sixteen-case reportable evidence population, but makes no behavioral acceptance decision.
func PublishReviewBundleReceipt ¶
func PublishReviewBundleReceipt( ctx context.Context, options ReviewBundleVerificationOptions, ) (ReviewBundleVerification, error)
PublishReviewBundleReceipt derives the final receipt from an already sealed review bundle and its existing external source/evaluation anchors. It runs a complete credential-free verification before publishing the receipt create-only, then reopens the newly anchored publication. This is the safe migration path for review bundles sealed before outer receipts were emitted.
func VerifyReviewBundlePublication ¶
func VerifyReviewBundlePublication( ctx context.Context, options ReviewBundleVerificationOptions, ) (ReviewBundleVerification, error)
VerifyReviewBundlePublication performs credential-free, fail-closed review verification. It reopens both external receipt levels, verifies the final manifest and all nested media/evaluation bundles, requires the external evaluation directory to contain exactly the manifest's receipt population (plus its optional canonical publication-lock markers), and then repeats the anchors and sealed-tree checks to detect inter-pass replacement.
type ReviewBundleVerificationOptions ¶
type ReviewBundleVerificationOptions struct {
Directory string
ReceiptPath string
SourceReceiptPath string
EvaluationReceiptDirectory string
}
ReviewBundleVerificationOptions names the four independently retained parts of one Realtime-CU review publication. All paths must be clean, absolute, disjoint, and free of symlinked ancestors.
type ReviewEvaluationReceiptStoreFactory ¶
type ReviewEvaluationReceiptStoreFactory interface {
Store(caseID, finalDirectory string) (revieweval.EvaluationBundleReceiptStore, error)
Quarantine(caseID, finalDirectory string) (string, error)
}
ReviewEvaluationReceiptStoreFactory supplies caller-owned durable receipt storage for each case's generic evaluation publication. The generic review package writes and reopens this receipt before the evaluation directory is atomically promoted to its final, reportable name.
type ReviewManifest ¶
type ReviewManifest struct {
Format string `json:"format"`
FormatVersion int `json:"format_version"`
Phase string `json:"phase"`
Suite string `json:"suite"`
Expected int `json:"expected"`
Complete bool `json:"complete"`
Reportable bool `json:"reportable"`
CoreReportable bool `json:"core_reportable"`
CoreReportability string `json:"core_reportability,omitempty"`
Result ReviewArtifact `json:"result"`
SourceManifest *ReviewArtifact `json:"source_manifest,omitempty"`
Cell bench.Cell `json:"cell"`
Provenance bench.Provenance `json:"provenance"`
ReportabilityErrors []string `json:"reportability_errors,omitempty"`
Missing []ReviewMissing `json:"missing,omitempty"`
Attempts []ReviewAttempt `json:"attempts"`
}
ReviewManifest is published last. Complete describes evidence coverage; Reportable additionally requires the exact core bench.Result gate, live production origins, and a verified secondary review for every attempt.
func VerifyReviewBundle ¶
func VerifyReviewBundle(directory, expectedManifestSHA256 string) (ReviewManifest, error)
func VerifyReviewBundleReceipt ¶
func VerifyReviewBundleReceipt( directory string, expected ReviewBundleReceipt, ) (ReviewManifest, error)
VerifyReviewBundleReceipt additionally anchors the independently published source phase. The final manifest transitively binds every evaluation receipt, while this caller-retained field prevents a final receipt from being paired with a different deterministic source receipt.
func VerifyReviewSourceBundle ¶
func VerifyReviewSourceBundle( directory, expectedManifestSHA256 string, ) (ReviewManifest, error)
VerifyReviewSourceBundle authenticates the deterministic source phase while deliberately excluding mutable sibling evaluation directories. The source receipt therefore remains stable before, during, and after advisory review.
func VerifyReviewSourceReceipt ¶
func VerifyReviewSourceReceipt( directory string, expected ReviewSourceReceipt, ) (ReviewManifest, error)
VerifyReviewSourceReceipt cross-binds the external receipt to the current independently verified deterministic source bytes.
type ReviewMedia ¶
type ReviewMedia struct {
Kind string `json:"kind"`
Role string `json:"role"`
Path string `json:"path"`
SHA256 string `json:"sha256"`
SizeBytes int64 `json:"size_bytes"`
MediaType string `json:"media_type"`
}
ReviewMedia is a human-playable artifact from an independently verified attempt media bundle. Raw frames and timelines remain in MediaBundle.Path.
type ReviewMissing ¶
type ReviewSourcePublicationError ¶
type ReviewSourcePublicationError struct {
ExpectedReceipt ReviewSourceReceipt
VerifiedReceipt ReviewSourceReceipt
MarkerMayRemain bool
// contains filtered or unexported fields
}
ReviewSourcePublicationError is the source-phase equivalent: a non-zero VerifiedReceipt is populated only by a fresh externally anchored source verification after invalidation itself failed.
func (*ReviewSourcePublicationError) Error ¶
func (failure *ReviewSourcePublicationError) Error() string
func (*ReviewSourcePublicationError) Unwrap ¶
func (failure *ReviewSourcePublicationError) Unwrap() error
type ReviewSourceReceipt ¶
type ReviewSourceReceipt struct {
Format string `json:"format"`
FormatVersion int `json:"format_version"`
Directory string `json:"directory"`
ManifestSHA256 string `json:"manifest_sha256"`
ResultSHA256 string `json:"result_sha256"`
ReceiptSHA256 string `json:"receipt_sha256"`
}
ReviewSourceReceipt externally anchors deterministic result, context, raw media, and independently attested playable A/V before any advisory model is invoked. It remains valid when model review is unavailable or canceled.
func ReadReviewSourceReceipt ¶
func ReadReviewSourceReceipt(ctx context.Context, path string) ( receipt ReviewSourceReceipt, resultErr error, )
ReadReviewSourceReceipt reopens a canonical external receipt. It does not authenticate source bytes by itself; use VerifyReviewSourceReceipt for that.
type ReviewSourceReceiptAnchor ¶
type ReviewSourceReceiptAnchor interface {
Acquire(context.Context, string) (ReviewSourceReceiptLease, error)
}
ReviewSourceReceiptAnchor acquires exclusive, crash-released ownership of one deterministic-source publication. The lease remains held from staged source verification through durable receipt commit and final marker promotion, so concurrent finishers cannot publish competing identities.
type ReviewSourceReceiptLease ¶
type ReviewSourceReceiptLease interface {
Publish(context.Context, ReviewSourceReceipt) error
Load(context.Context) (ReviewSourceReceipt, bool, error)
Close() error
}
ReviewSourceReceiptLease is caller-owned durable receipt storage. Publish is create-only and a nil return guarantees durable commit. Load returns found=false only when no receipt has been committed. Close is idempotent.
type ReviewVideoFactory ¶
type ReviewVideoFactory interface {
NewReviewVideo(context.Context, EvidenceAttempt) (reviewmedia.Encoder, reviewmedia.Attestor, error)
}
ReviewVideoFactory supplies fresh attempt-scoped encoder and independent full-decode attestor plug-ins. Realtime-CU always requires both: its human evidence is synchronized video+audio, never an audio-only approximation.
type Task ¶
type Task struct {
ID string
Category string
Difficulty string
Axes []Axis
PageMode string
AudioAsset string
// CueAt is when the condition worth reacting to becomes observable after
// the environment clock starts. For an audio-only instruction it is the
// end of the authored utterance; for a transient visual event it is the
// page's declared event time.
CueAt time.Duration
Deadline time.Duration
// MaxActions prevents a failing model from clicking indefinitely.
MaxActions int
Camera bool
Groundings []Grounding
}
Task is one repository-owned, deterministically scored browser episode.
func Suite ¶
func Suite() []Task
Suite returns the complete v1 task set.
Each task is intentionally small enough to diagnose. The suite composes the axes across tasks instead of hiding every failure inside one elaborate page: a missed transient, a bad coordinate, a misheard colour, and an unsafe click should be four different rows.