test(8249): the write-path sync-once check kept once, in the hook's own file
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 14s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / Python tests (push) Successful in 2m22s
CI & Build / integration (push) Successful in 2m50s
CI & Build / Build & push image (push) Successful in 17s

test_ledger_references_not_silence::test_the_sync_class_still_shows_only_once
checked a subset of test_write_path_trigger::test_sync_dedup_silences_a_sync_nudge_already_shown
(sync_note_ids empty, the id absent from the context); the covering test also
checks the semantic arm excludes it. Its reasoning (why the sync nudge is the
one class shown only once) moves into the covering test's docstring. The
helper's now-unused sync_exclude parameter goes with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-01 19:53:03 -05:00
co-authored by Claude Opus 5.5
parent 094089e374
commit 4caa7bae4b
2 changed files with 7 additions and 18 deletions
+6 -1
View File
@@ -164,7 +164,12 @@ async def test_reuse_dedup_never_suppresses_the_sync_nudge():
async def test_sync_dedup_silences_a_sync_nudge_already_shown():
"""Once the session has been told "snippet #12 records this file", every
further edit of the same file stays quiet about it — on every arm: the
directory query and the semantic arm would both re-surface it otherwise."""
directory query and the semantic arm would both re-surface it otherwise.
This is the deliberate exception to "a repeat is shown again and marked".
Repeated on every write to the same file, the nudge is nagging, and unlike
a reuse suggestion it is not a claim whose relevance can return: it either
got acted on or it did not."""
from grimoire.services import plugin_context as pc
async def _listing(uid, **kw):