Compose participant requests¶
Use trusted experiment entry assembly with reviewed models, roles, and versioned prompt assets. The manifest reference defines targets, scope, controls, and evidence limits. This procedure does not authorize a provider connection.
Publish the trusted owner¶
- Validate the reviewed catalog through
RequestCatalog.model_validate_json(). - Resolve admitted control-context descriptors through the existing artifact owner.
- Create exact asset pins with
control_context_asset_reference(). - Map each slot to its admitted SDL declaration references and pins.
- Construct
ParticipantRequestOwnerwith the catalog, domains, and admitted scenario:
from aptl.core.participant_requests import ParticipantRequestOwner, RequestCatalog
from raes_contracts.contracts import ParticipantImplementationManifestModel
catalog = RequestCatalog.model_validate_json(reviewed_catalog_bytes)
owner = ParticipantRequestOwner(
catalog=catalog,
context_domains=consumer_context_domains,
scenario=admitted_scenario,
)
manifest = owner.manifest
manifest_schema = ParticipantImplementationManifestModel.model_json_schema()
registry = manifest.configuration_registry
validators = {
(registry.owner.validator_id, registry.owner.validator_version): owner,
}
- Pass the owner/version map to the public trial compiler as
participant_configuration_validators. - For a fixed selection, call
realize_participant_configuration()withvalidator=owner. - For the older controller, give a
ParticipantManifestBindingwith its trusted validator.
Do not discover executable validators from authored artifact names.
Verify content and dispatch¶
- Get the participant's sealed configuration result.
- Resolve approved content bytes through the existing contained artifact resolver.
- Call
owner.verify_content()with the result, expected participant address, and bytes keyed by slot. - Keep required separators in the pinned authored content.
- Create the immutable native request with
prepare_request(). - Pass it through
DecisionAgentLaunch.requestorOpenCodeOptions.request. - Pass
ParticipantRequestBinding(owner, expected_participant_address)independently through trusted assembly. - Give the admitted invocation timeout and required evidence sink before participant preparation.
- Before you acquire credential leases, configure the existing cancellation-and-drain callback.
- Keep typed invocation evidence through the existing evidence owner.
Do not substitute a peer participant's configuration, even when its prompt bytes match. Before you make a capture claim, examine unavailable observation fields. Use managed OpenCode configuration for that installed implementation.