Skip to content

feat(experiments): delete from list, launch new runs into an existing experiment - #88

Merged
SushantGautam merged 2 commits into
mainfrom
feat/experiment-delete-and-attach
Nov 9, 2026
Merged

SushantGautam merged 2 commits into
mainfrom
feat/experiment-delete-and-attach

Conversation

@SushantGautam

@SushantGautam SushantGautam commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Experiments list: each row gets a Delete action (admin/auditor; admin only for public experiments). Reuses ExperimentDeleteView and its confirm text; runs are kept and the user returns to the list.
  • New Experiment → existing experiment: new "Add to experiment" picker (default: New experiment). Launching into an existing experiment adds the runs to it instead of creating a new one. Works for single-run, multi-run (review shows "Adding to experiment") and repeating launches.
  • Public experiments: a consent checkbox is required client-side and confirm_public is enforced server-side, the same rule as manual add_runs.
  • Experiment page: "+ New runs" button opens /experiments/new/?into=<id> preset.
  • Safety: cross-workspace or deleted experiments are rejected; the run cap is checked under a select_for_update lock.

Testing

  • New infra/tests/test_experiment_attach.py (8 tests).
  • Related suites (experiments, monitors, clone, smoke, malformed input, connection sharing, audits): 191 tests pass; ruff clean.
  • Manual browser walkthrough on an isolated SQLite DB: multi-run attach, public attach with consent, list delete (runs kept). The native confirm() was stubbed in the browser pane.

… experiment

- Experiments list: per-row Delete (admin/auditor; admin for public), runs kept.
- New Experiment: 'Add to experiment' picker to launch into an existing
  experiment instead of creating one; public targets need explicit consent.
  Works for single-run, multi-run review and repeating launches.
- Experiment page: '+ New runs' button opens New Experiment preset via ?into=.
- Same role rules as manual add_runs; run cap enforced under a row lock.

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 9, 2026 12:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

Replace the 'Add to experiment' select with a New/Existing toggle and a
searchable list showing each experiment's run count, last update and
public badge. Enter picks the first match; launching is blocked until an
experiment is picked when 'Existing' is chosen.
@SushantGautam
SushantGautam merged commit 49782dc into main Nov 9, 2026
1 check passed
@SushantGautam
SushantGautam deleted the feat/experiment-delete-and-attach branch November 9, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants