feat(hints): emit fuzzy-strategy hint when neighbors results carry brownfield/fallback edges#150
Merged
Merged
Conversation
Add FUZZY_STRATEGY_SET to the ontology and extend generate_hints so neighbors responses with fallback resolution strategies surface a single meta-tier advisory hint; document behavior and cover UC6–UC17 plus round-trip. Co-authored-by: Cursor <cursoragent@cursor.com>
HumanBean17
added a commit
that referenced
this pull request
May 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FUZZY_STRATEGY_SETtojava_ontology.py(locked brownfield/fallback strategies perpropose/HINTS-V2-PROPOSE.md§3.2).generate_hints("neighbors", …)to emit one meta-tierTPL_NEIGHBORS_FUZZY_STRATEGYhint when any result edge hasattrs.strategyin that set; empty-result hint (UC11) unchanged.attrs.strategyon theneighborsMCP tool description.Plan:
plans/PLAN-HINTS-V2.md§ PR-B. Builds on merged PR-A (#149).No ontology version bump or re-index — query-time MCP surface only.
Test plan
.venv/bin/ruff check ..venv/bin/python -m pytest tests/test_mcp_hints.py -v -k "fuzzy_strategy or neighbors_empty or neighbors_declares_no_strategy or neighbors_multi_origin or neighbors_layer_a_meta".venv/bin/python -m pytest tests -v(523 passed; ensure.venv/binis onPATHfor CLI tests)Made with Cursor