fix(7832): the edit search tests state notes-by-default, and the plugin version is minted for the static context change
CI & Build / Plugin hooks (push) Successful in 15s
CI & Build / Python lint (push) Successful in 2s
CI & Build / TypeScript typecheck (push) Successful in 35s
CI & Build / Python tests (push) Successful in 2m10s
CI & Build / integration (push) Successful in 2m21s
CI & Build / Build & push image (push) Successful in 33s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 12:21:06 -05:00
co-authored by Claude Opus 5.5
parent 4c69f9c163
commit 7c6b3fbc04
3 changed files with 14 additions and 17 deletions
+5 -7
View File
@@ -247,7 +247,7 @@ async def test_a_failing_location_lookup_does_not_sink_the_hint():
# --- arm 2: by meaning, under the milestone-93 gates -------------------------
@pytest.mark.asyncio
async def test_semantic_arm_is_snippet_only_and_browse_scoped():
async def test_semantic_arm_offers_notes_by_default_and_is_browse_scoped():
from grimoire.services import plugin_context as pc
search = AsyncMock(return_value=[])
with patch.object(pc, "get_writepath_config", AsyncMock(return_value=_cfg())), \
@@ -256,12 +256,10 @@ async def test_semantic_arm_is_snippet_only_and_browse_scoped():
patch.object(pc, "record_retrieval", MagicMock()):
await pc.build_write_path_hint(1, "src/x.py", code=REAL_CODE)
kwargs = search.await_args.kwargs
# Prior art is snippets AND recorded experience — an issue saying "we tried
# this and it broke" belongs here — AND lessons, which are often about a
# code shape. What
# stays out is the open to-do list, which resembles the code and answers
# nothing.
assert kwargs["record_kinds"] == ["note", "snippet", "task:issue"]
# By resemblance an edit is offered notes; snippets and issues reach it
# through where they are recorded (the `work.change` row), lessons
# through their situation, and the open to-do list not at all.
assert kwargs["record_kinds"] == ["note"]
# Nobody asked for this, so it must not reach a one-to-one direct share.
assert kwargs["scope"] == "browse"