Skip to main content

EditionDefaults

Struct EditionDefaults 

Source
pub struct EditionDefaults {
    pub default_max_episode_steps: i64,
    pub trial_index_option_key: &'static str,
    pub driver_owned_reset_modes: &'static [AutoresetMode],
    pub success_info_keys: &'static [&'static str],
    pub conformance_warning_info_key: &'static str,
}
Expand description

The edition-governed defaults one Edition promises: the values a participant would otherwise hardcode, lifted here so a future default change is a new row rather than an edit to a code path a sealed edition already depends on. One row per arm, returned by defaults; a sealed row is never edited.

Fields§

§default_max_episode_steps: i64

Per-episode step bound applied when the session sets no explicit max_episode_steps and the runtime owns resets, so a broken termination condition surfaces as a truncation instead of hanging the run.

Not named in the prose of docs/editions/2026.06.md, but observable in the episode ledger the edition’s “Episode Accounting” section governs (“When a sub-environment reports terminated or truncated, its episode completes”), and pinned by the 05-default-truncation-bound fingerprint.

Mirrored by _MAX_STEPS_PER_EPISODE in python/rlmesh/src/rlmesh/_models/_eval.py, which bounds the Python Session loop identically. The two loops must agree, so an edition that changes this row changes that constant in the same commit.

§trial_index_option_key: &'static str

The single reserved ResetRequest.options key this edition defines.

docs/editions/2026.06.md, Reset: “This edition reserves exactly one, trial_index: the 0-based ordinal of the episode being started, an integer for a single lane or a per-lane list aligned to the lanes being reset.”

§driver_owned_reset_modes: &'static [AutoresetMode]

The autoreset modes under which the RUNTIME owns lane restarts (it issues the Resets), as opposed to the env rolling its own lanes.

docs/editions/2026.06.md, Episode Accounting: “AUTORESET_MODE_DISABLED: only an explicit Reset restarts a lane.” and “AUTORESET_MODE_UNSPECIFIED: treated as DISABLED.”

§success_info_keys: &'static [&'static str]

The final_info keys this edition reads an episode’s task outcome from, in priority order: the first key present decides, and a numeric value coerces by truthiness (1/1.0 → true).

Which keys count is an edition-governed promise — an env that reports its outcome under one of these names has it surface on the episode summary and the EpisodeCompleted event; one that uses any other name does not. Gymnasium’s is_success leads; success and task_success follow as the two spellings the ecosystem also ships.

The Python Session loop reads the outcome from the same info with bool(info[key]) (_success_from_info in python/rlmesh/src/rlmesh/_models/_eval.py); an edition that changes this row revisits that sweep in the same commit.

§conformance_warning_info_key: &'static str

The reserved info-map key a served env reports value-conformance warnings under.

docs/editions/2026.06.md, Value Conformance: “A conformance warning is reported in-band under the reserved rlmesh.conformance.warning key in the info map returned by reset and step, at most once per (deviation kind, value path) per session.”

Trait Implementations§

Source§

impl Clone for EditionDefaults

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for EditionDefaults

Source§

impl Debug for EditionDefaults

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for EditionDefaults

Source§

impl PartialEq for EditionDefaults

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for EditionDefaults

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more