Triggers & routing
- Trigger: keyword expansion, synonyms, exclusions, queries.md, keyword expansion, synonyms, exclusion terms.
- Use when: Insufficient search coverage/excessive noise, or many topic aliases, requiring systematic expansion and convergence of search terms.
- Skip if:
queries.mdCoverage can already be reliably detected (no need to expand scope and cause subsequent cost explosion). - Network: none.
- Guardrail: Keep the number of queries controllable; clarify exclusions; avoid "infinite expansion".
Goal
- Improve recall/precision of
queries.mdwithout drifting scope.
Inputs
queries.md- Optional:
DECISIONS.mdscope notes
Outputs
- Updated
queries.md
Procedure (MUST FOLLOW)
- Extract the current topic scope and exclusions.
- Propose keyword expansions (synonyms, related terms, acronyms) and add explicit exclusions for common false positives.
- Update
queries.mdwith a clear “why” note for each change.
Acceptance criteria (MUST CHECK)
-
queries.mdcontains updated keywords and excludes. - Changes do not contradict
DECISIONS.mdscope constraints.
Troubleshooting
Issue: keyword expansion causes scope drift
Fix:
- Re-read
DECISIONS.mdscope notes and add explicit exclusions inqueries.mdfor common false positives.
Issue: query count explodes and becomes unmanageable
Fix:
- Keep a small set of high-signal queries; merge synonyms into the same query where possible instead of adding many near-duplicates.