Skip to content

fix(capabilities): preserve experiment freshness argument - #1284

Merged
stateofkate merged 1 commit into
stagingfrom
fix/capabilities-is-stale-experiment
Aug 18, 2026
Merged

fix(capabilities): preserve experiment freshness argument#1284
stateofkate merged 1 commit into
stagingfrom
fix/capabilities-is-stale-experiment

Conversation

@stateofkate

Copy link
Copy Markdown
Collaborator

Summary

  • accept experiment_id in is_stale
  • forward it to stale_reason so experiment-scoped capability cache entries remain isolated
  • add regression coverage for matching and mismatched experiments

Production impact

Capability analyzer jobs currently exhaust all retries with TypeError: is_stale() got an unexpected keyword argument 'experiment_id'. This restores the call contract used by _load_fresh_analysis.

Tests

  • uv run --project backend ruff check backend/api/services/agent_capabilities.py backend/tests/test_agent_capabilities_endpoint.py
  • uv run --project backend pytest backend/tests/test_agent_capabilities_endpoint.py -q -k 'is_stale or not_stale' (7 passed)

Full focused files: 31 passed, 1 unrelated existing failure in test_summary_warmup_regenerates_truthy_stale_xai_summary (expected one summary generation, observed two on current staging).

@vercel

vercel Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
oddish-app Ready Ready Preview Aug 18, 2026 6:41pm

@cursor

cursor Bot commented Aug 18, 2026

Copy link
Copy Markdown

Bugbot is paused — on-demand spend limit reached

Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.

A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.

@github-actions

Copy link
Copy Markdown
Contributor

Oddish preview

Commit: 1393dd723a3cdf44d0d34edaa6acab3e1385b8b0

Surface Link Target
Frontend https://pr-1284.oddish.app Vercel preview for 1393dd7
Backend oddish-pr-1284 oddish-pr-1284
Database project gmcjizhlhlxnirkrdphw project gmcjizhlhlxnirkrdphw

Vercel deployment URL: https://oddish-fyiw7atjk.oddish.app

Plan:

  • Frontend deploy: true
  • Backend deploy: true
  • Migrations: false

This comment is updated by the PR Preview workflow.

@stateofkate
stateofkate merged commit bed248b into staging Aug 18, 2026
17 checks passed
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.

1 participant