Give an agent a soft profile of likes and dislikes and take the must-haves off the form (wp-likes)

Add agents.like_text (migration 30) beside avoid_text, now shown as "What I don't like". The judge reads both under <likes> and <dislikes>, its career rubric judges against the prompts, the likes and the dislikes, and FORMAT 3 makes earlier judgements be made again. The form drops the must-haves box and no longer sends must_text, so a stored one is kept and still caps career in code.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Sonnet 5.5 committed 2026-10-03 22:48:46 +02:00
1 parent 82afa831f2
commit 8c6cbdf002
18 files changed
+144 -75

No files matched your search

+14 -10
View File
@@ -20,12 +20,14 @@
*
* The CV fieldset holds what the judge stage reads a role against: the CV as
* text (typed, or read from a .md/.txt file by the browser), the languages it
* states as rows of a code and a level, and the avoid and must-have texts.
* The must-have text is one must-have per line, which the judge answers one
* verdict each; a broken one caps career at 39 in code (the hint in
* settings/agents.html says so).
* Every save sends all four, and the card's switch re-posts the row as the
* server gave it, so neither drops them.
* states as rows of a code and a level, and the two soft texts, what the
* person likes and what they do not like (the work, the workplace,
* situations), which the judge reads for the career score. The must-have text
* is no longer on the form: a save leaves `must_text` out, so the stored one
* is kept (it is set through the API, and still caps career at 39 in code
* when the judge reports one broken).
* Every save sends the CV, languages and the two texts, and the card's switch
* re-posts the row as the server gave it, so neither drops them.
*
* Every request goes through `api()` from app.js, so a failure is one toast
* carrying the server's own sentence.
@@ -502,12 +504,14 @@
}
// The CV on a card: whether the judge has one to read roles against, and
// the languages it states, as "da fluent, en native".
// the languages it states, as "da fluent, en native", and whether the
// likes and dislikes are written.
function cvLine(row) {
const langs = row.cv_languages || [];
const said = langs.length ? `Languages: ${langs.map((l) => `${l.language} ${l.level}`).join(", ")}.` : "No languages stated.";
const has = Boolean((row.cv_text || "").trim());
return el("p", "agent-terms", has ? `CV set. ${said}` : `No CV, so roles are not judged against one. ${said}`);
const soft = `Likes ${(row.like_text || "").trim() ? "set" : "not set"}, dislikes ${(row.avoid_text || "").trim() ? "set" : "not set"}.`;
return el("p", "agent-terms", `${has ? "CV set." : "No CV, so roles are not judged against one."} ${said} ${soft}`);
}
// A prompt as a row: its name and Remove on a line, its text under them.
@@ -646,8 +650,8 @@
// is cleared in the store.
const cvText = $("#a-cv-text", f);
cvText.value = row ? row.cv_text || "" : "";
$("#a-like-text", f).value = row ? row.like_text || "" : "";
$("#a-avoid-text", f).value = row ? row.avoid_text || "" : "";
$("#a-must-text", f).value = row ? row.must_text || "" : "";
const languages = [];
const dropLanguage = (node) => {
languages.splice(languages.findIndex((l) => l.node === node), 1);
@@ -898,8 +902,8 @@
fetch_terms: read.terms(),
cv_text: $("#a-cv-text", f).value,
cv_languages: cvLanguages,
like_text: $("#a-like-text", f).value,
avoid_text: $("#a-avoid-text", f).value,
must_text: $("#a-must-text", f).value,
// Saving an agent means it is wanted, so a new one starts on; the
// card's switch is where an existing one is switched.
enabled: row ? row.enabled : true,