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
|
|
@ -40,8 +40,8 @@ from portfolio_optimiser import okf
|
|||
_TWO_SOURCES = (
|
||||
"---\n"
|
||||
"type: concept\n"
|
||||
"title: Tunnelbelysning\n"
|
||||
"sources: [{ id: n100, resource: vegnormal }, { id: ipmvp, resource: efficiency-valuation }]\n"
|
||||
"title: Serverromskjøling\n"
|
||||
"sources: [{ id: d100, resource: driftskrav }, { id: ipmvp, resource: efficiency-valuation }]\n"
|
||||
"verified: { by: human:kjell, at: 2026-09-02 }\n"
|
||||
"---\n"
|
||||
"\nInnhold.\n"
|
||||
|
|
@ -64,7 +64,7 @@ def test_a_non_verified_key_is_read_instead_of_raising(tmp_path: Path) -> None:
|
|||
|
||||
assert evidence.state == "present"
|
||||
assert evidence.items_seen == 2
|
||||
assert [e["id"] for e in evidence.entries] == ["n100", "ipmvp"]
|
||||
assert [e["id"] for e in evidence.entries] == ["d100", "ipmvp"]
|
||||
|
||||
|
||||
def test_a_non_verified_key_carries_no_tier(tmp_path: Path) -> None:
|
||||
|
|
@ -139,7 +139,7 @@ def test_the_three_non_present_states_are_unchanged_for_any_key(tmp_path: Path)
|
|||
# keeps asserting what it always asserted: an unreadable value is never tiered.
|
||||
blocked = _concept(
|
||||
tmp_path,
|
||||
"---\ntype: concept\nsources:\n - { id n100, resource vegnormal }\n---\n\nInnhold.\n",
|
||||
"---\ntype: concept\nsources:\n - { id d100, resource driftskrav }\n---\n\nInnhold.\n",
|
||||
)
|
||||
unreadable = okf.evidence_for(blocked, key="sources")
|
||||
assert unreadable.state == "unreadable"
|
||||
|
|
@ -149,7 +149,7 @@ def test_the_three_non_present_states_are_unchanged_for_any_key(tmp_path: Path)
|
|||
# The reverse direction, pinned in the same arm so the widening cannot regress silently.
|
||||
readable = _concept(
|
||||
tmp_path,
|
||||
"---\ntype: concept\nsources:\n - id: n100\n resource: vegnormal\n---\n\nInnhold.\n",
|
||||
"---\ntype: concept\nsources:\n - id: d100\n resource: driftskrav\n---\n\nInnhold.\n",
|
||||
)
|
||||
present = okf.evidence_for(readable, key="sources")
|
||||
assert present.state == "present"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue