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
|
|
@ -57,7 +57,7 @@ def test_same_candidate_two_dimensions_counts_once_and_flags_overlap() -> None:
|
|||
assert ledger.add_realized(_entry("energi", amount_ore=5000)) is True
|
||||
# Same candidate identity (same codes+measure+amount), a DIFFERENT dimension -> distinct full
|
||||
# key -> stored, so the overlap is visible; the sum must still count it once.
|
||||
assert ledger.add_realized(_entry("asfalt", amount_ore=5000)) is True
|
||||
assert ledger.add_realized(_entry("lisens", amount_ore=5000)) is True
|
||||
|
||||
assert ledger.portfolio_total() == 5000, (
|
||||
"double-counted the same candidate across dimensions (SC4)"
|
||||
|
|
@ -186,14 +186,14 @@ def test_realize_ore_conversion_is_exact() -> None:
|
|||
|
||||
# --- Step 8: goal-stop is load-bearing (SC6) -----------------------------------------------------
|
||||
|
||||
_PORTFOLIO_IDS = ["FV42-GSV-E1", "RV13-RAS-TP", "BRU-LAKS-REHAB"]
|
||||
_PORTFOLIO_IDS = ["KONTOR-IT-E1", "NETT-SIKR-TP", "ARKIV-LAGR-MIGR"]
|
||||
|
||||
|
||||
def _portfolio_ledger(amount_ore: int) -> SavingsLedger:
|
||||
led = SavingsLedger()
|
||||
led.add_realized(
|
||||
LedgerEntry(
|
||||
project_id="FV42-GSV-E1",
|
||||
project_id="KONTOR-IT-E1",
|
||||
dimension="energi",
|
||||
candidate_identity="prior-hitl",
|
||||
amount_ore=amount_ore,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue