Decompose egress_addon_core.py detector-config parsing #287

Open
opened 2026-06-25 19:24:55 -04:00 by didericis-claude · 0 comments
Collaborator

From quality-eval audit (medium priority).

bot_bottle/egress_addon_core.py is 862 LOC and mixes detector-config parsing/validation (_parse_detectors, outbound_on_match schema checks) with the runtime scan/decision flow.

Task: Split detector-config parsing/validation into its own module so the request-time decision path reads top-to-bottom without scrolling past config plumbing. Pure refactor; behavior unchanged.

No PRD required (refactor).

From quality-eval audit (medium priority). `bot_bottle/egress_addon_core.py` is 862 LOC and mixes detector-config parsing/validation (`_parse_detectors`, `outbound_on_match` schema checks) with the runtime scan/decision flow. **Task:** Split detector-config parsing/validation into its own module so the request-time decision path reads top-to-bottom without scrolling past config plumbing. Pure refactor; behavior unchanged. No PRD required (refactor).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: didericis/bot-bottle#287