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): compact the experiment log and agent notes (#115288)

posthog[bot]e32ce79fc5a7
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index a8dd09305954..e0d059defdca 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -6547,13 +6547,13 @@ snapshots:
products-autoresearch-model-detail-scene--accuracy-before-precision-recall--wide--light:
hash: v1.k794b7964.8889f1c4e0c4f7508bb25824f85c560042338ccba9cd9a92635b7ad7554cc7cb.lo2fwfoTjLpSjmz00TsOd2j-IousiuI0Ia3Xfr9wCZs
products-autoresearch-model-detail-scene--agent-research-narrow--narrow--dark:
- hash: v1.k794b7964.052f6d0dba654432d5f12d65bc0f91bc3e2de64334dac07e62d6cf730f154820.7cPMLn00EY67HPH6ikgGBUlULYPQSAMVKLyE_cR3uTs
+ hash: v1.k794b7964.f93d956dd6b2730aab90a6814c2390b8da4a91de458519de984f47d3d3326121.oR9SFhtaCjj8t3wbQ6h-XXcszi43-OrREfNKHnNYS0A
products-autoresearch-model-detail-scene--agent-research-narrow--narrow--light:
- hash: v1.k794b7964.5aac6ed053655f482abe449b7a10cfe15b86bc95dcd448258131d9025c6ec9d0.uggKZoeOrAifOn_YNcltodKu3SDvLDj2svOMa0BlMts
+ hash: v1.k794b7964.2d76141982d2dece38447c9a26a7ad138d202ace1db4197b1b5d2d1fd250fc68.fCWrbW3ZWUteQtH2RaWa6VGb9cTIdUeZT0VN2WLdcnk
products-autoresearch-model-detail-scene--agent-research-wide--wide--dark:
- hash: v1.k794b7964.5861f881393ab1dba59cb0330fd1704b278a76ac0748086f446d650e1ee88f80.GWFbkjd1OxgM33wYBC4Gncb_3jIWx1RIU5FGZ7ABzKU
+ hash: v1.k794b7964.f84ea27477df5109cad15751a24757be85a8ab7a0cd98573aa1b75504168c4be.6eO8edXltWaPVrCnv3nA7Y7tXuyp9wyabFTcatdausQ
products-autoresearch-model-detail-scene--agent-research-wide--wide--light:
- hash: v1.k794b7964.61a18ed53831b16b23b3f5c5bf5db2311a2a67c3237d339a9559de7dd488432c.jsOveKxB0FdFA8m-z9oDOUxV_z4mbAXK9Lra6HxBrr0
+ hash: v1.k794b7964.22e7923d51837968f8a2b8b50728a16424d62bd29de3c1ffafcc9b4b1b9b11d8.V3K-9qrGu3L0Kw3P5AIugEk9mSooVKtHXMjzAXutmyQ
products-autoresearch-model-detail-scene--coverage-below-cap--narrow--dark:
hash: v1.k794b7964.4e43edc26f1f7617df0b9ab5a0461a452ffeaaac42866cf177de7d6a37ef9f57.HuUUWBynAYTLHQ0baecnM7XmuDjZK848f3l4QSwlyKA
products-autoresearch-model-detail-scene--coverage-below-cap--narrow--light:
@@ -6599,21 +6599,21 @@ snapshots:
products-autoresearch-probability-histogram--single-bucket--light:
hash: v1.k794b7964.7087a0c145f21f4ad346356f61768cfe3c158fcaf680e2bfd46135bcb39985a5.DRfvEC1xadIFDKaZCGZtNj1jj7vYSW_jF1U97K7QrBI
products-autoresearch-training-run-row--compared-with-champion-narrow--dark:
- hash: v1.k794b7964.0eebd4644aca0bdaad27698de96e1af7454b4485048ed1caf5c6ba2534272a9d.5PuFFiQauCsoWf9oYGeO71GHeONCyyqjOnsgQ10yCCI
+ hash: v1.k794b7964.289abee50375ba479d8caea199304a7632057234c526376407dbba834a319e7c.ITTtiPxedZ8qNA-_vP6kANJZWCp5iJZIcAUD2bnIuaM
products-autoresearch-training-run-row--compared-with-champion-narrow--light:
- hash: v1.k794b7964.d30e2e4b79f3b1eaf8be0d8e9dc59172cd8af92a4f469f73b327baddb8671585.rS9RxSedb-zdnGWKns5hcB5mjf-2_WxagtKbGoUMrJA
+ hash: v1.k794b7964.62f9be4c63ec3c06d6c20fdcea81fa888d91fa912903645d1897c428cfbd0446.Ed8UEyOJowfkfvqFb7f6WUp0tAi9uh93hBI_15IzyFo
products-autoresearch-training-run-row--compared-with-champion-wide--dark:
- hash: v1.k794b7964.a09884d9f8f1ce8732c820d9fe4163206135881c0ee41f1e8ece387abfe1e911.12zsP58eb1jPPxOUie-Pg0bDcG-Xfhv-dLpUSDSsCcU
+ hash: v1.k794b7964.25ad73b9ceb9da71ab8027fd583528c55c1ec12078b39d44ce4308dbfb4681f1.rvBV45eYb2m-T1O9z4LZc3r9g7MEBo5p6Yw6xlk-ijc
products-autoresearch-training-run-row--compared-with-champion-wide--light:
- hash: v1.k794b7964.caad28934086782e2238d4ce64312c34c1b1ae4ff43750afe0da0f593dfd7af0.KtwVBrzOfXtwAddyoaweoemgq3gahhQA5hcqvMT-K5Y
+ hash: v1.k794b7964.5fa4295b13654c206e7d74cef1388d96a8d2d32da3ca16f1abc1e1a9c14f0ac9.4pTHsaqL6pk0tX1sGCVnQ-Yfnwz0GOB8kGbhXn1ufEc
products-autoresearch-training-run-row--run-model-without-importances--dark:
- hash: v1.k794b7964.d0b99336acc896e44e81c463c199e6ca4d809a855ac34a187c8988dc59f881e9.ya4kSU56XHFa7kteijdymLayjBXtUIESVSBZ5B4ZDtg
+ hash: v1.k794b7964.daffaac0f784c23fcc5ceb185c819575045b715e95dac2f86e60e867edabeddb.dJzY4_jYvtPCGVo_jqCzVZa97mIecM7lamJExFeQWFE
products-autoresearch-training-run-row--run-model-without-importances--light:
- hash: v1.k794b7964.1bb932c756681f759a5031f9c9e7f747044d3cefa80d8a14b92c25cbb0fd8828.s8famIWRN8ko6fTPDLQy3OLdKeZqsiQ5kip9DTSmH08
+ hash: v1.k794b7964.2464b7f50c35540a5a09124569e870d987d9da18850531e16ba4d7661d30a014.cJFO6YIMxD8nsrZqF6ZBiaCaHwuS9akXKa9w0NnuP0E
products-autoresearch-training-run-row--run-produced-the-champion--dark:
- hash: v1.k794b7964.d95774bf57e55a6cb2d2f6d72567bc092333ab1bbc874817d7040e402fc4f553.jTR764Ke1KM2eR2cwVBTTyhKa5BVekhtT2O6UOUaZwQ
+ hash: v1.k794b7964.217c79a0f1d109409c6d6395574ad5a5847ff6cd7fd8347382d4b7c1906fd8df.t_NlghuFmtknzsDJnKEOFwoTSOXtgLoCSV6f6DZnXXo
products-autoresearch-training-run-row--run-produced-the-champion--light:
- hash: v1.k794b7964.ef5ea55d4cef1220e6ee85a4ff4dc063fd2ee3ee2b5307ad6e2a125dc08a4ce5.14G_y4eRw8fBjzaJghsehdZxUy-zcVsBDrV1T5iVCM0
+ hash: v1.k794b7964.f32c7fc6333c5aa557c0923a802dfd936f3a1d4fa6d086645449ce32bc3fe1fd.0dcjrO_Ave0qQ94o7Fq5Ayvr5ZTq1G99ViPrL16PvPQ
products-business-intelligence-chart-years--partial-years--dark:
hash: v1.k794b7964.2a6374590be64f7a06a222b2c702f194a05289115c618d7ec8864a6b62f85631.wJMlvq8tZxD3TVKI8Lt9pHxK7YwHkdHS2QDRpZaqRJo
products-business-intelligence-chart-years--partial-years--light:
diff --git a/products/autoresearch/frontend/AGENTS.md b/products/autoresearch/frontend/AGENTS.md
index d5afa5490105..15e8cfea5fba 100644
--- a/products/autoresearch/frontend/AGENTS.md
+++ b/products/autoresearch/frontend/AGENTS.md
@@ -52,7 +52,7 @@ Follow `frontend/src/AGENTS.md` — it applies to product frontends too.
- TypeScript with explicit return types; Tailwind utilities rather than inline styles.
- Reuse Lemon / quill components instead of hand-rolling tables, badges, or tags.
- Any button that fires a request must guard against double-submission — `loading` / `disabledReason` on `LemonButton`, reset on both success and error paths. The lifecycle actions here (train, score, archive, pause, resume) are all network calls, and several are expensive: firing `train` twice starts two sandbox agent runs and spends the budget twice.
-- Usage events are part of the API: renaming one breaks every insight built on it. The list logic captures `autoresearch model list viewed`, `autoresearch model list load failed`, `autoresearch model deleted` / `paused` / `resumed`, `autoresearch model training started` (with `source: 'list'` from a card), `autoresearch model card clicked`, and `autoresearch model action failed` (with `action`). The create logic captures `autoresearch model template selected` (with `template_key`), `autoresearch model custom chosen`, `autoresearch model advanced opened`, `autoresearch model created` (with `action`: `start_training` or `save_draft`), and `autoresearch model training started` / `training start failed`. The detail logic captures `autoresearch model tab changed` (with `tab`) when a person picks a tab, `autoresearch model experiment log filter changed` (with `filter`), `autoresearch model accuracy cutoff changed` (with `cutoff`), `autoresearch model search point clicked` (with `run_id`, `iteration_number`, `status`) and `autoresearch model suggestion sent` (with `priority`); buttons carry a `data-attr` for autocapture. Extend the same names when you add a scene.
+- Usage events are part of the API: renaming one breaks every insight built on it. The list logic captures `autoresearch model list viewed`, `autoresearch model list load failed`, `autoresearch model deleted` / `paused` / `resumed`, `autoresearch model training started` (with `source: 'list'` from a card), `autoresearch model card clicked`, and `autoresearch model action failed` (with `action`). The create logic captures `autoresearch model template selected` (with `template_key`), `autoresearch model custom chosen`, `autoresearch model advanced opened`, `autoresearch model created` (with `action`: `start_training` or `save_draft`), and `autoresearch model training started` / `training start failed`. The detail logic captures `autoresearch model tab changed` (with `tab`) when a person picks a tab, `autoresearch model experiment log filter changed` (with `filter`), `autoresearch model accuracy cutoff changed` (with `cutoff`), `autoresearch model search point clicked` (with `run_id`, `iteration_number`, `status`), `autoresearch model experiment details opened` (with `run_id`, `iteration_number`) when a person opens an experiment's working notes and `autoresearch model suggestion sent` (with `priority`); buttons carry a `data-attr` for autocapture. Extend the same names when you add a scene.
## Copy
diff --git a/products/autoresearch/frontend/agentSearch.test.ts b/products/autoresearch/frontend/agentSearch.test.ts
index ae28cfc75908..e717d7726ae2 100644
--- a/products/autoresearch/frontend/agentSearch.test.ts
+++ b/products/autoresearch/frontend/agentSearch.test.ts
@@ -62,6 +62,26 @@ describe('buildAgentSearch', () => {
[2, 3, 6],
])
})
+
+ it.each([
+ [
+ 'the agent summary when there is one',
+ 'Tried fewer features.',
+ 'Dropped 12 features. AUC fell.',
+ 'Tried fewer features.',
+ ],
+ [
+ 'the first sentence of the description otherwise',
+ null,
+ 'Dropped 12 features (v1.2). AUC fell.',
+ 'Dropped 12 features (v1.2).',
+ ],
+ ['the whole description when it has no sentence end', undefined, 'Dropped 12 features', 'Dropped 12 features'],
+ ])('shows %s as the one-line summary', (_, summary, agent_description, expected) => {
+ const it = { ...iteration(0, 'kept', 0.7), summary, agent_description } as IterationTrailApi
+ const { points } = buildAgentSearch([run('run-1', '2026-01-01T00:00:00Z', [it])], null)
+ expect(points[0].summary).toEqual(expected)
+ })
})
describe('experimentLogGroups', () => {
@@ -86,8 +106,26 @@ describe('latestAgentNotes', () => {
]
expect(latestAgentNotes(runs)).toEqual({
runNumber: 1,
+ readerSummary: '',
+ nextSteps: [],
distillation: 'Recency wins',
recommendedNext: 'Try sessions',
})
})
+
+ it('reads the plain notes for people when a run left only those', () => {
+ const runs = [
+ run('run-1', '2026-01-01T00:00:00Z', [], {
+ reader_summary: 'Recent visits predict a purchase best.',
+ next_steps: ['Add session length', ' '],
+ } as Partial<AutoresearchTrainingRunApi>),
+ ]
+ expect(latestAgentNotes(runs)).toEqual({
+ runNumber: 1,
+ readerSummary: 'Recent visits predict a purchase best.',
+ nextSteps: ['Add session length'],
+ distillation: '',
+ recommendedNext: '',
+ })
+ })
})
diff --git a/products/autoresearch/frontend/agentSearch.ts b/products/autoresearch/frontend/agentSearch.ts
index 8280baaf46a9..4e2f362d8d2a 100644
--- a/products/autoresearch/frontend/agentSearch.ts
+++ b/products/autoresearch/frontend/agentSearch.ts
@@ -15,6 +15,8 @@ export interface SearchPoint {
iterationNumber: number
status: AutoresearchIterationStatusEnumApi
holdoutScore: number | null
+ /** One plain line for people: the agent's `summary`, else the first sentence of its description. */
+ summary: string
agentDescription: string
modelSpec: IterationTrailApiModelSpec
/** Best kept holdout AUC before this experiment, across all earlier runs too. */
@@ -51,10 +53,26 @@ export interface ExperimentLogGroup {
export interface AgentNotes {
runNumber: number
+ /** Plain sentences for people. Empty when the agent wrote none. */
+ readerSummary: string
+ nextSteps: string[]
distillation: string
recommendedNext: string
}
+/** Fields for people that older runs and iterations do not have. */
+interface ReaderFields {
+ summary?: string | null
+ reader_summary?: string | null
+ next_steps?: string[] | null
+}
+
+function firstSentence(text: string): string {
+ const trimmed = text.trim()
+ const match = trimmed.match(/^.*?[.!?](?=\s|$)/s)
+ return match ? match[0] : trimmed
+}
+
function oldestFirst(runs: AutoresearchTrainingRunApi[]): AutoresearchTrainingRunApi[] {
return [...runs].sort((a, b) => a.created_at.localeCompare(b.created_at))
}
@@ -103,6 +121,7 @@ export function buildAgentSearch(
iterationNumber: it.iteration_number,
status: it.status,
holdoutScore: score,
+ summary: (it as ReaderFields).summary?.trim() || firstSentence(it.agent_description ?? ''),
agentDescription: it.agent_description ?? '',
modelSpec: it.model_spec,
bestBefore,
@@ -160,12 +179,20 @@ export function experimentLogGroups(
export function latestAgentNotes(trainingRuns: AutoresearchTrainingRunApi[]): AgentNotes | null {
const ordered = oldestFirst(trainingRuns)
for (let i = ordered.length - 1; i >= 0; i--) {
- const summary = ordered[i].summary
- if (ordered[i].status === 'completed' && (summary?.distillation || summary?.recommended_next)) {
+ const run = ordered[i]
+ const { summary } = run
+ const readerSummary = (run as ReaderFields).reader_summary?.trim() ?? ''
+ const nextSteps = ((run as ReaderFields).next_steps ?? []).filter((step) => step.trim())
+ if (
+ run.status === 'completed' &&
+ (readerSummary || nextSteps.length || summary?.distillation || summary?.recommended_next)
+ ) {
return {
runNumber: i + 1,
- distillation: summary.distillation,
- recommendedNext: summary.recommended_next,
+ readerSummary,
+ nextSteps,
+ distillation: summary?.distillation ?? '',
+ recommendedNext: summary?.recommended_next ?? '',
}
}
}
diff --git a/products/autoresearch/frontend/autoresearchPipelineLogic.ts b/products/autoresearch/frontend/autoresearchPipelineLogic.ts
index 6b8f08019ff0..ab40becf4eb7 100644
--- a/products/autoresearch/frontend/autoresearchPipelineLogic.ts
+++ b/products/autoresearch/frontend/autoresearchPipelineLogic.ts
@@ -380,6 +380,9 @@ export interface autoresearchPipelineLogicActions {
viewedArtifact: null
payload?: any
}
+ experimentDetailsOpened: (point: SearchPoint) => {
+ point: SearchPoint
+ }
loadDailyVolume: () => any
loadDailyVolumeFailure: (
error: string,
@@ -838,6 +841,7 @@ export const autoresearchPipelineLogic = kea<autoresearchPipelineLogicType>([
setExperimentLogFilter: (filter: ExperimentLogFilter) => ({ filter }),
toggleLogRun: (runId: string) => ({ runId }),
searchPointClicked: (point: SearchPoint) => ({ point }),
+ experimentDetailsOpened: (point: SearchPoint) => ({ point }),
saveSegmentCohort: (segment: PredictionSegmentKey) => ({ segment }),
saveSegmentCohortFinished: true,
setSegmentThresholds: (thresholds: PredictionSegmentThresholdsApi) => ({ thresholds }),
@@ -1634,6 +1638,14 @@ export const autoresearchPipelineLogic = kea<autoresearchPipelineLogicType>([
status: point.status,
})
},
+ experimentDetailsOpened: ({ point }) => {
+ // pinned: analytics event name and properties. Renaming breaks insights built on them.
+ posthog.capture('autoresearch model experiment details opened', {
+ pipeline_id: props.id,
+ run_id: point.runId,
+ iteration_number: point.iterationNumber,
+ })
+ },
submitSuggestionSuccess: ({ suggestionSubmitResult }) => {
posthog.capture('autoresearch model suggestion sent', {
pipeline_id: props.id,
diff --git a/products/autoresearch/frontend/pipeline/AgentNotes.tsx b/products/autoresearch/frontend/pipeline/AgentNotes.tsx
index 5852ec6ef8d9..5c73cb16ad1a 100644
--- a/products/autoresearch/frontend/pipeline/AgentNotes.tsx
+++ b/products/autoresearch/frontend/pipeline/AgentNotes.tsx
@@ -1,21 +1,62 @@
import { useValues } from 'kea'
+import { LemonCollapse } from '@posthog/lemon-ui'
+
import { autoresearchPipelineLogic } from '../autoresearchPipelineLogic'
-/** What the newest completed run learned, and what the agent plans to try next. Renders nothing before any notes exist. */
+/** What the newest completed run learned, and what comes next. Renders nothing before any notes exist. */
export function AgentNotes(): JSX.Element | null {
const { agentNotes } = useValues(autoresearchPipelineLogic)
if (!agentNotes) {
return null
}
+ const { readerSummary, nextSteps, distillation, recommendedNext, runNumber } = agentNotes
+ // The agent writes its own notes for its next run, so they go behind a toggle when plainer notes exist.
+ const hasReaderNotes = !!readerSummary || nextSteps.length > 0
+ const hasWorkingNotes = !!distillation || !!recommendedNext
return (
<div className="border rounded p-3 space-y-2">
- <div className="text-sm font-semibold">Agent notes</div>
- {agentNotes.distillation && <div className="text-sm">{agentNotes.distillation}</div>}
- {agentNotes.recommendedNext && (
- <div className="text-sm text-muted">Next it plans to: {agentNotes.recommendedNext}</div>
+ <div className="text-sm font-semibold">What the agent learned</div>
+ {hasReaderNotes ? (
+ <>
+ {readerSummary && <div className="text-sm">{readerSummary}</div>}
+ {nextSteps.length > 0 && (
+ <div className="text-sm">
+ <div className="text-muted">Next steps</div>
+ <ul className="list-disc pl-5">
+ {nextSteps.map((step) => (
+ <li key={step}>{step}</li>
+ ))}
+ </ul>
+ </div>
+ )}
+ {hasWorkingNotes && (
+ <LemonCollapse
+ embedded
+ size="xsmall"
+ panels={[
+ {
+ key: 'notes',
+ header: "Agent's working notes",
+ dataAttr: 'autoresearch-agent-working-notes',
+ content: (
+ <div className="space-y-1 text-xs text-muted">
+ {distillation && <div>{distillation}</div>}
+ {recommendedNext && <div>Next it plans to: {recommendedNext}</div>}
+ </div>
+ ),
+ },
+ ]}
+ />
+ )}
+ </>
+ ) : (
+ <>
+ {distillation && <div className="text-sm">{distillation}</div>}
+ {recommendedNext && <div className="text-sm text-muted">Next it plans to: {recommendedNext}</div>}
+ </>
)}
- <div className="text-xs text-muted">From run {agentNotes.runNumber}</div>
+ <div className="text-xs text-muted">From run {runNumber}</div>
</div>
)
}
diff --git a/products/autoresearch/frontend/pipeline/ExperimentLog.tsx b/products/autoresearch/frontend/pipeline/ExperimentLog.tsx
index fd460f2cff0c..acf1a1577e73 100644
--- a/products/autoresearch/frontend/pipeline/ExperimentLog.tsx
+++ b/products/autoresearch/frontend/pipeline/ExperimentLog.tsx
@@ -42,8 +42,12 @@ export function ExperimentLog(): JSX.Element {
)
) : showEntries ? (
<div className="border-t">
- {group.entries.map((entry) => (
- <ExperimentLogEntry key={entry.seq} entry={entry} />
+ {group.entries.map((entry, entryIndex) => (
+ <ExperimentLogEntry
+ key={entry.seq}
+ entry={entry}
+ defaultOpen={index === 0 && entryIndex === 0}
+ />
))}
</div>
) : (
diff --git a/products/autoresearch/frontend/pipeline/ExperimentLogEntry.tsx b/products/autoresearch/frontend/pipeline/ExperimentLogEntry.tsx
index f81866c77a51..b0c1bd0b24ab 100644
--- a/products/autoresearch/frontend/pipeline/ExperimentLogEntry.tsx
+++ b/products/autoresearch/frontend/pipeline/ExperimentLogEntry.tsx
@@ -1,6 +1,9 @@
-import { LemonTag } from '@posthog/lemon-ui'
+import { useActions } from 'kea'
+
+import { LemonCollapse, LemonTag } from '@posthog/lemon-ui'
import { type SearchPoint, formatDelta, formatModelSpec } from '../agentSearch'
+import { autoresearchPipelineLogic } from '../autoresearchPipelineLogic'
const STATUS_TAG: Record<SearchPoint['status'], { type: 'success' | 'default' | 'danger'; label: string }> = {
kept: { type: 'success', label: 'Kept' },
@@ -8,24 +11,35 @@ const STATUS_TAG: Record<SearchPoint['status'], { type: 'success' | 'default' |
crashed: { type: 'danger', label: 'Crashed' },
}
-/** One experiment in the log: its status, its change against the best score before it, and what the agent tried. */
-export function ExperimentLogEntry({ entry }: { entry: SearchPoint }): JSX.Element {
+/** One experiment in the log as one line, with the agent's own notes behind a toggle. */
+export function ExperimentLogEntry({
+ entry,
+ defaultOpen = false,
+}: {
+ entry: SearchPoint
+ defaultOpen?: boolean
+}): JSX.Element {
+ const { experimentDetailsOpened } = useActions(autoresearchPipelineLogic)
const tag = STATUS_TAG[entry.status]
const spec = formatModelSpec(entry.modelSpec)
const delta = formatDelta(entry.delta)
+ const hasNotes = (!!entry.agentDescription && entry.agentDescription !== entry.summary) || !!spec
return (
<div className="border-t first:border-t-0 px-3 py-2 space-y-1">
- <div className="flex items-center gap-2 flex-wrap">
- <span className="text-sm font-semibold">Experiment {entry.iterationNumber}</span>
- <LemonTag type={tag.type} size="small">
+ <div className="flex items-center gap-2 min-w-0">
+ <span className="text-sm font-semibold shrink-0">#{entry.iterationNumber}</span>
+ <LemonTag type={tag.type} size="small" className="shrink-0">
{tag.label}
</LemonTag>
{entry.isLiveModel && (
- <LemonTag type="completion" size="small">
+ <LemonTag type="completion" size="small" className="shrink-0">
Live model
</LemonTag>
)}
- <span className="text-xs text-muted tabular-nums ml-auto">
+ <span className="text-sm truncate flex-1 min-w-0" title={entry.summary}>
+ {entry.summary}
+ </span>
+ <span className="text-xs text-muted tabular-nums shrink-0">
{entry.holdoutScore != null ? `AUC ${entry.holdoutScore.toFixed(3)}` : 'No score'}
{delta && (
<span className={entry.delta != null && entry.delta > 0 ? 'text-success ml-2' : 'ml-2'}>
@@ -34,12 +48,33 @@ export function ExperimentLogEntry({ entry }: { entry: SearchPoint }): JSX.Eleme
)}
</span>
</div>
- {entry.agentDescription && <div className="text-sm">{entry.agentDescription}</div>}
- {spec && (
- <div className="text-xs text-muted font-mono break-words">
- {spec.className}
- {spec.params && ` · ${spec.params}`}
- </div>
+ {hasNotes && (
+ <LemonCollapse
+ embedded
+ size="xsmall"
+ defaultActiveKey={defaultOpen ? 'notes' : undefined}
+ onChange={(key) => key === 'notes' && experimentDetailsOpened(entry)}
+ panels={[
+ {
+ key: 'notes',
+ header: "Agent's working notes",
+ dataAttr: 'autoresearch-experiment-details',
+ content: (
+ <div className="space-y-1">
+ {entry.agentDescription && (
+ <div className="text-sm whitespace-pre-line">{entry.agentDescription}</div>
+ )}
+ {spec && (
+ <div className="text-xs text-muted font-mono break-words">
+ {spec.className}
+ {spec.params && ` · ${spec.params}`}
+ </div>
+ )}
+ </div>
+ ),
+ },
+ ]}
+ />
)}
</div>
)
diff --git a/products/autoresearch/frontend/pipeline/FeatureImportanceChart.tsx b/products/autoresearch/frontend/pipeline/FeatureImportanceChart.tsx
index 28575c47a64c..e7c6f021050e 100644
--- a/products/autoresearch/frontend/pipeline/FeatureImportanceChart.tsx
+++ b/products/autoresearch/frontend/pipeline/FeatureImportanceChart.tsx
@@ -79,7 +79,19 @@ export function FeatureImportanceChart({
))}
</div>
)}
- {explanation.method && <div className="text-xs text-muted">Method: {explanation.method}</div>}
+ {explanation.method && (
+ <LemonCollapse
+ embedded
+ size="xsmall"
+ panels={[
+ {
+ key: 'method',
+ header: 'How this was measured',
+ content: <div className="text-xs text-muted">{explanation.method}</div>,
+ },
+ ]}
+ />
+ )}
{explanation.note && <div className="text-xs text-muted italic">{explanation.note}</div>}
</div>
)