docs: the run over the draws settled against an independent reader's code

Clarification 103 holds what the reader found in clarifications 88 to
101 and how it is read; part 14 of the review log holds the
reconciliation (120 made-up draws through both codes and 600 runs of
invented outcomes, no difference) and what is not done. README,
CHANGELOG and CLAUDE.md describe the new module.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Kjell Tore Guttormsen 2026-11-13 15:48:11 +01:00
commit f5b386ff21
Signed by: ktg
SSH key fingerprint: SHA256:JakMjO6FTBBzN0Bhfj9saOoEjaFxlSdYuZQQpM/lF9Q
5 changed files with 156 additions and 12 deletions

View file

@ -50,9 +50,11 @@ carousel, Python code, and a Claude plugin (own repo, later).
the power system and the cash flow, and 82 to 87 those made when T and the loss of demand were taken through
the levelised cost, ownership and scale, and 88 to 94 those made when M5 and the verdicts were coded for
five solutions and three sensitivities of chapter 17.8 as switches, all settled against an independent
reader's code. Clarification 93 (which conditions can be named when M5 holds under conditions) was approved
by the operator 2026-11-13 and is clarification 17 of the pre-registration; it is not coded yet, and
`dommer.del_I` takes the answer as an argument.
reader's code. Clarifications 95 to 103 settle the run over the draws (the part of clarification 60 that
concerns it); 98 (which paths the ownership forms are compared on) and 102 (part II when no step can be
built) are choices put to the operator. Clarification 93 (which conditions can be named when M5 holds under
conditions) was approved by the operator 2026-11-13 and is clarification 17 of the pre-registration; it is
not coded yet, and `dommer.del_I` takes the answer as an argument.
Solution T (`Losning.T_F`, `Losning.T_K`) goes through `lag_plan` (a `Trinnvisplan`) and `regn_program`
with a module in the place of a facility (`Programresultat.P_enhet`): renewable modules have their own
portfolio as in C, the nuclear modules of T-K share the programme's units as in B
@ -71,8 +73,18 @@ carousel, Python code, and a Claude plugin (own repo, later).
only for the nuclear production the data centres themselves use (`uttak_egen_bruk`, clarification 92).
Present values are exactly rounded sums (`math.fsum`), never numpy dot products: those are not repeatable
to the last digit. Sums over technologies go in the plants' own order, never over a set of names: its order
differs from run to run. The run over the draws, the other sensitivities and the tools of chapter 12 are not
coded yet.
differs from run to run.
`kjoring.py` is the run over the draws (clarifications 95 to 103): `regn_trekning` gives, for one set of
values, every solution on every step of the ladder (`STIGE`) in the six scenarios (`SCENARIOER`) as a `Bane`
(buildable or not, the timeline S50, and an `Utfall` per scenario: NNV, S42, M3, M4, M6); `kjor` does it for
a sequence of sets, in the order of the draws and on `prosesser` processes with the same figures to the last
digit; `sett_dommer(kjoring, M5)` puts the verdicts together (per target with the shares and the figures of
clarification 69, the step from M6 in «normalisering» on the main path, part I as far as it follows from the
targets, part II, which is None when no step can be built); `tidslinje_over_trekningene` gives median,
percentiles and shares per year; `eierformer_paa_trinnet` compares the ownership forms on the step in a
second pass. The run takes the sets of values from the caller and reads neither the parameter file nor the
stored draws; M5 is passed in (`dommer_m5`). The other sensitivities, the Sobol indices, the thresholds
(clarifications 60 and 93) and the tools of chapter 12 are not coded yet.
- `data/trekninger.npy` and `data/trekninger.json`: the 10 000 draws of the 91 drawn quantities, in the parameter
file's units. `data/aarshendelser.npy` and `.json`: one uniform number per draw and year 2028–2100 for the
export rule (own seed). Committed; every later computation reads them.
@ -85,6 +97,9 @@ carousel, Python code, and a Claude plugin (own repo, later).
`test_trinnvis_nivaaisert.py` holds T and the loss of demand through the levelised cost, ownership and scale.
`test_trinnvis_dommer.py` holds M5 and the verdicts for five solutions on invented outcomes, the three
sensitivities that are switches (hand-computed build-outs), and the water for the data centres' own use.
`test_kjoring.py` holds the run over the draws on made-up draws (variants of the made-up set) and on
invented outcomes per draw: paths that cannot be built, the step and the scenarios, the timeline over the
draws by hand, and the same figures on several processes and in another order.
- `requirements.txt` (numpy, scipy) and `requirements-dev.txt` (pytest, ruff, mypy) pin exact versions;
`pyproject.toml` only configures the tools (ruff `ALL`, mypy strict).
@ -110,7 +125,8 @@ carousel, Python code, and a Claude plugin (own repo, later).
- **Known-answer tests:** nothing is tuned to make one pass. A miss stays in the suite as a strict `xfail` with
the measured deviation and the cause if known, and is reported in the review log.
- **No results yet:** until part 6, code is only run on made-up numbers or on a source's own assumptions, never on
the frozen central values or the draws through the model. `regn_program` is only called with the made-up set.
the frozen central values or the draws through the model. `regn_program` and `kjoring.kjor` are only called
with made-up sets.
- **Neutrality:** vendors and companies are data sources, cited neutrally, never recommended. Nothing here
advertises a business. "Business case" means profitability for Norway, not something for sale.
- **Sadhguru** is mentioned in exactly one sentence, as inspiration, in the report's foreword and in README; never