pub struct ExecutionFeatureDecisions {
pub agent_delegation: bool,
pub internal: InternalFeatureFlags,
}Expand description
Resolved deployment-level execution feature decisions (EVE-878).
This is the snapshot the capability registry builders consult when composing built-ins: internal infrastructure gates plus the few experimental product gates that decide whether a capability is registered at all. It is computed once from env vars and the deployment grade — it never reads org feature-management records. Per-org effective decisions are resolved by the platform/server before execution and applied by filtering the capability list handed to the worker.
Fields§
§agent_delegation: boolOutbound agent delegation capabilities (a2a_agent_delegation,
agent_handoff). Experimental: auto-enabled in dev, off in prod by
default. When off, the capabilities are not registered at all.
internal: InternalFeatureFlagsBackend-only infrastructure gates.
Implementations§
Source§impl ExecutionFeatureDecisions
impl ExecutionFeatureDecisions
Sourcepub fn from_env(grade: DeploymentGrade) -> Self
pub fn from_env(grade: DeploymentGrade) -> Self
Resolve the deployment-level decisions from env vars and the grade.
Sourcepub fn is_enabled(&self, flag: &str) -> bool
pub fn is_enabled(&self, flag: &str) -> bool
Whether a registration-time feature gate is enabled.
Internal infrastructure flags win; any other name resolves via the
standard FEATURE_<NAME> env rule: enabled only by an explicit env
var, never by the grade’s experimental default. Registration gates
control real side effects (e.g. the machine_payments gate on the
payments capability, where spend is irreversible), so an unknown gate
must fail closed even in dev — the pre-EVE-878 flag catalog classified
machine_payments as standard/off, and this preserves that. Used by
IntegrationPlugin::feature_flag gating.
Trait Implementations§
Source§impl Clone for ExecutionFeatureDecisions
impl Clone for ExecutionFeatureDecisions
Source§fn clone(&self) -> ExecutionFeatureDecisions
fn clone(&self) -> ExecutionFeatureDecisions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more