Skip to content

fix: remove double-counted write_actions from partially_reducible evidence; rename Minutes → Action Minutes#23075

Merged
mnkiefer merged 2 commits intoadd-cogs-statsfrom
copilot/sub-pr-23074
Mar 26, 2026
Merged

fix: remove double-counted write_actions from partially_reducible evidence; rename Minutes → Action Minutes#23075
mnkiefer merged 2 commits intoadd-cogs-statsfrom
copilot/sub-pr-23074

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 26, 2026

Two fixes based on PR review feedback on the agentic fraction / action minutes tracking work.

  • Double-counted write_actions in evidence (audit_agentic_analysis.go): writeCount = len(createdItems) + SafeItemsCount inflates the count because both terms derive from the same source (extractCreatedItemsFromManifest). Removed write_actions=%d from the partially_reducible evidence string — the reliable signals (agentic_fraction, turns) are sufficient for that assessment.

  • Ambiguous console column header (logs_report.go): Renamed the ActionMinutes struct tag header from Minutes to Action Minutes to match the JSON field name and avoid confusion with wall-clock duration.


⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.

…dence; rename Minutes header to Action Minutes

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/ee2348c1-4f1f-4285-9cec-2e8c60c10108

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Chore: Add agentic fraction & action minutes tracking fix: remove double-counted write_actions from partially_reducible evidence; rename Minutes → Action Minutes Mar 26, 2026
Copilot AI requested a review from mnkiefer March 26, 2026 08:17
@mnkiefer mnkiefer marked this pull request as ready for review March 26, 2026 08:37
Copilot AI review requested due to automatic review settings March 26, 2026 08:37
@mnkiefer mnkiefer merged commit 5670c7d into add-cogs-stats Mar 26, 2026
83 of 125 checks passed
@mnkiefer mnkiefer deleted the copilot/sub-pr-23074 branch March 26, 2026 08:37
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes agentic analysis reporting and logs console output clarity by removing an unreliable/double-counted write-actions signal from one assessment and renaming a confusing column header.

Changes:

  • Remove write_actions from the partially_reducible assessment evidence string in audit_agentic_analysis.go.
  • Rename the logs console column header from Minutes to Action Minutes for action_minutes in logs_report.go.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
pkg/cli/logs_report.go Renames the console table header for action_minutes to reduce ambiguity.
pkg/cli/audit_agentic_analysis.go Drops write_actions from partially_reducible evidence output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Severity: severity,
Summary: fmt.Sprintf("About %d%% of this run's turns appear to be data-gathering that could move to deterministic steps.", deterministicPct),
Evidence: fmt.Sprintf("agentic_fraction=%.2f turns=%d write_actions=%d", fingerprint.AgenticFraction, metrics.Turns, writeCount),
Evidence: fmt.Sprintf("agentic_fraction=%.2f turns=%d", fingerprint.AgenticFraction, metrics.Turns),
Copy link

Copilot AI Mar 26, 2026

Choose a reason for hiding this comment

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

write_actions was removed from this evidence string due to the write count being double-counted, but writeCount is still computed as len(createdItems) + processedRun.Run.SafeItemsCount earlier in buildAgenticAssessments (and also in buildBehaviorFingerprint). Since SafeItemsCount is set from len(extractCreatedItemsFromManifest(...)) and createdItems is derived from the same manifest, this sums the same signal twice and can misclassify ActuationStyle / ResourceProfile and inflate other evidence (e.g. resource_heavy_for_domain). Suggest deriving writeCount from a single source (e.g. SafeItemsCount with fallback to len(createdItems) if needed) and reusing it consistently.

Copilot uses AI. Check for mistakes.
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