From 61aadff681ba4871200a0b4438b9c71ed0c65d48 Mon Sep 17 00:00:00 2001 From: Wolf Date: Sun, 4 Oct 2026 15:27:03 +0200 Subject: [PATCH] Rebuild the agent form as the fetch gate, the feed order, the cut and summarise, and name fetch text and the overrides as built Co-Authored-By: Claude Sonnet 5.5 --- app/static/agents.js | 168 ++++++++++++---------------- app/static/app.js | 58 +++++----- app/static/companies.js | 16 +-- app/static/jobs.js | 34 +++--- app/templates/settings/agents.html | 75 ++++++------- app/templates/settings/sources.html | 10 +- tests/test_web.py | 22 +++- 7 files changed, 185 insertions(+), 198 deletions(-) diff --git a/app/static/agents.js b/app/static/agents.js index 390479a..89d4438 100644 --- a/app/static/agents.js +++ b/app/static/agents.js @@ -5,18 +5,24 @@ * 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 gates as a Where block, a - * short list of lines a role passes by matching any one of, over a row per - * remaining rule under Advanced; a gate Where cannot say lands in a row, so - * a load and a save lose nothing. Edit turns a card + * 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 * into the form from the page's `