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
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _change_batch.py | ||
| _dedup.py | ||
| _ranking.py | ||
| _single_search.py | ||
| _source_format.py | ||
| _threaded_watch.py | ||
| _tool_context.py | ||
| _watch_rules.py | ||
| bm25_search.py | ||
| cleanup_catalog.py | ||
| clear_paths.py | ||
| clear_store.py | ||
| draft.py | ||
| graph_snapshot.py | ||
| init_changes.py | ||
| list_tag_files.py | ||
| list_tags.py | ||
| log_changes.py | ||
| node_search.py | ||
| optimize_index.py | ||
| reindex.py | ||
| search.py | ||
| traverse.py | ||
| update_changes.py | ||
| vector_search.py | ||
| wait_for_paths.py | ||
| watch_changes.py | ||