refactor(examples): replace sector-specific example material with generic, fictitious examples

The context sets, the packaged knowledge bases and the example bundles are
replaced by one fictitious example set about IT operations in an invented
organisation: three context sets (serverrom-2027, driftsavtale-2027 and the
two-base drift-og-avtale-2027), two synthetic knowledge bases under
src/portfolio_optimiser/data/kunnskapsbaser and two example bundles under
src/portfolio_optimiser/data/bundles. Numbers, codes and structural values in
tests and fixtures are kept; names, ids and wording change. Dated measurement
documents that only recorded runs on the replaced material are deleted.

Gate figures measured on the new set are not comparable with earlier ones.
The exclusion gate from the previous commit is green: 0 tracked files hit
outside the shared/ subtree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kjell Tore Guttormsen 2026-09-23 15:04:21 +02:00
commit 37547fe292
Signed by: ktg
SSH key fingerprint: SHA256:JakMjO6FTBBzN0Bhfj9saOoEjaFxlSdYuZQQpM/lF9Q
1147 changed files with 24138 additions and 9503 deletions

View file

@ -3,7 +3,7 @@ must refuse rather than invent (MAJOR-4, misjonsreview v2 §7; owner B = the con
2026-09-02).
``ir.CostBaseline``'s docstring names two projections INTO it — a bundle's hand-written
``cost-baseline.json`` (``okf.load_cost_baseline``) and the road reference domain's ``cost_items``
``cost-baseline.json`` (``okf.load_cost_baseline``) and the reference domain's ``cost_items``
(``validator.baseline_from_project``). Neither can be produced from an ingested tender corpus, so
K2 could be navigated but never RUN: ``run_project``'s bundle arm resolves an OPTIONAL baseline and
a bundle carrying only ingested documents is simply un-anchored. This adds the third: derive the
@ -268,10 +268,12 @@ def test_the_verdict_layer_is_not_scanned(tmp_path: Path) -> None:
def test_control_a_bundle_shipping_a_handwritten_baseline_is_untouched() -> None:
"""``load_optional_cost_baseline`` still answers, unchanged, and remains what the run path
reaches for when the flag is absent."""
shipped = okf.load_optional_cost_baseline("shared/examples/tunnel-hauglia")
shipped = okf.load_optional_cost_baseline(
"src/portfolio_optimiser/data/bundles/driftssenter-kjoling"
)
assert shipped is not None
assert shipped.project_id == "TUNNEL-HAUGLIA"
assert "ENERGI-TUNNEL-EL" in shipped.items
assert shipped.project_id == "DRIFTSSENTER-KJOLING"
assert "ENERGI-DRIFTSSENTER-EL" in shipped.items
def test_control_the_fixture_bundles_ship_no_cost_baseline_json() -> None: