Score each role's closeness to the agent's CV, let the judge also read the 50 closest the score leaves out, and order CV match's unjudged roles by it

The CV is cut into chunks inside e5's window, embedded like a prompt and
cached per agent under a hash of the model, chunking and text. A role's
cv_fit (scores.cv_fit, migration 31) is its best chunk cosine, scaled with
its own calibration band: fit's clipped 88 of agent 2's ungated roles to 1.
It is no term of the Agent match score. judge_cv_top (default 50) sits
beside judge_top and judge_min on the agents page and card.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Opus 5.5 committed 2026-10-03 23:35:21 +02:00
1 parent b481cb5692
commit c23594507a
23 files changed
+603 -85

No files matched your search

+9
View File
@@ -1244,6 +1244,9 @@ class ScoredRole(Role):
#: judged; `cv_score` is its total.
judgement: Judgement | None = None
cv_score: float | None = None
#: How close the role is to the agent's CV, 0..1 (`scores.cv_fit`), None
#: without a CV, a vector or a score, and for a gated role.
cv_fit: float | None = None
#: The posting's languages against the agent's (`language_flag`).
lang_flag: LangFlag = ""
lang_note: str = ""
@@ -1328,6 +1331,8 @@ class RoleRow(Model):
lang_flag: LangFlag = ""
lang_note: str = ""
cv_score: float | None = None
#: As `ScoredRole.cv_fit`: how close the role is to the agent's CV, 0..1.
cv_fit: float | None = None
@computed_field # type: ignore[prop-decorator]
@property
@@ -1490,6 +1495,10 @@ class Limits(Model):
#: so between summarise's 30 and extract's 500.
judge_top: int = Field(150, ge=0)
judge_min: float = Field(0.55, ge=0, le=1)
#: And the agent's ungated roles closest to its CV (`scores.cv_fit`, see
#: `app.jobs.score`) that the pair above leaves out, as many as this:
#: a role the prompts rank low can still be one the CV fits.
judge_cv_top: int = Field(50, ge=0)
class Prompt(Model):