mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-11-27 23:58:47 +00:00
The tag index is an optional derived index. Incremental updates already
handle a failure that way: _upsert_tag_nodes and _delete_tag_paths swallow
it, log it, and mark the index unhealthy, deliberately "without allowing
optional-index failures to block other indexes".
The explicit rebuild path did the opposite: it turned the same False into a
RuntimeError, which failed every reindex(scope="all") call and discarded the
keyword and embedding rebuilds that had already completed.
The rebuild is now wrapped rather than inspected only through its return
value. require_tag_index() runs before _rebuild_tag_index reaches its own
try, so an unavailable tag-index dependency raises from there and a bare
return check would let it escape; the wrapper keeps that case inside the
optional index as well.
On failure the store returns a "failed" marker instead, and the step
summary surfaces it, so a degraded tag index stays visible without hiding
the indexes that succeeded.
That marker has to be rendered for flat single-index reports too. A
scope="tag" rebuild returns {"indexed": 0, "scope": "tag", "failed": true}
with no nested entries, so a summary built only from nested dictionaries
drops it and answers "Reindexed scope=tag: 0 indexed" -- indistinguishable
from a successful empty rebuild. MCP callers read only the answer and the
CLI hides metadata, so they had no way to tell a failed repair from an
empty one.
The embedding rebuild keeps raising: it is not an optional index, and an
incomplete vector index must not be reported as success.
Refs agentscope-ai/QwenPaw#8863
Refs agentscope-ai/QwenPaw#8580
|
||
|---|---|---|
| .. | ||
| agent_inbox | ||
| agent_wrapper | ||
| anthropic_relay | ||
| as_decision_model | ||
| as_embedding | ||
| as_llm | ||
| asr | ||
| client | ||
| codex_app_server | ||
| embedding_store | ||
| file_catalog | ||
| file_chunker | ||
| file_graph | ||
| file_store | ||
| job | ||
| keyword_index | ||
| outbound_proxy | ||
| proactive_manager | ||
| proactive_runtime | ||
| service | ||
| tag_index | ||
| tokenizer | ||
| tts | ||
| __init__.py | ||
| base.py | ||