Skip to content

Dispatch pending action lifecycle observers#2111

Merged
chubes4 merged 1 commit into
mainfrom
feat/pending-action-observers
May 20, 2026
Merged

Dispatch pending action lifecycle observers#2111
chubes4 merged 1 commit into
mainfrom
feat/pending-action-observers

Conversation

@chubes4
Copy link
Copy Markdown
Member

@chubes4 chubes4 commented May 20, 2026

Summary

  • Adds a Data Machine pending-action observer registry backed by the upstream Agents API WP_Agent_Pending_Action_Observer contract.
  • Dispatches stored, resolved, and expired lifecycle events from PendingActionStore after durable transitions complete.
  • Registers a WordPress hook adapter while preserving the legacy datamachine_pending_action_resolved signature.

Closes #1928.

Testing

  • php tests/pending-actions-agents-api-contract-smoke.php
  • php tests/pending-action-resolver-contract-smoke.php
  • homeboy lint --path /Users/chubes/Developer/data-machine@feat-pending-action-observers --extension wordpress --changed-since origin/main
  • homeboy test --path /Users/chubes/Developer/data-machine@feat-pending-action-observers --extension wordpress --changed-since origin/main
  • git diff --check

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Implementing the pending-action observer dispatch path, smoke coverage, docs updates, and local validation; Chris remains responsible for review and merge decisions.

@chubes4 chubes4 merged commit 176ee17 into main May 20, 2026
5 checks passed
@chubes4 chubes4 deleted the feat/pending-action-observers branch May 20, 2026 01:21
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.

PendingActionStore: observer registry + WordPress action dispatch adapter

1 participant