Skip to content

Fix runtime package ability late registration#364

Merged
chubes4 merged 2 commits into
mainfrom
fix/runtime-package-ability-late-registry
Jun 23, 2026
Merged

Fix runtime package ability late registration#364
chubes4 merged 2 commits into
mainfrom
fix/runtime-package-ability-late-registry

Conversation

@chubes4

@chubes4 chubes4 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • preserve the normal wp_abilities_api_init registration path for runtime package abilities
  • register the runtime package ability/category through the backing Abilities registries when Agents API loads after the one-shot Abilities API hooks have already fired
  • add smoke coverage that resolves agents/run-runtime-package through wp_get_ability() in a late/headless lifecycle and executes it through the canonical ability object with a handler filter

Testing

  • php -l src/Runtime/register-runtime-package-run-ability.php
  • php -l tests/runtime-package-run-contract-smoke.php
  • php tests/runtime-package-run-contract-smoke.php
  • composer smoke

AI assistance

  • AI assistance: Yes
  • Tool(s): openai/gpt-5.5 via OpenCode
  • Used for: Agents API ability lifecycle investigation, implementation, and test drafting.

@chubes4 chubes4 merged commit 5ca0fb8 into main Jun 23, 2026
2 checks passed
@chubes4 chubes4 deleted the fix/runtime-package-ability-late-registry branch June 23, 2026 18:53
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