Pure module app/dupes.py: towns, same_posting, keep_order and assign, with
tests on the live cross-host pairs, the SAP requisitions and the edge cases.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
from_title folds the title and matches whole words in English, Danish,
Swedish, German, French, Dutch and Spanish, highest level first, with intern
tried before the rest. Individual-contributor managers (Account, Product,
Project ...) stay unknown; a manager is a level only where the word means a
team, a site or a shop.
Co-Authored-By: Claude <noreply@anthropic.com>
window.chipInput(root, {suggest, onChange, placeholder, label}) to the
contract in docs/plan-feed-filters.md: a combobox whose picks become
chips, suggest debounced and late answers dropped, Enter before the
answer picks its first, Escape that shuts the list stops there. Not
wired into the page yet; package G does that.
Co-Authored-By: Claude <noreply@anthropic.com>
A favourite company skips the any group only; a require gate it fails
gates it with the usual reason. Its score is the weighted sum with the
affinity term at 1, and weights that sum to 0 give "no weights" as for
every other company.
Co-Authored-By: Claude <noreply@anthropic.com>
The search field on Roles takes the phone top bar while it is typed in,
since a third tab left it a few letters wide.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Rate each one Yes or No apart from affinity, open its careers page with the
time noted, and set a missing or wrong link in the row. Migration 15 adds
companies.watch and careers_opened_at.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The Where block asked for a required country set and then a one-of set,
in ISO codes. It is now one question, "Where can the role be?", with
countries by name, towns, and Remote within Europe or anywhere, each
line read on its own, and a sentence under it that is the card's.
Other rules move under Advanced, open when the agent has one. The
gates the API stores do not change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Migration 14 moves each non-empty agents.intent into agent_prompts as one
prompt named after the agent, with its cached vector, and drops the three
intent columns. A role's fit is the maximum over the agent's prompts of the
calibrated cosine, and scores.prompt names the prompt that won. The agents
API takes prompts and still takes intent; the role endpoint serves the
agent's score and prompt.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The card lists each prompt and says the gates in words. The form edits
prompts as name and text rows, and the gates as a Where block (countries
required, then one of countries, remote or places, and prefer hybrid) over
a row per remaining rule. A gate the Where block cannot say lands in a row,
so a load and a save lose nothing. The gates JSON box stays under Advanced,
read only, as a view of what Save sends.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`_score_after_change` tried three times because `Jobs.enqueue` could re-raise an IntegrityError when the live job finished between its insert and its lookup. The queue now does both in one BEGIN IMMEDIATE transaction (boilerplate a1c6f0d), so the workaround and its test go.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A stored `stage:extract` / `stage:summarise` in the state table overrides
extract.enabled / summarise.enabled; with none, the file applies. One
function, stages.stage_on, decides, and both tasks' finders ask it.
GET/PUT /api/stages and `app stages` show and set it with who would answer;
Runs has a "What the model reads" block, and a search agent's card says when
a stage is off and links to the switch.
Co-Authored-By: Claude Sonnet <noreply@anthropic.com>