Documentation
¶
Index ¶
- Constants
- func DefaultNativeEndpointDirectory(distribution NativeDistribution) (presentation.EndpointDirectory, error)
- func DigestSignedProcessIdentity(identity SignedProcessIdentity) (string, error)
- func MarshalSignedCompanionReceipt(receipt SignedCompanionReceipt) ([]byte, string, error)
- func MarshalSignedCompanionRunnerContract(contract SignedCompanionRunnerContract) ([]byte, string, error)
- func WriteSignedCompanionRunnerContract(path string, contract SignedCompanionRunnerContract) (string, error)
- func WriteVerifiedSignedCompanionContract(path string, payload []byte) error
- func WriteVerifiedSignedCompanionReceipt(path string, payload []byte) error
- type NativeBundle
- func NewNativeBundleForDistribution(distribution NativeDistribution) (*NativeBundle, error)
- func NewNativeBundleForDistributionWithEndpointDirectory(distribution NativeDistribution, directory presentation.EndpointDirectory) (*NativeBundle, error)
- func NewNativeEffectsDeveloperBundle() (*NativeBundle, error)
- func NewNativeEffectsDeveloperBundleWithEffectsCatalog(catalogDigest string) (*NativeBundle, error)
- func NewNativeEffectsDeveloperBundleWithEffectsCatalogAndEndpointDirectory(catalogDigest string, directory presentation.EndpointDirectory) (*NativeBundle, error)
- func NewNativeObserverDeveloperBundle() (*NativeBundle, error)
- type NativeDistribution
- type SignedAppIdentity
- type SignedClientExpectation
- type SignedCompanionCleanup
- type SignedCompanionReceipt
- type SignedCompanionReceiptExpectation
- type SignedCompanionRunnerContract
- type SignedContinuationAssertion
- type SignedInspectionAssertion
- type SignedMediaAssertion
- type SignedPermissionAssertion
- type SignedProcessIdentity
- type SignedRunnerIdentity
- type SignedServerEvidence
- type SignedServerExpectation
- type SignedSessionEvidence
- type SignedSessionPopulation
- type SignedToolAssertion
Constants ¶
const ( SignedCompanionReceiptFormatVersion uint64 = 1 SignedCompanionReceiptSchema = "openrealtime/macos/signed-companion-e2e-receipt/v1" SignedCompanionRunnerContractSchema = "openrealtime/macos/signed-companion-e2e-runner-contract/v1" SignedCompanionReceiptMaximumBytes = 1 << 20 )
Variables ¶
This section is empty.
Functions ¶
func DefaultNativeEndpointDirectory ¶
func DefaultNativeEndpointDirectory(distribution NativeDistribution) (presentation.EndpointDirectory, error)
DefaultNativeEndpointDirectory declares the presentation-host routes used by the bundled app. Browser and native clients can connect to the same unchanged listener because these are public wire endpoints, not in-process server bindings.
func DigestSignedProcessIdentity ¶
func DigestSignedProcessIdentity(identity SignedProcessIdentity) (string, error)
func MarshalSignedCompanionReceipt ¶
func MarshalSignedCompanionReceipt(receipt SignedCompanionReceipt) ([]byte, string, error)
MarshalSignedCompanionReceipt returns the only accepted wire encoding: one compact JSON object followed by a newline. External runners can implement this schema in any language; the release gate independently reopens and verifies their create-only file.
func MarshalSignedCompanionRunnerContract ¶
func MarshalSignedCompanionRunnerContract( contract SignedCompanionRunnerContract, ) ([]byte, string, error)
func WriteSignedCompanionRunnerContract ¶
func WriteSignedCompanionRunnerContract( path string, contract SignedCompanionRunnerContract, ) (string, error)
WriteSignedCompanionRunnerContract publishes the independently generated invocation contract once. Its parent is a gate-owned private temporary directory, never a caller-provided receipt location.
func WriteVerifiedSignedCompanionContract ¶
WriteVerifiedSignedCompanionContract publishes the exact gate-generated invocation contract next to the independently verified runner receipt.
func WriteVerifiedSignedCompanionReceipt ¶
WriteVerifiedSignedCompanionReceipt publishes only the exact bytes already reopened and verified from the gate-owned runner receipt. Release artifacts therefore never use a caller-selected file as behavioral input.
Types ¶
type NativeBundle ¶
type NativeBundle struct {
Profile plugin.Profile
Lock plugin.Lock
Plan plugin.Plan
Manifest presentation.ClientManifest
EndpointDirectory presentation.EndpointDirectory
}
func NewNativeBundleForDistribution ¶
func NewNativeBundleForDistribution(distribution NativeDistribution) (*NativeBundle, error)
func NewNativeBundleForDistributionWithEndpointDirectory ¶
func NewNativeBundleForDistributionWithEndpointDirectory( distribution NativeDistribution, directory presentation.EndpointDirectory, ) (*NativeBundle, error)
NewNativeBundleForDistributionWithEndpointDirectory binds the exact public destinations selected by a deployment to an otherwise unchanged native provider composition. Endpoint presence grants no authority.
func NewNativeEffectsDeveloperBundle ¶
func NewNativeEffectsDeveloperBundle() (*NativeBundle, error)
func NewNativeEffectsDeveloperBundleWithEffectsCatalog ¶
func NewNativeEffectsDeveloperBundleWithEffectsCatalog(catalogDigest string) (*NativeBundle, error)
NewNativeEffectsDeveloperBundleWithEffectsCatalog selects an alternate, exact host effect catalog without changing the installed native provider graph. The digest is data-plane identity, never client authority.
func NewNativeEffectsDeveloperBundleWithEffectsCatalogAndEndpointDirectory ¶
func NewNativeEffectsDeveloperBundleWithEffectsCatalogAndEndpointDirectory( catalogDigest string, directory presentation.EndpointDirectory, ) (*NativeBundle, error)
NewNativeEffectsDeveloperBundleWithEffectsCatalogAndEndpointDirectory binds both replaceable host identities explicitly while preserving the selected provider graph and its permission ceilings.
func NewNativeObserverDeveloperBundle ¶
func NewNativeObserverDeveloperBundle() (*NativeBundle, error)
type NativeDistribution ¶
type NativeDistribution string
const ( // NativeEffectsDeveloperDistribution preserves the original shipped native // developer composition, including the explicitly pinned host-effects and // hosted-resource providers. NativeEffectsDeveloperDistribution NativeDistribution = "effects-developer" // NativeObserverDeveloperDistribution is the authority-free developer // client: it retains media, protocol diagnostics, and graph inspection but // has no effects/artifact providers, grants, or endpoint declaration. NativeObserverDeveloperDistribution NativeDistribution = "observer-developer" )
type SignedAppIdentity ¶
type SignedAppIdentity struct {
BundlePath string `json:"bundle_path"`
BundleDigest string `json:"bundle_digest"`
ExecutablePath string `json:"executable_path"`
ExecutableDigest string `json:"executable_digest"`
BundleIdentifier string `json:"bundle_identifier"`
SigningIdentifier string `json:"signing_identifier"`
TeamIdentifier string `json:"team_identifier"`
CDHash string `json:"cdhash"`
AuthorityChainDigest string `json:"authority_chain_digest"`
DesignatedRequirementDigest string `json:"designated_requirement_digest"`
}
SignedAppIdentity combines exact bundle and executable bytes with the independently observed code-directory identity. Digests use canonical lowercase sha256 values; CDHash retains the platform code-directory hash.
func (SignedAppIdentity) Validate ¶
func (identity SignedAppIdentity) Validate() error
type SignedClientExpectation ¶
type SignedClientExpectation struct {
Order uint64 `json:"order"`
Client string `json:"client"`
ClientProfile string `json:"client_profile"`
Transport string `json:"transport"`
ClientPlanFingerprint string `json:"client_plan_fingerprint"`
ClientManifestFingerprint string `json:"client_manifest_fingerprint"`
ClientImplementationDigest string `json:"client_implementation_digest"`
TransportImplementationDigest string `json:"transport_implementation_digest"`
AccessibilityRequired bool `json:"accessibility_required"`
}
type SignedCompanionCleanup ¶
type SignedCompanionCleanup struct {
BrowserExited bool `json:"browser_exited"`
NativeAppExited bool `json:"native_app_exited"`
PresentationExited bool `json:"presentation_exited"`
ServerExited bool `json:"server_exited"`
ListenersReleased bool `json:"listeners_released"`
EndpointFileRemoved bool `json:"endpoint_file_removed"`
MediaReleased bool `json:"media_released"`
EvidenceDigest string `json:"evidence_digest"`
}
func (SignedCompanionCleanup) Validate ¶
func (cleanup SignedCompanionCleanup) Validate() error
type SignedCompanionReceipt ¶
type SignedCompanionReceipt struct {
FormatVersion uint64 `json:"format_version"`
Schema string `json:"schema"`
InvocationNonce string `json:"invocation_nonce"`
ContractDigest string `json:"contract_digest"`
Runner SignedRunnerIdentity `json:"runner"`
App SignedAppIdentity `json:"app"`
Server SignedServerEvidence `json:"server"`
Sessions []SignedSessionEvidence `json:"sessions"`
Cleanup SignedCompanionCleanup `json:"cleanup"`
}
SignedCompanionReceipt is the create-only, machine-readable result required from the trusted Darwin runner. It binds the signed application and runner identities to two ordered clients traversing one unchanged server process. It is deliberately independent of every presentation view implementation.
func ParseSignedCompanionReceipt ¶
func ParseSignedCompanionReceipt( payload []byte, expected SignedCompanionReceiptExpectation, ) (SignedCompanionReceipt, string, error)
func ReadSignedCompanionReceipt ¶
func ReadSignedCompanionReceipt( path string, expected SignedCompanionReceiptExpectation, ) (SignedCompanionReceipt, string, error)
ReadSignedCompanionReceipt reopens an externally written receipt without following a final symlink and refuses replacement between path and handle checks. The caller must establish that path did not exist before launching the trusted runner.
func (SignedCompanionReceipt) Validate ¶
func (receipt SignedCompanionReceipt) Validate() error
type SignedCompanionReceiptExpectation ¶
type SignedCompanionReceiptExpectation struct {
InvocationNonce string
ContractDigest string
Runner SignedRunnerIdentity
App SignedAppIdentity
Server SignedServerExpectation
Clients []SignedClientExpectation
SensitiveValues []string
}
type SignedCompanionRunnerContract ¶
type SignedCompanionRunnerContract struct {
FormatVersion uint64 `json:"format_version"`
Schema string `json:"schema"`
InvocationNonce string `json:"invocation_nonce"`
Runner SignedRunnerIdentity `json:"runner"`
App SignedAppIdentity `json:"app"`
Server SignedServerExpectation `json:"server"`
Clients []SignedClientExpectation `json:"clients"`
}
func (SignedCompanionRunnerContract) Validate ¶
func (contract SignedCompanionRunnerContract) Validate() error
type SignedMediaAssertion ¶
type SignedMediaAssertion struct {
MicrophoneFramesIn uint64 `json:"microphone_frames_in"`
AssistantAudioFramesOut uint64 `json:"assistant_audio_frames_out"`
CameraFramesIn uint64 `json:"camera_frames_in"`
ScreenFramesIn uint64 `json:"screen_frames_in"`
EvidenceDigest string `json:"evidence_digest"`
}
type SignedPermissionAssertion ¶
type SignedPermissionAssertion struct {
MicrophoneGranted bool `json:"microphone_granted"`
CameraGranted bool `json:"camera_granted"`
ScreenRecordingGranted bool `json:"screen_recording_granted"`
AccessibilityRequired bool `json:"accessibility_required"`
AccessibilityGranted bool `json:"accessibility_granted"`
EvidenceDigest string `json:"evidence_digest"`
}
type SignedProcessIdentity ¶
type SignedProcessIdentity struct {
PID uint64 `json:"pid"`
StartIdentity string `json:"start_identity"`
ExecutablePath string `json:"executable_path"`
ExecutableDigest string `json:"executable_digest"`
}
func (SignedProcessIdentity) Validate ¶
func (identity SignedProcessIdentity) Validate() error
type SignedRunnerIdentity ¶
func (SignedRunnerIdentity) Validate ¶
func (identity SignedRunnerIdentity) Validate() error
type SignedServerEvidence ¶
type SignedServerEvidence struct {
RunIdentity string `json:"run_identity"`
GraphFingerprint string `json:"graph_fingerprint"`
ProfileFingerprint string `json:"profile_fingerprint"`
LaunchProfilePath string `json:"launch_profile_path"`
LaunchProfileDigest string `json:"launch_profile_digest"`
Process SignedProcessIdentity `json:"process"`
PopulationBefore SignedSessionPopulation `json:"population_before"`
PopulationAfter SignedSessionPopulation `json:"population_after"`
}
func (SignedServerEvidence) Validate ¶
func (evidence SignedServerEvidence) Validate() error
type SignedServerExpectation ¶
type SignedServerExpectation struct {
RunIdentity string `json:"run_identity"`
GraphFingerprint string `json:"graph_fingerprint"`
ProfileFingerprint string `json:"profile_fingerprint"`
ExecutablePath string `json:"executable_path"`
ExecutableDigest string `json:"executable_digest"`
LaunchProfilePath string `json:"launch_profile_path"`
LaunchProfileDigest string `json:"launch_profile_digest"`
}
SignedServerExpectation is selected by the Go release gate before the trusted runner starts. Dynamic process identifiers and session counts remain evidence, while executable, graph, profile, and run identities are inputs.
func (SignedServerExpectation) Validate ¶
func (expectation SignedServerExpectation) Validate() error
type SignedSessionEvidence ¶
type SignedSessionEvidence struct {
Order uint64 `json:"order"`
Client string `json:"client"`
SessionID string `json:"session_id"`
ClientProfile string `json:"client_profile"`
Transport string `json:"transport"`
ClientPlanFingerprint string `json:"client_plan_fingerprint"`
ClientManifestFingerprint string `json:"client_manifest_fingerprint"`
ClientImplementationDigest string `json:"client_implementation_digest"`
TransportImplementationDigest string `json:"transport_implementation_digest"`
ServerRunIdentity string `json:"server_run_identity"`
ServerGraphFingerprint string `json:"server_graph_fingerprint"`
ServerProfileFingerprint string `json:"server_profile_fingerprint"`
ServerProcessIdentityDigest string `json:"server_process_identity_digest"`
SessionEvidenceDigest string `json:"session_evidence_digest"`
Media SignedMediaAssertion `json:"media"`
Permissions SignedPermissionAssertion `json:"permissions"`
Continuation SignedContinuationAssertion `json:"continuation"`
Tool SignedToolAssertion `json:"tool"`
Inspection SignedInspectionAssertion `json:"inspection"`
Completed bool `json:"completed"`
}