Skip to main content

Module task

Module task 

Source
Available on crate feature std only.
Expand description

Minimal task environment: nonstationary 2-armed bandit and L2/closed-loop benchmarks. External reward is written back into strategy memory so the task loop is closed.

Structs§

BanditReport
Report of bandit.
ClosedLoopComparisonReport
Report comparing no-adaptation, L1-only, and L1+L2 guarded closed loops.
ClosedLoopComparisonRow
Per-arm metrics from the closed-loop multi-parameter comparison benchmark.
CorrelationDiagnostic
Data structure representing correlation diagnostic.
FactorialBenchmarkReport
Report of factorial benchmark.
FactorialEffect
Data structure representing factorial effect.
FactorialRun
Data structure representing factorial run.
L2BenchmarkAggregate
Data structure representing L2 benchmark aggregate.
L2BenchmarkReport
Report of L2 benchmark.
L2DiagnosticSample
Data structure representing L2 diagnostic sample.
L2ExperimentSettings
Data structure representing L2 experiment settings.
L2ExpertMetrics
Data structure representing L2 expert metrics.
L2GainAssessment
Data structure representing L2 gain assessment.
L2GainMatrixReport
Report of L2 gain matrix.
L2GainScenarioAssessment
Data structure representing L2 gain scenario assessment.
L2PairedRun
Data structure representing L2 paired run.
L2PipelineDiagnostics
Data structure representing L2 pipeline diagnostics.
L2SignalDiagnostics
Data structure representing L2 signal diagnostics.
PairedMeanDifference
Data structure representing paired mean difference.

Enums§

FactorialArm
Identifies a supported factorial arm.
L2GainSeedSet
Identifies a supported L2 gain seed set.

Constants§

L2_GAIN_DEFAULT_EPISODES
Constant defining L2 gain default episodes.
L2_GAIN_DEFAULT_RUNS
Constant defining L2 gain default runs.
L2_GAIN_DEFAULT_STEPS
Constant defining L2 gain default steps.
L2_GAIN_DISCOVERY_SEED
Constant defining L2 gain discovery seed.
L2_GAIN_SCENARIOS
Constant defining L2 gain scenarios.
L2_GAIN_VALIDATION_SEED
Constant defining L2 gain validation seed.

Functions§

run_bandit_task
Runs run bandit task and returns its result.
run_bandit_task_seeded
Runs run bandit task seeded and returns its result.
run_closed_loop_comparison_benchmark
Runs a true closed-loop multi-parameter comparison where directives feed back into the simulated service environment across steady, drift, and noisy phases.
run_l1_l2_factorial_benchmark
Run a 2x2 factorial comparison of independent L1/L2 intervention gates. Arm order is L0, L1-only, L2-only, and L1+L2. Each position in a seeded environment consumes one random number, providing common random numbers across arms without changing the existing task environment.
run_l2_benchmark
Compare identical seeded bandit runs with L2 interventions disabled/enabled. The benchmark is deterministic and reports deltas rather than treating a single successful run as evidence of improvement.
run_l2_benchmark_scenario
Run the paired L2 benchmark under a named deterministic environment.
run_l2_benchmark_scenario_with_gate
Runs run L2 benchmark scenario with gate and returns its result.
run_l2_gain_matrix
Execute the preregistered discovery/validation L2-only gain matrix. The factorial reports retain L1 and interaction diagnostics, but only L2-L0 participates in the gain verdict. No controller setting is tuned here.