Sweep Configuration Providers
<!—
Generated from aisimulate/docs/sweeper/sweep-config-provider.md by docs/fern/scripts/sync_aisimulate_docs.py.
Edit the canonical source instead of this Fern copy.
—>
A SweepConfigProvider lets an optional feature package contribute search dimensions without
making aisimulate depend on that package.
Contract
generate_search_space receives the complete adapter-owned search-space mapping plus an isolated
SweepContext. It may validate composite settings, derive dimensions, and store JSON-compatible
state in AdapterSearchPlan.
materialize_replay receives that plan, one concrete local selection, and an isolated
CandidateContext. It returns the concrete adapter config and any versioned RuntimeHookSpec
objects needed by replay.
Registration
Expose a zero-argument factory from the aisimulate.sweep_config_providers entry-point group:
The factory and provider implementation are imported only when configuration selects
adapters.example.policy. Direct constructor injection takes precedence over installed entry
points.
ABI Rules
namemust equal the configured adapter key.api_versionmust match the core provider API version.- Plans, concrete config, diagnostics, state, and runtime-hook config must be strict JSON values.
- A provider must not mutate
SweepContext,CandidateContext, or previously returned values. - Runtime hooks must be declared during search preparation so runner compatibility can be checked before runner creation.
- Providers run in the main process. Spawned replay workers receive
ReplaySpecvalues only.