Skip to main content

CORE_OP_PARAMS

Constant CORE_OP_PARAMS 

Source
pub const CORE_OP_PARAMS: &[&str];
Expand description

Closed vocabulary of op-template params: keys the runtime itself consumes (validation, batching, polling, op weighting, adapter selection). Joined at validation time with [crate::runner::KNOWN_PARAMS] (workload/CLI-level keys that get blast-merged into every op’s params during parse) and the adapter’s crate::adapter::DriverAdapter::known_op_params declarations to form the full allow-list. Unknown keys are rejected at op setup time so silent-ignore traps like evaluations: { relevancy: ... } (a wrapper key the runtime never reads) cannot hide a misconfigured op. Core op-template params consumed directly by the runtime or the adapter layer that are NOT owned by any wrapper. Wrapper fields (verify, poll, memo, readout, errors, tries, while, rate, fields, …) are deliberately absent: the op closed-vocabulary guard accepts them via crate::wrapper_registry::WrapperRegistry::owns_field, which derives the wrapper vocabulary structurally from each wrapper’s owned_fields declaration. Keeping them out of this list is the point — one source of truth per field, so adding a wrapper never requires editing here. The drift-guard test core_op_params_disjoint_from_owned_fields fails if a wrapper field creeps back in.