Task · MDE-0040

Route status registry work through bounded admission

Description

Wave 3 found that building NetworkFilter status iterates the full Prometheus registry synchronously inside the async status route. This bypasses the bounded registry admission introduced for metrics serving and can block health, collection, and shutdown on a large registry.

Acceptance Criteria

Definition of Done

Implementation Plan

Wave 2: add failing status-route concurrency tests first; route status registry collection through the existing bounded registry semaphore and established overload response; verify blocked work and cancellation, then run focused checks before root integration.

Implementation Notes

Wave 3 located the synchronous registry walk in the async status path. Reusing bounded metrics admission changes a public HTTP overload contract and needs a dedicated design and concurrency test pass.

Wave 2 red: TestStatusEndpointOffload failed because get_network_filter_status was not submitted, saturation returned HTTP 200 rather than 503, and the cancellation test had no offloaded status method. The fix reuses the existing bounded registry slots and serving executor. Green: all three focused tests passed; the six-defect focused suite passed 76 tests; just check passed 2913 tests.

Final Summary

Parked after audit. Resume by mapping the existing registry-admission helper into both status formats, then test saturation, Retry-After, cancellation, health responsiveness, and shutdown.

Wave 2: routed NetworkFilter status registry collection through the existing bounded serving admission, preserving the established 503 plus Retry-After overload response and holding admission until cancelled worker completion. Verified by offload, saturation, and cancellation regressions plus just check.

View the source file on GitHub