From 2f93a4f7b5c7740b5c888f4eab155deb21661bf9 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Tue, 24 Nov 2026 19:24:34 -0500 Subject: [PATCH] test(7835): a record past the write path's margin is pinned to the pointer, not to silence Co-Authored-By: Claude Opus 5.5 --- tests/test_write_path_trigger.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_write_path_trigger.py b/tests/test_write_path_trigger.py index e378ae40..4d6b936a 100644 --- a/tests/test_write_path_trigger.py +++ b/tests/test_write_path_trigger.py @@ -271,7 +271,9 @@ async def test_margin_gate_applies_to_the_semantic_arm(): patch.object(pc, "owner_names_for", AsyncMock(return_value={})): out = await pc.build_write_path_hint(1, "src/x.py", code=REAL_CODE) assert out["note_ids"] == [11, 22] - assert "#33" not in out["context"] + # Past the margin: no line of its own, only its id in the pointer. + assert "#33 [" not in out["context"] + assert "not shown: snippets #33 (`get_snippet(id)`)" in out["context"] @pytest.mark.asyncio