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
|
|
@ -76,12 +76,12 @@ def _isolate_model_env(monkeypatch: pytest.MonkeyPatch) -> None:
|
|||
|
||||
|
||||
def _marker_ledger(tmp_path: Path) -> Path:
|
||||
"""A ledger with exactly one realized entry totalling the marker øre against FV42-GSV-E1 —
|
||||
reused by both arms (portfolio_total == per_project_total('FV42-GSV-E1') == 13731)."""
|
||||
"""A ledger with exactly one realized entry totalling the marker øre against KONTOR-IT-E1 —
|
||||
reused by both arms (portfolio_total == per_project_total('KONTOR-IT-E1') == 13731)."""
|
||||
led = SavingsLedger()
|
||||
led.add_realized(
|
||||
LedgerEntry(
|
||||
project_id="FV42-GSV-E1",
|
||||
project_id="KONTOR-IT-E1",
|
||||
dimension="energi",
|
||||
candidate_identity="c-marker",
|
||||
amount_ore=_MARKER_ORE,
|
||||
|
|
@ -118,10 +118,10 @@ def test_per_project_hard_goal_control_distinguishes_scope(tmp_path, capsys) ->
|
|||
no client built) → scope=project, stopped_early=False, and NO portfolio-scope line. Proves the
|
||||
printed fields are the actual run_portfolio values, not a canned string."""
|
||||
goals = _write_goals(
|
||||
tmp_path, {"per_project": {"FV42-GSV-E1": {"absolute_ore": _MARKER_ORE, "mode": "hard"}}}
|
||||
tmp_path, {"per_project": {"KONTOR-IT-E1": {"absolute_ore": _MARKER_ORE, "mode": "hard"}}}
|
||||
)
|
||||
ledger = _marker_ledger(tmp_path)
|
||||
rc = run.main(["FV42-GSV-E1", "--portfolio", "--goals", str(goals), "--ledger", str(ledger)])
|
||||
rc = run.main(["KONTOR-IT-E1", "--portfolio", "--goals", str(goals), "--ledger", str(ledger)])
|
||||
assert rc == 0
|
||||
out = capsys.readouterr().out
|
||||
assert "scope=project" in out
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue