refactor(webhook): extract webhook API router + profile admission (Webhook Feature Package) - #84835
andrexibiza wants to merge 9 commits into
Conversation
Class closure — selective multiplex admission authorityProduction chain
The repair belongs at that extracted authority boundary—not in downstream route checks and not as an independently reconstructed policy—so every consumer observes the same configuration authority. Evidence chain
Sibling map
Issue #85054 remains open behind this PR’s native |
Signed-off-by: Axl Ibiza, MBA <andrexibiza@gmail.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
refactor(webhook): extract webhook API router + profile admission (Webhook Feature Package)Solid decomposition of the webhook god-file; the
|
|
The webhook API router extraction is complete at exact head |
|
Thanks @andrexibiza for this refactor. Closing as superseded: the webhook REST cluster left |
Part of the Webhook Feature Package Feature Package.
Behavior-preserving extractions from the webhook god-files, rebased onto current
main(1d3d021):refactor(web): extract webhook API router without behavior change— moves the webhook REST cluster fromhermes_cli/web_server.py(18K-line god-file) intohermes_cli/web_routers/webhooks.py, re-exporting patched names throughhermes_cli.web_serverfor existing tests/users.fix(web): preserve webhook summary monkeypatch seam— keeps the summary endpoint monkeypatch-compatible.refactor(webhook): extract profile admission policy— moves_resolve_request_profile/_route_allows_profile/_PROFILE_REJECTEDintogateway/platforms/webhook_profile_admission.pyasWebhookProfileAdmissionMixin, composed intoWebhookAdapterMRO.fix(webhook): preserve profile annotation resolution— preserves profile annotation behavior.Verification
tests/gateway/test_webhook_profile_admission_seam.py+tests/test_web_server_webhooks_seam.py→ 5 passed on rebased base.2K invariant
web_server.pyreduced 161 lines;webhook.pyreduced 70 lines. No file exceeds 2,000 lines.Fixes #85054