Skip to content

feat: implement streaming provider plugin framework#47

Merged
AKKI0511 merged 5 commits intomainfrom
implement-streaming-provider-adapter-integration-system
Oct 10, 2025
Merged

feat: implement streaming provider plugin framework#47
AKKI0511 merged 5 commits intomainfrom
implement-streaming-provider-adapter-integration-system

Conversation

@AKKI0511
Copy link
Owner

Summary

  • add provider discovery, registry, configuration validation, and health monitoring components for streaming adapters
  • include an example streaming provider and expose plugin utilities via the streaming package
  • add unit, property-based, and integration tests covering discovery, adapters, configuration negotiation, and health monitoring

Testing

  • poetry run pytest
  • poetry run pre-commit run --all-files

https://chatgpt.com/codex/tasks/task_e_68e85c14f8c0832ab56011c98a4f6375

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines 154 to 172
runtime = ProviderRuntimeConfiguration(
provider=config.provider,
environment=env_name,
credentials=credentials,
options=options,
asset_types=asset_types,
data_types=data_types,
rate_limit_per_minute=rate_limit,
max_subscriptions=max_subscriptions,
requires_authentication=(
env_config.requires_authentication
if env_config.requires_authentication is not None
else capabilities.requires_authentication
),
)

self._validate_capabilities(capabilities, runtime)
if runtime.requires_authentication and not runtime.credentials:
raise ProviderConfigurationError(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Enforce provider-required authentication

The runtime configuration lets an environment override requires_authentication (defaulting to env_config.requires_authentication) before credentials are validated. If a provider’s capabilities declare requires_authentication=True, an environment can set requires_authentication=False and omit credentials, and the validator will still succeed because the later check only inspects the overridden flag. This allows misconfigured providers to run without credentials and will fail later at connect time. The validator should refuse configurations that disable authentication when the adapter’s capabilities mark it as required, regardless of environment overrides.

Useful? React with 👍 / 👎.

@AKKI0511 AKKI0511 merged commit 271f5ad into main Oct 10, 2025
1 check passed
@AKKI0511 AKKI0511 deleted the implement-streaming-provider-adapter-integration-system branch October 10, 2025 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant