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
|
|
@ -3,13 +3,13 @@
|
|||
P16 FUNN 2: the documented stress command names the same directory twice
|
||||
(``--docs-dir <base> --bundle-dir <base>``), because single-project mode demanded ``--docs-dir``
|
||||
even on the bundle path — where it is never read. Retrieval, the chunk tool and the "no citable
|
||||
content" check all live in the ROAD branch (``run.py``); the bundle branch builds its citations
|
||||
content" check all live in the REFERENCE branch (``run.py``); the bundle branch builds its citations
|
||||
from the navigated base. So the flag was required for a path that ignores it, and the published
|
||||
command had to satisfy the requirement by repeating itself.
|
||||
|
||||
**This is not the "--docs-dir omvei"** (feeding project documents through retrieval INSTEAD of
|
||||
ingesting them into a knowledge base), which STATE forbids and this order forbids again. No such
|
||||
path is opened: the road branch still refuses without a real ``--docs-dir``, and the value is
|
||||
path is opened: the reference branch still refuses without a real ``--docs-dir``, and the value is
|
||||
bound ONCE from ``--bundle-dir`` — byte-identically what the README already tells an operator to
|
||||
type by hand, so every existing invocation, the two-flag form included, is unchanged.
|
||||
"""
|
||||
|
|
@ -45,7 +45,7 @@ def _runnable(tmp_path: Path) -> str:
|
|||
def test_a_bundle_run_needs_no_docs_dir(tmp_path: Path, capsys: pytest.CaptureFixture[str]) -> None:
|
||||
"""(a) The fix. A free dry run on ``--bundle-dir`` alone is ACCEPTED and reaches the bundle
|
||||
path — asserted on the run-config the dry run prints, not on rc alone, since rc 0 is also what
|
||||
a run that silently took the road path would return."""
|
||||
a run that silently took the reference path would return."""
|
||||
rc = run.main(["K2", "--bundle-dir", _runnable(tmp_path), "--live-dry-run"])
|
||||
|
||||
assert rc == 0
|
||||
|
|
@ -65,7 +65,7 @@ def test_the_documented_two_flag_form_still_works(
|
|||
|
||||
|
||||
def test_neither_flag_is_still_refused_by_name(capsys: pytest.CaptureFixture[str]) -> None:
|
||||
"""(c) The half that must NOT be relaxed: the road path has no base to fall back to, so an
|
||||
"""(c) The half that must NOT be relaxed: the reference path has no base to fall back to, so an
|
||||
argv naming neither is refused, and the refusal names BOTH doors rather than only the one it
|
||||
used to name."""
|
||||
rc = run.main(["K2", "--live-dry-run"])
|
||||
|
|
@ -79,14 +79,14 @@ def test_the_road_path_still_requires_a_real_docs_dir(
|
|||
tmp_path: Path, capsys: pytest.CaptureFixture[str]
|
||||
) -> None:
|
||||
"""(d) The anti-omvei arm. With no bundle, ``--docs-dir`` is still the only door AND it is
|
||||
still read: a directory holding nothing citable is refused by the road branch's own check, so
|
||||
still read: a directory holding nothing citable is refused by the reference branch's own check, so
|
||||
nothing here turns retrieval into a substitute for ingestion."""
|
||||
empty = tmp_path / "tomt"
|
||||
empty.mkdir()
|
||||
rc = run.main(["P1", "--docs-dir", str(empty), "--live-dry-run"])
|
||||
|
||||
assert rc == 1
|
||||
assert capsys.readouterr().err.strip(), "the road path must say why, not fail silently"
|
||||
assert capsys.readouterr().err.strip(), "the reference path must say why, not fail silently"
|
||||
|
||||
|
||||
def test_the_bundle_value_is_bound_once_and_reaches_run_project(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue