feat(gateway): add VK adapter contract - #447
Closed
esafwan wants to merge 1 commit into
Closed
Conversation
esafwan
marked this pull request as ready for review
July 26, 2026 13:40
This was referenced Jul 26, 2026
Contributor
Author
|
Superseded by consolidated Gateway PR #473, preserving the foundation, SDK, adapter, runtime bridge, security, and documentation scope. |
This was referenced Jul 26, 2026
esafwan
added a commit
that referenced
this pull request
Jul 26, 2026
…me list (#481) - gatewayApi.ts: replace stale access_policy with direct_policy/room_policy/ room_sender_policy/mention_required/pairing_ttl_minutes; expand provider type. - GatewaysPage.tsx: use direct_policy; add TODO comments; fallback icons/names for providers without adapter UIs. - App.tsx / app-sidebar.tsx: comment out /gateways route and sidebar item while the feature is incomplete. - flow_run.json: remove Gateway from trigger_type options. - gateway_service.py: add TODO where Gateway trigger_type is used. - docs/gateway-todo.md: new shame list / restoration checklist. - AGENTS.md: link to docs/gateway-todo.md. Refs #473, #441, #442, #443, #446, #447, #448, #449.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the first region-specific Gateway Adapter SDK implementation for VK Community Bots.
message_newCallback API events with a constant-time callback-secret comparison.api.vk.ru/method/messages.sendwith required API version, community token, andrandom_id.Scope boundary
This is a provider adapter only. A later integration slice, after Gateway foundation PR #441, will connect verified events to Gateway persistence/routing.
Verification
python3 -m py_compile huf/ai/gateway_adapters/*.py huf/ai/tests/test_gateway_adapter_sdk.py huf/ai/tests/test_vk_gateway_adapter.py11/11unit tests passing across SDK + VK fixtures.Evidence
VK Callback API / Community Bots Long Poll provide inbound options and
messages.sendprovides outbound messaging. The adapter deliberately does not trust user-supplied callback payload fields beyond VK’s configured Callback secret; idempotency and admission are delegated to Gateway foundation.Related PRs
Runtime bridge