Cover egress_addon adapter and remove coverage omit #290

Open
didericis-claude wants to merge 1 commits from cover-egress-addon-adapter into main

1 Commits

Author SHA1 Message Date
didericis af7f74dc32 test(egress): cover egress_addon adapter; drop coverage omit
lint / lint (push) Successful in 1m50s
test / unit (pull_request) Successful in 46s
test / integration (pull_request) Successful in 17s
The mitmproxy adapter `egress_addon.py` was omitted from coverage
because it can't import on the host (mitmproxy is sidecar-only) and
only its log-redaction helpers were exercised. Add a request/response
flow suite that stubs mitmproxy and drives the adapter glue:
introspection, allowlist enforcement, auth strip+inject, git
push/fetch blocking, the outbound-DLP block/redact/supervise policy
branches (including the operator approval round-trip), inbound
response scanning, and WebSocket frame scanning.

Removes the `bot_bottle/egress_addon.py` omit from `.coveragerc`;
the adapter now reports ~76% covered.

Closes #286

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NkwFXLFff9PYPy4wgVBJp9
2026-06-25 19:31:21 -04:00