Judge each agent's best roles against its CV as skills, experience and career, a stage after summarise

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Opus 5.5 committed 2026-10-03 22:00:18 +02:00
1 parent 4fc474c437
commit 9960799b96
14 files changed
+866 -44

No files matched your search

+12 -11
View File
@@ -1,13 +1,14 @@
"""Whether the two model stages of a pull, `extract` and `summarise`, and
the `enrich` stage run.
"""Whether the three model stages of a pull, `extract`, `summarise` and
`judge`, and the `enrich` stage run.
`extract.enabled` and `summarise.enabled` in config.yaml are read at startup
and say nothing on the page, so the switch lives in the database as well: the
`state` keys `stage:extract` and `stage:summarise`, "on" or "off". A stored
value beats the file; with none, the file applies, so config.yaml is the
default for a fresh database and a deployment that never uses the switch
behaves as it did. `stage_on` is the one place that decides, and both tasks'
finders ask it (`extract.extract_task`, `summarise.summarise_task`).
`extract.enabled`, `summarise.enabled` and `judge.enabled` in config.yaml are
read at startup and say nothing on the page, so the switch lives in the
database as well: the `state` keys `stage:extract`, `stage:summarise` and
`stage:judge`, "on" or "off". A stored value beats the file; with none, the
file applies, so config.yaml is the default for a fresh database and a
deployment that never uses the switch behaves as it did. `stage_on` is the
one place that decides, and the tasks' finders ask it
(`extract.extract_task`, `summarise.summarise_task`, `judge.judge_task`).
`enrich` (reading the best roles on their own pages, `app/jobs/enrich.py`)
asks no model and is on by default (`enrich.enabled`); its switch is
@@ -31,7 +32,7 @@ from app.config import Config
from app.storage import Store
from desk.tools import agent
NAMES = ("extract", "summarise")
NAMES = ("extract", "summarise", "judge")
#: Every stage with a switch: the model stages and `enrich`.
SWITCHES = (*NAMES, "enrich")
@@ -52,7 +53,7 @@ class Stage(BaseModel):
`backend` is `agent.backend`'s answer, "" for nobody, and `answer` says
it in words."""
name: Literal["extract", "summarise", "enrich"]
name: Literal["extract", "summarise", "judge", "enrich"]
on: bool
source: Literal["stored", "config"]
model: str