Skip to content

Treat missing evals accounting as zero AIC - #60892

Merged
pelikhan merged 2 commits into
mainfrom
copilot/fix-missing-file-evals-aic
Sep 14, 2026
Merged

pelikhan merged 2 commits into
mainfrom
copilot/fix-missing-file-evals-aic

Conversation

Copilot AI commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

The daily AIC guardrail failed when a failed evals job produced no evals/token_usage.jsonl. Treat that case as zero AIC instead of an unknown accounting error.

  • Accounting

    • Record missing usage from failed evals as 0 AIC.
    • Preserve strict accounting for agent, detection, and successful evals jobs.
    • Retain execution_not_started precedence when evidence exists.
  • Coverage

    • Cover failed collection and artifact upload paths, including skipped uploads and failures before evaluation begins.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix handling of missing file as 0 AIC for evals Treat missing evals accounting as zero AIC Sep 14, 2026
Copilot AI requested a review from pelikhan September 14, 2026 17:52
@pelikhan
pelikhan marked this pull request as ready for review September 14, 2026 17:54
Copilot AI balanced review requested due to automatic review settings September 14, 2026 17:54
@pelikhan
pelikhan merged commit c486606 into main Sep 14, 2026
39 checks passed
@pelikhan
pelikhan deleted the copilot/fix-missing-file-evals-aic branch September 14, 2026 17:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Rerun attempts can fail producer validation before reaching the new zero-AIC fallback.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates daily AIC accounting so failed evals jobs without usage records contribute zero AIC.

Changes:

  • Simplifies failed-evals accounting detection.
  • Expands coverage for collection and upload failures.
  • Removes obsolete step-name coupling documentation.
File summaries
File Description
actions/setup/js/daily_aic_component_coverage.cjs Adds zero-AIC fallback for failed evals.
actions/setup/js/daily_aic_component_coverage.test.cjs Covers missing accounting scenarios.
pkg/workflow/evals_steps.go Removes obsolete comments.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +163 to +168
if (name === "evals" && job.conclusion === "failure") {
logComponentAIC(runId, name, job, 0, "failed_before_accounting", {
source: candidateStates[0].file,
});
continue;
}
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.89.17

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.

3 participants