VoltRL source and evidence handbook

Inspect the native equations, reproduce the examples, and separate software evidence from the synthetic teaching lessons.

Reviewed 2026-11-19 · Source 8058e89e4d35. This is a dated documentation snapshot.

Browse reference chapters

VoltRL source and evidence handbook

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

VoltRL compares finite-state battery-arbitrage policies. Start with the native MWh model when reproducing research; use the browser's USD/basis-point exercise to learn about separating an opportunity from its costs. The browser does not run the Python benchmark or load OPSD prices. voltrl.py:52–194 voltrl_benchmark.py:1666–1835 docs/index.html:296–299

This handbook reviews immutable source 8058e89e4d3516825a400fe86ac45d2e36b6bef0. It adds developer, scientific, maintainer and owner guidance. Existing result bundles, release metadata, original README, license and teaching pages retain their own provenance. The reading view is generated from these Markdown files and the existing citation file; maintenance instructions explain regeneration.

Choose a route

Four evidence boundaries

  1. Legacy demonstration: voltrl.py solves a discounted stationary MDP, defaulting to ideal efficiency and no aging; its automatic BIC-like selector remains legacy. It is useful for solver mechanics. voltrl.py:310–370 voltrl.py:1001–1203
  2. Current benchmark: voltrl_benchmark.py uses training-only expanding-window selection, finite-horizon policies, nonlinear aging and separate synthetic sequential and historical 24-hour block protocols. voltrl_benchmark.py:261–397 voltrl_benchmark.py:712–811
  3. Committed evidence: results_revision/ and results_revision2/ record older generating commits. A successful audit validates the applicable stored contracts; it does not regenerate those experiments. software_provenance.py:163–252 result_bundle_audit.py:75–162
  4. Teaching UI: the active browser mode is a synthetic spread screen. Its eight checkpoints test its declared arithmetic; they are independent of native policy performance. docs/index.html:159–166 docs/index.html:296–345

Local review executed 80 existing unit tests, both aggregate audits, the six-path guide validator, a 1,000-hour legacy smoke run, a 2,400-hour fixed-bin native example and the eight browser market checkpoints. These results are dated local evidence. Candidate GitHub checks, guarded merge and live deployment require later receipts.

Canonical file: docs/INDEX.md · Back to guide navigation

Architecture and information flow

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

The scientific engine is a collection of directly importable Python modules. There is no packaged service, training daemon, exchange connection, hardware interface, installed console entry point or database in this source tree. The Pages site is a separate static teaching and reading surface. voltrl.py:1–49 voltrl_benchmark.py:1–74 .github/workflows/deploy-dashboard.yml:1–82

Components and responsibilities

Component Inputs and responsibility Outputs / boundary
voltrl.py Battery grid/reward, price bins and transitions, stationary VI/PI, trajectory settlement, full-future oracle, synthetic generator, legacy CLI Arrays, trajectories, diagnostics, CSV/NPZ/PNG/JSON; no market execution
voltrl_benchmark.py Validate hourly frames; select bin count; fit price-only/hour-aware transitions and SARX; evaluate causal policies; build revision-2 tables and figures A reproducible benchmark directory with manifest; historical input must first match the provenance record
input_provenance.py Required local basename and raw SHA-256 Verified source identity before CSV parsing
experiment_contract.py Manifest settings and five core tables Configuration, seed/policy/fold/split coverage errors
synthetic_statistics_contract.py Seed rows and summaries Recomputed means, sample deviations, paired differences, annualization and interval sanity
historical_forecast_contract.py Forecast detail/summary and market table Timing, complete blocks, cross-method alignment and recomputed forecast errors
artifact_integrity.py / software_provenance.py Declared output files / recorded source files Canonical CSV and byte-exact figure integrity / historical Git-blob or working-file verification
result_bundle_audit.py One experiment manifest Readable or JSON aggregate with explicit passed, failed and skipped checks
docs/index.html Embedded lesson JSON and inline deterministic JavaScript Synthetic local teaching telemetry; no Python or OPSD execution

Module locators: voltrl.py:374–797 voltrl_benchmark.py:105–295 voltrl_benchmark.py:1666–1835 input_provenance.py:65–118 result_bundle_audit.py:75–162.

Decision-time data access

Stage Synthetic sequential benchmark Historical block pilot
Development First 70% of observations; three expanding folds select K using hour-aware continuous NLL First 70% of complete UTC days; fit SARX and training-hour seasonal means
Policy input Current realized price/bin, current SOC and known UTC hour; MPC has current and earlier prices Before each UTC day, use observations through the preceding delivery hour; construct 24 forecast prices
Decision Finite-horizon MDP action or the first action of a rolling forecast DP Solve a forecast-price DP once; freeze all 24 actions
Settlement Apply the action to the actual current price Apply the frozen schedule to the actual day's prices
Diagnostic Full future actual-price oracle with matching physical constraints and inventory valuation Same full-future oracle, explicitly unavailable to causal policies

voltrl_benchmark.py:127–155 voltrl_benchmark.py:453–469 voltrl_benchmark.py:591–811 voltrl.py:648–714

OPSD processing trims missing edges and interpolates internal gaps before the train/test split. This is disclosed offline data preparation. The recorded “information available through” time is a delivery timestamp; code does not map it to an exchange auction gate or publication latency. Forecast-causality tests establish code-level data dependence, not an operational market schedule. voltrl_benchmark.py:1083–1118 tests/test_voltrl_benchmark.py:79–122

State, memory and execution

The legacy dense MDP has S = (C/q + 1)K states, three actions and a transition tensor (S, 3, S). Price transitions are exogenous; feasible actions deterministically move SOC and distribute probability over the next price bin. Infeasible actions carry -inf reward and are masked. At default C=500, q=100 and K=4, S=24. voltrl.py:374–481

The benchmark stores (24,K,K) hour-aware transitions or (K,K) price-only transitions, and finite-horizon action decisions (H,N_soc,K) as int8. Backward recursion retains two-dimensional value slices. No continuous-state approximation, neural network or rainflow cycle counter is implemented. voltrl_benchmark.py:78–102 voltrl_benchmark.py:173–224 voltrl_benchmark.py:311–397

Artifact and publication flow

A new benchmark run verifies input bytes, captures provenance for voltrl.py, voltrl_benchmark.py and requirements.txt, writes tables/figures, then hashes declared outputs into the manifest. Audit the bundle independently before quoting it. Those three software hashes are narrower than a complete repository or environment attestation. voltrl_benchmark.py:1666–1835 software_provenance.py:14–20 software_provenance.py:89–130

The Pages workflow validates the static config and deploys the entire docs/ directory from main. The new reference page is derived from canonical Markdown. Existing lesson JSON, model JavaScript, historical visual assets and original result bundles remain unchanged. .github/workflows/deploy-dashboard.yml:26–82

Canonical file: docs/developer/ARCHITECTURE.md · Back to guide navigation

Setup and reproducibility

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

Use a full Git clone with Python 3.12 and the pinned requirements. Historical bundle audits read old Git objects; a ZIP or shallow clone can lack them even when all visible files are present. README.md:157–188 .github/workflows/python-validation.yml:37–60

Isolated checkout

git clone https://github.com/mohammadrezwankhan/voltrl.git
cd voltrl
git switch --detach 8058e89e4d3516825a400fe86ac45d2e36b6bef0
python3.12 -m venv .venv
. .venv/bin/activate
python -m pip install -r requirements.txt
python -m unittest discover -s tests -v
python result_bundle_audit.py results_revision/experiment_manifest.json --json
python result_bundle_audit.py results_revision2/experiment_manifest.json --json

On PowerShell activate with .venv\Scripts\Activate.ps1; use the README's PowerShell line continuations or keep commands on one line. No credentials or environment secret is required for native local calculations. Repository access and later publication authorization are separate.

Expected audit outcomes: revision 1 has four passing checks and one explicit historical-forecast skip; revision 2 has five passing checks. A skip is not a historical protocol test. The 2026-11-19 review observed these outcomes plus 80 passing tests on the pinned implementation. Its environment was Python 3.12.14/Linux with all eight exact requirements installed in an isolated venv inheriting system packages; that is not a minimal-environment certification. Toolchain details.

First native run without external data

python voltrl.py --help
python voltrl.py --synthetic-hours 1000 --seed 7 --bins 4 --output-dir ../voltrl-smoke

Use a new output directory: the CLI writes named files and can replace earlier files. This is the legacy stationary-MDP demonstration with ideal efficiency/no aging defaults, not the current revision-2 research specification. Expected split is 700/300 hours, six SOC levels and four price bins. See worked examples for the observed solver and accounting results. voltrl.py:1001–1168

Historical reproduction requires the exact external input

Download time_series_60min_singleindex.csv from the official OPSD 2020-10-06 package, save the bytes under the required local name below, and verify them. Do not edit the source record to make a different dataset pass.

python input_provenance.py data/opsd_time_series_60min_singleindex_2020-10-06.csv
python voltrl_benchmark.py --opsd-csv data/opsd_time_series_60min_singleindex_2020-10-06.csv --output-dir ../voltrl-reproduction --synthetic-seeds 30 --synthetic-hours 17520 --candidates 4,6,8,10,12,16,20,24,32,40,48
python result_bundle_audit.py ../voltrl-reproduction/experiment_manifest.json --source-root . --json

The expected raw SHA-256 is 6a7f2bc571314cbf9c321cc03437691cd4be95c3a6f075e60ff99e8035c704c8. Filename and digest are both enforced before data parsing. The original CSV is not in the pinned tree and was not downloaded in this documentation review; the full 30-seed/historical command above is source-supported guidance, not an executed reproduction claim. data/opsd_source.json:1–8 input_provenance.py:56–86 voltrl_benchmark.py:1666–1701

When auditing a fresh bundle outside the repository, --source-root . matters: the aggregate default is inferred from the manifest's parent directories. Never run any verifier's --write option to conceal a changed artifact. Those options record a new inventory/provenance snapshot and require deliberate review. result_bundle_audit.py:105–119 artifact_integrity.py:193–228 software_provenance.py:255–298

Static documentation and teaching pages

Open docs/index.html locally for the teaching lab. Serve the site at a local origin to inspect navigation consistently:

python -m http.server 8000 --directory docs

Open /reference/ for the handbook, /portfolio/ for six learning paths and /native-lessons.html for the preserved source catalog. Rendering the handbook requires Pandoc in addition to Python; runtime scientific requirements remain unchanged:

python docs/reference/build_reference.py
python docs/reference/build_reference.py --check
python scripts/portfolio/validate_guide.py

The static guide works without JavaScript. Native tests and the browser proxy are distinct checks; neither establishes a deployment receipt.

Canonical file: docs/developer/SETUP_AND_REPRODUCIBILITY.md · Back to guide navigation

API, CLI and data interfaces

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

Import the repository modules directly from the checkout. The source has no installed package or console-script manifest. The declaration catalog enumerates source-defined public names and signatures, including helper dataclasses and methods; it is a source snapshot, not a promise of backward compatibility. Python parameters without / or * are positional-or-keyword; a default makes a value optional, not keyword-only.

Native object contracts

Object / entry Contract
Action CHARGE=0, IDLE=1, DISCHARGE=2; use names rather than signed integers
BatterySpec(...) Frozen configuration; validates finite physical fields and grid divisibility; properties expose q and SOC levels
reward_components(price, action, soc_before_mwh=None) Returns (energy_cash_flow, degradation_cost, net_reward); nonlinear cost needs SOC; this method is not a complete frame/action validator
SolverConfig(...) Frozen discounted-solver settings; γ<1, positive tolerance and positive integer cap
PriceDiscretizer.fit(prices,K) / .transform(prices) Training quantile fit / integer labels; preserves training edges/representatives
BatteryArbitrageMDP.build(...) Dense joint SOC-price transition/reward/action mask; state_index and decode_state expose ordering
value_iteration / policy_iteration Return SolverResult: values, integer policy, iterations, convergence flag, run time and log DataFrame
fit_state_model(frame,K,calendar_aware) Returns StateModel with transition probabilities, count arrays and Gaussian emissions
finite_horizon_policy(...) Returns (H,N_soc,K) action array, with default discount 1 and terminal inventory value
trajectory_from_actions(...) Settles an already aligned chronological frame and one valid feasible action per row; rejects silent action reassignment
fit_seasonal_ar(...) / seasonal_ar_forecast(...) Training-fitted regression / recursive forecast from history through current_index; no future actual-price access
day_ahead_block_trajectory(...) Returns trajectory plus timestamped forecast-detail DataFrame for sarx, seasonal_mean or persistence
artifact_integrity.verify_artifact_manifest(...) Returns list[str] of artifact inventory, size and hash errors
software_provenance.verify_software_provenance(...) Returns list[str] of recorded source-provenance errors
experiment_contract.verify_experiment_contract(...) Returns list[str] of configuration, coverage and semantic contract errors
synthetic_statistics_contract.verify_synthetic_statistics_contract(...) Returns list[str] of synthetic-statistics contract errors
historical_forecast_contract.verify_historical_forecast_contract(...) Returns list[str] of historical-forecast contract errors
input_provenance.verify_source_file(...) Returns a frozen SourceVerification record containing path, byte count, SHA-256, dataset, version, DOI and URL; raises FileNotFoundError for a missing input file, ValueError for invalid metadata or filename/hash mismatch, and can propagate file-reading OSError
audit_result_bundle(...) Returns BundleAudit, containing AuditCheck records and passed property; skipped checks remain explicit

The five bundle verifiers listed above return an empty error list when their checks find no errors; malformed inputs and file-reading failures can raise before a list is returned. verify_source_file has a separate record-or-exception contract. artifact_integrity.py:126–193 software_provenance.py:191–250 experiment_contract.py:544–568 synthetic_statistics_contract.py:563–567 historical_forecast_contract.py:529–533 input_provenance.py:20–86

voltrl.py:36–266 voltrl.py:374–645 voltrl_benchmark.py:78–102 voltrl_benchmark.py:311–811 result_bundle_audit.py:24–162

Two modules define different trajectory_metrics functions: the core version takes both learned and oracle trajectories; the benchmark version takes one trajectory. Import them with explicit module names or aliases. Likewise main and build_parser belong to each module, not one unified global CLI. voltrl.py:717–797 voltrl_benchmark.py:814–851

Commands and write boundaries

Command Inputs / options Read or write behavior
python voltrl.py Optional CSV or generated prices; flags listed below Creates/reuses output directory; writes legacy results
python voltrl_benchmark.py Required --opsd-csv; record, seeds, hours, K candidates Verifies exact external input, then writes full benchmark bundle
python input_provenance.py FILE [--record RECORD] Default record data/opsd_source.json Read-only filename/raw-digest verification
python result_bundle_audit.py MANIFEST [--source-root ROOT] [--json] Default source root inferred from manifest location Read-only aggregate; stdout report; exit 1 for failure
python artifact_integrity.py MANIFEST [--write] Declared output paths Read-only normally; --write replaces inventory metadata
python software_provenance.py MANIFEST [--source-root ROOT] [--write] Source root defaults to current directory Read-only normally; --write records new software provenance
python experiment_contract.py MANIFEST Five core tables Read-only configuration/coverage checks
python synthetic_statistics_contract.py MANIFEST Three statistical tables Read-only statistics checks
python historical_forecast_contract.py MANIFEST Historical detail, summary and market table Read-only timing/alignment/error checks
python scripts/portfolio/validate_guide.py Repository-local static guide/config/assets Assertions and summary; no model execution
python docs/reference/build_reference.py [--check] Canonical handbook files and Pandoc Writes only derived handbook HTML; --check compares without writing

Each native CLI supports --help; all nine native help commands were executed successfully in review. Source parsers: voltrl.py:1171–1225 voltrl_benchmark.py:1838–1863 result_bundle_audit.py:165–224.

Legacy options and exact defaults

Options Defaults / meaning
--csv, --price-column, --timestamp-column No CSV → synthetic; price; no timestamp column → generated hourly index
--output-dir, --synthetic-hours, --seed results, 17520, 42
--train-fraction .7; CLI requires (.05,.95); both partitions at least 100 rows
--bins, --candidate-bins, --bin-validation-fraction auto; 4,5,6,7,8,9,10,11,12,13,14,15,16; .2
--prior-strength 1
--capacity-mwh, --max-power-mw 500,100; interval stays 1 h in this CLI
--charge-efficiency, --discharge-efficiency, --degradation-cost 1,1,0; nonlinear parameters have no legacy CLI flags
--gamma, --tolerance, --max-iterations .99,1e−8,100000
--initial-soc-mwh, --salvage-price 200; unspecified salvage → training median
--log-level INFO

Benchmark options and exact defaults

Option Default
--opsd-csv Required path
--opsd-provenance data/opsd_source.json
--output-dir results_revision2
--synthetic-seeds 30, interpreted as range(30)
--synthetic-hours 17520 per seed
--sensitivity-seed 42
--candidates 4,6,8,10,12,16,20,24,32,40,48

The benchmark's primary physical settings and .7 split are code-defined, not CLI flags. Its sensitivity labels/figure title contain defaults (Synthetic seed 42, 30 seeds) that do not adapt to all custom CLI values; label a custom run accurately and see debt VR-03. voltrl_benchmark.py:1289–1400 voltrl_benchmark.py:1495–1495 voltrl_benchmark.py:1666–1835

Input and file formats

Native frames have timestamp and price. The strict benchmark validator converts to UTC/numeric, drops invalid rows, sorts, deduplicates and then requires consecutive hourly finite prices; trajectory settlement additionally rejects a frame whose ordering/length would change. The legacy CSV loader is more permissive and does not enforce an uninterrupted hourly cadence. voltrl.py:837–865 voltrl_benchmark.py:105–124 voltrl_benchmark.py:400–450

Data product Important fields / interpretation
Core trajectory step,timestamp,price,price_bin,soc_before_mwh,action,soc_after_mwh,energy_cash_flow,degradation_cost,profit,cumulative_profit
Benchmark trajectory Same settlement meanings, without price_bin; action labels are charge/idle/discharge
synthetic_seed_metrics.csv One seed-policy row; selected K, test hours, cash/adjusted/annualized metrics, oracle ratio and conditional daily contrasts
model_selection_folds.csv Seed/case, K, fold, model type, training/validation hours and mean NLL
case_diagnostics.csv Split ranges/counts, selected K and synthetic scores; historical rows have complete-day fields
historical_forecast_detail.csv Case, method, prior-delivery timestamp, protocol, delivery timestamp, lead 1…24, forecast, realized price, signed error
historical_forecast_summary.csv Count, ME, MAE, RMSE per case/method
experiment_manifest.json Configuration, declared outputs, artifact inventory, recorded generating source, runtime and OPSD record

voltrl.py:602–645 voltrl_benchmark.py:400–450 voltrl_benchmark.py:886–1080

The legacy run writes training_prices.csv, test_prices.csv, optional bin_selection_bic.csv, price_transition_matrix.csv, price_transition_counts.csv, price_bins.csv, optimal_policy.csv, both solver logs, both test_trajectory_*.csv, mdp_arrays.npz, four PNG figures and results.json. The benchmark's revision-2 manifest declares 13 CSV tables and six figures in both PNG and PDF (25 artifacts). Consult the exact manifest instead of inferring freshness from filenames. voltrl.py:1118–1168 voltrl_benchmark.py:1752–1835

Browser and documentation interfaces

Browser contracts distinguish LabSimulation, LabDashboard, synthetic CSV/config export, personal learning-path storage and archived animation controls. There is no native REST API, authentication/session endpoint, message queue or device I/O to configure in this snapshot. These are inventory findings, not promises about future releases.

Canonical file: docs/developer/API_CLI_AND_INTERFACES.md · Back to guide navigation

Native declaration catalog

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

This catalog lists every non-underscore function/class declared at top level in the nine native modules, plus their non-underscore methods/properties and declared dataclass fields. It is generated from the reviewed Python AST. Private helpers and test/tool declarations remain accounted in the operational interface inventory; imported third-party names are outside this API catalog. Argument defaults are optional; signatures preserve explicit calling conventions. See contracts and CLI for units, shapes, errors and file behavior.

voltrl.py

Action

voltrl.py:36–45

Discrete control actions.

The enumeration value is the action-array index, not an energy quantity. SOC increments are defined by :meth:BatterySpec.soc_delta.

Declared fields / enum values:

CHARGE = 0
IDLE = 1
DISCHARGE = 2

BatterySpec

voltrl.py:51–194

Physical and economic parameters of the BESS.

Declared fields / enum values:

capacity_mwh: float = 500.0
max_power_mw: float = 100.0
interval_hours: float = 1.0
charge_efficiency: float = 1.0
discharge_efficiency: float = 1.0
degradation_cost_per_mwh: float = 0.0
nonlinear_degradation: bool = False
dod_stress_exponent: float = 1.6
linear_degradation_fraction: float = 0.25
soc_stress_cost_per_hour: float = 0.0
BatterySpec.energy_step_mwh

voltrl.py:96–98

@property
BatterySpec.energy_step_mwh(self) -> float

Source-defined interface; use the linked implementation and the main contract page for behavior.

BatterySpec.soc_levels

voltrl.py:100–103

@property
BatterySpec.soc_levels(self) -> np.ndarray

Source-defined interface; use the linked implementation and the main contract page for behavior.

BatterySpec.soc_delta

voltrl.py:105–111

BatterySpec.soc_delta(self, action: int | Action) -> float

Source-defined interface; use the linked implementation and the main contract page for behavior.

BatterySpec.degradation_cost

voltrl.py:113–165

BatterySpec.degradation_cost(self, action: int | Action, soc_before_mwh: float | None=None) -> float

Return the stage degradation cost.

The legacy model is linear in internal energy throughput. The revised model retains a small linear component and adds a convex cumulative depth-of-discharge (DOD) potential on discharge plus an hourly extreme- SOC stress term. The DOD potential is normalized so a full 0-100-0% cycle has the same nominal cost as the legacy linear proxy, while shallow cycles are cheaper and deeper excursions are progressively more expensive.

BatterySpec.reward_components

voltrl.py:167–180

BatterySpec.reward_components(self, price: float, action: int | Action, soc_before_mwh: float | None=None) -> tuple[float, float, float]

Return energy-market cash flow, degradation cost, and net reward.

BatterySpec.realized_reward

voltrl.py:182–194

BatterySpec.realized_reward(self, price: float, action: int | Action, soc_before_mwh: float | None=None) -> float

One-hour cash flow in currency units.

Positive SOC movement requires grid purchases of delta / eta_c; negative movement sells -delta * eta_d to the grid.

SolverConfig

voltrl.py:197–213

Declared fields / enum values:

gamma: float = 0.99
tolerance: float = 1e-08
max_iterations: int = 100000

PriceDiscretizer

voltrl.py:216–266

Quantile price discretizer with fitted representative prices.

Declared fields / enum values:

edges: np.ndarray
representatives: np.ndarray
counts: np.ndarray
PriceDiscretizer.n_bins

voltrl.py:224–226

@property
PriceDiscretizer.n_bins(self) -> int

Source-defined interface; use the linked implementation and the main contract page for behavior.

PriceDiscretizer.fit

voltrl.py:228–248

@classmethod
PriceDiscretizer.fit(cls, prices: Sequence[float], n_bins: int) -> 'PriceDiscretizer'

Source-defined interface; use the linked implementation and the main contract page for behavior.

PriceDiscretizer.transform

voltrl.py:250–255

PriceDiscretizer.transform(self, prices: Sequence[float]) -> np.ndarray

Source-defined interface; use the linked implementation and the main contract page for behavior.

PriceDiscretizer.interval_labels

voltrl.py:257–266

PriceDiscretizer.interval_labels(self, observed_prices: Sequence[float]) -> list[str]

Source-defined interface; use the linked implementation and the main contract page for behavior.

estimate_price_transition

voltrl.py:278–307

estimate_price_transition(price_bins: Sequence[int], n_bins: int, prior_strength: float=1.0) -> tuple[np.ndarray, np.ndarray]

Estimate a row-stochastic first-order price transition matrix.

A Dirichlet empirical-marginal prior prevents zero-probability rows while preserving observed transition frequencies as the sample grows.

select_bin_count_bic

voltrl.py:310–370

select_bin_count_bic(prices: Sequence[float], candidates: Iterable[int]=range(4, 11), validation_fraction: float=0.2, prior_strength: float=1.0) -> tuple[int, pd.DataFrame]

Select a quantile-bin count using chronological validation and BIC.

For each candidate, the first-order Markov kernel is fitted on the early training segment and scored on the held-out tail. To make likelihoods comparable across different bin counts, the categorical transition probability is converted to a piecewise-uniform conditional density by dividing by the destination-bin width. The criterion is BIC = -2 log L_density + (k(k-1) + k-1) log(n_validation_transitions); the final term counts transition and interior-edge parameters.

BatteryArbitrageMDP

voltrl.py:373–481

Finite joint SOC-price MDP.

Declared fields / enum values:

battery: BatterySpec
price_representatives: np.ndarray
price_transition: np.ndarray
transition: np.ndarray
reward: np.ndarray
valid_actions: np.ndarray
soc_levels: np.ndarray
BatteryArbitrageMDP.n_price_bins

voltrl.py:385–387

@property
BatteryArbitrageMDP.n_price_bins(self) -> int

Source-defined interface; use the linked implementation and the main contract page for behavior.

BatteryArbitrageMDP.n_soc_levels

voltrl.py:389–391

@property
BatteryArbitrageMDP.n_soc_levels(self) -> int

Source-defined interface; use the linked implementation and the main contract page for behavior.

BatteryArbitrageMDP.n_states

voltrl.py:393–395

@property
BatteryArbitrageMDP.n_states(self) -> int

Source-defined interface; use the linked implementation and the main contract page for behavior.

BatteryArbitrageMDP.n_actions

voltrl.py:397–399

@property
BatteryArbitrageMDP.n_actions(self) -> int

Source-defined interface; use the linked implementation and the main contract page for behavior.

BatteryArbitrageMDP.state_index

voltrl.py:401–402

BatteryArbitrageMDP.state_index(self, soc_index: int, price_bin: int) -> int

Source-defined interface; use the linked implementation and the main contract page for behavior.

BatteryArbitrageMDP.decode_state

voltrl.py:404–405

BatteryArbitrageMDP.decode_state(self, state: int) -> tuple[int, int]

Source-defined interface; use the linked implementation and the main contract page for behavior.

BatteryArbitrageMDP.build

voltrl.py:407–461

@classmethod
BatteryArbitrageMDP.build(cls, battery: BatterySpec, price_representatives: Sequence[float], price_transition: np.ndarray) -> 'BatteryArbitrageMDP'

Source-defined interface; use the linked implementation and the main contract page for behavior.

BatteryArbitrageMDP.validate

voltrl.py:463–481

BatteryArbitrageMDP.validate(self) -> None

Source-defined interface; use the linked implementation and the main contract page for behavior.

SolverResult

voltrl.py:484–491

Declared fields / enum values:

values: np.ndarray
policy: np.ndarray
iterations: int
converged: bool
runtime_seconds: float
log: pd.DataFrame

bellman_q

voltrl.py:494–498

bellman_q(mdp: BatteryArbitrageMDP, values: np.ndarray, gamma: float) -> np.ndarray

Source-defined interface; use the linked implementation and the main contract page for behavior.

value_iteration

voltrl.py:501–528

value_iteration(mdp: BatteryArbitrageMDP, config: SolverConfig=SolverConfig()) -> SolverResult

Source-defined interface; use the linked implementation and the main contract page for behavior.

evaluate_policy_exact

voltrl.py:531–542

evaluate_policy_exact(mdp: BatteryArbitrageMDP, policy: np.ndarray, gamma: float) -> np.ndarray

Source-defined interface; use the linked implementation and the main contract page for behavior.

policy_iteration

voltrl.py:545–580

policy_iteration(mdp: BatteryArbitrageMDP, config: SolverConfig=SolverConfig()) -> SolverResult

Source-defined interface; use the linked implementation and the main contract page for behavior.

policy_bellman_residual

voltrl.py:583–588

policy_bellman_residual(mdp: BatteryArbitrageMDP, values: np.ndarray, gamma: float) -> float

Source-defined interface; use the linked implementation and the main contract page for behavior.

nearest_soc_index

voltrl.py:591–599

nearest_soc_index(mdp: BatteryArbitrageMDP, initial_soc_mwh: float) -> int

Source-defined interface; use the linked implementation and the main contract page for behavior.

simulate_policy

voltrl.py:602–645

simulate_policy(prices: Sequence[float], timestamps: Sequence[object], discretizer: PriceDiscretizer, mdp: BatteryArbitrageMDP, policy: np.ndarray, initial_soc_mwh: float) -> pd.DataFrame

Source-defined interface; use the linked implementation and the main contract page for behavior.

perfect_foresight_dispatch

voltrl.py:648–714

perfect_foresight_dispatch(prices: Sequence[float], timestamps: Sequence[object], battery: BatterySpec, initial_soc_mwh: float, terminal_salvage_price: float) -> pd.DataFrame

Finite-horizon clairvoyant benchmark solved by backward induction.

trajectory_metrics

voltrl.py:717–797

trajectory_metrics(learned: pd.DataFrame, perfect: pd.DataFrame, battery: BatterySpec, initial_soc_mwh: float, terminal_salvage_price: float) -> dict[str, float | int]

Source-defined interface; use the linked implementation and the main contract page for behavior.

generate_synthetic_prices

voltrl.py:800–834

generate_synthetic_prices(hours: int=17520, seed: int=42) -> pd.DataFrame

Create a reproducible hourly series with seasonality and price regimes.

load_price_data

voltrl.py:837–865

load_price_data(csv_path: str | None, price_column: str, timestamp_column: str | None, synthetic_hours: int, seed: int) -> tuple[pd.DataFrame, str]

Source-defined interface; use the linked implementation and the main contract page for behavior.

make_policy_table

voltrl.py:868–889

make_policy_table(mdp: BatteryArbitrageMDP, policy: np.ndarray, discretizer: PriceDiscretizer, train_prices: Sequence[float]) -> pd.DataFrame

Source-defined interface; use the linked implementation and the main contract page for behavior.

save_figures

voltrl.py:892–986

save_figures(output_dir: Path, train: pd.DataFrame, test: pd.DataFrame, mdp: BatteryArbitrageMDP, discretizer: PriceDiscretizer, vi: SolverResult, pi: SolverResult, learned: pd.DataFrame, perfect: pd.DataFrame) -> None

Source-defined interface; use the linked implementation and the main contract page for behavior.

run_experiment

voltrl.py:1001–1168

run_experiment(args: argparse.Namespace) -> dict[str, object]

Source-defined interface; use the linked implementation and the main contract page for behavior.

build_parser

voltrl.py:1171–1203

build_parser() -> argparse.ArgumentParser

Source-defined interface; use the linked implementation and the main contract page for behavior.

main

voltrl.py:1206–1221

main(argv: Sequence[str] | None=None) -> int

Source-defined interface; use the linked implementation and the main contract page for behavior.

voltrl_benchmark.py

StateModel

voltrl_benchmark.py:77–90

Discretized exogenous-state model with full-support emissions.

Declared fields / enum values:

discretizer: PriceDiscretizer
transition: np.ndarray
emission_mean: np.ndarray
emission_std: np.ndarray
calendar_aware: bool
transition_counts: np.ndarray
StateModel.n_bins

voltrl_benchmark.py:88–90

@property
StateModel.n_bins(self) -> int

Source-defined interface; use the linked implementation and the main contract page for behavior.

SeasonalARModel

voltrl_benchmark.py:93–102

Regularized seasonal autoregression fitted on training data only.

Declared fields / enum values:

lags: tuple[int, ...]
coefficients: np.ndarray
price_mean: float
price_scale: float
clip_low: float
clip_high: float

chronological_split

voltrl_benchmark.py:127–136

chronological_split(frame: pd.DataFrame, train_fraction: float=0.7) -> tuple[pd.DataFrame, pd.DataFrame]

Split once in chronological order; no test value enters model fitting.

chronological_day_split

voltrl_benchmark.py:139–155

chronological_day_split(frame: pd.DataFrame, train_fraction: float=0.7) -> tuple[pd.DataFrame, pd.DataFrame, int]

Chronologically split complete UTC delivery days for block scheduling.

fit_state_model

voltrl_benchmark.py:173–224

fit_state_model(frame: pd.DataFrame, n_bins: int, calendar_aware: bool, prior_strength: float=12.0) -> StateModel

Fit a price-only or hour-conditioned transition kernel.

A hierarchical empirical-marginal Dirichlet prior prevents zero rows and stabilizes the expanded high-resolution candidate set. In the calendar-aware model, T[h, i, j] predicts the next price bin from the current UTC hour and current price bin; the next hour is deterministic.

continuous_predictive_nll

voltrl_benchmark.py:227–258

continuous_predictive_nll(model: StateModel, frame: pd.DataFrame) -> float

Mean next-price negative log density under a Gaussian mixture.

Unlike the previous truncated-bin likelihood, every component has support over the real line, so tail observations remain valid and comparable across candidate bin counts.

expanding_window_selection

voltrl_benchmark.py:261–295

expanding_window_selection(frame: pd.DataFrame, candidates: Iterable[int]) -> tuple[int, pd.DataFrame]

Select K using three leakage-free expanding-window validation folds.

finite_horizon_policy

voltrl_benchmark.py:311–397

finite_horizon_policy(model: StateModel, battery: BatterySpec, timestamps: Sequence[object], terminal_salvage_price: float, planner_discount: float=1.0) -> np.ndarray

Solve the test-length finite-horizon MDP by backward induction.

The primary experiment uses planner_discount=1, exactly matching the undiscounted evaluation objective and terminal inventory valuation. Decisions have shape (time, SOC level, price bin) and depend only on the fitted model, current state, known calendar hour, and remaining horizon.

trajectory_from_actions

voltrl_benchmark.py:400–450

trajectory_from_actions(frame: pd.DataFrame, actions: Sequence[int], battery: BatterySpec, initial_soc_mwh: float) -> pd.DataFrame

Source-defined interface; use the linked implementation and the main contract page for behavior.

simulate_finite_policy

voltrl_benchmark.py:453–469

simulate_finite_policy(frame: pd.DataFrame, model: StateModel, decisions: np.ndarray, battery: BatterySpec, initial_soc_mwh: float) -> pd.DataFrame

Source-defined interface; use the linked implementation and the main contract page for behavior.

idle_trajectory

voltrl_benchmark.py:472–477

idle_trajectory(frame: pd.DataFrame, battery: BatterySpec, initial_soc_mwh: float) -> pd.DataFrame

Source-defined interface; use the linked implementation and the main contract page for behavior.

threshold_trajectory

voltrl_benchmark.py:480–495

threshold_trajectory(train: pd.DataFrame, test: pd.DataFrame, battery: BatterySpec, initial_soc_mwh: float) -> pd.DataFrame

Source-defined interface; use the linked implementation and the main contract page for behavior.

fit_seasonal_ar

voltrl_benchmark.py:544–588

fit_seasonal_ar(train: pd.DataFrame, lags: tuple[int, ...]=(1, 2, 24, 48, 168), ridge: float=0.001) -> SeasonalARModel

Fit a ridge-stabilized seasonal autoregression on the training segment.

seasonal_ar_forecast

voltrl_benchmark.py:591–652

seasonal_ar_forecast(model: SeasonalARModel, observed_prices: np.ndarray, timestamps: pd.Series, current_index: int, steps: int=23) -> np.ndarray

Recursively forecast future prices using only observations available now.

seasonal_mpc_trajectory

voltrl_benchmark.py:655–709

seasonal_mpc_trajectory(train: pd.DataFrame, test: pd.DataFrame, battery: BatterySpec, initial_soc_mwh: float, terminal_salvage_price: float) -> pd.DataFrame

Causal 24-hour MPC driven by a training-fitted seasonal AR forecast.

day_ahead_block_trajectory

voltrl_benchmark.py:712–811

day_ahead_block_trajectory(train: pd.DataFrame, test: pd.DataFrame, battery: BatterySpec, initial_soc_mwh: float, terminal_salvage_price: float, forecast_method: str) -> tuple[pd.DataFrame, pd.DataFrame]

Commit one feasible 24-hour schedule before each delivery day.

The information set contains prices observed through the preceding UTC day. The actual delivery-day clearing prices are used only to settle the already committed schedule.

trajectory_metrics

voltrl_benchmark.py:814–851

trajectory_metrics(trajectory: pd.DataFrame, battery: BatterySpec, initial_soc_mwh: float, terminal_salvage_price: float) -> dict[str, float | int]

Source-defined interface; use the linked implementation and the main contract page for behavior.

moving_block_daily_difference

voltrl_benchmark.py:854–883

moving_block_daily_difference(reference: pd.DataFrame, comparator: pd.DataFrame, seed: int, block_days: int=7, replications: int=5000) -> tuple[float, float, float]

Conditional moving-block interval for paired daily cash-profit differences.

evaluate_case

voltrl_benchmark.py:886–979

evaluate_case(frame: pd.DataFrame, case: str, battery: BatterySpec, candidates: Iterable[int], initial_soc_mwh: float=200.0) -> tuple[pd.DataFrame, pd.DataFrame, dict[str, object]]

Fit, select, and evaluate every policy on one chronological case.

evaluate_day_ahead_case

voltrl_benchmark.py:982–1080

evaluate_day_ahead_case(frame: pd.DataFrame, case: str, battery: BatterySpec, initial_soc_mwh: float=200.0) -> tuple[pd.DataFrame, pd.DataFrame, pd.DataFrame, dict[str, object]]

Evaluate schedules committed as one 24-hour block before delivery.

load_opsd_markets

voltrl_benchmark.py:1083–1118

load_opsd_markets(csv_path: Path) -> tuple[dict[str, pd.DataFrame], pd.DataFrame]

Load and minimally repair DK1/DK2 from OPSD version 2020-10-06.

bootstrap_mean_ci

voltrl_benchmark.py:1121–1130

bootstrap_mean_ci(values: Sequence[float], seed: int, replications: int=5000) -> tuple[float, float]

Source-defined interface; use the linked implementation and the main contract page for behavior.

summarize_seed_results

voltrl_benchmark.py:1133–1171

summarize_seed_results(metrics: pd.DataFrame) -> tuple[pd.DataFrame, pd.DataFrame]

Source-defined interface; use the linked implementation and the main contract page for behavior.

evaluate_single_policy

voltrl_benchmark.py:1174–1205

evaluate_single_policy(frame: pd.DataFrame, model: StateModel, battery: BatterySpec, initial_soc_mwh: float, planner_discount: float=1.0) -> dict[str, float | int]

Source-defined interface; use the linked implementation and the main contract page for behavior.

sensitivity_analysis

voltrl_benchmark.py:1208–1254

sensitivity_analysis(frames: dict[str, pd.DataFrame], selected_bins: dict[str, int], initial_soc_mwh: float) -> tuple[pd.DataFrame, pd.DataFrame]

Source-defined interface; use the linked implementation and the main contract page for behavior.

evaluate_block_policy

voltrl_benchmark.py:1257–1286

evaluate_block_policy(frame: pd.DataFrame, battery: BatterySpec, initial_soc_mwh: float) -> dict[str, float | int]

Source-defined interface; use the linked implementation and the main contract page for behavior.

revision_sensitivity_analysis

voltrl_benchmark.py:1289–1400

revision_sensitivity_analysis(synthetic_frame: pd.DataFrame, synthetic_bins: int, historical_frame: pd.DataFrame, initial_soc_mwh: float) -> tuple[pd.DataFrame, pd.DataFrame, pd.DataFrame]

Evaluate physical, planner, and degradation-model dependence.

solver_diagnostics

voltrl_benchmark.py:1403–1440

solver_diagnostics(frame: pd.DataFrame, n_bins: int) -> pd.DataFrame

Retain VI/PI agreement only as a software-verification diagnostic.

make_figures

voltrl_benchmark.py:1460–1663

make_figures(output_dir: Path, market_frames: dict[str, pd.DataFrame], selections: pd.DataFrame, synthetic_summary: pd.DataFrame, paired: pd.DataFrame, real_metrics: pd.DataFrame, forecast_summary: pd.DataFrame, sensitivity: pd.DataFrame, gamma_sensitivity: pd.DataFrame, degradation_sensitivity: pd.DataFrame) -> None

Source-defined interface; use the linked implementation and the main contract page for behavior.

run_benchmark

voltrl_benchmark.py:1666–1835

run_benchmark(args: argparse.Namespace) -> dict[str, object]

Source-defined interface; use the linked implementation and the main contract page for behavior.

build_parser

voltrl_benchmark.py:1838–1852

build_parser() -> argparse.ArgumentParser

Source-defined interface; use the linked implementation and the main contract page for behavior.

main

voltrl_benchmark.py:1855–1859

main(argv: Sequence[str] | None=None) -> int

Source-defined interface; use the linked implementation and the main contract page for behavior.

input_provenance.py

SourceVerification

input_provenance.py:20–30

Verified identity and provenance metadata for an input file.

Declared fields / enum values:

path: Path
bytes: int
sha256: str
dataset: str
version: str
doi: str
url: str

load_source_record

input_provenance.py:33–53

load_source_record(record_path: Path) -> dict[str, str]

Load and validate a machine-readable source provenance record.

verify_source_file

input_provenance.py:56–86

verify_source_file(source_path: Path, record_path: Path=DEFAULT_SOURCE_RECORD) -> SourceVerification

Verify an input file against its versioned provenance record.

build_parser

input_provenance.py:89–98

build_parser() -> argparse.ArgumentParser

Source-defined interface; use the linked implementation and the main contract page for behavior.

main

input_provenance.py:101–114

main(argv: Sequence[str] | None=None) -> int

Source-defined interface; use the linked implementation and the main contract page for behavior.

artifact_integrity.py

sha256_file

artifact_integrity.py:40–45

sha256_file(path: Path) -> str

Source-defined interface; use the linked implementation and the main contract page for behavior.

build_artifact_inventory

artifact_integrity.py:55–77

build_artifact_inventory(result_dir: Path, relative_paths: Sequence[str]) -> list[dict[str, object]]

Return deterministic size and SHA-256 records for declared artifacts.

record_artifact_inventory

artifact_integrity.py:111–123

record_artifact_inventory(manifest_path: Path) -> int

Add or replace integrity records for every manifest output.

verify_artifact_manifest

artifact_integrity.py:126–193

verify_artifact_manifest(manifest_path: Path) -> list[str]

Return integrity errors; an empty list means every artifact matched.

build_parser

artifact_integrity.py:196–204

build_parser() -> argparse.ArgumentParser

Source-defined interface; use the linked implementation and the main contract page for behavior.

main

artifact_integrity.py:207–224

main(argv: Sequence[str] | None=None) -> int

Source-defined interface; use the linked implementation and the main contract page for behavior.

software_provenance.py

capture_software_provenance

software_provenance.py:89–130

capture_software_provenance(source_root: Path, relative_paths: Sequence[str]=DEFAULT_SOFTWARE_PATHS) -> dict[str, object]

Capture a portable source inventory and its Git state when available.

record_software_provenance

software_provenance.py:140–155

record_software_provenance(manifest_path: Path, source_root: Path, relative_paths: Sequence[str]=DEFAULT_SOFTWARE_PATHS) -> int

Add or replace software provenance in an experiment manifest.

verify_software_provenance

software_provenance.py:191–250

verify_software_provenance(manifest_path: Path, source_root: Path) -> list[str]

Return source-provenance errors; an empty list means a complete match.

build_parser

software_provenance.py:253–267

build_parser() -> argparse.ArgumentParser

Source-defined interface; use the linked implementation and the main contract page for behavior.

main

software_provenance.py:270–294

main(argv: Sequence[str] | None=None) -> int

Source-defined interface; use the linked implementation and the main contract page for behavior.

experiment_contract.py

verify_experiment_contract

experiment_contract.py:544–568

verify_experiment_contract(manifest_path: Path) -> list[str]

Return semantic contract errors for one published result bundle.

build_parser

experiment_contract.py:571–574

build_parser() -> argparse.ArgumentParser

Source-defined interface; use the linked implementation and the main contract page for behavior.

main

experiment_contract.py:577–595

main(argv: Sequence[str] | None=None) -> int

Source-defined interface; use the linked implementation and the main contract page for behavior.

synthetic_statistics_contract.py

SeedMetric

synthetic_statistics_contract.py:25–33

Declared fields / enum values:

line: int
seed: int
policy: str
test_hours: int
inventory_adjusted_profit: float
annualized_adjusted_profit: float
oracle_efficiency_percent: float

SummaryStatistic

synthetic_statistics_contract.py:36–44

Declared fields / enum values:

line: int
seeds: int
mean_annualized_profit: float
standard_deviation: float
bootstrap_ci95_lower: float
bootstrap_ci95_upper: float
mean_oracle_efficiency_percent: float

PairedComparison

synthetic_statistics_contract.py:47–54

Declared fields / enum values:

line: int
seeds: int
mean_paired_difference: float
bootstrap_ci95_lower: float
bootstrap_ci95_upper: float
positive_seed_fraction: float

AuditCounts

synthetic_statistics_contract.py:57–62

Declared fields / enum values:

metric_rows: int
seeds: int
policies: int
comparisons: int

verify_synthetic_statistics_contract

synthetic_statistics_contract.py:563–567

verify_synthetic_statistics_contract(manifest_path: Path) -> list[str]

Return synthetic statistics errors; empty means a valid bundle.

build_parser

synthetic_statistics_contract.py:570–573

build_parser() -> argparse.ArgumentParser

Source-defined interface; use the linked implementation and the main contract page for behavior.

main

synthetic_statistics_contract.py:576–592

main(argv: Sequence[str] | None=None) -> int

Source-defined interface; use the linked implementation and the main contract page for behavior.

historical_forecast_contract.py

ForecastRow

historical_forecast_contract.py:23–34

Declared fields / enum values:

line: int
case: str
method: str
available: datetime
protocol: str
delivery: datetime
lead: int
forecast: float
realized: float
error: float

ForecastSummary

historical_forecast_contract.py:37–43

Declared fields / enum values:

line: int
observations: int
mean_error: float
mean_absolute_error: float
root_mean_squared_error: float

AuditCounts

historical_forecast_contract.py:46–51

Declared fields / enum values:

rows: int = 0
cases: int = 0
methods: int = 0
blocks: int = 0

verify_historical_forecast_contract

historical_forecast_contract.py:529–533

verify_historical_forecast_contract(manifest_path: Path) -> list[str]

Return historical forecast contract errors; empty means a valid bundle.

build_parser

historical_forecast_contract.py:536–539

build_parser() -> argparse.ArgumentParser

Source-defined interface; use the linked implementation and the main contract page for behavior.

main

historical_forecast_contract.py:542–557

main(argv: Sequence[str] | None=None) -> int

Source-defined interface; use the linked implementation and the main contract page for behavior.

result_bundle_audit.py

AuditCheck

result_bundle_audit.py:32–49

Outcome from one independently runnable bundle verifier.

Declared fields / enum values:

name: str
status: CheckStatus
errors: tuple[str, ...] = ()
detail: str | None = None
AuditCheck.as_dict

result_bundle_audit.py:41–49

AuditCheck.as_dict(self) -> dict[str, object]

Source-defined interface; use the linked implementation and the main contract page for behavior.

BundleAudit

result_bundle_audit.py:52–70

Aggregate result from all checks that apply to a result bundle.

Declared fields / enum values:

manifest: str
source_root: str
checks: tuple[AuditCheck, ...]
BundleAudit.passed

result_bundle_audit.py:60–62

@property
BundleAudit.passed(self) -> bool

Source-defined interface; use the linked implementation and the main contract page for behavior.

BundleAudit.as_dict

result_bundle_audit.py:64–70

BundleAudit.as_dict(self) -> dict[str, object]

Source-defined interface; use the linked implementation and the main contract page for behavior.

audit_result_bundle

result_bundle_audit.py:105–160

audit_result_bundle(manifest_path: Path, source_root: Path | None=None) -> BundleAudit

Run semantic, artifact, source, and optional historical checks.

build_parser

result_bundle_audit.py:163–177

build_parser() -> argparse.ArgumentParser

Source-defined interface; use the linked implementation and the main contract page for behavior.

main

result_bundle_audit.py:196–220

main(argv: Sequence[str] | None=None) -> int

Source-defined interface; use the linked implementation and the main contract page for behavior.

Canonical file: docs/developer/API_REFERENCE.md · Back to guide navigation

Worked examples and labs

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

These examples were executed against pinned source 8058e89e4d3516825a400fe86ac45d2e36b6bef0 during the 2026-11-19 documentation review. Small synthetic runs illustrate contracts; they do not reproduce the archived 30-seed/historical study. Use the setup guide first.

1. Reconcile one charge/discharge pair

from voltrl import Action, BatterySpec

battery = BatterySpec(
    charge_efficiency=0.95, discharge_efficiency=0.95,
    degradation_cost_per_mwh=5.0, nonlinear_degradation=True,
    dod_stress_exponent=1.6, linear_degradation_fraction=0.25,
    soc_stress_cost_per_hour=1.0,
)
charge = battery.reward_components(50.0, Action.CHARGE, 200.0)
discharge = battery.reward_components(100.0, Action.DISCHARGE, 300.0)
print(charge)       # energy cash, modeled degradation/stress, net reward
print(discharge)
print(charge[2] + discharge[2])

Observed values, rounded:

Step Internal SOC Grid energy Energy cash Aging/stress Net reward
Charge at 50 currency/MWh 200→300 MWh Buy 105.263158 MWh −5263.157895 125.040000 −5388.197895
Discharge at 100 currency/MWh 300→200 MWh Sell 95 MWh 9500.000000 915.469383 8584.530617
Pair Initial inventory restored 10.263158 MWh conversion loss 4236.842105 1040.509383 3196.332722

Terminal adjustment is zero because final and initial SOC agree. Idle at 200 MWh still costs .04 per hour under this primary aging specification. The low-level reward method returns a three-item tuple; it is not a feasibility dispatcher. voltrl.py:113–194

2. Inspect the legacy stationary solver

python voltrl.py --synthetic-hours 1000 --seed 7 --bins 4 --output-dir ../voltrl-smoke

The observed run used 700 training and 300 test hours, selected the explicitly requested four bins, converged in 2469 VI iterations and five PI iterations, and had identical VI/PI policies. VI residual was about 9.98e−9 and PI residual about 2.91e−11. Learned adjusted profit was 203482.674 versus oracle adjusted profit 358332.772 in synthetic currency units. Do not compare these default ideal-battery results directly with revision-2 nonlinear-aging results. voltrl.py:1001–1168

Inspect results.json, test_trajectory_voltrl.csv, test_trajectory_perfect_foresight.csv, optimal_policy.csv, convergence logs and figures. Timing depends on the machine and is not a performance benchmark. Auto-bin selection invokes the legacy BIC-like path; this example avoids that path by setting --bins 4.

3. Build a finite-horizon native policy

import numpy as np
from voltrl import BatterySpec, generate_synthetic_prices
from voltrl_benchmark import (
    chronological_split, fit_state_model, finite_horizon_policy,
    simulate_finite_policy, trajectory_metrics,
)

frame = generate_synthetic_prices(hours=2400, seed=7)
train, test = chronological_split(frame)
battery = BatterySpec(
    charge_efficiency=.95, discharge_efficiency=.95,
    degradation_cost_per_mwh=5, nonlinear_degradation=True,
    dod_stress_exponent=1.6, linear_degradation_fraction=.25,
    soc_stress_cost_per_hour=1,
)
model = fit_state_model(train, n_bins=4, calendar_aware=True)
salvage = float(np.median(train['price']))
decisions = finite_horizon_policy(model, battery, test['timestamp'], salvage)
trajectory = simulate_finite_policy(test, model, decisions, battery, 200.0)
metrics = trajectory_metrics(trajectory, battery, 200.0, salvage)
print(model.transition.shape, decisions.shape)
print(metrics['inventory_adjusted_profit'])

Observed split: 1680/720 hours. Transition shape: (24,4,4). Decisions: (720,6,4). Salvage: 57.8598954975. Adjusted profit: 399607.182976; terminal SOC: 500 MWh. A separate full-future oracle calculation gave 677540.768074 under the same physical model and valuation; the feasibility and upper-bound assertions passed. The fixed K=4 is an explicit teaching choice, not the benchmark's automatic expanding-window selection. voltrl_benchmark.py:127–136 voltrl_benchmark.py:311–469

Extend the exercise by calling expanding_window_selection(train, (3,4)), reading all 12 candidate/fold/model rows, then refitting the chosen K on all training rows. Never select K using test profit. The existing test verifies this small selection grid is deterministic. tests/test_voltrl_benchmark.py:41–47

4. Audit the archived evidence

python result_bundle_audit.py results_revision/experiment_manifest.json --json
python result_bundle_audit.py results_revision2/experiment_manifest.json --json

The first gives four passed checks and an explicit skip; the second gives five passed checks. The revision-2 historical validator covers 90,720 forecast rows: two cases × three forecast methods × 15,120 test hours, organized into 3,780 complete method/day blocks. These are audits of committed rows, not new forecasts. historical_forecast_contract.py:298–410 result_bundle_audit.py:75–162

5. Check the browser teaching proxy

Open the interactive lab, load each module preset, set the declared time and check outcomes. Module 1 at t=0 gives 25 bps and 25 USD. Module 2 gives zero USD at t=0 and −4.755283 USD at t=24. Module 3 gives −20 bps initially and −24.755283 USD at t=24. Module 4 gives 60 USD costs and 40.489435 USD scenario P&L at t=24. All eight configured checks passed when the actual inline pure-model export was evaluated locally. docs/lesson-config.json:1–317 docs/index.html:296–345

The P&L is one hypothetical opportunity at the selected time, not accumulated earnings. CSV export has 241 deterministic sample points and current parameters. Browser display, keyboard flow and download behavior remain separate from the pure-function check. Browser contracts.

Canonical file: docs/developer/WORKED_EXAMPLES_AND_LABS.md · Back to guide navigation

Troubleshooting by failed contract

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

Keep the exact command, source SHA, input identity and full error output. Diagnose a failed verifier before changing any recorded digest or benchmark setting.

Symptom Likely cause and evidence Next action
Historical Git object cannot be read Archive/shallow clone omits manifest's generating commit Use a full clone or fetch missing history; preserve the manifest's recorded SHA
Input filename mismatch OPSD file was not saved with the source record's required basename Rename the unchanged official bytes to the required basename, then verify
Input SHA mismatch Wrong package/file, modified bytes or incomplete download Obtain the exact versioned file; do not rewrite the expected digest
Quantile edges are not distinct Too few distinct prices for requested K Inspect training data and lower K explicitly for an exploratory run; do not claim it is the original protocol
Too few prices / timestamps not hourly Small or irregular frame Supply sufficient consecutive hourly UTC data; disclose preprocessing
Zero-prior unobserved transition error Some state/hour has no outgoing count Use the declared positive smoothing or establish full row coverage
Initial SOC off-grid E0 is not one of 0,q,…,C Choose a valid grid value; 250 MWh is invalid for default q=100
Action alignment error Actions supplied before a frame was reordered or cleaned Align actions to the already validated chronological frame
AR history/lag failure Index precedes needed lags or time horizon exceeds timestamp array Provide causal history and future timestamps; future actual prices are not forecast inputs
VI/PI fails convergence Invalid solver parameters or iteration cap reached Inspect residual/logs; do not report incomplete solve as optimal
Artifact audit fails Missing/changed declared file, malformed inventory or canonicalization mismatch Compare to immutable bundle; restore intended bytes or create an explicitly new experiment
One audit says passed but historical says skipped Revision 1 lacks forecast protocol/tables Report the skip; use revision 2 for that specific stored contract
Handbook --check fails Canonical chapter, manifest, CSS or renderer changed Regenerate and review generated HTML; do not edit HTML as a separate source
Browser checkpoints fail after a slider edit Current parameters no longer match the lesson preset Reload the preset and use its declared model time; review actual values/tolerances

software_provenance.py:49–78 input_provenance.py:56–86 voltrl.py:217–266 voltrl.py:591–599 voltrl_benchmark.py:105–124 voltrl_benchmark.py:400–450 voltrl_benchmark.py:591–652

Environment and numerical messages

The local Python 3.12.14/pandas 3.1.1 review passed all tests but emitted deprecation warnings for Timestamp.dayofweek and dayofyear in _seasonal_features. Treat that as future maintenance debt, not a present numerical failure; changing source is outside this documentation change. voltrl_benchmark.py:517–531

voltrl.py catches run-time exceptions, logs a traceback and returns 1; argparse usage errors return 2. The benchmark CLI lets run exceptions surface. Individual audit CLIs report failures and return nonzero. Direct low-level calls do not all share one uniform validation/error contract: for example, the oracle's off-grid initial SOC lookup can fail differently from nearest_soc_index. Use the documented validated paths and preserve traceback context. voltrl.py:648–666 voltrl.py:1206–1225 voltrl_benchmark.py:1853–1863

CI and publication

The metadata policy logs forbidden/missing commit metadata and its checked-commit count; it does not echo its chosen revision range. Reconstruct that range from the event inputs and the workflow's event branches if needed. A historical successful check is not evidence for a new docs head. .github/workflows/no-codex-attribution.yml:24–99

The active all-branch ruleset requires signatures and exposes no bypass. If a supported commit route yields unsigned commits, use an ordinary verified route permitted by the repository or preserve the candidate for the owner; do not weaken the rule. Classic-protection API access was denied to the current integration, so its unknown requirements must be inspected before delivery. Release playbook.

Canonical file: docs/developer/TROUBLESHOOTING.md · Back to guide navigation

Browser models and interaction boundaries

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

The active lesson is markets: a deterministic USD/basis-point friction exercise. It neither calls Python nor loads the committed CSV bundles or OPSD. Source links in the preserved browser configuration point to its own historical package revision c86bf0e52adf06922bbbf35f2274b68485a22660; this handbook's review uses current pinned source 8058e89e4d3516825a400fe86ac45d2e36b6bef0. Both identities remain visible. docs/lesson-config.json:1–317 docs/index.html:159–166

Active equation and controls

For model time t in hours,

spread=b+12sin(2πt/12)+5sin(2πt/5),edge=spread−fees−slippage,spread=b+12\sin(2\pi t/12)+5\sin(2\pi t/5),\quad edge=spread-fees-slippage,

P&L=Nedge/10000,cost=N(fees+slippage)/10000.P\&L=N\,edge/10000,\qquad cost=N(fees+slippage)/10000.

Input key Range Config default Unit
baseSpreadBps 0…100, step 1 40 bps
feeBps 0…50, step 1 10 bps, round trip
slippageBps 0…30, step 1 5 bps
notionalUSD 1000…100000, step 1000 10000 USD

The pure library's fallback defaults are 35/15/8/10000, whereas the active configuration overrides them to 40/10/5/10000. Time is clamped to [0,24]; provided finite numeric parameters are clamped to each built-in range, and invalid/missing values fall back to defaults. Slider step sizes do not imply the pure API rounds values to those steps. docs/index.html:214–219 docs/index.html:243–258 docs/index.html:369–381

Outputs are spreadBps, netEdgeBps, netPnlUSD, costUSD. P&L is a single hypothetical opportunity, not an integral of the waveform. There is no battery energy, state of charge, degradation, terminal inventory, execution latency or accepted-order model in this screen. docs/index.html:296–299

Exported JavaScript API

Export Contract
LabSimulation.MODEL_SPECS Ten built-in teaching models with ranges, defaults, metrics and assumptions
getModelSpec(kind) Returns spec or throws for an unknown kind
resolveParameters(kind, provided) Produces the validated/clamped numeric parameter map
evaluateModel(kind, provided, time) Returns the selected model's deterministic numeric metric map
checkCheckpoint(check, metrics) Returns pass, fail or invalid, value, target/operator/tolerance; strict </> ignore tolerance
LabDashboard.getState() Snapshot of kind, copied params, time, play state, selected metric and active module
LabDashboard.evaluateModel, .getModelSpec Same pure functions exposed for classroom inspection

docs/index.html:243–348 docs/index.html:481–482

Other bundled modes

The UMD block contains battery, thermal, degradation, grid, cooling, agents, control, security and charging teaching modes in addition to markets. They are dormant for this repository's configured lesson. Their equations and exports were inspected/enumerated, but the eight numerical checkpoint executions apply only to the active market mode. None is a native VoltRL policy implementation. docs/index.html:171–241 docs/index.html:260–329

Kind Time horizon Model boundary
battery 6 h Ohmic constant-current discharge, depletion cutoff and lumped cooling; no native MWh arbitrage
thermal 60 min One thermal mass with constant heat input and linear removal
degradation 1000 cycles Uncalibrated exponential capacity fade, distinct from native DOD/SOC cost
grid 24 h Ideal daily demand/solar and fixed external battery power; no energy inventory
cooling 60 min Synthetic compute load, constant COP and heuristic inlet temperature
agents 30 min Deterministic fluid queue with coordination overhead
markets 24 h Active spread/cost arithmetic above
control 20 s Closed-form second-order step response from rest
security 60 min Staffing/alert fluid balance, assuming automatic resolutions correct
charging 120 min Constant effective power to 80%, then exponential taper

Local UI data

The lab creates 241 curve samples, exposes the current point in metric cards and canvas text, and exports numeric CSV with current input parameters. Config export is the canonical embedded JSON, not current slider state. Lesson outcomes are kept in the page's in-memory Map; the six-path portfolio guide instead stores notes/completion/motion locally under a key containing repository and source revision. A path marked reviewed is a personal record, not a test result. docs/index.html:410–419 docs/index.html:463–482 docs/portfolio/index.html:351–380

The native catalog filters source-material cards and copies commands; the gallery loads animated media only after a click and removes it when stopped. Archived waveform curves are decorative formulas with rate/temperature/damping controls, not native battery equations. docs/native-lessons.html:50–100 docs/animations/gallery.js:1–20 docs/animations/waveform.html:148–208

The documentation change adds navigation only to the existing pages. The derived handbook uses plain HTML/CSS and native mathematical markup with no script dependency. Runtime keyboard, screen-reader, export and storage checks still need an actual browser session; pure-model execution and static inspection do not establish those outcomes.

Complete built-in parameter and metric keys

This index is read from the actual inline export. Bounds/defaults below are the library fallback values; the active market configuration overrides its defaults as explained above. Nonactive modes remain uncalibrated teaching functions.

Kind Parameters: key, unit, min…max, default Returned metrics: key and unit
battery capacityAh (Ah), 20…200, default 100; currentA (A), 0…30, default 12; resistanceOhm (Ω), 0.005…0.1, default 0.035; ambientC (°C), 0…45, default 25; initialSoc (%), 30…100, default 90 socPct (%); voltageV (V); temperatureC (°C); powerKW (kW)
thermal heatW (W), 100…3000, default 1200; coolingWK (W/K), 10…120, default 40; capacityJPerK (J/K), 3000…60000, default 18000; ambientC (°C), 0…45, default 25 temperatureC (°C); heatRemovedW (W); storedEnergyKJ (kJ); residualW (W)
degradation fadePer1000Pct (% / 1k cycles), 2…40, default 18; temperatureC (°C), 10…50, default 25; cRate (C), 0.2…3, default 1; initialCapacityAh (Ah), 10…200, default 100 retentionPct (%); capacityAh (Ah); resistanceGrowthPct (%); throughputKWh (kWh)
grid demandKW (kW), 100…1200, default 500; solarKW (kW), 0…1400, default 600; batteryKW (kW), 0…300, default 100; carbonGPerKWh (g/kWh), 0…800, default 400 gridImportKW (kW); solarOutputKW (kW); renewablePct (%); emissionsKgPerH (kg/h)
cooling serverCount (servers), 10…500, default 100; utilizationPct (%), 10…90, default 65; ambientC (°C), 5…45, default 30; coolingEfficiency (ratio), 1.5…6, default 3.5 itKW (kW); coolingKW (kW); pue (×); inletC (°C)
agents arrivalRate (tasks/min), 2…40, default 12; agentCount (agents), 1…12, default 4; serviceRate (tasks/min), 1…10, default 4; coordinationPct (%), 0…70, default 20 backlog (tasks); throughput (tasks/min); utilizationPct (%); waitMinutes (min)
markets baseSpreadBps (bps), 0…100, default 35; feeBps (bps), 0…50, default 15; slippageBps (bps), 0…30, default 8; notionalUSD (USD), 1000…100000, default 10000 spreadBps (bps); netEdgeBps (bps); netPnlUSD (USD); costUSD (USD)
control setpoint (units), 10…100, default 60; damping (ζ), 0.1…2, default 0.5; naturalFrequency (rad/s), 0.2…3, default 1; gain (×), 0.5…1.5, default 1 output (units); error (units); velocity (units/s); overshootPct (%)
security alertRate (alerts/min), 2…60, default 20; analystCount (people), 1…12, default 4; reviewRate (alerts/min/person), 1…10, default 4; automationPct (%), 0…90, default 35 backlog (alerts); coveragePct (%); reviewedAlerts (alerts); workloadPct (%)
charging capacityKWh (kWh), 20…120, default 60; chargerKW (kW), 5…180, default 60; initialSoc (%), 5…70, default 20; efficiencyPct (%), 75…99, default 92 socPct (%); chargingKW (kW); energyAddedKWh (kWh); lossKW (kW)

docs/index.html:171–241

Canonical file: docs/developer/BROWSER_MODEL_CATALOG.md · Back to guide navigation

Implemented equations and derivations

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

This chapter describes the pinned implementation, including the differences between the legacy stationary solver and the benchmark. Prices are currency per MWh; synthetic prices have no measured currency calibration. Historical plots interpret the OPSD price columns as EUR/MWh. The browser's USD/bps screen is documented separately. voltrl.py:167–194 voltrl_benchmark.py:1481–1516

1. Energy grid, feasible actions and market cash

Let capacity be C MWh, internal power step P MW and interval Δt h. The internal energy step is q=PΔt. The code requires C/q to be an integer and uses E in {0,q,…,C}. Actions encode charge=0, idle=1, discharge=2, but their energy changes are +q, 0, −q. An action is feasible only when 0≤E+δ≤C. At default C=500 and q=100, the six states are 0,100,…,500 MWh. voltrl.py:36–45 voltrl.py:52–111 voltrl.py:412–481

Grid purchase and sale energies are

Ebuy=max(δ,0)ηc,Esell=ηdmax(−δ,0).E^{buy}=\frac{\max(\delta,0)}{\eta_c},\qquad E^{sell}=\eta_d\max(-\delta,0).

The cash flow is p(Esell−Ebuy)p(E^{sell}-E^{buy}); net reward subtracts the modeled degradation/stress cost. Both efficiencies act on grid energy, while the SOC step stays q. Thus a 100 MWh internal charge with ηc=.95 purchases 105.263158 MWh. max_power_mw is not a separately enforced 100 MW grid-import cap in this implementation. One charge followed by a discharge transfers the same internal q and returns ηcηd=.9025 of the purchased energy when both efficiencies are .95. voltrl.py:167–194

2. Aging proxy

Legacy linear aging is D=d|δ|D=d|\delta|. In nonlinear mode, with x=E/C, x′=(E+δ)/C, ν≥1, 0≤α≤1 and stress coefficient s:

D=αd|δ|+2(1−α)dC𝟏δ<0max{(1−x′)ν−(1−x)ν,0}+sΔt(x′−0.50.5)2.D=\alpha d|\delta|+2(1-\alpha)dC\,\mathbf{1}_{\delta<0}\max\{(1-x')^\nu-(1-x)^\nu,0\}+s\Delta t\left(\frac{x'-0.5}{0.5}\right)^2.

The nonlinear term is an increment of an absolute-SOC depth potential on discharge. It has no cycle history, rainflow counting, changing physical capacity or calibrated electrochemical damage state. The quadratic term uses after-action SOC and also charges idle actions away from mid-SOC. The primary specification uses d=5, α=.25, ν=1.6, s=1. voltrl.py:113–165 voltrl_benchmark.py:1671–1682

For a complete 0→C→0 traversal, the linear contribution is 2αdC. Discharge potential increments telescope to 2(1−α)dC. Their sum is 2dC; SOC stress is additional, so full-cycle normalization does not imply the all-in cost is exactly 2dC when s>0. The existing normalization test sets the default s=0. tests/test_voltrl.py:92–118

At E=200 MWh, idle costs 1((0.4−0.5)/0.5)2=0.041((0.4-0.5)/0.5)^2=0.04 currency/hour. The primary six-point grid omits exactly 250 MWh, so there is no grid point with zero quadratic stress. This explains the stored idle annualization of −350.4 (=−.04×8760). results_revision2/synthetic_summary.csv:1–7

3. Price discretization and transition inference

Quantile edges are fitted on training prices only. Edges must remain distinct, with at least 10K training observations; the outer transform bins extend to ±∞. Each bin's representative is its training mean. voltrl.py:217–266

For destination marginal m and transition counts Nij, smoothing is

Pij=Nij+λmj∑kNik+λ.P_{ij}=\frac{N_{ij}+\lambda m_j}{\sum_kN_{ik}+\lambda}.

The legacy estimator uses a smoothed marginal of destination observations and λ=1 by default. The benchmark uses its fitted frame's bin marginal, λ=12, and optionally a separate count matrix per current UTC hour h. Smoothing is validated as finite/nonnegative; λ=0 fails when a needed row has no outgoing observations. Price transitions are exogenous to battery actions. voltrl.py:278–307 voltrl_benchmark.py:173–224

The benchmark scores the next observed price with a full-support mixture

f(pt+1∣zt,ht)=∑jPht,zt,j𝒩(pt+1;μj,σj2).f(p_{t+1}\mid z_t,h_t)=\sum_j P_{h_t,z_t,j}\,\mathcal{N}(p_{t+1};\mu_j,\sigma_j^2).

