Skip to content

Attribute local reads after related grep and edit context - #1348

Merged
zlareb1 merged 3 commits into
mainfrom
fix/plugin-related-source-attribution
Nov 24, 2026
Merged

zlareb1 merged 3 commits into
mainfrom
fix/plugin-related-source-attribution

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Related: #1346

Changelog category

  • Bug Fix (user-visible misbehavior in a release)

Changelog entry

The plugins record indexed paths returned by related grep and edit-context lookups for local read and grep attribution.

Why

A related grep response can carry source under its related block while the exact-match list is empty. The capture hook read only the exact-match list. It also skipped edit-context responses that carried a trace ID. This left local reads and grep without the lookup that had returned their source.

Scope and risk

Both plugin copies read related grep paths and recognize traced edit-context results, including indexed test examples. Local reads credit the most recent lookup that returned the path. The hook keeps its existing limits, deduplication, and outcome vocabulary. Both plugin manifests advance together.

Compatibility, rollout and rollback

  • Wire changes. None.
  • Operator steps. None. Installing the updated plugin enables the attribution.
  • Rollback. Revert the hook and manifest changes together.

Tests

Replayed retained related grep responses through both plugin copies and verified the indexed paths were present. Ran both capture hooks with related grep and edit-context responses. Each stored the trace and returned paths. A subsequent read credited the latest matching trace. Plugin validation, mirror generation, and Node syntax checks passed.

AI assistance in the code

  • AI-generated by Codex. Checked both capture entry points and the generated mirror.

Checklist

  • Synced the plugins and bumped both manifests.
  • Commits are signed off.

Keep returned paths on the trace so outcome events can identify their source.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loom-docs Ready Ready Preview Nov 24, 2026 9:35pm UTC
loom-telemetry Ready Ready Preview Nov 24, 2026 9:35pm UTC

Request Review

A later local test read can use the path returned in a definition example.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Later exact search results retain read attribution after related grep.

Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
@zlareb1
zlareb1 merged commit 0de58bb into main Nov 24, 2026
71 of 74 checks passed
@zlareb1 zlareb1 mentioned this pull request Nov 24, 2026
2 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant