You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
autobot-infrastructure/shared/tools/index_documentation.py is an orphaned pre-#15845 duplicate of doc_indexer.py #16956
autobot-infrastructure/shared/tools/index_documentation.py (927 lines) is a standalone, pre-consolidation CLI indexer -- its own argparse, its own ChromaDBIndexer class, its own hash-cache handling, its own chunking calls. It is not imported or executed by anything: a repo-wide grep for its path turns up only two historical docstring mentions (autobot-backend/services/knowledge/doc_indexer.py's own "Extracted from ..." note, and a citation in autobot_shared/doc_chunking.py), no functional references.
The doc-sync git hook resolves INDEX_SCRIPT="$PROJECT_ROOT/tools/index_documentation.py" -- the top-level tools/index_documentation.py (98 lines), added by #15845 as a thin CLI entry point that calls services.knowledge.doc_indexer.get_doc_indexer_service().index_all(). That is the actually-consolidated, actually-executed service (doc_indexer.py's own docstring: "Issue #1385: Consolidated documentation indexing... Extracted from autobot-infrastructure/shared/tools/index_documentation.py and adapted for service use").
So #1385's extraction happened, and #15845 independently gave the hook a working entry point pointing at the new service -- but nobody deleted or redirected the old standalone file it was extracted from. It has sat dead since.
docs/developer/ or contributor searches for "how does doc indexing work" can land on either file with no signal that one is inert.
Fix
Either:
Delete autobot-infrastructure/shared/tools/index_documentation.py (confirm zero references first, including CI/docs/README mentions of the old path), or
Option 1 is expected to be correct based on the repo-wide grep above, but re-verify before deleting -- this issue does not include that verification pass.
Found during #16934 (worktree doc-index contamination fix), out of scope for that PR.
Covered by the queued #18129 branch (issue-18129-doc-indexers, local, in the PR queue): autobot-infrastructure/shared/tools/index_documentation.py becomes a thin runpy shim over the canonical DocIndexerService CLI (tools/index_documentation.py), keeping the documented command and flags. Its capabilities (--tier, --category, --dry-run, --output) are promoted into the service. This issue should close with that PR; recorded here so it isn't worked twice.
Activity
mrveiss commentedon Oct 10, 2026
Covered by the queued #18129 branch (
issue-18129-doc-indexers, local, in the PR queue):autobot-infrastructure/shared/tools/index_documentation.pybecomes a thinrunpyshim over the canonicalDocIndexerServiceCLI (tools/index_documentation.py), keeping the documented command and flags. Its capabilities (--tier,--category,--dry-run,--output) are promoted into the service. This issue should close with that PR; recorded here so it isn't worked twice.