Judge each agent's best roles against its CV as skills, experience and career, a stage after summarise
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4fc474c437
commit
9960799b96
14 files changed
+866
-44
No files matched your search
@@ -143,7 +143,7 @@ def client(app: FastAPI) -> Iterator[TestClient]:
|
||||
yield c
|
||||
|
||||
|
||||
def test_get_stages_lists_all_three_with_their_source_model_and_who_answers(
|
||||
def test_get_stages_lists_all_four_with_their_source_model_and_who_answers(
|
||||
client: TestClient, monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
answered_by(monkeypatch, "api")
|
||||
res = client.get("/api/stages")
|
||||
@@ -156,6 +156,9 @@ def test_get_stages_lists_all_three_with_their_source_model_and_who_answers(
|
||||
{"name": "summarise", "on": False, "source": "config",
|
||||
"model": "claude-haiku-4-5-20251001", "backend": "api",
|
||||
"answer": "answered by the Claude API"},
|
||||
{"name": "judge", "on": False, "source": "config",
|
||||
"model": "claude-haiku-4-5-20251001", "backend": "api",
|
||||
"answer": "answered by the Claude API"},
|
||||
{"name": "enrich", "on": True, "source": "config", "model": "", "backend": "",
|
||||
"answer": "reads role pages, asks no model"},
|
||||
]
|
||||
@@ -166,8 +169,8 @@ def test_who_answers_is_said_for_the_api_claude_code_and_nobody(
|
||||
answers = {}
|
||||
for backend in ("api", "claude_code", ""):
|
||||
answered_by(monkeypatch, backend)
|
||||
[first, second, _enrich] = client.get("/api/stages").json()
|
||||
assert first["backend"] == second["backend"] == backend
|
||||
[first, second, third, _enrich] = client.get("/api/stages").json()
|
||||
assert first["backend"] == second["backend"] == third["backend"] == backend
|
||||
answers[backend] = first["answer"]
|
||||
|
||||
assert answers["api"] == "answered by the Claude API"
|
||||
@@ -201,7 +204,7 @@ def test_the_enrich_switch_is_listed_and_stored_like_the_others(
|
||||
assert res.json()["name"] == "enrich" and res.json()["on"] is False
|
||||
assert store.state["stage:enrich"] == "off"
|
||||
listed = {stage["name"]: stage for stage in client.get("/api/stages").json()}
|
||||
assert list(listed) == ["extract", "summarise", "enrich"]
|
||||
assert list(listed) == ["extract", "summarise", "judge", "enrich"]
|
||||
assert listed["enrich"]["on"] is False and listed["enrich"]["source"] == "stored"
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user