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

+18 -7
View File
@@ -1041,15 +1041,26 @@
}
/* The gutter's number, of 100, and what it says: the agent's score, or
under CV match the CV match, where a role `judge` has not read yet
shows a dash and an empty bar. */
under CV match the CV match. A role `judge` has not read yet has an
empty bar and, faint, how close it is to the CV (`cv_fit`), which is
what orders it there, else a dash. */
function gutterOf(role) {
if (sortShown() === "cv") {
const judged = role.cv_score !== null && role.cv_score !== undefined;
if (judged) {
return {
pct: Math.round(Math.min(100, Math.max(0, role.cv_score))),
shown: String(Math.round(role.cv_score)),
title: "How well it matches the CV, of 100",
};
}
const near = role.cv_fit !== null && role.cv_fit !== undefined;
return {
pct: judged ? Math.round(Math.min(100, Math.max(0, role.cv_score))) : 0,
shown: judged ? String(Math.round(role.cv_score)) : "–",
title: judged ? "How well it matches the CV, of 100" : "Not judged against the CV yet",
pct: 0,
shown: near ? String(Math.round(Math.min(1, Math.max(0, role.cv_fit)) * 100)) : "–",
title: near ? "Not judged against the CV yet; how close it is to the CV, of 100"
: "Not judged against the CV yet",
near,
};
}
const scored = role.score !== null && role.score !== undefined;
@@ -1058,11 +1069,11 @@
}
function drawRow(el, role) {
const { pct, shown, title } = gutterOf(role);
const { pct, shown, title, near } = gutterOf(role);
const text = excerpt(role);
el.innerHTML = `
<div class="gutter"><i style="height:${pct}%"></i></div>
<div class="score" title="${esc(title)}">${esc(shown)}</div>
<div class="score${near ? " near" : ""}" title="${esc(title)}">${esc(shown)}</div>
<div class="body">
<a class="headline" href="${esc(pathFor(role.uid))}">${esc(role.title || "(untitled)")}</a>
<div class="meta">