Skip to content

chore(config): default to Opus 4.8 (claude-opus-4-7 -> claude-opus-4-8)#39

Merged
omerakben merged 1 commit into
mainfrom
feat/opus-4-8-default
May 30, 2026
Merged

chore(config): default to Opus 4.8 (claude-opus-4-7 -> claude-opus-4-8)#39
omerakben merged 1 commit into
mainfrom
feat/opus-4-8-default

Conversation

@omerakben
Copy link
Copy Markdown
Owner

@omerakben omerakben commented May 29, 2026

What

Completes the half-done Opus 4.7 -> 4.8 default-model migration that was sitting uncommitted and RED in the working tree. `claude-opus-4-8` is GA (launched 2026-05-28, $5/$25, same price as 4.7) and is the recommended default per CLAUDE.md rule 4.

Changes (13 files)

  • Engine: `src/config/schema.ts` — `DEFAULT_CONFIG.models.primary`, the `claude:claude-opus-4-8` priceTable key, and the lookup-date comment (corrected to 2026-05-29; 4.8 launched after the old 2026-05-01 lookup, price unchanged). `src/providers/capabilities.ts` — priced-model comment.
  • Tests (RED-first, rule 22): `cli-init.test.ts` and `config-budgets.test.ts` are the only two tests that read `DEFAULT_CONFIG`-derived values; flipped to assert 4-8, watched them fail for the right reason, then landed the engine change to green.
  • CLI config docs (state the current default): `contracts/{BUILD,COMPANY,REVIEW_PANEL,SCIENTIST,VERIFY}.md`, `references/{agent-skill-format,budgets,provider-contract}.md`.

Scope

Migrated only sites that assert the current default. Left untouched (each a deliberate, noted exclusion): self-consistent test data using 4-7 as arbitrary still-live model data, historical debate transcripts, recorded demo `events.jsonl`, and all of `code-oz-gui/`.

Verification

  • 3810 pass / 2 skip / 0 fail; `bun run typecheck` clean.
  • Cross-family review: Codex `gpt-5.5` xhigh -> `fix-first` (two stale lookup-date siblings) -> `push` after fix.

Summary by CodeRabbit

  • Chores
    • Updated default Claude model from Opus 4.7 to Opus 4.8 across configs and runtime defaults.
  • Documentation
    • Revised contract, reference, and pricing docs to reflect Opus 4.8 and updated pricing lookup date.
  • Tests
    • Adjusted test assertions to match the new default model and pricing entries.

Review Change Stack

Copilot AI review requested due to automatic review settings May 29, 2026 18:55
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 29, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8bf8132d-4914-478d-92be-89590e44b301

📥 Commits

Reviewing files that changed from the base of the PR and between e7f426a and 6ad0bbb.

📒 Files selected for processing (13)
  • CLAUDE.md
  • docs/contracts/BUILD.md
  • docs/contracts/COMPANY.md
  • docs/contracts/REVIEW_PANEL.md
  • docs/contracts/SCIENTIST.md
  • docs/contracts/VERIFY.md
  • docs/references/agent-skill-format.md
  • docs/references/budgets.md
  • docs/references/provider-contract.md
  • src/config/schema.ts
  • src/providers/capabilities.ts
  • tests/cli-init.test.ts
  • tests/config-budgets.test.ts
✅ Files skipped from review due to trivial changes (6)
  • docs/contracts/REVIEW_PANEL.md
  • docs/contracts/COMPANY.md
  • docs/references/agent-skill-format.md
  • src/providers/capabilities.ts
  • tests/cli-init.test.ts
  • CLAUDE.md
🚧 Files skipped from review as they are similar to previous changes (7)
  • docs/contracts/SCIENTIST.md
  • docs/contracts/VERIFY.md
  • tests/config-budgets.test.ts
  • src/config/schema.ts
  • docs/references/provider-contract.md
  • docs/contracts/BUILD.md
  • docs/references/budgets.md

📝 Walkthrough

Walkthrough

This pull request updates the default Claude model version from Opus 4.7 to Opus 4.8 throughout the codebase. Changes span runtime schema defaults, contract and reference documentation, and test assertions reflecting the new model as the primary default.

Changes

Claude Opus 4.8 upgrade

Layer / File(s) Summary
Core runtime defaults
src/config/schema.ts, src/providers/capabilities.ts
DEFAULT_CONFIG.models.primary and budgets.global.priceTable defaults change from claude-opus-4-7 to claude-opus-4-8; pricing-lookup documentation comment updated.
Contract documentation
CLAUDE.md, docs/contracts/BUILD.md, docs/contracts/COMPANY.md, docs/contracts/REVIEW_PANEL.md, docs/contracts/SCIENTIST.md, docs/contracts/VERIFY.md
Non-negotiable rule, contract examples, permission blocks, and role configurations updated to reference Opus 4.8 as the primary model.
Reference documentation
docs/references/agent-skill-format.md, docs/references/budgets.md, docs/references/provider-contract.md
Frontmatter spec, YAML examples, pricing tables, and shipped-model defaults updated to reflect Opus 4.8 and associated pricing metadata.
Test assertions
tests/cli-init.test.ts, tests/config-budgets.test.ts
CLI init and budget configuration tests updated to expect claude-opus-4-8 default and claude:claude-opus-4-8 priceTable entry.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

A rabbit hops through configs bright,
Swapping seven for four‑eight's light,
Defaults and docs now all align,
Tests updated, the keys refine,
🐰✨ A tiny hop, the change is right.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically identifies the main change: updating the default model from claude-opus-4-7 to claude-opus-4-8, which matches the primary objective of all 13 file changes in the PR.
Description check ✅ Passed The description covers all required template sections: a clear summary of what changed and why, a detailed files list by category, test results with pass/fail/skip counts, RED-first test verification, cross-model review details with linked Codex response, no breaking changes indicated, and clear scope/verification notes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/opus-4-8-default

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint skipped: no ESLint configuration detected in root package.json. To enable, add eslint to devDependencies.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the default primary model from claude-opus-4-7 to claude-opus-4-8 across configuration files, documentation, schemas, and test suites. I have no feedback to provide as the changes are consistent and correct.

Copy link
Copy Markdown

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

This PR completes the default Claude model migration from claude-opus-4-7 to claude-opus-4-8 by updating the engine defaults and aligning tests and documentation that assert the current default.

Changes:

  • Update DEFAULT_CONFIG to default models.primary to claude-opus-4-8 and move the default Claude priceTable entry to claude:claude-opus-4-8 (with updated lookup-date comment).
  • Update the two tests that assert DEFAULT_CONFIG-derived defaults to expect claude-opus-4-8.
  • Update docs/contracts, docs/references, and CLAUDE.md to reflect claude-opus-4-8 as the default and update related examples.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/config-budgets.test.ts Updates default Claude priceTable assertion and pricing lookup-date comment to match the new default.
tests/cli-init.test.ts Updates init-scaffolded config default-model assertion to claude-opus-4-8.
src/providers/capabilities.ts Updates priced-model comment to reference Opus 4.8 (model-level pricing).
src/config/schema.ts Switches DEFAULT_CONFIG.models.primary and default priceTable key to Opus 4.8; updates lookup-date comment and example key in docs comment.
docs/references/provider-contract.md Updates narrative description of shipped Claude model defaults to Opus 4.8.
docs/references/budgets.md Updates YAML example, keying example, lookup date, and default-model table row to Opus 4.8.
docs/references/agent-skill-format.md Updates example frontmatter model to claude-opus-4-8.
docs/contracts/VERIFY.md Updates example modelPolicy.primary to Opus 4.8.
docs/contracts/SCIENTIST.md Updates example modelPolicy.primary to Opus 4.8.
docs/contracts/REVIEW_PANEL.md Updates example advisory reviewer modelPolicy to Opus 4.8.
docs/contracts/COMPANY.md Updates examples and resolved-registry table rows to use Opus 4.8 where applicable.
docs/contracts/BUILD.md Updates example modelPolicy.primary to Opus 4.8.
CLAUDE.md Updates rule 4 to state claude-opus-4-8 as the primary model default.

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

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e7f426a953

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/config/schema.ts
// Lookup date: 2026-05-29 (Opus 4.8 is the default; $5/$25 unchanged from 4.7)
priceTable: Object.freeze({
'claude:claude-opus-4-7': Object.freeze({ inputPerMTok: 5, outputPerMTok: 25 }),
'claude:claude-opus-4-8': Object.freeze({ inputPerMTok: 5, outputPerMTok: 25 }),
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Retain the 4.7 price entry for pinned configs

When a project explicitly pins claude-opus-4-7 via models.primary, company.<role>.model, or agent frontmatter but relies on the default budget table, this replacement makes USD telemetry disappear for that still-supported model: estimateCostUSD/actualCostUSD resolve only the exact claude:<model> key and Claude has no provider-level costPerMTok fallback. Since the comment says the 4.8 price is unchanged from 4.7, keeping both keys preserves costEstimateUSD/costActualUSD for users who downgrade or haven't migrated yet.

Useful? React with 👍 / 👎.

Complete the half-done default-model migration that was sitting RED in the
working tree. claude-opus-4-8 is GA (launched 2026-05-28, $5/$25, same price
as 4.7) and is the recommended default per rule 4.

Engine:
- src/config/schema.ts: DEFAULT_CONFIG.models.primary and the priceTable key
  claude:claude-opus-4-8; lookup-date comment corrected to 2026-05-29 (4.8
  launched after the old 2026-05-01 lookup; price unchanged).
- src/providers/capabilities.ts: priced-model comment.

Tests (rule 22 RED-first): cli-init and config-budgets are the only tests
that read DEFAULT_CONFIG-derived values. Flipped them to assert 4-8, watched
them fail for the right reason, then landed the engine change to green.

CLI config docs that assert the current default: contracts/{BUILD,COMPANY,
REVIEW_PANEL,SCIENTIST,VERIFY}.md, references/{agent-skill-format,budgets,
provider-contract}.md.

Scope discriminator (migrate only current-default assertions). Deliberately
left, each a noted exclusion: self-consistent test data using 4-7 as
arbitrary still-live model data (propagation/cost/echo tests); historical
debate transcripts and authorship attributions; recorded demo events.jsonl;
code-oz-gui (separate sub-project, internally consistent).

Cross-family review: Codex gpt-5.5 xhigh -- fix-first (two stale lookup-date
siblings) then push after fix. 3810 pass / 2 skip / 0 fail; typecheck clean.
@omerakben omerakben force-pushed the feat/opus-4-8-default branch from e7f426a to 6ad0bbb Compare May 30, 2026 02:43
@omerakben omerakben merged commit 73caef6 into main May 30, 2026
3 checks passed
@omerakben omerakben deleted the feat/opus-4-8-default branch May 30, 2026 03:16
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.

2 participants