Skip to main content

Module binding

Module binding 

Source
Expand description

Platform-neutral execution binding boundary.

Swarm owns request construction, requested/effective validation, and immutable Run snapshots. Execution environments implement AgentBindingProvider and report what they can actually enforce; an official platform adapter is one implementation of this same interface.

Structs§

ManifestBindingProvider
Reference provider backed by an execution-environment capability manifest.
UnboundAgent
One Runner-backed agent the provider could not attest, returned by attest_bound_agents in non-strict mode. Purely observational: the reason never enters the BoundAgent snapshot or its digest lineage — the agent stays DeclarationOnly and callers record the gap out of band (tracing warn + RunRecord.degradations).

Enums§

BindingProviderError
Failure reported by a provider or by Core’s receipt validation.
LegacyWorkerBindingPolicy
Migration policy for the deprecated AgentProfile.worker_binding Runner fallback. It applies only to fresh declaration resolution; persisted snapshots keep their pinned Runner and remain readable.

Traits§

AgentBindingProvider
Execution-environment provider for effective agent capabilities.

Functions§

attest_bound_agents
Ask provider to bind all Runner-backed agents, validate every returned receipt, and pin accepted attestations into the snapshots.
binding_request_for_snapshot
Reconstruct the platform-neutral request pinned by one immutable snapshot.
binding_requests
Build platform-neutral requests for every Runner-bound agent.
validate_bound_agent_snapshot
Validate one persisted BoundAgent before it is reused or explained.
validate_bound_agent_snapshots
Validate a complete persisted binding snapshot without partially accepting any entry.