Skip to content

Support listing and deleting recorded agent actions - #6571

Open
ayoubdiourin7 wants to merge 3 commits into
mozilla:masterfrom
ayoubdiourin7:feature/manage-agent-actions
Open

Support listing and deleting recorded agent actions#6571
ayoubdiourin7 wants to merge 3 commits into
mozilla:masterfrom
ayoubdiourin7:feature/manage-agent-actions

Conversation

@ayoubdiourin7

Copy link
Copy Markdown
Collaborator

Summary

  • Add tools for agents to list and remove actions recorded during the current run.
  • Assign stable action IDs so recorded actions can be referenced safely.
  • Enable the new recorded_actions tools for the bug-fix and frontend-triage agents.
  • Update prompts to explain when agents should review or retract recorded actions.
  • Add tests covering action listing, removal, unknown IDs, attachments, and final runtime summaries.

Fixes #6513

@ayoubdiourin7
ayoubdiourin7 requested review from a team as code owners August 11, 2026 16:09
Comment on lines +83 to +85
The `actions` MCP tools (`bugzilla_add_comment`, `bugzilla_update_bug`) do **not** mutate Bugzilla directly. They record an intended action for the run's `summary.json`, where a human reviewer or downstream apply step can enact it.

Recorded actions remain proposals until the run finishes. Use `recorded_actions_list_actions` when you need to recover or verify their complete details. If you discover that a proposal is inaccurate, retract exactly that action with `recorded_actions_remove_action`, then record a corrected action if needed.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let us not use this in any agent yet; we could enable it later based on the need.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Adressed in c582040

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.

Support managing the reported agent actions

2 participants