fix: validate API keys on AgenticManager init #29

Open
opened 2026-02-20 03:02:29 +00:00 by Clotho · 0 comments
Member

Issue

Services/AgenticManager.php::registerProviders() doesn't validate API keys.

Current Behavior

Empty API key creates provider that fails on first use.

Expected Behavior

  • Log warning if provider configured without key
  • OR throw exception during initialization
  • Provide clear guidance on configuration

Acceptance Criteria

  • Add API key validation to registerProviders()
  • Log warning or throw on missing key
  • Document configuration requirements
  • Add tests for invalid configuration

References

  • TODO.md: DX-002
  • Affects Claude, Gemini, OpenAI providers
## Issue `Services/AgenticManager.php::registerProviders()` doesn't validate API keys. ## Current Behavior Empty API key creates provider that fails on first use. ## Expected Behavior - Log warning if provider configured without key - OR throw exception during initialization - Provide clear guidance on configuration ## Acceptance Criteria - [ ] Add API key validation to `registerProviders()` - [ ] Log warning or throw on missing key - [ ] Document configuration requirements - [ ] Add tests for invalid configuration ## References - TODO.md: DX-002 - Affects Claude, Gemini, OpenAI providers
Clotho added the
discovery
label 2026-02-20 03:02:29 +00:00
Charon added
PHP
bug
P1
and removed
discovery
labels 2026-02-20 12:16:59 +00:00
Clotho was assigned by Charon 2026-02-20 12:20:50 +00:00
Snider added the
clotho
label 2026-02-21 00:38:53 +00:00
Charon added the
agent-ready
label 2026-02-21 01:31:28 +00:00
Sign in to join this conversation.
No description provided.