What problem does it solve? A2MC's ReasoningModule queries a RAG/GraphRAG index before every Claude API call, but each onboarded model (FATES, EcoSIM, PFLOTRAN) has its own build script with incompatible flags, and rebuilds silently fail in several ways: the wiki loader probes the wrong directory, incremental adds skip changed content, and the chroma.sqlite3 skip-worktree flag means git add stages nothing so a rebuilt index is never committed. ## Core Features & Use Cases - Per-model build routing: Selects the correct builder (build_rag_index.py, build_ecosim_rag.py, build_pflotran_rag.py) with its exact flag set, since flags like --graph-only and --allow-shrink are not portable across models. - Rebuild mode decision tree: Distinguishes graph-only rebuilds after curated YAML edits, full rebuilds after CDL changes, and Recipe 1 symlink redirection when bumping the wiki to a new commit-pinned tree. - Verification and commit procedure: Runs model-routed golden-query and seed-coverage checks, then un-skips the skip-worktree bit on chroma.sqlite3 before committing so the new vector index actually lands in git. - Use Case: After editing curated_relationships.yaml for the PFLOTRAN profile, run a full rebuild (PFLOTRAN has no --graph-only), verify with check_ecosim_rag_queries.py, and commit the index with the skip-worktree workaround. ## Quick Start Ask the agent to rebuild the RAG index for your model profile, for example by saying "rebuild the EcoSIM RAG index and commit the result".