Skip to content

feat: add Experiment report templates - #1516

Merged
Cedric Vidal (cedricvidal) merged 335 commits into
integration/taxonomyfrom
cedricvidal-experiment-report-templates
Dec 3, 2026
Merged

Cedric Vidal (cedricvidal) merged 335 commits into
integration/taxonomyfrom
cedricvidal-experiment-report-templates

Conversation

@cedricvidal

Copy link
Copy Markdown
Collaborator

Summary

Adds reusable, project-scoped Experiment report templates as the next layer on the Experiment successor stack.

  • Extends the existing report-template catalog with run | experiment subjects, immutable content versions, enablement, and manual / always / linked-run triggers.
  • Freezes exact template-version identity per Experiment execution and schedules configurable reports only after the built-in pp-readout, with independent dependency state, exact-execution claims, stale-message protection, and append-only retries.
  • Adds project-safe API and CLI parity for template lifecycle, Experiment selection/revisioning, report history, and selected-report retry.
  • Adds Portal template creation/edit/version history, Experiment report configuration categories, multi-type/version report selection, and retry while preserving the PR B Option A layout and stable report shell.
  • Adds Cosmos-compatible migration 035, OpenAPI updates, prompt-evaluation coverage, architecture/website documentation, and focused storage/orchestration/UI tests.

Demos

Before

N/A — this is a new Experiment report-template workflow.

After

Creation and immutable versioning, multi-template Experiment configuration, independent processing categories, exact report history, and safe retry:

experiment-report-templates-walkthrough.mp4
Template immutable version history

Template immutable version history

Multi-type report history and retry

Multi-type report history and retry

Testing

  • pnpm test — passed: 292 files, 3,509 tests.
  • pnpm --filter shared build && pnpm --filter db-migrations build && pnpm --filter api build && pnpm --filter readout-handler build && pnpm --filter report-generator build && pnpm --filter cli build && pnpm --filter portal build — passed.
  • pnpm --filter api generate:openapi — passed; committed snapshots/specification regenerated.
  • pnpm eval:static-prompts:validate-data — passed.
  • pnpm eval:static-prompts:smoke — passed offline smoke.
  • pnpm --dir website build — passed.
  • git diff --check — passed.
  • Compose full-profile build under the exclusive lease was attempted once and failed because the local Podman daemon reported no space left on device while creating /var/tmp/libpod_builder…; the single targeted retry stopped before build because the reduced profile omitted the required entra-local-init dependency. No pruning or unrelated Docker resources were touched.
  • Host Vite walkthrough used the normal Scope shell with deterministic browser-level API mocks. Two headed, attention-cued takes were recorded; take 2 was retained and verified by full decode and representative frame inspection. Final media: H.264, yuv420p, 1440×900, 25 fps, faststart (moov before mdat), 38.12 seconds.

Documentation and compatibility

Updated docs/architecture/experiments.md, docs/architecture/app-design.md, docs/architecture/post-processing.md, docs/architecture/prompt-evaluations.md, and the website Experiment guide.

Migration 035 backfills legacy report templates as enabled subject: run templates with immutable version 1 records and adds Cosmos-compatible lookup indexes. pp-readout remains the built-in Experiment readout; no historical artifact is reinterpreted as a configurable template report.

Checklist

  • If Portal features changed, keep CLI capabilities in sync.
  • If Portal components changed, update their Storybook stories.
  • If database changes require a migration, include up() / down() and keep it CosmosDB-compatible.
  • If dependencies changed, update the lockfile and regenerate NOTICE / NOTICE-REVIEW.txt with pnpm notice as needed. N/A — no dependency changes.
  • Video showing the behavior before the suggested change. N/A — new workflow.
  • Video showing the behavior after the suggested change.

Verify inline-to-inline, inline-to-chunked with immutable archive, chunked growth, and chunked-to-inline shrink while preserving exact vectors and fingerprints.\n\nCo-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>\nCopilot-Session: 3d995fd8-10c6-477c-b1d4-27ba9b2d762a
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3d995fd8-10c6-477c-b1d4-27ba9b2d762a
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3d995fd8-10c6-477c-b1d4-27ba9b2d762a
Remove the explicit-empty checkbox, progressively disclose run composition from scenario selection, and keep Experiment API creation discriminated. Add component and Storybook interaction coverage and update the creation guides.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 92d03055-789e-48b7-9a44-6de5b357f486
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 4b4a63b3-29db-4d12-888f-051592682640
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3d995fd8-10c6-477c-b1d4-27ba9b2d762a
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 92d03055-789e-48b7-9a44-6de5b357f486
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 4b4a63b3-29db-4d12-888f-051592682640
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 4b4a63b3-29db-4d12-888f-051592682640
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3d995fd8-10c6-477c-b1d4-27ba9b2d762a
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3d995fd8-10c6-477c-b1d4-27ba9b2d762a
…ment-membership-recovery

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3d995fd8-10c6-477c-b1d4-27ba9b2d762a

# Conflicts:
#	docs/architecture/experiments.md
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3d995fd8-10c6-477c-b1d4-27ba9b2d762a
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3d995fd8-10c6-477c-b1d4-27ba9b2d762a
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3d995fd8-10c6-477c-b1d4-27ba9b2d762a
Use the Atom icon for Experiment navigation and empty states while preserving the Criteria flask identity. Add focused layout and Storybook assertions for the distinct icons.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 92d03055-789e-48b7-9a44-6de5b357f486
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3d995fd8-10c6-477c-b1d4-27ba9b2d762a
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 92d03055-789e-48b7-9a44-6de5b357f486
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 92d03055-789e-48b7-9a44-6de5b357f486
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 4b4a63b3-29db-4d12-888f-051592682640
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 92d03055-789e-48b7-9a44-6de5b357f486
Add compact attempt-scoped Runs, Reports, and Processing tabs with URL-backed report type and version history selection.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 4b4a63b3-29db-4d12-888f-051592682640
Keep report identity, controls, badges, and actions anchored while only the report body changes across completed, processing, blocked, failed, and empty states.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 4b4a63b3-29db-4d12-888f-051592682640
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3d995fd8-10c6-477c-b1d4-27ba9b2d762a

# Conflicts:
#	apps/portal/src/pages/ExperimentDetail.test.tsx
#	apps/portal/src/pages/ExperimentDetail.tsx
#	docs/architecture/experiments.md
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3d995fd8-10c6-477c-b1d4-27ba9b2d762a
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3d995fd8-10c6-477c-b1d4-27ba9b2d762a
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 3d995fd8-10c6-477c-b1d4-27ba9b2d762a
Extend versioned report templates to Experiment executions with immutable template identities, independent scheduling and retries, API and CLI parity, Portal configuration and report history, migration coverage, prompt evaluations, and documentation.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: a1387f4c-83dd-48cb-9e8c-07398fefd60e
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Keep durable status and report visibility fenced; defer uncertain storage writes and repair the committed report on redelivery. Build exact run manifests and counts in code. Bound and label sampled evidence, treat it as data, and give invalid model references the same bounded correction path as syntax and schema errors.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
…from clearing

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
…tion

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Journal and fence provisional user-run claims before publication. Recover interrupted batches and ambiguous finalization from pinned identities, and keep retained members on their exact historical runs. Limit projected selection reads, conditional claim batches and bulk deletion size.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Keep verified members and profile membership on disk. Send only exact aggregates and bounded sampled evidence to the model, then stream all runs and profiles into the original artifact layout. Exercise 4,097 and 250,000 members without a population or artifact-size cutoff.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e767814e-3331-4a7e-ae96-15207b53ac9c
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e767814e-3331-4a7e-ae96-15207b53ac9c
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e767814e-3331-4a7e-ae96-15207b53ac9c
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e767814e-3331-4a7e-ae96-15207b53ac9c
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e767814e-3331-4a7e-ae96-15207b53ac9c
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e767814e-3331-4a7e-ae96-15207b53ac9c
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e767814e-3331-4a7e-ae96-15207b53ac9c
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e767814e-3331-4a7e-ae96-15207b53ac9c
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

Test Results (Node.js 22)

test: Run #728

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
4197 4189 0 8 0 0 0 2m15s

🎉 All tests passed!

Github Test Reporter

Validate the exact sampled identity and bounded excerpt, not whether the prose is a literal substring. Keep correction of invalid references within the existing three attempts.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e767814e-3331-4a7e-ae96-15207b53ac9c
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: e767814e-3331-4a7e-ae96-15207b53ac9c
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

Test Results (Node.js 22)

test: Run #741

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Pending ⏳ Other ❓ Flaky 🍂 Duration ⏱️
4206 4198 0 8 0 0 0 1m52s

🎉 All tests passed!

Github Test Reporter

@cedricvidal
Cedric Vidal (cedricvidal) marked this pull request as ready for review December 3, 2026 19:47
Base automatically changed from cedricvidal-experiment-membership-recovery to integration/taxonomy December 3, 2026 20:31
Apply the reviewed template layer over the squash-equivalent membership base without replaying its parent changes.

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@cedricvidal
Cedric Vidal (cedricvidal) merged commit 206e81c into integration/taxonomy Dec 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: api Scope REST API, run orchestration, SSE streaming, and endpoints. area: cli Scope command-line interface and terminal workflows. area: infrastructure Cloud resources, hosting, networking, and shared infrastructure. area: portal Scope web portal, pages, and user-facing components. area: post-processing ATIF generation and the run-output post-processing pipeline. area: reporting Generation and delivery of benchmark reports. area: scheduler area: shared Shared package: types, DB models, and queue/blob/redis clients used by all apps. area: website Scope documentation website (Astro) under website/. area: worker Coding agent worker runtime, task execution, and lifecycle. language: javascript Work involving JavaScript code, tooling, or dependencies. topic: testing Test coverage, test infrastructure, and validation quality. topic: ui Portal, visual presentation, layout, and interface components. type: documentation Documentation additions, corrections, and improvements. type: enhancement New functionality or improvements to existing behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants