Context:

Symphonyโ€™s frontend intelligence benefits from layout-based component indexing. However, to empower backend-aware agents (e.g., Fixer, Analyzer, Planner), we need a backend indexing system that provides structured access to the core logic (classes, methods, functions). Backend codebases often include thousands of elements, and naively indexing everything will create massive, inefficient, and unhelpful index files.


โ— Problem Without Selective Indexing

If we attempt to index every class and function without prioritization:


โœ… Suggested Solution: Property-Based Backend Indexing

Introduce a backend-index.json file that selectively includes backend elements based on heuristics and dynamic analysis, giving priority to code segments with high potential for bugs, regressions, or architectural improvement.


Indexed Elements May Include:

Each item is scored or flagged using quality, complexity, and stability metrics.