From b6e27fcb2609d2141171dc449a57dbb072b791e1 Mon Sep 17 00:00:00 2001 From: Wolf Date: Sun, 4 Oct 2026 21:33:31 +0200 Subject: [PATCH] Split the agent form's fetch gate into world, location, role exclusion and role fetch, and name the analytics filter and the feed score weights Co-Authored-By: Claude Sonnet 5.5 --- app/static/agents.js | 53 +++++++++++---------- app/templates/settings/agents.html | 75 +++++++++++++++--------------- tests/test_web.py | 28 +++++++---- 3 files changed, 86 insertions(+), 70 deletions(-) diff --git a/app/static/agents.js b/app/static/agents.js index 33adf40..e139604 100644 --- a/app/static/agents.js +++ b/app/static/agents.js @@ -3,17 +3,19 @@ * * Every agent from `/api/agents` is a card, newest first: its name, its * switch, its prompts, its gates in words, its weights, and a link to the - * Roles tab in its order. The prompts are the body, since fit is measured - * against the one a role fits best; the weights only share out the terms. - * The form edits the prompts as rows, and the fetch gate in three parts: the - * region (the scope select), the place (a short list of lines a role passes by - * matching any one of: countries, towns, remote) and the role (the fetch terms - * and the titles to leave out), over a row per remaining rule under Advanced; - * a gate the three parts cannot say lands in a row, so a load and a save lose - * nothing. A gate is a field, values and a mode (must, one of, not), with no - * weight. After it come the feed order (the four weights of the final score and - * the CV match weights), the cut (the best N by fit and the best M by CV - * closeness, each with a minimum level) and the size of summarise. Edit turns a card + * Roles tab in its order. The prompts are the body, since prompt closeness is + * measured against the one a role is closest to; the weights only share out the terms. + * The form edits the prompts as rows, and the fetch gate in four parts, in the + * ADR's order: the world (the scope select), the location (a short list of + * lines a role passes by matching any one of: countries, towns, remote), the + * role exclusion (the titles to leave out) and the role fetch (the fetch + * terms), over a row per remaining rule under Advanced; a gate the four parts + * cannot say lands in a row, so a load and a save lose nothing. A gate is a + * field, values and a mode (must, one of, not), with no weight. After it come + * the analytics filter (the best N by prompt closeness and the best M by CV + * closeness, each with a minimum level), the want feed score weights (prompt + * closeness, newness, company like, job like), the CV match weights and the + * size of summarise. Edit turns a card * into the form from the page's `