mechaharness.core.environment
Optional host probe for the active inference environment.
Hosts (for example junespark) implement this to refuse runs that need capabilities the loaded profile does not provide. The library default is a no-op so CLI/mock paths stay unchanged.
Lanes are open str identity (reason, judge, media, or a host
namespace). Unknown lanes round-trip; hosts supply load hints.
- class mechaharness.core.environment.InferenceEnvironment[source]
Bases:
ABCDescribe what the current backend / host profile can do.
- abstractmethod active_capabilities() CapabilityProfile[source]
Capability set of the loaded environment.
- active_lane() str | None[source]
Capability lane derived from the active profile, or None if unknown.
Well-known values:
reason,judge,media. Hosts may return other namespaced lanes.
- exception mechaharness.core.environment.InferenceEnvironmentError[source]
Bases:
MechaHarnessErrorRequested work does not match the active inference environment.
- class mechaharness.core.environment.NoOpInferenceEnvironment[source]
Bases:
InferenceEnvironmentAlways compatible; used when no host probe is configured.
- active_capabilities() CapabilityProfile[source]
Capability set of the loaded environment.