Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(autoresearch): fit challengers that enter a shadow set (#111603)

posthog[bot]96dde23a8994
diff --git a/products/autoresearch/backend/facade/api.py b/products/autoresearch/backend/facade/api.py
index 5a656ee37baf..d6d824308a8e 100644
--- a/products/autoresearch/backend/facade/api.py
+++ b/products/autoresearch/backend/facade/api.py
@@ -48,6 +48,7 @@ from ..models import (
)
from ..training import artifacts as artifact_store
from ..training.recipe_validation import RecipeValidationError, validate_feature_sql, validate_recipe
+from ..training.shadow_set import shadow_set_ids
from .contracts import (
ArtifactContent,
ArtifactDeleteResult,
@@ -158,7 +159,7 @@ def _pipeline_with_champion(row: AutoresearchPipeline) -> Pipeline:
)
-def _model_to_contract(row: AutoresearchModel) -> Model:
+def _model_to_contract(row: AutoresearchModel, *, in_shadow_set: bool) -> Model:
return Model(
id=row.id,
pipeline=row.pipeline_id,
@@ -179,6 +180,7 @@ def _model_to_contract(row: AutoresearchModel) -> Model:
archived_at=row.archived_at,
created_at=row.created_at,
updated_at=row.updated_at,
+ in_shadow_set=in_shadow_set,
)
@@ -652,7 +654,9 @@ def list_models(team_id: int, *, pipeline_id: str | UUID | None, offset: int, li
if pipeline_id:
qs = qs.filter(pipeline_id=_as_uuid(pipeline_id))
count = qs.count()
- return [_model_to_contract(row) for row in qs[offset : offset + limit]], count
+ rows = list(qs[offset : offset + limit])
+ in_shadow = shadow_set_ids(team_id, {row.pipeline_id for row in rows})
+ return [_model_to_contract(row, in_shadow_set=row.pk in in_shadow) for row in rows], count
def get_model(team_id: int, model_id: str | UUID, *, pipeline_id: str | UUID | None = None) -> Model | None:
@@ -663,7 +667,9 @@ def get_model(team_id: int, model_id: str | UUID, *, pipeline_id: str | UUID | N
if pipeline_id:
qs = qs.filter(pipeline_id=_as_uuid(pipeline_id))
row = qs.first()
- return _model_to_contract(row) if row else None
+ if row is None:
+ return None
+ return _model_to_contract(row, in_shadow_set=row.pk in shadow_set_ids(team_id, {row.pipeline_id}))
# ── Operational runs ───────────────────────────────────────────────────────
diff --git a/products/autoresearch/backend/facade/contracts.py b/products/autoresearch/backend/facade/contracts.py
index e2bd5e7b4c34..5accdca3d245 100644
--- a/products/autoresearch/backend/facade/contracts.py
+++ b/products/autoresearch/backend/facade/contracts.py
@@ -127,6 +127,7 @@ class Model:
archived_at: datetime | None
created_at: datetime
updated_at: datetime
+ in_shadow_set: bool
@dataclass(frozen=True)
diff --git a/products/autoresearch/backend/inference/AGENTS.md b/products/autoresearch/backend/inference/AGENTS.md
index 89878eed883d..031a626bc563 100644
--- a/products/autoresearch/backend/inference/AGENTS.md
+++ b/products/autoresearch/backend/inference/AGENTS.md
@@ -89,7 +89,7 @@ Before suspecting the model, check that features, labels, and population all key
- **Scheduled by** — `AutoresearchInferenceWorkflow` and `activity_run_inference` in `../temporal/workflows.py`.
- **Run headlessly by** — `autoresearch_score` (see `../management/AGENTS.md`), which calls the same functions directly.
-- **Called by training** — `fit_champion_model()` is invoked from the completion path in `../training/promotion.py`. It lives here because it shares the materialization and sandbox machinery with scoring, not because it is part of the inference loop.
+- **Called by training** — `fit_champion_model()` is invoked from the completion path in `../training/promotion.py`, for a promoted champion and for a challenger that enters the shadow set (`../training/shadow_set.py`). Scoring still reads the champion only. It lives here because it shares the materialization and sandbox machinery with scoring, not because it is part of the inference loop.
- **Reads** — `AutoresearchModel` (champion role) and the bundle in object storage via `../training/artifacts.py`.
- **Feeds** — `../evaluation/online_validation.py`, which reads the emitted events back once their horizon has elapsed.
- **Population and anchors** — `../dataset/labeling.py`, shared with training so the cutoff contract cannot drift.
diff --git a/products/autoresearch/backend/presentation/views/serializers.py b/products/autoresearch/backend/presentation/views/serializers.py
index 168d04ed8ce3..bbfbb0f4ccdc 100644
--- a/products/autoresearch/backend/presentation/views/serializers.py
+++ b/products/autoresearch/backend/presentation/views/serializers.py
@@ -834,6 +834,13 @@ class AutoresearchModelSerializer(DataclassSerializer):
)
created_at = serializers.DateTimeField(read_only=True)
updated_at = serializers.DateTimeField(read_only=True)
+ in_shadow_set = serializers.BooleanField(
+ read_only=True,
+ help_text=(
+ "True if this model is in the pipeline's shadow set: the champion, the previous champion, "
+ "and up to 3 recent fitted challengers with distinct recipes."
+ ),
+ )
class Meta:
dataclass = Model
@@ -857,6 +864,7 @@ class AutoresearchModelSerializer(DataclassSerializer):
"archived_at",
"created_at",
"updated_at",
+ "in_shadow_set",
]
diff --git a/products/autoresearch/backend/tests/test_api.py b/products/autoresearch/backend/tests/test_api.py
index 3f9e3216ed2f..154f0aab0a61 100644
--- a/products/autoresearch/backend/tests/test_api.py
+++ b/products/autoresearch/backend/tests/test_api.py
@@ -850,6 +850,7 @@ class TestAutoresearchPipelineAPI(TeamScopedTestMixin, APIBaseTest):
assert resp.status_code == status.HTTP_200_OK
assert resp.json()["count"] == 1
assert resp.json()["results"][0]["role"] == "champion"
+ assert resp.json()["results"][0]["in_shadow_set"] is True
# The agent brief tells agents to look up a champion's bundle via source_training_run.
assert resp.json()["results"][0]["source_training_run"] == str(training_run.id)
diff --git a/products/autoresearch/backend/training/AGENTS.md b/products/autoresearch/backend/training/AGENTS.md
index d37bae2bdbff..5dca3543d1bc 100644
--- a/products/autoresearch/backend/training/AGENTS.md
+++ b/products/autoresearch/backend/training/AGENTS.md
@@ -32,7 +32,13 @@ The other half is `../inference/`, which consumes what this package produces and
The bundle is written once per run, so a losing iteration can overwrite it: the uploaded `features.sql` must match the `feature_sql` recorded by the selected iteration, whitespace aside, or promotion raises rather than publishing a champion whose recipe and score describe other code.
`complete_training_run()` reads the bundle and enters the run's `team_scope()` before it opens the transaction, because the `TaskRun` safety net calls it from a worker thread with no request scope, and object-storage calls must not run under the row lock.
The agent's `report_notebook_short_id` goes into the run summary only if that notebook exists in the run's team. A bad id or a failed check stores an empty value and never fails completion.
- Only a promoted model is fitted. A challenger's `model.pkl` would never be read, because inference serves the champion and no path promotes a challenger row later.
+ A promoted bundle-backed model is fitted. A bundle-backed challenger is fitted only when it enters the shadow set (see `shadow_set.py`). The fit runs after commit, and a failed fit only logs: it never changes the completion result.
+ A successful fit sets `metrics.model_fitted`. A challenger without it stays out of the shadow set.
+- `shadow_set.py`
+ `shadow_set(pipeline)` computes the models worth scoring side by side. Nothing stores the set.
+ It holds the champion, the previous champion (the newest archived bundle-backed row with `promoted_at` set), and up to `SHADOW_CHALLENGER_LIMIT` (3) fitted bundle-backed challengers. No two members share a `recipe_hash`.
+ A challenger younger than `horizon_days + SHADOW_MIN_MATURED_DATES` days keeps its place, so a new challenger cannot displace it. Past that age, a newer challenger displaces it. A challenger that does not enter at completion is never fitted, so it cannot enter later.
+ The models API exposes membership as `in_shadow_set`. Nothing scores or promotes from the set yet.
- `artifacts.py`
Object storage for the bundle: `features.sql`, `train.py`, `predict.py`, plus the fitted `model.pkl` written at completion.
Keys are prefixed by team / pipeline / training-run (`bundle_prefix()`), so history is preserved naturally and bundles can never collide across tenants.
@@ -64,7 +70,7 @@ Two things routinely surprise people:
- **Launched by** — the `train` API action in `../presentation/views/views.py`, the `autoresearch_train` management command, and `activity_kickoff_training` in `../temporal/workflows.py`.
- **Finalized by** — the `complete` action on the training-run viewset, or `ingestion.py` via the `TaskRun` `post_save` signal wired in `../apps.py`.
-- **Consumed by** — `../inference/`, which reads the champion's `artifact_prefix` and runs its bundle. `fit_champion_model()` in `../inference/sandbox.py` is what actually fits and persists `model.pkl` at completion time.
+- **Consumed by** — `../inference/`, which reads the champion's `artifact_prefix` and runs its bundle. `fit_champion_model()` in `../inference/sandbox.py` is what actually fits and persists `model.pkl` at completion time, for the champion and for a challenger that enters the shadow set.
- **Agent-facing surface** — the `autoresearch-training-runs-*` MCP tools in `../../mcp/tools.yaml`, backed by the viewsets in `../presentation/views/views.py`. The sandbox agent has no other way to write.
- **Labels and features** — `../dataset/labeling.py` builds the training population the bundle is fitted against.
diff --git a/products/autoresearch/backend/training/promotion.py b/products/autoresearch/backend/training/promotion.py
index e83a065b2f90..6ae39c9b9f04 100644
--- a/products/autoresearch/backend/training/promotion.py
+++ b/products/autoresearch/backend/training/promotion.py
@@ -39,6 +39,7 @@ from products.autoresearch.backend.models import (
)
from products.autoresearch.backend.training import artifacts
from products.autoresearch.backend.training.recipe_validation import RecipeValidationError, validate_model_class
+from products.autoresearch.backend.training.shadow_set import FITTED_METRIC_KEY, shadow_set
from products.notebooks.backend.facade import api as notebooks_facade
logger = structlog.get_logger(__name__)
@@ -360,14 +361,15 @@ def _activate_pipeline(pipeline: AutoresearchPipeline) -> None:
pipeline.save(update_fields=["status", "updated_at"])
-def _schedule_champion_fit(
+def _schedule_model_fit(
*, pipeline: AutoresearchPipeline, prefix: str, training_run: AutoresearchTrainingRun, model_id: str
) -> None:
- """The train run produces the serving artifact: fit the champion and persist model.pkl so
+ """The train run produces the serving artifact: fit the model and persist model.pkl so
predict runs are pure inference. Deferred to on_commit, because the sandbox and the
object-storage write are side effects that must not run inside the atomic block, and the
- fit only makes sense once the row is durably committed. A failure leaves the champion
- without a model.pkl, and every scoring run then fails until a later promotion fits one.
+ fit only makes sense once the row is durably committed. A failed champion fit leaves the
+ champion without a model.pkl, and every scoring run then fails until a later promotion
+ fits one. A failed challenger fit keeps the challenger out of the shadow set.
The fit labels at the run's anchor instant, so it sees the anchor set the agent scored."""
training_run_id = str(training_run.id)
anchor_ts = training_run.anchor_ts
@@ -380,12 +382,21 @@ def _schedule_champion_fit(
fit_champion_model(
team=pipeline.team, pipeline=pipeline, prefix=prefix, anchor_ts=anchor_ts, model_id=model_id
)
+ _mark_fitted(team_id=pipeline.team_id, model_id=model_id)
except Exception:
- logger.exception("autoresearch_champion_fit_failed", training_run_id=training_run_id, prefix=prefix)
+ logger.exception("autoresearch_model_fit_failed", training_run_id=training_run_id, prefix=prefix)
transaction.on_commit(_fit_after_commit)
+def _mark_fitted(*, team_id: int, model_id: str) -> None:
+ model = AutoresearchModel.objects.for_team(team_id).filter(pk=model_id).first()
+ if model is None:
+ return
+ model.metrics = {**(model.metrics or {}), FITTED_METRIC_KEY: True}
+ model.save(update_fields=["metrics", "updated_at"])
+
+
@transaction.atomic
def _finalize_under_lock(
training_run: AutoresearchTrainingRun,
@@ -498,12 +509,14 @@ def _finalize_under_lock(
if promoted:
_activate_pipeline(pipeline)
- # A rejected challenger is not fitted: inference reads the champion only, and no path
- # promotes a challenger row later, so its fit would cost a sandbox run for nothing.
- if artifact_prefix:
- _schedule_champion_fit(
- pipeline=pipeline, prefix=artifact_prefix, training_run=training_run, model_id=str(model.pk)
- )
+ # A challenger is fitted only when it enters the shadow set, because nothing else loads
+ # its model.pkl.
+ if artifact_prefix and (
+ promoted or any(member.pk == model.pk for member in shadow_set(pipeline, now=now, pending_fit=model.pk))
+ ):
+ _schedule_model_fit(
+ pipeline=pipeline, prefix=artifact_prefix, training_run=training_run, model_id=str(model.pk)
+ )
return {
"promoted": promoted,
diff --git a/products/autoresearch/backend/training/shadow_set.py b/products/autoresearch/backend/training/shadow_set.py
new file mode 100644
index 000000000000..70c2b5799663
--- /dev/null
+++ b/products/autoresearch/backend/training/shadow_set.py
@@ -0,0 +1,90 @@
+"""The shadow set: the models of a pipeline that are worth scoring side by side.
+
+The set is computed from the model rows, never stored. Realized results can only compare
+models that score the same people on the same days, so a challenger needs a fitted
+``model.pkl`` before it can enter.
+"""
+
+from collections.abc import Iterable
+from datetime import datetime, timedelta
+from uuid import UUID
+
+from django.db.models import F
+from django.utils import timezone as django_timezone
+
+from products.autoresearch.backend.models import AutoresearchModel, AutoresearchPipeline
+
+SHADOW_CHALLENGER_LIMIT = 3
+# A challenger stays in the set until this many prediction dates have matured past its
+# horizon, so a long-horizon model collects realized evidence before a newer one displaces it.
+SHADOW_MIN_MATURED_DATES = 7
+# Set in a model's metrics when its model.pkl is fitted. A challenger without it has no
+# artifact that scoring could load.
+FITTED_METRIC_KEY = "model_fitted"
+
+
+def shadow_set(
+ pipeline: AutoresearchPipeline, *, now: datetime | None = None, pending_fit: UUID | None = None
+) -> list[AutoresearchModel]:
+ """
+ Return the champion, the previous champion, and up to ``SHADOW_CHALLENGER_LIMIT``
+ challengers, newest first. No two members share a ``recipe_hash``.
+
+ Only a bundle-backed model with a fitted ``model.pkl`` qualifies as a challenger.
+ ``pending_fit`` names a challenger whose fit is not scheduled yet, so completion can ask
+ whether the fit would put it in the set.
+ """
+ now = now or django_timezone.now()
+ models = AutoresearchModel.objects.for_team(pipeline.team_id).filter(pipeline=pipeline)
+
+ members: list[AutoresearchModel] = []
+ champion = models.filter(role=AutoresearchModel.Role.CHAMPION).first()
+ if champion is not None:
+ members.append(champion)
+ previous = (
+ models.filter(role=AutoresearchModel.Role.ARCHIVED, promoted_at__isnull=False)
+ .exclude(artifact_prefix="")
+ .order_by(F("archived_at").desc(nulls_last=True), "-promoted_at")
+ .first()
+ )
+ if previous is not None and previous.recipe_hash not in {m.recipe_hash for m in members}:
+ members.append(previous)
+
+ challengers = [
+ model
+ for model in models.filter(role=AutoresearchModel.Role.CHALLENGER)
+ .exclude(artifact_prefix="")
+ .order_by("-created_at")
+ if model.pk == pending_fit or (model.metrics or {}).get(FITTED_METRIC_KEY)
+ ]
+ members.extend(_select_challengers(challengers, pipeline=pipeline, now=now, taken={m.recipe_hash for m in members}))
+ return members
+
+
+def _select_challengers(
+ newest_first: list[AutoresearchModel], *, pipeline: AutoresearchPipeline, now: datetime, taken: set[str]
+) -> list[AutoresearchModel]:
+ """
+ A challenger younger than its minimum shadow age keeps its place, so these fill the set
+ first, in the order they entered. Older challengers fill what is left, newest first, so a
+ new challenger displaces a matured one.
+ """
+ entry_cutoff = now - timedelta(days=pipeline.horizon_days + SHADOW_MIN_MATURED_DATES)
+ protected = [model for model in reversed(newest_first) if model.created_at > entry_cutoff]
+ matured = [model for model in newest_first if model.created_at <= entry_cutoff]
+
+ chosen: list[AutoresearchModel] = []
+ seen = set(taken)
+ for model in [*protected, *matured]:
+ if len(chosen) == SHADOW_CHALLENGER_LIMIT:
+ break
+ if model.recipe_hash in seen:
+ continue
+ seen.add(model.recipe_hash)
+ chosen.append(model)
+ return sorted(chosen, key=lambda model: model.created_at, reverse=True)
+
+
+def shadow_set_ids(team_id: int, pipeline_ids: Iterable[UUID]) -> set[UUID]:
+ pipelines = AutoresearchPipeline.objects.for_team(team_id).filter(pk__in=set(pipeline_ids))
+ return {model.pk for pipeline in pipelines for model in shadow_set(pipeline)}
diff --git a/products/autoresearch/backend/training/test_promotion.py b/products/autoresearch/backend/training/test_promotion.py
index aee4e2399ec0..1d1bcfc1dc1a 100644
--- a/products/autoresearch/backend/training/test_promotion.py
+++ b/products/autoresearch/backend/training/test_promotion.py
@@ -23,6 +23,7 @@ from products.autoresearch.backend.models import (
from products.autoresearch.backend.testing import TeamScopedTestMixin
from products.autoresearch.backend.training.artifacts import ArtifactBundle, InvalidArtifactContent, PartialBundle
from products.autoresearch.backend.training.promotion import PromotionError, complete_training_run
+from products.autoresearch.backend.training.shadow_set import shadow_set
from products.autoresearch.backend.training.stub import run_stub_training
from products.notebooks.backend.facade import api as notebooks_facade
@@ -374,9 +375,9 @@ class TestCompleteTrainingRun(TeamScopedTestMixin, BaseTest):
assert result["promoted"] is False
assert result["role"] == AutoresearchModel.Role.CHALLENGER
assert self._champion().holdout_score == 0.8
- # Inference reads the champion only, so fitting the rejected bundle would spend a
- # sandbox run on an artifact nothing loads.
- fit.assert_not_called()
+ # The bundle-backed challenger enters the shadow set, so it needs a model.pkl to score.
+ assert fit.call_args.kwargs["model_id"] == result["model_id"]
+ assert result["model_id"] in {str(m.pk) for m in shadow_set(self.pipeline)}
second.refresh_from_db()
# The next run reads this summary as the champion it has to beat.
assert second.summary["champion_model_class"] == "xgboost.XGBClassifier"
diff --git a/products/autoresearch/backend/training/test_shadow_set.py b/products/autoresearch/backend/training/test_shadow_set.py
new file mode 100644
index 000000000000..0f5f8bf05f21
--- /dev/null
+++ b/products/autoresearch/backend/training/test_shadow_set.py
@@ -0,0 +1,125 @@
+from datetime import timedelta
+
+from posthog.test.base import BaseTest
+
+from django.utils import timezone as django_timezone
+
+from parameterized import parameterized
+
+from products.autoresearch.backend.models import AutoresearchModel, AutoresearchPipeline
+from products.autoresearch.backend.testing import TeamScopedTestMixin
+from products.autoresearch.backend.training.shadow_set import FITTED_METRIC_KEY, shadow_set
+
+# (name, age in days, recipe_hash, bundle-backed, fitted)
+Challenger = tuple[str, int, str, bool, bool]
+
+
+class TestShadowSet(TeamScopedTestMixin, BaseTest):
+ def setUp(self):
+ super().setUp()
+ # horizon 7 + 7 matured dates: a challenger younger than 14 days keeps its place.
+ self.pipeline = AutoresearchPipeline.objects.create(
+ team=self.team, created_by=self.user, name="Test", target_event="$pageview", horizon_days=7
+ )
+ self.now = django_timezone.now()
+
+ def _model(
+ self,
+ name: str,
+ *,
+ role: str,
+ age_days: int,
+ recipe_hash: str,
+ bundle: bool = True,
+ fitted: bool = False,
+ promoted: bool = False,
+ ) -> AutoresearchModel:
+ created_at = self.now - timedelta(days=age_days)
+ model = AutoresearchModel.objects.create(
+ pipeline=self.pipeline,
+ role=role,
+ recipe_hash=recipe_hash,
+ model_recipe={},
+ artifact_prefix=f"bundles/{name}" if bundle else "",
+ metrics={FITTED_METRIC_KEY: True} if fitted else {},
+ agent_description=name,
+ promoted_at=created_at if promoted else None,
+ archived_at=self.now if role == AutoresearchModel.Role.ARCHIVED else None,
+ )
+ AutoresearchModel.objects.filter(pk=model.pk).update(created_at=created_at)
+ return model
+
+ @parameterized.expand(
+ [
+ (
+ "limit_of_three_keeps_the_newest",
+ [
+ ("c20", 20, "a", True, True),
+ ("c21", 21, "b", True, True),
+ ("c22", 22, "c", True, True),
+ ("c23", 23, "d", True, True),
+ ],
+ False,
+ ["champion", "c20", "c21", "c22"],
+ ),
+ (
+ "duplicate_recipes_and_the_champion_recipe_are_skipped",
+ [("c20", 20, "a", True, True), ("c21", 21, "a", True, True), ("c22", 22, "champ", True, True)],
+ False,
+ ["champion", "c20"],
+ ),
+ (
+ "previous_champion_is_included",
+ [("c20", 20, "a", True, True)],
+ True,
+ ["champion", "previous", "c20"],
+ ),
+ (
+ "minimum_shadow_age_keeps_earlier_entrants",
+ [
+ ("c0", 0, "a", True, True),
+ ("c1", 1, "b", True, True),
+ ("c2", 2, "c", True, True),
+ ("c3", 3, "d", True, True),
+ ],
+ False,
+ ["champion", "c1", "c2", "c3"],
+ ),
+ (
+ "a_newer_challenger_displaces_a_matured_one",
+ [
+ ("c1", 1, "a", True, True),
+ ("c20", 20, "b", True, True),
+ ("c21", 21, "c", True, True),
+ ("c22", 22, "d", True, True),
+ ],
+ False,
+ ["champion", "c1", "c20", "c21"],
+ ),
+ (
+ "recipe_only_and_unfitted_challengers_are_excluded",
+ [("recipe_only", 1, "a", False, True), ("unfitted", 2, "b", True, False), ("c3", 3, "c", True, True)],
+ False,
+ ["champion", "c3"],
+ ),
+ ]
+ )
+ def test_shadow_set_rules(self, _name, challengers: list[Challenger], with_previous: bool, expected: list[str]):
+ self._model("champion", role=AutoresearchModel.Role.CHAMPION, age_days=1, recipe_hash="champ", promoted=True)
+ if with_previous:
+ self._model(
+ "previous", role=AutoresearchModel.Role.ARCHIVED, age_days=30, recipe_hash="prev", promoted=True
+ )
+ # Archived without promotion: a challenger retired before it ever served.
+ self._model("never_served", role=AutoresearchModel.Role.ARCHIVED, age_days=10, recipe_hash="x")
+ for name, age_days, recipe_hash, bundle, fitted in challengers:
+ self._model(
+ name,
+ role=AutoresearchModel.Role.CHALLENGER,
+ age_days=age_days,
+ recipe_hash=recipe_hash,
+ bundle=bundle,
+ fitted=fitted,
+ )
+
+ assert [m.agent_description for m in shadow_set(self.pipeline, now=self.now)] == expected
diff --git a/products/autoresearch/frontend/generated/api.schemas.ts b/products/autoresearch/frontend/generated/api.schemas.ts
index a6d5871d14e5..4f592b795c3c 100644
--- a/products/autoresearch/frontend/generated/api.schemas.ts
+++ b/products/autoresearch/frontend/generated/api.schemas.ts
@@ -394,6 +394,8 @@ export interface AutoresearchModelApi {
archived_at?: string | null
readonly created_at: string
readonly updated_at: string
+ /** True if this model is in the pipeline's shadow set: the champion, the previous champion, and up to 3 recent fitted challengers with distinct recipes. */
+ readonly in_shadow_set: boolean
}
export interface PaginatedAutoresearchModelListApi {
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index 9cb1c80f5349..12bba1677738 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -13263,6 +13263,8 @@ export namespace Schemas {
archived_at?: string | null;
readonly created_at: string;
readonly updated_at: string;
+ /** True if this model is in the pipeline's shadow set: the champion, the previous champion, and up to 3 recent fitted challengers with distinct recipes. */
+ readonly in_shadow_set: boolean;
}
/**