Battery and power reference guide
Inspect the native equations, reproduce the examples, and separate software evidence from the synthetic teaching lessons.
Reviewed 2026-11-19 · Source 0304bfec25c4. This is a dated documentation snapshot.
Browse reference chapters
Battery and power models: documentation index
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
Start with the worked examples to run the native calculations, or the rendered reference guide to read this package on the existing Pages site. The interactive thermal lesson, native lesson catalog, and portfolio learning paths retain their existing behavior and historical provenance.
The repository has two native numerical modules, MATLAB counterparts, and a separate browser teaching surface. The native thermal model accepts current and computes Joule heating; the active browser lesson accepts heat directly. Both are deterministic reference calculations. No measured calibration dataset or hardware qualification is established by this audit. Native sources, DC-link source, lesson declaration.
Choose a reading path
| Reader and question | Canonical document |
|---|---|
| Developer: what executes, and how do the surfaces connect? | Architecture |
| Developer: how do I recreate the environment? | Setup and reproducibility |
| Developer: what arguments, outputs and errors exist? | API, CLI and interfaces |
| Developer: what can I run and check? | Worked examples and labs |
| Developer: why did a command or lesson differ? | Troubleshooting |
| Scientific reader: which equations are implemented? | Equations and derivations |
| Scientific reader: which symbols, units and defaults apply? | Parameters and symbols |
| Scientific reader: where do the models stop being justified? | Assumptions and limits |
| Browser integrator: what other teaching models are exported? | Browser model catalog |
| Maintainer: what was actually verified? | Verification evidence ledger |
| Maintainer: how do PRs, CI and Pages publication work? | CI/CD and release playbook |
| Maintainer: which tools belong to which environment? | Toolchain and dependency matrix |
| Maintainer: which limitations need attention? | Failure modes and technical debt |
| Maintainer: how is this package kept current? | Documentation maintenance runbook |
| Owner: which decisions are evidenced and who decides next? | ADR index, governance and scope |
| Owner: how can another maintainer recover the project? | Recovery runbook |
| Owner: what may be represented in the public portfolio? | Portfolio integration |
| Planner: what is proposed for the next twelve months? | Roadmap |
| Auditor: which tree entries were examined or only indexed? | Source and coverage evidence |
Root-level policies and history
README, contribution guide, changelog, citation metadata, security reporting policy, and MIT license remain the repository entry points. The existing security tooling guide remains canonical for scanner setup and hardening details; this package does not replace it.
Reading evidence correctly
Source links use the full audited commit. The lesson configs retain older explicit commits (42bd78c… and 199e93e…); those dates and claims belong to those snapshots. The current CLI ends at the requested duration by adjusting its uniform interval. The older portfolio lesson's advice about divisibility describes its older source. Current interval calculation, historical portfolio lesson.
The rendered guide is generated from canonical Markdown using the documentation renderer. Its date describes this evidence snapshot, not a release, merge, or deployment. Remote candidate checks and publication must be linked to the eventual candidate and merged revisions separately.
Canonical file: docs/INDEX.md · Back to guide navigation
Architecture
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
Execution boundaries
| Component | Inputs and state | Output and boundary |
|---|---|---|
src/battery_thermal.py |
Finite current sequence; uniform interval; constant thermal parameters; optional initial temperature | Initial temperature plus one temperature per interval; optional native CSV through a separate writer |
src/dc_link.py |
Ideal triangular-current ripple inputs or constant-power pulse inputs | Two independent scalar sizing relationships; no converter transient simulation |
matlab/*.m |
Equivalent numeric arguments; MATLAB thermal inputs are a row vector and optional struct | Thermal row vector or a two-field DC-link struct |
docs/index.html |
Embedded lesson config and a deterministic JavaScript teaching library; in-memory UI state | Canvas, metric cards, checkpoint comparisons and synthetic CSV; does not execute Python or MATLAB |
docs/native-lessons.html |
Embedded historical native-lesson catalog | Search, filtering and copyable commands; no native execution |
docs/portfolio/index.html |
Embedded four-path learning plan; browser-local notes and completion state | Source links and downloadable study-plan JSON; no native execution |
| CI and maintenance tools | Source checkout, manifests, tests, scanner contracts and CI event metadata | Test/security reports, provenance checks, Pages artifact and policy conclusions |
Sources: Python thermal, DC-link, MATLAB thermal, MATLAB DC-link, browser exports and controller, native catalog controller, portfolio controller, quality configuration.
The Python files are directly importable modules under src; there is no package build declaration or installed console-script entry point in pyproject.toml. The model runtime imports the standard library. Development checks have separate pinned dependencies. Thermal imports, DC-link imports, project tool configuration.
Native data flow
ThermalParameters supplies four constants. simulate validates the initial state and interval, then applies analytical_step to every current interval. constant_profile creates a count of equal-current intervals; the CLI divides the requested duration by that count before simulating. write_csv validates the complete trace before opening the destination. DC-link functions are independent of the thermal state and of each other. Thermal flow, DC-link functions.
There is no coupled electrical/thermal state estimator, battery state-of-charge solver, controller, measured-data loader, database or service API in the native modules. A proposed coupling belongs in a separately reviewed implementation change with explicit units, provenance and tests; it must not be inferred from similarly named browser teaching modes.
Browser data flow and persistence
The application reads an embedded JSON config, resolves four thermal parameter controls, and evaluates 241 uniformly spaced sample times from 0 to the configured 60-minute horizon. It draws the current trace and evaluates each lesson checkpoint at the checkpoint's own declared time. Playback advances model time faster than wall time and respects reduced-motion preference at initialization. The numerical library is exposed as window.LabSimulation; selected controller access is window.LabDashboard. Configuration and setup, controller.
Dashboard values and verification indicators live in memory. The portfolio page separately stores study notes, completed paths and motion preference in localStorage under a repository-and-source-revision key; its exported study plan says the guide did not execute the native models. The animation archive includes an illustrative waveform, not an additional native validation result. Portfolio persistence/export, archived waveform.
Verification and publication boundaries
Python tests cover numerical properties and invalid inputs. Frozen parity fixtures contain Python baseline outputs; the MATLAB gate separately executes MATLAB and compares against both frozen fixtures and a fresh Python capture tied to Git HEAD. A successful Python fixture check alone is not a MATLAB run. Fixture provenance, capture and verification, MATLAB gate.
GitHub Actions deploys the existing docs/ directory to Pages after its static validation job on qualifying main-branch pushes. The new handbook is a static derivative of Markdown and introduces no application endpoint or runtime dependency. Pages workflow. Review the CI playbook before interpreting any check as a delivery gate.
Canonical file: docs/developer/ARCHITECTURE.md · Back to guide navigation
Setup and reproducibility
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
Choose the environment you need
The README declares Python 3.10+ for running the reference modules, whose runtime uses the standard library. The current development tools are separately pinned and CI uses Python 3.12. This audit executed CPython 3.12.14; it did not establish a complete Python 3.10–3.12 compatibility matrix. Node's declared development requirement is >=22, and hardened CI selects Node 24. MATLAB CI selects R2026a; no minimum supported MATLAB release is established here. Runtime guide, Python configuration, Node engines, hardened CI.
Recreate the audited native calculation
Run from a separate checkout. The pinned checkout below intentionally recreates the examined implementation; a later documentation candidate has a different commit identity.
git clone https://github.com/mohammadrezwankhan/battery-power-models.git
cd battery-power-models
git checkout --detach 0304bfec25c43f42f103ebda239749b88609a187
python3.12 -m venv .venv
. .venv/bin/activate
python src/battery_thermal.py --current 80 --duration 900 --output thermal_trace.csv
python src/dc_link.py
On Windows, activate the venv with its platform-specific activation command. Native example outputs and CSV conventions are in worked examples. Choose an output filename deliberately: the CSV writer overwrites an existing valid destination and does not create missing directories. Writer.
Install the declared development group
For development, use Python 3.12 and pip 25.1 or newer, then install the versions declared in the checkout:
python -m pip --version
python -m pip install --group dev
python -m unittest discover -s tests -v
python -m pytest tests --cov=src --cov-branch --cov-report=term-missing -q
The --group option was added in pip 25.1; see the official pip dependency-group guide. If the environment already has an older pip, either update that environment's pip under your normal package policy or install the same flat group using Python 3.12's TOML reader:
python - <<'PY'
from pathlib import Path
import subprocess
import sys
import tomllib
group = tomllib.loads(Path("pyproject.toml").read_text())["dependency-groups"]["dev"]
subprocess.run([sys.executable, "-m", "pip", "install", *group], check=True)
PY
This fallback is specific to the current flat list of requirement strings; it is not a general dependency-group resolver. The audit used that exact list with pip 25.0.1 in a separate venv, which inherited system packages. The observed environment is therefore not a minimal or fully hermetic dependency proof. Runtime model outputs do not depend on the test tools. Declared pins, quality helper's group expansion.
unittest and pytest do not collect identical targets: the observed documented unittest command runs 32 tests, whereas pytest tests runs 40 tests plus 345 subtests. The configured wider Python quality suite also includes two security-tooling test files and ran 109 tests plus 469 subtests locally. Quality targets, pytest-only parity tests. See the ledger for coverage denominators and limitations.
Browser checks and local reading
npm ci --ignore-scripts
npm run quality:lint
npm run quality:typecheck
npm run quality:format
npm run quality:browser
python scripts/portfolio/validate_guide.py
python -m http.server 8000 --directory docs
Open http://localhost:8000/ for the lab or /reference/ for the handbook on a checkout that contains it. The Node packages are development tools, not browser runtime packages. The guide validator checks four source-linked learning paths and structural contracts; the 17 CSP tests inspect security and HTML contracts, not a full interactive browser session. NPM scripts, guide validator, CSP tests.
MATLAB and cross-language evidence
With a licensed MATLAB installation available, run the existing gate from the repository root:
python scripts/capture_python_parity.py --output hardening-artifacts/python-parity.json
matlab -batch "addpath('tools'); security_numerical_gate"
python scripts/capture_python_parity.py --verify hardening-artifacts/python-parity.json
The capture helper creates the output directory; MATLAB checks code issues and executes the model tests before writing its report. Keep the checkout unchanged between capture, MATLAB execution and verification. A fixture JSON file by itself proves neither MATLAB execution nor hardware accuracy. Capture CLI, MATLAB gate. MATLAB was unavailable in the local audit; a separately retrieved successful historical GitHub check exists for the pinned source.
Record a reproducible result
Retain the full Git SHA, clean/dirty working-tree state, Python/Node/MATLAB versions actually used, dependency install method, exact command, exit status, log, output checksum and test-input provenance. Do not substitute the published dashboard's older embedded provenance for the native checkout SHA. For an uncommitted documentation candidate, use a complete tree fingerprint until its commit exists. Preserve generated traces outside the tracked source tree or in an ignored location.
Canonical file: docs/developer/SETUP_AND_REPRODUCIBILITY.md · Back to guide navigation
API, CLI and interfaces
2026-11-21 API update: The November 19 snapshot below remains a preserved history of the previous implementation. The audited implementation now permits
cooling_conductance_w_per_k = 0(exact adiabatic limit), requires a nonempty current profile, and explicitly rejects Boolean/non-real direct numerical input in Python. Both Python and MATLAB use a stableexpm1-based near-zero limit. Native MATLAB now also exposes:triangular_current_ripple_vpp(current_pp_a, switching_hz, capacitance_f)andminimum_capacitance_for_energy_pulse(power_w, pulse_s, bus_v, allowed_drop_v). Existingdc_link_ripple(...seven inputs...)remains backward-compatible. The current fixture target is 1e-12 relative / 1e-12 absolute, with executed MATLAB R2026a evidence in the audit parity report. Browser offline and keyboard checks are now real Chrome CI gates.Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
Python thermal API
Import from src.battery_thermal when the repository root is on Python's module search path, or add src explicitly as the existing tests do. There is no installed package/console entry point declared by this repository. The Python functions and the ThermalParameters constructor accept positional-or-keyword parameters. Default values make parameters optional; they do not change this calling convention.
| Interface | Contract and output |
|---|---|
ThermalParameters(resistance_ohm=0.003, thermal_capacitance_j_per_k=5000.0, cooling_conductance_w_per_k=4.0, ambient_c=25.0) |
Frozen dataclass. Construction alone does not call validation. validate() returns None or raises ValueError; finite values, resistance >=0, capacitance and conductance >0. |
analytical_step(temp_c, current_a, dt_s, params) -> float |
One constant-current analytical update; finite temperature/current/interval, interval >0; validates parameters and finite result. |
simulate(currents_a, dt_s, params, initial_c=None) -> list[float] |
Uniform-interval sequence; output length is len(currents_a)+1, including the initial temperature. Default initial state is configured ambient. Valid empty input returns the initial state; invalid parameters/time/initial state still fail. |
constant_profile(current_a, duration_s, dt_s) -> list[float] |
Repeats the finite current max(1, ceil(duration_s/dt_s)) times. Positive finite duration/interval required; rejects nonfinite or unrepresentable interval count. Returns only the profile, not an adjusted interval. |
write_csv(path, currents_a, temperatures_c, dt_s) -> None |
path is a pathlib.Path; currents may be an iterable, temperatures a sequence. Materializes currents, validates shape/finite values/duration, then writes a UTF-8 CSV. Invalid input is rejected before opening the file. Valid writes overwrite it; filesystem errors propagate. |
main() -> None |
Parses the thermal CLI and catches numerical ValueError as an argparse error. Ordinary filesystem errors and allocation errors are not caught by that handler. |
Definitions: parameters, step, simulation, profile, CSV, CLI.
Thermal CLI and CSV
python src/battery_thermal.py [--current A] [--duration seconds]
[--dt maximum_seconds] [--output path]
Defaults are 80 A, 900 s, maximum interval 1 s, and thermal_trace.csv. The CLI computes the number of intervals with constant_profile, then uses duration/count for every actual interval. Thus --duration 10 --dt 3 uses four 2.5-second intervals. --dt is a maximum for this CLI; passing 3 directly to simulate means exactly 3 seconds per interval. The CLI exposes no parameter-file, ambient, resistance or thermal-capacitance option. CLI implementation.
The header is time_s,current_a,temperature_c. Row zero records time 0, a current field of 0 by convention, and the initial temperature. Each later row records the interval-end time, current applied during that interval and resulting temperature rounded to six decimal places. The first current field is not a measured zero-current sample. Native CSV output differs from the browser's telemetry export. CSV format.
Python DC-link API
| Signature | Output and validation |
|---|---|
triangular_current_ripple_vpp(current_pp_a, switching_hz, capacitance_f) -> float |
Voltage peak-to-peak in V. All finite; current >=0, frequency/capacitance >0; checks denominator representability and rejects nonzero-result underflow. |
minimum_capacitance_for_energy_pulse(power_w, pulse_s, bus_v, allowed_drop_v) -> float |
Required ideal capacitance in F. All finite; power/time >=0, bus/drop >0, drop < bus; checks representability. Zero load or zero pulse gives zero when voltage/denominator constraints hold. |
python src/dc_link.py prints two fixed examples. It has no argparse options or user-input sizing CLI; import the functions for other parameters. All numerical validation failures use ValueError. Functions and fixed demo.
MATLAB interfaces
battery_thermal_lumped(currents_a, dt_s, params, initial_c) returns a row vector with one more element than the numeric, real, finite current row vector. params is an optional scalar struct; omitted known fields receive the same defaults as Python, known fields are validated and converted to double, and additional fields do not alter the implemented equations. initial_c defaults to configured ambient. Range failures in the update raise BatteryPower:Range. Definition.
dc_link_ripple(current_pp_a, switching_hz, capacitance_f, power_w, pulse_s, bus_v, allowed_drop_v) takes seven scalar real finite doubles and returns a struct with ripple_vpp and minimum_capacitance_f. Both calculations execute in a single call, so inputs for both are required. Positivity/nonnegativity, drop and representability checks correspond to the Python relationships. There is no MATLAB CSV writer in these two model files. Definition.
Browser interfaces
The inline UMD library exports MODEL_SPECS, getModelSpec(kind), resolveParameters(kind, provided), evaluateModel(kind, provided, time), and checkCheckpoint(checkpoint, metrics). In a browser they are under window.LabSimulation. getModelSpec rejects unknown kinds. resolveParameters returns known parameter keys only: finite numeric inputs are clamped to declared ranges; missing/nonfinite/non-numeric inputs use the library default. evaluateModel clamps finite time into the model horizon and otherwise uses zero. The thermal result has temperatureC, heatRemovedW, storedEnergyKJ and residualW. Library.
checkCheckpoint returns a pass/fail/invalid result object. It accepts >=/gte, <=/lte, >/gt, </lt and equality aliases ==, =, eq, ≈; absolute tolerance affects equality and inclusive comparisons, while strict comparisons remain strict. Nonfinite metrics/expected values and unknown operators are invalid. Checkpoint logic.
window.LabDashboard is frozen and exposes getState(), evaluateModel and getModelSpec. The state snapshot includes kind, a copied params object, time, playing, activeMetric, and activeModule. Treat this as the source-observed browser interface, without assuming a published semantic-versioning guarantee. Export. The browser catalog accounts for all ten embedded model kinds; only thermal is selected by this repository's lesson config.
Browser downloads and lesson state
The telemetry download has 241 uniformly spaced samples for the entire configured horizon, regardless of the current animation time. Its columns begin with model_time_min, then selected metric keys, then input_<parameter key> columns, with numeric values written to 12 significant digits. Its filename is battery-power-models-synthetic-telemetry.csv. The config download exports the original embedded lesson config; changing sliders does not rewrite that downloaded config. Export telemetry to retain current input values. Sampling and downloads.
Checkpoint times are fixed by the lesson, not necessarily by the current time cursor. A previously verified experiment may remain labeled as a prior experiment after inputs change; it is not proof that the current settings pass. The portfolio study-plan export separately includes notes/completion and an explicit non-execution status. Dashboard lesson state, portfolio export.
Maintenance interfaces
| Entry point | Purpose and scope |
|---|---|
python scripts/capture_python_parity.py --output FILE or --verify FILE |
Mutually exclusive modes to capture fresh Python cases/source hashes or compare them with a fresh capture; no MATLAB execution |
python scripts/portfolio/validate_guide.py |
Validate the four historical source-linked portfolio paths and embedded data, hero SVG and basic UI contracts |
node scripts/browser-csp.mjs --check [FILES...] |
Check static-document CSP and unsafe inline-attribute contracts; without filenames, checks public docs HTML |
node scripts/browser-csp.mjs --write FILE... |
Rebuild CSP for explicitly named docs files; inspect the diff and rerun checks |
python .github/security/quality.py MODE [--install] |
Modes: python-lint, python-types, python-tests, browser-lint, browser-types, browser-format, browser-tests; reports under hardening-artifacts |
security_numerical_gate after addpath('tools') in MATLAB |
Execute the MATLAB numerical/parity gate with fresh Python evidence |
Sources: parity CLI, guide, CSP CLI, quality helper, MATLAB gate. Scanner bootstrap/build internals are separately indexed, not exhaustively reviewed here; use their existing canonical guide.
Canonical file: docs/developer/API_CLI_AND_INTERFACES.md · Back to guide navigation
Worked examples and labs
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
These examples illustrate deterministic reference equations. They do not identify a measured cell or a qualified capacitor. Commands assume the setup and repository root. Numerical results below were reproduced locally on the pinned source with CPython 3.12.14 on 2026-11-19.
Lab 1: constant-current thermal response
python src/battery_thermal.py --current 80 --duration 900 --output thermal_trace.csv
Observed terminal result: Final temperature: 27.464 degC. Default resistance is 0.003 Ω, thermal capacitance 5000 J/K, cooling conductance 4 W/K and ambient 25 °C. Therefore heat is 19.2 W, steady temperature 29.8 °C and the time constant is 1250 s. The closed-form value at 900 s is approximately 27.4635891713921 °C; repeated one-second updates agree to floating-point precision, not bitwise identity. Defaults and update, CLI.
The CSV has an initial row plus 900 interval-end rows. Check that it begins at 25 °C, remains between 25 and 29.8 °C, and ends at 900 s. The initial current column is 0 by format convention; all subsequent interval currents are 80 A. The finite-temperature, monotonicity and sign-symmetry tests are useful regression checks, but they do not validate the parameter values against hardware. CSV writer, property tests.
Lab 2: interval counting versus actual CLI interval
python src/battery_thermal.py --current 80 --duration 10 --dt 3 --output short_trace.csv
Observed CSV:
time_s,current_a,temperature_c
0.0,0.0,25.000000
2.5,80.0,25.009590
5.0,80.0,25.019162
7.5,80.0,25.028714
10.0,80.0,25.038247
The profile has ceil(10/3)=4 intervals, and the CLI chooses 10/4=2.5 s. If you call simulate(constant_profile(80, 10, 3), 3, params) yourself, you explicitly request four three-second intervals and end at 12 s. This distinction resolves the older portfolio snapshot's duration note. Current implementation, CLI adjustment, older lesson.
Lab 3: cooling, current sign and custom initial temperature
python - <<'PY'
from src.battery_thermal import ThermalParameters, analytical_step, simulate
p = ThermalParameters()
print(analytical_step(40.0, 0.0, 600.0, p))
print(simulate([80.0, -80.0, 0.0], 60.0, p, initial_c=25.0))
PY
The first expression gives approximately 34.2817508770921 °C. Zero-current cooling approaches the configured ambient exponentially. Positive and negative currents of equal magnitude generate the same I²R heat in this model; the sign does not represent charging efficiency or reversible electrochemical heat. Each returned list includes the initial temperature. Update and sequence.
Lab 4: DC-link ripple and pulse energy
python src/dc_link.py
Observed output:
Triangular-current ripple: 0.1136 Vpp
Energy-pulse capacitance: 25.316 mF
The first calculation is 20/(8 × 10000 × 0.0022) = 0.113636… Vpp. The second is 2 × 20000 × 0.02 / (20 × (2 × 800 − 20)) = 0.0253164556962 F. These are separate requirements. To evaluate both for a candidate capacitor, import both functions and assess both constraints, then account separately for omitted ESR, ESL, ripple-current rating, tolerances and system dynamics. Functions and demo inputs. The derivations show exactly which waveform and energy assumptions produce these formulas.
Lab 5: the browser thermal teaching lesson
Open the interactive lab, select each module's preset, and verify its checkpoints. These are synthetic analytical fixtures with minute time inputs. The active lesson starts at ambient and uses direct heat input, not the native current/resistance pair.
| Module preset | Checkpoint time and expected metric | Absolute tolerance |
|---|---|---|
| Q=300 W, G=20 W/K, C=6000 J/K, ambient=25 °C | 5 min: temperature 34.481808 °C; 60 min: 39.999908 °C | 0.02 °C |
| Q=1200 W, G=20 W/K, C=6000 J/K, ambient=25 °C | 60 min: temperature 84.999631 °C; heat removal 1199.992627 W | 0.02 in each metric's unit |
| Q=1200 W, G=80 W/K, C=6000 J/K, ambient=25 °C | 60 min: temperature 40 °C; stored heat 90 kJ | 0.02 in each metric's unit |
| Q=1200 W, G=80 W/K, C=60000 J/K, ambient=35 °C | 10 min: temperature 43.260066 °C; stored heat 495.603932 kJ | 0.02 in each metric's unit |
Declared fixtures: lesson modules; implemented calculation and comparator: browser model. Checkpoints with atTime compare at that fixed time, not necessarily the visible time cursor. Export CSV to retain the current inputs and all 241 horizon samples; exporting config retains the canonical lesson config instead of modified sliders.
Compare steady state and time constant before comparing two traces. Native defaults give 19.2 W and a 1250-second time constant at 80 A; the first browser preset gives 300 W and a 300-second time constant. Their output curves are not intended to coincide. See parameter mappings.
Lab 6: reproduce regression evidence
python -m pytest tests --cov=src --cov-branch --cov-report=term-missing -q
python scripts/capture_python_parity.py --output hardening-artifacts/python-parity.json
python scripts/capture_python_parity.py --verify hardening-artifacts/python-parity.json
The model suite contains seeded/property-based checks and finite-number boundary cases. The parity capture contains six thermal cases and four DC-link cases and hashes nine source/fixture/gate files. Its pass/fail comparison uses abs_error <= 1e-12 + 1e-12 * abs(expected); fixture agreement is a regression criterion, not an empirical error bound. To establish MATLAB parity, execute the separate MATLAB gate as described in setup. Property tests, capture, MATLAB parity tests.
Canonical file: docs/developer/WORKED_EXAMPLES_AND_LABS.md · Back to guide navigation
Troubleshooting
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
| Symptom | Source-backed explanation | Next check |
|---|---|---|
pip rejects --group |
This option needs pip 25.1+; a model's standard-library runtime does not remove the development tools' requirements. | Check python -m pip --version; use the exact-group fallback in setup. |
| Test discovery fails to import Hypothesis/pytest | The current suite uses the declared dev group. | Confirm that installation and test commands use the same interpreter/venv. Pins. |
| Unittest and pytest counts differ | Pytest also collects function tests, including parity-capture cases. | Record the exact runner and target set; do not compare counts without collection scope. Parity test file. |
| CLI output does not match a browser curve | Native input is current, with Q=I²R; the active browser input is heat in W and uses different defaults and minutes. |
Compare Q, G, C, ambient, initial state and time units. Native step, lesson config. |
| Nondivisible CLI duration ends exactly, contrary to older guidance | The current CLI adjusts interval_s = duration / len(profile). The portfolio guide is a dated older snapshot. |
Use current API semantics; distinguish direct simulate calls. Adjustment. |
Thermal ValueError or argparse exit 2 |
Finite inputs, positive time/capacitance/conductance and nonnegative resistance are required; an output can overflow despite finite inputs. | Read the named validation message and verify units/magnitude. Validation, CLI handler. |
| Empty current sequence still fails validation | simulate validates parameters, initial state and time before iterating. |
Supply a valid interval even for an empty profile. Simulation. |
| Very fine timestep exhausts memory | constant_profile allocates a list; the sys.maxsize guard is not a practical memory budget. |
Inspect ceil(duration/dt) before allocating; use a coarser representation appropriate to the input's variation. Profile. |
| CSV path fails or a file is replaced | Parent directories are not created; a valid write opens the destination with w. |
Choose an existing writable directory and a disposable filename. Numerical invalid-input failures occur before opening. Writer. |
| Zero ripple or zero pulse result is rejected at extreme scales | The code rejects unrepresentable denominators and underflow of a mathematically nonzero result. | Recheck SI units; do not suppress the error and claim a physically zero result. DC-link bounds. |
| Passing a voltage drop equal to the bus fails | The energy calculation requires a positive final voltage: 0 < drop < bus. |
Choose inputs consistent with that modeled discharge boundary. Drop check. |
| MATLAB parity report is absent | Python capture does not execute MATLAB. The full gate requires a licensed MATLAB runtime and an unchanged checkout. | Run the three-stage capture/MATLAB/verify sequence and retain all reports. Gate. |
| A browser checkpoint differs from the visible cursor | Each declared atTime is evaluated independently; a prior verified state may remain recorded. |
Load the module preset, inspect the fixed checkpoint time, and verify the current experiment. Controller. |
| Downloaded config ignores modified sliders | The config download serializes the original config; CSV includes current parameter columns. | Export telemetry for the current experiment. Exports. |
| CSP tests fail after HTML editing | Inline script/style bytes and unsafe attributes are checked against policy. | Inspect the diff; use node scripts/browser-csp.mjs --check, and regenerate policy only for intended docs files. CSP CLI. |
| A new Markdown page is raw on Pages | The workflow uploads docs/ as a static artifact, with .nojekyll present. |
Regenerate the rendered handbook from canonical Markdown. Publish path. |
When a check fails remotely
Identify the PR head SHA, provider, workflow run, job and actual tested SHA first. Read the failing job's logs and confirm whether the revision is the head, a synthetic PR merge or a merge-queue commit. A historical green source check does not clear a new documentation candidate. The metadata policy workflow checks author/committer/commit-message data in an event-selected revision range; inspect its actual failure messages and checked-commit summary. The workflow does not print the selected range as a separate diagnostic line. Authorship policy.
Do not weaken checks or falsify metadata to obtain a green result. Record the failing condition and follow the release playbook. If the classic protection API is inaccessible, that is a permission limitation, not evidence that review, signature or queue rules are absent.
Canonical file: docs/developer/TROUBLESHOOTING.md · Back to guide navigation
Embedded browser model catalog
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
The inline LabSimulation library ships ten deterministic teaching modes. The active config in this repository selects thermal. The other modes are exported implementation surface, not evidence of ten native battery/power solvers or ten independently validated scientific applications. This catalog accounts for them without extending their scientific claims. Library specifications and implementations, selected mode.
Shared contract
getModelSpec(kind) returns the declared specification or throws for an unknown kind. resolveParameters considers only keys in that specification, clamps finite numeric values to each range, and substitutes defaults otherwise. evaluateModel clamps time into the declared horizon (nonfinite time becomes zero). Each result is a flat object of the metric keys below. The exact parameter names, default values, ranges and labels are exposed in MODEL_SPECS; treat them as snapshot-specific interfaces. Resolver and evaluator.
| Kind; model time | Inputs by exact key | Returned metric keys | Implemented teaching relationship and limits |
|---|---|---|---|
battery; hours, 0–6 |
capacityAh, currentA, resistanceOhm, ambientC, initialSoc |
socPct, voltageV, powerKW, temperatureC |
Linear ampere-hour depletion, clamped SOC; synthetic open-circuit-voltage line minus IR; zero effective load after depletion; illustrative thermal rise/cooling. No chemistry, BMS or measured voltage curve. |
thermal; minutes, 0–60 |
heatW, coolingWK, capacityJPerK, ambientC |
temperatureC, heatRemovedW, storedEnergyKJ, residualW |
Constant heat/linear conductance closed form, starting at ambient. This is the configured lesson; see the derivation. |
degradation; cycles, 0–1000 |
fadePer1000Pct, temperatureC, cRate, initialCapacityAh |
retentionPct, capacityAh, resistanceGrowthPct, throughputKWh |
Exponential retention with a heuristic temperature/C-rate multiplier; derived capacity, illustrative resistance growth and integrated throughput at 3.7 V. No fitted life model or calendar aging. |
grid; hours, 0–24 |
demandKW, solarKW, batteryKW, carbonGPerKWh |
gridImportKW, solarOutputKW, renewablePct, emissionsKgPerH |
Synthetic daily solar/demand curves and fixed battery power; nonnegative grid import. No battery energy inventory, export settlement or grid-network dynamics. |
cooling; minutes, 0–60 |
serverCount, utilizationPct, ambientC, coolingEfficiency |
itKW, coolingKW, pue, inletC |
Synthetic utilization oscillation, server power, COP/ambient cooling multiplier and inlet-temperature relaxation. No equipment performance map. |
agents; minutes, 0–30 |
arrivalRate, agentCount, serviceRate, coordinationPct |
backlog, throughput, utilizationPct, waitMinutes |
Constant fluid arrival/service rates with coordination overhead and an initially empty backlog. No stochastic queue distribution or scheduling execution. |
markets; hours, 0–24 |
baseSpreadBps, feeBps, slippageBps, notionalUSD |
spreadBps, netEdgeBps, netPnlUSD, costUSD |
Synthetic oscillating spread, fixed fee/slippage deduction and notional-scaled per-evaluation P&L. No market feed, trading, execution or accumulated strategy return. |
control; seconds, 0–20 |
setpoint, damping, naturalFrequency, gain |
output, error, velocity, overshootPct |
Continuous second-order step response with under/critical/overdamped branches. No discrete controller, delay, saturation or plant identification. |
security; minutes, 0–60 |
alertRate, analystCount, reviewRate, automationPct |
backlog, coveragePct, reviewedAlerts, workloadPct |
Fluid alert/review throughput with ideal automated handling and an empty initial backlog. No measured detection quality or false-positive model. |
charging; minutes, 0–120 |
capacityKWh, chargerKW, efficiencyPct, initialSoc |
socPct, chargingKW, energyAddedKWh, lossKW |
Constant effective charging power to 80% SOC, then an illustrative exponential taper; efficiency-derived loss. No battery electrochemistry, BMS or infrastructure limit model. |
Exact definitions: model specifications, all evaluator branches. Parameter/metric identifiers in this table are documented from the source and must be compared with those exports when changing the browser library.
Selected explanatory relationships
For battery, SOC is clamped from SOC_0 − 100 I t_h / capacityAh; loaded voltage is the illustrative 320 + 0.8 SOC − I_effective R. This is a teaching curve, not a measured open-circuit-voltage map. For degradation, the decay coefficient is fadePer1000Pct/100000 × exp((temperatureC−25)/20) × sqrt(cRate), with retention 100 exp(−k cycles). Parameter names express the library's heuristic, not a fitted manufacturer rating. Branches.
For control, the implemented response corresponds to a zero-initial-state second-order system driven by a step: y'' + 2ζω y' + ω²y = Kω²r. The code branches on damping and uses a narrow near-critical comparison; the displayed error is relative to the input setpoint, while overshoot is relative to the gain-scaled target. For charging, the model's transition and time constant are derived from the remaining 20% capacity and effective charger power. These explanations are source interpretations of the teaching formulas, not additional algorithms. Control through charging branches.
Verification boundary
The existing automated browser suite verifies CSP/document contracts. Native Python/MATLAB tests exercise native models and parity fixtures; they do not automatically establish all ten browser modes' numerical correctness. The documentation audit separately evaluated all eight configured thermal lesson checkpoints against the actual exported library. That bounded check concerns the selected thermal lessons only. Expanding executable browser-model invariants and export/state tests is proposed in the roadmap.
The animation archive's waveform.html has a separate illustrative damped/oscillating visual calculation; it is not a public alias of a native thermal/DC-link implementation. Archive script. Its historical explanatory role should remain visible when linking it from a portfolio.
Canonical file: docs/developer/BROWSER_MODEL_CATALOG.md · Back to guide navigation
Equations and derivations
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
This document distinguishes literal implemented expressions from explanatory derivations. Values are reference inputs and synthetic fixtures; no measured calibration is established. Symbols and defaults are in parameters, and the domain boundary is in assumptions.
1. Lumped thermal balance
The native Python and MATLAB implementations correspond to the zero-dimensional energy balance
C_th dT/dt = I²R − G(T − T_a)
Q = I²R [W]
τ = C_th / G [s]
T_ss = T_a + Q/G [°C]
G denotes the code's cooling_conductance_w_per_k; the MATLAB comment calls it hA. C_th is total thermal capacitance in J/K, not electrical capacitance. A temperature difference in °C has the same numerical magnitude as a difference in K. I²R is nonnegative for either current sign, so this model omits sign-dependent reversible heat. Literal expressions are at Python update and MATLAB update.
Explanatory derivation. Hold I, R, G, C_th and ambient constant during one interval. Set θ = T − T_ss. Then dθ/dt = −θ/τ, so integration from one endpoint to the next gives
a = exp(−G Δt / C_th)
T_next = T_ss + (T_previous − T_ss) a
That is the expression the code evaluates, rather than a forward-Euler approximation. For positive G, C_th and Δt, the mathematical factor satisfies 0 < a < 1; roundoff may give exactly 0 or 1 at extreme scales. The mathematical update lies between the previous temperature and steady temperature. There is no Euler-style stability timestep restriction for this held-input equation. A rapidly varying physical current still requires an appropriate piecewise-constant input representation. Step and sequence.
Initial and boundary conditions
simulate stores T(0)=initial_c, defaulting to the configured ambient. The ambient is a constant thermal reservoir coupled through G; when T is below ambient, G(T−T_a) is negative and heat enters the lump. This is a spatially uniform model, so there are no spatial mesh, surface-flux or PDE boundary nodes. For the audited implementation, G=0 is supported by the exact adiabatic branch, T_next = T_now + I²R Δt/C_th; the historical source snapshot linked in this section predates that remediation. Validation and initial state, simulation.
Native discretization and CLI duration
Each current in simulate applies for the same supplied Δt, and the result has N+1 endpoints. The CLI computes N=max(1,ceil(duration/requested_dt)), then Δt=duration/N. Direct API users must choose their own interval explicitly; constant_profile does not return a corrected time step. No adaptive tolerance, nonlinear iteration or numerical ODE solver is used. Profile and CLI, CLI integration.
2. Active browser thermal lesson
The selected browser mode implements the same constant-source balance with direct heat input Q and the fixed initial condition T(0)=T_a:
t_s = 60 t_min
ΔT(t) = (Q/G) [1 − exp(−G t_s/C_th)]
temperatureC = T_a + ΔT
heatRemovedW = G ΔT
storedEnergyKJ = C_th ΔT / 1000
residualW = Q − G ΔT
residualW is the instantaneous heat-storage rate, not an integrated conservation-error diagnostic. storedEnergyKJ is sensible thermal energy relative to the initial ambient, not battery electrical state of energy. The dashboard config overrides the library's generic defaults and selects minutes/60-minute horizon; the native Python defaults use seconds and different constants. Implemented browser branch, active config. The other nine browser modes are separate teaching proxies cataloged in browser models.
3. Triangular capacitor-current ripple
Literal implementation:
ΔV_pp = I_pp / (8 f_sw C_dc)
Here I_pp is the peak-to-peak value of a symmetric, zero-mean triangular capacitor current; it is not automatically the bus DC current, RMS current or inductor ripple for an unspecified topology. Python, MATLAB.
Explanatory derivation. The positive current half-cycle has duration 1/(2f_sw) and peak I_pp/2. Its triangular charge area is (1/2) × (1/(2f_sw)) × (I_pp/2) = I_pp/(8f_sw). The ideal capacitor's voltage changes by ΔQ/C_dc between the two current zero crossings, giving peak-to-peak ripple above. Units are A/(s⁻¹ F)=V. This derivation assumes periodic zero-mean current and an ideal capacitor; it does not include instantaneous ESR ripple or ESL voltage.
4. Capacitance for a constant-power energy pulse
Literal implementation uses a factored energy denominator:
E_pulse = P Δt_p
V_initial = V_bus
V_final = V_bus − ΔV
C_min = 2 P Δt_p / [ΔV (2 V_bus − ΔV)]
Explanatory derivation. Equate pulse energy to the capacitor energy decrease:
P Δt_p = (1/2) C_dc [V_bus² − (V_bus − ΔV)²]
V_bus² − (V_bus − ΔV)² = ΔV (2V_bus − ΔV)
Solving gives the implemented C_min. The factored form avoids subtracting two nearly equal squared voltages, but it does not eliminate every floating-point overflow/underflow case. Inputs require P>=0, duration>=0 and 0 < ΔV < V_bus; thus this branch describes discharge over an allowed positive drop, not negative-power charging. The capacitor supplies the ideal pulse alone; source replenishment and losses are absent. Units are J/V²=F. Python energy calculation, MATLAB, small-drop regression.
5. Numerical agreement and what it establishes
Python uses finite floating-point checks and the MATLAB functions convert/model inputs as doubles. Extreme finite inputs can still make intermediate denominators or final values unrepresentable. The thermal expression can lose tiny changes by cancellation; neither its “analytical” name nor full branch coverage establishes arbitrary-precision accuracy. Native bounds tests explicitly exercise overflow, underflow and invalid traces. Boundary tests.
The cross-language regression criterion is abs(actual−expected) <= 1e-12 + 1e-12 * abs(expected) for each fixture value. These tolerances describe deterministic fixture comparison, with units inherited from each metric, not uncertainty from measurement or parameter identification. MATLAB execution and fixture provenance must be reported separately. Python capture, MATLAB parity comparison.
Canonical file: docs/math-and-physics/EQUATIONS_AND_DERIVATIONS.md · Back to guide navigation
Parameters and symbols
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
Native thermal quantities
| Symbol in this guide | Python/MATLAB field or argument | Unit | Default / allowed input | Provenance |
|---|---|---|---|---|
| I | current_a, currents_a |
A | Finite signed values; CLI constant default 80 | Reference input; no measured current trace supplied |
| R | resistance_ohm |
Ω | 0.003; finite >=0 | Source default; not a calibrated cell resistance |
| C_th | thermal_capacitance_j_per_k |
J/K | 5000; finite >0 | Source default; no mass/heat-capacity derivation supplied |
| G, called hA in a MATLAB comment | cooling_conductance_w_per_k |
W/K | 4; finite >0 | Effective total conductance; not a separate convection coefficient h |
| T_a | ambient_c |
°C | 25; finite | Constant reservoir; code does not enforce a physical lower temperature bound |
| T_0 | initial_c |
°C | Ambient when omitted; finite when supplied | Initial lump temperature |
| Δt | dt_s |
s | Finite >0; native API uniform interval | CLI --dt defaults to 1 and is a maximum before interval adjustment |
| t_end | duration_s, CLI --duration |
s | Finite >0; CLI default 900 | Native CLI duration, not browser model minutes |
| Q | heat_w |
W | I²R, derived | No reversible/electrochemical heat term |
| τ | C_th/G, not a stored public field |
s | 1250 at native defaults | Derived time constant |
| T_ss | steady_c |
°C | T_a+I²R/G; 29.8 at 80 A/defaults | Constant-input equilibrium |
Definitions and constraints: Python parameters/update, profile/CLI, CLI defaults, MATLAB defaults.
Native DC-link quantities
| Symbol | Argument | Unit | Allowed values; demo value |
|---|---|---|---|
| I_pp | current_pp_a |
A peak-to-peak | Finite >=0; 20 |
| f_sw | switching_hz |
Hz | Finite >0; 10000 |
| C_dc | capacitance_f |
F | Finite >0; 0.0022 (2.2 mF) |
| ΔV_pp | function result / ripple_vpp |
V peak-to-peak | Derived; demo ≈0.113636 |
| P | power_w |
W | Finite >=0; 20000 |
| Δt_p | pulse_s |
s | Finite >=0; 0.02 |
| V_bus | bus_v |
V | Finite >0; 800 |
| ΔV | allowed_drop_v |
V | Finite >0 and <V_bus; 20 |
| C_min | function result / minimum_capacitance_f |
F | Derived; demo ≈0.02531646 (25.31646 mF) |
The functions have no default argument values; the numbers above are the script's fixed examples, not recommended hardware ratings. Positive denominators and nonzero results must also be representable. Python contracts and demo, MATLAB arguments.
Three distinct thermal parameter sets
| Quantity | Native default | Active dashboard lesson default | Bare browser library default |
|---|---|---|---|
| Heat input | Derived from I²R; 19.2 W at CLI 80 A | heatW=300 W |
heatW=1200 W |
| Conductance | cooling_conductance_w_per_k=4 W/K |
coolingWK=20 W/K |
coolingWK=40 W/K |
| Thermal capacitance | thermal_capacitance_j_per_k=5000 J/K |
capacityJPerK=6000 J/K |
capacityJPerK=18000 J/K |
| Ambient | ambient_c=25 °C |
ambientC=25 °C |
ambientC=25 °C |
| Time argument | seconds | minutes, horizon 60 | minutes, horizon 60 |
| Initial temperature | Optional, defaults to ambient | Ambient | Ambient |
LabSimulation.evaluateModel('thermal', {}, t) resolves the bare library defaults. The dashboard controller starts with values from docs/lesson-config.json. Do not silently transfer either set into native code. Native defaults, library specifications, active lesson, controller configuration.
The active thermal control ranges are heat 100–3000 W (step 100), conductance 10–120 W/K (step 5), thermal capacitance 3000–60000 J/K (step 1000), and ambient 0–45 °C (step 1). These are pedagogical slider ranges, not empirically validated operating ranges. The browser clamps supplied finite numbers; the native API rejects invalid domain values instead of applying slider bounds. Lesson controls, parameter resolver.
Naming collisions and conversions
C_this thermal capacitance in J/K;C_dcis electrical capacitance in F. Code field names preserve this distinction even when a generic browser parameter is calledcapacityJPerK.Gand the MATLAB comment'shAmean the same total W/K conductance. A value of h in W/(m²·K) alone cannot be substituted without an area.- Native Δt is in seconds; browser thermal time is in minutes and is multiplied by 60 internally. Browser
storedEnergyKJdivides joules by 1000. - Native current may be signed, but thermal heat uses its square. DC-link
current_pp_ais nonnegative peak-to-peak ripple, not that signed current. - ΔV in energy sizing is a one-direction bus-voltage drop; ΔV_pp is full periodic ripple. They have the same unit and different meanings.
These mappings follow the expressions in native thermal, native DC-link and browser thermal. Preserve identifiers in code and document aliases explicitly when comparing repositories.
Data and uncertainty
Source defaults and browser checkpoints are illustrative/synthetic. The parity fixture records Python-generated baseline values and a historical source commit; it contains no empirical uncertainty model. The repository supplies neither a measured thermal calibration table nor a capacitor qualification dataset in the inventoried tree. Do not assign error bars, confidence intervals, or a battery chemistry from these constants. Fixture provenance, lesson calibration statement, coverage accounting.
Canonical file: docs/math-and-physics/PARAMETERS_AND_SYMBOLS.md · Back to guide navigation
Assumptions and limits
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
What the models establish
The native implementation demonstrates a constant-parameter lumped thermal balance and two ideal capacitor relationships. The browser provides deterministic teaching proxies. They support equation inspection, software regression, classroom exercises and early comparisons within their stated assumptions. They do not establish a measured device model, battery safety envelope, control-system design, lifetime forecast or hardware qualification. Native model boundary, native expressions, DC-link expressions, browser calibration declaration.
Physical assumptions by calculation
| Calculation | Assumptions actually used | Missing effects / information needed before extending use |
|---|---|---|
| Native thermal | One uniform temperature; fixed R, C_th, G (including the adiabatic G=0 limit) and ambient; I held constant per supplied interval; I²R heating only | Spatial gradients, cell geometry, state/temperature-dependent resistance, reversible heat, thermal contact details, radiation, phase change, temperature-dependent properties, chemistry and measured calibration |
| Active browser thermal | Constant direct Q; ambient initial state; linear conductance; same closed-form first-order response | Native current/resistance mapping and custom initial temperature; lesson limits are slider bounds, not physical validity bounds |
| Triangular ripple | Ideal capacitor; symmetric zero-mean triangular capacitor current at specified frequency | ESR/ESL, current-rating and thermal limits, DC bias/tolerance/aging, topology-specific current derivation and transient control response |
| Energy pulse | Ideal capacitor supplies constant power over the pulse; positive voltage drop below initial bus voltage | Source replenishment, converter efficiency/losses, current limits, allowable minimum voltage under control dynamics, capacitor ratings and uncertainty |
Sources: thermal, MATLAB thermal, browser, DC-link. Missing effects above follow from the absence of corresponding terms/states in these implementations; they are not newly discovered hardware faults.
Input domain is not a validated operating envelope
Native validation checks finite scalars and mathematical sign constraints. It accepts finite ambient and initial temperatures without a physical absolute-zero bound, accepts arbitrary finite signed currents until arithmetic becomes unrepresentable, and requires positive conductance. It neither enforces electrochemical limits nor verifies that a lumped approximation is adequate. Choosing extreme but accepted inputs does not make their interpretation physical. Native validation, initial-state validation.
The implementation provides no adaptive solver, error estimator or mesh. The analytical update is exact for the held-input differential equation in real arithmetic; machine arithmetic and a piecewise-constant approximation to a changing input remain sources of error. Large steps are stable for this equation, but may misrepresent unresolved changes in a real input profile. The thermal expression can round tiny increments away. DC-link arithmetic rejects several extreme-scale overflow/underflow cases rather than returning physically misleading zeros. Update, bounds tests.
Allocation and output limits
constant_profile and simulate keep full lists in memory; neither is a streaming solver. A count below sys.maxsize can still exceed available RAM. write_csv materializes its current iterable, rounds temperatures to six decimals and overwrites an existing valid destination. CSV rounding is a presentation choice, not the internal model precision. Allocation.
Browser thermal resolution is a fixed 241-point display/export series over 60 minutes, while individual checkpoints are evaluated directly at their specified times. The curve's sampling is not an adaptive numerical integration. Browser export and native CSV have different fields, units and sampling conventions. The browser library includes nine other teaching kinds; their presence is not evidence of native implementations or validation of those domains. Browser controller, catalog.
Evidence limits
The frozen Python/MATLAB fixture says its values originate in Python baseline execution. The current capture/verify helper adds fresh Python execution and source hashes. MATLAB parity requires actual MATLAB execution; the audit's local runtime did not have it. A successful exact-source historical GitHub MATLAB check was separately observed, but it does not establish a later candidate's result. Fixture, MATLAB gate, verification ledger.
The locally observed 100% numerical line/branch coverage covers the executed test paths, including bounded generated inputs. It does not prove all finite floating-point cases, every Python/MATLAB version, a minimal dependency environment, empirical model accuracy or browser usability. Security scanner internals and generated artwork are honestly indexed where they were not exhaustively analyzed; see source accounting.
Extending the evidence responsibly
A future calibrated model should identify the device and measurement method, license/provenance of data, parameter-fitting procedure, train/validation separation, uncertainty, operating range and out-of-sample error. A future coupled controller should specify state, sign conventions, saturations, sample/hold behavior, solver and stability checks. These are proposed research/engineering work in the roadmap, not capabilities delivered by this documentation change.
Canonical file: docs/math-and-physics/ASSUMPTIONS_AND_LIMITS.md · Back to guide navigation
Verification evidence ledger
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
Revision and evidence boundaries
This is an audit snapshot dated 2026-11-19 of source commit 0304bfec25c43f42f103ebda239749b88609a187, tree 5c6ee36ca55645c440f8c006cc399dd2c13f9db2. The complete source tree contains 169 entries: 133 text blobs and 36 directory objects, with all source blob identities verified. Generated drawings, dependency locks and selected security-tooling internals are accounted for without claiming full semantic analysis; see source coverage.
Local model checks below ran before documentation editing on an isolated checkout at that source revision. The application, numerical source, tests, manifests, workflows and license remain byte-for-byte source material in the documentation candidate. Documentation checks bind separately to the candidate's complete tree fingerprint in the external audit handoff. No document can truthfully contain the hash of the commit that introduces itself; PR, candidate-commit, merge and deployment receipts therefore remain separate delivery records.
Observed local execution
| Command / target | Observed result | Scope and limitation |
|---|---|---|
python -m pytest tests --cov=src --cov-branch ... -q |
PASS: 40 tests, 345 subtests | CPython 3.12.14; 136/136 numerical statements and 66/66 branches covered (100% each); bounded tests, not empirical validation |
python -m unittest discover -s tests -v |
PASS: 32 tests | Documented unittest collection; excludes pytest-only function tests |
python -m pytest tests .github/security/test_contracts.py .github/security/test_native_scanner.py --cov=src --cov=scripts --cov=.github/security --cov-branch ... -q |
PASS: 109 tests, 469 subtests | Wider configured test targets; numerical core stays 100%; combined model/tooling coverage reported 71%, not 100% |
node --test tests/browser/csp.test.mjs |
PASS: 17 tests | Static HTML/CSP contracts; no browser interaction or screenshot verification |
python scripts/portfolio/validate_guide.py |
PASS: four source-linked learning paths | Existing historical portfolio config/embedded data and structural validation |
python scripts/capture_python_parity.py --output FILE followed by --verify FILE |
PASS: six thermal and four DC-link cases | Fresh Python execution and seven source hashes; does not execute MATLAB |
Thermal CLI, including --duration 10 --dt 3, and DC-link script |
PASS: reproduced outputs in worked examples | Synthetic examples; output destinations were disposable |
| MATLAB / Octave locally | NOT RUN: runtime unavailable | Do not relabel Python fixture checks as MATLAB execution |
| Local Chromium visual check | UNAVAILABLE: process launch failed with socket() ... Operation not permitted |
Static DOM/CSP checks are distinct; independent browser/publication inspection remains a delivery task |
Exact argv, timestamps, exit codes, sanitized logs, coverage JSON/JUnit and generated example/parity outputs are retained in the external per-repository audit records. A single deprecation warning came from the inherited anyio pytest plugin in the audit environment; the recorded runs still exited zero. The venv inherited system packages and installed the exact dev-group pins, so it was isolated from repository changes but not a minimal dependency proof. Declared dev group, configured full test targets.
Historical remote checks for the exact source
Read-only GitHub retrieval at 2026-11-19 12:48 UTC returned all 18 check runs (total_count=18, one page of capacity 100), all completed successfully with head_sha equal to the pinned source. These are earlier remote executions, not reruns caused by this documentation candidate.
| Historical workflow / checks | Evidence |
|---|---|
| Hardened CI: security workflow/dependencies/SAST/secrets/Trivy, seven quality modes, MATLAB numerical gate | Run 44095089199 |
Flagship dashboard: validate, deploy |
Run 44095089215 |
| Human-authorship metadata policy | Run 44095089226 |
| CodeQL Python and JavaScript/TypeScript | Run 44095089537 |
The combined legacy-status endpoint contained zero statuses. Its aggregate pending string with an empty status list is not an additional executed or pending check. Check runs and commit statuses are separate provider records. Current candidate checks must be retrieved again at the actual PR head or explicitly mapped merge revision.
Source declarations versus fresh observations
| Claim | Classification and evidence |
|---|---|
| Python and MATLAB implement equivalent formulas | Source analysis; thermal pair, DC-link pair |
| MATLAB executed successfully for source 0304… | Historical provider result linked above; not local execution and not a candidate result |
| Browser checkpoints are analytical fixtures | Declared synthetic provenance; lesson source block |
| Frozen parity values are measured data | Not supported; the fixture explicitly records Python baseline origin. Fixture |
| Current Pages deployment includes this documentation change | Not established by this authored snapshot; requires a later merged SHA, deployment record and live-content inspection |
| The documentation candidate satisfies all branch rules | Not established here; classic protection API was inaccessible, and fresh policy/PR evidence belongs to integration |
Required next evidence
Independent QA must review the complete candidate diff and fingerprint, required outputs, source locators, equations, local destinations, rendered navigation, citation schema and scope. The integration owner then binds QA to the actual commit, retrieves the exact candidate's checks and all applicable branch/review rules, and uses an expected-head merge guard. After merge, identify the Pages run's source SHA and inspect the newly rendered guide at the deployed URL. An old green run, open PR or HTTP 200 alone does not establish completion. See the playbook.
Canonical file: docs/maintainer/VERIFICATION_EVIDENCE_LEDGER.md · Back to guide navigation
CI/CD and release playbook
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
Configured workflows
All seven inspected workflows use GitHub Actions. No CircleCI or Buildkite configuration exists in the pinned tree; their optional connector availability does not block inspection of the actual GitHub workflows. Full tree.
| Workflow | Trigger scope | Behavior / gate boundary |
|---|---|---|
no-codex-attribution.yml |
PR, merge group, main push and tags | human-authorship-policy scans event-selected commit metadata; required context is visible in branch metadata |
hardened-ci.yml |
PR, main push, merge group, dispatch and schedule | Five security jobs, seven quality modes and MATLAB R2026a numerical gate; report artifacts |
codeql.yml |
PR, main push, merge group, dispatch and schedule | Python and JavaScript/TypeScript analyses and report validation |
python-validation.yml |
PR/main changes under native Python/tests/workflow plus dispatch | Python 3.12 dev dependencies and unittest discovery |
markdown-maintenance.yml |
PR/main Markdown/Python/MATLAB/CFF/workflow changes plus dispatch | Python tests, both native examples and Lychee for README.md and CONTRIBUTING.md only |
portfolio-dashboard-check.yml |
PR/main pushes matching configured portfolio paths; all tag pushes | Four-path source-linked guide validator; no manual dispatch trigger |
deploy-dashboard.yml |
Main push affecting docs/**, assets/** or workflow; dispatch |
Static validation followed by upload of docs/ and Pages deployment |
Definitions: authorship, hardening, CodeQL, Python, docs/model, portfolio, Pages.
GitHub does not apply path filters to tag pushes. See the official workflow syntax.
The new handbook's Markdown links require explicit local validation because the existing Lychee target list does not expand to every new Markdown document. The workflow remains unchanged in this documentation-only scope. A path-filtered workflow that does not run must not be recorded as a successful execution.
Before opening or updating a PR
- Pin the base source SHA and inspect applicable repository instructions. Preserve the scientific/application/workflow/dependency/license scope boundary.
- Regenerate the handbook from canonical Markdown; run the documentation runbook and relevant existing checks. Preserve exact commands, exit status and the candidate fingerprint.
- Obtain independent review of the exact diff. Repairs change the fingerprint and invalidate affected checks/review evidence until repeated.
- Use accurate author/committer metadata and an accurate description of how changes were produced. Do not falsify metadata or weaken a policy to make it pass.
Repository CI-integrity instructions, metadata policy implementation.
Reconcile rules and checks at the actual candidate
At the recorded source snapshot, main was protected and compact branch metadata listed human-authorship-policy from the GitHub Actions app. The rulesets list was empty. The complete classic-protection API returned 403, resource not accessible by integration. That leaves unobserved classic settings unknown until an authorized visible settings/API read resolves them; an empty rulesets response is not proof that signatures, reviews, strict updates, conversation resolution or merge restrictions are absent.
Before merging, refresh the PR head/base, current branch rules, review decisions, conversations, mergeability and required check contexts including expected provider/app. Retrieve both check runs and statuses. A check on a synthetic merge or merge-queue SHA needs explicit head/base mapping. If the candidate moves, rebind all relevant evidence. Use the platform's normal allowed merge mode with an expected-head SHA; if a queue is required, enter it normally. Never substitute an administrator bypass or a historical green check for a required gate.
Current policy decisions belong in dated operational receipts, because they can change independently of the source tree. The verification ledger records source-baseline evidence without claiming a new PR's result.
Publish through the existing route
The Pages workflow runs on relevant main pushes, validates static structure, and uploads the entire docs/ directory. Its deploy job uses the github-pages environment and Pages/id-token permissions; environment approvals or policies must be respected. The site already has .nojekyll, so the Markdown handbook is accompanied by a generated static HTML guide. No application build, new hosting provider or dependency change is required. Workflow.
After merge, record the merge SHA, qualifying workflow run, artifact/deployment identity and effective site URL. Verify the run's head SHA is the intended merged revision; then open /reference/, follow the dashboard's guide link, check a distinctive changed section and inspect desktop/mobile navigation. Record CSP/network errors and relevant screenshots. Do not claim publication from the repository's has_pages metadata, an earlier successful deploy, or a responding URL alone.
Releases, rollback and incidents
The read-only 2026-11-19 API snapshot returned no releases and no tag references; it did not discover a versioned release channel. The existing dashboard's v1.0/schema markers are not release tags. Dashboard marker, lesson schema. Use CHANGELOG for an unreleased documentation entry; do not manufacture a release date, version or DOI.
If this documentation breaks navigation or publishing, prepare a normal revert/fix PR of the specific docs change, rerun required gates and verify the resulting deployment. Do not force-push the protected branch or rewrite numerical history. For a security report, follow SECURITY.md, keeping sensitive details out of public issues. CI timings and scanner costs should be measured before proposing optimizations; existing gates and trust boundaries remain intact.
Canonical file: docs/maintainer/CI_CD_AND_RELEASE_PLAYBOOK.md · Back to guide navigation
Toolchain and dependency matrix
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
| Layer | Declared configuration | Observed audit environment / evidence | Limits |
|---|---|---|---|
| Native Python runtime | README Python 3.10+; standard-library imports; Ruff/mypy target 3.10 | CPython 3.12.14 model/test execution | Does not establish every supported-version combination |
| Python dev tools | Ruff 0.17.4, mypy 2.4.1, pytest 9.2.0, pytest-cov 7.1.0, Hypothesis 6.170.15 | Exact flat dev-group pins installed in an isolated venv inheriting system packages | Development requirements differ from standard-library model runtime; environment was not minimal/hermetic |
| pip group installation | Workflows call python -m pip install --group dev |
Audit pip 25.0.1 used TOML expansion to install the same list | --group itself requires pip 25.1+ |
| Browser runtime | Self-contained inline teaching scripts, local styles/assets/config; no frontend package build | Static CSP and guide checks; selected thermal checkpoint evaluation | Browser GUI launch was unavailable locally; no full interaction claim |
| Node quality tooling | Node >=22; CI Node 24; exact package-lock.json |
Node 24.22.3; isolated npm ci --ignore-scripts completed with unchanged lockfile |
Development-only; no Node runtime required to view the published HTML |
| Browser dev packages | ESLint/@eslint/js 9.39.5; TypeScript 5.9.3; typescript-eslint 8.55.0; Prettier 3.9.10; globals 17.14.0; @types/node 26.6.6; scoped minimatch override 11.0.4 | Lockfile resolves the complete transitive set | Do not change pins in a documentation update |
| MATLAB numerical validation | Hardened CI selects R2026a and invokes the existing gate | Exact-source historical CI success; no local MATLAB/Octave | Minimum supported MATLAB release is not established |
| Security scanners / builds | Separate bootstrap/build requirement files, binary/native-scanner metadata and provenance records under .github/security |
Existing source contracts and historical CI checks; selected internals indexed | Scanner packages are not native-model dependencies; full build reproduction was not performed locally |
| Docs rendering | Canonical Markdown; narrowly scoped standard-library Python renderer invokes Pandoc | Pandoc 3.1.11.1 used for the derived handbook | Optional authoring tool only; generated page has no Pandoc/Python dependency |
| Citation validation | Existing CITATION.cff declares CFF 1.2.0 |
Official CFF 1.2.0 JSON schema with duplicate-key-rejecting YAML parse and JSON-schema format checks | Parser semantics recorded; no DOI/version/contact added |
Primary repository evidence: README runtime, Python tooling, NPM manifest, hardening workflow, Python workflow, security guide, CFF. Official pip dependency-group behavior is documented in the pip guide.
Reproduction choices
Use the source checkout's manifests and lockfile as the version authority. Capture the resolved environment and exact commands with each run rather than treating the table as an evergreen lockfile. npm ci --ignore-scripts reproduces the committed Node dependency graph without running dependency lifecycle scripts. The current flat Python dev list is pinned, while the audit's inherited system packages remain an explicit limitation. Setup gives the corresponding commands.
The repository has security/bootstrap/build dependency families that support scanners and provenance, not the scientific API. Their existing tooling guide and pinned records remain canonical. Generated locks, OCaml switch export and binary/scanner metadata are retained and indexed rather than rewritten or described as fully independently rebuilt.
Maintenance trigger
Whenever a manifest, interpreter selection, native function signature, scanner contract, Pages route or lesson config changes, update the affected table row, rerun the corresponding checks, and retain the previous evidence as a dated observation. Changes to test tooling can change collection counts without changing model behavior. Changes to the source SHA invalidate source links and parity captures until regenerated. Capture source hashing.
Canonical file: docs/maintainer/TOOLCHAIN_AND_DEPENDENCY_MATRIX.md · Back to guide navigation
Failure modes and technical debt
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
The following are bounded source findings and proposed follow-up work. They do not authorize numerical/application/workflow changes within the current documentation package.
| ID / class | Evidence and consequence | Proposed resolution / verification |
|---|---|---|
| BPM-F01 — documentation provenance | The older portfolio lesson says nondivisible duration requires care, while current CLI uses duration/count. The config is explicitly pinned to older source. Historical text, current behavior. |
Keep the historical label now; separately refresh source-linked catalogs and embedded copies with a reviewed provenance update and a nondivisible-duration regression example. |
| BPM-F02 — documentation coverage | Lychee checks only README and CONTRIBUTING. New handbook links are outside that configured target set. Workflow. | Propose a docs-wide local destination/render freshness gate and a measured external-link policy; prove a deliberately broken new-doc link fails the gate. |
| BPM-F03 — browser verification | Existing browser tests target CSP/document contracts; the exported library contains ten modes and the configured lesson has eight thermal checkpoints. Tests, library. | Add separately reviewed invariants/export/state tests for the active thermal mode before expanding numerical claims to other kinds; assert all configured checkpoints and unit conversions. |
| BPM-F04 — numerical conditioning | Thermal closed form uses steady + (temp-steady)*exp(...); tiny changes may round away. DC-link formulas guard finite representability but finite inputs can still overflow intermediate expressions. Thermal, DC-link. |
Define a justified accuracy domain and compare against high-precision references before proposing any algorithm change. Retain existing error contracts and Python/MATLAB parity. |
| BPM-F05 — memory scaling | Current profile and temperature trace are full lists; a representable count is not an available-memory budget. Allocation. | Measure memory/runtime versus sample count, document a practical tested range, then consider a separately designed streaming API if a real use case needs it. |
| BPM-F06 — environment evidence | Model runtime declaration, CI test runtime and dev dependency requirements differ. Audit venv inherited system packages; MATLAB ran only in historical remote evidence. Runtime/config, CI. | Establish a supported interpreter/MATLAB matrix and a clean-environment replay with retained versions, logs and fixture identities. |
| BPM-F07 — scientific provenance | Defaults/checkpoints are illustrative and fixture values originate in Python execution, without measured calibration or uncertainty. Lesson, fixture. | Treat any calibration as exploratory work requiring a licensed dataset, device identity, fitting/validation split and uncertainty report. Do not imply hardware qualification from software coverage. |
| BPM-F08 — owner/recovery evidence | Repository author/license/citation are documented; no maintainer succession roster, supported-version commitment or private security contact is established. CFF, security policy. | Have the owner choose actual maintainers and recovery/reporting arrangements; validate access through an approved drill without publishing secrets or inventing contact promises. |
Accepted limitations and unresolved delivery facts
An ideal first-order thermal model and ideal-capacitor equations are deliberate reference scope, not automatically bugs. Omitted spatial/electrochemical/control effects belong to explicit future scope decisions. Assumptions records them.
The classic-protection API permission limitation, candidate CI, review status and new deployment proof are operational facts to resolve during delivery, not excuses to weaken requirements. The local Chromium launch limitation prevents a local visual-pass claim; static checks are useful but do not replace independent browser inspection. Full scientific/application sources were reviewed; selected scanner internals and generated assets remain indexed with reasons in coverage.
The roadmap maps these findings to measurable proposals over the next twelve calendar months. No item is represented as a funded commitment, assigned person or implemented feature.
Canonical file: docs/maintainer/FAILURE_MODES_AND_TECH_DEBT.md · Back to guide navigation
Documentation maintenance runbook
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
Canonical content and rendered derivative
Markdown and the existing CFF are canonical. docs/reference/index.html is a dated, generated reading view of the chapters explicitly listed in docs/reference/chapters.json. The narrow renderer rewrites internal chapter links to section anchors, resolves source-file references to the pinned source, and records the input hashes in the generated page. Edit the Markdown first; never maintain a separate handwritten scientific explanation in the generated HTML.
Run from the repository root with Python 3.12, Pandoc 3.1.11.1 (the audit's observed renderer version), and Node for the existing CSP checker:
python docs/reference/build_reference.py
python docs/reference/build_reference.py --check
node scripts/browser-csp.mjs --check
node --test tests/browser/csp.test.mjs
python scripts/portfolio/validate_guide.py
--check compares regenerated output with the tracked rendered page without writing. A different Pandoc version may format output differently; record the version and inspect the complete resulting diff. The renderer changes only its own docs/reference/index.html; it does not alter lesson configs, model source, workflows, manifests or historical source snapshots. Its chapter manifest fixes the source SHA and review date intentionally. Do not update those fields without refreshing the underlying analysis and evidence.
Change checklist
- Identify the source SHA, exact changed interfaces and affected readers. Read AGENTS.md and preserve existing CI/trust boundaries.
- Update the relevant canonical pages and index together. Use commit permalinks and meaningful line ranges for implementation claims. Keep observed execution separate from source declarations, inferences and proposals.
- For scientific changes proposed elsewhere, reconcile equations, units, initial/boundary conditions, solver behavior, domain limits and parameter provenance before updating examples. Preserve code identifiers when symbols differ.
- Run the worked commands in a disposable output directory. Capture exact interpreter/tool versions, argv, exit codes and resulting outputs. MATLAB evidence requires actual MATLAB execution.
- Validate every local Markdown destination, rendered HTML anchor/resource and all 24 requested output mappings; do not assume the current README/CONTRIBUTING-only Lychee job covers them. Validate CFF against its declared 1.2.0 schema with a documented YAML parser and duplicate-key handling.
- Regenerate and check the handbook; inspect wide and narrow viewports, keyboard navigation, table overflow, readable equations, no unexpected network requests and the link from the existing lab. Preserve the incumbent site's layout and application scripts.
- Review the complete diff for application, dependency, license or secret changes. Keep measured evidence and future roadmap work separate.
- Obtain independent QA bound to the candidate fingerprint/commit, then follow the normal PR/check/review/merge and publication gates in the playbook.
Source-driven refresh triggers
| Trigger | Pages to revisit |
|---|---|
| Native API/defaults/validation/CSV change | API, setup, examples, all science pages, source coverage and parity evidence |
| Browser model/config/export/state change | Browser catalog, parameter mappings, examples, architecture, provenance note and UI checks |
| Test suite or dependency change | Toolchain, collection/coverage claims, verification ledger and run commands |
| Workflow/branch rule/hosting change | CI playbook, recovery runbook and publication receipts; retrieve live rules separately |
| Actual release/tag, maintainer or reporting-channel change | Changelog, citation only when appropriate, governance and security policy |
| Roadmap milestone completion | Mark actual evidence and date; retain previous proposal history; do not silently convert a proposal to a delivered capability |
The pinned tree's existing guide/animation metadata can refer to older commits. Refresh both JSON and embedded copies together only in an authorized application/docs-config change, then run their validators; this package labels rather than silently rewrites those historical records. Portfolio embedding validator.
Evidence retention
Store full logs, candidate manifests, QA findings and eventual PR/merge/deployment receipts outside the repository when they contain transient operational state. The public ledger should link a real provider run when available and state its exact tested SHA and limitations. Avoid circular claims about the commit introducing the ledger. Preserve failed attempts and repairs so a later maintainer can distinguish a rerun from a stale success.
No fixed maintenance staffing or response SLA is established. A suggested owner review at each material source/CI change and quarterly roadmap checkpoint is a proposal, subject to the owner's capacity and priorities.
Canonical file: docs/maintainer/DOCS_MAINTENANCE_RUNBOOK.md · Back to guide navigation
Architecture decision record index
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
These are reconstructed observations of the pinned implementation, recorded 2026-11-19. They are not evidence that a historical design meeting occurred or that an owner has accepted a new decision. The owner can ratify, supersede or reject them through a reviewed ADR with date, context, alternatives, consequences and supporting evidence.
| ID | Observed choice | Evidence | Consequence and unresolved decision |
|---|---|---|---|
| ADR-0001 | A constant-parameter, lumped thermal state advances with a closed-form held-current update. | Python, MATLAB | Transparent and easy to compare across languages; no spatial/electrochemical model. Any more detailed solver needs a separate scientific scope/validation decision. |
| ADR-0002 | DC-link ripple and pulse-energy sizing are small idealized calculations. | DC-link source | Inputs/assumptions remain inspectable. ESR, ESL, ratings and converter controls are outside these formulas. Combining requirements does not create a qualified device design. |
| ADR-0003 | The browser lesson is an independent synthetic teaching surface with embedded config and source links. | Library/controller, calibration declaration | No server/native runtime is needed; defaults and historical source snapshots must be labeled to prevent mistaken equivalence with native execution. |
| ADR-0004 | Regression evidence includes Python properties, frozen fixtures, fresh Python capture and a separate MATLAB execution gate. | Capture, MATLAB gate | Stronger revision-linked software evidence; still no measured calibration or arbitrary-precision proof. Maintain the source hashes and explicit origin. |
| ADR-0005 | Existing GitHub Actions uploads docs/ to Pages, while root policies remain repository files. |
Deployment workflow | Keep canonical Markdown and a reproducibly generated static guide; require a deployed-revision/content check after merge. This documentation addition does not change hosting architecture. |
Decisions that remain open
The supported interpreter/MATLAB matrix, semantic-version/release policy, scientific accuracy domain, calibrated-data strategy, maintainership succession and private security-reporting channel are not established by these reconstructed records. Security policy, toolchain, roadmap.
For a new decision, identify the engineering/user problem and source evidence, list credible alternatives, specify what changes and what stays compatible, define measurable acceptance criteria, name the deciding role, and record the actual decision only after approval. Do not label a roadmap proposal “accepted” solely because it appears in this index.
Canonical file: docs/owner/ADR/ADR-0000-INDEX.md · Back to guide navigation
Governance and scope
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
Established identity and scope
The public repository is owned by mohammadrezwankhan. Existing citation metadata names Mohammad Rezwan Khan, preserves the supplied ORCID, and identifies the software as “Battery and Power Electronics Reference Models.” The MIT license and attribution remain unchanged. This documentation does not create a new license grant, release version, DOI, maintainer roster or response promise. CITATION, LICENSE.
The scientific scope is the native lumped thermal reference model, two ideal DC-link relationships and their MATLAB counterparts. The browser lesson is a distinct synthetic educational surface. The source tree also contains validation, security and publication tooling. See architecture, scientific limits and coverage.
Suggested responsibilities
These are roles for an owner to assign, not evidence that additional people have accepted duties.
| Role | Decision responsibility | Evidence to request |
|---|---|---|
| Repository owner | Access, scope, release/support policy, security channel and recovery arrangements | Current GitHub settings, explicit assignments and actual policy decisions |
| Scientific maintainer | Equations, parameters, domains, calibration and cross-language behavior | Source-located derivation, measured-data provenance when available, regression/parity results |
| Tooling maintainer | Test environments, scanner contracts, CI and Pages | Exact source/run identities, reports, dependency records and deployed-content checks |
| Documentation maintainer | Canonical Markdown, source links, generated guide and roadmap evidence | Complete output mapping, link/build checks, source/claim consistency |
| Independent reviewer | Candidate facts, scope, validation and delivery evidence | Exact candidate diff/fingerprint, reproducible findings and gate decisions |
Change boundaries
Documentation changes can explain implemented behavior, improve navigation, correct source-grounded prose and add isolated documentation rendering/validation. Numerical algorithms, solver settings, test expectations, app behavior, dependencies, license terms and CI trust boundaries need separate explicit scope and review. Source defects discovered during a docs audit belong in evidence-backed debt and roadmap items; prose must not silently redefine code behavior.
Preserve PR validation, named required contexts, release branches/tags, coverage matrices, security scans and existing protection. Third-party action pins and least-privilege conventions remain as authored. The repository's AGENTS instructions govern CI economics and integrity; cost claims require measurement.
Security, authorship and external claims
Use the existing security reporting policy: request a private contact channel without publishing vulnerability details. Its source snapshot states no published supported-version or response-time commitment; it is not a fresh live-settings attestation. Never infer a security channel from the author's citation identity.
The metadata policy checks author, committer and commit-message strings selected from the CI event range. Accurately disclose the contribution process and use legitimate identities; passing a string-policy check does not prove a scientific claim or authorship history. Policy implementation.
The public portfolio may describe this repository's public reference models and clearly labeled evidence. It must not imply device certification, production deployment, empirical accuracy, all-browser-model validation or a supported release based on the lesson's v1.0 marker. Use portfolio integration as the publication boundary.
Current unknowns and owner choices
No assigned backup maintainer, support lifecycle, release schedule or calibrated measurement program is established by the inspected source and empty release/tag snapshot. The roadmap proposes bounded work and acceptance criteria. Dates, effort and suggested roles are planning estimates; they are not staffing or funding commitments. Review actual priorities and capacity before accepting those proposals.
Canonical file: docs/owner/GOVERNANCE_AND_SCOPE.md · Back to guide navigation
Bus-factor and recovery runbook
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
This runbook supports an authorized successor. It does not assert that a recovery drill, secondary maintainer or credential escrow already exists. The source records the author and license; current access and ownership must be established through the account owner's legitimate GitHub recovery/permission process. Identity, license.
Recover a trustworthy source snapshot
- Obtain an authorized repository checkout through the normal account/integration route. Do not copy tokens, use another person's session or relax branch rules.
- Record the current default branch, full commit SHA, tree, visibility, active rulesets/classic protection and Pages configuration. Compare them with this document's source anchor; the live repository may have advanced.
- Recreate this audited implementation if needed with the full pinned SHA below. Record whether the working tree is clean and preserve the previous working directory before making changes.
git clone https://github.com/mohammadrezwankhan/battery-power-models.git
cd battery-power-models
git checkout --detach 0304bfec25c43f42f103ebda239749b88609a187
git rev-parse HEAD
git rev-parse HEAD^{tree}
git status --short
Expected source tree for this snapshot: 5c6ee36ca55645c440f8c006cc399dd2c13f9db2. The coverage index identifies every source tree entry and makes indexed-only material visible. Do not substitute generated Pages output for the native source or regard an older lesson-config SHA as the checkout revision.
Reestablish the numerical baseline
Follow setup using the checkout's dev-group pins. Run both native examples, the full chosen test targets, and capture/verify Python parity. Retain interpreter version, command, exit status, logs and fixture/source hashes. Expected source-baseline example outputs are 27.464 °C, 0.1136 Vpp and 25.316 mF for the documented inputs; they are regression landmarks, not calibrated hardware values. Examples.
If MATLAB is available under a legitimate license, execute its existing numerical gate after fresh Python capture and verify the capture afterward. If not, label MATLAB as unavailable and inspect correctly revision-linked remote evidence. Never substitute a JSON fixture or Python-only run for MATLAB execution. Gate.
Recover the documentation site
On a checkout containing the handbook, regenerate/check it with python docs/reference/build_reference.py --check, run the CSP and portfolio validators, and preview docs/ locally. The existing Pages workflow uploads docs/; it does not deploy src/ or require a backend service. Inspect deployment source SHA, environment policy, logs and live changed content before declaring recovery. Pages workflow.
If a recent docs change caused the problem, propose a normal revert or repair PR against the current default branch. Use required reviews/checks and an expected-head merge guard, then verify the resulting deployment. Preserve previous artifact/run identities for diagnosis. Avoid force-pushing or editing source/config while investigating a publication failure.
Access and information inventory to confirm
| Item | Established in source | Successor must confirm |
|---|---|---|
| Repository and license identity | Owner path, author metadata, MIT license | Current administrators/collaborators and backup maintainer assignment |
| Branch/PR policy | Metadata-policy workflow and CI integrity instructions | All current classic/ruleset/review/signature/queue requirements |
| Pages route | GitHub Actions upload of docs/ |
Effective site URL, environment approvals, deployment provenance and any custom-domain ownership |
| Dependencies | Native stdlib imports, pinned dev/quality/scanner records | Available interpreters, package sources, MATLAB entitlement and reproducible scanner environment |
| Security reports | No private contact promised in the source policy | A legitimate private channel before receiving sensitive details |
| Releases/data | No measured calibration established; no releases/tags observed in audit snapshot | Any later releases, datasets, licenses, fitted parameters or support commitments |
An owner-authorized recovery drill should prove a fresh maintainer can reproduce the examples/tests and read a source-linked deployed guide without receiving undocumented secrets. Record what failed and revise the runbook. The roadmap proposes such a drill; this text is preparation, not evidence that it occurred.
Canonical file: docs/owner/BUS_FACTOR_RECOVERY_RUNBOOK.md · Back to guide navigation
Portfolio integration
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
Public summary supported by this repository
“Battery and Power Electronics Reference Models provides inspectable Python and MATLAB implementations of a first-order lumped thermal balance and ideal DC-link ripple/energy sizing, with a separate synthetic browser teaching lab and revision-linked software checks.” This describes the source's actual interfaces without making a hardware-validation claim. Native thermal, DC-link, MATLAB, browser declaration.
Use the documentation index, rendered handbook, scientific limits, verification ledger, and roadmap as the public package. The existing portfolio learning paths and native catalog remain historical source-linked learning surfaces; they do not execute native models.
Evidence that can travel with the summary
| Portfolio statement | Required qualification |
|---|---|
| Native Python tests passed | Name tested source SHA, runner/targets, date, counts and model-only versus tooling coverage |
| MATLAB parity passed | Cite an actual MATLAB provider run and its tested SHA; distinguish it from local Python capture |
| Browser lab is interactive | Identify it as a deterministic synthetic proxy; its selected parameters/defaults differ from native code |
| Source is public and MIT-licensed | Cite the repository/license/CFF snapshot; preserve existing author/ORCID attribution |
| Documentation is published | Provide the actual deployed URL, merged/deployed revision and changed-content observation; do not infer from has_pages |
| Future calibrated or coupled models are planned | Label as a proposal with scope, prerequisites and acceptance criteria, not delivered capability |
The full source/run boundary is recorded in the ledger. Software test coverage is not an accuracy, safety, availability or reliability percentage.
Cross-repository boundary
The inspected native modules have no imports from another portfolio repository; their dependencies are standard-library modules. The browser/config contains source/portfolio links, which are navigation rather than runtime package dependencies. No shared dataset, co-simulation, electrical-network integration or versioned inter-repository API is established by this source. Python imports, DC-link imports, portfolio metadata.
If another public model later consumes these calculations, document the explicit interface, units, parameter provenance, supported versions and numerical agreement tests. Do not claim integration from topic similarity. The shared glossary should distinguish thermal C_th (J/K), electrical C_dc (F), native seconds, browser minutes, signed current and nonnegative ripple current. Local symbol glossary.
Disclosure and update rules
This is a public-repository package. Use only public, source-backed facts when promoting it into a public profile. Do not import identities, findings, counts, links or derived claims from private or unknown-visibility projects. Keep private operational details and credentials out of public source and logs.
Refresh public claims after a source, candidate, merge or deployment revision changes. Retain the earlier date when citing old execution evidence. Preserve the lesson config's older provenance rather than silently presenting it as a new audit. Any new release, DOI, empirical dataset, license or support statement needs its own actual evidence.
Canonical file: docs/owner/PORTFOLIO_INTEGRATION.md · Back to guide navigation
Twelve-month development roadmap
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
This is a proposal for 2026-11-19 through 2027-11-18 inclusive (end-exclusive 2027-11-19). Dates, staffing and effort are planning estimates, not delivery or funding commitments. No proposed application, numerical or CI change is implemented by this documentation package.
The four horizons are Now (the remaining part of 2026 Q4), Next (2027 Q1), Later (2027 Q2), and Horizon (2027 Q3 plus the part of Q4 ending 2027-11-18). Findings come from the pinned source and the technical-debt register. The API snapshot found no open issues or PRs; these proposals therefore do not claim an issue assignment.
There is no confirmed cross-repository runtime dependency. Shared work means internal docs/tooling/scientific coordination. Clean reproducibility precedes accuracy work; numerical evidence precedes calibration claims; independent candidate QA and ordinary merge/deployment gates apply to every eventual change.
Now — 2026-11-19 to 2026-12-31
BPM-R01: Close documentation coverage and historical-catalog drift
Class / priority: documentation; P1. Suggested owner: Documentation maintainer with tooling reviewer. Effort: 2–4 maintainer days.
Evidence: BPM-F01, BPM-F02. docs/portfolio/lesson-config.json:75-129; .github/workflows/markdown-maintenance.yml:60-64; src/battery_thermal.py:129-138.
Outcome: Readers can distinguish the current native CLI from older lesson snapshots and all new documentation links have a reproducible check.
Proposed change: Refresh the historical portfolio/native lesson snapshots in a separate reviewed config change; propose docs-wide link and generated-handbook freshness checks without weakening existing validation.
Dependencies: None; can start within this repository. Confidence: High for documentation scope; CI integration effort depends on agreed link policy.
Risks: Changing embedded and external lesson JSON inconsistently; Treating external-link outages as model failures.
Unresolved assumptions: Owner approves a separate docs/config-validation PR; Historical snapshots may be superseded with preserved provenance.
Acceptance criteria:
- Every canonical chapter is reachable from the index and rendered guide.
- Generated HTML freshness and a deliberately broken new-doc link are detected.
- Updated nondivisible-duration lesson matches 10 s / 3 s example and records its new source SHA.
Verification: Run the renderer in --check mode, a complete local-link check, portfolio validator and controlled failing-link fixture; inspect the candidate diff and a deployed revision.
BPM-R02: Establish a clean supported-environment replay
Class / priority: maintenance; P1. Suggested owner: Tooling maintainer and scientific reviewer. Effort: 2–5 maintainer days.
Evidence: BPM-F06. README.md:55-80; pyproject.toml:1-22; .github/workflows/hardened-ci.yml:70-149.
Outcome: A new maintainer knows which runtime/dev combinations are supported and can reproduce evidence without inherited packages.
Proposed change: Choose and document a supported Python/MATLAB test matrix, replay exact dev pins in fresh environments, and retain versions/commands/coverage and parity artifacts.
Dependencies: None; can start within this repository. Confidence: Medium; MATLAB access and lower-runtime tool compatibility must be confirmed.
Risks: Conflating runtime support with development-tool support; MATLAB entitlement/runner availability.
Unresolved assumptions: Owner selects a realistic support matrix; A licensed MATLAB runner remains available.
Acceptance criteria:
- Runtime support and test-tool support are documented separately.
- Fresh environments reproduce native examples and the selected complete test targets.
- At least one current-source MATLAB gate has retained parity and source-hash evidence.
Verification: Execute declared matrix jobs or equivalent clean local environments; retain dependency inventories, exact source SHA, test reports and fresh Python/MATLAB comparisons.
Next — 2027-01-01 to 2027-03-31
BPM-R03: Quantify numerical accuracy and conditioning limits
Class / priority: engineering improvement; P1. Suggested owner: Scientific maintainer with independent numerical reviewer. Effort: 4–8 maintainer days.
Evidence: BPM-F04. src/battery_thermal.py:38-56; src/dc_link.py:9-44; tests/test_numeric_boundaries.py:1-118.
Outcome: Users can distinguish accepted finite inputs from a tested numerical-accuracy domain.
Proposed change: Compare thermal and DC-link formulas with high-precision references across justified scales; characterize tiny-step cancellation and intermediate overflow before proposing any arithmetic changes.
Dependencies: BPM-R02 Confidence: Medium; acceptable error thresholds and physical use range are open.
Risks: Optimizing extreme scales without a real physical use case; Changing error contracts or Python/MATLAB equivalence.
Unresolved assumptions: Owner agrees a target use/accuracy domain; High-precision comparisons are reference evidence, not measured calibration.
Acceptance criteria:
- Documented absolute/relative error results cover the agreed domain and extreme boundary cases.
- Tiny thermal increments and DC-link factored-denominator cases have explicit expected behavior.
- Any proposed implementation repair preserves reviewed API/error contracts and passes both-language regression.
Verification: Retain a parameterized high-precision comparison report, seeded boundary cases, baseline/new results if a code PR is proposed, and independent equation review.
BPM-R04: Test the active browser lesson as an independent contract
Class / priority: engineering improvement; P1. Suggested owner: Browser maintainer with scientific and accessibility reviewer. Effort: 4–7 maintainer days.
Evidence: BPM-F03. docs/index.html:232-336; docs/index.html:339-487; docs/lesson-config.json:136-301; tests/browser/csp.test.mjs:1-232.
Outcome: The thermal teaching UI and exports have executable guarantees without borrowing native-model coverage claims.
Proposed change: Add separate tests for all configured thermal checkpoints, parameter/default/clamping semantics, 241-row-horizon CSV inputs and canonical-config export; test current versus prior verification state.
Dependencies: BPM-R01 Confidence: High for deterministic calculations; browser automation environment remains to be selected.
Risks: Testing copied equations instead of the exported implementation; Accidentally changing the historical lesson/UI behavior.
Unresolved assumptions: The active thermal mode is the first supported browser scope; Other embedded modes remain explicitly unvalidated until separately reviewed.
Acceptance criteria:
- All eight thermal checkpoints execute against the actual exported library.
- Tests distinguish library defaults from dashboard config and minutes from seconds.
- CSV/config/state behaviors are tested and keyboard/mobile reading is reviewed.
Verification: Run pure-library invariant checks plus browser interaction/export tests on the exact candidate, keeping existing CSP tests and screenshots.
Later — 2027-04-01 to 2027-06-30
BPM-R05: Measure profile and CSV scaling before API expansion
Class / priority: engineering improvement; P2. Suggested owner: Scientific/tooling maintainer. Effort: 3–6 maintainer days.
Evidence: BPM-F05. src/battery_thermal.py:59-113.
Outcome: Large traces have an evidenced practical range and a clear decision on whether streaming is needed.
Proposed change: Benchmark time/memory for constant_profile, simulate and write_csv; document a tested sample-count range and design a streaming alternative only if an owner-approved use case requires it.
Dependencies: BPM-R02, BPM-R03 Confidence: Medium; target workloads and resource budgets are unresolved.
Risks: Treating sys.maxsize as a memory guarantee; Introducing incompatible row/initial-state semantics.
Unresolved assumptions: Representative duration/current-resolution workloads can be supplied; Any API addition gets separate authorization and review.
Acceptance criteria:
- Benchmark records include sample count, wall time, peak memory, hardware/runtime and source SHA.
- Practical guidance distinguishes input resolution from analytical stability.
- A go/no-go streaming decision preserves N+1 endpoint and CSV conventions.
Verification: Repeat measured benchmark points and compare outputs with the existing closed-form baseline; review any proposed API design separately.
BPM-R06: Decide whether a measured calibration program is justified
Class / priority: exploratory research; P2. Suggested owner: Owner and scientific/data reviewer. Effort: 5–10 planning/review days; acquisition effort to be estimated separately.
Evidence: BPM-F07. docs/lesson-config.json:303-311; tests/fixtures/python_matlab_parity.json:1-18; src/battery_thermal.py:14-56.
Outcome: The project has an explicit evidence plan or a deliberate decision to remain a synthetic reference model.
Proposed change: Specify a target device/use case, dataset rights, measurement protocol, parameter-identification method, validation split and uncertainty reporting before collecting or claiming calibrated results.
Dependencies: BPM-R03 Confidence: Low until a device, data access and resources are selected.
Risks: Unlicensed or insufficiently documented data; Overfitting a simple model beyond its validity; Mistaking software fixture agreement for empirical validation.
Unresolved assumptions: Data and hardware access are not yet established; No empirical accuracy claim is made before validation.
Acceptance criteria:
- Written go/no-go decision identifies intended use, rights and measurement provenance.
- If proceeding, fitting and held-out validation plans specify units, uncertainty and failure criteria.
- If deferred, public claims continue to say synthetic/reference-only.
Verification: Independent review of the protocol and dataset/license evidence; later empirical results require separate executed validation.
Horizon — 2027-07-01 to 2027-11-18
BPM-R07: Exercise authorized recovery and maintainer handover
Class / priority: maintenance; P2. Suggested owner: Repository owner and designated backup maintainer. Effort: 2–4 maintainer days.
Evidence: BPM-F08, BPM-F06. CITATION.cff:1-16; SECURITY.md:1-15; .github/workflows/deploy-dashboard.yml:60-90.
Outcome: An explicitly assigned successor can recover source, tests and Pages through normal controls.
Proposed change: Owner selects backup responsibilities and private reporting arrangements, then runs a documented fresh-environment/source/deployment recovery drill without sharing secrets.
Dependencies: BPM-R01, BPM-R02 Confidence: Medium; actual people and access are owner decisions.
Risks: Undocumented privileges becoming recovery dependencies; Publishing sensitive access or vulnerability details.
Unresolved assumptions: Owner authorizes and names the participants; Normal branch/environment protections remain enforced.
Acceptance criteria:
- Named role assignments and actual reporting-channel policy are recorded by the owner.
- Successor reproduces native checks and verifies a deployed documentation revision.
- Recovery report identifies remaining single-person steps and concrete remediation.
Verification: Retain an access-safe drill report with source/run/deployment identities, observed failures and reviewed runbook updates.
BPM-R08: Reconcile public claims and release policy with accumulated evidence
Class / priority: documentation; P2. Suggested owner: Owner with documentation and scientific reviewers. Effort: 2–4 maintainer days.
Evidence: BPM-F01, BPM-F07, BPM-F08. CITATION.cff:1-16; README.md:134-164; docs/portfolio/lesson-config.json:1-20.
Outcome: The public portfolio and any future release accurately describe tested scope, provenance and supported use.
Proposed change: Review completed milestones, actual source/CI/deployment evidence and any calibration decision; choose whether a versioned release/support policy is warranted and update public summaries accordingly.
Dependencies: BPM-R03, BPM-R04, BPM-R06, BPM-R07 Confidence: Medium; release readiness depends on prior evidence.
Risks: Turning proposed milestones into delivered claims; Publishing private/unknown-visibility portfolio information; Inventing release or support commitments.
Unresolved assumptions: Only actual completed evidence is promoted; No cross-repository runtime dependency is assumed.
Acceptance criteria:
- Every public capability/result links to public source or revision-linked execution evidence.
- Synthetic versus measured status and supported environments are explicit.
- Any release/tag/support statement is an actual owner decision with real metadata.
Verification: Independent public-claim audit, citation/changelog review and deployed-content check; reconcile roadmap outcomes against retained receipts.
Review and replan
At each horizon boundary, record actual completions, failed assumptions, evidence links and remaining work. Preserve the prior proposal rather than rewriting its dates to resemble on-time delivery. Deduplicate documentation/CI foundations under BPM-R01 and environment work under BPM-R02; later items depend on those results instead of re-implementing them.
Canonical file: ROADMAP.md · Back to guide navigation
Changelog
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
Unreleased — documentation package
This entry describes the proposed documentation change. It is not a release announcement, merge receipt or deployment result.
- Add developer, mathematical, maintainer and owner references with source permalinks, exact native/browser interface boundaries, worked numerical examples and explicit synthetic-data limits.
- Add a twelve-calendar-month proposal roadmap and complete source-entry accounting, including indexed-only assets and tooling.
- Add a generated static handbook and navigation from the existing Pages surfaces; preserve the numerical models, application scripts/configs, tests, workflows, dependency manifests, license and existing citation metadata.
- Record fresh local Python/CSP/guide/parity execution separately from historical exact-source GitHub checks and later candidate/publication evidence.
Source history anchor
The inspected source commit is 0304bfec25c43f42f103ebda239749b88609a187, authored on 2026-11-17, with subject fix(docs): label unavailable animation galleries. This is a real commit metadata anchor, not a reconstructed complete changelog.
The read-only GitHub snapshot on 2026-11-19 returned no releases and no tag references. No version number, release date or DOI has been inferred. The existing browser/schema v1.0 identifiers describe that surface/configuration and do not establish a tagged software release. Dashboard marker, schema marker.
For later releases, link actual tags/releases and group user-visible changes under their real dates. Keep unmerged proposals under Unreleased until their delivery state is known.
Canonical file: CHANGELOG.md · Back to guide navigation
Contributing
Contributions should make the reference models easier to inspect, reproduce, or validate.
Good Contributions
- Clarify equations, units, or assumptions.
- Add a focused regression test for a model behavior.
- Keep MATLAB and Python equivalents aligned when both implement the same idea.
- Add examples that use public, reproducible inputs.
Pull Request Checklist
Reproduce and document a change
Use setup and reproducibility to install the current pinned dev group before running tests. Native runtime dependencies and development tools are different scopes. Record the full source SHA, interpreter/tool versions, exact command, output and exit code. The documented unittest command and pytest collection have different target sets; identify which one produced your result.
For a documentation contribution, update canonical Markdown, source permalinks and the index, then regenerate/check the static guide with python docs/reference/build_reference.py and python docs/reference/build_reference.py --check. Follow the maintenance runbook for link, CFF, CSP and visual checks. Existing application scripts, scientific equations, dependencies and workflow gates require separate reviewed scope before changes.
Preserve the distinction between synthetic fixtures, source-declared behavior, observed Python execution and actual MATLAB execution. Do not infer a release, calibrated model or deployed result from an old green check. Verification ledger.
Canonical file: CONTRIBUTING.md · Back to guide navigation
Security Policy
Reporting a Vulnerability
GitHub private vulnerability reporting is disabled for this repository, and no private security contact is publicly documented.
To request a private reporting channel, open a GitHub issue titled Security contact request and ask the maintainer for a private contact method. Do not include vulnerability details, affected versions, reproduction steps, exploit code, logs, or other sensitive information in the issue. Send details only after the maintainer provides a private channel. If no private channel is provided, do not disclose the vulnerability publicly.
No supported-version policy or response-time commitment is published.
Documentation snapshot and maintenance
The reporting guidance above is preserved from source commit 0304bfec25c43f42f103ebda239749b88609a187. Its description of reporting availability is a source-policy statement, not a fresh live-settings audit. No new contact address, support window or response commitment is introduced by the 2026-11-19 documentation package.
For CI/report provenance and recovery procedures, see the release playbook, the existing security tooling guide, and the owner recovery runbook. Keep vulnerability details and secrets out of public issues and logs while arranging the private channel described above.
Canonical file: SECURITY.md · Back to guide navigation
Citation metadata
Existing CFF, preserved verbatim:
cff-version: 1.2.0
message: "If you use these reference models in research or teaching, please cite this software."
type: software
title: "Battery and Power Electronics Reference Models"
authors:
- family-names: Khan
given-names: Mohammad Rezwan
orcid: "https://orcid.org/0000-0002-1532-0598"
repository-code: "https://github.com/mohammadrezwankhan/battery-power-models"
url: "https://github.com/mohammadrezwankhan/battery-power-models"
license: MIT
keywords:
- battery thermal modeling
- power electronics
- DC-link sizing
- reference models
Canonical file: CITATION.cff · Back to guide navigation
Source and coverage evidence
Documentation snapshot: 2026-11-19. Implementation examined:
0304bfec25c43f42f103ebda239749b88609a187. Execution evidence and proposals are identified separately.
The canonical recursive Git tree at the full source SHA contains 169 entries: 133 text blobs and 36 directory objects. Every blob was acquired and verified against its Git object ID. No source payload is unavailable, a submodule or an LFS pointer in this tree. Accounting for all entries does not mean all entries received equal semantic review.
ANALYZED means the relevant source text was read and interpreted. INDEXED_ONLY means its identity, type and place in the tree are accounted for, with the limitation stated below. Generated SVG illustrations, large dependency records and selected security-tooling internals are retained rather than represented as fully rebuilt or independently validated.
Scientific Python/MATLAB implementations and model tests, browser numerical/controller scripts, active and historical lesson configs, publication workflows, parity capture, quality orchestration and CSP/portfolio validators received source review. Tests and CI are separate evidence, summarized in the verification ledger.
Source blobs
| Path at the pinned source | Git blob ID | Disposition and reason |
|---|---|---|
| .github/codeql/codeql-config.yml | e55aff9a96e0afabcf5f0330594d4570c385d1f5 |
INDEXED_ONLY — Configuration/metadata/text entry hash-verified and indexed; no broader semantic or runtime claim. |
| .github/dependabot.yml | 1873d2748bc7d2a59222364172d7107ea917096c |
INDEXED_ONLY — Configuration/metadata/text entry hash-verified and indexed; no broader semantic or runtime claim. |
| .github/security/README.md | 04f409f835f81cef8c3f206c6d125e8f6b8a6d88 |
INDEXED_ONLY — Security/scanner record or tooling declaration indexed, including available AST interfaces; internals not exhaustively reviewed or scanners rebuilt. |
| .github/security/binaries.json | 78f5fc19b85d54a14dcef2c12e30da1ad1e8bf99 |
INDEXED_ONLY — Security/scanner record or tooling declaration indexed, including available AST interfaces; internals not exhaustively reviewed or scanners rebuilt. |
| .github/security/bootstrap.py | ca89266ed06c403c61f2b42f81ba8b1d238f6290 |
INDEXED_ONLY — Security/scanner record or tooling declaration indexed, including available AST interfaces; internals not exhaustively reviewed or scanners rebuilt. |
| .github/security/check_sarif.py | 6e3534286df69702d62db573a8f65297dc82d041 |
INDEXED_ONLY — Security/scanner record or tooling declaration indexed, including available AST interfaces; internals not exhaustively reviewed or scanners rebuilt. |
| .github/security/coverage_gate.py | 3fae5b0124da18099442a606f025cc8c924c7ff7 |
INDEXED_ONLY — Security/scanner record or tooling declaration indexed, including available AST interfaces; internals not exhaustively reviewed or scanners rebuilt. |
| .github/security/dependencies.py | 7e2e142e982b74e8339e4d2d5b68c1ccff5046a1 |
INDEXED_ONLY — Security/scanner record or tooling declaration indexed, including available AST interfaces; internals not exhaustively reviewed or scanners rebuilt. |
| .github/security/known-scanner-findings.json | 6ec4361fdefead0b3f4f42f93fc2cd68139c80b4 |
INDEXED_ONLY — Security/scanner record or tooling declaration indexed, including available AST interfaces; internals not exhaustively reviewed or scanners rebuilt. |
| .github/security/native-build-timings.json | 057eabf918c654b0e3c7285d6443cd49d36df478 |
INDEXED_ONLY — Security/scanner record or tooling declaration indexed, including available AST interfaces; internals not exhaustively reviewed or scanners rebuilt. |
| .github/security/native-scanner.json | c1736198c70ba0cf133e9bb2e3f011eb01973985 |
INDEXED_ONLY — Security/scanner record or tooling declaration indexed, including available AST interfaces; internals not exhaustively reviewed or scanners rebuilt. |
| .github/security/native-switch.export | 984b0f24ee3dee7e996e3489cb0aa1c1fa8414f3 |
INDEXED_ONLY — Pinned/generated dependency record preserved and indexed; full transitive build/reproduction not independently performed. |
| .github/security/native_scanner.py | 9862cdb2e3e386659719cd4cae3834c40e6619da |
INDEXED_ONLY — Security/scanner record or tooling declaration indexed, including available AST interfaces; internals not exhaustively reviewed or scanners rebuilt. |
| .github/security/provenance.json | 62a9bcebd5ca568d64dd1e621e8640f0c5d9fab8 |
INDEXED_ONLY — Security/scanner record or tooling declaration indexed, including available AST interfaces; internals not exhaustively reviewed or scanners rebuilt. |
| .github/security/quality.json | 7a6fc50b0d9d8e75c407c0daf425f23e630bd968 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| .github/security/quality.py | d42fc913398888ce4f8b30d15056d66c45a3ac09 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| .github/security/report_validation.py | a7858d43194305bc8d0a9e70cc7201ff5a82bba6 |
INDEXED_ONLY — Security/scanner record or tooling declaration indexed, including available AST interfaces; internals not exhaustively reviewed or scanners rebuilt. |
| .github/security/requirements-bootstrap.txt | 13f7c4d53d00252072d40bd43d0218331f9520a8 |
INDEXED_ONLY — Pinned/generated dependency record preserved and indexed; full transitive build/reproduction not independently performed. |
| .github/security/requirements-build.in | e3d188e94095a48384ecb42e50ed191496dc608f |
INDEXED_ONLY — Pinned/generated dependency record preserved and indexed; full transitive build/reproduction not independently performed. |
| .github/security/requirements-build.txt | 106da8490569c793bd7fefeda34a4194774b6da8 |
INDEXED_ONLY — Pinned/generated dependency record preserved and indexed; full transitive build/reproduction not independently performed. |
| .github/security/requirements.in | cb158961189f2aab416dbb304ccb93a0f1822344 |
INDEXED_ONLY — Pinned/generated dependency record preserved and indexed; full transitive build/reproduction not independently performed. |
| .github/security/requirements.txt | af5cbee79c7b12c80086bf6ccfd7520556d337d3 |
INDEXED_ONLY — Pinned/generated dependency record preserved and indexed; full transitive build/reproduction not independently performed. |
| .github/security/run.py | dc818b51328fd0469632db217546c4990a3c2ee4 |
INDEXED_ONLY — Security/scanner record or tooling declaration indexed, including available AST interfaces; internals not exhaustively reviewed or scanners rebuilt. |
| .github/security/test_contracts.py | f88bec11472b50235782376be29730228fc2af4f |
INDEXED_ONLY — Security/scanner record or tooling declaration indexed, including available AST interfaces; internals not exhaustively reviewed or scanners rebuilt. |
| .github/security/test_native_scanner.py | 83259d13c6956756da230095e1f60a6103e2d6ef |
INDEXED_ONLY — Security/scanner record or tooling declaration indexed, including available AST interfaces; internals not exhaustively reviewed or scanners rebuilt. |
| .github/workflows/codeql.yml | 7cd333d4c88ce7aef8629750d10ed3fc9d1b5812 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| .github/workflows/deploy-dashboard.yml | a811fba749d9f83301930c20cbc48593f519c874 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| .github/workflows/hardened-ci.yml | 0aa57d6b56240062f34a4d6fa909ebb92a12c3df |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| .github/workflows/markdown-maintenance.yml | 34551ea2d499219d8f85c99acddce90a8038e091 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| .github/workflows/no-codex-attribution.yml | 131d6a68609fe741e5148a9af13973d1736db17f |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| .github/workflows/portfolio-dashboard-check.yml | 114c336cd046f16c205e2b1d632b15879007bfbd |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| .github/workflows/python-validation.yml | 38af8c79a295436f59b9a1ff5e53c244ae51e2fb |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| .gitignore | 80b3bca32a5d81e18741e14e44576cb715d5ba90 |
INDEXED_ONLY — Configuration/metadata/text entry hash-verified and indexed; no broader semantic or runtime claim. |
| .gitleaks.toml | af55026c5ba1b2fa335bcc5a82761542fc29a583 |
INDEXED_ONLY — Configuration/metadata/text entry hash-verified and indexed; no broader semantic or runtime claim. |
| .pre-commit-config.yaml | 426b9719dadf0073097a0e9d1e7186133a2842e8 |
INDEXED_ONLY — Configuration/metadata/text entry hash-verified and indexed; no broader semantic or runtime claim. |
| .prettierrc.json | 2fec1f28d2c49363e50f8647225fb868b463768c |
INDEXED_ONLY — Configuration/metadata/text entry hash-verified and indexed; no broader semantic or runtime claim. |
| .semgrep.yml | 774a1346037fccae1eb857ba70e41d9dcd6316cd |
INDEXED_ONLY — Configuration/metadata/text entry hash-verified and indexed; no broader semantic or runtime claim. |
| .semgrepignore | de1e4b1c434faae9fb094b222ec5e50f05dcf928 |
INDEXED_ONLY — Configuration/metadata/text entry hash-verified and indexed; no broader semantic or runtime claim. |
| AGENTS.md | c6e9443d4a9193787da24226b77c0f1bc4c83c28 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| CITATION.cff | 01d99753f25782d5518d3d1e92a6f93fa3450ebe |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| CONTRIBUTING.md | 115b7de32d88a61c1c30ee3f3e5c502f4e435718 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| LICENSE | e7ec81b6a1a6fa6a3d7a83794c458ee158abe6fa |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| README.md | 5d6df8e37596d20cbc2ffabe08400bb84725a44a |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| SECURITY.md | 6b3af3b9da000c16bc90cd55f29973838b8bf7ce |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| assets/brand-uniformity/avatar.svg | ad245d510449cd8af056eb921fe38fa8e7590bd9 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/brand-uniformity/champion-static.svg | ae51a71a5dea9d5115635eea11524a6cbddf46cb |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/brand-uniformity/champion.svg | d6db0352e77f59d4868909b1dbecc550008ae6fa |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/brand-uniformity/hero-25d.svg | f1eade4e6e4d2e92a28b6ebb0166ca9bb8926a1b |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/brand-uniformity/portfolio/hero-25d.svg | fcc74c07f06340823b184fb6a709e307eba48448 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/brand-uniformity/svg-2.5d/diagrams/lumped-pouch-thermal.svg | 47c8e2e46869e597a9b5a0222fd922a073ad7747 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/brand-uniformity/svg-2.5d/sections/section-01-question.svg | a04eccc441677787ab29b66272f1c5d764d6bc7e |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/brand-uniformity/svg-2.5d/sections/section-02-equations.svg | e070d5cab9c7f6e3d098981dcc35a4b8b4b67d8e |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/brand-uniformity/svg-2.5d/sections/section-03-reproduce.svg | 03ba658aeebb4812786cdc692358f45701bb7b37 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/brand-uniformity/svg-2.5d/sections/section-04-verification.svg | 3eaa2ff2a6095606e56a5cac987a0751a3e85a00 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/brand-uniformity/svg-2.5d/sections/section-05-scope.svg | 4a44082b862243514a8196b824e6442fdda249b1 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/brand-uniformity/svg-2.5d/tags/tag-evidence-deterministic-fixture.svg | 351d00f88874685697aa5cc700831a4922a4733e |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/brand-uniformity/svg-2.5d/tags/tag-fidelity-source-defined.svg | f09f382aeb4be4925aa6c0d4f1aef651f2c61f46 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/brand-uniformity/svg-2.5d/tags/tag-runtime-source-defined.svg | 85bdb4a3e0bc831caa969762b7c76600d999736d |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/brand-uniformity/svg-2.5d/tags/tag-status-see-ci.svg | 3359e5e3c1a93644df67a3e139e99b65214137bb |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/hero-25d.svg | a0e2713016873ef4608cb14d36ce69f2c676a7ff |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/portfolio/hero-25d.svg | 223b8fc0410b919c9e5fbb4f6aee3fc249d7de8a |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/svg-2.5d/diagrams/lumped-pouch-thermal.svg | 587ed2870b8a83e55ce6ebb885b00f00e9608d85 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/svg-2.5d/scope.json | 9cd1dec0127f8b3b08256809dadbf078d263dc46 |
INDEXED_ONLY — Configuration/metadata/text entry hash-verified and indexed; no broader semantic or runtime claim. |
| assets/svg-2.5d/sections/section-01-question.svg | da8147f2301e9580951d01ed6c9d3ead231ab1c2 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/svg-2.5d/sections/section-02-equations.svg | 03bae24160e7e28f40100d0bfeb7a5165906aa98 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/svg-2.5d/sections/section-03-reproduce.svg | 271a6b3aacd42bd0c0c4a8e913e70c530719aada |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/svg-2.5d/sections/section-04-verification.svg | b1b1b7513b1c9b9fae6d0542ed497e8a39e46b5d |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/svg-2.5d/sections/section-05-scope.svg | a4dc99d689bc3435fe1ceee9303059edd8ed4a7d |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/svg-2.5d/tags/tag-evidence-deterministic-fixture.svg | 2d3012da9dd98c918131a029476bb0670cb3cf1f |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/svg-2.5d/tags/tag-fidelity-source-defined.svg | 44d6cdeeecc4ac1992571a8eeec5113285670847 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/svg-2.5d/tags/tag-runtime-source-defined.svg | e8ac06bd442ee14d2c6e837386bdb5d00c464f17 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| assets/svg-2.5d/tags/tag-status-see-ci.svg | 1f65e05001daa87a7f0076f5bb9a066ff4b0c82e |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| codemeta.json | 4d0c72c6702dbc172635b75a06aded5d657cc54e |
INDEXED_ONLY — Configuration/metadata/text entry hash-verified and indexed; no broader semantic or runtime claim. |
| docs/.nojekyll | e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 |
INDEXED_ONLY — Configuration/metadata/text entry hash-verified and indexed; no broader semantic or runtime claim. |
| docs/animations/gallery.css | a7634df997535e3f80619b0a981dd65c6aaa504e |
INDEXED_ONLY — Presentation stylesheet retained and structurally indexed; no application behavior change. |
| docs/animations/gallery.js | 2ca247a93a016d8559c84e72d1dbb6a47d74a212 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| docs/animations/index.html | f1639cb295a39fea9579cd677c1a86615e950db2 |
INDEXED_ONLY — Historical static gallery markup and links indexed; no visual or media-rendering attestation. |
| docs/animations/manifest.json | c8f084cda061d91c2bcc6ac0812a26ee03847246 |
INDEXED_ONLY — Configuration/metadata/text entry hash-verified and indexed; no broader semantic or runtime claim. |
| docs/animations/media/hero-25d-cbf302005ff1.svg | 99fc30ae720a39f88c1e28eee0772b553325028a |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| docs/animations/waveform.html | 216193ade53a37e7a7d4a0e7586b0abdfa355efc |
ANALYZED — Application scripts, embedded configuration and user-facing behavior read; markup/style structure inspected, not a visual browser pass. |
| docs/index.html | 9c9c688d906413a4c944d3c7c893314ee355598e |
ANALYZED — Application scripts, embedded configuration and user-facing behavior read; markup/style structure inspected, not a visual browser pass. |
| docs/lesson-config.json | 28459ad7f759ab28d2445f6bf0e20b321baedaa0 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| docs/lesson-config.schema.json | 9efbb8be52777e8f184bf7b79eab45a1e3a16165 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| docs/native-lessons.html | 121ded73eb3e1ddfc155303460d1e2fc26f02720 |
ANALYZED — Application scripts, embedded configuration and user-facing behavior read; markup/style structure inspected, not a visual browser pass. |
| docs/native-lessons.json | 5c202cb84a327893325be1f9758d47a9213594ef |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| docs/portfolio/README.md | b5430b4e43432bdffaf4e45ed9e5f4956eae6a8f |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| docs/portfolio/index.html | 9ad1887872832bb1fcb566d52728150455a7407e |
ANALYZED — Application scripts, embedded configuration and user-facing behavior read; markup/style structure inspected, not a visual browser pass. |
| docs/portfolio/lesson-config.json | 6a6e759ad116a65cbd25457c047f0df6838a5e68 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| docs/security/native-sandbox-independent-review.md | 24a639b6abcd8e942fc9a475419a4032a02435e4 |
INDEXED_ONLY — Security/scanner record or tooling declaration indexed, including available AST interfaces; internals not exhaustively reviewed or scanners rebuilt. |
| docs/security/ubuntu-archive-fingerprint.md | e36a5a2d1774482e701f0e108fbade00d4aa3967 |
INDEXED_ONLY — Security/scanner record or tooling declaration indexed, including available AST interfaces; internals not exhaustively reviewed or scanners rebuilt. |
| docs/visuals/brand-uniformity/avatar.svg | ad245d510449cd8af056eb921fe38fa8e7590bd9 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| docs/visuals/brand-uniformity/brand.css | 91278d8df57a28da85395869f55ad8e3515d9fce |
INDEXED_ONLY — Presentation stylesheet retained and structurally indexed; no application behavior change. |
| docs/visuals/brand-uniformity/champion-static.svg | ae51a71a5dea9d5115635eea11524a6cbddf46cb |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| docs/visuals/brand-uniformity/champion.svg | d6db0352e77f59d4868909b1dbecc550008ae6fa |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| docs/visuals/brand-uniformity/diagrams/lumped-pouch-thermal.svg | 47c8e2e46869e597a9b5a0222fd922a073ad7747 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| docs/visuals/brand-uniformity/manifest.json | f87be7c92e90e6583e590d017bd371b322d477b1 |
INDEXED_ONLY — Configuration/metadata/text entry hash-verified and indexed; no broader semantic or runtime claim. |
| docs/visuals/brand-uniformity/sections/section-01-question.svg | a04eccc441677787ab29b66272f1c5d764d6bc7e |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| docs/visuals/brand-uniformity/sections/section-02-equations.svg | e070d5cab9c7f6e3d098981dcc35a4b8b4b67d8e |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| docs/visuals/brand-uniformity/sections/section-03-reproduce.svg | 03ba658aeebb4812786cdc692358f45701bb7b37 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| docs/visuals/brand-uniformity/sections/section-04-verification.svg | 3eaa2ff2a6095606e56a5cac987a0751a3e85a00 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| docs/visuals/brand-uniformity/sections/section-05-scope.svg | 4a44082b862243514a8196b824e6442fdda249b1 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| docs/visuals/diagrams/lumped-pouch-thermal.svg | 587ed2870b8a83e55ce6ebb885b00f00e9608d85 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| docs/visuals/sections/section-01-question.svg | da8147f2301e9580951d01ed6c9d3ead231ab1c2 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| docs/visuals/sections/section-02-equations.svg | 03bae24160e7e28f40100d0bfeb7a5165906aa98 |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| docs/visuals/sections/section-03-reproduce.svg | 271a6b3aacd42bd0c0c4a8e913e70c530719aada |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| docs/visuals/sections/section-04-verification.svg | b1b1b7513b1c9b9fae6d0542ed497e8a39e46b5d |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| docs/visuals/sections/section-05-scope.svg | a4dc99d689bc3435fe1ceee9303059edd8ed4a7d |
INDEXED_ONLY — Generated/brand illustration text and Git identity indexed; XML structure checked; artwork does not establish scientific validation. |
| eslint.config.mjs | e28a3d4c3ee265137daf874235800c1f318c5a6b |
INDEXED_ONLY — Configuration/metadata/text entry hash-verified and indexed; no broader semantic or runtime claim. |
| matlab/battery_thermal_lumped.m | cb9003afd29258cbfc1d9e22e4546f723336f79b |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| matlab/dc_link_ripple.m | 4ef3ec62ddcd434316002907822ea754c40bdd4a |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| matlab/tests/TestPythonParity.m | 37f4b82874332721f59ca35478a8e5a8e0a7408e |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| matlab/tests/TestReferenceModels.m | d68dc80d060603cc201b913eea3584758326407e |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| package-lock.json | d941ab345da10a16a476eca13d58c5bef0b06947 |
INDEXED_ONLY — Pinned/generated dependency record preserved and indexed; full transitive build/reproduction not independently performed. |
| package.json | 531262aa4bd627cb144792f6336098733dff1a14 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| pyproject.toml | 89845b471a8ff8946ab3e7669390c0abff9c3ffc |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| scripts/browser-csp.mjs | 8d590a72e42f394df5ef69cc334aa651cae13be3 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| scripts/capture_python_parity.py | 0b1833d153162344d110cb9aeed4368042b625ac |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| scripts/portfolio/validate_guide.py | 7052ea735f3330ce59a3eea3d187b7768a7d5e60 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| sonar-project.properties | b24187e33c79f0deeaf22fda600e45663de1d651 |
INDEXED_ONLY — Configuration/metadata/text entry hash-verified and indexed; no broader semantic or runtime claim. |
| src/battery_thermal.py | 47073ccb2f3e61aa092bf76439965780844c03af |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| src/dc_link.py | bcb35bf552e92168d0bdafe7574d35c7fe9bc337 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| tests/browser/csp.test.mjs | 49a80b00649bda2ed4c73c536b9f3890507c9d19 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| tests/fixtures/python_matlab_parity.json | 6868bc307bf99cb1e20f88af7d15e4b0b74f8805 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| tests/test_hypothesis_properties.py | 8157fa3c8b1ee88fb3028ad356273fee8981df08 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| tests/test_input_validation.py | fae86ef2bf093438253a0f8a553646ddeee5b685 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| tests/test_models.py | df577f33e9d313374bc7ac166b7ccc5ec3680957 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| tests/test_numeric_boundaries.py | 0f0725f4381544d88d131a8cf08e91070d3e0a14 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| tests/test_physical_properties.py | 60fc90bcaeff32f35ad6d74b5f83c210ad7ab101 |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| tests/test_python_parity_capture.py | 750101fb9e09bdfdf2f1a9d6402ba235a4bd24aa |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| tools/security_numerical_gate.m | cd06a5a32fd6ec5ebea26bbceaae3307e1bfe5fe |
ANALYZED — Complete relevant source text read and interpreted for this documentation; execution claims tracked separately. |
| trivy.yaml | 86aaaf294c87e1258c97b6464b894702584cc189 |
INDEXED_ONLY — Configuration/metadata/text entry hash-verified and indexed; no broader semantic or runtime claim. |
| tsconfig.eslint.json | 82a04106f347c9a1c82105ac5e3001e9210bb7cb |
INDEXED_ONLY — Configuration/metadata/text entry hash-verified and indexed; no broader semantic or runtime claim. |
| tsconfig.json | 49e264996d3b493c3b095f314d2cf2d7f3051b37 |
INDEXED_ONLY — Configuration/metadata/text entry hash-verified and indexed; no broader semantic or runtime claim. |
Directory objects
| Path | Tree object ID | Mode / disposition |
|---|---|---|
.github |
e736b77192567cb29d18f1027c7f4de01de38098 |
040000; INDEXED_ONLY; children accounted above |
.github/codeql |
bcfb6b31ff1f987274526a8e175b1e733e9294c7 |
040000; INDEXED_ONLY; children accounted above |
.github/security |
efac5fa6c5d31eaf4271dc1cf56e59cf10ca330a |
040000; INDEXED_ONLY; children accounted above |
.github/workflows |
86c137f28ce7cb816b287f271caae47b8d9a1d88 |
040000; INDEXED_ONLY; children accounted above |
assets |
e9d773295a201181fda30b67a4471ca94052547d |
040000; INDEXED_ONLY; children accounted above |
assets/brand-uniformity |
af42a588519b091a436dd6213ab662563b132932 |
040000; INDEXED_ONLY; children accounted above |
assets/brand-uniformity/portfolio |
0361dc900d50bc0c3d8bf464654986a2ed704996 |
040000; INDEXED_ONLY; children accounted above |
assets/brand-uniformity/svg-2.5d |
75ab3de714f8a3b1b00b800f14cbcea0a0a4cee0 |
040000; INDEXED_ONLY; children accounted above |
assets/brand-uniformity/svg-2.5d/diagrams |
7afabd63cdcae9f71ccad5ef23fa58eea06b6619 |
040000; INDEXED_ONLY; children accounted above |
assets/brand-uniformity/svg-2.5d/sections |
6da285f0427201cbb2b6c17ad064c16784517966 |
040000; INDEXED_ONLY; children accounted above |
assets/brand-uniformity/svg-2.5d/tags |
77fed6b2bc313f583887122a1755a53a5f298b52 |
040000; INDEXED_ONLY; children accounted above |
assets/portfolio |
a1daa529a788ded5eacc9e867afd16cb310aeb36 |
040000; INDEXED_ONLY; children accounted above |
assets/svg-2.5d |
d3ba31594be8eb0c8fc2ce5929b1c02612ec80c1 |
040000; INDEXED_ONLY; children accounted above |
assets/svg-2.5d/diagrams |
3a2054f0f92a4cd25f2d2908fb949bbe1b6e67af |
040000; INDEXED_ONLY; children accounted above |
assets/svg-2.5d/sections |
ad283b9798673dcdeb8b3dba413a2a51c9b5c948 |
040000; INDEXED_ONLY; children accounted above |
assets/svg-2.5d/tags |
ea96663f5c74184abae0dd8bee12f6974c830f56 |
040000; INDEXED_ONLY; children accounted above |
docs |
813a5811d6dc5303d5fe0cefed764877088f25dc |
040000; INDEXED_ONLY; children accounted above |
docs/animations |
8b1baf00f4d11028f4efe0e36d5a18415ab27879 |
040000; INDEXED_ONLY; children accounted above |
docs/animations/media |
d1835b6974167224ecc991daa53bdde17ef9af40 |
040000; INDEXED_ONLY; children accounted above |
docs/portfolio |
f5aff743cf24c7786a414e3321eff322073b76b3 |
040000; INDEXED_ONLY; children accounted above |
docs/security |
a30ed913ce102c89385b99109c271c372a268736 |
040000; INDEXED_ONLY; children accounted above |
docs/visuals |
dc0cfb29a3d2993c8b662f4f95c1fb12842c7a10 |
040000; INDEXED_ONLY; children accounted above |
docs/visuals/brand-uniformity |
82278f51326f2cb5716a2b70e51bff8f8c60f11d |
040000; INDEXED_ONLY; children accounted above |
docs/visuals/brand-uniformity/diagrams |
7afabd63cdcae9f71ccad5ef23fa58eea06b6619 |
040000; INDEXED_ONLY; children accounted above |
docs/visuals/brand-uniformity/sections |
6da285f0427201cbb2b6c17ad064c16784517966 |
040000; INDEXED_ONLY; children accounted above |
docs/visuals/diagrams |
3a2054f0f92a4cd25f2d2908fb949bbe1b6e67af |
040000; INDEXED_ONLY; children accounted above |
docs/visuals/sections |
ad283b9798673dcdeb8b3dba413a2a51c9b5c948 |
040000; INDEXED_ONLY; children accounted above |
matlab |
8d4a75c69da721a649684b46f8c2b35f4f1a5253 |
040000; INDEXED_ONLY; children accounted above |
matlab/tests |
5179d187e5179970d9fa531bb4db3e1f2bdd128a |
040000; INDEXED_ONLY; children accounted above |
scripts |
0cc15fda1bfcdad05106442217922dd46e3a993d |
040000; INDEXED_ONLY; children accounted above |
scripts/portfolio |
b9d314355048ec5fc9ce22b00f2d5ef33cbe0a5e |
040000; INDEXED_ONLY; children accounted above |
src |
122473dad2ca9ee0bb7b353f4e191688038d2136 |
040000; INDEXED_ONLY; children accounted above |
tests |
f0d52a0bceae5c654b5ab48dd71644d1ebe5d268 |
040000; INDEXED_ONLY; children accounted above |
tests/browser |
69bffe148aa6bcd9135ebe4ed93f2f2317842cbb |
040000; INDEXED_ONLY; children accounted above |
tests/fixtures |
c3881d1b1b918732e537bd987537c16b3d756f05 |
040000; INDEXED_ONLY; children accounted above |
tools |
2c075debdeb448abe3aad207875fe208a272705c |
040000; INDEXED_ONLY; children accounted above |
Interface accounting
The static extractor indexed declarations in 29 source files with Python AST, available JavaScript/TypeScript parsing and MATLAB declaration inspection. These inventories include internal/test/tooling declarations and therefore are not automatically a supported public API list. The authored API reference identifies the actual native functions, CLIs, browser exports and maintenance entry points. The browser catalog adds the ten inline model branches that a file-extension-only parser would miss.
Browser state/download contracts were inspected in the inline controller. Dynamic event behavior and screen rendering were not exhaustively executed; the local Chromium process could not launch. Scanner internals and every statically named tooling function are indexed with visible limits in the operational handoff rather than falsely certified as public, fully analyzed APIs.
Provenance boundaries
Lesson configs retain historical source revisions and synthetic-data declarations. Frozen parity values record Python baseline origin, while actual MATLAB execution is separate. A source file, generated illustration or old provider success does not prove an updated candidate or current deployment. There is no measured calibration dataset identified in the canonical tree. No private-repository evidence is included in this public package.
The 24 requested output entry points are mapped in the documentation index. Existing citation metadata and license remain preserved. Operational analysis, symbol, owner, roadmap, verification and author reports are bound to the candidate fingerprint outside this repository.
Canonical file: docs/SOURCE_EVIDENCE.md · Back to guide navigation