Skip to content

Fix direct Anthropic claude-sonnet-5-5 cache-read price ($0.20 → $0.10 per 1M tokens) - #69072

Merged
SivaKesava1 merged 5 commits into
mainfrom
copilot/fix-claude-sonnet-5-5-cache-read-price
Oct 15, 2026
Merged

SivaKesava1 merged 5 commits into
mainfrom
copilot/fix-claude-sonnet-5-5-cache-read-price

Conversation

Copilot AI commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

The model price catalogue lists the direct Anthropic claude-sonnet-5-5 cache-read price at $0.20 per 1M tokens instead of $0.10. That doubles the estimated cost of cached Sonnet 5.5 prompt tokens in gh aw audit, gh aw logs and run footers. Only the direct Anthropic entry was wrong: Anthropic's pricing page, models.dev and gh-aw's own github-copilot/claude-sonnet-5.5 entry all give $0.10.

Changes

  • Catalogue: providers.anthropic.models.claude-sonnet-5-5.cost.cache_read is now 1e-07 (was 2e-07) in both actions/setup/js/models.json and pkg/cli/data/models.json. The two copies are still byte-identical. Input, output and cache-write prices are unchanged.
  • Test: pkg/cli/model_costs_test.go now expects 0.1e-6 for this entry.
  • Changeset: adds a patch changeset.

This is a hand edit, not make refresh-models-json. A full refresh would drop hand-added fields such as the Grok wire_api. models.dev already has $0.10, so a later refresh keeps this value.

"claude-sonnet-5-5": {
  "cost": {
    "input": "2e-06",
    "output": "1e-05",
    "cache_read": "1e-07",
    "cache_write": "2.5e-06"
  }
}

Unrelated JS test failures

Three JS tests failed in the full local run; this change doesn't cause them:

  • work_queue_control_performance.test.cjs: two tests time out with or without this change.
  • awf_reflect_summary.test.cjs: one test failed in the full run; the file passes when run alone with this change.

Co-authored-by: SivaKesava1 <11771739+SivaKesava1@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix direct Anthropic Claude Sonnet 5.5 cache-read price Fix direct Anthropic claude-sonnet-5-5 cache-read price ($0.20 → $0.10 per 1M tokens) Oct 15, 2026
Copilot AI requested a review from SivaKesava1 October 15, 2026 17:35
@SivaKesava1
SivaKesava1 marked this pull request as ready for review October 15, 2026 18:20
Copilot AI max review requested due to automatic review settings October 15, 2026 18:20
@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Ponytail Reviewer · gpt56 · 5.68 AIC · ⌖ 5.27 AIC · ⊞ 14.3K · ◷

Generated by Ponytail Reviewer for #69072

@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Design Decision Gate 🏗️

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Design Decision Gate 🏗️ · opus50 · 15.5 AIC · ⌖ 46 AIC · ◇ 33.8 AIC · ⊞ 1.9K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Test Quality Sentinel · haiku45 · 5.05 AIC · ⌖ 7.75 AIC · ◇ 2.48 AIC · ⊞ 8.8K · ◷

🧪 Test quality analysis by Test Quality Sentinel

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.

🟢 Approval recommended

The narrow correction matches the issue requirements, updates both catalogues consistently, and aligns the existing test expectation.

0 open findings

What changed in this PR

Corrects direct Anthropic Sonnet 5.5 cached-token cost estimates in gh-aw.

Changes:

  • Sets cache-read pricing to $0.10 per million tokens in both catalogues.
  • Updates the existing test expectation and adds a patch changeset.
File Description
pkg/​cli/​model_costs_test.go Updates the expected cache-read rate.
pkg/​cli/​data/​models.json Corrects CLI catalogue pricing.
actions/​setup/​js/​models.json Applies the matching runtime catalogue correction.
.changeset/​fix-anthropic-sonnet-5-5-cache-read-price.md Documents the patch release fix.

🧠 Review effort: Max


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

@github-actions github-actions Bot 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.

Verdict

I didn't find a blocking issue in this change.

Review notes

This PR is a narrow data correction: the Anthropic claude-sonnet-5-5 cache-read price is updated in both mirrored catalog files, the unit expectation is kept in sync, and the changeset matches the behavior change. I did not see a changed-line correctness or maintainability problem that would justify blocking the merge.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt54 · 14.4 AIC · ⌖ 5.54 AIC · ⊞ 21.4K
Comment /review to run again

