diff --git a/src/grimoire/services/plugin_context.py b/src/grimoire/services/plugin_context.py index cf0bbcc2..5f9f9098 100644 --- a/src/grimoire/services/plugin_context.py +++ b/src/grimoire/services/plugin_context.py @@ -1891,12 +1891,13 @@ async def build_write_path_hint( lines.append(_copy_line(copies)) parts.append(hook_payload.Part(text=lines[-1])) - # Split by arm, which is the whole reason this table exists. The place arm - # carries no score and so has no home in retrieval_logs, yet it fires on - # the strongest possible claim ("there is already a canonical helper in - # this exact file") and must be measurable. The sync class gets its own - # tag: its pull-through rate is the number that says whether edit-time - # record-sync actually happens. + # Split by arm, which is the whole reason this table exists. The lookups + # by place carry no score and so have no home in retrieval_logs, yet they + # must be measurable: the sync class makes the strongest claim here ("this + # snippet records the file you are changing"), and its pull-through rate + # is the number that says whether edit-time record-sync actually happens. + # The place arm (snippets beside the file, named by id) and the linked + # issues get their own tags beside it. by_arm: dict[str, list[int]] = {} if sync_note_ids: by_arm["write_path_sync"] = list(sync_note_ids) diff --git a/src/grimoire/services/retrieval_registry.py b/src/grimoire/services/retrieval_registry.py index 51d249a1..0dae1863 100644 --- a/src/grimoire/services/retrieval_registry.py +++ b/src/grimoire/services/retrieval_registry.py @@ -176,11 +176,12 @@ POINTS: dict[str, Point] = dict([ # ── The write-path menu's own arms ─────────────────────────────────── # - # These are NOT in retrieval_logs. The place arm carries no score and so - # has no row there at all; declaring it here is what lets the arm making - # the strongest possible claim, "there is already a canonical helper in - # this exact file", be measured. - _p("write_path_place", AMBIENT, "a snippet already placed in this very file"), + # These are NOT in retrieval_logs. The lookups by place carry no score and + # so have no row there at all; declaring them here is what lets them be + # measured, the sync class ("this snippet records the file you are + # changing") above all. + _p("write_path_place", AMBIENT, + "a snippet recorded beside the file being written, named by id"), _p("write_path_linked", AMBIENT, "an issue that names the file being written, or is open in its area"), _p("write_path_semantic", AMBIENT, "prior art matched by meaning"),