Skip to content

feat(hints): emit fuzzy-strategy hint when neighbors results carry brownfield/fallback edges#150

Merged
HumanBean17 merged 1 commit into
masterfrom
feat/hints-v2-neighbors-fuzzy
May 16, 2026
Merged

feat(hints): emit fuzzy-strategy hint when neighbors results carry brownfield/fallback edges#150
HumanBean17 merged 1 commit into
masterfrom
feat/hints-v2-neighbors-fuzzy

Conversation

@HumanBean17
Copy link
Copy Markdown
Owner

Summary

  • Add FUZZY_STRATEGY_SET to java_ontology.py (locked brownfield/fallback strategies per propose/HINTS-V2-PROPOSE.md §3.2).
  • Extend generate_hints("neighbors", …) to emit one meta-tier TPL_NEIGHBORS_FUZZY_STRATEGY hint when any result edge has attrs.strategy in that set; empty-result hint (UC11) unchanged.
  • Document neighbors fuzzy-strategy behavior in README and note attrs.strategy on the neighbors MCP 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/bin is on PATH for CLI tests)

Made with Cursor

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 HumanBean17 merged commit 80baaef into master May 16, 2026
1 check passed
HumanBean17 added a commit that referenced this pull request May 16, 2026
Hints v2 shipped in #148/#149/#150. Per repo convention, propose and
plans move to completed/ after the code lands.
@HumanBean17 HumanBean17 deleted the feat/hints-v2-neighbors-fuzzy branch May 23, 2026 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant