Skip to content

Extract tool mediation runner#342

Merged
chubes4 merged 2 commits into
mainfrom
feat/tool-mediation-runner
Jun 18, 2026
Merged

Extract tool mediation runner#342
chubes4 merged 2 commits into
mainfrom
feat/tool-mediation-runner

Conversation

@chubes4

@chubes4 chubes4 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a public WP_Agent_Tool_Mediation_Runner facade for deterministic provider-turn tool mediation.
  • Routes Conversation_Loop mediated tool-call handling through the runner without changing existing mediation behavior.
  • Adds focused pure-PHP smoke coverage for direct runner normalization, execution, redaction, events, and audit output.

Testing

  • php -l src/Runtime/class-wp-agent-tool-mediation-runner.php && php -l src/Runtime/class-wp-agent-conversation-loop.php && php -l tests/tool-mediation-runner-smoke.php
  • php tests/tool-mediation-runner-smoke.php
  • php tests/conversation-loop-tool-execution-smoke.php
  • composer test
  • composer phpstan

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: extracted and tested reusable tool mediation runner.

@chubes4 chubes4 merged commit fb983df into main Jun 18, 2026
2 checks passed
@chubes4 chubes4 deleted the feat/tool-mediation-runner branch June 18, 2026 13:36
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