Ruby refs report the Vue package as their dynamic influence (component de.h-dv.vue/typescript on a same-file Ruby bind) #359

Closed
opened 2026-10-12 19:05:05 +02:00 by buildagent · 0 comments
Member

Field report (zammad-dev, 2026-10-12, 0.36.1, steady index)

resolution_gaps(lang=ruby, path_glob=lib/h_dv/*) returns dynamic_influence: builtin_only 3904, dynamic_influenced 1044, with components ["de.h-dv.vue/typescript", "de.h-dv.vue/vue"]. These are Ruby files; a .vue component cannot influence them.

Concrete row: find_callees on HDv::Nextcloud.upload_for_ticket! (lib/h_dv/nextcloud.rb:122) resolves client at line 128 via tier1q_rel_samefile, with influence {class: dynamic_influenced, component: "de.h-dv.vue/typescript"}. .detail at lines 132 and 134 is tagged the same way.

Not the same as #355

#355 (v0.37) separates the component handle from its language in the label. Here the attribution itself is wrong: a same-file Ruby bind is marked as influenced by a component that produced no row in that file and no candidate of that bind.

To check

  • How the influence class and deciding component are computed for a bind: crates/indexer/src/influence.rs (dynamic_admit_select) and the per-ref influence columns.
  • Hypothesis (unverified): a candidate-set or name-level join that is not constrained by language, or by the component that actually wrote the candidate rows. One Vue/TS symbol of the same name anywhere in the project would then mark the Ruby ref.
  • The fix must hold for every package pair, not Vue/Ruby only. Test: a Ruby ref whose only candidates are Ruby rows, in a project that also has a same-named TS symbol in a .vue file, must be builtin_only. Run the mutation that drops the constraint.

🤖 Generated with Claude Code

## Field report (zammad-dev, 2026-10-12, 0.36.1, steady index) `resolution_gaps(lang=ruby, path_glob=lib/h_dv/*)` returns `dynamic_influence: builtin_only 3904, dynamic_influenced 1044`, with components `["de.h-dv.vue/typescript", "de.h-dv.vue/vue"]`. These are Ruby files; a `.vue` component cannot influence them. Concrete row: `find_callees` on `HDv::Nextcloud.upload_for_ticket!` (`lib/h_dv/nextcloud.rb:122`) resolves `client` at line 128 via `tier1q_rel_samefile`, with `influence {class: dynamic_influenced, component: "de.h-dv.vue/typescript"}`. `.detail` at lines 132 and 134 is tagged the same way. ## Not the same as #355 #355 (v0.37) separates the component handle from its language in the label. Here the **attribution itself** is wrong: a same-file Ruby bind is marked as influenced by a component that produced no row in that file and no candidate of that bind. ## To check - How the influence class and deciding component are computed for a bind: `crates/indexer/src/influence.rs` (`dynamic_admit_select`) and the per-ref influence columns. - Hypothesis (unverified): a candidate-set or name-level join that is not constrained by language, or by the component that actually wrote the candidate rows. One Vue/TS symbol of the same name anywhere in the project would then mark the Ruby ref. - The fix must hold for every package pair, not Vue/Ruby only. Test: a Ruby ref whose only candidates are Ruby rows, in a project that also has a same-named TS symbol in a `.vue` file, must be `builtin_only`. Run the mutation that drops the constraint. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
h-dv/code-index#359
No description provided.