Repository navigation
Reject ambiguous combined evaluation result keys - #835
akshitkhokhani wants to merge 1 commit into
Conversation
779744e to
964ba4e
Compare
|
Security incident update from the PR author — unauthorized malicious changes Unauthorized malicious code was pushed through my GitHub account into the source repository associated with this PR. This PR is closed. Please do not merge or run the affected original commits. I am sorry for the risk and disruption to the project. What the investigation established The injected files include a hidden VS Code task configured to run on folder opening and a Node payload disguised as The observed account action does not identify the person or credential behind it. The exact initial access method remains unconfirmed. Commit author/committer dates can be preserved or manipulated, so I am using GitHub timeline timestamps below for the public activity log. Public PR activity (UTC)
Affected source files and indicators in this public fork
Observed loader indicators: Payload/loader Git blob identifiers (Git SHA-1, not SHA-256):
The cleanup also removes the payload camouflage files and restores altered ignore/configuration rules where supported by the original parent revision. The source review was static; it does not establish whether automated builds or deployed environments executed affected code. Branch repair activity in
Status snapshot: 2026-11-03T04:15:37+00:00. Repairs are being checked by comparing file contents/Git object hashes and branch references; this is static verification, not a successful test/build claim. Legitimate project changes are retained where separable from the injection. I will update this comment as the remaining verification completes. Limits and maintainer follow-up
|
What does this PR do?
Fixes #834 by rejecting ambiguous final result keys in
combine()instead of silently overwriting a metric score.For example, two metrics returning
scoregeneratemodel_scoreandbaseline_score; a third metric returning the raw keymodel_scorecurrently replaces the first score. Forced prefixes can also collide (a_b+canda+b_c). The result then depends on module order.Calculate the existing output key, check whether it is already present, and raise a descriptive
ValueErrorfor collisions. Collision-free result names and values stay unchanged. This deliberately does not introduce a new automatic-renaming scheme.Tests cover public
Metricinstances andcombine().compute(): default and forced-prefix collisions in both orders, plus collisions involving numbered duplicate module names. Existing combination tests cover ordinary overlapping scores and duplicate modules.Validation:
git diff --checkis clean.make qualityreaches Flake8 but reports six existing errors in three source files. Running Flake8 on those exact files from the unchanged base reproduces all six; no unrelated formatting changes are included.I attempted self-assignment on #834 as requested by the contributor guide, but GitHub denied the assignment operation for this account.
AI assistance disclosure: Codex developed this patch and tests, with a separate AI reviewer inspecting the implementation and evidence. No human maintainer approval is implied.