Harden runtime budgets: DB pool, CLI concurrency, timeouts, and metrics.

Add shared CLI budget/timeout with force-close, parallel port-traffic dispatch, unified shutdown, bounded audit queue, output/log caps, and /metrics probes.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-02 18:02:43 +08:00
parent 2068ce3d04
commit d56020d84c
23 changed files with 824 additions and 102 deletions

View file

@ -24,6 +24,8 @@ _PUBLIC_EXACT = frozenset(
"/health",
"/health/live",
"/health/ready",
"/metrics",
"/metrics/json",
"/favicon.ico",
"/v1/auth/login",
}