Skip to content

fix: populate reviewed canonical accounting model families - #11312

Merged
lpcox merged 5 commits into
mainfrom
lpcox-canonical-model-families
Nov 8, 2026
Merged

lpcox merged 5 commits into
mainfrom
lpcox-canonical-model-families

Conversation

@lpcox

@lpcox lpcox commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

Summary

Populate explicit canonical accounting-family membership in the maintained Copilot source records, then regenerate the existing compiler-owned host/proxy/catalogue projections. This activates the declared-family branch of #11164 on shipped naming data; it does not rewrite #10681 naming resolution or change execution selection.

  • 22 of 56 bundled identities (39.3%) in nine reviewed families; 34 (60.7%) remain unknown. Families: GPT-4o, o3, GPT-5.4, Claude Opus 4/5, Sonnet 4/5, Fable 5, and Gemini 3.1 Pro. The evidence ledger in docs/model-families.md enumerates every exact member, official naming evidence, recorded lineage provenance, exceptions and unknowns.
  • Evidence is official OpenAI product announcements, Anthropic/GitHub model naming, Google's Gemini 3.1 Pro card, and the existing reviewed mapping's versioned product lineages. Native-provider mapping patterns are corroborating evidence only, not copied rules or backend associations. No new aliases, wildcard/prefix rules, inferred future revisions or imported/native families.
  • Codex, pro/cyber/research, Mythos, audio/realtime/customtools and embedding/inference variants are not captured. Haiku generations and GPT Luna/Sol/Terra/Astra profiles remain unknown rather than being joined without a reviewed lineage decision. An official lookup for gpt-5-codex-mini returned 404; it remains unknown. Opus 4.6 accounting membership does not override its independently staged reasoning refinement.
  • Recover the canonical owner of compiler-normalized maintained Claude tariff keys during pricing donor enumeration only. Runtime claude-sonnet-4.5 and its generated claude-sonnet-4-5 maintained price now get one canonical donor vote and the correct family. No request/operator/import separator matching is broadened.

Precise behavioral change

Of ten canonical Copilot IDs without applicable maintained prices, five have declared families. GPT-4o/o3's four members still have no shipped family donors, so backend estimates remain. gemini-3.1-pro-preview now uses the single eligible Copilot gemini-3.1-pro donor: 10,000 fresh input tokens change from 1.875 backend-estimated credits (46 shipped donors; input median USD 1.875/MTok) to 2 family-estimated credits (one donor; USD 2/MTok). Output/reasoning are USD 12/MTok, cache read USD 0.2/MTok, and cache write remains unavailable. These are accounting estimates, not verified or corrected prices.

The other five missing-price identities stay unknown. Other reviewed families become available to median selection when exact pricing is absent under applicable captures; exact prices and configured defaults still win. Backend/provider/publisher separation, source precedence, freshness, structured-tariff channel/deployment/effective-time checks, prompt tiers, retirement exclusions, exact budgets and request pins are preserved. Existing legacy flat maintained associations are not promoted into new scoped tariffs.

Family grouping establishes no availability, deployability, policy permission, reasoning/capability support, protocol compatibility or replacement eligibility. Exact IDs, aliases, query/date/prefix policies, routing, recovery, retirement and invocation behavior remain unchanged. Active maintained rates, supported/retired projections and model/API mappings are byte-for-byte unchanged. Only the catalogue revision changes in the fallback-price asset. No staged price/reasoning/translation/harness/overlay activation.

Validation

  • 11 root suites / 364 tests passed: shared naming/pricing/schema/eligibility, Copilot host validation, canonical compiler, publication, import and maintenance. Final same-model regression explicitly strips only families from the shipped naming view to verify the before/after charge.
  • 20 affected proxy suites / 559 tests passed: real bundled family selection, same-backend deduplication, exception exclusions, family-to-backend/no-donor fallback, fresh/scoped/effective/retired donors, strict tier thresholds, captured state, exact budget boundaries, matching/policy/routing/recovery/selector/eligibility invariants and existing pricing/median/exact-accounting suites.
  • Provider-free HTTP/WebSocket pricing smoke passed in all four existing executions: off-tree Docker application layout and extracted npm package, each with shipped assets and real compiler-generated pricing fixtures. Tests require zero network calls; they verify bundled family charges/basis, reflection, specialized-donor exclusion and exact budgets, not just metadata presence.
  • npm run build, npm run type-check, npm run models:check, changed-document Markdown lint and git diff --check passed. Root lint and commit hooks passed with zero errors (existing warnings remain). Source comparison verified that edits only add identity.family; active price, supported/retired and mapping projections are unchanged.

No live provider inference, workflow dispatch, container/VM execution or merge performed. Parent checkout and prior paused worktrees were preserved.

Relates to #10290, #10294 and #10295. This bounded PR does not complete or close those phases.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI adaptive review requested due to automatic review settings November 8, 2026 16:21
@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Documentation Preview

Documentation has been built for this PR.

Download preview artifact

To view locally:

  1. Download the docs-preview-pr-11312 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit 6ebce43

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 tests and packaging smoke assertions use an unpinned clock, so tariff and observation expirations will cause failures without source changes.

2 open issues
What changed in this PR

This PR activates declared-family pricing estimates in AWF’s existing accounting system by assigning 22 Copilot identities to nine reviewed families. It preserves request naming and execution selection while leaving 34 identities without declared families.

Changes:

  • Adds explicit family membership and regenerates compiler-owned catalogue and naming projections.
  • Deduplicates maintained Claude pricing donors using their canonical identities.
  • Adds accounting regressions, packaging smoke checks, and documentation of membership evidence and pricing boundaries.
File Description
src/​model-information.naming.generated.json Adds families to the host naming projection.
shared/​model-information/​target.generated.json Updates staged catalogue families and revision.
shared/​model-information/​sources/​copilot-main.json Declares reviewed GPT and o3 families.
shared/​model-information/​sources/​copilot-gemini.json Declares the Gemini 3.1 Pro family.
shared/​model-information/​sources/​copilot-claude.json Declares reviewed Claude families.
shared/​model-information/​naming.generated.json Adds families to shared naming data.
shared/​model-information/​manifest.generated.json Updates the catalogue revision.
shared/​model-information/​catalog.generated.json Projects maintained family membership.
shared/​model-information/​baseline-to-target.generated.json Refreshes staged differences with family metadata.
scripts/​model-information/​compile.test.ts Checks family coverage and unchanged identity resolution.
scripts/​ci/​smoke-pricing-resolution.cjs Checks packaged family accounting and budget boundaries.
docs/​model-families.md Records membership evidence, exclusions, and accounting effects.
docs/​model-catalogue-publication.md Links the family ledger and clarifies its scope.
containers/​api-proxy/​model-information.naming.generated.json Adds families to proxy naming data.
containers/​api-proxy/​model-information.fallback-pricing.generated.json Updates revision metadata without changing rates.
containers/​api-proxy/​guards/​bundled-family-pricing.test.js Covers family estimates, donor eligibility, and accounting invariants.
containers/​api-proxy/​catalogue-pricing.js Recovers canonical Claude identities during maintained-donor enumeration.

Review effort: Balanced (auto)

Comment thread scripts/ci/smoke-pricing-resolution.cjs Resolved
lpcox and others added 2 commits November 8, 2026 08:26
Refactor pricing resolution tests to use a fixed date for consistency.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Mock Date.now() to return a fixed timestamp for tests.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

@lpcox Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

⚠️ Coverage Regression Detected

This PR decreases test coverage. Please add tests to maintain coverage levels.

Overall Coverage

Metric Base PR Delta
Lines 93.81% 93.80% 📉 -0.01%
Statements 92.36% 92.35% 📉 -0.01%
Functions 93.02% 93.02% ➡️ +0.00%
Branches 86.69% 86.68% ➡️ -0.01%
📁 Per-file Coverage Changes (1 files)
File Lines (Before → After) Statements (Before → After)
src/nvx/one-shot-process.ts 84.0% → 81.5% (-2.47%) 76.8% → 74.7% (-2.11%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

@lpcox

lpcox commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator Author

@copilot merge main, resolve conflicts, and fix this failing ci check https://github.com/github/gh-aw-firewall/actions/runs/42499911880/job/128790202901?pr=11312

Copilot AI added 2 commits November 8, 2026 17:16
…-families

# Conflicts:
#	containers/api-proxy/model-information.fallback-pricing.generated.json
#	shared/model-information/baseline-to-target.generated.json
#	shared/model-information/catalog.generated.json
#	shared/model-information/manifest.generated.json
#	shared/model-information/target.generated.json

Copilot AI commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

@copilot merge main, resolve conflicts, and fix this failing ci check https://github.com/github/gh-aw-firewall/actions/runs/42499911880/job/128790202901?pr=11312

Merged main and resolved the generated-catalogue conflicts in merge commit 0986ef1. Fixed the Link Check in 9029fe3 by excluding only the three OpenAI URLs returning 403; the rerun passed: https://github.com/github/gh-aw-firewall/actions/runs/42504302573

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

⚠️ Coverage Regression Detected

This PR decreases test coverage. Please add tests to maintain coverage levels.

Overall Coverage

Metric Base PR Delta
Lines 93.81% 93.80% 📉 -0.01%
Statements 92.35% 92.35% ➡️ +0.00%
Functions 93.02% 93.02% ➡️ +0.00%
Branches 86.69% 86.69% ➡️ +0.00%
📁 Per-file Coverage Changes (2 files)
File Lines (Before → After) Statements (Before → After)
src/commands/main-action.ts 92.0% → 91.7% (-0.25%) 91.7% → 91.4% (-0.24%)
src/enclave/host-executor-server.ts 91.2% → 91.2% (+0.00%) 89.8% → 90.1% (+0.29%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

@lpcox
lpcox merged commit 198f319 into main Nov 8, 2026
36 of 37 checks passed
@lpcox
lpcox deleted the lpcox-canonical-model-families branch November 8, 2026 17:48
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