feat(hints): v4 success-path neighbors road signs (N1a–N7)#175
Merged
Conversation
Emit output-level follow-up hints on non-empty neighbors at offset 0 when edge type and homogeneous endpoints match the v4 catalog; N1a/N1b reuse describe dot-key templates on type origins. Apply dot-key filtering to empty structural hints only so success-path DECLARES.* strings are kept. Co-authored-by: Cursor <cursoragent@cursor.com>
Owner
Author
Review summaryVerdict: Approve — matches locked PR-A / What looks good
Accepted tradeoffs (documented in propose)
Minor nits (non-blocking)
No blockers from my side — nice work on the filter split and the round-trip test. |
Add regression tests for multi-edge-type silence, method-origin N1a/N1b suppression, and neighbors-only 120-char drop on long origin_id; document describe vs neighbors cap difference in _append_neighbors_success_hint. Co-authored-by: Cursor <cursoragent@cursor.com>
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
Implements PR-HINTS-V4-A (
plans/PLAN-HINTS-V4.md§ PR-A) perpropose/HINTS-V4-SUCCESS-PATH-PROPOSE.md(locked).neighborssuccess-path catalog N1a–N7 inmcp_hints.py:neighbors_success_hints()+ N2–N7 templates; N1a/N1b aliasTPL_DESCRIBE_TYPE_*_VIA_MEMBERSverbatim with{id}= echoedorigin_id.success, non-emptyresults,offset == 0, exactly onerequested_edge_typesentry, homogeneousotherendpoints, 120-char cap per rendered string._filter_neighbors_dotkey_hintsapplies to empty structural pairs only; success-path N1a/N1b may emitDECLARES.DECLARES_CLIENT/DECLARES.EXPOSES.DECLARESout page holds — noedge_summarygate (same as propose Open Q1).mcp_v2.pychanges.Test plan
.venv/bin/ruff check ..venv/bin/python -m pytest tests/test_mcp_hints.py -v -k "hints_neighbors or hints_all_v4 or hv20 or v2_declares_success".venv/bin/python -m pytest tests -v(with.venv/binonPATHfor CLI entry point)test_hints_neighbors_v2_declares_success_emits_dot_key_clientstest_hints_neighbors_success_may_emit_declares_dot_keysaddedMade with Cursor