Repository navigation
fix: populate reviewed canonical accounting model families - #11312
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit 6ebce43 |
There was a problem hiding this comment.
🟡 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)
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>
|
✅ Copilot review passed with no inline comments. @lpcox Add the |
|
| 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
|
@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 |
…-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
Merged |
|
| 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

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.
docs/model-families.mdenumerates every exact member, official naming evidence, recorded lineage provenance, exceptions and unknowns.gpt-5-codex-minireturned 404; it remains unknown. Opus 4.6 accounting membership does not override its independently staged reasoning refinement.claude-sonnet-4.5and its generatedclaude-sonnet-4-5maintained 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-previewnow uses the single eligible Copilotgemini-3.1-prodonor: 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
npm run build,npm run type-check,npm run models:check, changed-document Markdown lint andgit diff --checkpassed. Root lint and commit hooks passed with zero errors (existing warnings remain). Source comparison verified that edits only addidentity.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.