Documentation
¶
Overview ¶
Package graphnative binds the owned interaction-scenario suite to an exact graph-native Realtime adapter contract.
This package does not score behavior and does not turn static compatibility into benchmark evidence. It identifies the external session seams exercised by each scenario, fingerprints that inventory, and rejects a selected graph adapter that cannot carry the suite before a listener or session is started.
Index ¶
- Constants
- func BuildSourceReviewRequests(ctx context.Context, options SourceBundleOptions, expected SourceReceipt) ([]review.Request, error)
- func FingerprintResult(result scenario.Result) (string, error)
- func FreezeApplicationConfiguration(contract Contract, delegate launchprofile.Registration, ...) (json.RawMessage, error)
- func FreezeLaunchProfile(ctx context.Context, config LaunchProfileConfig) (launchprofile.Document, error)
- func GuardAdapter(contract Contract, plugin graphlaunch.AdapterPlugin) (graphlaunch.AdapterPlugin, error)
- func GuardLaunch(contract Contract, config graphlaunch.Config) (graphlaunch.Config, error)
- func MarshalChecklist(checklist Checklist) ([]byte, error)
- func NewApplicationPlugin(config ApplicationPluginConfig) (launchprofile.Registration, error)
- func ValidateChecklistConfig(config ChecklistConfig) error
- type ApplicationPluginConfig
- type AttemptCapture
- type AttemptExecution
- type AttemptExecutor
- type AttemptFailure
- type AttemptKey
- type AttemptObservation
- type AttemptRecord
- type AttemptRetainer
- type CaseChecklist
- type CaseRequirement
- type Checklist
- type ChecklistConfig
- type ChecklistSink
- type Config
- type Contract
- type ErrorSanitizer
- type LaunchProfileConfig
- type LiveExecutorConfig
- type MediaReference
- type MediaVerifier
- type Result
- type Seam
- type SourceAttempt
- type SourceBundle
- type SourceBundleOptions
- type SourceFile
- type SourceManifest
- type SourceOrigin
- type SourcePublication
- type SourceReceipt
- type SourceReviewArchitecture
- type SourceReviewContext
- type SourceReviewPopulation
- type SourceSubmittedInput
- type StackRequirement
- type SubmittedInputCapture
- type SubmittedInputReceipt
- type VerifiedMedia
Constants ¶
const ( ChecklistFormatVersion uint64 = 1 MinimumReportableRepetitions = 15 )
const ( MediaPolicyRequired = "required" MediaPolicyUnattested = "unattested" BehaviorPassed = "passed" BehaviorFailed = "failed" BehaviorUnscored = "unscored" )
const ( ContractFormatVersion uint64 = 1 SuiteName = "scenario" )
const ( // ApplicationReference is the production host key for the scenario-suite // decorator. The delegate remains an independently registered application; // a strict launch profile selects this reference only when it requires the // reviewed scenario contract around that delegate. ApplicationReference = "application.openrealtime.scenario-suite.v1" // ApplicationConfigurationFormatVersion identifies the scenario suite's // plugin-owned portion of a generic graph launch profile. ApplicationConfigurationFormatVersion uint64 = 1 )
const ( SourceReviewContextFormat = "openrealtime.scenario-source-review-context" SourceReviewContextFormatVersion = 3 )
const ( SourceBundleFormat = "openrealtime.scenario-source-bundle" SourceBundleFormatVersion = 1 SourceReceiptFormat = "openrealtime.scenario-source-receipt" SourceReceiptVersion = 1 SourceManifestName = "source-manifest.json" SourceArchitectureName = "architecture-result.json" )
Variables ¶
This section is empty.
Functions ¶
func BuildSourceReviewRequests ¶
func BuildSourceReviewRequests( ctx context.Context, options SourceBundleOptions, expected SourceReceipt, ) ([]review.Request, error)
BuildSourceReviewRequests converts one externally anchored scenario source bundle into provider-neutral offline review requests. It performs no model, credential, or network work. The source tree is receipt-verified before and after request construction; Evaluate will independently reopen and validate every referenced media payload immediately before invoking a provider.
func FingerprintResult ¶
FingerprintResult binds a checklist row to the complete scorer result, including its transcript and execution evidence. Callers retaining result artifacts can recompute this digest without depending on checklist internals.
func FreezeApplicationConfiguration ¶
func FreezeApplicationConfiguration( contract Contract, delegate launchprofile.Registration, delegateConfiguration json.RawMessage, ) (json.RawMessage, error)
FreezeApplicationConfiguration creates the canonical plugin-owned data for one scenario contract and exact delegate registration. The complete case list is always materialized, including for the reviewed full suite, so a checked profile never relies on an empty-list convention.
func FreezeLaunchProfile ¶
func FreezeLaunchProfile( ctx context.Context, config LaunchProfileConfig, ) (launchprofile.Document, error)
FreezeLaunchProfile derives and freezes the generic launch profile for an exact scenario application. Application factory and graph launch preparation are metadata-only operations; provider clients, secrets, graph elements, session adapters, and listeners stay behind SessionProvider.Start/Mount.
func GuardAdapter ¶
func GuardAdapter( contract Contract, plugin graphlaunch.AdapterPlugin, ) (graphlaunch.AdapterPlugin, error)
GuardAdapter decorates one resource-free adapter plugin with a scenario contract check. The underlying binder still derives its profile from the immutable selected plan; the guard then verifies exact graph boundaries and capability projection before graph/launch can expose the provider.
This is the plugin-composition seam for a host that assembles the catalog itself. New uses the same function and adds exact selected-plugin checks.
func GuardLaunch ¶
func GuardLaunch( contract Contract, config graphlaunch.Config, ) (graphlaunch.Config, error)
GuardLaunch returns a launch config whose exact selected adapter is guarded by contract. This is the direct seam for server.NewGraphBundle: a host can keep graph preparation and server compilation in that generic bundle while adding the scenario contract as an ordinary adapter-plugin decorator.
GuardLaunch does not invoke any binder or acquire any resource. It owns the returned adapter slice so installing the guard never mutates the caller's catalog.
func MarshalChecklist ¶
MarshalChecklist emits deterministic, newline-terminated JSON for a plugin-owned review/persistence layer.
func NewApplicationPlugin ¶
func NewApplicationPlugin(config ApplicationPluginConfig) (launchprofile.Registration, error)
NewApplicationPlugin builds the everything-as-a-plugin scenario decorator. Construction only validates and snapshots registrations. Its factory strict decodes the profile-owned data, reconstructs the exact repository contract, invokes the resource-free delegate factory, and installs GuardLaunch before the generic launcher can bind an adapter.
func ValidateChecklistConfig ¶
func ValidateChecklistConfig(config ChecklistConfig) error
ValidateChecklistConfig verifies and freezes the complete checklist selection without invoking the executor, media verifier, or retention sink. Hosts can therefore reject a drifted contract/profile/evidence composition before they open credentials, storage, speech, or Realtime resources.
Types ¶
type ApplicationPluginConfig ¶
type ApplicationPluginConfig struct {
Reference string
Artifact inspect.ArtifactIdentity
Delegate launchprofile.Registration
}
ApplicationPluginConfig describes one scenario-suite application plugin.
The plugin is a decorator over another exact application registration. Its own Reference and Artifact identify the scenario contract enforcement code; Delegate identifies the application that supplies the graph, providers, and adapter. The resulting registration retains Delegate.ProviderArtifact so the generic profile resolver can attest the installed SessionProvider bytes.
type AttemptCapture ¶
type AttemptCapture struct {
Key AttemptKey
Result scenario.Result
Audio bench.SessionAudioCapture
Submitted []SubmittedInputCapture
RunSucceeded bool
}
AttemptCapture is the provider-neutral evidence handed to one caller-selected retention plug-in after a canonical scenario attempt. Result and Audio are independent copies. RunSucceeded distinguishes a behavioral result from a diagnostic artifact without retaining an unsanitized provider/transport error inside the capture contract.
type AttemptExecution ¶
type AttemptExecution struct {
ContractFingerprint string `json:"contract_fingerprint"`
LaunchProfileFingerprint string `json:"launch_profile_fingerprint"`
PlanFingerprint string `json:"plan_fingerprint"`
GraphFingerprint string `json:"graph_fingerprint"`
AdapterProfileFingerprint string `json:"adapter_profile_fingerprint"`
ResultSHA256 string `json:"result_sha256,omitempty"`
EvidenceFingerprint string `json:"evidence_fingerprint,omitempty"`
Validated bool `json:"validated"`
}
AttemptExecution makes each row independently attributable to the complete frozen selection. ResultSHA256 binds the retained scorer result, while EvidenceFingerprint refers to the separately retained bench.ExecutionEvidence whose exact content was matched before Validated was set. Expected plan/profile identities are not inferred from either digest.
type AttemptExecutor ¶
type AttemptExecutor func( context.Context, AttemptKey, scenario.Scenario, ) (AttemptObservation, error)
func NewLiveExecutor ¶
func NewLiveExecutor(config LiveExecutorConfig) (AttemptExecutor, error)
NewLiveExecutor freezes the live client composition without opening a connection or invoking a plug-in. Attempts through one returned executor are serialized so stateful speech and retention plug-ins need only implement a single-attempt lifecycle.
type AttemptFailure ¶
type AttemptKey ¶
type AttemptKey struct {
CaseOrdinal int `json:"case_ordinal"`
CaseName string `json:"case_name"`
Trial int `json:"trial"`
TaskID string `json:"task_id"`
}
AttemptKey is the canonical identity shared by the executor, attestor, media verifier, and checklist sink. It deliberately matches the public scenario client's task scope so live inspection cannot be attributed to a different repetition.
type AttemptObservation ¶
type AttemptObservation struct {
Result scenario.Result
Media *MediaReference
}
AttemptObservation is returned by the caller-selected executor. Result is the repository scenario scorer's output; Media only names evidence for a verifier and is never accepted by assertion.
type AttemptRecord ¶
type AttemptRecord struct {
FormatVersion uint64 `json:"format_version"`
Fingerprint string `json:"fingerprint"`
Key AttemptKey `json:"key"`
Behavior string `json:"behavior"`
Failures []string `json:"behavior_failures,omitempty"`
Infrastructure []AttemptFailure `json:"infrastructure_failures,omitempty"`
Execution AttemptExecution `json:"execution"`
Media *VerifiedMedia `json:"media,omitempty"`
Reportable bool `json:"reportable"`
}
func (AttemptRecord) Clone ¶
func (record AttemptRecord) Clone() AttemptRecord
type AttemptRetainer ¶
type AttemptRetainer func(context.Context, AttemptCapture) (MediaReference, error)
AttemptRetainer owns evidence persistence. It must retain the supplied audio and every submitted input create-only, then return an opaque handle and final manifest digest. RunChecklist invokes an independently selected verifier before treating the reference as evidence.
type CaseChecklist ¶
type CaseRequirement ¶
type CaseRequirement struct {
Name string `json:"name"`
Seams []Seam `json:"seams"`
Operations []graphbinding.AdapterOperation `json:"operations"`
Capabilities StackRequirement `json:"capabilities"`
}
CaseRequirement is the exact external composition surface for one owned scenario. Operations and seams are canonical, sorted, duplicate-free sets.
type Checklist ¶
type Checklist struct {
FormatVersion uint64 `json:"format_version"`
Fingerprint string `json:"fingerprint"`
Suite string `json:"suite"`
ContractFingerprint string `json:"contract_fingerprint"`
LaunchProfileFingerprint string `json:"launch_profile_fingerprint"`
Plan graphconfig.Identity `json:"plan"`
AdapterProfileFingerprint string `json:"adapter_profile_fingerprint"`
ExecutionRequirementSHA256 string `json:"execution_requirement_sha256"`
MediaPolicy string `json:"media_policy"`
Repetitions int `json:"repetitions"`
Expected int `json:"expected"`
Executed int `json:"executed"`
ReportableAttempts int `json:"reportable_attempts"`
PassedAttempts int `json:"passed_attempts"`
FailedAttempts int `json:"failed_attempts"`
InfrastructureFailures int `json:"infrastructure_failures"`
FullSuite bool `json:"full_suite"`
Complete bool `json:"complete"`
Reportable bool `json:"reportable"`
Passed bool `json:"passed"`
Cases []CaseChecklist `json:"cases"`
Attempts []AttemptRecord `json:"attempts"`
}
Checklist is the deterministic case-by-case review index. Complete means every configured attempt returned a record. Reportable additionally needs the complete twelve-case contract, the reviewed repetition floor, exact graph evidence, and verifier-backed media for every row. Passed is only the behavioral result after those evidence conditions hold.
func RunChecklist ¶
func RunChecklist(ctx context.Context, config ChecklistConfig) (Checklist, error)
RunChecklist executes the canonical case/trial order. Behavioral and infrastructure failures are records, not early returns, so a bad first case cannot erase the other ten. Context cancellation and retention-plugin failure stop the run because continuing could not produce honest evidence.
type ChecklistConfig ¶
type ChecklistConfig struct {
Contract Contract
Profile launchprofile.Document
AdapterProfileFingerprint string
ExecutionRequirement bench.ExecutionRequirement
Repetitions int
RequireMedia bool
Executor AttemptExecutor
VerifyMedia MediaVerifier
SanitizeError ErrorSanitizer
Sink ChecklistSink
}
type ChecklistSink ¶
type ChecklistSink struct {
Attempt func(context.Context, AttemptRecord) error
Finalize func(context.Context, Checklist) error
}
ChecklistSink is a caller-selected retention plugin. Attempt is invoked after each independently fingerprinted record; Finalize receives the exact final checklist. Supplying only one callback is rejected before execution.
type Config ¶
type Config struct {
Launch graphlaunch.Config
Cases []string
}
Config contains an exact generic graph launch plus the scenario slab that launch must support. Cases empty means the complete reviewed suite.
There is no binding name, legacy implementation selector, or fallback in this surface. Artifacts, assembly contributions, adapter identity, and mount dependencies are checked by graph/launch after the scenario adapter guard has been installed.
type Contract ¶
type Contract struct {
FormatVersion uint64 `json:"format_version"`
Suite string `json:"suite"`
Cases []CaseRequirement `json:"cases"`
Operations []graphbinding.AdapterOperation `json:"operations"`
Capabilities StackRequirement `json:"capabilities"`
Fingerprint string `json:"fingerprint"`
}
Contract is the immutable aggregate for a selected scenario slab. An empty selection passed to BuildContract means the reviewed twelve-case suite.
func BuildContract ¶
BuildContract freezes the selected scenario composition contract. Names must be exact reviewed case names; whitespace normalization, duplicates, and unknown aliases fail closed instead of silently selecting a different slab.
func (Contract) Marshal ¶
Marshal emits deterministic, newline-terminated JSON suitable for a preregistered launch artifact.
func (Contract) Validate ¶
Validate proves that a contract is exactly the canonical contract derivable from the repository-owned suite and that its fingerprint is current.
func (Contract) ValidateProfile ¶
func (contract Contract) ValidateProfile(profile graphbinding.SessionAdapterProfile, graph ir.Graph) error
ValidateProfile proves that one frozen adapter can carry this scenario slab over the exact selected Graph IR. It establishes launch compatibility only; live benchmark results remain required for behavioral or latency claims.
type ErrorSanitizer ¶
ErrorSanitizer may retain a bounded, redacted detail for infrastructure diagnosis. With no sanitizer, stable failure codes are retained without copying provider or transport errors into the checklist.
type LaunchProfileConfig ¶
type LaunchProfileConfig struct {
Name string
Revision uint64
Contract Contract
Application launchprofile.Registration
Configuration json.RawMessage
Server launchprofile.Server
}
LaunchProfileConfig freezes a generic graph/server profile for one exact scenario contract. Configuration must be produced by FreezeApplicationConfiguration for Application.
Every executable identity is caller supplied and subsequently exact-matched by graph/launch/profile and server.NewProfileGraphBundle. The plan and adapter identities are derived from the selected application's real resource-free launch config; this helper never invents runtime digests.
type LiveExecutorConfig ¶
type LiveExecutorConfig struct {
// Contract fixes the selected case population and its attempt ordinals.
// Nil preserves the complete-suite default for existing callers.
Contract *Contract
Voice scenario.Voice
Session bench.SessionConfig
Retain AttemptRetainer
// EvidenceContext is owned by the complete checklist run rather than one
// attempt. A timed-out attempt may therefore finish retaining bytes that
// SessionConfig already captured, while cancellation of the whole run still
// stops filesystem or provider-side evidence work.
EvidenceContext context.Context
// EvidenceTimeout bounds one retention call independently of the live
// attempt deadline. It is deployment policy, not a behavioral timeout.
EvidenceTimeout time.Duration
}
LiveExecutorConfig composes the existing scenario harness with an ordinary Realtime endpoint, exact runtime attestor, and evidence-retention plug-in. Voice and Retain are host-selected plug-ins; this package opens no speech, storage, provider, server, presentation, or credential resource itself.
type MediaReference ¶
type MediaReference struct {
Handle string `json:"handle"`
ManifestSHA256 string `json:"manifest_sha256"`
Submitted []SubmittedInputReceipt `json:"submitted_inputs,omitempty"`
}
MediaReference is an opaque verifier-owned handle plus the externally retained completion digest. The checklist never opens a directory or assumes a media implementation.
type MediaVerifier ¶
type MediaVerifier func( context.Context, AttemptKey, CaseRequirement, MediaReference, ) (VerifiedMedia, error)
type Result ¶
type Result struct {
Contract Contract
Plan *graphconfig.Plan
Binding *graphbinding.NativeBinding
}
Result is the prepared graph-native provider plus the immutable scenario contract it was checked against. Binding implements server.SessionProvider and can be passed directly to the composable server bundle.
type Seam ¶
type Seam string
Seam names one stable external session composition seam. Seams describe protocol-to-graph wiring only. The scenario checks remain the authority for whether a graph actually waits, interrupts, distinguishes speakers, uses a deadline, or says the right thing.
type SourceAttempt ¶
type SourceAttempt struct {
Record AttemptRecord `json:"record"`
Result SourceFile `json:"result"`
MediaManifest SourceFile `json:"media_manifest"`
Audio SourceFile `json:"audio"`
Submitted []SourceSubmittedInput `json:"submitted_inputs,omitempty"`
}
SourceAttempt cross-binds the deterministic checklist row to the exact result, media manifest, stereo recording, and submitted visual inputs. Diagnostic attempts may have a nil checklist Media receipt, but their retained files still remain attributable and cannot become reportable.
type SourceBundle ¶
type SourceBundle struct {
Manifest SourceManifest
Checklist Checklist
ArchitectureResult archbench.Result
Receipt SourceReceipt
}
func VerifyScoredSourceBundle ¶
func VerifyScoredSourceBundle(ctx context.Context, options SourceBundleOptions, expected SourceReceipt) (verified SourceBundle, resultErr error)
VerifyScoredSourceBundle adds current deterministic scorer replay to source integrity verification. Historical bundles without replay inputs remain readable through VerifySourceBundle but cannot satisfy this acceptance gate. Recognizer text is treated as a retained external observation bound to its exact PCM window; this does not independently establish ASR accuracy.
func VerifySourceBundle ¶
func VerifySourceBundle( ctx context.Context, options SourceBundleOptions, expected SourceReceipt, ) (bundle SourceBundle, resultErr error)
VerifySourceBundle reopens a committed source tree and requires the exact portable receipt retained outside it.
type SourceBundleOptions ¶
type SourceFile ¶
type SourceFile struct {
Path string `json:"path"`
Purpose string `json:"purpose"`
SHA256 string `json:"sha256"`
SizeBytes int64 `json:"size_bytes"`
}
SourceFile is one exact regular file below the source root. Purpose is semantic and stable; Path is always a flat root-relative name.
type SourceManifest ¶
type SourceManifest struct {
Format string `json:"format"`
FormatVersion int `json:"format_version"`
Complete bool `json:"complete"`
Suite string `json:"suite"`
Cases int `json:"cases"`
Trials int `json:"trials"`
ExpectedAttempts int `json:"expected_attempts"`
Origin SourceOrigin `json:"origin"`
ChecklistFingerprint string `json:"checklist_fingerprint"`
Checklist SourceFile `json:"checklist"`
ArchitectureResult SourceFile `json:"architecture_result"`
ArchitectureReportable bool `json:"architecture_reportable"`
ArchitectureReportability string `json:"architecture_reportability,omitempty"`
Attempts []SourceAttempt `json:"attempts"`
FileSetSHA256 string `json:"file_set_sha256"`
Files []SourceFile `json:"files"`
}
SourceManifest is published last inside the source root. Files names the complete pre-manifest tree, so an added, removed, swapped, or hard-linked artifact invalidates verification.
type SourceOrigin ¶
type SourceOrigin struct {
Kind string `json:"kind"`
Transport string `json:"transport"`
EndpointSHA256 string `json:"endpoint_sha256"`
}
SourceOrigin distinguishes a live endpoint run from a hermetic fixture. EndpointSHA256 binds the normalized endpoint without retaining credentials, query parameters, or a deployment hostname in the portable evidence index.
func (SourceOrigin) Validate ¶
func (origin SourceOrigin) Validate() error
type SourcePublication ¶
type SourcePublication struct {
SourceBundleOptions
ReceiptPath string
Origin SourceOrigin
Checklist Checklist
ArchitectureResult json.RawMessage
Attempts []SourceAttempt
}
type SourceReceipt ¶
type SourceReceipt 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"`
ChecklistSHA256 string `json:"checklist_sha256"`
ArchitectureSHA256 string `json:"architecture_sha256"`
ReceiptSHA256 string `json:"receipt_sha256"`
}
SourceReceipt is portable: ReceiptSHA256 excludes Directory. A caller must retain it outside the mutable source root and supply it to VerifySourceBundle.
func PublishSourceBundle ¶
func PublishSourceBundle( ctx context.Context, publication SourcePublication, ) (receipt SourceReceipt, resultErr error)
PublishSourceBundle writes the final architecture result, snapshots the exact existing evidence tree, publishes SourceManifestName last, reopens it against the expected receipt, then writes the caller-owned external receipt create-only. Existing paths are never replaced.
func ReadSourceReceipt ¶
func ReadSourceReceipt(path string) (SourceReceipt, error)
type SourceReviewArchitecture ¶
type SourceReviewArchitecture struct {
ResultVersion int `json:"result_version"`
Experiment string `json:"experiment"`
ManifestID string `json:"manifest_id"`
FixtureRevision string `json:"fixture_revision"`
Cell archbench.Cell `json:"cell"`
Provenance bench.Provenance `json:"provenance"`
Task bench.TaskOutcome `json:"task"`
Observation *archbench.Observation `json:"observation,omitempty"`
}
SourceReviewArchitecture is the attempt-local projection of the exact final architecture result. It deliberately excludes unrelated task records while retaining the authored cell, run provenance, deterministic task row, and matching live observation.
type SourceReviewContext ¶
type SourceReviewContext struct {
Format string `json:"format"`
FormatVersion int `json:"format_version"`
DeterministicAuthority string `json:"deterministic_authority"`
SourceReceiptSHA256 string `json:"source_receipt_sha256"`
SourceManifestSHA256 string `json:"source_manifest_sha256"`
SourceFileSetSHA256 string `json:"source_file_set_sha256"`
ChecklistFingerprint string `json:"checklist_fingerprint"`
MediaDurationMS int64 `json:"media_duration_ms"`
Attempt AttemptRecord `json:"attempt"`
Result scenario.Result `json:"deterministic_result"`
Architecture SourceReviewArchitecture `json:"architecture"`
}
SourceReviewContext is the public, self-contained context sent to an offline secondary reviewer. DeterministicAuthority is a fixed statement of precedence: no model assessment can rewrite Result or Attempt.
type SourceReviewPopulation ¶
type SourceReviewPopulation struct {
Bundle SourceBundle
Requests []review.Request
}
SourceReviewPopulation is one receipt-verified source snapshot and the exact provider-neutral requests derived from it. Returning both avoids an orchestration layer performing a redundant full source verification merely to recover checklist and manifest metadata already authenticated here.
func BuildSourceReviewPopulation ¶
func BuildSourceReviewPopulation( ctx context.Context, options SourceBundleOptions, expected SourceReceipt, ) (population SourceReviewPopulation, resultErr error)
BuildSourceReviewPopulation verifies the externally anchored source before and after deriving every request, and returns the verified bundle metadata from that same operation. It performs no provider, credential, or network work.
type SourceSubmittedInput ¶
type SourceSubmittedInput struct {
Receipt SubmittedInputReceipt `json:"receipt"`
File SourceFile `json:"file"`
}
type StackRequirement ¶
type StackRequirement struct {
AudioInput bool `json:"audio_input"`
AudioOutput bool `json:"audio_output"`
VisualInput bool `json:"visual_input,omitempty"`
Transcription bool `json:"transcription"`
TurnGeneration bool `json:"turn_generation"`
ConcurrentIO bool `json:"concurrent_io,omitempty"`
TextInjection bool `json:"text_injection,omitempty"`
}
StackRequirement is the graph adapter's minimum executable capability projection. These fields deliberately mirror only stable, inspectable binding capabilities. Interaction-policy behavior is established by live scenario results, never inferred from this declaration.
type SubmittedInputCapture ¶
type SubmittedInputCapture struct {
Receipt SubmittedInputReceipt
Data []byte
}
SubmittedInputCapture binds one receipt to the immutable bytes submitted in the corresponding successful scheduled Realtime event. Data is owned by the selected retention plug-in; it is deliberately separate from checklist JSON.
type SubmittedInputReceipt ¶
type SubmittedInputReceipt struct {
SightID string `json:"sight_id"`
CueMS int `json:"cue_ms"`
SHA256 string `json:"sha256"`
SizeBytes int64 `json:"size_bytes"`
MediaType string `json:"media_type"`
}
SubmittedInputReceipt identifies bytes actually submitted by the harness. The verifier, not this package, establishes the digest from retained bytes. SightID and CueMS bind the receipt to the authored scenario timeline.
type VerifiedMedia ¶
type VerifiedMedia struct {
Handle string `json:"handle"`
ManifestSHA256 string `json:"manifest_sha256"`
Audio bool `json:"audio"`
VideoSources []string `json:"video_sources,omitempty"`
Submitted []SubmittedInputReceipt `json:"submitted_inputs,omitempty"`
}
VerifiedMedia is the bounded projection returned by the selected media verifier after it has independently checked the referenced bundle. Audio and submitted stills remain separate: a still-image message is not silently reclassified as a continuous video source.