fix: Solver-Fehler gilt als unzuverlässig; Aufräumrunde ohne LLM
- Status error nach allen Reparaturen -> reliable=False („Solver-Fehler: …“, auch bei --resolve); vorher Exit-Code 0 ohne Warnkasten. Benchmark zählt einen Absturz nicht als ehrliches Scheitern. - Report: „längster Weg“ bei maximize; Harness druckt „Gefundener Weg“. - check_requested_method: Verneinung kurz davor im selben Satz („ohne/nicht/statt/ anders als Dijkstra“) ist keine Forderung. - Reparatur-Prompt enthält die Fehlertexte aller früheren Versuche. - ruff (F, E9) als Test tests/test_lint.py, Konfiguration in pyproject.toml. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
29d058d8f1
commit
f101b63947
1 changed files with 149 additions and 13 deletions
|
|
@ -191,3 +191,14 @@ def test_line_breaks_of_the_task_are_kept():
|
|||
from reporting.report import task_html
|
||||
seite = task_html("Pfeile:\n1 → 2: 3\n2 → 4: 5")
|
||||
assert seite.count("<br") == 2
|
||||
|
||||
|
||||
def test_longest_path_is_not_called_shortest():
|
||||
from core.model_schema import GraphSolution, SolverRun, SolverStatus
|
||||
from reporting.report import _graph_section
|
||||
run = SolverRun(status=SolverStatus.OPTIMAL, objective_value=29, graph=GraphSolution.model_validate({
|
||||
"nodes": ["0", "1", "3"], "path": ["0", "1", "3"], "node_meaning": "-", "arc_meaning": "-",
|
||||
"arcs": [{"source": "0", "target": "1", "weight": 8}, {"source": "1", "target": "3", "weight": 21}]}))
|
||||
assert "kürzeste" in str(_graph_section(run)) and "längste" not in str(_graph_section(run))
|
||||
lang = str(_graph_section(run, "maximize"))
|
||||
assert "Hervorgehoben ist der längste Weg" in lang and "kürzest" not in lang
|
||||
|
|
|
|||
Loading…
Reference in a new issue