Skip to content

Report a finding as unverified when its declaring assembly is outside the closure - #5

Merged
sakanni merged 1 commit into
developfrom
fix/closure-aware-classification
Aug 20, 2026
Merged

Report a finding as unverified when its declaring assembly is outside the closure#5
sakanni merged 1 commit into
developfrom
fix/closure-aware-classification

Conversation

@sakanni

@sakanni sakanni commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Commit 1 of the suspended PR #1, cherry-picked onto current develop. Commit 2 of that PR is dropped: #4 landed the altConfigs build properly, through the shared script rather than the inline copy with the org/repo filter.

ProbeDeclaringType takes its verdict from whichever loaded assembly yields the declaring type, which is not necessarily the one the dataset recorded. When the recorded assembly is absent and another answered instead, the probe describes code the dataset was never talking about, and the finding is counted as a genuine regression. This reports those as unverified, split into ForeignDeclaringAssembly and ConfigurationNotBuilt so the reason is legible.

It stays real where it should. When nothing answered for the type the path is DeclaringTypeNotLoaded, which is how a genuine removal presents, and when the family is the repo's own but no configuration of it is loaded. An earlier draft lacked the first guard and would have silenced real removals; a runner-planted removal confirmed it, and a mutation holds it.

Measured effect on BHoM/Revit_Toolkit: of the two findings it reports today, Create.ProjectParameter is already resolved by #4 building the alternate configurations, so only Compute.TryGetValueFromSource remains. That one is declared by Revit_ModelQA_Engine_2022, an assembly outside this repository's closure, and it is the false red currently on the check. This clears it.

Scope note: this narrows what gets reported, it does not fix attribution. Namespace attribution still misassigns a finding whose declaring assembly is present but foreign, which is the larger direction of CI_Toolkit#161 and is untouched here.

13 tests, four mutations each caught by the intended one. 108 in the suite with the branch composed against the load-order change already on develop.

@sakanni
sakanni merged commit 375121b into develop Aug 20, 2026
1 check passed
@sakanni
sakanni deleted the fix/closure-aware-classification branch August 20, 2026 08:15
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