Skip to content

Make pending-action review/apply primitives frontend-product ready #2562

@chubes4

Description

@chubes4

Goal

Harden generic pending-action review/apply primitives so product frontends can safely review generated or agent-proposed changes without going through wp-admin or CLI.

This supports Intelligence wiki review queues in Automattic/intelligence#817 and the Horse frontend review queue.

Required work

  • Provide stable REST/ability surfaces for listing, reading, approving, rejecting, and applying pending actions.
  • Include capability checks, owner/agent scope, side-effect summary, rollback/cleanup notes, and redacted parameter payloads.
  • Make pending-action listing robust for all kinds, including existing failures like Extra-Chill/data-machine#2526.
  • Preserve audit history for reviewer decisions.
  • Keep review item semantics generic; domain-specific payloads belong to the caller.

Acceptance criteria

  • A frontend product can safely present pending actions for human review.
  • Pending actions are not limited to admin/CLI workflows.
  • Sensitive payloads are redacted and side effects are explicit before approval.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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