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

@ -23,7 +23,7 @@ _ASSUMPTIONS = {"05.2": (200.0, 230.0), "03.1": (290.0, 330.0)}
@pytest.fixture(scope="module")
def project():
return load_reference_projects()[0] # FV42-GSV-E1
return load_reference_projects()[0] # KONTOR-IT-E1
def _valid(project) -> SavingsProposal:

View file

@ -20,7 +20,7 @@ _QUERY = ProposalFeatures(
affected_codes=frozenset({"05.2", "03.1"}),
measure_type="scope_reduction",
claimed_saving_nok=220_000, # bucket [100k, 500k)
description="asphalt base course reduction near school",
description="licence scope reduction near head office",
)
@ -44,7 +44,7 @@ def _store_with_true_match_and_decoys() -> tuple[VerdictStore, str]:
affected_codes=frozenset({"09.1"}),
measure_type="rate_renegotiation",
claimed_saving_nok=50_000, # bucket [0, 100k)
description="asphalt base course reduction near school", # same words as query
description="licence scope reduction near head office", # same words as query
),
decision="rejected",
rationale="surface-text decoy",
@ -55,7 +55,7 @@ def _store_with_true_match_and_decoys() -> tuple[VerdictStore, str]:
affected_codes=frozenset({"21.2"}),
measure_type="material_substitution",
claimed_saving_nok=700_000, # bucket [500k, 1M)
description="asphalt base course reduction extra words",
description="licence scope reduction extra words",
),
decision="rejected",
rationale="surface-text decoy",