Auto-reroute to requirement-check only matches aLoRA, not LoRA or prompt
I maintainer di solito rispondono entro 3 giorni
@ajbozarth ci sta già lavorando.
Dal 19/10/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
#1654 makes requirement-check resolvable to a hand-authored prompt and formalizes the resolution walk aLoRA→LoRA→prompt→model-agnostic any. The req().validate() auto-reroute still recognizes an aLoRA only. Should it broaden to use any resolved realization — a LoRA or a prompt — instead of falling back to LLM-as-a-judge?
Today
With default_to_constraint_checking_alora enabled, req().validate() reroutes to the requirement-check adapter via _find_adapter(adapter_name, ("alora",)) — aLoRA only; anything else falls to LLM-as-a-judge. This is intentional: the gate documents that a LoRA-only adapter is unreachable by the default search, with an explicit adapter_types override as the escape hatch. LoRA is reachable only via that override; a prompt isn't a catalog adapter_type, so it is unreachable entirely.
What #1654 changes
resolve_adapter now walks aLoRA→LoRA→prompt→any, so the direct path (core.requirement_check(...)) already uses a LoRA or a hand-authored prompt when no aLoRA exists for the model. The auto-reroute is unchanged by #1654 and still sees only aLoRA — so on a model whose requirement-check resolves to a prompt, intrinsic helpers run the prompt while validate() on the same model runs LLM-as-a-judge (documented in lora-and-alora-adapters.md by #1654). Not a regression (those models had no adapter before), but a split worth deciding on.
The decision
Two parts, because the realizations are not equivalent in cost:
- Should the auto-reroute prefer a resolved LoRA — a trained adapter it skips by default today?
- Should it prefer a resolved prompt over LLM-as-a-judge?
- aLoRA activates cheaply on the already-loaded base model — cheap enough to auto-use on every check, which is why the scope is aLoRA-only.
- LoRA is a heavier trained adapter.
- A prompt is base-model prompting — the same class as the LLM-as-a-judge fallback. So (2) reduces to: is the library's purpose-authored requirement-check prompt (with its constrained response schema) better than generic LLM-as-a-judge? Both prompt the base model (cf. #1707).
If we broaden
The gate's existence check is aLoRA-type-filtered and lookup-only — _find_adapter returns only already-registered adapters, and the reroute never calls resolve_adapter. Broadening would require: accepting the other realizations (a prompt is not a catalog adapter_type today), and deciding whether the gate should call resolve_adapter — registering a winner even in a validate()-only session — or keep the current "only if already registered" contract. Generation (_generate_from_intrinsic) already dispatches any realization, so the change is confined to the gate.
Relationship to the sibling issue
This is one of two places where the pre-prompt, adapter_type-keyed selection model struggles with the typeless prompt realization. This issue is the gate side: it filters (("alora",)), so it loses the prompt. The sibling (#1750) is the generation-path side: it doesn't filter (passes None) so the prompt stays reachable, at the cost of the caller's restriction. Same root incompatibility, opposite symptom. They are independent fixes but share the underlying design question (how a typeless realization participates in type-keyed selection), so they may be worth resolving together in one PR.
Scope
LocalHF only (the gate lives in _generate_from_context). OpenAI/Ollama prompt fallback is a separate follow-up (#1748).
Related
- #1654 — adds the prompt realization and the aLoRA→LoRA→prompt→
anywalk. - #993 — the prompt-fallback feature (closed by #1654).
- #1707 — requirement-check aLoRA verdict quality (overlaps the prompt-vs-LLM-judge comparison).
- #1680 — which adapter reality produced a score.
- Sibling: Intrinsic caller-
adapter_types(#1750).
Code
reroute gate huggingface.py::_generate_from_context; _find_adapter in adapter.py (lookup-only); direct-path resolve in mellea/stdlib/components/intrinsic/_util.py.
- Lingua principale
- Python
- Stelle
- 1.8k
- Fork
- 161
- Merge medio
- 4g 3h
- PR unite (30g)
- 45
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di generative-computing/mellea
-
bug: `mellea.plugins.builtin_debug.generation.log_generation_post_call` shows model as unknownApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
generative-computing/mellea#1864 ·
I maintainer di solito rispondono entro 3 giorni
-
bug: instruct() and react() replay tool-call turns without tool_callsForse già presa @simonyang08 l’ha presa 20 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
generative-computing/mellea#1784 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
Silently mangled docstrings: lone backslash line-continuations in non-raw docstrings collapse command examplesForse già presa @madhusudhan1260 l’ha presa 18 giorni fa. Apertagood first issue p2
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
generative-computing/mellea#1780 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 3 giorni
-
area/telemetry enhancement p2
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
generative-computing/mellea#1210 ·
I maintainer di solito rispondono entro 3 giorni
-
Add requirement priorityApertaarea/requirement area/stdlib enhancement p2
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
generative-computing/mellea#31 · 2 commenti ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di generative-computing/mellea
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
[Maintainer] task area:visualizer
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
RailtownAI/railtracks#1824 ·
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
apache/datafusion#27688 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
heasarc/heasarc-tutorials#317 ·
-
bug good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
mloda-ai/mloda-registry#1664 ·
I maintainer di solito rispondono entro 1 giorno