Each σj is at least max(.5,.05×pooled training sample SD). The score is mean negative log density using a log-sum-exp computation. Three expanding training folds use boundaries at 1/2, 2/3, 5/6 and all of the development window. K minimizes mean hour-aware validation NLL; the same K is then used for the price-only ablation. The test window never selects K. voltrl_benchmark.py:158–295

The original select_bin_count_bic remains in the legacy CLI. Its density uses finite observed bin widths and its penalty is [K(K−1)+K−1] log(n). It is not the benchmark's revised selection method. voltrl.py:310–370

4. Stationary and finite-horizon control

The legacy stationary Bellman update is

Vn+1(s)=maxa∈A(s)[R(s,a)+γ∑s′P(s′∣s,a)Vn(s′)],0≤γ<1.V_{n+1}(s)=\max_{a\in A(s)}\left[R(s,a)+\gamma\sum_{s'}P(s'\mid s,a)V_n(s')\right],\quad0\le\gamma<1.

VI starts at zero and stops when max absolute value change is ≤tolerance, subject to the iteration cap. PI starts with idle, evaluates a fixed policy via (I−γPπ)V=rπ, and improves it until actions stop changing. The reported Bellman residual is ∥TV−V∥∞\|TV-V\|_\infty. For this discounted finite-state system, the contraction argument bounds value error by residual/(1−γ); small residual is numerical evidence under the model, not physical validation. voltrl.py:494–588

The benchmark instead computes a finite-horizon recurrence, with terminal salvage VH(E,z)=vηdEV_H(E,z)=v\eta_dE and v equal to the training-median price:

Vt(E,z)=maxa∈A(E)[R(E,μz,a)+γ∑jPht,z,jVt+1(E+δ(a),j)].V_t(E,z)=\max_{a\in A(E)}\left[R(E,\mu_z,a)+\gamma\sum_jP_{h_t,z,j}V_{t+1}(E+\delta(a),j)\right].

The primary γ=1 needs no infinite-horizon convergence test; a finite backward loop evaluates each time slice. The observed price determines the current bin when applying the policy. The hour-aware model conditions transitions on UTC hour; the price-only model omits that conditioning. Finite planner ties prefer idle, charge, then discharge; legacy argmax order starts with charge. voltrl_benchmark.py:72–74 voltrl_benchmark.py:311–469

The oracle runs backward on the entire actual test-price sequence with the same SOC grid, costs and terminal salvage. It is an upper bound for feasible policies evaluated under that same finite objective, not an implementable policy input. Discounted stationary policies can optimize a different objective from the undiscounted comparison, and the documentation keeps those cases separate. voltrl.py:648–714

5. SARX forecasts and the historical block

The fitted regression standardizes prices and uses an intercept, lags 1,2,24,48,168 and sine/cosine pairs for daily, weekly and annual periods. Ridge λ=.001 penalizes all coefficients except the intercept. Forecasts recurse from available history and are clipped to training .001/.999 quantiles extended by 25% of their range. This is a fixed training fit, not online retraining. voltrl_benchmark.py:517–652

Synthetic MPC uses the current observed price plus up to 23 future forecasts, solves a forecast DP, and applies its first action. Historical dispatch forecasts 24 hours from the final available prior-delivery-hour observation, fixes the whole action vector, carries SOC between days, and settles against actual prices afterward. Seasonal-mean and prior-day persistence forecasts are explicit historical baselines. No exchange auction calendar is implemented. voltrl_benchmark.py:655–811

6. Metrics and uncertainty

For a trajectory, cash profit is Σr, adjusted profit is J=∑trt+vηd(EH−E0)J=\sum_t r_t+v\eta_d(E_H-E_0), annualized adjusted profit is 8760J/H8760J/H for H hourly observations, and equivalent full cycles are ∑t|δt|/(2C)\sum_t|\delta_t|/(2C). Drawdown uses cumulative cash, not salvage-adjusted wealth. A negative oracle-adjusted profit makes ratio-based interpretation problematic; the main evaluation only computes a percentage when the oracle denominator is positive. voltrl_benchmark.py:814–851 voltrl_benchmark.py:931–960

Across synthetic seeds, the implementation reports sample SD, seeded 5,000-resample percentile intervals for the mean, and paired annualized differences. Within a single case it uses a paired seven-day circular moving-block bootstrap of daily cash differences; this is a different estimand from annualized inventory-adjusted profit and does not propagate fitted-model uncertainty. The statistical audit recomputes means/SD/pairs and interval sanity but does not replay bootstrap quantiles. voltrl_benchmark.py:854–883 voltrl_benchmark.py:1121–1171 synthetic_statistics_contract.py:348–501

There are no PDEs, spatial boundary conditions or numerical time integrators. The boundary problem is discrete SOC feasibility plus initial inventory and terminal value. All native price paths assume hourly observations; using another interval through low-level battery parameters does not automatically generalize the hourly annualization and forecast features.

Canonical file: docs/math-and-physics/EQUATIONS_AND_DERIVATIONS.md · Back to guide navigation

Parameters, symbols and units

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

The implementation uses scalar floats and NumPy/pandas arrays; units are conventions encoded in names and equations, not a runtime units library. Historical price plots use EUR/MWh; synthetic results use the generator's illustrative currency scale. A value in browser USD/bps must not be converted into battery profit without an independently defined model. voltrl.py:52–194 voltrl_benchmark.py:1481–1516 docs/index.html:214–219

Native battery and objective

Symbol / code field Units Legacy default Primary benchmark Validity and meaning
C / capacity_mwh MWh internal energy 500 500 Finite >0; C/q integer
P / max_power_mw MW internal step rate 100 100 Finite >0; no separate AC import/export cap
Δt / interval_hours h 1 1 Positive; benchmark is hourly throughout
q / energy_step_mwh MWh 100 100 PΔt; one full action step
E / soc_*_mwh MWh grid 0…500 same Energy, not percentage
E0 / initial_soc_mwh MWh 200 200 Must match the grid
ηc,ηd / efficiency fields ratio 1,1 .95,.95 Each in (0,1]; round trip .9025
d / degradation_cost_per_mwh currency/internal MWh 0 5 Nonnegative nominal coefficient
nonlinear_degradation boolean false true Enables DOD potential and SOC stress
ν / dod_stress_exponent dimensionless 1.6 1.6 ≥1 in BatterySpec
α / linear_degradation_fraction ratio .25 .25 [0,1]
s / soc_stress_cost_per_hour currency/h 0 1 Nonnegative; after-action SOC stress
p / price currency/MWh generated / CSV generated / OPSD May be negative; finite where validated
v / terminal salvage currency/MWh training median unless CLI override training median Values remaining energy with ηd; initial inventory removed in adjusted metric
γ / planner discount dimensionless per step .99 1 Legacy [0,1); finite horizon (0,1]
tolerance currency-valued value change 1e−8 no iterative primary solve Positive finite; legacy stopping condition
max_iterations iterations 100000 not a finite-horizon setting Positive integer, not boolean

voltrl.py:52–213 voltrl.py:1171–1203 voltrl_benchmark.py:1671–1682

Statistical and protocol configuration

Quantity Implemented choice Consequence
K / price bins Legacy CLI auto or integer; benchmark candidates 4,6,8,10,12,16,20,24,32,40,48 Each training fit needs ≥10K observations and distinct quantile edges
Transition prior λ Legacy 1; benchmark 12 Positive prior covers unseen outgoing states; empirical marginal is fitted separately
σ floor max(.5,.05×training pooled SD) Full real-line Gaussian-mixture scoring; .5 has price units
Development fraction .7 Synthetic floor(.7N); historical split on complete UTC days
SARX lags 1,2,24,48,168 hours Require enough available history; regression uses six harmonic features
SARX ridge .001 Standardized-price fit; intercept unpenalized
Synthetic seeds / hours 0…29 / 17520 each These are generator experiments, not 30 measured markets
Forecast block / MPC horizon 24 h Historical fixed day; synthetic rolling first action
Bootstrap 5000 resamples; seven-day circular blocks within a case Distinguish cross-seed annualized estimates from conditional daily cash estimates
H number of hourly observations Annualization uses 8760/H; not a forecast horizon confidence guarantee

voltrl_benchmark.py:158–295 voltrl_benchmark.py:544–709 voltrl_benchmark.py:854–883 voltrl_benchmark.py:1121–1171 voltrl_benchmark.py:1838–1859

Array and table conventions

Action values are categorical indices 0/1/2, not signed control magnitudes. BatteryArbitrageMDP.state_index(i,j)=iK+j; flattening is SOC-major. A StateModel has bin means/SD of shape (K,), price-only transitions (K,K) or hour-aware transitions (24,K,K). Finite decisions have shape (H,N_soc,K); trajectories have one row per settled hour. UTC timestamps and matching row order are part of the causal contract. voltrl.py:36–45 voltrl.py:374–405 voltrl_benchmark.py:78–102 voltrl_benchmark.py:400–450

A forecast error is forecast minus realized price. ME retains sign, MAE removes it, RMSE squares before averaging and taking a square root. These are price-unit errors, not revenue metrics. CSV booleans, empty optional cells and mixed synthetic/historical diagnostics must be interpreted by column meaning rather than assuming every field is present in every row. historical_forecast_contract.py:194–207 historical_forecast_contract.py:365–410

Canonical file: docs/math-and-physics/PARAMETERS_AND_SYMBOLS.md · Back to guide navigation

Assumptions, interpretation and limits

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

VoltRL is a research comparison under specified data and information rules. Its code does not establish dispatch feasibility for a real installation, bid acceptance, a calibrated battery lifetime or expected live income. Preserve the policy, objective, source commit and data record whenever quoting a number. README.md:270–278

What is modeled, and what is absent

Area Implemented Practical limit
Battery Six default internal-energy states; full charge/idle/discharge step; fixed efficiencies; SOC bounds No partial-power action, ramps, outages, AC converter limit, state-dependent efficiency, self-discharge or network constraint
Aging Nominal throughput term, discharge DOD potential, quadratic SOC occupancy cost No rainflow cycles, empirical lifetime fit, capacity fade or thermal/electrochemical state
Prices Synthetic regime/seasonal process or historical DK1/DK2 hourly series Exogenous price taker; no price impact, bids, liquidity, fees, imbalance or accepted-volume uncertainty
Policy Estimated finite-state transitions and dynamic programming, threshold, SARX MPC/block baselines No deep-RL training, exploration interaction or production trading integration
End of horizon Training-median salvage times discharge efficiency Inventory-adjusted comparison depends on this chosen terminal valuation
Uncertainty Repeated synthetic seeds and specified bootstrap estimands No generalization certificate for a future market or plant

voltrl.py:52–194 voltrl.py:800–834 voltrl_benchmark.py:311–811 voltrl_benchmark.py:854–883

Information and preprocessing caveats

Synthetic decisions see current realized price before choosing the current action. Historical causal policies commit 24 actions from forecast prices before the delivery day. The oracle sees the whole realized future and must stay labeled as an upper bound. The test that changes first-day realized prices confirms unchanged first-day schedules for the SARX policy; it does not prove correspondence to an exchange's auction clock. tests/test_voltrl_benchmark.py:79–122

The historical loader interpolates internal gaps over the complete selected series before splitting it. The committed data-quality table records 12 interpolated hours out of 50,398 per zone (~.02381%). This is a disclosed offline imputation rule; source review did not retrieve the raw OPSD input or independently identify the causes of those gaps. Complete-day trimming subsequently removes 46 boundary hours; both zones have 15,120 historical test hours. voltrl_benchmark.py:1083–1118 results_revision2/data_quality.csv:1–3 results_revision2/case_diagnostics.csv:32–33

The timestamp named information_available_through_delivery_timestamp is the previous delivery hour in code. No publication-latency or market-gate mapping exists. A future operational study must define those times explicitly, use only information demonstrably available then and re-evaluate forecast schedules. voltrl_benchmark.py:712–811

Stored result interpretation

The revision-2 synthetic table records SARX MPC mean annualized adjusted profit of 5,133,511.75 and hour-aware MDP 4,620,099.80 in the synthetic currency scale. The paired hour-aware-minus-SARX mean is −513,411.95 across 30 seeds. These are archived benchmark results generated by the manifest's older source snapshot; the documentation audit did not regenerate all seeds. results_revision2/synthetic_summary.csv:1–7 results_revision2/paired_seed_comparisons.csv:1–5

The historical table is a different experiment: SARX block annualized adjusted profit is 129,293.75 EUR in DK1 and 187,344.12 EUR in DK2. Seasonal-mean leads the listed causal DK1 policies (407,482.68 EUR), while persistence leads DK2 (420,479.10 EUR). Better price MAE therefore does not by itself imply better dispatch profit. The table's oracle rows share the protocol label column but still use full future realized prices and are not causal competitors. results_revision2/real_market_metrics.csv:1–11 results_revision2/historical_forecast_summary.csv:1–7 voltrl_benchmark.py:982–1080

The synthetic figures label currency units, while older README prose expresses the same synthetic amounts in EUR. Treat the generated series as an uncalibrated illustrative price scale; only the historical columns have the OPSD market provenance. This handbook preserves the original prose and records this qualification rather than changing result data. README.md:108–119 voltrl_benchmark.py:1501–1516

Audit limits that must stay visible

  • The artifact audit verifies files declared in outputs and their inventory records. It does not inventory every extra file that happens to be in a result directory. CSV line endings are canonicalized CRLF→LF; figures remain byte-exact.
  • Clean software provenance covers the three declared default files at the recorded Git commit. It does not automatically attest all helpers, all working-tree changes or the complete environment.
  • The experiment contract checks complete candidate/fold coverage and consistency of selected K. It does not rerun NLL fitting or prove the selected K is the true minimum or an interior optimum.
  • The synthetic statistics contract recomputes summaries and checks interval ordering/mean inclusion. It does not reproduce bootstrap percentile endpoints or recompute raw battery trajectories.
  • The historical contract reconstructs error arithmetic and timing consistency in recorded rows. It does not establish that forecasts were generated from the claimed information set or verify an auction publication calendar by itself.

artifact_integrity.py:48–77 artifact_integrity.py:87–193 software_provenance.py:124–252 experiment_contract.py:321–525 synthetic_statistics_contract.py:348–501 historical_forecast_contract.py:181–526

There is no spatial PDE or physical boundary-value solver to validate. Numerical agreement, causal dependency tests, source integrity and measured validation answer different questions. Keep each result attached to the check that actually supports it.

Canonical file: docs/math-and-physics/ASSUMPTIONS_AND_LIMITS.md · Back to guide navigation

Verification evidence ledger

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

This ledger separates observed local execution, recorded historical evidence and work still needed for delivery. Its review target is source 8058e89e4d3516825a400fe86ac45d2e36b6bef0; it does not claim a documentation commit, merge or deployment identity. Exact candidate fingerprints, command logs and independent QA receipts belong to the external delivery record.

Executed during the 2026-11-19 review

Check Observation What it supports / limit
Canonical source identity 178 Git-tree entries; 146 blob payloads hash-verified Complete path accounting; semantic dispositions differ by artifact
Existing unit tests python -m unittest discover -s tests -v: 80 tests passed Existing solver, causality, validation, tampering and audit fixtures; no coverage-percentage claim
Revision-1 aggregate audit Four passed, historical forecast check explicitly skipped Applicable stored contracts, not the later historical protocol
Revision-2 aggregate audit All five checks passed Stored table/inventory/source/timing checks, not a fresh experiment
Native help All nine module --help commands succeeded CLI parsing/declared options, not every argument combination
Legacy smoke 1000 synthetic hours, seed 7, four fixed bins; successful outputs and VI/PI convergence Small legacy calculation, not primary benchmark replication
Native finite-horizon example 2400 synthetic hours, seed 7, fixed four bins; feasible SOC and oracle-bound assertion passed Concrete default-primary battery example on one synthetic path
Portfolio validator Six source-linked paths validated Config/embed/source-path/SVG checks, not browser execution
Active browser pure model Eight market-mode lesson checkpoints passed; embedded JSON equals config Actual inline arithmetic only; no UI/clipboard/storage test

Relevant test definitions: tests/test_voltrl.py:22–118 tests/test_voltrl_benchmark.py:22–122 tests/test_numeric_and_causal_inputs.py:16–126. The full test directory includes adversarial contract, path, digest and result-summary fixtures; their scope is accounted in source evidence.

Stored bundle identity

Bundle Recorded generating source Declared outputs Applicable audit
results_revision 2e01d9fcec78adbf30357a4cda05b19f6d572b04 20: 10 CSV + 5 PNG + 5 PDF Configuration, synthetic statistics, artifact integrity, software provenance; historical forecast skip
results_revision2 70fa9609a1a122055f50f7897720eefc97cbb3e0 25: 13 CSV + 6 PNG + 6 PDF All five, including historical forecast contract

These manifests record Windows/Python 3.12.13 with NumPy 2.5.1, pandas 3.0.1 and Matplotlib 3.11.0. Current pinned requirements and the local review environment differ. Clean source verification reads the recorded historical Git blobs, which is why older result source remains auditable after code changes. results_revision/experiment_manifest.json:1–125 results_revision2/experiment_manifest.json:1–140 software_provenance.py:163–252

The revision-2 historical contract checked 90,720 detail rows and 3,780 fixed forecast blocks. No manual review of every CSV row is claimed. The 11 PNG and 11 PDF result artifacts were integrity-checked and indexed; no new full figure-by-figure visual certification or manuscript render is claimed.

Claim-specific evidence

Claim Strongest available evidence Remaining boundary
SOC feasibility and stochastic transitions Existing unit fixtures and native example Only discrete modeled constraints
VI/PI numerical agreement Tests plus legacy smoke Discounted model, not physical calibration
SARX avoids future-price reads Perturb-future tests Does not establish exchange publication time
First historical day stays precommitted Perturb-first-day test Does not model accepted bids or latency
Reported synthetic means/paired values match rows Statistics contract Bootstrap endpoints are sanity-checked, not regenerated by this audit
Forecast errors/blocks align Historical contract Does not rebuild fitted forecasts from raw data
Files match declared bundle Artifact and historical-source audit Declared outputs and three default software paths only
OPSD bytes match source record Verification routine exists and fixture tests pass Actual external CSV absent in this review; not executed against the real file

Remote and publication state

At the read-only metadata snapshot, source-head checks deploy, validate and human-authorship-policy were successful. These are checks for the reviewed source, not checks for the authored documentation. The source-head check set does not include a fresh Python-validation result; path-filtered workflows need separate interpretation.

The repository has a Pages route and an active signature ruleset. Classic protection details were inaccessible through the integration API. Candidate CI, complete required-review/check policy, expected-head merge, deployment commit linkage and live updated handbook content must be observed after a real candidate exists. No “published” or “merged” state follows from local PASS. Delivery procedure.

Re-run evidence rather than copying conclusions

Run the exact setup/audit commands, retain command, environment, start/end time, tested revision or full candidate tree fingerprint, exit code and output. Link any synthetic-merge/queue run back to both PR head and base. If an input changes, invalidate the relevant result instead of borrowing an older successful check. Archive measured results and disclose unexecuted historical reproduction or inaccessible policy independently.

Canonical file: docs/maintainer/VERIFICATION_EVIDENCE_LEDGER.md · Back to guide navigation

CI, release and publication playbook

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

The source configures GitHub Actions and a static GitHub Pages deployment. There is no CircleCI or Buildkite configuration in the pinned tree. A missing optional provider connector is therefore not a Voltrl validation failure. Preserve current workflow behavior and use repository-configured checks. .github/workflows/python-validation.yml:1–60 .github/workflows/deploy-dashboard.yml:1–82

Actual workflow coverage

Workflow Triggers at this source Work and material limits
no-codex-attribution.yml PR, merge group, main push and all tag pushes human-authorship-policy; scans event-specific commit ranges for metadata policy, not documentation meaning
python-validation.yml Manual; PR and main push with Python, .gitattributes, data JSON, results, requirements or workflow paths Python 3.12, pinned requirements, full Git history, all unit tests and both bundle audits; no fresh external-data reproduction
markdown-maintenance.yml Manual; PR/main push for Markdown, CFF or its own file Lychee checks only README.md, MANIFEST.md and data/README.md; added handbook links are not included
portfolio-dashboard-check.yml PR and push with guide/asset/validator/workflow paths; no branch filter and no manual trigger Validates six-path config, paths and SVG; tag pushes are not path-filtered by GitHub
deploy-dashboard.yml Main push changing docs/assets/self; manual Static validation, then main-only Pages deployment of docs/; not a PR preview

.github/workflows/no-codex-attribution.yml:1–99 .github/workflows/python-validation.yml:1–60 .github/workflows/markdown-maintenance.yml:1–37 .github/workflows/portfolio-dashboard-check.yml:1–22 .github/workflows/deploy-dashboard.yml:1–82. GitHub documents that path filters are not evaluated for tag pushes.

A new .py documentation renderer matches the Python validation paths. The current workflows do not execute the renderer's freshness check or a comprehensive handbook link check; run these locally and record the gap for a separately reviewed CI change. Preserve job names and gates when evaluating future CI economics. AGENTS.md requests measured savings, pinned actions and retention of required coverage. AGENTS.md:1–3

Observed protection, not assumed policy

On 2026-11-19, ruleset 20091523 was active on all branches, with required_signatures, no bypass actors and current_user_can_bypass=never. Branch metadata marked main protected. The classic protection endpoint returned HTTP 403 to the integration; that leaves its required reviews/checks unknown. Rulesets and classic protection are separate sources of requirements. A permissions summary or historical green check cannot fill that gap.

Before delivery, read the complete applicable rules in an authorized supported surface, refresh the base/head and inspect the exact candidate diff. Use a legitimately verified commit route permitted by the signature rule. Do not change policy, disable checks, forge an identity or treat an unsigned API commit as verified. Current metadata policy and attribution must also be honored.

Ordinary guarded delivery

  1. Create an isolated documentation branch from the intended base and stage only the reviewed documentation/navigation/renderer files. Preserve application, workflow, dependency, result and license bytes.
  2. Bind independent QA to the complete candidate tree. After committing, bind that same reviewed tree to the actual signed commit SHA; re-review any changed content.
  3. Open the scoped PR and observe checks on its current head or the correct tested merge revision. Capture provider, conclusion, revision linkage and required-policy source. Resolve reviews/conversations and use any required merge queue normally.
  4. Re-fetch head/base/rules immediately before merge. Use an expected-head guard; do not allow a changed PR head to inherit approval for an earlier tree.
  5. Record merged SHA and deployment identity separately. A PR page or pending/neutral/skipped check is not a passed required gate.

Release records and a new research release

Read-only metadata found existing v1.0.0 and v1.1.0, both published 2026-07-16. Their annotated tags point to 2e01d9f… and 70fa960… respectively. Existing CFF declares software v1.1.0/date 2026-07-16; this documentation change does not create a version, DOI, release or manuscript publication. CITATION.cff:1–13

For a future research release, rerun the declared data/protocol, capture actual source/runtime provenance, audit all outputs, review changed scientific conclusions, reconcile CFF/codemeta/release notes and verify downloadable release assets. MANIFEST.md lists manuscript, reference-template, response and ZIP paths absent from the pinned tree; obtain and verify them separately before claiming a complete submission archive. MANIFEST.md:5–9 MANIFEST.md:51–63

Pages verification

The existing workflow uploads all of docs/, then deploys with Pages/id-token permissions on main. It preserves deployment concurrency (cancel-in-progress: false). A successful source-era deployment does not prove the new handbook is live. .github/workflows/deploy-dashboard.yml:18–82

After merge, identify the deployment run's source commit, environment and reported URL. Open the actual /voltrl/reference/ route, confirm the dated source snapshot and a changed chapter, and check navigation from the existing lab. Verify the deployment corresponds to the merged candidate. Record AWAITING_DEPLOYMENT or a concrete failure if it does not; do not mark publication from HTTP success alone.

Canonical file: docs/maintainer/CI_CD_AND_RELEASE_PLAYBOOK.md · Back to guide navigation

Toolchain and dependency matrix

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

Distinguish the current declared environment, the environment recorded in archived experiments and the environment actually used for documentation checks. All current requirement and workflow bytes are preserved. requirements.txt:1–8

Component Source declaration / archived record Review observation and purpose
Python README recommends 3.12; Python workflow requests 3.12 3.12.14 on Linux; existing native tests and examples executed
NumPy Current 2.5.4; archived manifests 2.5.1 2.5.4 installed; arrays, linear solves, random generators
pandas Current 3.1.1; archived 3.0.1 3.1.1 installed; hourly frames, CSV, aggregations
Matplotlib Current 3.11.2; archived 3.11.0 3.11.2 installed; Agg figure generation
python-docx 1.2.0 Exact requirement installed; manuscript builder is absent from tree, so no DOCX build was claimed
latex2mathml 3.81.1 Exact requirement installed; not needed by the native solver example
lxml 6.1.3 Exact requirement installed; no complete XML toolchain qualification
Pillow 13.0.0 Exact requirement installed; no fresh archival figure visual certification
PyMuPDF 2.1 Exact requirement installed; this alone does not reproduce the source-listed manuscript
Git Full historical objects needed for clean recorded-source audit Candidate history fetched read-only; both recorded commits resolved
Node.js No Node package/lockfile declared by this repository Used only as an external review harness for the actual inline browser model
Pandoc Added documentation-maintenance prerequisite, not scientific runtime dependency 3.1.11.1 used to render canonical Markdown to static HTML/MathML
JSON Schema / YAML No native solver runtime requirement External review tools validate CFF, static lesson schema and handoffs
GitHub Actions / Pages Pinned action references and explicit job permissions Current source-head checks observed separately from local tests; candidate delivery pending

README.md:157–188 results_revision2/experiment_manifest.json:1–140 .github/workflows/python-validation.yml:39–60.

The author environment used an isolated venv with system packages inherited, then installed the eight exact requirements.txt pins. Record the resolved environment for a reproduction; this review does not certify installation into a minimal fresh OS or all transitive dependencies on every platform. The archived Windows runtime and local Linux runtime should not be presented as bitwise equivalent execution environments.

Updating dependencies

Dependabot declares weekly pip and GitHub Actions updates with five open PRs per ecosystem. Review changes against native tests, both historical bundle audits and applicable documentation checks. Historical provenance should continue to validate the old recorded blobs even when the current requirements change. Do not replace historical source digests with current files. .github/dependabot.yml:1–12 tests/test_software_provenance.py:60–75

Pandas deprecation warnings observed in seasonal timestamp features are a maintenance issue to schedule before a future major upgrade. No dependency or implementation change is part of this documentation package. voltrl_benchmark.py:517–531

Reproducibility record checklist

Retain OS/Python/package versions, source SHA, clean/dirty scope, raw input hash/filename, candidate K values, seeds, physical settings, information protocol, terminal valuation, generated artifact inventory and all verifier outcomes. For a docs-only change also retain renderer version and the canonical-input hashes embedded in the generated page. The local evidence ledger is a review snapshot, not a support contract.

Canonical file: docs/maintainer/TOOLCHAIN_AND_DEPENDENCY_MATRIX.md · Back to guide navigation

Failure modes and technical debt

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

These findings are source-backed proposals. The documentation package preserves the scientific engine, workflows, dependencies and committed results. Stable roadmap IDs identify the follow-up work.

ID Finding and consequence Proposed bounded follow-up
VR-01 Historical information timestamps describe the prior delivery hour, without exchange publication/gate mapping; offline interpolation precedes the split Define an explicit information-availability contract and imputation study before operational timing claims
VR-02 “100 MW” fixes internal SOC step; inefficient charging draws more than 100 MWh over one hour Document internal vs AC interpretation now; separately assess an explicit converter-limit model and comparison protocol
VR-03 Custom sensitivity seed and synthetic seed-count CLI values can leave hardcoded Synthetic seed 42 and 30 seeds labels Derive labels from actual configuration and add nondefault-run metadata tests
VR-04 Existing contracts do not recompute bootstrap endpoints or prove selected K minimizes the fold scores; provenance defaults cover only three source files Extend claim-specific audits and provenance scope with backwards-compatible historical behavior
VR-05 Lychee checks only three old Markdown files; no handbook freshness/link check in CI Add scoped docs validation while preserving required checks and measured CI economics
VR-06 Current pandas emits deprecated timestamp-property warnings Replace deprecated accessors in a separate maintenance PR and test numerical equivalence
VR-07 Submission manifest references manuscript/template/ZIP assets absent from source tree Reconcile availability and create a recoverable publication-asset record without invented publication status
VR-08 Source-linked browser packages pin older teaching revisions; native catalog has one historical README entry Keep provenance explicit; propose a reviewed route from teaching assumptions to the new native handbook
VR-09 Scientific parameters and simplifications are uncalibrated to a particular battery/market deployment Design an exploratory measured-data and protocol-validation study with declared acceptance criteria

Evidence: VR-01 voltrl_benchmark.py:712–811 voltrl_benchmark.py:1083–1118; VR-02 voltrl.py:105–111 voltrl.py:167–180; VR-03 voltrl_benchmark.py:1289–1400 voltrl_benchmark.py:1495–1495; VR-04 synthetic_statistics_contract.py:348–501 experiment_contract.py:321–525 software_provenance.py:14–18; VR-05 .github/workflows/markdown-maintenance.yml:24–37; VR-06 voltrl_benchmark.py:517–531; VR-07 MANIFEST.md:5–9 MANIFEST.md:51–57; VR-08 docs/portfolio/README.md:23–29; VR-09 README.md:270–278.

Operational failure handling

A source-hash mismatch, required-policy unknown, unsigned candidate under a signature rule, failed required check, stale candidate head or unproven deployment is a reason to preserve the reviewable work and resolve that specific gate. It is not a reason to lower the standard or relabel a historical successful run. The release playbook specifies the required observations.

Output directories can be overwritten by experimental commands. Write new runs outside committed result folders, retain their configuration/provenance, and compare meaning before comparing numbers. For verifier failures, restore known intended bytes or create a new declared experiment; do not use --write to erase evidence of drift. Troubleshooting.

Scope and severity

VR-01/02 are high-priority scientific interpretation boundaries, not claims of a demonstrated live-system failure. VR-03 is a concrete labeling defect for nondefault runs. VR-04/05/06/07 are audit, maintenance and recovery gaps. VR-08 is documentation evolution; VR-09 is exploratory research. The roadmap assigns proposed horizons, roles, dependencies, effort and measurable checks without implementing these proposals here.

Canonical file: docs/maintainer/FAILURE_MODES_AND_TECH_DEBT.md · Back to guide navigation

Documentation maintenance runbook

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

Markdown is canonical. docs/reference/index.html is a dated derived reading view built from the explicit chapter manifest, renderer and stylesheet. Keep the existing lesson pages as their own preserved teaching products; add navigation without changing their models or embedded configurations.

A source-grounded update

  1. Pin the reviewed commit and enumerate its full Git tree. Read changed scientific logic, public interfaces, tests, data records and publication configuration; index generated/binary material with an honest disposition.
  2. Update canonical pages with exact source commit/line links. Distinguish implemented behavior, declared settings, measured checks, inferred limitations and proposed work. Keep source, test, result-generation, docs, merge and deployment identities separate.
  3. Update the chapter manifest's reviewed date/source only when the underlying review changes. Update affected equations, parameter tables, examples and evidence limits together.
  4. Run the relevant native commands and docs checks. Preserve command/environment/revision/outcome receipts externally; avoid circular “this commit verified itself” claims in the files it introduces.
  5. Regenerate the reading view, inspect desktop/narrow reading layouts, then obtain independent content review and follow the guarded release playbook.

Regenerate deterministically

python docs/reference/build_reference.py
python docs/reference/build_reference.py --check
python scripts/portfolio/validate_guide.py
git diff --check

The renderer uses a fixed file manifest, Python standard library and Pandoc (reviewed with 3.1.11.1). It converts GitHub-flavored Markdown and mathematical expressions to static HTML/MathML, namespaces headings, resolves chapter links, and records SHA-256 for each canonical input plus manifest, renderer and CSS in a final HTML comment. It rejects active chapter HTML/event attributes and uses an explicit no-script Content Security Policy. It writes only the derived index.html; --check compares the expected output without writing. A different Pandoc version can cause a deliberate freshness diff and needs review.

Chapter links resolve within the generated handbook; site HTML routes remain local. Repository files outside the handbook are linked to the reviewed source SHA, while the canonical Markdown preserves normal repository-relative navigation. The root README is an entry point and is preserved; its large existing presentation is not duplicated as a handbook chapter. New policies and citation metadata are included in the reading view.

Required review checks

Verify all 24 requested canonical outputs, preserved README/CONTRIBUTING prefixes and unchanged citation/license. Check local Markdown and generated HTML paths/anchors, source locator ranges, unique headings/IDs, no broken table/fence structure, CFF 1.2.0 schema, all planned roadmap fields, and an authorized file diff. New native examples need actual execution or an explicit unexecuted label. User-facing dates are snapshots or proposals, not release/deployment claims.

The current Lychee workflow checks README, MANIFEST and data/README only. Its success does not establish complete handbook link coverage. The portfolio validator likewise validates the existing six-path guide, not every new chapter. Keep the local full-handbook checks until separately authorized CI work closes this gap. .github/workflows/markdown-maintenance.yml:24–37 scripts/portfolio/validate_guide.py:1–33

Presentation and accessibility

The handbook uses the existing dark purple, cream and orange palette; readable line length, visible keyboard focus, a skip link, scrollable wide tables, mobile chapter navigation and a print stylesheet. It introduces no motion, network script or external font. Inspect equations, long source links, tables and code on a narrow viewport and in print. Static structure checks support this review; only an actual browser/assistive-technology session can establish runtime accessibility.

Correcting a published statement

Add a dated correction grounded in evidence, regenerate the handbook and review the exact diff. Preserve archived result files and source manifests unless a separately authorized scientific change intentionally supersedes them. If the old bundle is withdrawn, retain the explanation and provenance instead of silently rewriting history. Use CHANGELOG for documentation changes and ADR index for decisions requiring owner approval.

Canonical file: docs/maintainer/DOCS_MAINTENANCE_RUNBOOK.md · Back to guide navigation

Architecture and scientific decision register

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

This register is reconstructed from reviewed source and documentation. The pinned tree contains no original approved ADR series. “Observed” below records implemented practice, not an invented historical approval. Future changes need an owner-reviewed decision record with alternatives, evidence and consequences.

ID Status Decision / consequence Evidence and follow-up
ADR-0001 Observed Use a discrete internal-energy SOC grid and full charge/idle/discharge actions voltrl.py:52–194; VR-02 evaluates separate grid-side power limits
ADR-0002 Observed Separate synthetic sequential policy inputs from historical fixed 24-hour forecasts/schedules voltrl_benchmark.py:655–811; VR-01 formalizes real information availability before operational claims
ADR-0003 Observed Select K by training-only hour-aware NLL and share it in the price-only ablation voltrl_benchmark.py:261–295; VR-04 proposes stronger selected-K audit
ADR-0004 Observed Compare finite-horizon reward with training-median terminal inventory; retain oracle as an upper bound voltrl_benchmark.py:311–397 voltrl_benchmark.py:814–851
ADR-0005 Observed Audit declared result files and three default software paths separately from fresh execution artifact_integrity.py:48–77 artifact_integrity.py:87–193 software_provenance.py:14–18 result_bundle_audit.py:75–162
ADR-0006 Documentation package decision Maintain Markdown as canonical and regenerate the static handbook Renderer and maintenance contract; no native algorithm change
ADR-0007 Proposed Define an explicit publication-asset and backup-maintainer recovery record Recovery runbook; VR-07, owner assignment pending

For a new ADR, state the problem, alternatives, evidence/source SHA, chosen scope, expected benefits, risks, measurable validation and whether owner approval exists. Include units, information timing and objective changes for scientific proposals. Keep proposed dates/staffing separate from implemented behavior.

Canonical file: docs/owner/ADR/ADR-0000-INDEX.md · Back to guide navigation

Governance and project scope

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

The repository owner is mohammadrezwankhan; existing citation metadata identifies Mohammad Rezwan Khan and the ORCID already recorded by the project. No backup maintainer, service-level agreement or production operator is declared in the pinned source. Role assignments below are proposals, not evidence of staffed teams. CITATION.cff:1–13

Purpose and supported claims

Maintain an auditable finite-state battery-arbitrage benchmark with explicit data, information, objective and source provenance. The project compares policies and exposes their limits; it does not connect to a market, dispatch a plant or certify degradation. Its teaching site is a separate synthetic explanation. README.md:90–119 README.md:270–278

Responsibility Suggested role Required decision/evidence
Scientific protocol and claims Scientific maintainer Approve information boundary, battery/cost conventions, comparison objective and uncertainty estimand
Implementation and audit contracts Python maintainer Preserve reproducible interfaces and historical audit behavior; add meaningful regression tests for changes
Research data Data steward Record exact OPSD version/digest, terms, preprocessing and any proposed new input
Documentation and teaching Documentation maintainer Keep native and browser boundaries explicit; regenerate derived handbook
CI, release and access Repository owner / release maintainer Observe complete branch rules, signatures, checks/reviews, guarded merge and deployment provenance
Recovery Designated backup maintainer, to be appointed Demonstrate restore/audit procedure using independently retained repository and required input

The owner should approve scientific scope expansions, new data/licensing obligations and release claims. Documentation clarification can preserve current science while recording defects as proposals. Roadmap effort and staffing are estimates, not commitments.

Sources of authority

Source and tests define implemented behavior; manifests define archived experiment configuration; OPSD defines its data package and upstream terms; CFF and LICENSE define existing software attribution/license. A README assertion, a browser checkpoint or a successful hash audit alone does not establish the whole scientific claim. Evidence limits.

The observed active signature ruleset has no bypass. Classic protection details require an authorized refresh before integration. Owner permissions do not erase these requirements. Retain exact-revision QA and delivery receipts separately from canonical explanatory documents. Release playbook.

Decisions requiring explicit follow-up

The current interpretation of max_power_mw as internal step rate, historical delivery-time abstraction, interpolation method, terminal valuation and aging proxy materially affect interpretation. Changing any of them needs a reviewed protocol and a new comparison, not just a wording change. Submission assets referenced by MANIFEST are unavailable in this tree; publication claims require the actual assets and checks. voltrl.py:105–194 voltrl_benchmark.py:712–811 voltrl_benchmark.py:1083–1118 MANIFEST.md:5–9

Public project documentation contains only public Voltrl evidence. Do not insert private portfolio repository identities, counts, findings, credentials or owner recovery secrets into this repository.

Canonical file: docs/owner/GOVERNANCE_AND_SCOPE.md · Back to guide navigation

Recovery and continuity runbook

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

A successful recovery means another authorized maintainer can identify the right code/data, run the applicable audits, explain the claim limits and restore publication through normal gates. It does not require inventing a new experiment or weakening the signature policy.

Recover the scientific record

  1. Obtain a full repository clone from the approved origin or a verified mirror. Check source SHA and complete tree; preserve release/tag objects and the older generating commits recorded by the manifests.
  2. Create an isolated Python 3.12 environment and install the exact current requirements for current tests. Retain the historical manifests' runtime records separately; current pins are not the archived environment.
  3. Run the 80-test suite and both aggregate bundle audits. Revision 1's historical skip is expected; revision 2 needs all five checks. Stop and diagnose any missing object, file or digest mismatch.
  4. For a fresh historical reproduction, obtain the original OPSD versioned file, give it the required basename and pass input_provenance.py. Store input access and licensing information in an authorized location. Raw data is not in Git.
  5. Run a new experiment into a fresh output directory, capture configuration/source/runtime provenance and audit it. Compare protocols before comparing profit values.

README.md:179–205 data/opsd_source.json:1–8 result_bundle_audit.py:75–162

Recover documentation publication

Regenerate docs/reference/index.html from canonical Markdown/CFF, run --check, validate links and inspect the static view. Open the teaching lab separately to ensure navigation still works. Preserve lesson JSON/source identities and archived animations. Then use a signed documentation commit, the repository's required reviews/checks and an expected-head merge. Trace the main-branch Pages run to the merged revision and confirm the changed live handbook. .github/workflows/deploy-dashboard.yml:26–82

What must be retained outside ordinary working files

Material Why it matters Recovery evidence
Full Git history and release refs Historical clean provenance reads old blobs Both bundle software checks pass
Original versioned OPSD input Needed for new historical experiments Required basename and raw SHA match
Exact candidate/QA/delivery receipts Establish what was reviewed and merged Fingerprint-to-commit-to-deployment chain
Publication assets listed by MANIFEST Manuscript/template/response/ZIP are absent in this tree Independently obtained bytes, checksums and actual build/render receipts
Authorized owner/access recovery procedure Access policy is external to repository content Owner-confirmed recovery drill; no credential material in Git

software_provenance.py:163–252 MANIFEST.md:5–9 MANIFEST.md:51–57

Proposed continuity drill

Assign a backup maintainer, restore a full clone into an isolated directory, reproduce the local checks without help from the original author, and have them explain: current vs recorded source, skipped vs passed audit, synthetic vs historical vs browser units, and the missing raw-data/publication-assets boundaries. Record failed steps and owners. Proposed acceptance: all applicable audits pass, no undocumented access dependency remains, and the new maintainer can regenerate the handbook. No backup person or completed drill is claimed by this snapshot.

Canonical file: docs/owner/BUS_FACTOR_RECOVERY_RUNBOOK.md · Back to guide navigation

Portfolio integration and reuse boundaries

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

Voltrl can contribute a public source-backed research reference to a portfolio: discrete battery accounting, causal information protocols, model-selection records and claim-specific result audits. It has no implemented runtime integration with another repository in this snapshot. Reuse is a proposal until an interface and corresponding evidence exist.

Reusable pieces and their limits

Piece Useful reuse Conditions before reuse
Battery energy/reward conventions Explain internal vs grid energy, cost and terminal inventory Preserve units and distinguish the internal step from an AC limit
Hour-aware/price-only ablation Teach training-only model selection and state assumptions Preserve the selected-K procedure, split and exogenous-price model
Audit layers Separate file integrity, software provenance, table statistics and timing Carry each audit's actual scope; do not advertise full experiment reproduction
Derived handbook pattern Publish canonical Markdown through existing static Pages Review renderer/CSP/navigation for the target repository; no application dependency implied
Teaching proxy Demonstrate gross spread minus costs Keep it labeled USD/bps, synthetic, noncumulative and separate from native MWh profit

voltrl.py:105–194 voltrl_benchmark.py:261–295 result_bundle_audit.py:75–162 docs/index.html:296–299

Public hub entry

A public summary may identify this public repository, its source snapshot, the current documentation route, applicable local checks and dated result-bundle limits. It should link the evidence ledger, assumptions and roadmap. Describe merge/deployment only after exact receipts exist. Do not publish private portfolio counts, source paths, names or derived findings here.

Shared work without fictional dependencies

Documentation-format validation, CFF validation and exact-revision delivery procedures may be coordinated across repositories. Voltrl's current Python imports remain local modules plus declared third-party packages; no cross-repository orchestration or model API was found. Roadmap items VR-04/05 can share validation design review, but no upstream project is a blocking runtime dependency. Scientific extensions must be assessed on Voltrl's own source/data, not copied claims from another battery repository. voltrl_benchmark.py:1–47

Useful owner indicators

Track audited result-bundle identities, remaining protocol ambiguities, native test outcomes, publication-asset availability, documentation freshness and the latest verified live handbook revision. Avoid a single undifferentiated “healthy” score: local content, CI, merge and publication are separate outcomes. The proposed recovery drill gives a measurable continuity check.

Canonical file: docs/owner/PORTFOLIO_INTEGRATION.md · Back to guide navigation

Twelve-calendar-month development roadmap

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

All items below are proposals, not staffed commitments or changes implemented by this documentation package. Window: 2026-11-19 through 2027-11-18 inclusive (end-exclusive 2027-11-19). Now covers the remaining part of Q4 2026; Next is Q1 2027; Later is Q2 2027; Horizon spans Q3 and the first 49 days of Q4 2027. Effort means person-days of focused work, not calendar duration.

The current package clarifies source behavior and adds navigation. Algorithm, workflow, dependency and scientific-policy changes below require separate owner review. Shared documentation/audit design can be coordinated across the portfolio, but no cross-repository runtime dependency is implemented. Critical scientific sequence: VR-01 → VR-02 → VR-09, with VR-04 and VR-07 evidence/recovery prerequisites.

Now

VR-01 — Make historical information availability and preprocessing independently reviewable.

Engineering improvement · P1 · Proposed 2026-11-19–2026-12-31.

Write an explicit delivery/publication/decision timeline; assess interpolation before splitting and define an auditable alternative protocol before operational claims.

Evidence: voltrl_benchmark.py:712–811 voltrl_benchmark.py:1083–1118

Owner role: Scientific maintainer with data steward. Dependencies: None. Effort: 3–6 person-days. Confidence: Medium.

Risks: An actual market gate may invalidate the current prior-delivery-hour abstraction. Unresolved assumptions: Relevant official publication timing and raw input remain obtainable.

Acceptance criteria:

  • Every forecast input has a documented availability time and cited timing source.
  • At least one boundary-day fixture demonstrates information cutoff and disclosed imputation behavior.
  • Existing stored bundles remain interpretable under their original protocol.

Verification: Independent protocol review plus causal dependency and boundary-data tests in a separate implementation change.

VR-03 — Custom runs report their actual seeds rather than default labels.

Defect · P1 · Proposed 2026-11-19–2026-12-31.

Derive sensitivity case labels and figure seed counts from configuration; audit all displayed run labels.

Evidence: voltrl_benchmark.py:1289–1400 voltrl_benchmark.py:1485–1495 voltrl_benchmark.py:1724–1748

Owner role: Python maintainer. Dependencies: None. Effort: 1–2 person-days. Confidence: High.

Risks: Renaming case keys may affect downstream table consumers. Unresolved assumptions: A compatibility policy for legacy artifact labels is agreed.

Acceptance criteria:

  • Nondefault sensitivity seed and synthetic seed count appear correctly in every affected table/figure label.
  • Default-run scientific values remain unchanged.

Verification: Regression tests with nondefault arguments and a reviewed default-result comparison.

VR-05 — Keep the entire canonical handbook and its reading view verifiable.

Documentation · P2 · Proposed 2026-11-19–2026-12-31.

Add comprehensive local-link/source-locator and renderer-freshness checks to scoped documentation CI after measuring runtime.

Evidence: .github/workflows/markdown-maintenance.yml:24–37 scripts/portfolio/validate_guide.py:1–33 AGENTS.md:1–3

Owner role: Documentation and CI maintainer. Dependencies: None. Effort: 2–4 person-days. Confidence: High.

Risks: Overbroad path filters may duplicate expensive validation or leave required checks pending. Unresolved assumptions: Pandoc can be pinned/provisioned in the docs-only job without runtime dependency changes.

Acceptance criteria:

  • A broken new-chapter link and stale generated handbook fail the intended job.
  • Required existing check names, branch coverage and deployment guards remain intact.
  • Measured job cost and trigger matrix are recorded.

Verification: Positive/negative docs fixtures and event/path trigger review; compare actual run duration before claiming savings.

Next

VR-02 — Remove ambiguity between internal SOC power and converter-side ratings.

Engineering improvement · P1 · Proposed 2027-01-01–2027-03-31.

Compare the current fixed internal-energy step with an explicit AC import/export limit model; define a new protocol only after assessing state/action changes.

Evidence: voltrl.py:105–194

Owner role: Battery-model maintainer. Dependencies: VR-01. Effort: 4–8 person-days. Confidence: Medium.

Risks: New feasible actions can change profits and invalidate direct historical comparisons. Unresolved assumptions: A proposed physical power convention is selected and documented.

Acceptance criteria:

  • Energy conservation and efficiency units hold for charge/discharge fixtures.
  • No AC limit is exceeded in the proposed model.
  • Old and proposed model results are labeled separately with matching oracle constraints.

Verification: Analytical energy fixtures, feasibility tests and controlled sensitivity comparison; owner scientific sign-off.

VR-04 — Match audit claims to selected-K, uncertainty and complete source evidence.

Engineering improvement · P1 · Proposed 2027-01-01–2027-03-31.

Add explicit selected-K/minimum checks, reproducible bootstrap endpoint checks and a declared source-closure inventory without rewriting old provenance.

Evidence: experiment_contract.py:306–487 synthetic_statistics_contract.py:348–501 software_provenance.py:14–18

Owner role: Verification maintainer. Dependencies: VR-03. Effort: 5–9 person-days. Confidence: Medium.

Risks: Historical RNG/version behavior and expanded source scope need backward compatibility. Unresolved assumptions: Resampling seeds and historical source objects are sufficient for targeted checks.

Acceptance criteria:

  • Tampered selected K and bootstrap endpoints produce specific failures.
  • All included source files have canonical path/hash records and declared scope.
  • Both old bundles still produce accurately labeled compatible audit outcomes.

Verification: Adversarial fixture tests plus old-bundle regression, with independent claim-by-claim audit review.

VR-06 — Remove observed timestamp-accessor deprecations before a future pandas upgrade.

Maintenance · P2 · Proposed 2027-01-01–2027-03-31.

Use supported timestamp property names and exercise seasonal-feature parity with the pinned environment.

Evidence: voltrl_benchmark.py:517–531 requirements.txt:1–8

Owner role: Python maintainer. Dependencies: None. Effort: 1–3 person-days. Confidence: High.

Risks: A later dependency version may change numerical or time-zone behavior beyond renamed properties. Unresolved assumptions: Only accessor changes are needed in the first maintenance patch.

Acceptance criteria:

  • Current deprecation warnings disappear.
  • Seasonal feature arrays and existing causal/solver tests remain equivalent.
  • Both historical bundle audits still pass their applicable checks.

Verification: Warning-as-error targeted tests, numerical feature comparison and full existing suite.

Later

VR-07 — Make publication assets and recovery responsibilities recoverable.

Maintenance · P2 · Proposed 2027-04-01–2027-06-30.

Locate source-listed manuscript/template/response/archive materials, record availability and hashes, and assign a backup recovery drill.

Evidence: MANIFEST.md:5–9 MANIFEST.md:51–63 CITATION.cff:1–13

Owner role: Repository owner and release maintainer. Dependencies: VR-04, VR-05. Effort: 3–6 person-days. Confidence: Medium.

Risks: Referenced assets may be unavailable or subject to separate publication terms. Unresolved assumptions: Owner can identify authoritative copies and an authorized backup maintainer.

Acceptance criteria:

  • Every listed deliverable is verified available or explicitly marked unavailable with reason.
  • A second authorized maintainer restores history and passes applicable audits.
  • Release/citation/asset records agree without invented DOI or publication status.

Verification: Recovery drill, artifact inventory and independent publication-record reconciliation.

VR-08 — Help learners transfer from synthetic browser arithmetic to native benchmark evidence.

Documentation · P3 · Proposed 2027-04-01–2027-06-30.

Review dated teaching links and add source-specific learning exercises that use the handbook and native CLI while preserving historical provenance.

Evidence: docs/portfolio/README.md:5–29 docs/index.html:296–299 docs/index.html:469–482

Owner role: Documentation maintainer. Dependencies: VR-05. Effort: 2–5 person-days. Confidence: High.

Risks: A visual shortcut could imply native execution or measured performance. Unresolved assumptions: Native demonstrations can remain small and deterministic.

Acceptance criteria:

  • Each learning exercise names its units, source revision and whether it executes native code.
  • Keyboard, narrow-screen and reduced-motion checks are recorded for any changed interaction.
  • No historical source identity is silently replaced.

Verification: Independent content review, actual browser user-flow checks and reproducible small native examples.

Horizon

VR-09 — Determine whether a separately defined study can support more realistic battery/market claims.

Exploratory research · P3 · Proposed 2027-07-01–2027-11-18.

Design an external measured-data, physical-constraint and information-timing validation study with preregistered comparison objectives and explicit null results.

Evidence: README.md:270–278 voltrl.py:113–165 voltrl_benchmark.py:982–1118

Owner role: Scientific owner with domain/data reviewers. Dependencies: VR-01, VR-02, VR-04, VR-07. Effort: 10–20 person-days for study design and pilot, not full certification. Confidence: Low.

Risks: Data access, calibrated degradation parameters and genuine market timing may remain unresolved. Unresolved assumptions: Suitable lawful measured data and independent domain review become available.

Acceptance criteria:

  • Protocol states measurable validation targets before fitting/evaluation.
  • Synthetic, historical and measured evidence are kept distinct.
  • Pilot reports failures, uncertainty and scope limits; no deployment claim without corresponding evidence.

Verification: Independent protocol review and a separately versioned pilot with held-out measured evidence and repeatable checks.

Canonical file: ROADMAP.md · Back to guide navigation

Changelog

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

Unreleased documentation package — review snapshot 2026-11-19

  • Add source-pinned developer, scientific, maintainer and owner guidance; exact API/CLI and browser boundaries; executable small examples; full tree/interface accounting and verification limits.
  • Preserve existing README/CONTRIBUTING content, citation metadata, MIT license, scientific/application/workflow/dependency files and committed results; append handbook navigation.
  • Add a reproducible static reading view derived from canonical Markdown/CFF and navigation from existing pages.
  • Add a proposed twelve-calendar-month roadmap; distinguish source review, archived experiment identity, local tests, candidate CI, merge and publication.

This section records prepared documentation, not a released version or observed deployment. All scientific descriptions refer to source 8058e89e4d3516825a400fe86ac45d2e36b6bef0; generated results retain their own manifest source IDs.

Existing release records

Release Metadata observed Source relationship
v1.1.0 Published 2026-07-16; existing CFF version/date Annotated tag points to 70fa9609a1a122055f50f7897720eefc97cbb3e0, also recorded for revision-2 software provenance
v1.0.0 Published 2026-07-16 Annotated tag points to 2e01d9fcec78adbf30357a4cda05b19f6d572b04, also recorded for revision-1 software provenance

This is not a reconstructed full release history. Existing revision-2 notes, submission manifest and citation remain the project's original records. Source-listed manuscript and ZIP artifacts absent from the tree were not verified by this documentation review.

Canonical file: CHANGELOG.md · Back to guide navigation

Contributing

Contributions should preserve VoltRL's auditability: a reader must be able to identify the data snapshot, information protocol, objective, code version, and validation evidence behind a reported result.

Good Contributions

  • Improve provenance, contract, or artifact-integrity checks.
  • Add tests for a bounded behavior or an explicitly documented protocol.
  • Clarify assumptions without presenting the benchmark as a live bidding system.
  • Add public data or references with their license, checksum, and retrieval context.

Pull Request Checklist

Source-pinned documentation changes

Read the handbook, maintenance runbook and release playbook. Keep Markdown canonical, regenerate docs/reference/index.html, and run python docs/reference/build_reference.py --check. Preserve historical result identities and distinguish source review, measured execution and proposed work.

Use a fresh directory for new benchmark outputs. Record all native commands and their environment/revision; a successful stored-bundle audit does not replace a fresh external-data reproduction. For documentation-only work, keep application, scientific, workflow, dependency and license changes in separately reviewed proposals. The roadmap carries identified follow-up work.

The active signature ruleset and all applicable branch/check/review requirements still apply. Refresh exact-head evidence before integration; do not bypass checks or rewrite attribution to pass a policy. Current classic-protection details must be read through an authorized surface when the API is inaccessible.

Canonical file: CONTRIBUTING.md · Back to guide navigation

Security and responsible reporting

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

VoltRL is a local research benchmark with a static teaching site. The source contains no market credentials, live trading connector or production device controller. Input files, output directories, Git provenance and scientific claims still deserve careful handling. README.md:270–278 input_provenance.py:56–86

Reporting

For a sensitive vulnerability, use GitHub's private vulnerability reporting option if the repository currently offers it, or an already verified private channel to the owner. This review did not establish that private reporting is enabled and does not invent a contact address. Avoid posting credentials, private datasets or exploit details in a public issue. A sanitized public issue can describe a non-sensitive reproducibility or validation defect.

Include the affected source SHA, module/command, minimal synthetic reproduction, expected/actual behavior and impact. For a scientific-integrity issue, identify the affected result bundle, artifact path and failed claim-specific check. Preserve the original bytes and logs; do not replace recorded hashes to make a failure disappear.

Scope and support

The repository has releases v1.0.0 and v1.1.0, but no source-defined supported-version/security SLA matrix was found. A release tag or green audit is not a security certification. Existing author identity, citation and MIT software license remain unchanged. CITATION.cff:1–13

The path/digest/provenance helpers reject several traversal and tampering cases, and their existing tests ran in this review. This is bounded verification, not a penetration test of every dependency or browser surface. Raw OPSD input must pass its pinned filename/digest before use. Write experimental outputs to a fresh directory and treat remote data as untrusted until validated. tests/test_artifact_integrity.py:90–119 tests/test_software_provenance.py:77–91 tests/test_input_provenance.py:35–72

Ordinary branch protections, required signatures, checks and reviews apply to remediation as well. No bypass is authorized by this document. See the release playbook for current observed policy and the roadmap for proposed audit improvements.

Canonical file: SECURITY.md · Back to guide navigation

Citation metadata

Existing CFF, preserved verbatim:

cff-version: 1.2.0
message: "If you use VoltRL, please cite this software and the associated manuscript."
type: software
title: "VoltRL: Audit-Ready Sequential and Day-Ahead Block Battery-Arbitrage Benchmark"
authors:
  - family-names: Khan
    given-names: Mohammad Rezwan
    orcid: "https://orcid.org/0000-0002-1532-0598"
version: 1.1.0
date-released: 2026-07-16
repository-code: "https://github.com/mohammadrezwankhan/voltrl"
url: "https://github.com/mohammadrezwankhan/voltrl"
license: MIT

Canonical file: CITATION.cff · Back to guide navigation

Source coverage and provenance

Handbook · Source 8058e89e4d35 · Documentation snapshot 2026-11-19.

The complete pinned Git tree has 178 entries: 146 blobs and 32 directories. Every downloaded blob matched its Git object identity. There are 124 text blobs and 22 binary figures; no symlink or submodule occurs in this tree. Full accounting does not mean every generated row or visual was manually analyzed. Source SHA: 8058e89e4d3516825a400fe86ac45d2e36b6bef0; Git tree: 13bac078821c7a325645cdc07da46b6fbf248afc.

Current review dispositions: 51 analyzed, 127 indexed only. All scientific Python modules, relevant tests and workflows were read. Generated CSVs were parsed/audited; selected summaries were inspected. The 15,874,596-byte historical forecast-detail CSV was checked programmatically by the historical contract, not manually row by row. The 11 PNG and 11 PDF figures were integrity-checked without a new comprehensive visual review.

Review units

Unit Evidence method and limitation
Native science and audit code Full function review, AST declaration inventory, existing tests and bounded native examples
Static browser application Relevant inline pure models/controllers/configs read; active market checkpoints executed in Node; no actual GUI-flow claim
Generated result tables Header/row inventory plus applicable contracts; audit does not rerun the full benchmark
SVG/CSS/media Hash/XML or format inventory; existing presentation preserved
Metadata/workflows Read source declarations and separate remote metadata snapshot; inaccessible classic protection remains unknown
External OPSD CSV / publication documents Not present in the tree; external input and source-listed manuscript/ZIP are not claimed reviewed

No vendor archive, notebook, executable scientific model binary, LFS pointer or submodule was found. The unbundled OPSD CSV is an external reproduction prerequisite. The MANIFEST-listed manuscript/template/ZIP are outside this tree and cannot be marked covered by a Git inventory. MANIFEST.md:5–9 MANIFEST.md:51–57

Exact path dispositions

Tracked path Type / mode Disposition Method and limitation
.gitattributes blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
.github tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
.github/dependabot.yml blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
.github/workflows tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
.github/workflows/deploy-dashboard.yml blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
.github/workflows/markdown-maintenance.yml blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
.github/workflows/no-codex-attribution.yml blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
.github/workflows/portfolio-dashboard-check.yml blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
.github/workflows/python-validation.yml blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
.gitignore blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
AGENTS.md blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
CITATION.cff blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
CONTRIBUTING.md blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
LICENSE blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
MANIFEST.md blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
README.before-makeover-2026-11-08.md blob / 100644 INDEXED_ONLY Dated historical README preserved; not treated as independently current results or policy.
README.md blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
artifact_integrity.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
assets tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
assets/brand-uniformity tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
assets/brand-uniformity/avatar.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/brand-uniformity/champion-static.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/brand-uniformity/champion.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/brand-uniformity/hero-25d.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/brand-uniformity/portfolio tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
assets/brand-uniformity/portfolio/hero-25d.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/brand-uniformity/svg-2.5d tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
assets/brand-uniformity/svg-2.5d/diagrams tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
assets/brand-uniformity/svg-2.5d/diagrams/battery-arbitrage-state-machine.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/brand-uniformity/svg-2.5d/sections tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
assets/brand-uniformity/svg-2.5d/sections/section-01-question.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/brand-uniformity/svg-2.5d/sections/section-02-equations.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/brand-uniformity/svg-2.5d/sections/section-03-reproduce.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/brand-uniformity/svg-2.5d/sections/section-04-verification.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/brand-uniformity/svg-2.5d/sections/section-05-scope.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/brand-uniformity/svg-2.5d/tags tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
assets/brand-uniformity/svg-2.5d/tags/tag-evidence-deterministic-fixture.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/brand-uniformity/svg-2.5d/tags/tag-fidelity-source-defined.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/brand-uniformity/svg-2.5d/tags/tag-runtime-source-defined.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/brand-uniformity/svg-2.5d/tags/tag-status-see-ci.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/hero-25d.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/portfolio tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
assets/portfolio/hero-25d.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/svg-2.5d tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
assets/svg-2.5d/diagrams tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
assets/svg-2.5d/diagrams/battery-arbitrage-state-machine.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/svg-2.5d/scope.json blob / 100644 INDEXED_ONLY Metadata/static entry hash-verified and structurally indexed; no broader semantic claim.
assets/svg-2.5d/sections tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
assets/svg-2.5d/sections/section-01-question.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/svg-2.5d/sections/section-02-equations.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/svg-2.5d/sections/section-03-reproduce.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/svg-2.5d/sections/section-04-verification.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/svg-2.5d/sections/section-05-scope.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/svg-2.5d/tags tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
assets/svg-2.5d/tags/tag-evidence-deterministic-fixture.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/svg-2.5d/tags/tag-fidelity-source-defined.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/svg-2.5d/tags/tag-runtime-source-defined.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
assets/svg-2.5d/tags/tag-status-see-ci.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
codemeta.json blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
data tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
data/README.md blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
data/opsd_source.json blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
docs tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
docs/.nojekyll blob / 100644 INDEXED_ONLY Metadata/static entry hash-verified and structurally indexed; no broader semantic claim.
docs/animations tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
docs/animations/gallery.css blob / 100644 INDEXED_ONLY Existing static styling indexed and palette/accessibility rules inspected; preserved unchanged.
docs/animations/gallery.js blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
docs/animations/index.html blob / 100644 ANALYZED Relevant implementation/configuration/documentation read; source behavior and limits used in handbook. Browser review covers controllers/model code, not exhaustive visual design.
docs/animations/manifest.json blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
docs/animations/media tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
docs/animations/media/hero-25d-4b95f8bed2bd.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
docs/animations/waveform.html blob / 100644 ANALYZED Relevant implementation/configuration/documentation read; source behavior and limits used in handbook. Browser review covers controllers/model code, not exhaustive visual design.
docs/index.html blob / 100644 ANALYZED Relevant implementation/configuration/documentation read; source behavior and limits used in handbook. Browser review covers controllers/model code, not exhaustive visual design.
docs/lesson-config.json blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
docs/lesson-config.schema.json blob / 100644 INDEXED_ONLY Metadata/static entry hash-verified and structurally indexed; no broader semantic claim.
docs/native-lessons.html blob / 100644 ANALYZED Relevant implementation/configuration/documentation read; source behavior and limits used in handbook. Browser review covers controllers/model code, not exhaustive visual design.
docs/native-lessons.json blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
docs/portfolio tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
docs/portfolio/README.md blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
docs/portfolio/index.html blob / 100644 ANALYZED Relevant implementation/configuration/documentation read; source behavior and limits used in handbook. Browser review covers controllers/model code, not exhaustive visual design.
docs/portfolio/lesson-config.json blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
docs/visuals tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
docs/visuals/brand-uniformity tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
docs/visuals/brand-uniformity/avatar.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
docs/visuals/brand-uniformity/brand.css blob / 100644 INDEXED_ONLY Existing static styling indexed and palette/accessibility rules inspected; preserved unchanged.
docs/visuals/brand-uniformity/champion-static.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
docs/visuals/brand-uniformity/champion.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
docs/visuals/brand-uniformity/diagrams tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
docs/visuals/brand-uniformity/diagrams/battery-arbitrage-state-machine.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
docs/visuals/brand-uniformity/manifest.json blob / 100644 INDEXED_ONLY Metadata/static entry hash-verified and structurally indexed; no broader semantic claim.
docs/visuals/brand-uniformity/sections tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
docs/visuals/brand-uniformity/sections/section-01-question.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
docs/visuals/brand-uniformity/sections/section-02-equations.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
docs/visuals/brand-uniformity/sections/section-03-reproduce.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
docs/visuals/brand-uniformity/sections/section-04-verification.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
docs/visuals/brand-uniformity/sections/section-05-scope.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
docs/visuals/diagrams tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
docs/visuals/diagrams/battery-arbitrage-state-machine.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
docs/visuals/sections tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
docs/visuals/sections/section-01-question.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
docs/visuals/sections/section-02-equations.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
docs/visuals/sections/section-03-reproduce.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
docs/visuals/sections/section-04-verification.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
docs/visuals/sections/section-05-scope.svg blob / 100644 INDEXED_ONLY Preserved vector/animation asset; object hash and XML structure checked, no new scientific or visual calibration claim.
experiment_contract.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
historical_forecast_contract.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
input_provenance.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
requirements.txt blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
result_bundle_audit.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
results_revision tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
results_revision/case_diagnostics.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision/data_quality.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision/experiment_manifest.json blob / 100644 ANALYZED Manifest settings, historical source identity and declared outputs inspected; applicable aggregate audit executed.
results_revision/figures tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
results_revision/figures/Figure_1_data_and_model_selection.pdf blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision/figures/Figure_1_data_and_model_selection.png blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision/figures/Figure_2_synthetic_baselines.pdf blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision/figures/Figure_2_synthetic_baselines.png blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision/figures/Figure_3_comparative_results.pdf blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision/figures/Figure_3_comparative_results.png blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision/figures/Figure_4_physical_sensitivity.pdf blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision/figures/Figure_4_physical_sensitivity.png blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision/figures/Figure_5_discount_sensitivity.pdf blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision/figures/Figure_5_discount_sensitivity.png blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision/gamma_sensitivity.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision/model_selection_folds.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision/paired_seed_comparisons.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision/physical_sensitivity.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision/real_market_metrics.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision/solver_diagnostics.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision/synthetic_seed_metrics.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision/synthetic_summary.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision2 tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
results_revision2/case_diagnostics.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision2/data_quality.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision2/degradation_model_sensitivity.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision2/experiment_manifest.json blob / 100644 ANALYZED Manifest settings, historical source identity and declared outputs inspected; applicable aggregate audit executed.
results_revision2/figures tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
results_revision2/figures/Figure_1_data_and_model_selection.pdf blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision2/figures/Figure_1_data_and_model_selection.png blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision2/figures/Figure_2_synthetic_baselines.pdf blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision2/figures/Figure_2_synthetic_baselines.png blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision2/figures/Figure_3_comparative_results.pdf blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision2/figures/Figure_3_comparative_results.png blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision2/figures/Figure_4_physical_sensitivity.pdf blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision2/figures/Figure_4_physical_sensitivity.png blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision2/figures/Figure_5_discount_sensitivity.pdf blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision2/figures/Figure_5_discount_sensitivity.png blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision2/figures/Figure_6_forecast_and_degradation.pdf blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision2/figures/Figure_6_forecast_and_degradation.png blob / 100644 INDEXED_ONLY Generated binary figure; verified declared artifact digest/size, no fresh figure-by-figure visual certification.
results_revision2/gamma_sensitivity.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision2/historical_forecast_detail.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision2/historical_forecast_summary.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision2/model_selection_folds.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision2/paired_seed_comparisons.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision2/physical_sensitivity.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision2/real_market_metrics.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision2/solver_diagnostics.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision2/synthetic_seed_metrics.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
results_revision2/synthetic_summary.csv blob / 100644 INDEXED_ONLY Generated result table: parsed schema/counts and applicable contract audit; selected summary rows inspected, not every row manually reviewed.
scripts tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
scripts/portfolio tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
scripts/portfolio/validate_guide.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
software_provenance.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
synthetic_statistics_contract.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
tests tree / 040000 INDEXED_ONLY Directory object; child entries individually accounted.
tests/test_artifact_integrity.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
tests/test_experiment_contract.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
tests/test_historical_forecast_contract.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
tests/test_input_provenance.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
tests/test_numeric_and_causal_inputs.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
tests/test_result_bundle_audit.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
tests/test_software_provenance.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
tests/test_synthetic_statistics_contract.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
tests/test_voltrl.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
tests/test_voltrl_benchmark.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
voltrl.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.
voltrl_benchmark.py blob / 100644 ANALYZED Complete relevant source/configuration read; public interfaces and scientific/test/policy behavior explicitly accounted.

Interface accounting

The native declaration catalog enumerates 115 public source declarations/methods. The operational inventory also retains every statically extracted private/test/tool declaration, their parsing method and source range; declaring a test method does not make it a supported user API. Manually reviewed browser exports, ten bundled model kinds, nine native CLIs, CSV/manifest interfaces, local-storage/export behavior and static routes are accounted separately. Dynamic browser behavior and external tools remain bounded by the stated execution limits.

Canonical file: docs/SOURCE_EVIDENCE.md · Back to guide navigation