Skip to content

[q] Switch agent-persona-explorer output from discussion to issue #37613

@github-actions

Description

@github-actions

Q Workflow Optimization Report

Triggered by: @pelikhan in discussion #37598

Issue Found

agent-persona-explorer

  • Problem: The workflow was publishing findings as a GitHub discussion (via create-discussion safe-output), but the team wants reports created as issues instead.
  • Evidence: Run #27097345536 created discussion Agent Persona Exploration - 2026-06-07 #37598 titled "Agent Persona Exploration - 2026-06-07".
  • Root cause: safe-outputs.create-discussion was configured; needs to be safe-outputs.create-issue.
Changes Made

agent-persona-explorer (.github/workflows/agent-persona-explorer.md)

  • Replaced safe-outputs.create-discussion with safe-outputs.create-issue (with close-older-issues: true)
  • Updated experiment guardrail metric from discussion_created to issue_created
  • Updated Phase 5 prompt instructions: all references to create discussion changed to create issue
  • Updated success criteria and CRITICAL reminder sections accordingly
  • Kept permissions.issues: read (write access is handled by the safe-output, not a direct permission)

Expected Improvements

  • Future runs will publish their persona exploration reports as issues instead of discussions, making them searchable, labelable, and assignable in the normal issue workflow.
  • The close-older-issues: true setting ensures only the most recent report stays open.

Validation

All modified workflows compiled successfully:

  • agent-persona-explorer

Note: .lock.yml will be regenerated automatically after merge.

References


Warning

Protected Files — Push Permission Denied

This was originally intended as a pull request, but the patch modifies protected files. A human must create the pull request manually.

Protected files

The push was rejected because GitHub Actions does not have workflows permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission.

Create the pull request manually
# Download the patch from the workflow run
gh run download 27099847090 -n agent -D /tmp/agent-27099847090

# Create a new branch
git checkout -b q/agent-persona-explorer-use-issue-869815f7fea402bf main

# Apply the patch (--3way handles cross-repo patches)
git am --3way /tmp/agent-27099847090/aw-q-agent-persona-explorer-use-issue.patch

# Push the branch and create the pull request
git push origin q/agent-persona-explorer-use-issue-869815f7fea402bf
gh pr create --title '[q] Switch agent-persona-explorer output from discussion to issue' --base main --head q/agent-persona-explorer-use-issue-869815f7fea402bf --repo github/gh-aw

🎩 Equipped by Q · sonnet46 127.7K · ⌖ 13.6 AIC ·

  • expires on Jun 9, 2026, 9:47 AM UTC-08:00

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions