Repository navigation
test: Characterize model metadata behavior and drift - #10301
Conversation
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
There was a problem hiding this comment.
🟡 Changes recommended
Material characterization gaps remain against the linked acceptance criteria.
4 open issues
What changed in this PR
Establishes a behavioral baseline for ADR 0004’s model-metadata consolidation without changing runtime behavior.
Changes:
- Adds host and proxy identity and drift fixtures.
- Characterizes pricing precedence, accounting, and metadata projections.
- Documents the baseline inventory and known gaps.
| File | Description |
|---|---|
src/copilot-model.test.ts |
Adds host validation and retirement cases. |
src/copilot-model-catalog-sync.test.ts |
Records catalog gaps and clarifies mapping-drift failures. |
docs/adr/0004-model-information-management.md |
Documents the Gate 1 baseline and handoff. |
containers/api-proxy/model-metadata-characterization.test.js |
Adds identity, pricing, reflection, and persistence fixtures. |
Review effort: Max
| ])('%s: credits / runtime / provider-prefix normalization', (model, credits, runtime, stripped) => { | ||
| expect(creditsCanonicalize(model)).toBe(credits); | ||
| expect(runtimeCanonicalize(model)).toBe(runtime); | ||
| expect(stripRedundantProviderPrefix(model, 'copilot')).toBe(stripped); | ||
| }); |
| ['claude-sonnet-4-6-20261015', 2], | ||
| ['claude-sonnet-4-6?effort=high', null], | ||
| ['claude-sonnet-4-6-other', 2], | ||
| ])('operator overlay for %s: separator, date, suffix and query differences', (model, input) => { | ||
| process.env.AWF_API_PROXY_PROVIDERS = JSON.stringify({ | ||
| copilot: { models: { 'claude-sonnet-4-6': { cost: { | ||
| input: 0.000002, output: 0.000004, | ||
| } } } }, | ||
| }); |
| it.each([ | ||
| ['gpt-5.4-mini', 'openai'], | ||
| ['gpt-5.5', 'openai'], | ||
| ['gpt-6-sol', 'openai'], | ||
| ['claude-haiku-5-5', 'anthropic'], | ||
| ])('#10030: %s currently has no maintained routing choices', (model, provider) => { | ||
| expect(lookupModelRoutingMetadata(model, provider)).toBeNull(); | ||
| }); |
|
@copilot address review feedback |
|
✅ Copilot review passed with no inline comments. @copilot Add the |
Documentation PreviewDocumentation has been built for this PR. To view locally:
Built from commit 4ba227b |
Fixed in |
|
| Metric | Base | PR | Delta |
|---|---|---|---|
| Lines | 93.45% | 93.40% | 📉 -0.05% |
| Statements | 92.02% | 91.96% | 📉 -0.06% |
| Functions | 91.18% | 91.15% | 📉 -0.03% |
| Branches | 86.01% | 85.93% | 📉 -0.08% |
📁 Per-file Coverage Changes (4 files)
| File | Lines (Before → After) | Statements (Before → After) |
|---|---|---|
src/services/agent-volumes/nested-mountpoints.ts |
92.8% → 82.0% (-10.85%) | 90.7% → 80.2% (-10.55%) |
src/fs-utils.ts |
97.5% → 96.3% (-1.24%) | 97.5% → 96.3% (-1.24%) |
src/config-writer.ts |
90.0% → 89.9% (-0.09%) | 89.7% → 89.6% (-0.08%) |
src/services/optional-services.ts |
100.0% → 100.0% (+0.00%) | 97.1% → 97.2% (+0.10%) |
✨ New Files (1 files)
src/services/gemini-settings-service.ts: 100.0% lines
Coverage comparison generated by scripts/ci/compare-coverage.ts

ADR 0004 needs a measured baseline before model metadata is consolidated. Current consumers differ in model identity, pricing, and projection behavior, and the gaps identified in #10029 and #10030 remain visible.
/reflect, and persistedmodels.jsonbehavior.