@github-actions github-actions Bot 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.

Skills-Based Review 🧠

Applied /diagnosing-bugs and /tdd — no actionable issues found.

📋 Analysis

Summary

This is a minimal, well-targeted data correction: the direct Anthropic claude-sonnet-5-5 cache-read price is fixed from 2e-07 to 1e-07 ($0.20 → $0.10 per 1M tokens) in both actions/setup/js/models.json and pkg/cli/data/models.json.

Verification performed

  • Confirmed the two models.json copies remain byte-identical after the edit.
  • Confirmed pkg/cli/model_costs_test.go was updated in lockstep to assert 0.1e-6, so the regression is now covered by a test (satisfies /tdd — fix accompanied by a test asserting the corrected value).
  • Root cause (per /diagnosing-bugs) is clearly identified in the PR description: the direct Anthropic entry was out of sync with Anthropic's own pricing page, models.dev, and gh-aw's internal github-copilot/claude-sonnet-5.5 entry, all of which already show $0.10. Only input/output/cache-write were left untouched, which is correct since only cache-read was wrong.
  • A changeset (fix-anthropic-sonnet-5-5-cache-read-price.md) is included, correctly scoped as a patch.
  • The author proactively flagged that this is a hand-edit rather than make refresh-models-json (to preserve hand-added fields like Grok's wire_api), and noted unrelated pre-existing JS test flakiness — good transparency that aids reviewers.

Positive highlights

  • Root-caused against multiple independent sources (Anthropic docs, models.dev, internal sibling entry) rather than just patching the symptom.
  • Test updated alongside the fix, preventing silent regression.
  • Changeset included for release tracking.
  • Both catalogue copies kept in sync.

No further action needed.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · sonnet50 · 23.2 AIC · ⌖ 14.5 AIC · ⊞ 11.1K
Comment /matt to run again

Copilot AI commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

One or more custom setup steps configured for this repository failed during this Copilot code review run:

Install Go language server (gopls)

Setup steps run before each review. If the review above is missing context, or no review was posted at all, the failing step above may be the cause. See the workflow run for failure details, fix your setup steps configuration, and re-request a review.

Note

You can configure setup steps for Copilot code review separately from Copilot cloud agent with a copilot-code-review.yml file. Read the docs for details.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot address the following outstanding work in one pass:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Fix failing check github-advanced-security (FAILURE): https://github.com/github/gh-aw/actions/runs/38784899362/job/116594268913.

Push the necessary fixes, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved. Use the pr-finisher skill and stop when only human review or CI remains; do not trigger CI.

Sous-chef head: a46d05c
Sous-chef work: 960a6fe297781e0f1e1c8c03fa3740110735e1332e99a040b5aa7b1b6d14a3f2
Sous-chef state: 67fa1de9e302d075835cc922c8b91ba3be542f8337e342224f300b8429436b6e

Generated by 👨‍🍳 PR Sous Chef · pi · haiku45 · 3.67 AIC · ⌖ 13.7 AIC · ⊞ 1.1K · ◷
Comment /souschef to run again

Copilot AI and others added 2 commits October 15, 2026 19:06
…nnet-5-5-cache-read-price

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

Copilot AI commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

@copilot address the following outstanding work in one pass:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes....

Pushed 3d8dcfc (make merge-main, no conflicts) and 8ca8c17 (pin gopls to v0.23.0). The security job failed because gopls@latest selected v0.24.0, which requires Go 1.27; setup uses Go 1.26.9 with GOTOOLCHAIN=local. Reproduced that failure and verified the pinned release installs successfully.

Formatting, build, lint, focused pricing tests, and impacted unit tests passed. Final progress gate flags inherited drift in the unchanged daily-max-ai-credits-test/pr-sous-chef lock files; left those unrelated files untouched. Read-only review found no issues; automated CodeQL timed out. No open review threads exist to resolve. No CI triggered; the pushed HEAD remains CI-unverified pending the normal human/CI handoff.

Copilot AI requested a review from gh-aw-bot October 15, 2026 19:18
@SivaKesava1
SivaKesava1 merged commit 7dc6aba into main Oct 15, 2026
7 of 8 checks passed
@SivaKesava1
SivaKesava1 deleted the copilot/fix-claude-sonnet-5-5-cache-read-price branch October 15, 2026 19:20
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.92.1

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.

Fix direct Anthropic Claude Sonnet 5.5 cache-read price

4 participants