Skip to content

test: Characterize model metadata behavior and drift - #10301

Merged
lpcox merged 4 commits into
mainfrom
copilot/adr-0004-characterize-model-metadata
Oct 19, 2026
Merged

lpcox merged 4 commits into
mainfrom
copilot/adr-0004-characterize-model-metadata

Conversation

Copilot AI commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Identity and drift: Add host and proxy fixtures for prefixes, separators, case, date suffixes, queries, retirement, exact versus family matching, and mapping-copy drift.
  • Pricing and projections: Capture tariff precedence, incomplete-runtime merging, tier boundaries, provenance, /reflect, and persisted models.json behavior.
  • Handoff: Record the fixture inventory and unresolved model gaps in the ADR for later migration gates. Runtime behavior is unchanged.

Copilot AI linked an issue Oct 19, 2026 that may be closed by this pull request
7 tasks done
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Copilot AI changed the title [WIP] Establish baseline for model metadata behavior and drift test: Characterize model metadata behavior and drift Oct 19, 2026
Copilot AI requested a review from lpcox October 19, 2026 19:04
@lpcox
lpcox marked this pull request as ready for review October 19, 2026 19:04
Copilot AI max review requested due to automatic review settings October 19, 2026 19:04

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

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

Comment on lines +65 to +69
])('%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);
});
Comment on lines +104 to +112
['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,
} } } },
});
Comment on lines +129 to +136
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();
});
@lpcox

lpcox commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

Copilot AI commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@copilot address review feedback

Addressed in 7dfb1d7. Added the requested characterization fixtures and updated the ADR handoff; targeted proxy and host model-catalog tests pass.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Copilot review passed with no inline comments.

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

@github-actions

github-actions Bot commented Oct 19, 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-10301 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit 4ba227b

@lpcox

lpcox commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

Copilot AI commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

@copilot fix failing ci checks https://github.com/github/gh-aw-firewall/actions/runs/39316719964/job/118283005101?pr=10301 https://github.com/github/gh-aw-firewall/actions/runs/39316719981/job/118283...

Fixed in 5a636c8. The characterization fixtures and ADR now match the current main merge-base pricing: Claude 5.5 has curated tariffs, while four named models remain unpriced. Both targeted suites pass against that merged-base baseline.

@github-actions

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.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

@lpcox
lpcox merged commit a4f8508 into main Oct 19, 2026
30 of 32 checks passed
@lpcox
lpcox deleted the copilot/adr-0004-characterize-model-metadata branch October 19, 2026 21:00
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.

ADR 0004 phase 1: characterize model metadata behavior and drift

3 participants