Skip to content

Add fallback pricing for the Copilot AOAI API-key smoke workflow - #69746

Merged
pelikhan merged 2 commits into
mainfrom
copilot/aw-set-ai-credits-pricing
Oct 17, 2026
Merged

pelikhan merged 2 commits into
mainfrom
copilot/aw-set-ai-credits-pricing

Conversation

Copilot AI commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

AWF rejected inference requests for Azure deployment o4-mini-aw with HTTP 400 because it has no catalog pricing and the workflow configured no fallback.

  • Pricing: Import the existing shared fallback—$5/M input tokens and $25/M output tokens—and regenerate the workflow lock.
  • Regression coverage: Assert that the workflow imports fallback pricing and the compiled AWF proxy receives it.
  • Preserved behavior: Keep the Azure deployment, endpoint, Responses API, and 60-credit spending cap unchanged.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add AI credits pricing for model o4-mini-aw Add fallback pricing for the Copilot AOAI API-key smoke workflow Oct 17, 2026
Copilot AI requested a review from pelikhan October 17, 2026 16:32
@pelikhan
pelikhan marked this pull request as ready for review October 17, 2026 16:33
Copilot AI max review requested due to automatic review settings October 17, 2026 16:33
@pelikhan
pelikhan merged commit 52c5bb8 into main Oct 17, 2026
3 checks passed
@pelikhan
pelikhan deleted the copilot/aw-set-ai-credits-pricing branch October 17, 2026 16:33

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

Pricing remains incomplete across inference jobs, and the fallback can exhaust the preserved spending cap.

2 open issues
What changed in this PR

Adds fallback pricing to the Copilot Azure API-key smoke workflow to address #69739.

Changes:

  • Imports shared $5/M input and $25/M output pricing.
  • Regenerates the lock while preserving Azure settings and the 60-credit cap.
  • Adds source and compiled-pricing regression assertions.
File Description
pkg/​cli/​smoke_copilot_aoai_workflow_contract_test.go Adds pricing contract checks.
.github/​workflows/​smoke-copilot-aoai-apikey.md Imports shared fallback pricing.
.github/​workflows/​smoke-copilot-aoai-apikey.lock.yml Updates generated proxy and prompt configuration.

Review effort: Max

- uses: shared/session-artifact-check.md
with:
session-artifact: copilot-events
- shared/default-ai-credits-pricing.md
- uses: shared/session-artifact-check.md
with:
session-artifact: copilot-events
- shared/default-ai-credits-pricing.md
Copilot AI added a commit that referenced this pull request Oct 17, 2026
)

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Copilot AI added a commit that referenced this pull request Oct 17, 2026
)

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
pelikhan added a commit that referenced this pull request Oct 17, 2026
* feat(workflow): port Actions pipeline AST from ado-aw

Add typed jobs, steps, expressions, and output declarations with graph-derived needs and job-output bindings. Resolve and lower typed compiler contributions while preserving opaque legacy YAML, and migrate call-workflow conditions to the AST.

Include graph and emission regression coverage and refresh the affected smoke workflow lockfile.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* refactor(workflow): replace pipeline AST with native Actions model

Model native workflow and job properties, reusable workflow inputs and secrets, and Actions-only steps and expressions. Remove the pipeline package and all compatibility APIs. Build and validate dependency graphs for every repository workflow YAML, including generated lockfiles.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* docs(adr): add draft ADR-69755 for typed Actions workflow AST

* feat(workflow): add AW Markdown source AST and Actions lowering

Preserve complete authored frontmatter, prompt bytes, and source locations in aw.Document. Reuse the compiler for document lowering, complete in-memory configuration population, and parse native Actions YAML through a validated graph.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* feat(workflow): preserve YAML comments and round-trip native ASTs

Retain byte-exact native workflow sources and reconcile AST edits against their comment-bearing YAML syntax. Preserve action annotations, comment ownership across reordered steps and dependencies, and independent alias values. Verify unmodified round trips and edited comment retention for all 385 repository workflow YAML files.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Add fallback pricing for the Copilot AOAI API-key smoke workflow (#69746)
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>

* Address Actions AST review feedback

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
pelikhan added a commit that referenced this pull request Oct 17, 2026
)

* Fix ESLint queue worker access and delivery health reporting

Restore native Claude work-queue MCP access and agent-visible Refiner history. Fail unverified Claim delivery after independently valid sibling reconciliation, and cover preparation, permission, and settlement regressions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Require branch notification before live workflow testing

Tell users which published branch and exact reviewed commit will run. Keep live-effect authorization independent and clarify that a draft PR and merge are not prerequisites.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Publish reviewed staged Refiner lock for one live startup test

Temporarily use the strict dry-run lock: safe outputs are staged and queue operations are disabled. Restore the production lock after the bounded hosted diagnostic.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Restore normal Refiner workflow after bounded live diagnostic

Restore the exact previously reviewed normal lock after run 39051960708. Hosted history restoration and Claude startup passed; the diagnostic correctly stopped without queue assignment, so end-to-end Claim delivery remains unverified. Existing telemetry references are restored unchanged from the reviewed pre-test lock.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Specify and model Claim delivery health independently of capacity

Require unsettled delivery to fail aggregate reporting after valid sibling reconciliation. Model staged isolation, false-green and early-stop controls, independent terminal release and pending-delivery witnesses. Document worker readiness and the limited coverage of hosted staged startup tests.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Preserve structured Claude work queue tool allowlists

Reuse generic MCP permission scoping for structured work-queue configs without changing the native queue schema or Claim authorization. Cover scoped, wildcard, empty, and malformed allowlists while preserving native enablement and explicit disabling.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Verify native queue creation delivery and preparation failures

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Add fallback pricing for the Copilot AOAI API-key smoke workflow (#69746)
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.92.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.

[aw] Smoke Copilot - AOAI (apikey) has no AI credits pricing for model (o4-mini-aw)

3 participants