Rebuild the agent form as the fetch gate, the feed order, the cut and summarise, and name fetch text and the overrides as built

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Sonnet 5.5 committed 2026-10-04 15:27:03 +02:00
1 parent fbc0f16c4a
commit 61aadff681
7 files changed
+185 -198

No files matched your search

+17 -5
View File
@@ -966,12 +966,24 @@ def test_the_agents_page_lists_and_edits_search_agents(client: TestClient) -> No
for weight in ("a-fit", "a-recency", "a-affinity", "a-taste"):
assert f'id="{weight}"' in page
assert 'id="a-taste" min="0" step="0.05" value="0.2"' in page
# What the model reads after a pull: a count and a score floor per stage.
assert "<legend>What the model reads</legend>" in template
for limit in ("a-extract-top", "a-extract-min", "a-summarise-top", "a-summarise-min"):
# The fetch gate in three parts, and no hybrid prefer control.
assert "<legend>The fetch gate</legend>" in template
for part in ("<h3>Region</h3>", "<h3>Place</h3>", "<h3>Role</h3>"):
assert part in template
for field in ("a-scope", "a-countries", "a-towns", "a-remote", "a-terms", "a-titles"):
assert f'id="{field}"' in template
assert "a-hybrid" not in page and "prefer" not in template.lower()
# The cut, and summarise after the ranking: the keys of `Limits`.
assert "<legend>The cut</legend>" in template and "<legend>After the ranking</legend>" in template
for limit in ("a-cut-fit-top", "a-cut-fit-min", "a-cut-cv-top", "a-cut-cv-min", "a-summarise-top"):
assert f'id="{limit}"' in template
assert 'id="a-extract-top" min="0" step="10" value="500"' in page
assert 'id="a-summarise-min" min="0" max="1" step="0.05" value="0.65"' in page
assert 'id="a-cut-fit-top" min="0" step="10" value="500"' in page
assert 'id="a-cut-fit-min" min="0" max="1" step="0.05" value="0.6"' in page
assert 'id="a-cut-cv-top" min="0" step="10" value="150"' in page
assert 'id="a-summarise-top" min="0" step="5" value="50"' in page
for gone in ("a-extract-top", "a-extract-min", "a-summarise-min", "a-judge-top", "a-judge-min",
"a-judge-cv-top"):
assert f'id="{gone}"' not in page
assert 'id="a-new"' in page and 'id="a-delete"' in page
assert "Save and score" in page