Skip to content

[deep-report] agenticworkflows logs run schema lacks a token-usage field, causing multiple reports to show 0 average token usage #60412

Description

@github-actions

Description: The Detection Analysis Report (#60352, 442 runs / 24h window) reported average token usage as exactly 0 for both detection-enabled and regular run groups. This is not an isolated report bug: independently querying agenticworkflows logs live during this DeepReport cycle confirmed the run-metadata JSON schema it returns has no token/cost field at all — the available keys are action_minutes, actor, agent, branch, classification, created_at, display_title, duration, engine, engine_id, event, event_name, head_sha, logs_path, number, organization, ref, repository, run_attempt, run_id, sha, started_at, status, updated_at, url, workflow_name, workflow_path. Any report script that aggregates "average token usage" from this run list (rather than fetching per-run detail from logs_path) will always compute 0. This is distinct from the already-tracked chronic Daily Performance Summary 90-day-window instability issue (different symptom: metric swings, not universal zero).

Expected Impact: Fixes a systemic telemetry gap affecting every fleet-analytics report that surfaces token usage (Detection Analysis Report and likely others using the same logs summary schema), restoring a metric currently silently useless across the board.

Suggested Agent: coding agent with access to the agenticworkflows/gh-aw logs tooling; needs to determine whether token counts are tracked per-run elsewhere (e.g. only reachable via logs_path detail fetch) and either add it to the summary schema returned by logs, or fix report scripts to pull it from the correct source.

Estimated Effort: 2-4 hours (schema/tooling fix, not per-report patch).

Data Source: Detection Analysis Report discussion #60352, cross-verified live against agenticworkflows logs output during this cycle.

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • api.anthropic.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "api.anthropic.com"

See Network Configuration for more information.

Generated by 🔬 Deep Report · claude · agent · 466.3 AIC · ⌖ 9.9 AIC · ⊞ 12.8K ·

  • expires on Sep 14, 2026, 4:52 AM UTC-08:00

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions