Remove runtime route-mutation path (egress-block MCP tool + egress_apply merge) #198
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The
egress-blockMCP tool and its backingegress_apply._merge_single_routepath let a running agent propose ephemeral route additions at runtime. This should be removed in favor of modifying the bottle manifest and applying the sidecar delta to the running bottle.Reasons (from PR #196 review):
_merge_single_route, legacypath_allowlistconversion, token slot assignment) is complex to maintainyto everything the bottle asks for; friction isn't exactly badScope
egress-blocktool definition fromsupervise_server.py_merge_single_route,add_route, andapply_routes_changefromegress_apply.py(keepvalidate_routes_contentandfetch_current_routesif still useful)cli/supervise.pytest_egress_apply.py,test_supervise_cli.pyFuture direction
A better model for runtime changes: modify the bottle config → apply the sidecar delta to the running bottle. This requires a strict separation between what in the manifest results in a sidecar change vs an agent image change. Tracked separately.