Skip to content

feat: add pricing warnings for missing model entries in pricing tables #36

Merged
Gsbreddy merged 3 commits into
mainfrom
2026-05-02-xco2
May 2, 2026
Merged

feat: add pricing warnings for missing model entries in pricing tables #36
Gsbreddy merged 3 commits into
mainfrom
2026-05-02-xco2

Conversation

@Gsbreddy

@Gsbreddy Gsbreddy commented May 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

Why

Changes

Validation

Run the same checks as CI (see .github/workflows/ci.yml) before opening / updating the PR. Cursor loads .cursor/rules/flightdeck-ci-artifacts.mdc as a short reminder for static/ + schemas/ gates.

  • uv sync --frozen --extra dev
  • uv run python -m ruff check src tests
  • uv run python -m pytest
  • uv run python scripts/generate_schemas.py then git diff --exit-code schemas/ (if models/schemas touched)
  • cd web && npm ci && npm run build && cd .. && git diff --exit-code src/flightdeck/server/static/ (if web/ sources, Vite config, or web/ deps / lockfile change the production bundle)
  • cd web && npx playwright install chromium && npm run test:e2e (if web/ changed)
  • uv run flightdeck-quickstart-verify
  • uv run flightdeck --help

With pip / venv only, use python -m … equivalents from DEVELOPMENT.md.

Schema / Storage Impact

  • None
  • Schema change
  • Storage change

Risk

Review

  • Requested review from maintainers (CODEOWNERS@flightdeckdev/maintainers on the org repo). On a fork, GitHub may not auto-request; use Reviewers on the PR.
  • PR is small and scoped (see AGENTS.md); linked issue or release note intent noted if helpful.

Notes

zendaya and others added 3 commits May 2, 2026 20:31
- Enhanced `DiffOutcome` to include `pricing_warnings`, a tuple of strings indicating when a model is not found in the baseline or candidate pricing tables.
- Updated `compute_diff` function to populate `pricing_warnings` based on the presence of entries in the pricing tables.
- Modified the `post_diff` route to return `pricing_warnings` in the response.
- Introduced a new `MetricsPayload` type in the API to reflect the updated response structure.
- Updated the web UI to display pricing warnings when applicable, enhancing user awareness of potential issues.
- Added tests to verify the correct behavior of pricing warnings in various scenarios, including when models are missing from pricing tables.

This change improves the diagnostic capabilities of the system, allowing users to better understand pricing discrepancies during release diffs.
@Gsbreddy Gsbreddy merged commit 11af6af into main May 2, 2026
2 checks passed
@Gsbreddy Gsbreddy deleted the 2026-05-02-xco2 branch May 2, 2026 18:34
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