history: Preserve AIC component breakdowns - #103
Open
cgwalters-bot wants to merge 1 commit into
Open
cgwalters-bot wants to merge 1 commit into
cgwalters-bot wants to merge 1 commit into
Conversation
The collector already extracts exact agent and detection usage, but discarding those values makes canonical evidence less useful and leaves misleading null-heavy records. Retain available components, preserve partial artifact evidence during comment fallback, and omit fields that are genuinely unavailable. Assisted-by: AI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The W37 audit showed all seven eligible runs are present and linked, but exposed a real collector omission: exact agent and detection AIC values were extracted from artifacts and then discarded. This retains available components, preserves partial artifact evidence during comment fallback, and omits properties that are genuinely unavailable instead of emitting null-heavy records.
Compact item records now include
agentAicanddetectionAicwhen every supporting run has a complete breakdown. For W37 this yields:bcvk#356: 208.341555 total, 132.56799 agent, 75.773565 detectionbcvk#357: 504.907215 total, 329.070975 agent, 175.83624 detectionThe other 38 organization runs were skipped and correctly have no AIC.
Tested with:
node --check scripts/org-history.jsnode --test tests/org-history.test.js(15/15)Assisted-by: AI
Unit tests are LLM generated.