Skip to content

Add browser provider adapter hook#550

Merged
chubes4 merged 1 commit into
mainfrom
fix/issue-545-provider-adapter-hook
Jun 3, 2026
Merged

Add browser provider adapter hook#550
chubes4 merged 1 commit into
mainfrom
fix/issue-545-provider-adapter-hook

Conversation

@chubes4
Copy link
Copy Markdown
Collaborator

@chubes4 chubes4 commented Jun 3, 2026

Summary

  • Adds wp-codebox/execute-browser-provider-request as the generic parent-side provider adapter ability for browser connector requests.
  • Dispatches connector-scoped requests through wp_codebox_browser_provider_request, with fail-closed missing/invalid adapter behavior and redacted request/response/audit envelopes.
  • Documents the contract and adds smoke coverage for permissions, adapter dispatch, fail-closed behavior, and secret redaction.

Closes #545.

Testing

  • php tests/smoke-wordpress-plugin.php
  • php -l packages/wordpress-plugin/src/trait-wp-codebox-abilities-provider-adapter.php && php -l packages/wordpress-plugin/src/class-wp-codebox-abilities.php

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (gpt-5.5)
  • Used for: Investigated the browser connector/provider boundary, drafted the generic adapter contract and tests, and prepared this PR for Chris to review.

@chubes4 chubes4 force-pushed the fix/issue-545-provider-adapter-hook branch from 0527aa9 to fcc02f6 Compare June 3, 2026 14:36
@chubes4 chubes4 force-pushed the fix/issue-545-provider-adapter-hook branch from fcc02f6 to b91c87a Compare June 3, 2026 14:40
@chubes4 chubes4 merged commit 3188812 into main Jun 3, 2026
@chubes4 chubes4 deleted the fix/issue-545-provider-adapter-hook branch June 4, 2026 20:59
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.

Define provider adapter hook for browser connector bridge

1 participant