Documentation
¶
Overview ¶
Package architecture owns the versioned structural definitions OpenRealtime can realise.
An architecture is not a model family and it is not a launch script. It is an immutable selection of subsystem owners, required capabilities, and an interaction boundary. A concrete deployment supplies model endpoints and credentials; a binding supplies the adapter machinery. Keeping those three concepts separate lets the same foreground participate in several evolving architectures without either renaming the model or adding another runtime.
Index ¶
- Constants
- func Bind(definition Definition, inner binding.Binding) (binding.Binding, error)
- type ActHandoff
- type Catalog
- type Definition
- func (definition Definition) Fingerprint() string
- func (definition Definition) Identity() binding.ArchitectureIdentity
- func (definition Definition) Ref() Ref
- func (definition Definition) Topology() (Topology, error)
- func (definition Definition) Validate() error
- func (definition Definition) ValidateRuntime(ownership binding.Ownership, capabilities binding.StackCapabilities) error
- func (definition Definition) ValidateStatus(status binding.Status) error
- type EvidenceSource
- type InteractionBoundary
- type InteractionMode
- type Ref
- type Stage
- type Topology
Constants ¶
const CatalogVersion = 1
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActHandoff ¶
type ActHandoff string
ActHandoff says how a selected act reaches the foreground.
const ( HandoffNone ActHandoff = "none" HandoffDirect ActHandoff = "direct" HandoffTyped ActHandoff = "typed" )
type Catalog ¶
type Catalog struct {
Version int `json:"version"`
Architectures []Definition `json:"architectures"`
}
Catalog is the complete immutable architecture graph known to a deployment.
func (Catalog) Fingerprint ¶
Fingerprint identifies the whole catalog snapshot.
func (Catalog) LookupIdentity ¶
func (catalog Catalog) LookupIdentity(identity binding.ArchitectureIdentity) (Definition, error)
LookupIdentity resolves and verifies an attested architecture identity.
func (Catalog) Resolve ¶
func (catalog Catalog) Resolve(value string) (Definition, error)
Resolve looks up one exact id@revision.
func (Catalog) Sorted ¶
func (catalog Catalog) Sorted() []Definition
Sorted returns definitions in stable family/id/revision order.
type Definition ¶
type Definition struct {
ID string `json:"id"`
Revision int `json:"revision"`
Family string `json:"family"`
Stage Stage `json:"stage"`
DerivedFrom []Ref `json:"derived_from,omitempty"`
Summary string `json:"summary"`
Change string `json:"change"`
Ownership binding.Ownership `json:"ownership"`
Requires binding.StackCapabilities `json:"requires"`
Interaction InteractionBoundary `json:"interaction"`
}
Definition is an immutable architecture revision.
func (Definition) Fingerprint ¶
func (definition Definition) Fingerprint() string
Fingerprint protects immutable revisions from in-place catalog edits.
func (Definition) Identity ¶
func (definition Definition) Identity() binding.ArchitectureIdentity
Identity is the runtime-safe reference to this exact definition.
func (Definition) Ref ¶
func (definition Definition) Ref() Ref
func (Definition) Topology ¶
func (definition Definition) Topology() (Topology, error)
Topology derives which existing binding machinery can realise a definition.
func (Definition) Validate ¶
func (definition Definition) Validate() error
Validate checks one complete definition independently of its catalog lineage.
func (Definition) ValidateRuntime ¶
func (definition Definition) ValidateRuntime(ownership binding.Ownership, capabilities binding.StackCapabilities) error
ValidateRuntime proves that a concrete composition can realise this definition. Extra capabilities remain visible and are explicitly allowed.
func (Definition) ValidateStatus ¶
func (definition Definition) ValidateStatus(status binding.Status) error
ValidateStatus checks the complete live structural boundary after provider negotiation. This is stronger than validating launch flags: sidecar capabilities and the accepted act protocol exist only after the handshake.
type EvidenceSource ¶
type EvidenceSource string
EvidenceSource names the representation available to the interaction owner.
const ( EvidenceAcousticPredicates EvidenceSource = "acoustic-predicates" EvidenceTranscript EvidenceSource = "transcript" EvidenceNativeMultimodal EvidenceSource = "native-multimodal" EvidenceRemoteMultimodal EvidenceSource = "remote-multimodal" )
type InteractionBoundary ¶
type InteractionBoundary struct {
Mode InteractionMode `json:"mode"`
Evidence EvidenceSource `json:"evidence"`
// EvidenceCapabilities is the exact selected input vector, rather than a
// lower bound on what a model might be capable of seeing. A runtime with an
// extra selected channel is a different architecture: direct vision, for
// example, must never hide behind the same "transcript" label.
//
// The pointer is intentional. Revisions created before evidence vectors
// existed retain nil and therefore retain their canonical fingerprints.
// New revisions must set it and are eligible for evidence-controlled
// experiments; legacy revisions remain runnable and inspectable but coarse.
EvidenceCapabilities *binding.InteractionEvidenceCapabilities `json:"evidence_capabilities,omitempty"`
Transport string `json:"transport"`
ProtocolVersion int `json:"protocol_version,omitempty"`
Handoff ActHandoff `json:"handoff"`
NativeSuppression string `json:"native_suppression,omitempty"`
// Control is the exact selected-controller vector and arbitration rule.
// It is optional only for immutable revisions authored before controller
// composition was attested. New revisions set it so one architecture cannot
// silently alternate between a predicate floor and a learned act floor.
Control *binding.InteractionControl `json:"control,omitempty"`
}
InteractionBoundary is the complete structural control seam. Policy model, recognizer, and timeout identities belong to a deployment/experiment cell.
func (InteractionBoundary) UsesTextPolicy ¶
func (boundary InteractionBoundary) UsesTextPolicy() bool
UsesTextPolicy reports whether the selected control composition contains an external text policy. Legacy revisions fall back to their coarse mode.
type InteractionMode ¶
type InteractionMode string
InteractionMode selects where conversational acts are chosen.
const ( InteractionPredicates InteractionMode = "predicates" InteractionTextPolicy InteractionMode = "text-policy" InteractionComposed InteractionMode = "composed-policy" InteractionNative InteractionMode = "native" InteractionRemote InteractionMode = "remote" )
type Ref ¶
Ref is an exact architecture revision. There is intentionally no mutable "latest" reference in a runtime or benchmark artifact.
type Stage ¶
type Stage string
Stage says how much operational confidence a definition carries. It is not a performance ranking.