Repository navigation
feat(prompts): pick predefined system prompts in experiments + agents, freeze version - #44
Merged
SushantGautam merged 3 commits intoOct 13, 2026
Conversation
…, freeze version - New Experiment: "Predefined prompt" is now the same searchable list as Models / Scenario sets (search box + radio rows); picking one fills the system-prompt box, typing your own clears the selection. - Agent editor: same list picker with click-to-fill (previously a plain select with no sync). - Frozen manifest: runs pin the exact SystemPromptVersion used; the version appears in generation_parameters_snapshot.system_prompt_source and on the run detail + comparison views for reproducibility. - Deletion protection: a system prompt cannot be deleted while an audit run pins it or an agent uses its text (mirrors scenario-set in-use guard). Fixes delete_prompt which previously never deleted. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… select The predefined system prompt picker on New Experiment and the agent editor now mirrors the Scenario sets block: each prompt is a row with a radio on its name (= latest version) and a "Versions" expander on the right listing every version as a radio (with a View link). Selection is single — all radios share one name so exactly one prompt/version is chosen; picking any fills the box below and typing your own clears it. The agent editor still auto-preselects the version whose content matches the agent's current prompt. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
SushantGautam
deleted the
agents/in-experiments-new-also-shodul-show-iption-to
branch
October 13, 2026 23:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a predefined system prompt picker to New Experiment and the Agent editor, reusing the same searchable list UI as the Models / Scenario-set pickers, and freezes the chosen prompt version into each run's reproducibility manifest.
Changes
<select>with no sync).SystemPromptVersionused (new nullable FK + migrationaudits/0009). The version shows ingeneration_parameters_snapshot.system_prompt_source, on the run detail page, and in comparisons, so historical runs stay reproducible.delete_prompt, which previously never actually deleted.Tests
test_experiments.py,test_agent_domain.py,test_prompts.py(picker renders as list, content + source baked into snapshot, FK pinned, review round-trip, deletion blocked when in use / allowed when unused).Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com