feat(proxies): accept operator-provided dated egress observations for pool members - #15314
Open
maxmad64bis wants to merge 1 commit into
Open
maxmad64bis wants to merge 1 commit into
maxmad64bis wants to merge 1 commit into
Conversation
maxmad64bis
force-pushed
the
feat/operator-egress-observations
branch
from
October 2, 2026 00:49
d12fd88 to
1ba9ca5
Compare
maxmad64bis
force-pushed
the
feat/operator-egress-observations
branch
4 times, most recently
from
October 2, 2026 09:18
a1ea8e3 to
fc413a6
Compare
maxmad64bis
marked this pull request as ready for review
October 2, 2026 09:18
maxmad64bis
force-pushed
the
feat/operator-egress-observations
branch
from
October 2, 2026 15:09
fc413a6 to
8116227
Compare
This was referenced Oct 2, 2026
maxmad64bis
force-pushed
the
feat/operator-egress-observations
branch
from
October 4, 2026 11:16
8116227 to
25c43d3
Compare
maxmad64bis
force-pushed
the
feat/operator-egress-observations
branch
from
October 4, 2026 12:04
25c43d3 to
2d0ca99
Compare
This branch has not been deployed
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.
Summary
Adds an opt-in way for an operator to tell OmniRoute which exit addresses a pool member currently uses, with the date of the observation. Today the only source is OmniRoute's own echo probe, cached for a few minutes, which is wrong as soon as a member switches nodes behind one port. With
PROXY_OPERATOR_EGRESS_ENABLEDon, fresh rows are used for ordering and shown in the pool view as "operator-provided, dated"; a stale row counts as absent, and the freshest observation wins. Off by default: no behavior change without the flag.Related Issues
Validation
npm run lintTests Added Or Updated
tests/unit/proxy-operator-egress-store.test.ts(new, 10 cases: schema rejections, idempotent upsert, freshest-wins, expiry, caps and eviction, concurrent pushes)tests/unit/proxy-operator-egress-route.test.ts(new, 11 cases: 404 flag off, 401 without auth, 400 all-rejected, 200 with ignored counting)tests/unit/proxy-operator-egress-reader.test.ts(new, 7 cases: 3-address set, freshness crossover both ways, flag-off identical, cache-then-expire)tests/unit/proxy-operator-egress-migration.test.ts(new, 1 case: table, key, index)tests/unit/proxy-operator-egress-i18n.test.ts(new, 1 case: keys present in all locales, component wiring)tests/unit/proxy-pool-member-egress-route.test.ts(updated:source: nullin one pinned body)tests/unit/ui/PoolMemberEgressLines.test.tsx(updated: operator line, forward compatibility)tests/unit/feature-flags-settings.test.ts+tests/unit/server-owned-tool-loop-flag.test.ts(updated: flag count 80 to 81)Coverage Notes
src/lib/db/proxyOperatorEgress.ts: store, reader, route, migration testssrc/lib/db/proxies/rotation.ts: reader tests (merged set, freshest, flag-off path)src/lib/proxyPoolEgressObservation.ts: reader and member-egress route testssrc/app/api/settings/proxies/operator-egress/route.ts: route testssrc/app/api/settings/proxies/pool/member-egress/route.ts: member-egress route testssrc/app/(dashboard)/dashboard/settings/components/PoolMemberEgressLines.tsx: UI testssrc/shared/network/egressAddress.ts: store and reader tests via validation pathssrc/shared/constants/featureFlagDefinitions.ts+src/shared/utils/featureFlags.ts+src/shared/validation/schemas/proxy.ts: pinned by flag count and route rejection testsReviewer Notes
197_proxy_subscription_core_config.sqland198_proxy_subscription_core_binary.sql, which are not on the base yet; this PR takes 197 on the current base (--next-migration), so it merges after feat(proxy-subscription): generate the local proxy-core configuration (opt-in) #15141/feat(proxy-subscription): verify the generated core configuration before replacing the file #15142/feat(proxy-subscription): reload the proxy core after a verified config replacement #15238/feat(proxy-subscription): prune nodes the core check rejects, then retry verification #15295 (which carry 197/198 on their branches; the oldest claims the slot, the rest renumber), after perf(db): drop two conversation_turn_nodes indexes no query reads #15354 and fix(proxy-subscription): report internal core config failure distinctly #15377 (which also claim 197 on their branches): this PR renumbers on top once the first lands. Shares.env.exampleanddocs/reference/ENVIRONMENT.md(append-only additions at distinct anchors) with fix(proxy-health): skip sweep probes already proven by recent production successes #14805, feat(proxy-subscription): verify the generated core configuration before replacing the file #15142, feat(proxy-subscription): reload the proxy core after a verified config replacement #15238 and feat(proxy-subscription): prune nodes the core check rejects, then retry verification #15295: either order. With fix(proxy-health): skip sweep probes already proven by recent production successes #14805, feat(proxy-subscription): verify the generated core configuration before replacing the file #15142, feat(proxy-subscription): reload the proxy core after a verified config replacement #15238, feat(proxy-subscription): prune nodes the core check rejects, then retry verification #15295, fix(proxies): set aside region-refused members briefly #15383, feat(dashboard): flag uniform provider 5xx regime and split upstream counts #15386, feat(i18n): forward the optional reasoning control in the translation backend #15462 and feat(proxy-subscription): warn with a translated count when generation skips entries #15564 (shared files): either order. Adds a migration; the migration counts in README, AGENTS.md and llm.txt stay as they are (they move with the release train), socheck:docs-countsis red until then. The newrotation.tsread is one-way into the egress table (no return edge, cycle check passes with 0 cycles), so the shared-file order above covers it.