Let the judge read the person's languages beside the CV, as ADR 4.2 has it: a language a posting requires above the level spoken lowers skills and is a gap, and a change to them re-judges the cut

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Fable 5.1 committed 2026-10-06 13:33:32 +02:00
1 parent e61185e4b9
commit 4a9bcb2b1c
2 files changed
+27 -11

No files matched your search

+9 -3
View File
@@ -14,7 +14,7 @@ import pytest
from app.config import Config
from app.jobs import judge, stages
from app.models import CvLanguage, Prompt
from app.models import CvLanguage, Prompt, Weights
from app.storage import Store
from desk import modeltask
from desk.models import Item
@@ -259,10 +259,16 @@ def test_a_judgement_is_read_again_only_when_what_it_read_changed(
with store.transaction() as conn:
conn.execute("UPDATE roles SET closed_at = NULL WHERE uid = ?", (uid,))
# The languages are not part of what it read; the must text is.
# The languages and the must text are part of what it read; the weights
# are not.
store.save_agent("Data", prompts=owner.prompts, agent_id=owner.id,
cv_languages=[CvLanguage(language="da", level="native")])
weights=Weights(cv_skills=50))
assert judge.pending(store) == 0
spoken = store.save_agent("Data", prompts=owner.prompts, agent_id=owner.id,
cv_languages=[CvLanguage(language="da", level="native")])
assert judge.pending(store) == 1
assert '<languages title="the languages they speak, and how well">\nDanish native' \
in judge.system(spoken)
store.save_agent("Data", prompts=owner.prompts, agent_id=owner.id,
must_text="Remote two days a week.")
assert judge.pending(store) == 1