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:
parent
058dd25570
commit
37547fe292
1147 changed files with 24138 additions and 9503 deletions
|
|
@ -193,11 +193,11 @@ def test_promoted_verdict_about_another_candidate_keeps_its_own_key(tmp_path) ->
|
|||
id="STEG8-OTHER-CANDIDATE",
|
||||
proposal_features=ProposalFeatures(
|
||||
affected_codes=frozenset({"05.2", "03.1"}),
|
||||
measure_type="Redusert asfalttykkelse",
|
||||
measure_type="Redusert lisensomfang",
|
||||
claimed_saving_nok=900000,
|
||||
),
|
||||
decision="approved",
|
||||
rationale=f"asfalttiltak godkjent med kraftig realiseringskorreksjon ({other_marker})",
|
||||
rationale=f"lisenstiltak godkjent med kraftig realiseringskorreksjon ({other_marker})",
|
||||
)
|
||||
|
||||
path = promote_verdict(
|
||||
|
|
@ -206,7 +206,7 @@ def test_promoted_verdict_about_another_candidate_keeps_its_own_key(tmp_path) ->
|
|||
|
||||
fm = okf.parse_frontmatter(path)
|
||||
assert fm["affected_codes"] == "[03.1, 05.2]" # sorted -> deterministic bytes
|
||||
assert fm["measure_type"] == "Redusert asfalttykkelse"
|
||||
assert fm["measure_type"] == "Redusert lisensomfang"
|
||||
assert fm["claimed_saving_nok"] == "900000"
|
||||
|
||||
# The round trip: the next run's seed keys it on ITS candidate, so it does not surface for the
|
||||
|
|
@ -224,7 +224,7 @@ def test_promoted_verdict_about_another_candidate_keeps_its_own_key(tmp_path) ->
|
|||
(v.proposal_features.affected_codes, v.proposal_features.measure_type)
|
||||
for v in store.verdicts
|
||||
}
|
||||
assert (frozenset({"05.2", "03.1"}), "Redusert asfalttykkelse") in keys, (
|
||||
assert (frozenset({"05.2", "03.1"}), "Redusert lisensomfang") in keys, (
|
||||
f"the promoted verdict was seeded with the wrong structural key; got {keys}"
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue