Skip to content

Persist agent system_prompt to task_run metadata for QA workflows#373

Closed
shfunc wants to merge 1 commit intomainfrom
ilya/hud-1019-add-agent-system-prompt-as-workflow-input-field
Closed

Persist agent system_prompt to task_run metadata for QA workflows#373
shfunc wants to merge 1 commit intomainfrom
ilya/hud-1019-add-agent-system-prompt-as-workflow-input-field

Conversation

@shfunc
Copy link
Contributor

@shfunc shfunc commented Mar 17, 2026

Note

Medium Risk
Adds system_prompt to eval metadata sent to the backend, which could increase stored data volume and may surface sensitive prompt content if not intended.

Overview
Ensures an eval run’s agent system_prompt is persisted to backend storage by copying it into metadata["agent_config"]["system_prompt"] when building an EvalContext from a task and again just before constructing the enter/exit payload.

This makes QA/workflow tooling able to retrieve the exact system prompt used for a task_run, even when the caller didn’t explicitly include it in metadata.

Written by Cursor Bugbot for commit f475d6b. This will update automatically on new commits. Configure here.

@shfunc shfunc closed this Mar 17, 2026
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.

1 participant