You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(install): no model pull checks the model's kind — a chat model in the embedding role passes every pull and is preserved forever on update #19736
No model pull or post-install check verifies that a model is the right kind for its role. This is how a chat model ended up as the embedding model on existing hosts (#18834):
Every pull site checks only that the name exists: llm/tasks/main.yml:204-232, agent_config/tasks/ollama.yml:34, deploy-native-services.yml:702, deploy-hybrid-docker.yml:385 and install-bare-metal.sh:263. None asks the model server whether the model can embed or complete.
One shared role-kind check: query the model's capabilities (embedding / completion / tools) and compare them to what the role needs. Every pull site and the post-install check use it.
Partial fix in PR #19744: the preserved-value step now kind-checks the deployed embedding model (ACs 2 and 3). Still open: AC1, one shared kind check at every pull site. That check should also validate the controller-env fallback lookup('env','AUTOBOT_EMBEDDING_MODEL') in playbooks/vars/backend-env.yml:34, found in review.
AC1 progress: PR #19852 adds the shared kind check (_shared/tasks/assert_model_kinds.yml) and wires it into roles/agent_config/tasks/ollama.yml and playbooks/deploy-hybrid-docker.yml. The hybrid deploy now reads agent_config's single model list.
Remaining sites. Each is blocked only by an open PR on the same file, and gets the same include once that PR lands:
Landed via the merge train (PR #19859), main d32585a.
One kind check used by every pull site, with a test planting a chat model in the embedding role: not met. The check landed only in autobot-slm-backend/ansible/_shared/tasks/read_deployed_embedding_model.yml (_embedding_kind_probe via the model server's capabilities); the pull sites named in the issue (llm role, agent_config ollama, deploy-native-services, deploy-hybrid-docker, install-bare-metal) are not touched by the merged change.
A deployed embedding model failing the kind check is replaced on update, replacement logged, pinned by test: same task file (keep only when verdict is not not-embedding; replacement recorded) and repo_tests/embedding_model_kind_checked_19736_test.py (test_keep_is_refused_only_on_a_definite_not_embedding_verdict, test_a_replacement_is_announced_on_every_run_it_happens, test_a_replacement_is_recorded_and_the_template_then_ignores_a_predefined_value).
Host: embedding role resolves to an embedding-capable model after the builtin update: host behaviour, not verifiable from code.
Landed via the merge train (PR #19882), main 8dc5efe.
Not closed; AC2 was already ticked, AC1 and AC3 stay unticked.
AC1: _shared/tasks/assert_model_kinds.yml is included only by autobot-slm-backend/ansible/roles/agent_config/tasks/ollama.yml:51 and playbooks/deploy-hybrid-docker.yml:399, covered by repo_tests/model_kind_checked_after_pull_19736_test.py. The other pull sites listed in the issue (llm/tasks, deploy-native-services.yml, install-bare-metal.sh) do not reference it.
AC3: host behaviour, needs host evidence after the builtin update.
Landed through the merge train (PR #20238), main 35c78b6, via #20190. First criterion ticked, from main: _shared/files/check_model_kinds.sh is the one check. It runs through _shared/tasks/assert_model_kinds.yml in roles/agent_config/tasks/ollama.yml, playbooks/deploy-hybrid-docker.yml, playbooks/deploy-native-services.yml and roles/llm/tasks/main.yml, and through lib/pull-embedding-model.sh in install-bare-metal.sh. test_a_chat_model_in_the_embedding_role_is_the_wrong_kind and test_the_bare_metal_install_stops_on_a_chat_model_in_the_embedding_role plant the chat model.
Open: the host criterion, which needs the audited host after an update. Note deploy-hybrid-docker.yml itself cannot load as a playbook (#19134), so its check cannot run until that is fixed.
Activity
fix(deploy): the embedding-model messages render where the role never…
mrveiss commentedon Oct 27, 2026
Partial fix in PR #19744: the preserved-value step now kind-checks the deployed embedding model (ACs 2 and 3). Still open: AC1, one shared kind check at every pull site. That check should also validate the controller-env fallback
lookup('env','AUTOBOT_EMBEDDING_MODEL')inplaybooks/vars/backend-env.yml:34, found in review.fix(deploy): one shared model-kind check after pulling, wired into ag…
chore(baseline): prune the 6 hybrid-deploy model literals the shared …
mrveiss commentedon Oct 27, 2026
AC1 progress: PR #19852 adds the shared kind check (
_shared/tasks/assert_model_kinds.yml) and wires it intoroles/agent_config/tasks/ollama.ymlandplaybooks/deploy-hybrid-docker.yml. The hybrid deploy now reads agent_config's single model list.Remaining sites. Each is blocked only by an open PR on the same file, and gets the same include once that PR lands:
roles/llm/tasks/main.yml(fix(ansible): read-only status queries run in check mode, with a guard (#19663) #19814)playbooks/deploy-native-services.yml(dedup(toolchain): the Node.js major has one home, the repo-root .nvmrc (22) (#19328) #19662)install-bare-metal.sh(chore(merge-train): #19598 #19618 #19662 #19847, dedup(toolchain): the Node.js major has one home, the repo-root .nvmrc (22) (#19328) #19662)read_deployed_embedding_model.yml(fix(deploy): an update replaces a deployed embedding model the model server says cannot embed (#19736) #19744)fix(ansible): the model kind check fails when the model server cannot…
fix(tests): the model-list tests read the shared list with its embedd…
github-actions commentedon Oct 28, 2026
Landed in train train-2026-10-28-86a (#19859, merge
d32585a0bd) via #19744mrveiss commentedon Oct 28, 2026
Landed via the merge train (PR #19859), main d32585a.
autobot-slm-backend/ansible/_shared/tasks/read_deployed_embedding_model.yml(_embedding_kind_probevia the model server's capabilities); the pull sites named in the issue (llm role, agent_config ollama, deploy-native-services, deploy-hybrid-docker, install-bare-metal) are not touched by the merged change.not-embedding; replacement recorded) andrepo_tests/embedding_model_kind_checked_19736_test.py(test_keep_is_refused_only_on_a_definite_not_embedding_verdict,test_a_replacement_is_announced_on_every_run_it_happens,test_a_replacement_is_recorded_and_the_template_then_ignores_a_predefined_value).Left open.
github-actions commentedon Oct 28, 2026
Landed in train train-2026-10-28-86c (#19882, merge
8dc5efea83) via #19852mrveiss commentedon Oct 28, 2026
Landed via the merge train (PR #19882), main 8dc5efe.
Not closed; AC2 was already ticked, AC1 and AC3 stay unticked.
fix(install): every model pull site runs the one kind check (#19736)
fix(install): the native play's inline model list leaves the hardcode…
fix(install): the llm role reads the embedding model from its one home (
fix(install): the bare-metal installer reads the embedding model from…
fix(install): the bare-metal env file reads the embedding model from …
fix(install): a missing model or Ansible tree stops the bare-metal in…
mrveiss commentedon Oct 31, 2026
Landed through the merge train (PR #20238), main 35c78b6, via #20190. First criterion ticked, from
main:_shared/files/check_model_kinds.shis the one check. It runs through_shared/tasks/assert_model_kinds.ymlinroles/agent_config/tasks/ollama.yml,playbooks/deploy-hybrid-docker.yml,playbooks/deploy-native-services.ymlandroles/llm/tasks/main.yml, and throughlib/pull-embedding-model.shininstall-bare-metal.sh.test_a_chat_model_in_the_embedding_role_is_the_wrong_kindandtest_the_bare_metal_install_stops_on_a_chat_model_in_the_embedding_roleplant the chat model.Open: the host criterion, which needs the audited host after an update. Note
deploy-hybrid-docker.ymlitself cannot load as a playbook (#19134), so its check cannot run until that is fixed.mrveiss commentedon Oct 31, 2026
Landed via the merge train (PR #20238). The two code ACs were already ticked; the host AC stays unticked. Open.