Skip to content

Add daily agentic spending forecast report - #48654

Merged
pelikhan merged 2 commits into
mainfrom
copilot/daily-agentic-workflow-forecast
Jul 28, 2026
Merged

Add daily agentic spending forecast report#48654
pelikhan merged 2 commits into
mainfrom
copilot/daily-agentic-workflow-forecast

Conversation

Copilot AI commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Adds a daily, manually rerunnable workflow that forecasts agentic workflow spending and reviews source data for inaccuracies.

  • Forecast collection

    • Runs gh aw forecast against the repository.
    • Captures JSON, verbose diagnostics, exit metadata, and a combined transcript.
    • Retains logs and the generated report as a 30-day artifact.
  • Agent analysis

    • Validates samples, totals, confidence intervals, and run frequency.
    • Flags missing data, stale or sparse samples, outliers, and unreliable projections.
    • Supports targeted forecast reruns, backtesting, and gh-aw MCP investigation.
  • Reporting

    • Creates a rolling issue with observed spending and weekly/monthly P10, P50, and P90 projections.
    • Includes compact ASCII charts, per-workflow metrics, assumptions, and data-quality findings.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
copilot-requests: write
strict: true
tools:
agentic-workflows: true

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@copilot configure github gh-proxy

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Configured tools.github.mode: gh-proxy and regenerated the workflow lockfile in 6549e36.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan July 28, 2026 14:35
@pelikhan
pelikhan marked this pull request as ready for review July 28, 2026 14:37
Copilot AI review requested due to automatic review settings July 28, 2026 14:37
@pelikhan

Copy link
Copy Markdown
Collaborator

@copilot pass GH_TOKEN to step using gh to avoid api caps

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.

Pull request overview

Adds a daily, manually rerunnable workflow for collecting, analyzing, and reporting agentic spending forecasts.

Changes:

  • Collects forecast JSON, diagnostics, metadata, and transcripts.
  • Analyzes forecast quality and publishes a rolling issue.
  • Retains generated reports and logs as artifacts.
Show a summary per file
File Description
.github/workflows/daily-spending-forecast.md Defines forecast collection, analysis, and reporting.
.github/workflows/daily-spending-forecast.lock.yml Compiled GitHub Actions workflow.

Review details

Tip

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

  • Files reviewed: 1/2 changed files
  • Comments generated: 4
  • Review effort level: Medium

Comment on lines +27 to +28
env:
REPOSITORY: ${{ github.repository }}
Comment on lines +35 to +36
DEBUG='*' "$GITHUB_WORKSPACE/gh-aw" forecast \
--repo "$REPOSITORY" \
--repo "$REPOSITORY" \
--days 30 \
--period month \
--sample 100 \
Comment on lines +115 to +116
4. Calculate historical spending from `run_samples[].aic` and clearly distinguish
observed spending from projected spending.
@pelikhan
pelikhan merged commit 7fe88ae into main Jul 28, 2026
1 of 2 checks passed
@pelikhan
pelikhan deleted the copilot/daily-agentic-workflow-forecast branch July 28, 2026 14:52
Copilot stopped work on behalf of pelikhan due to an error July 28, 2026 14:52
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.83.5

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