Address code review feedback: optimize registry lookups, add input validation, improve diagnostics - #131
Merged
SamuelMcAravey merged 4 commits intoDec 22, 2025
Conversation
…, improve error messages and documentation Co-authored-by: SamuelMcAravey <11021165+SamuelMcAravey@users.noreply.github.com>
…ling Co-authored-by: SamuelMcAravey <11021165+SamuelMcAravey@users.noreply.github.com>
Co-authored-by: SamuelMcAravey <11021165+SamuelMcAravey@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Strengthen engine descriptors and typed navigation
Address code review feedback: optimize registry lookups, add input validation, improve diagnostics
Dec 21, 2025
SamuelMcAravey
marked this pull request as ready for review
December 22, 2025 04:40
SamuelMcAravey
merged commit Dec 22, 2025
0273b96
into
codex/2025-12-21-refactor-solution-for-transport-agnostic-modules-1ziys6
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.
Addresses performance, validation, and documentation feedback from PR review comments.
Performance Optimization
Registry lookups refactored to avoid full snapshots:
FindWebhookEngineandFindByIdnow search lists directly under locks instead of callingGetEngines()FindByIdnarrows to specific moduleKey before iteration, eliminating unnecessary scansInput Validation
Adapters now validate parameters at entry:
WebhookEngineAdapter: validates Provider and EventType are non-emptyUiEngineAdapter: validates moduleKey and engineId are non-emptyArgumentExceptionwith clear messages on invalid inputError Messages
Improved diagnostic clarity:
Documentation
Clarified reserved and ambiguous parameters:
SupportsAsync: documented as reserved for future use (all engines are currently async)WebhookRequest.Attempt: documented as 1-based for callers despite 0 defaultRequiredServices: added engine-overview.md section explaining host validation expectationsTest Coverage
Added tests for error paths:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.