: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(autoresearch): add plain-language summaries next to agent notes (#115267)
posthog[bot]990b0d2fee63
diff --git a/products/autoresearch/backend/facade/api.py b/products/autoresearch/backend/facade/api.pyindex ece1d3a4a33c..46bd042a9bd4 100644--- a/products/autoresearch/backend/facade/api.py+++ b/products/autoresearch/backend/facade/api.py@@ -189,6 +189,7 @@ def _live_training_run(run: AutoresearchTrainingRun, iterations: list[Autoresearexperiment_count=len(iterations),best_holdout_score=max(scores) if scores else None,latest_agent_description=iterations[-1].agent_description if iterations else "",+ latest_summary=iterations[-1].summary if iterations else None,)@@ -312,7 +313,7 @@ def _pipeline_activity(for iteration in (AutoresearchIteration.objects.for_team(team_id).filter(training_run_id__in=[run.id for run in live_runs.values()])- .only("training_run_id", "holdout_score", "agent_description")+ .only("training_run_id", "holdout_score", "agent_description", "summary").order_by("training_run_id", "iteration_number")):live_iterations.setdefault(iteration.training_run_id, []).append(iteration)@@ -433,6 +434,7 @@ def _iteration_trail_entry(row: AutoresearchIteration) -> IterationTrailEntry:holdout_score=row.holdout_score,train_score=row.train_score,agent_description=row.agent_description,+ summary=row.summary,model_spec=row.model_spec or {},recipe_snapshot=row.recipe_snapshot or {},)@@ -450,6 +452,8 @@ def _training_run_to_contract(row: AutoresearchTrainingRun) -> TrainingRun:iteration_count=row.iteration_count,best_holdout_score=row.best_holdout_score,summary=row.summary or None,+ reader_summary=row.reader_summary,+ next_steps=row.next_steps,iterations=[_iteration_trail_entry(i) for i in row.iterations.all()],error=row.error,started_at=row.started_at,@@ -471,6 +475,7 @@ def _iteration_to_contract(row: AutoresearchIteration) -> Iteration:holdout_score=row.holdout_score,status=row.status,agent_description=row.agent_description,+ summary=row.summary,agent_confidence=row.agent_confidence,parent_suggestion=row.parent_suggestion_id,created_at=row.created_at,@@ -1350,6 +1355,7 @@ def record_iteration("holdout_score": fields.get("holdout_score"),"status": fields["status"],"agent_description": fields.get("agent_description", ""),+ "summary": fields.get("summary") or None,"agent_confidence": fields.get("agent_confidence"),}# A re-send that omits parent_suggestion keeps the attribution it recorded the first@@ -1409,6 +1415,8 @@ def complete_run(recommended_next: str = "",distillation: str = "",report_notebook_short_id: str = "",+ reader_summary: str | None = None,+ next_steps: list[str] | None = None,) -> TrainingRun:"""Finalize a run. Promotion is server-side, so an agent cannot set the champion."""# Promotion imports the inference sandbox, and with it pandas and pyarrow; the router imports@@ -1429,6 +1437,8 @@ def complete_run(recommended_next=recommended_next or "",distillation=distillation or "",report_notebook_short_id=report_notebook_short_id or "",+ reader_summary=reader_summary or None,+ next_steps=next_steps or None,)except PromotionError as exc:raise AutoresearchConflict(str(exc)) from excdiff --git a/products/autoresearch/backend/facade/contracts.py b/products/autoresearch/backend/facade/contracts.pyindex 705c7a5288c2..67842039477c 100644--- a/products/autoresearch/backend/facade/contracts.py+++ b/products/autoresearch/backend/facade/contracts.py@@ -80,6 +80,7 @@ class LiveTrainingRun:experiment_count: intbest_holdout_score: float | Nonelatest_agent_description: str+ latest_summary: str | None@dataclass(frozen=True)@@ -188,6 +189,7 @@ class IterationTrailEntry:holdout_score: float | Nonetrain_score: float | Noneagent_description: str+ summary: str | Nonemodel_spec: dict[str, Any]recipe_snapshot: dict[str, Any]@@ -230,6 +232,8 @@ class TrainingRun:iteration_count: intbest_holdout_score: float | Nonesummary: dict[str, Any] | None+ reader_summary: str | None+ next_steps: list[str] | Noneiterations: list[IterationTrailEntry]error: strstarted_at: datetime | None@@ -252,6 +256,7 @@ class Iteration:holdout_score: float | Nonestatus: stragent_description: str+ summary: str | Noneagent_confidence: float | Noneparent_suggestion: UUID | Nonecreated_at: datetimediff --git a/products/autoresearch/backend/migrations/0004_reader_summaries.py b/products/autoresearch/backend/migrations/0004_reader_summaries.pynew file mode 100644index 000000000000..c8925fc1bd11--- /dev/null+++ b/products/autoresearch/backend/migrations/0004_reader_summaries.py@@ -0,0 +1,27 @@+# Generated by Django 5.2.18 on 2026-10-12 09:02++from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [+ ("autoresearch", "0003_scheduled_inference_run"),+ ]++ operations = [+ migrations.AddField(+ model_name="autoresearchiteration",+ name="summary",+ field=models.TextField(blank=True, null=True),+ ),+ migrations.AddField(+ model_name="autoresearchtrainingrun",+ name="next_steps",+ field=models.JSONField(blank=True, null=True),+ ),+ migrations.AddField(+ model_name="autoresearchtrainingrun",+ name="reader_summary",+ field=models.TextField(blank=True, null=True),+ ),+ ]diff --git a/products/autoresearch/backend/migrations/max_migration.txt b/products/autoresearch/backend/migrations/max_migration.txtindex 6c7e83b38dba..82dc5609d7e2 100644--- a/products/autoresearch/backend/migrations/max_migration.txt+++ b/products/autoresearch/backend/migrations/max_migration.txt@@ -1 +1 @@-0003_scheduled_inference_run+0004_reader_summariesdiff --git a/products/autoresearch/backend/models.py b/products/autoresearch/backend/models.pyindex eafe67cc32e3..e9095615ca3b 100644--- a/products/autoresearch/backend/models.py+++ b/products/autoresearch/backend/models.py@@ -315,6 +315,9 @@ class AutoresearchTrainingRun(PipelineScopedModel):# recorded iterations; the agent enriches recommended_next + distillation via the complete tool.# Read back by a new run via the training_runs/history endpoint to orient before iterating.summary = models.JSONField(default=dict, blank=True)+ # Written for people who read the Agent research tab. The agent's own notes stay in `summary`.+ reader_summary = models.TextField(null=True, blank=True)+ next_steps = models.JSONField(null=True, blank=True)started_at = models.DateTimeField(null=True, blank=True)completed_at = models.DateTimeField(null=True, blank=True)@@ -359,6 +362,7 @@ class AutoresearchIteration(PipelineScopedModel):holdout_score = models.FloatField(null=True, blank=True, validators=UNIT_INTERVAL_VALIDATORS)status = models.CharField(max_length=20, choices=Status.choices)agent_description = models.TextField(blank=True, default="")+ summary = models.TextField(null=True, blank=True)agent_confidence = models.FloatField(null=True, blank=True, validators=UNIT_INTERVAL_VALIDATORS, help_text="Agent's self-assessed confidence 0–1")diff --git a/products/autoresearch/backend/presentation/views/serializers.py b/products/autoresearch/backend/presentation/views/serializers.pyindex d4ac13448fe7..8638b4a99403 100644--- a/products/autoresearch/backend/presentation/views/serializers.py+++ b/products/autoresearch/backend/presentation/views/serializers.py@@ -48,6 +48,10 @@ SUGGESTION_SOURCE_CHOICES = api.SUGGESTION_SOURCE_CHOICESTARGET_EVENT_MAX_LENGTH = 255AGENT_DESCRIPTION_MAX_LENGTH = 2000+ITERATION_SUMMARY_MAX_LENGTH = 300+RUN_READER_SUMMARY_MAX_LENGTH = 600+NEXT_STEPS_MAX_ITEMS = 5+NEXT_STEP_MAX_LENGTH = 80OBJECT_JSON_MAX_BYTES = 64 * 1024MODEL_SPEC_MAX_BYTES = 4 * 1024OUTPUT_PERSON_PROPERTY_MAX_LENGTH = 255@@ -502,10 +506,22 @@ class LiveTrainingRunSerializer(DataclassSerializer):latest_agent_description = serializers.CharField(read_only=True, allow_blank=True, help_text="The agent's rationale for its newest experiment.")+ latest_summary = serializers.CharField(+ read_only=True,+ allow_null=True,+ help_text="Plain-language sentence on the newest experiment, for people. Null if the agent wrote none.",+ )class Meta:dataclass = LiveTrainingRun- fields = ["id", "iteration_budget", "experiment_count", "best_holdout_score", "latest_agent_description"]+ fields = [+ "id",+ "iteration_budget",+ "experiment_count",+ "best_holdout_score",+ "latest_agent_description",+ "latest_summary",+ ]@extend_schema_serializer(component_name="AutoresearchPredictionCoverage")@@ -1158,6 +1174,11 @@ class IterationTrailSerializer(DataclassSerializer):allow_blank=True,help_text="The agent's one-line rationale for what it tried and why.",)+ summary = serializers.CharField(+ read_only=True,+ allow_null=True,+ help_text="Plain-language sentence on what this experiment tried and what happened, for people. Null if not written.",+ )model_spec = ModelSpecField(help_text="Model class and hyperparameters tried in this iteration.")class Meta:@@ -1168,6 +1189,7 @@ class IterationTrailSerializer(DataclassSerializer):"holdout_score","train_score","agent_description",+ "summary","model_spec",]@@ -1223,6 +1245,17 @@ class AutoresearchTrainingRunSerializer(DataclassSerializer):allow_null=True,help_text="Distilled cross-run learning summary written on completion. Null until the run completes.",)+ reader_summary = serializers.CharField(+ read_only=True,+ allow_null=True,+ help_text="One or two plain sentences on what this run learned, for people. Null if not written.",+ )+ next_steps = serializers.ListField(+ child=serializers.CharField(),+ read_only=True,+ allow_null=True,+ help_text="Short plain-language next steps for people, at most 5. Null if not written.",+ )iterations = IterationTrailSerializer(many=True,read_only=True,@@ -1251,6 +1284,8 @@ class AutoresearchTrainingRunSerializer(DataclassSerializer):"iteration_count","best_holdout_score","summary",+ "reader_summary",+ "next_steps","iterations","error","started_at",@@ -1277,6 +1312,11 @@ class AutoresearchIterationSerializer(DataclassSerializer):holdout_score = serializers.FloatField(required=False, allow_null=True)status = serializers.ChoiceField(choices=ITERATION_STATUS_CHOICES)agent_description = serializers.CharField(required=False, allow_blank=True)+ summary = serializers.CharField(+ required=False,+ allow_null=True,+ help_text="Plain-language sentence on what this experiment tried and what happened, for people.",+ )agent_confidence = serializers.FloatField(required=False, allow_null=True, help_text="Agent's self-assessed confidence 0–1")@@ -1301,6 +1341,7 @@ class AutoresearchIterationSerializer(DataclassSerializer):"holdout_score","status","agent_description",+ "summary","agent_confidence","parent_suggestion","created_at",@@ -1793,6 +1834,16 @@ class RecordIterationSerializer(serializers.Serializer):max_length=AGENT_DESCRIPTION_MAX_LENGTH,help_text=f"Agent's plain-English rationale for this iteration. Max {AGENT_DESCRIPTION_MAX_LENGTH} characters.",)+ summary = serializers.CharField(+ required=False,+ allow_null=True,+ allow_blank=True,+ max_length=ITERATION_SUMMARY_MAX_LENGTH,+ help_text=(+ "One plain sentence for people on what this experiment tried and what happened. "+ f"Max {ITERATION_SUMMARY_MAX_LENGTH} characters."+ ),+ )agent_confidence = FiniteFloatField(required=False,allow_null=True,@@ -1878,6 +1929,26 @@ class CompleteTrainingRunSerializer(serializers.Serializer):"dead-ends. Stored in the run summary as the cheapest thing the next run reads. Max 2000 characters."),)+ reader_summary = serializers.CharField(+ required=False,+ allow_null=True,+ allow_blank=True,+ max_length=RUN_READER_SUMMARY_MAX_LENGTH,+ help_text=(+ "One or two plain sentences for people on what this run learned. "+ f"Max {RUN_READER_SUMMARY_MAX_LENGTH} characters."+ ),+ )+ next_steps = serializers.ListField(+ child=serializers.CharField(max_length=NEXT_STEP_MAX_LENGTH),+ required=False,+ allow_null=True,+ max_length=NEXT_STEPS_MAX_ITEMS,+ help_text=(+ f"Short next steps for people, at most {NEXT_STEPS_MAX_ITEMS} items of a few words each "+ f"(max {NEXT_STEP_MAX_LENGTH} characters per item)."+ ),+ )report_notebook_short_id = serializers.CharField(required=False,allow_blank=True,diff --git a/products/autoresearch/backend/presentation/views/views.py b/products/autoresearch/backend/presentation/views/views.pyindex 53f883b3d0d0..b025b6ac9b4e 100644--- a/products/autoresearch/backend/presentation/views/views.py+++ b/products/autoresearch/backend/presentation/views/views.py@@ -980,6 +980,8 @@ class AutoresearchTrainingRunViewSet(TeamAndOrgViewSetMixin, _FacadePaginationMirecommended_next=data.get("recommended_next") or "",distillation=data.get("distillation") or "",report_notebook_short_id=data.get("report_notebook_short_id") or "",+ reader_summary=data.get("reader_summary"),+ next_steps=data.get("next_steps"),)except TrainingRunNotFound:raise NotFound("Training run not found.")diff --git a/products/autoresearch/backend/tests/test_api.py b/products/autoresearch/backend/tests/test_api.pyindex 1b5db2315a16..146ee0057dad 100644--- a/products/autoresearch/backend/tests/test_api.py+++ b/products/autoresearch/backend/tests/test_api.py@@ -304,6 +304,7 @@ class TestAutoresearchPipelineAPI(TeamScopedTestMixin, APIBaseTest):holdout_score=holdout,status="kept" if number == 0 else "discarded",agent_description=description,+ summary=f"Plain {description}",)with CaptureQueriesContext(connection) as queries:@@ -342,6 +343,7 @@ class TestAutoresearchPipelineAPI(TeamScopedTestMixin, APIBaseTest):"experiment_count": 2,"best_holdout_score": 0.72,"latest_agent_description": "try fewer features",+ "latest_summary": "Plain try fewer features",},),"No positives": (None, 0, 0, [], None),diff --git a/products/autoresearch/backend/training/promotion.py b/products/autoresearch/backend/training/promotion.pyindex 4fbb0eea25f2..38568dfeb687 100644--- a/products/autoresearch/backend/training/promotion.py+++ b/products/autoresearch/backend/training/promotion.py@@ -319,6 +319,8 @@ def complete_training_run(recommended_next: str = "",distillation: str = "",report_notebook_short_id: str = "",+ reader_summary: str | None = None,+ next_steps: list[str] | None = None,) -> dict[str, Any]:"""Finalize a run: pick the best iteration, decide champion vs challenger, persist the model."""# The TaskRun safety net calls this from a worker thread, where no request has set a@@ -338,6 +340,8 @@ def complete_training_run(recommended_next=recommended_next,distillation=distillation,report_notebook_short_id=_verified_report_notebook(current, report_notebook_short_id),+ reader_summary=reader_summary,+ next_steps=next_steps,)@@ -556,6 +560,8 @@ def _finalize_under_lock(recommended_next: str,distillation: str,report_notebook_short_id: str,+ reader_summary: str | None,+ next_steps: list[str] | None,) -> dict[str, Any]:# Re-fetch under lock and re-check status inside the transaction. Both callers (the# complete API action and the TaskRun post_save safety net) guard on status outside@@ -677,7 +683,19 @@ def _finalize_under_lock(distillation=distillation,report_notebook_short_id=report_notebook_short_id,)- training_run.save(update_fields=["status", "iteration_count", "best_holdout_score", "summary", "completed_at"])+ training_run.reader_summary = reader_summary+ training_run.next_steps = next_steps+ training_run.save(+ update_fields=[+ "status",+ "iteration_count",+ "best_holdout_score",+ "summary",+ "reader_summary",+ "next_steps",+ "completed_at",+ ]+ )status_before = pipeline.statusif promoted:diff --git a/products/autoresearch/backend/training/runner.py b/products/autoresearch/backend/training/runner.pyindex 6bdf56e9df10..ccfe30cd26af 100644--- a/products/autoresearch/backend/training/runner.py+++ b/products/autoresearch/backend/training/runner.py@@ -525,12 +525,20 @@ def build_agent_description(`pipeline_id = "{pipeline.pk}"`, `id = "{training_run_id}"`, the iteration_number,recipe_snapshot (`{{"feature_sql": "..."}}`), model_spec (`{{"model_class": "...", "model_params": {{...}}}}`),holdout_score (the AUC you computed), status (`"kept"` if it beats your best AUC so far, else- `"discarded"`), and a one-line agent_description. Do NOT batch these up to record at the end —+ `"discarded"`), a one-line agent_description, and a one-sentence `summary`. Do NOT batch these up to record at the end —the user watches the iteration trail stream in live as you work, so each must land as it happens.Judge `status` against your best-so-far at the time you record; if a later iteration wins, thatis simply reflected by the climbing scores, not by rewriting earlier ones. These also drivechampion selection at completion.+ **Two audiences.** `agent_description` is your working memory, and the next run reads it, so it+ can be as dense as is useful. `summary` is for a person who knows the product but not machine+ learning. Write it in plain words about user behavior, and leave out column names, SQL, model+ classes and AUC numbers. Say what the experiment tried and whether it helped.+ - Good: "Counting how often people opened a dashboard in their first week predicted downloads+ better than total activity."+ - Weak: "LogReg on dash_open_7d + log1p(evt_cnt), holdout AUC 0.81 vs 0.78, kept."+### Step 4 — IterateTry at least {min_iters} distinct hypotheses — vary which events you count, recency vs@@ -683,6 +691,10 @@ def build_agent_description(- `recommended_next`: concretely what a future run should try next given what you found.{notebook_field}The backend derives the rest of the summary (the kept ladder and dead-ends) from yourrecorded iterations, so keep these two fields to judgment only — do not restate the ladder.+ These two fields are your notes and can stay as dense as is useful. Also pass two fields+ for people, in the same plain words as each iteration's `summary`:+ - `reader_summary`: one or two sentences on what this run learned about user behavior.+ - `next_steps`: a short list (at most 5) of what to try next, a few words each.Also pass `model_explanation`, which the model card charts. Use exactly this shape:`{{"method": "<how you computed importance, one short line>", "top_features": [{{"name": "<feature column>", "importance": <number >= 0>, "direction": "positive" | "negative"}}]}}`.List at most {MAX_TOP_FEATURES} features of the winning iteration, strongest first. `direction` isdiff --git a/products/autoresearch/backend/training/test_agent_recorded_training.py b/products/autoresearch/backend/training/test_agent_recorded_training.pyindex 54c98cd1783a..0509a7fdca75 100644--- a/products/autoresearch/backend/training/test_agent_recorded_training.py+++ b/products/autoresearch/backend/training/test_agent_recorded_training.py@@ -20,7 +20,10 @@ from products.autoresearch.backend.models import ()from products.autoresearch.backend.presentation.views.serializers import (AGENT_DESCRIPTION_MAX_LENGTH,+ ITERATION_SUMMARY_MAX_LENGTH,MODEL_SPEC_MAX_BYTES,+ NEXT_STEP_MAX_LENGTH,+ NEXT_STEPS_MAX_ITEMS,OBJECT_JSON_MAX_BYTES,CompleteTrainingRunSerializer,RecordIterationSerializer,@@ -76,6 +79,7 @@ class TestAgentRecordedTraining(TeamScopedTestMixin, APIBaseTest):spec: dict[str, Any] | None = None,recipe: dict[str, Any] | None = None,runs_url: str | None = None,+ summary: str | None = None,) -> Any:return self.client.post(f"{runs_url or self.runs_url}/{run_id}/iterations/",@@ -86,6 +90,7 @@ class TestAgentRecordedTraining(TeamScopedTestMixin, APIBaseTest):"status": status_value,"holdout_score": holdout,"agent_description": "test iteration",+ **({"summary": summary} if summary is not None else {}),},format="json",)@@ -303,18 +308,38 @@ class TestAgentRecordedTraining(TeamScopedTestMixin, APIBaseTest):def test_complete_persists_agent_summary_enrichment(self):run_id = self._open_run()- self._record(run_id, number=0, status_value="kept", holdout=0.8)+ recorded = self._record(run_id, number=0, status_value="kept", holdout=0.8, summary="Recent visits helped.")+ assert recorded.json()["summary"] == "Recent visits helped."+ too_many_steps = self.client.post(+ f"{self.runs_url}/{run_id}/complete/",+ {"next_steps": ["step"] * (NEXT_STEPS_MAX_ITEMS + 1)},+ format="json",+ )+ assert too_many_steps.status_code == status.HTTP_400_BAD_REQUESTresp = self.client.post(f"{self.runs_url}/{run_id}/complete/",- {"distillation": "log1p of counts won", "recommended_next": "try session recency"},+ {+ "distillation": "log1p of counts won",+ "recommended_next": "try session recency",+ "reader_summary": "People who came back often were more likely to convert.",+ "next_steps": ["Try time since last visit"],+ },format="json",)assert resp.status_code == status.HTTP_200_OK- summary = resp.json()["summary"]+ data = resp.json()+ summary = data["summary"]assert summary["distillation"] == "log1p of counts won"assert summary["recommended_next"] == "try session recency"+ assert data["reader_summary"] == "People who came back often were more likely to convert."+ assert data["next_steps"] == ["Try time since last visit"]run = AutoresearchTrainingRun.objects.get(pk=run_id, team_id=self.team.pk)assert run.summary["recommended_next"] == "try session recency"+ listed = self.client.get(f"{self.runs_url}/")+ assert listed.status_code == status.HTTP_200_OK+ listed_run = next(r for r in listed.json()["results"] if r["id"] == run_id)+ assert listed_run["reader_summary"] == data["reader_summary"]+ assert listed_run["iterations"][0]["summary"] == "Recent visits helped."def test_complete_that_loses_the_race_to_failure_is_refused(self):run_id = self._open_run()@@ -609,6 +634,7 @@ class TestAgentWriteSerializers(SimpleTestCase):{"agent_description": "x" * (AGENT_DESCRIPTION_MAX_LENGTH + 1)},"agent_description",),+ ("oversized_summary", {"summary": "x" * (ITERATION_SUMMARY_MAX_LENGTH + 1)}, "summary"),("nested_nan_in_spec", {"model_spec": {**VALID_SPEC, "model_params": {"C": float("nan")}}}, "model_spec"),("lone_surrogate_in_recipe", {"recipe_snapshot": {**VALID_RECIPE, "note": "\ud800"}}, "recipe_snapshot"),("boolean_holdout", {"holdout_score": True}, "holdout_score"),@@ -664,6 +690,18 @@ class TestAgentWriteSerializers(SimpleTestCase):assert not serializer.is_valid()assert "model_explanation" in serializer.errors+ @parameterized.expand(+ [+ ("too_many_items", ["step"] * (NEXT_STEPS_MAX_ITEMS + 1)),+ ("oversized_item", ["x" * (NEXT_STEP_MAX_LENGTH + 1)]),+ ("not_a_list", "try recency"),+ ]+ )+ def test_complete_rejects_next_steps(self, _name: str, next_steps: Any) -> None:+ serializer = CompleteTrainingRunSerializer(data={"next_steps": next_steps})+ assert not serializer.is_valid()+ assert "next_steps" in serializer.errors+def test_complete_orders_explanation_features_strongest_first(self) -> None:serializer = CompleteTrainingRunSerializer(data={diff --git a/products/autoresearch/frontend/generated/api.schemas.ts b/products/autoresearch/frontend/generated/api.schemas.tsindex 43168d448af8..f59b60aaad92 100644--- a/products/autoresearch/frontend/generated/api.schemas.ts+++ b/products/autoresearch/frontend/generated/api.schemas.ts@@ -143,6 +143,11 @@ export interface AutoresearchLiveTrainingRunApi {readonly best_holdout_score: number | null/** The agent's rationale for its newest experiment. */readonly latest_agent_description: string+ /**+ * Plain-language sentence on the newest experiment, for people. Null if the agent wrote none.+ * @nullable+ */+ readonly latest_summary: string | null}/**@@ -891,6 +896,11 @@ export interface IterationTrailApi {train_score?: number | null/** The agent's one-line rationale for what it tried and why. */agent_description?: string+ /**+ * Plain-language sentence on what this experiment tried and what happened, for people. Null if not written.+ * @nullable+ */+ readonly summary: string | null/** Model class and hyperparameters tried in this iteration. */model_spec: IterationTrailApiModelSpec}@@ -937,6 +947,16 @@ export interface AutoresearchTrainingRunApi {readonly best_holdout_score: number | null/** Distilled cross-run learning summary written on completion. Null until the run completes. */readonly summary: TrainingRunSummaryApi | null+ /**+ * One or two plain sentences on what this run learned, for people. Null if not written.+ * @nullable+ */+ readonly reader_summary: string | null+ /**+ * Short plain-language next steps for people, at most 5. Null if not written.+ * @nullable+ */+ readonly next_steps: readonly string[] | null/** Per-iteration breakdown — every recipe the agent tried this run, kept or discarded, with its model spec, holdout/train AUC, and one-line rationale. Ordered by iteration_number. */readonly iterations: readonly IterationTrailApi[]/** Error message if the run failed. */@@ -1066,6 +1086,19 @@ export interface CompleteTrainingRunApi {* @maxLength 2000*/distillation?: string+ /**+ * One or two plain sentences for people on what this run learned. Max 600 characters.+ * @maxLength 600+ * @nullable+ */+ reader_summary?: string | null+ /**+ * Short next steps for people, at most 5 items of a few words each (max 80 characters per item).+ * @maxItems 5+ * @nullable+ * @items.maxLength 80+ */+ next_steps?: string[] | null/** Short id of the report notebook you built for this run. Stored in the run summary only if the notebook exists in this project; an unknown id is dropped and does not fail the completion. */report_notebook_short_id?: string}@@ -1157,6 +1190,12 @@ export interface RecordIterationApi {* @maxLength 2000*/agent_description?: string+ /**+ * One plain sentence for people on what this experiment tried and what happened. Max 300 characters.+ * @maxLength 300+ * @nullable+ */+ summary?: string | null/*** Agent's self-assessed confidence (0-1) that this iteration helps.* @minimum 0@@ -1226,6 +1265,11 @@ export interface AutoresearchIterationApi {holdout_score?: number | nullstatus: AutoresearchIterationStatusEnumApiagent_description?: string+ /**+ * Plain-language sentence on what this experiment tried and what happened, for people.+ * @nullable+ */+ summary?: string | null/*** Agent's self-assessed confidence 0–1* @nullable@@ -1337,6 +1381,11 @@ export interface IterationTrailWithRecipeApi {train_score?: number | null/** The agent's one-line rationale for what it tried and why. */agent_description?: string+ /**+ * Plain-language sentence on what this experiment tried and what happened, for people. Null if not written.+ * @nullable+ */+ readonly summary: string | null/** Model class and hyperparameters tried in this iteration. */model_spec: IterationTrailWithRecipeApiModelSpec/** The recipe this iteration tried: its feature_sql and transforms, so a later run can reuse them. */diff --git a/products/autoresearch/frontend/generated/api.zod.ts b/products/autoresearch/frontend/generated/api.zod.tsindex 690aeaf6ad80..f645749dd576 100644--- a/products/autoresearch/frontend/generated/api.zod.ts+++ b/products/autoresearch/frontend/generated/api.zod.ts@@ -258,6 +258,12 @@ export const autoresearchTrainingRunsCompleteCreateBodyRecommendedNextMax = 2000export const autoresearchTrainingRunsCompleteCreateBodyDistillationDefault = ``export const autoresearchTrainingRunsCompleteCreateBodyDistillationMax = 2000+export const autoresearchTrainingRunsCompleteCreateBodyReaderSummaryMax = 600++export const autoresearchTrainingRunsCompleteCreateBodyNextStepsItemMax = 80++export const autoresearchTrainingRunsCompleteCreateBodyNextStepsMax = 5+export const autoresearchTrainingRunsCompleteCreateBodyReportNotebookShortIdDefault = ``export const AutoresearchTrainingRunsCompleteCreateBody = /* @__PURE__ */ zod@@ -328,6 +334,16 @@ export const AutoresearchTrainingRunsCompleteCreateBody = /* @__PURE__ */ zod.describe('A 1–2 sentence distillation of what this run learned — the winning signal, the key transform, the dead-ends. Stored in the run summary as the cheapest thing the next run reads. Max 2000 characters.'),+ reader_summary: zod+ .string()+ .max(autoresearchTrainingRunsCompleteCreateBodyReaderSummaryMax)+ .nullish()+ .describe('One or two plain sentences for people on what this run learned. Max 600 characters.'),+ next_steps: zod+ .array(zod.string().max(autoresearchTrainingRunsCompleteCreateBodyNextStepsItemMax))+ .max(autoresearchTrainingRunsCompleteCreateBodyNextStepsMax)+ .nullish()+ .describe('Short next steps for people, at most 5 items of a few words each (max 80 characters per item).'),report_notebook_short_id: zod.string().default(autoresearchTrainingRunsCompleteCreateBodyReportNotebookShortIdDefault)@@ -353,6 +369,8 @@ export const autoresearchTrainingRunsIterationsCreateBodyHoldoutScoreMax = 1export const autoresearchTrainingRunsIterationsCreateBodyAgentDescriptionDefault = ``export const autoresearchTrainingRunsIterationsCreateBodyAgentDescriptionMax = 2000+export const autoresearchTrainingRunsIterationsCreateBodySummaryMax = 300+export const autoresearchTrainingRunsIterationsCreateBodyAgentConfidenceMin = 0export const autoresearchTrainingRunsIterationsCreateBodyAgentConfidenceMax = 1@@ -414,6 +432,13 @@ export const AutoresearchTrainingRunsIterationsCreateBody = /* @__PURE__ */ zod.max(autoresearchTrainingRunsIterationsCreateBodyAgentDescriptionMax).default(autoresearchTrainingRunsIterationsCreateBodyAgentDescriptionDefault).describe("Agent's plain-English rationale for this iteration. Max 2000 characters."),+ summary: zod+ .string()+ .max(autoresearchTrainingRunsIterationsCreateBodySummaryMax)+ .nullish()+ .describe(+ 'One plain sentence for people on what this experiment tried and what happened. Max 300 characters.'+ ),agent_confidence: zod.number().min(autoresearchTrainingRunsIterationsCreateBodyAgentConfidenceMin)diff --git a/products/autoresearch/frontend/modelCardState.test.ts b/products/autoresearch/frontend/modelCardState.test.tsindex ed643d0461f7..a5d1ebdbb7d5 100644--- a/products/autoresearch/frontend/modelCardState.test.ts+++ b/products/autoresearch/frontend/modelCardState.test.ts@@ -8,6 +8,7 @@ describe('modelCardState', () => {experiment_count: 2,best_holdout_score: 0.72,latest_agent_description: 'baseline',+ latest_summary: null,}test.each([diff --git a/products/autoresearch/mcp/tools.yaml b/products/autoresearch/mcp/tools.yamlindex ea6c9c863ea8..a4b8f503b997 100644--- a/products/autoresearch/mcp/tools.yaml+++ b/products/autoresearch/mcp/tools.yaml@@ -526,7 +526,9 @@ tools:model card. Also pass distillation (1–2 sentences on what this run learned) and recommended_next (what afuture run should try next) — these are stored in the run summary and read back by the next run duringorientation; the backend derives the rest of the summary (kept ladder, dead-ends) from your recorded- iterations. If you built a report notebook for this run, pass its short_id as report_notebook_short_id.+ iterations. Pass reader_summary (one or two plain sentences) and next_steps (at most 5 short items) for+ people who read the run; keep column names, SQL and AUC numbers out of them. If you built a report notebook+ for this run, pass its short_id as report_notebook_short_id.feature_flag: autoresearchresponse:include:@@ -599,7 +601,8 @@ tools:current champion scores), 'discarded' otherwise, 'crashed' on failure. Iterations are picked up atcompletion time to choose the champion. If this iteration was spawned from a pending steering suggestion,pass parent_suggestion = the suggestion's ID — that links the iteration to the suggestion for attribution- and marks the suggestion 'acted_on'.+ and marks the suggestion 'acted_on'. Pass summary, one plain sentence for people on what the experiment+ tried and what happened; agent_description stays your own notes.feature_flag: autoresearchresponse:include:diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex 3ba657a7b78e..e02527d21953 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -1345,7 +1345,7 @@"feature_flag": "autoresearch"},"autoresearch-training-runs-complete-create": {- "description": "Finalize a training run. The backend selects the kept iteration with the highest holdout_score. best_iteration_id only breaks a tie at that top score and never overrides the ranking, so upload the bundle of the highest-scoring iteration. The backend then decides champion vs challenger via the promotion ladder (cold-start preliminary, anti-thrash margin for an existing champion), and persists the model. Agents cannot set the champion directly — promotion is server-only. Call autoresearch-models-list afterwards to see the resulting champion/challenger. Optionally pass model_explanation (top features and directionality) for the model card. Also pass distillation (1–2 sentences on what this run learned) and recommended_next (what a future run should try next) — these are stored in the run summary and read back by the next run during orientation; the backend derives the rest of the summary (kept ladder, dead-ends) from your recorded iterations. If you built a report notebook for this run, pass its short_id as report_notebook_short_id.",+ "description": "Finalize a training run. The backend selects the kept iteration with the highest holdout_score. best_iteration_id only breaks a tie at that top score and never overrides the ranking, so upload the bundle of the highest-scoring iteration. The backend then decides champion vs challenger via the promotion ladder (cold-start preliminary, anti-thrash margin for an existing champion), and persists the model. Agents cannot set the champion directly — promotion is server-only. Call autoresearch-models-list afterwards to see the resulting champion/challenger. Optionally pass model_explanation (top features and directionality) for the model card. Also pass distillation (1–2 sentences on what this run learned) and recommended_next (what a future run should try next) — these are stored in the run summary and read back by the next run during orientation; the backend derives the rest of the summary (kept ladder, dead-ends) from your recorded iterations. Pass reader_summary (one or two plain sentences) and next_steps (at most 5 short items) for people who read the run; keep column names, SQL and AUC numbers out of them. If you built a report notebook for this run, pass its short_id as report_notebook_short_id.","category": "Autoresearch","feature": "autoresearch","summary": "Complete a training run",@@ -1390,7 +1390,7 @@"feature_flag": "autoresearch"},"autoresearch-training-runs-iterations-create": {- "description": "Record one iteration of an open training run. Idempotent on iteration_number — re-sending the same number updates that iteration in place. The recipe is validated server-side: feature_sql in recipe_snapshot must be a read-only SELECT that outputs the anchor key exactly once as a.person_id AS distinct_id, and every events join must be bounded by e.timestamp < fromUnixTimestamp(a.cutoff_ts) and exclude NOT startsWith(e.event, 'autoresearch_'), the model's own prediction events. The validator cannot prove either rule, and without them the features see the outcome window or the model's own past scores, and the holdout AUC is leaked. model_class in model_spec is informational when you upload your own train.py and predict.py bundle; it must be in the sklearn/xgboost allowlist only when the run completes without a bundle. Use status='kept' if the iteration beats the best AUC so far in this run (the first scored iteration is always kept, whatever the current champion scores), 'discarded' otherwise, 'crashed' on failure. Iterations are picked up at completion time to choose the champion. If this iteration was spawned from a pending steering suggestion, pass parent_suggestion = the suggestion's ID — that links the iteration to the suggestion for attribution and marks the suggestion 'acted_on'.",+ "description": "Record one iteration of an open training run. Idempotent on iteration_number — re-sending the same number updates that iteration in place. The recipe is validated server-side: feature_sql in recipe_snapshot must be a read-only SELECT that outputs the anchor key exactly once as a.person_id AS distinct_id, and every events join must be bounded by e.timestamp < fromUnixTimestamp(a.cutoff_ts) and exclude NOT startsWith(e.event, 'autoresearch_'), the model's own prediction events. The validator cannot prove either rule, and without them the features see the outcome window or the model's own past scores, and the holdout AUC is leaked. model_class in model_spec is informational when you upload your own train.py and predict.py bundle; it must be in the sklearn/xgboost allowlist only when the run completes without a bundle. Use status='kept' if the iteration beats the best AUC so far in this run (the first scored iteration is always kept, whatever the current champion scores), 'discarded' otherwise, 'crashed' on failure. Iterations are picked up at completion time to choose the champion. If this iteration was spawned from a pending steering suggestion, pass parent_suggestion = the suggestion's ID — that links the iteration to the suggestion for attribution and marks the suggestion 'acted_on'. Pass summary, one plain sentence for people on what the experiment tried and what happened; agent_description stays your own notes.","category": "Autoresearch","feature": "autoresearch","summary": "Record a training iteration",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex 1f4bf8321b48..5ac6ef688d75 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -1360,7 +1360,7 @@"feature_flag": "autoresearch"},"autoresearch-training-runs-complete-create": {- "description": "Finalize a training run. The backend selects the kept iteration with the highest holdout_score. best_iteration_id only breaks a tie at that top score and never overrides the ranking, so upload the bundle of the highest-scoring iteration. The backend then decides champion vs challenger via the promotion ladder (cold-start preliminary, anti-thrash margin for an existing champion), and persists the model. Agents cannot set the champion directly — promotion is server-only. Call autoresearch-models-list afterwards to see the resulting champion/challenger. Optionally pass model_explanation (top features and directionality) for the model card. Also pass distillation (1–2 sentences on what this run learned) and recommended_next (what a future run should try next) — these are stored in the run summary and read back by the next run during orientation; the backend derives the rest of the summary (kept ladder, dead-ends) from your recorded iterations. If you built a report notebook for this run, pass its short_id as report_notebook_short_id.",+ "description": "Finalize a training run. The backend selects the kept iteration with the highest holdout_score. best_iteration_id only breaks a tie at that top score and never overrides the ranking, so upload the bundle of the highest-scoring iteration. The backend then decides champion vs challenger via the promotion ladder (cold-start preliminary, anti-thrash margin for an existing champion), and persists the model. Agents cannot set the champion directly — promotion is server-only. Call autoresearch-models-list afterwards to see the resulting champion/challenger. Optionally pass model_explanation (top features and directionality) for the model card. Also pass distillation (1–2 sentences on what this run learned) and recommended_next (what a future run should try next) — these are stored in the run summary and read back by the next run during orientation; the backend derives the rest of the summary (kept ladder, dead-ends) from your recorded iterations. Pass reader_summary (one or two plain sentences) and next_steps (at most 5 short items) for people who read the run; keep column names, SQL and AUC numbers out of them. If you built a report notebook for this run, pass its short_id as report_notebook_short_id.","category": "Autoresearch","feature": "autoresearch","summary": "Complete a training run",@@ -1405,7 +1405,7 @@"feature_flag": "autoresearch"},"autoresearch-training-runs-iterations-create": {- "description": "Record one iteration of an open training run. Idempotent on iteration_number — re-sending the same number updates that iteration in place. The recipe is validated server-side: feature_sql in recipe_snapshot must be a read-only SELECT that outputs the anchor key exactly once as a.person_id AS distinct_id, and every events join must be bounded by e.timestamp < fromUnixTimestamp(a.cutoff_ts) and exclude NOT startsWith(e.event, 'autoresearch_'), the model's own prediction events. The validator cannot prove either rule, and without them the features see the outcome window or the model's own past scores, and the holdout AUC is leaked. model_class in model_spec is informational when you upload your own train.py and predict.py bundle; it must be in the sklearn/xgboost allowlist only when the run completes without a bundle. Use status='kept' if the iteration beats the best AUC so far in this run (the first scored iteration is always kept, whatever the current champion scores), 'discarded' otherwise, 'crashed' on failure. Iterations are picked up at completion time to choose the champion. If this iteration was spawned from a pending steering suggestion, pass parent_suggestion = the suggestion's ID — that links the iteration to the suggestion for attribution and marks the suggestion 'acted_on'.",+ "description": "Record one iteration of an open training run. Idempotent on iteration_number — re-sending the same number updates that iteration in place. The recipe is validated server-side: feature_sql in recipe_snapshot must be a read-only SELECT that outputs the anchor key exactly once as a.person_id AS distinct_id, and every events join must be bounded by e.timestamp < fromUnixTimestamp(a.cutoff_ts) and exclude NOT startsWith(e.event, 'autoresearch_'), the model's own prediction events. The validator cannot prove either rule, and without them the features see the outcome window or the model's own past scores, and the holdout AUC is leaked. model_class in model_spec is informational when you upload your own train.py and predict.py bundle; it must be in the sklearn/xgboost allowlist only when the run completes without a bundle. Use status='kept' if the iteration beats the best AUC so far in this run (the first scored iteration is always kept, whatever the current champion scores), 'discarded' otherwise, 'crashed' on failure. Iterations are picked up at completion time to choose the champion. If this iteration was spawned from a pending steering suggestion, pass parent_suggestion = the suggestion's ID — that links the iteration to the suggestion for attribution and marks the suggestion 'acted_on'. Pass summary, one plain sentence for people on what the experiment tried and what happened; agent_description stays your own notes.","category": "Autoresearch","feature": "autoresearch","summary": "Record a training iteration",diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 5cf1184c7a1f..5e814d815d89 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -13713,6 +13713,11 @@ export namespace Schemas {holdout_score?: number | null;status: AutoresearchIterationStatusEnum;agent_description?: string;+ /**+ * Plain-language sentence on what this experiment tried and what happened, for people.+ * @nullable+ */+ summary?: string | null;/*** Agent's self-assessed confidence 0–1* @nullable@@ -13740,6 +13745,11 @@ export namespace Schemas {readonly best_holdout_score: number | null;/** The agent's rationale for its newest experiment. */readonly latest_agent_description: string;+ /**+ * Plain-language sentence on the newest experiment, for people. Null if the agent wrote none.+ * @nullable+ */+ readonly latest_summary: string | null;}/**@@ -14444,6 +14454,11 @@ export namespace Schemas {train_score?: number | null;/** The agent's one-line rationale for what it tried and why. */agent_description?: string;+ /**+ * Plain-language sentence on what this experiment tried and what happened, for people. Null if not written.+ * @nullable+ */+ readonly summary: string | null;/** Model class and hyperparameters tried in this iteration. */model_spec: IterationTrailModelSpec;}@@ -14490,6 +14505,16 @@ export namespace Schemas {readonly best_holdout_score: number | null;/** Distilled cross-run learning summary written on completion. Null until the run completes. */readonly summary: TrainingRunSummary | null;+ /**+ * One or two plain sentences on what this run learned, for people. Null if not written.+ * @nullable+ */+ readonly reader_summary: string | null;+ /**+ * Short plain-language next steps for people, at most 5. Null if not written.+ * @nullable+ */+ readonly next_steps: readonly string[] | null;/** Per-iteration breakdown — every recipe the agent tried this run, kept or discarded, with its model spec, holdout/train AUC, and one-line rationale. Ordered by iteration_number. */readonly iterations: readonly IterationTrail[];/** Error message if the run failed. */@@ -24457,6 +24482,19 @@ export namespace Schemas {* @maxLength 2000*/distillation?: string;+ /**+ * One or two plain sentences for people on what this run learned. Max 600 characters.+ * @maxLength 600+ * @nullable+ */+ reader_summary?: string | null;+ /**+ * Short next steps for people, at most 5 items of a few words each (max 80 characters per item).+ * @maxItems 5+ * @nullable+ * @items.maxLength 80+ */+ next_steps?: string[] | null;/** Short id of the report notebook you built for this run. Stored in the run summary only if the notebook exists in this project; an unknown id is dropped and does not fail the completion. */report_notebook_short_id?: string;}@@ -59818,6 +59856,11 @@ export namespace Schemas {train_score?: number | null;/** The agent's one-line rationale for what it tried and why. */agent_description?: string;+ /**+ * Plain-language sentence on what this experiment tried and what happened, for people. Null if not written.+ * @nullable+ */+ readonly summary: string | null;/** Model class and hyperparameters tried in this iteration. */model_spec: IterationTrailWithRecipeModelSpec;/** The recipe this iteration tried: its feature_sql and transforms, so a later run can reuse them. */@@ -93722,6 +93765,12 @@ export namespace Schemas {* @maxLength 2000*/agent_description?: string;+ /**+ * One plain sentence for people on what this experiment tried and what happened. Max 300 characters.+ * @maxLength 300+ * @nullable+ */+ summary?: string | null;/*** Agent's self-assessed confidence (0-1) that this iteration helps.* @minimum 0diff --git a/services/mcp/src/generated/autoresearch/api.ts b/services/mcp/src/generated/autoresearch/api.tsindex c3752ecc81a0..39de830dc5a8 100644--- a/services/mcp/src/generated/autoresearch/api.ts+++ b/services/mcp/src/generated/autoresearch/api.ts@@ -435,6 +435,12 @@ export const autoresearchTrainingRunsCompleteCreateBodyRecommendedNextMax = 2000export const autoresearchTrainingRunsCompleteCreateBodyDistillationDefault = ``export const autoresearchTrainingRunsCompleteCreateBodyDistillationMax = 2000+export const autoresearchTrainingRunsCompleteCreateBodyReaderSummaryMax = 600++export const autoresearchTrainingRunsCompleteCreateBodyNextStepsItemMax = 80++export const autoresearchTrainingRunsCompleteCreateBodyNextStepsMax = 5+export const autoresearchTrainingRunsCompleteCreateBodyReportNotebookShortIdDefault = ``export const AutoresearchTrainingRunsCompleteCreateBody = () => zod@@ -505,6 +511,16 @@ export const AutoresearchTrainingRunsCompleteCreateBody = () => zod.describe('A 1–2 sentence distillation of what this run learned — the winning signal, the key transform, the dead-ends. Stored in the run summary as the cheapest thing the next run reads. Max 2000 characters.'),+ reader_summary: zod+ .string()+ .max(autoresearchTrainingRunsCompleteCreateBodyReaderSummaryMax)+ .nullish()+ .describe('One or two plain sentences for people on what this run learned. Max 600 characters.'),+ next_steps: zod+ .array(zod.string().max(autoresearchTrainingRunsCompleteCreateBodyNextStepsItemMax))+ .max(autoresearchTrainingRunsCompleteCreateBodyNextStepsMax)+ .nullish()+ .describe('Short next steps for people, at most 5 items of a few words each (max 80 characters per item).'),report_notebook_short_id: zod.string().default(autoresearchTrainingRunsCompleteCreateBodyReportNotebookShortIdDefault)@@ -540,6 +556,8 @@ export const autoresearchTrainingRunsIterationsCreateBodyHoldoutScoreMax = 1export const autoresearchTrainingRunsIterationsCreateBodyAgentDescriptionDefault = ``export const autoresearchTrainingRunsIterationsCreateBodyAgentDescriptionMax = 2000+export const autoresearchTrainingRunsIterationsCreateBodySummaryMax = 300+export const autoresearchTrainingRunsIterationsCreateBodyAgentConfidenceMin = 0export const autoresearchTrainingRunsIterationsCreateBodyAgentConfidenceMax = 1@@ -601,6 +619,13 @@ export const AutoresearchTrainingRunsIterationsCreateBody = () => zod.max(autoresearchTrainingRunsIterationsCreateBodyAgentDescriptionMax).default(autoresearchTrainingRunsIterationsCreateBodyAgentDescriptionDefault).describe("Agent's plain-English rationale for this iteration. Max 2000 characters."),+ summary: zod+ .string()+ .max(autoresearchTrainingRunsIterationsCreateBodySummaryMax)+ .nullish()+ .describe(+ 'One plain sentence for people on what this experiment tried and what happened. Max 300 characters.'+ ),agent_confidence: zod.number().min(autoresearchTrainingRunsIterationsCreateBodyAgentConfidenceMin)diff --git a/services/mcp/src/tools/generated/autoresearch.ts b/services/mcp/src/tools/generated/autoresearch.tsindex be0e2335125e..707129815e1d 100644--- a/services/mcp/src/tools/generated/autoresearch.ts+++ b/services/mcp/src/tools/generated/autoresearch.ts@@ -626,6 +626,12 @@ const autoresearchTrainingRunsCompleteCreate = (): ToolBase<if (params.distillation !== undefined) {body['distillation'] = params.distillation}+ if (params.reader_summary !== undefined) {+ body['reader_summary'] = params.reader_summary+ }+ if (params.next_steps !== undefined) {+ body['next_steps'] = params.next_steps+ }if (params.report_notebook_short_id !== undefined) {body['report_notebook_short_id'] = params.report_notebook_short_id}@@ -746,6 +752,9 @@ const autoresearchTrainingRunsIterationsCreate = (): ToolBase<if (params.agent_description !== undefined) {body['agent_description'] = params.agent_description}+ if (params.summary !== undefined) {+ body['summary'] = params.summary+ }if (params.agent_confidence !== undefined) {body['agent_confidence'] = params.agent_confidence}