Skip to content

The agent that grows with you

fix(plugins): inherited aux slots follow their base until the user pins one

Teknium952322ca3cf2
diff --git a/agent/auxiliary_client.py b/agent/auxiliary_client.py
index 465da0d1a1d..3f7246da990 100644
--- a/agent/auxiliary_client.py
+++ b/agent/auxiliary_client.py
@@ -6269,14 +6269,12 @@ _DEFAULT_AUX_TIMEOUT = 30.0
_COMPRESSION_TIMEOUT_FLOOR_SECONDS = 300.0
-def _get_auxiliary_task_config(
- task: str, _seen: Optional[frozenset] = None,
-) -> Dict[str, Any]:
+def _get_auxiliary_task_config(task: str, _seen: frozenset = frozenset()) -> Dict[str, Any]:
"""Config dict for auxiliary.<task>, or {} when unavailable. Plugin-registered tasks get their
declared defaults layered under user config (user wins); built-in defaults live in DEFAULT_CONFIG.
- A task registered with ``inherit_from`` also inherits the base task's effective config, resolved
- here at read time so it tracks the base's current settings; precedence is base, then plugin
- defaults, then user config. ``_seen`` is the recursion guard for hand-edited inheritance cycles."""
+ A task registered with ``inherit_from`` is resolved here, at read time, over the base task's
+ effective config, so it follows the base's current settings (and the active profile's config)
+ until the user pins a route on the task itself. ``_seen`` guards re-registration cycles."""
if not task:
return {}
try:
@@ -6288,14 +6286,6 @@ def _get_auxiliary_task_config(
task_config = aux.get(task, {}) if isinstance(aux, dict) else {}
if not isinstance(task_config, dict):
task_config = {}
- seen = _seen or frozenset()
- # A cycle here means a hand-edited or otherwise malformed registry; fall back to this task's
- # own defaults instead of recursing until the stack blows.
- cyclic = task in seen
- # Only when we actually inherit does the user layer need pruning below.
- if cyclic:
- logger.warning("Auxiliary task %r has a circular inherit_from chain — ignoring inheritance",
- task)
try:
from hermes_cli.plugins import get_plugin_auxiliary_tasks
for _entry in get_plugin_auxiliary_tasks():
@@ -6303,30 +6293,46 @@ def _get_auxiliary_task_config(
_defaults = _entry.get("defaults") or {}
if isinstance(_defaults, dict):
_inherit = _entry.get("inherit_from")
- if cyclic or not _inherit:
+ if _inherit and task in _seen:
+ logger.warning("Auxiliary task %r has a circular inherit_from chain — "
+ "ignoring inheritance", task)
+ if not _inherit or task in _seen:
return {**_defaults, **task_config}
- base = _get_auxiliary_task_config(_inherit, seen | {task})
- return {**base, **_defaults, **_explicit_user_config(task_config)}
+ base = _get_auxiliary_task_config(_inherit, _seen | {task})
+ return _layer_over_inherited({**base, **_defaults}, task_config)
break
except Exception:
pass # plugin discovery failure must not break aux task config reads
return task_config
-def _explicit_user_config(task_config: Dict[str, Any]) -> Dict[str, Any]:
- """User config with unset values dropped, so an inherited base is not shadowed by write-only
- placeholders.
-
- The aux picker and "reset to auto" persist ``model``, ``base_url``, ``api_key`` and
- ``reasoning_effort`` as empty strings when the operator expresses no preference for them, and
- plugin-registered tasks are included in both writers. Merging those empties over the inherited
- base would discard it for exactly the keys the UI touches, which inverts the whole point of
- ``inherit_from``.
-
- Only ``""`` is dropped, never any falsy value: ``provider: "auto"`` is a deliberate choice, and
- ``reasoning_effort: false`` is an explicit request for no reasoning rather than an unset value.
- """
- return {k: v for k, v in task_config.items() if v != ""}
+# The fields that together pick WHERE a call goes. They travel as one unit: a provider pinned on an
+# inheriting task must never pick up the base's base_url/api_key (that would send one vendor's key
+# to another's endpoint).
+_AUX_ROUTE_KEYS = frozenset({"provider", "model", "base_url", "api_key", "api_mode", "key_env",
+ "api_key_env", "reasoning_effort"})
+
+
+def _layer_over_inherited(inherited: Dict[str, Any], user: Dict[str, Any]) -> Dict[str, Any]:
+ """Merge a task's own ``auxiliary.<task>`` block over its inherited base.
+
+ The picker, "reset to auto" and the dashboard persist ``provider: auto`` plus ``""`` for
+ model/base_url/api_key/reasoning_effort when the operator expresses no preference, so those
+ placeholders mean "follow the base", not "override it with nothing". Once the operator pins a
+ route (a non-auto provider, a model or a base_url) the whole route comes from the task's own
+ block. Non-route keys (timeout, extra_body, ...) override per key; only ``""`` is dropped,
+ never other falsy values (``reasoning_effort: false`` is an explicit choice)."""
+ provider = str(user.get("provider") or "").strip().lower()
+ pinned = (provider not in ("", "auto") or bool(str(user.get("model") or "").strip())
+ or bool(str(user.get("base_url") or "").strip()))
+ merged = {k: v for k, v in inherited.items() if not (pinned and k in _AUX_ROUTE_KEYS)}
+ for key, value in user.items():
+ if value == "" and not (pinned and key in _AUX_ROUTE_KEYS):
+ continue
+ if key == "provider" and not pinned:
+ continue
+ merged[key] = value
+ return merged
class CompressionFastLane(NamedTuple):
diff --git a/hermes_cli/main_provider_setup.py b/hermes_cli/main_provider_setup.py
index 8f3706c8ad2..0e11a5943bc 100644
--- a/hermes_cli/main_provider_setup.py
+++ b/hermes_cli/main_provider_setup.py
@@ -133,36 +133,15 @@ def _aux_task_cfg(cfg: dict, task: str) -> dict:
def _aux_task_cfg_for_display(cfg: dict, task: str) -> dict:
- """The routing dict to *display* for *task*, with an inherited base resolved.
-
- The stored block is authoritative for built-in tasks, but a plugin task registered with
- ``inherit_from`` may inherit its provider/model from a base task while storing only the fields
- the operator actually set. Rendering the raw block would then report "auto" while the task
- actually runs on the base's provider. Falls back to the stored block if the runtime resolver is
- unavailable, so the menu never depends on importing the agent package.
- """
- stored = _aux_task_cfg(cfg, task)
- if task == _DELEGATION_TASK_KEY:
- return stored
- try:
- from agent.auxiliary_client import _get_auxiliary_task_config
- except Exception:
- return stored
- try:
- resolved = _get_auxiliary_task_config(task)
- except Exception:
- return stored
- # Only adopt the resolved view when the task really inherits; otherwise keep showing exactly
- # what is stored, so display behaviour for existing tasks is unchanged.
- if not resolved:
- return stored
- try:
+ """The routing dict to *display* for *task*. A plugin task registered with ``inherit_from``
+ shows its resolved route (base included), so the menu never reports "auto" while the task
+ actually runs on the base's provider; every other task shows exactly what is stored."""
+ with contextlib.suppress(Exception):
from hermes_cli.plugins import get_plugin_auxiliary_tasks
- inherits = any(e.get("key") == task and e.get("inherit_from")
- for e in get_plugin_auxiliary_tasks())
- except Exception:
- return stored
- return resolved if inherits else stored
+ if any(e.get("key") == task and e.get("inherit_from") for e in get_plugin_auxiliary_tasks()):
+ from agent.auxiliary_client import _get_auxiliary_task_config
+ return _get_auxiliary_task_config(task)
+ return _aux_task_cfg(cfg, task)
def _aux_task_display_name(task: str) -> str:
diff --git a/hermes_cli/plugins.py b/hermes_cli/plugins.py
index 7a55c5b08c0..cd13d8de895 100644
--- a/hermes_cli/plugins.py
+++ b/hermes_cli/plugins.py
@@ -861,9 +861,9 @@ class PluginContext:
``inherit_from`` names a built-in or already-registered auxiliary task whose effective
configuration becomes the base for this one; it is resolved at read time, so the task tracks
the base's current config instead of snapshotting it (precedence: inherited base, then
- ``defaults``, then user config in ``auxiliary.<key>``).
- Raises ``ValueError`` for an empty/invalid key, a built-in key, another plugin's key, or an
- ``inherit_from`` that is empty, self-referential, or not a known auxiliary task."""
+ ``defaults``, then user config in ``auxiliary.<key>``). An unknown or self-referential
+ ``inherit_from`` logs a warning and registers the task without inheritance.
+ Raises ``ValueError`` for an empty/invalid key, a built-in key, or another plugin's key."""
me = self.manifest.name
if not key or not isinstance(key, str):
raise ValueError(f"Plugin '{me}' tried to register auxiliary task with invalid key {key!r}")
@@ -881,18 +881,14 @@ class PluginContext:
if existing is not None and existing.get("plugin") != owner_id:
raise ValueError(f"Plugin '{me}' cannot register auxiliary task {key!r} — already registered "
f"by plugin '{existing.get('plugin')}'")
- if inherit_from is not None:
- if not isinstance(inherit_from, str) or not inherit_from.strip():
- raise ValueError(f"Plugin '{me}' auxiliary task {key!r} got an invalid inherit_from "
- f"{inherit_from!r} — pass a built-in or plugin auxiliary task key")
- # Same-owner re-registration is allowed, so a self-referential inherit_from would only be
- # caught at read time, as infinite recursion.
- if inherit_from == key:
- raise ValueError(f"Plugin '{me}' auxiliary task {key!r} cannot inherit from itself")
- if inherit_from not in builtin_aux_keys and inherit_from not in self._manager._aux_tasks:
- raise ValueError(f"Plugin '{me}' auxiliary task {key!r} cannot inherit from unknown task "
- f"{inherit_from!r} — use a built-in auxiliary task or one already "
- f"registered by a plugin")
+ # A bad base degrades to "no inheritance" rather than failing the whole plugin load; a
+ # self-reference would otherwise only surface at read time, as a cycle.
+ if inherit_from is not None and (
+ not isinstance(inherit_from, str) or inherit_from == key
+ or (inherit_from not in builtin_aux_keys and inherit_from not in self._manager._aux_tasks)):
+ logger.warning("Plugin '%s' auxiliary task %r: ignoring inherit_from=%r — not a built-in "
+ "auxiliary task or one already registered by a plugin", me, key, inherit_from)
+ inherit_from = None
# Plugin owns the schema; routing fields are guaranteed present so consumers don't crash.
# With inheritance the base supplies the shape, so only the plugin's own overrides go here.
task_defaults = (dict(defaults or {}) if inherit_from else
diff --git a/tests/hermes_cli/test_plugin_auxiliary_tasks.py b/tests/hermes_cli/test_plugin_auxiliary_tasks.py
index 11d9bb5540e..bbdad85e43a 100644
--- a/tests/hermes_cli/test_plugin_auxiliary_tasks.py
+++ b/tests/hermes_cli/test_plugin_auxiliary_tasks.py
@@ -98,7 +98,7 @@ def test_reset_aux_to_auto_resets_plugin_tasks(tmp_path, monkeypatch, patched_ma
assert cfg["auxiliary"]["my_aux"]["model"] == ""
-# ── inherit_from: read-time base + precedence ────────────────────────────────
+# ── inherit_from: read-time base, explicit pin wins ──────────────────────────
@pytest.fixture
@@ -113,198 +113,71 @@ def aux_home(tmp_path, monkeypatch):
return home
-def _register(patched_manager, **kwargs):
+def _register(patched_manager, key, **kwargs):
ctx = PluginContext(PluginManifest(name="plug"), patched_manager)
- return ctx.register_auxiliary_task(
- key=kwargs.pop("key"), display_name="Plug Aux", description="d", **kwargs)
+ return ctx.register_auxiliary_task(key, display_name="Plug Aux", description="d", **kwargs)
-def test_inherit_from_builtin_uses_builtin_defaults(aux_home, patched_manager):
- """An inherited built-in supplies the shape, so the plugin's 60 s default never applies."""
- from agent.auxiliary_client import _get_auxiliary_task_config
-
- _register(patched_manager, key="plug_aux", inherit_from="mcp")
-
- cfg = _get_auxiliary_task_config("plug_aux")
- assert cfg["timeout"] == 30 # DEFAULT_CONFIG["auxiliary"]["mcp"], not 60
- assert cfg["provider"] == "auto"
- assert cfg["extra_body"] == {}
- # Keys only the built-in block has survive the merge.
- assert cfg["reasoning_effort"] == ""
+def _set_aux(**blocks):
+ from hermes_cli.config import load_config, save_config
+ cfg = load_config()
+ cfg.setdefault("auxiliary", {}).update(blocks)
+ save_config(cfg)
-def test_plugin_defaults_override_inherited_base(aux_home, patched_manager):
- from agent.auxiliary_client import _get_auxiliary_task_config
- _register(patched_manager, key="plug_aux", inherit_from="mcp",
- defaults={"timeout": 90, "model": "vendor/plugin"})
+def test_inheriting_task_follows_base_until_pinned(aux_home, patched_manager):
+ from agent.auxiliary_client import _get_auxiliary_task_config as resolve
- cfg = _get_auxiliary_task_config("plug_aux")
- assert cfg["timeout"] == 90
- assert cfg["model"] == "vendor/plugin"
- assert cfg["provider"] == "auto" # untouched keys still come from the base
+ _register(patched_manager, "plug_aux", inherit_from="compression", defaults={"timeout": 90})
+ _set_aux(compression={"provider": "openrouter", "model": "vendor/a", "base_url": "https://base.example",
+ "api_key": "base-key"})
+ got = resolve("plug_aux")
+ assert (got["provider"], got["model"], got["base_url"]) == ("openrouter", "vendor/a", "https://base.example")
+ assert got["timeout"] == 90 # plugin default layers over the base
+ # Read time, not registration time: a base change propagates with no re-registration.
+ _set_aux(compression={"provider": "openrouter", "model": "vendor/b"})
+ assert resolve("plug_aux")["model"] == "vendor/b"
-def test_user_config_overrides_base_and_plugin_defaults(aux_home, patched_manager):
- from hermes_cli.config import load_config, save_config
- from agent.auxiliary_client import _get_auxiliary_task_config
+ # What the picker / dashboard "reset to auto" persist means "no preference": keep following.
+ _set_aux(plug_aux={"provider": "auto", "model": "", "base_url": "", "api_key": "",
+ "reasoning_effort": "", "timeout": 5})
+ got = resolve("plug_aux")
+ assert (got["provider"], got["model"], got["timeout"]) == ("openrouter", "vendor/b", 5)
- _register(patched_manager, key="plug_aux", inherit_from="mcp",
- defaults={"timeout": 90, "model": "vendor/plugin"})
+ # An explicit pin wins as a whole route: the base's endpoint/key never leak into it.
+ _set_aux(compression={"provider": "custom", "model": "vendor/b", "base_url": "https://base.example",
+ "api_key": "base-key"},
+ plug_aux={"provider": "anthropic", "model": "claude-x", "base_url": "", "api_key": ""})
+ got = resolve("plug_aux")
+ assert (got["provider"], got["model"]) == ("anthropic", "claude-x")
+ assert not got.get("base_url") and not got.get("api_key")
- cfg = load_config()
- cfg.setdefault("auxiliary", {})["plug_aux"] = {"timeout": 5, "model": "vendor/user"}
- save_config(cfg)
- merged = _get_auxiliary_task_config("plug_aux")
- assert merged["timeout"] == 5 # user beats plugin default and the base
- assert merged["model"] == "vendor/user"
- assert merged["provider"] == "auto" # base still fills what nobody set
-
-
-def test_inherit_from_another_plugin_task(aux_home, patched_manager):
- from agent.auxiliary_client import _get_auxiliary_task_config
[email protected]("bad", ["no_such_task", "plug_aux", ""])
+def test_bad_inherit_from_warns_and_registers_without_inheritance(aux_home, patched_manager, caplog, bad):
+ import logging
- _register(patched_manager, key="plug_base", inherit_from="mcp")
- _register(patched_manager, key="plug_child", inherit_from="plug_base",
- defaults={"timeout": 45})
+ from agent.auxiliary_client import _get_auxiliary_task_config as resolve
- assert _get_auxiliary_task_config("plug_child")["timeout"] == 45
- assert _get_auxiliary_task_config("plug_child")["reasoning_effort"] == ""
+ with caplog.at_level(logging.WARNING, logger="hermes_cli.plugins"):
+ _register(patched_manager, "plug_aux", inherit_from=bad)
+ assert "ignoring inherit_from" in caplog.text
+ assert patched_manager._aux_tasks["plug_aux"]["inherit_from"] is None
+ assert resolve("plug_aux")["timeout"] == 60 # the fixed non-inheriting shape
def test_inheritance_cycle_does_not_recurse(aux_home, patched_manager, caplog):
- """A hand-edited registry with a cycle must warn and fall back, not blow the stack."""
+ """Same-owner re-registration can close a loop; reads must warn and cut it, not blow the stack."""
import logging
- from agent.auxiliary_client import _get_auxiliary_task_config
+ from agent.auxiliary_client import _get_auxiliary_task_config as resolve
- _register(patched_manager, key="plug_a", inherit_from="mcp", defaults={"timeout": 90})
- _register(patched_manager, key="plug_b", inherit_from="plug_a")
- patched_manager._aux_tasks["plug_a"]["inherit_from"] = "plug_b" # force the cycle
+ _register(patched_manager, "plug_a", inherit_from="mcp", defaults={"timeout": 90})
+ _register(patched_manager, "plug_b", inherit_from="plug_a")
+ _register(patched_manager, "plug_a", inherit_from="plug_b", defaults={"timeout": 90})
with caplog.at_level(logging.WARNING, logger="agent.auxiliary_client"):
- merged = _get_auxiliary_task_config("plug_a")
-
- # Cycle cut at plug_a: its own defaults, no inherited base.
- assert merged["timeout"] == 90
- assert "reasoning_effort" not in merged
+ assert resolve("plug_a")["timeout"] == 90
assert "circular inherit_from" in caplog.text
-
-
-# ── inherit_from survives the config writers (empty-string placeholders) ─────
-
-
-def test_inherited_base_survives_picker_written_empty_strings(aux_home, patched_manager):
- """``_save_aux_choice`` writes model/base_url/api_key as "" for a plugin task; those
- placeholders must not shadow the inherited base (#review: Enough1122)."""
- from hermes_cli.config import load_config, save_config
- from agent.auxiliary_client import _get_auxiliary_task_config
-
- _register(patched_manager, key="plug_aux", inherit_from="mcp")
- cfg = load_config()
- cfg.setdefault("auxiliary", {})["mcp"] = {
- "provider": "openrouter", "model": "vendor/base-model", "base_url": "https://x"}
- # Exactly what _save_aux_choice persists after the operator touches the task.
- cfg["auxiliary"]["plug_aux"] = {"provider": "auto", "model": "", "base_url": "",
- "api_key": "", "reasoning_effort": ""}
- save_config(cfg)
-
- merged = _get_auxiliary_task_config("plug_aux")
- assert merged["model"] == "vendor/base-model"
- assert merged["base_url"] == "https://x"
- assert merged["provider"] == "auto" # an explicit "auto" is a real choice, kept
-
-
-def test_reset_to_auto_empty_strings_do_not_kill_inheritance(aux_home, patched_manager):
- """After "Reset all to auto" the task still has to run on the base's provider."""
- from hermes_cli.config import load_config, save_config
- from agent.auxiliary_client import _get_auxiliary_task_config
-
- _register(patched_manager, key="plug_aux", inherit_from="mcp")
- cfg = load_config()
- cfg.setdefault("auxiliary", {})["mcp"] = {
- "provider": "openrouter", "model": "vendor/base-model", "base_url": "https://x"}
- cfg["auxiliary"]["plug_aux"] = {"provider": "auto", "model": "", "base_url": "",
- "api_key": "", "reasoning_effort": ""}
- save_config(cfg)
-
- merged = _get_auxiliary_task_config("plug_aux")
- assert merged["model"] == "vendor/base-model"
- assert merged["base_url"] == "https://x"
-
-
-def test_operator_tuned_keys_still_win_over_inherited_base(aux_home, patched_manager):
- """Pruning "" must not prune real values: a set timeout/model still beats the base."""
- from hermes_cli.config import load_config, save_config
- from agent.auxiliary_client import _get_auxiliary_task_config
-
- _register(patched_manager, key="plug_aux", inherit_from="mcp")
- cfg = load_config()
- cfg.setdefault("auxiliary", {})["mcp"] = {"provider": "openrouter", "timeout": 30}
- cfg["auxiliary"]["plug_aux"] = {"model": "vendor/user", "timeout": 5, "base_url": ""}
- save_config(cfg)
-
- merged = _get_auxiliary_task_config("plug_aux")
- assert merged["model"] == "vendor/user"
- assert merged["timeout"] == 5
- assert merged["provider"] == "openrouter" # unset key still inherited
-
-
-def test_reasoning_effort_false_is_kept_not_pruned(aux_home, patched_manager):
- """``reasoning_effort: false`` means "no reasoning"; it is not an unset placeholder."""
- from hermes_cli.config import load_config, save_config
- from agent.auxiliary_client import _get_auxiliary_task_config
-
- _register(patched_manager, key="plug_aux", inherit_from="mcp")
- cfg = load_config()
- cfg.setdefault("auxiliary", {})["mcp"] = {"reasoning_effort": "high"}
- cfg["auxiliary"]["plug_aux"] = {"reasoning_effort": False}
- save_config(cfg)
-
- assert _get_auxiliary_task_config("plug_aux")["reasoning_effort"] is False
-
-
-def test_non_inherited_plugin_task_keeps_placeholder_empties(aux_home, patched_manager):
- """Pruning is scoped to tasks that actually inherit; other plugins keep today's behaviour."""
- from hermes_cli.config import load_config, save_config
- from agent.auxiliary_client import _get_auxiliary_task_config
-
- _register(patched_manager, key="plug_aux")
- cfg = load_config()
- cfg["auxiliary"]["plug_aux"] = {"model": ""}
- save_config(cfg)
-
- merged = _get_auxiliary_task_config("plug_aux")
- assert merged["model"] == "" # key still present with its empty value
- assert merged["timeout"] == 60
-
-
-# ── inherit_from validation ─────────────────────────────────────────────────
-
-
-def test_unknown_inherit_from_raises(patched_manager):
- with pytest.raises(ValueError, match="unknown task"):
- _register(patched_manager, key="plug_aux", inherit_from="not_a_task")
-
-
-def test_self_inherit_raises(patched_manager):
- with pytest.raises(ValueError, match="itself"):
- _register(patched_manager, key="plug_aux", inherit_from="plug_aux")
-
-
-def test_empty_inherit_from_raises(patched_manager):
- with pytest.raises(ValueError, match="inherit_from"):
- _register(patched_manager, key="plug_aux", inherit_from="")
-
-
-def test_registration_without_inherit_from_keeps_fixed_shape(aux_home, patched_manager):
- """No inherit_from → today's fixed-shape defaults and no inheritance at read time."""
- from agent.auxiliary_client import _get_auxiliary_task_config
-
- reg = _register(patched_manager, key="plug_aux")
- entry = patched_manager._aux_tasks[reg.key]
- assert entry["inherit_from"] is None
- assert entry["defaults"] == {"provider": "auto", "model": "", "base_url": "", "api_key": "",
- "timeout": 60, "extra_body": {}}
- assert _get_auxiliary_task_config("plug_aux") == entry["defaults"]
diff --git a/website/docs/developer-guide/plugin-llm-access.md b/website/docs/developer-guide/plugin-llm-access.md
index deef6736b03..e4a8063bcc3 100644
--- a/website/docs/developer-guide/plugin-llm-access.md
+++ b/website/docs/developer-guide/plugin-llm-access.md
@@ -329,9 +329,12 @@ invocation. `allow_task_override: true` is an explicit operator grant for
using Hermes built-in auxiliary tasks; it does not permit another plugin's
tasks. Omit `task=` (or use `"auto"`) to keep the active main provider/model.
-`inherit_from` names a built-in or already-registered auxiliary task
-whose effective configuration becomes the base for your task, resolved at
-read time so the task tracks the base's current settings:
+#### Inheriting a built-in slot
+
+`inherit_from` names a built-in auxiliary task (`compression`, `mcp`,
+`vision`, ...) or a task your plugin (or one loaded before it) already
+registered. Your task then uses that slot's model until the operator pins
+one on your task directly:
```python
def register(ctx):
@@ -339,13 +342,29 @@ def register(ctx):
"classifier",
display_name="Classifier",
description="Classify input.",
- inherit_from="mcp", # start from the mcp aux block
+ inherit_from="compression", # use whatever compression uses...
defaults={"timeout": 90}, # ...but give slow classifiers more room
)
```
-Precedence is the inherited base, then the plugin's `defaults`, then
-operator configuration in `auxiliary.<task>`.
+- **Resolved on every read, not copied at registration.** Change
+ `auxiliary.compression` (CLI, dashboard, Desktop, or `config.yaml`) and the
+ classifier follows on its next call, per profile.
+- **Precedence:** the inherited base, then the plugin's `defaults`, then the
+ operator's `auxiliary.<task>` block.
+- **An operator pin wins as a whole route.** Once `auxiliary.classifier` sets a
+ non-`auto` provider, a model or a `base_url`, the provider, model, endpoint,
+ key and reasoning effort all come from that block; nothing from the base's
+ route is mixed in. `provider: auto` with an empty model is "no preference",
+ so the task keeps following its base (that is what "Reset all" and Desktop's
+ *Follow &lt;base&gt;* button write).
+- **A bad base never breaks the plugin.** An unknown or self-referential
+ `inherit_from` logs a warning and the task registers without inheritance.
+
+The Models settings show an unpinned inheriting task as
+*inherits Compression · &lt;provider · model&gt;*, and
+`GET /api/model/auxiliary` returns `inherit_from` plus an `effective`
+`{provider, model, base_url}` on such rows.
### Result attributes