Documentation
¶
Overview ¶
Package meeting owns the deterministic OpenRealtime meeting-assistant evaluation. It composes recorded speech, a changing shared screen, computer actions, spoken output, and asynchronous document reasoning in the same session.
Index ¶
- Constants
- func ExpectedTasks() int
- func ReferenceCell() bench.Cell
- func Run(ctx context.Context, options Options) (bench.Result, error)
- func WriteReviewSourceReceipt(ctx context.Context, path string, receipt ReviewSourceReceipt) (resultErr error)
- type ActionRecord
- type AttemptEvidence
- type Cue
- type Environment
- type EnvironmentConfig
- type Episode
- 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 EvidenceError
- type EvidencePlugin
- type EvidenceRunOrigin
- type FileReviewSourceReceiptAnchor
- type Options
- type PageEvent
- type PageResult
- type ReviewArtifact
- type ReviewAttempt
- type ReviewBundle
- 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() []revieweval.EvaluationBundleReceipt
- func (bundle *ReviewBundle) FinishSuite(ctx context.Context, result bench.Result) error
- func (bundle *ReviewBundle) Receipt() (ReviewBundleReceipt, error)
- func (bundle *ReviewBundle) SourceReceipt() (ReviewSourceReceipt, error)
- type ReviewBundleOptions
- type ReviewBundleReceipt
- type ReviewEvaluationReceipt
- type ReviewFinding
- type ReviewManifest
- type ReviewMedia
- type ReviewMissing
- type ReviewResponse
- type ReviewSourceAttempt
- type ReviewSourceBundle
- type ReviewSourceManifest
- type ReviewSourceReceipt
- type ReviewSourceReceiptAnchor
- type ReviewSourceReceiptLease
- type ReviewVideoFactory
- type Task
- type ToolRecord
Constants ¶
const ( EvidenceOriginProduction = "production-shared-realtime" EvidenceOriginHermetic = "hermetic-test" )
const ( ReviewBundleFormat = "openrealtime.meeting-review" ReviewBundleFormatVersion = 2 ReviewContextFormat = "openrealtime.meeting-review-context" ReviewContextVersion = 1 )
const ( ReviewSourceFormat = "openrealtime.meeting-review-source" ReviewSourceFormatVersion = 1 ReviewSourceReceiptFormat = "openrealtime.meeting-review-source-receipt" ReviewSourceReceiptVersion = 1 )
const ( ToolReadLaunchReview = "meeting.read_launch_review" ToolAnalyzeLaunchReview = "meeting.analyze_launch_review" )
const SuiteName = "openrealtime-meeting-assistant-v1"
Variables ¶
This section is empty.
Functions ¶
func ExpectedTasks ¶
func ExpectedTasks() int
func ReferenceCell ¶
func WriteReviewSourceReceipt ¶
func WriteReviewSourceReceipt( ctx context.Context, path string, receipt ReviewSourceReceipt, ) (resultErr error)
WriteReviewSourceReceipt durably retains a portable source receipt outside the sealed source directory. The destination is create-only and opened through an identity-checked parent handle.
Types ¶
type ActionRecord ¶
type ActionRecord struct {
CallID string `json:"call_id"`
Name string `json:"name"`
Arguments json.RawMessage `json:"arguments"`
ReceivedAtMS float64 `json:"received_at_ms"`
CompletedAtMS float64 `json:"completed_at_ms"`
Error string `json:"error,omitempty"`
}
ActionRecord retains every computer action and its execution interval.
type AttemptEvidence ¶
type AttemptEvidence interface {
CaptureAudio(bench.SessionAudioCapture) error
CaptureVideo(bench.SessionVideoCapture) error
Complete(context.Context, EvidenceCompletion) error
Abort() error
}
AttemptEvidence receives exact session media and then one terminal outcome. Implementations own their resources from BeginAttempt until Complete or Abort returns. Capture callbacks are synchronous, serialized by the shared session driver, and receive owned byte/sample storage.
type Cue ¶
Cue is one authored event against the recording/environment clock. Start is used for interruption and overlap; End is used when the agent needs the full spoken instruction before acting.
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
Environment owns one isolated Chromium process for a suite 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 }
type Episode ¶
type Episode struct {
// contains filtered or unexported fields
}
func (*Episode) CaptureScreen ¶
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"`
// Cell and Provenance bind the evidence/reviewer request to the exact run
// configuration and build identity that will later appear in bench.Result.
// Keeping them on the attempt prevents a valid media exchange from being
// re-indexed under a different execution requirement or source build.
Cell bench.Cell `json:"cell"`
Provenance bench.Provenance `json:"provenance"`
Origin EvidenceRunOrigin `json:"run_origin"`
ExecutionRequirement bench.ExecutionRequirement `json:"execution_requirement,omitempty"`
}
EvidenceAttempt identifies one exact Meeting Assistant evaluation before any browser, media, or Realtime work begins. Trial is one because the v1 candidate runner owns a single preregistered repetition.
type EvidenceCompletion ¶
type EvidenceCompletion struct {
Attempt EvidenceAttempt
Outcome bench.TaskOutcome
Transcript bench.Transcript
}
EvidenceCompletion is the deterministic result and protocol transcript presented to an evidence plug-in after scoring. The benchmark result remains authoritative: a secondary reviewer may describe disagreement but cannot replace Outcome.Passed.
type EvidenceError ¶
EvidenceError reports an advisory retention/review failure without changing the deterministic TaskOutcome. Callers can use errors.As to distinguish an evidence failure from a session, environment, or scoring failure.
func (*EvidenceError) Error ¶
func (failure *EvidenceError) Error() string
func (*EvidenceError) Unwrap ¶
func (failure *EvidenceError) Unwrap() error
type EvidencePlugin ¶
type EvidencePlugin interface {
BeginAttempt(context.Context, EvidenceAttempt) (AttemptEvidence, error)
FinishSuite(context.Context, bench.Result) error
}
EvidencePlugin is the UI- and provider-neutral Meeting Assistant evidence extension point. Implementations may retain media, invoke a caller-selected reviewer, or export another create-only artifact format. The runner has no Gemini, encoder, filesystem layout, or presentation-layer dependency.
type EvidenceRunOrigin ¶
type EvidenceRunOrigin struct {
Kind string `json:"kind"`
Live bool `json:"live"`
Transport string `json:"transport"`
EndpointSHA256 string `json:"endpoint_sha256"`
}
EvidenceRunOrigin states whether an attempt traversed the production shared Realtime/session path or package-private hermetic test plumbing. EndpointSHA256 binds the exact configured endpoint without retaining credentials or query parameters in a review bundle. A hermetic origin is useful integration evidence, but can never support a live/reportable benchmark claim.
type FileReviewSourceReceiptAnchor ¶
type FileReviewSourceReceiptAnchor struct{ Path string }
FileReviewSourceReceiptAnchor is the production filesystem anchor. Path is the caller-selected source receipt path outside the review bundle.
func (FileReviewSourceReceiptAnchor) Acquire ¶
func (anchor FileReviewSourceReceiptAnchor) Acquire( ctx context.Context, publicationID string, ) (ReviewSourceReceiptLease, error)
type Options ¶
type Options struct {
Endpoint string
Transport string
Token string
Model string
Cell bench.Cell
Browser string
Categories []string
Limit int
FrameRate int
Timeout time.Duration
AnalysisDelay time.Duration
Progress func(string)
RuntimeAttestor bench.RuntimeAttestor
// Evidence is an optional caller-supplied attempt/suite plug-in. It receives
// exact audio/video callbacks from the same shared Realtime session used by
// the scorer and cannot alter the deterministic outcome.
Evidence EvidencePlugin
// contains filtered or unexported fields
}
type PageResult ¶
PageResult is hidden evaluator state; only rendered pixels and declared computer tools reach the model.
type ReviewArtifact ¶
type ReviewAttempt ¶
type ReviewAttempt struct {
Ordinal int `json:"ordinal"`
Case string `json:"case"`
Trial int `json:"trial"`
Deterministic bench.TaskOutcome `json:"deterministic"`
Cell bench.Cell `json:"cell"`
Provenance bench.Provenance `json:"provenance"`
ExecutionRequirement bench.ExecutionRequirement `json:"execution_requirement,omitempty"`
Context ReviewArtifact `json:"context"`
MediaManifest ReviewArtifact `json:"media_manifest"`
Media []ReviewMedia `json:"media"`
MediaArtifacts []ReviewArtifact `json:"media_artifacts"`
VideoStatus string `json:"video_status"`
SecondaryReview *ReviewArtifact `json:"secondary_review,omitempty"`
EvaluationManifest *ReviewArtifact `json:"evaluation_manifest,omitempty"`
EvaluationReceipt *ReviewEvaluationReceipt `json:"evaluation_receipt,omitempty"`
ReviewArtifacts []ReviewArtifact `json:"review_artifacts,omitempty"`
ReviewStatus string `json:"review_status"`
RunOrigin EvidenceRunOrigin `json:"run_origin"`
ExecutionStatus string `json:"execution_status"`
Reportable bool `json:"reportable"`
ReportabilityNote string `json:"reportability_note,omitempty"`
Assessment *ReviewResponse `json:"assessment,omitempty"`
}
type ReviewBundle ¶
type ReviewBundle struct {
// contains filtered or unexported fields
}
ReviewBundle is a create-only implementation of EvidencePlugin. It owns no model, API key, encoder binary, listener, or UI: all such capabilities enter through Reviewer and ReviewVideoFactory.
func NewReviewBundle ¶
func NewReviewBundle(options ReviewBundleOptions) (*ReviewBundle, error)
func ResumeReviewBundle ¶
func ResumeReviewBundle( ctx context.Context, options ReviewBundleOptions, ) (*ReviewBundle, bench.Result, error)
ResumeReviewBundle opens a receipt-anchored interrupted review campaign without re-running deterministic Meeting tasks or regenerating media. It recovers the staged source marker when necessary, reconstructs exact advisory requests from the sealed source contexts/media/result, and lets a later FinishSuite adopt already receipted evaluations before invoking only the missing reviewer calls.
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 unused or already-drained incomplete bundle and releases its owned directory handle. It is idempotent. Callers should defer Close immediately after NewReviewBundle so validation failures that happen before Run installs FinishSuite cannot leak the handle. Active attempts must first reach Complete or Abort; a concurrent successful FinishSuite owns closure.
func (*ReviewBundle) Directory ¶
func (bundle *ReviewBundle) Directory() string
func (*ReviewBundle) EvaluationReceipts ¶
func (bundle *ReviewBundle) EvaluationReceipts() []revieweval.EvaluationBundleReceipt
EvaluationReceipts returns the successfully sealed sibling evaluation receipts. Advisory failures are retryable and do not remove prior receipts.
func (*ReviewBundle) FinishSuite ¶
func (*ReviewBundle) Receipt ¶
func (bundle *ReviewBundle) Receipt() (ReviewBundleReceipt, error)
Receipt returns the external manifest anchor only after a successful sealed commit. It never manufactures a receipt for an incomplete or failed bundle.
func (*ReviewBundle) SourceReceipt ¶
func (bundle *ReviewBundle) SourceReceipt() (ReviewSourceReceipt, error)
SourceReceipt returns the independently sealed deterministic source anchor as soon as source publication succeeds. It remains available when an advisory reviewer is unavailable and the enclosing review index is not yet complete.
type ReviewBundleOptions ¶
type ReviewBundleOptions struct {
Directory string
// SourceReceiptPath and EvaluationReceiptDirectory are caller-selectable,
// create-only anchors outside Directory. Defaults are sibling paths. The
// deterministic source receipt is durably written and reopened before any
// reviewer invocation; evaluation receipts are written immediately after
// each sealed sibling evaluation so a retry or new process can adopt it.
SourceReceiptPath string
EvaluationReceiptDirectory string
// EvaluationQuarantineDirectory is a caller-owned, pre-created directory
// outside the reportable review tree. Interrupted pre-receipt evaluation
// stages are preserved there and can never be mistaken for committed
// evidence. The default is a sibling of Directory.
EvaluationQuarantineDirectory string
// Reviewer is an already-open, caller-owned provider lease from the shared
// review registry. The bundle invokes review.Evaluate, which pins provider
// identity/configuration/capabilities and requires private response
// verification. The caller remains responsible for closing the lease.
Reviewer *revieweval.ProviderLease
VideoFactory ReviewVideoFactory
SensitiveValues []string
// contains filtered or unexported fields
}
type ReviewBundleReceipt ¶
type ReviewBundleReceipt struct {
Directory string `json:"directory"`
ManifestSHA256 string `json:"manifest_sha256"`
}
ReviewBundleReceipt is the external anchor for a successfully sealed bundle. Its manifest digest is deliberately not stored inside manifest.json.
type ReviewEvaluationReceipt ¶
type ReviewEvaluationReceipt 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"`
EvidenceScope string `json:"evidence_scope"`
IndependentRemoteAttestation bool `json:"independent_remote_attestation"`
AuthenticityCaveat string `json:"authenticity_caveat"`
}
ReviewEvaluationReceipt is the portable, directory-relative projection of review.EvaluationBundleReceipt retained by the enclosing Meeting bundle. The four digests are minted by WriteEvaluationBundle; Directory is excluded from their portable identity and is resolved beneath this bundle at verify.
type ReviewFinding ¶
type ReviewFinding = revieweval.Finding
type ReviewManifest ¶
type ReviewManifest struct {
Format string `json:"format"`
FormatVersion int `json:"format_version"`
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"`
SourceManifest ReviewArtifact `json:"source_manifest"`
SourceReceipt ReviewSourceReceipt `json:"source_receipt"`
Result ReviewArtifact `json:"result"`
ReviewDocument ReviewArtifact `json:"review_document"`
Cell bench.Cell `json:"cell"`
Provenance bench.Provenance `json:"provenance"`
Reviewer revieweval.ProviderDescriptor `json:"reviewer"`
ReviewEvidenceScope string `json:"review_evidence_scope"`
IndependentRemoteAttestation bool `json:"independent_remote_attestation"`
ReviewAuthenticityCaveat string `json:"review_authenticity_caveat"`
ReportabilityErrors []string `json:"reportability_errors,omitempty"`
Missing []ReviewMissing `json:"missing,omitempty"`
Attempts []ReviewAttempt `json:"attempts"`
}
func VerifyReviewBundle ¶
func VerifyReviewBundle(directory, expectedManifestSHA256 string) (ReviewManifest, error)
VerifyReviewBundle verifies a sealed complete bundle against a manifest digest retained outside the bundle. It rejects writable nodes, symlinks, unexpected files, artifact drift, reviewer-exchange drift, result drift, and media that no longer passes the media package's full verifier.
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 identifies exact, independently verified retained content.
type ReviewMissing ¶
type ReviewResponse ¶
type ReviewResponse struct {
Reviewer revieweval.ProviderDescriptor `json:"reviewer"`
RequestSHA256 string `json:"request_sha256"`
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 []ReviewFinding `json:"significant_problems"`
MinorObservations []ReviewFinding `json:"minor_observations"`
Limitations []string `json:"limitations"`
}
ReviewResponse is the normalized index of a response that passed the shared provider-neutral Evaluate+Verify contract. The complete provider exchange and its immutable identities are retained separately under ReviewArtifacts.
type ReviewSourceAttempt ¶
type ReviewSourceAttempt struct {
Ordinal int `json:"ordinal"`
Case string `json:"case"`
Trial int `json:"trial"`
Deterministic bench.TaskOutcome `json:"deterministic"`
Cell bench.Cell `json:"cell"`
Provenance bench.Provenance `json:"provenance"`
ExecutionRequirement bench.ExecutionRequirement `json:"execution_requirement,omitempty"`
Context ReviewArtifact `json:"context"`
MediaManifest ReviewArtifact `json:"media_manifest"`
Media []ReviewMedia `json:"media"`
MediaArtifacts []ReviewArtifact `json:"media_artifacts"`
VideoStatus string `json:"video_status"`
RunOrigin EvidenceRunOrigin `json:"run_origin"`
ExecutionStatus string `json:"execution_status"`
Reportable bool `json:"reportable"`
ReportabilityNote string `json:"reportability_note,omitempty"`
}
ReviewSourceAttempt is the provider-independent evidence for one exact deterministic row. All paths are relative to the sealed source directory. Advisory model output deliberately cannot appear in this structure.
type ReviewSourceBundle ¶
type ReviewSourceBundle struct {
Manifest ReviewSourceManifest
Result bench.Result
Receipt ReviewSourceReceipt
}
func VerifyMeetingReviewSource ¶
func VerifyMeetingReviewSource( ctx context.Context, directory string, expected ReviewSourceReceipt, ) (bundle ReviewSourceBundle, resultErr error)
VerifyMeetingReviewSource verifies the exact independently sealed source population against a caller-retained receipt. It anchors every read to one os.Root identity and rejects symlinks, duplicate/hard-linked file identities, unexpected nodes, root swaps, and concurrent mutation.
type ReviewSourceManifest ¶
type ReviewSourceManifest struct {
Format string `json:"format"`
FormatVersion int `json:"format_version"`
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"`
Cell bench.Cell `json:"cell"`
Provenance bench.Provenance `json:"provenance"`
ReportabilityErrors []string `json:"reportability_errors,omitempty"`
Missing []ReviewMissing `json:"missing,omitempty"`
Attempts []ReviewSourceAttempt `json:"attempts"`
FileSetSHA256 string `json:"file_set_sha256"`
Files []ReviewArtifact `json:"files"`
}
ReviewSourceManifest is the commit marker for deterministic result, transcript context, and independently verified retained media. Complete is a population property; an incomplete diagnostic population is still sealed and receives an external receipt, but can never be reportable.
type ReviewSourceReceipt ¶
type ReviewSourceReceipt struct {
Format string `json:"format"`
FormatVersion int `json:"format_version"`
Directory string `json:"directory"`
ManifestSHA256 string `json:"manifest_sha256"`
FileSetSHA256 string `json:"file_set_sha256"`
ResultSHA256 string `json:"result_sha256"`
ReceiptSHA256 string `json:"receipt_sha256"`
}
ReviewSourceReceipt is portable: ReceiptSHA256 excludes Directory. The caller must retain this value outside the source tree and supply it when reopening the source.
func ReadReviewSourceReceipt ¶
func ReadReviewSourceReceipt(ctx context.Context, path string) (ReviewSourceReceipt, error)
type ReviewSourceReceiptAnchor ¶
type ReviewSourceReceiptAnchor interface {
Acquire(context.Context, string) (ReviewSourceReceiptLease, error)
}
ReviewSourceReceiptAnchor holds crash-released exclusive ownership from staged deterministic-source verification through external receipt commit and final marker promotion.
type ReviewSourceReceiptLease ¶
type ReviewSourceReceiptLease interface {
Publish(context.Context, ReviewSourceReceipt) error
Load(context.Context) (ReviewSourceReceipt, bool, error)
Close() error
}
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. Omitting it produces the always-required playable stereo WAV only. Supplying it additionally retains synchronized screen+room+agent MP4 without selecting an encoder inside this package.
type Task ¶
type Task struct {
ID string
Category string
Difficulty string
PageMode string
AudioAsset string
Cues []Cue
MaxActions int
}
Task is one complete meeting episode.
func Select ¶
Select restricts a diagnostic run. Run always declares ExpectedTasks, so a filtered smoke can never become a reportable full-suite claim.
type ToolRecord ¶
type ToolRecord struct {
CallID string `json:"call_id,omitempty"`
Name string `json:"name"`
ReceivedAtMS float64 `json:"received_at_ms"`
CompletedAtMS float64 `json:"completed_at_ms"`
Error string `json:"error,omitempty"`
}
ToolRecord retains long-running knowledge-tool intervals on the environment clock. The overlap interval is part of the score, not a diagnostic note.