You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New LIMIT_DOCUMENT tier (10/min) for HTML/PDF endpoints.
New CIMA_FANOUT_SEMAPHORE — module-level asyncio.Semaphore(8) that
caps total concurrent CIMA calls server-wide. Single most impactful
upstream-load defence.
New BATCH_FANOUT_LIMIT = 4 — per-batch-request fan-out cap.
httpx.Limits(max_connections=20, max_keepalive_connections=10) on the
CIMA client — bounds the connection pool.
New helper bounded_gather (replaces asyncio.gather in batch route handlers)
to enforce the per-batch concurrency cap.
heavy: 12 → 6 (each request fans out N CIMA calls)
document (new): 10 for HTML/PDF endpoints
HTML/PDF document endpoints (/doc-html/ft, /doc-html/p, single + batch)
now use the document tier instead of heavy/standard.
Batch endpoints (/notas, /materiales, /problemas-suministro, /presentacion, /doc-html/ft, /doc-html/p) use bounded_gather instead
of unbounded asyncio.gather.
settings.mcp_aemps_version now reads from importlib.metadata instead of
a hardcoded "0.1.0" — /health and OpenAPI version stay in sync with the
installed package version automatically.
Fixed
ruff format baseline applied across the codebase. CI lint check passes
on both ruff check and ruff format --check.