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
|
|
@ -2,7 +2,7 @@
|
|||
names what it is about.
|
||||
|
||||
**C1, what was measured (P19 F4).** ``_fetch_parsed`` retried a malformed reply with the
|
||||
BYTE-IDENTICAL prompt. One round-3 run, ``kontrakt-sorasen-04``, left a
|
||||
BYTE-IDENTICAL prompt. One round-3 run, on the set priced by process number, left a
|
||||
``{run_id}-parse-failures.json`` with ELEVEN rows, every one of them the same failure
|
||||
(``claimed_saving_nok`` ≤ 0) — eleven of the run's twelve rounds, spent re-asking a question the
|
||||
model had already answered the same wrong way, because nothing ever told it what was wrong. Step
|
||||
|
|
@ -40,10 +40,10 @@ from portfolio_optimiser.reference_domain import Project
|
|||
from portfolio_optimiser.run import announced_subject
|
||||
from portfolio_optimiser.simulation import ScriptedChatClient
|
||||
|
||||
_EXAMPLES = Path(__file__).resolve().parents[1] / "shared" / "examples"
|
||||
_TUNNEL = _EXAMPLES / "tunnel-hauglia"
|
||||
_BUNDLES = Path(__file__).resolve().parents[1] / "src" / "portfolio_optimiser" / "data" / "bundles"
|
||||
_BASE = _BUNDLES / "driftssenter-kjoling"
|
||||
|
||||
#: The exact failure ``kontrakt-sorasen-04`` produced eleven times: a well-formed JSON object
|
||||
#: The exact failure that round-3 run produced eleven times: a well-formed JSON object
|
||||
#: whose ``claimed_saving_nok`` is 0, refused by pydantic before any validator sees it.
|
||||
_UNPARSEABLE = (
|
||||
'{"measure":"m","affected_items":[{"code":"C-1","quantity":1000,"unit_cost":100}],'
|
||||
|
|
@ -116,7 +116,7 @@ def test_the_verbatim_evidence_is_still_captured() -> None:
|
|||
|
||||
def test_the_announcement_names_the_routed_bases() -> None:
|
||||
"""(e) Two bases, two declared ids — not "the portfolio"."""
|
||||
assert announced_subject(None, (str(_TUNNEL),)) == "tunnel-hauglia"
|
||||
assert announced_subject(None, (str(_BASE),)) == "driftssenter-kjoling"
|
||||
|
||||
|
||||
def test_an_unresolvable_base_falls_back_to_its_directory_name(tmp_path: Path) -> None:
|
||||
|
|
@ -145,7 +145,7 @@ def test_the_cli_prints_the_routed_bases(
|
|||
rc = main(
|
||||
[
|
||||
"--across-bundle",
|
||||
str(_TUNNEL),
|
||||
str(_BASE),
|
||||
"--mandate",
|
||||
str(mandate),
|
||||
"--run-id",
|
||||
|
|
@ -157,7 +157,7 @@ def test_the_cli_prints_the_routed_bases(
|
|||
)
|
||||
out = capsys.readouterr().out
|
||||
assert rc == 0, out
|
||||
assert "Run mandate for tunnel-hauglia" in out
|
||||
assert "Run mandate for driftssenter-kjoling" in out
|
||||
assert "the portfolio" not in out
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue