Repository navigation
feat: Process Resiliency, Infrastructure Health Probes, and Reliability Telemetry Cluster - #467
Conversation
Miracle656
left a comment
There was a problem hiding this comment.
Changes requested: one issue per PR, and only issues assigned to you
This is a process requirement, applied to all 23 of your open PRs in this repo. It is not a judgement about the code, which I have not been able to review — and that is the first half of the problem.
The bundling
Across your open PRs, 150 distinct issues are claimed. This one claims several. #483 claims 22, #481 claims 20, #477 claims 20, #474 claims 20.
A PR that closes twenty issues cannot be reviewed. Each of those issues has its own acceptance criteria — typically five — so twenty issues is a hundred separate things to verify in one diff, and if any one of them is wrong the whole PR is blocked while it is fixed. Every batch I published says the issues are deliberately independent so they can be worked in parallel, by different people, without colliding. Bundling them removes exactly that property.
The assignments
135 of the 150 issues claimed are assigned to other contributors — 67 different people.
This PR is an example: it names issues currently assigned to other contributors who are working on them now. Several have open PRs of their own. If this merged as it stands, those people would have done the work and received nothing for it, and I would have no way to tell the two efforts apart.
I am not assuming anything about why. Assignments change, Drips and GitHub can disagree, and a wide-ranging branch picks up issue numbers easily. But the effect on the people holding those assignments is the same regardless of intent, which is why I have to act on it.
What I need
- One issue per PR. The issue number in the title, its acceptance criteria met, and nothing else in the diff.
- Only issues assigned to you, or unassigned ones you have claimed through Drips. If an issue is assigned to someone else, it is theirs.
- Re-open the work that meets both conditions as individual PRs. I will review them in the order they arrive and at the same pace as everyone else's.
Nothing is being closed. These stay open and are yours to re-cut, withdraw or split as you choose.
Two things worth knowing before you re-cut
Some of this has already landed. #488 (SSRF guard for bazaar_search) and #487 (the paid_call host allow-list) cover the same ground as your #449; #486 covers the MCP README. Check current main before rebuilding something that is already there.
main has moved a long way today — #306, #309, #252, #256, #355, #381, #390, #402, #476, #488 and more. Cut from current main, not from where these branches started.
If you believe an issue named here is genuinely yours, say which and I will check the assignment myself — I would rather be corrected than have someone lose work.
…-348-345-344-342-341-339-334-331-329-350
Summary of Changes
This PR implements comprehensive process resiliency, infrastructure health probing, degraded mode recovery, and reliability telemetry across 10 linked issues:
Retry-Afterheaders and exponential backoff on HTTP 429, trackshorizon_rate_limit_remainingandhorizon_rate_limited_totalmetrics, and prevents rate-limited responses from masquerading as empty venues.queuevsin_process) via/statusand Prometheus gaugeretention_path_mode, establishes periodic Redis health monitoring to automatically recover from degraded mode back to queue mode, and guards concurrent in-process prunes via PostgreSQL advisory locking.unhandledRejectionanduncaughtException), logs the full error message and stack trace, incrementsunhandled_rejections_total/uncaught_exceptions_totalcounters, and immediately exits non-zero without entering graceful drain so container platforms restart cleanly.recordFailedDelivery) capturing permanently failed webhook deliveries with bounded categorization (upstream_5xx,timeout,network,unknown), incrementswebhook_delivery_failures_total, and ensures subscriber secrets are never persisted.retryDelayMs) with an injectablerandomSourceto eliminate retry synchronization thundering herds.DATABASE_POOL_SIZEdefault 20,DATABASE_POOL_TIMEOUT_MSdefault 10s), exports utilization gauges (pg_pool_total_connections,pg_pool_idle_connections,pg_pool_waiting_count), and throws a distinctDatabasePoolExhaustedErroron timeout.GET /live(lightweight liveness probe checking event loop) andGET /ready(readiness probe validating boot completion and database/cache connectivity), exempts both from rate limiting, and excludes them fromhttpMetricsroute cardinality.ingester_restarts_totaltelemetry, and crash history retrievable in/status.ingesterCrashes.VenueFetchErroracross AMM, Aquarius, Soroswap, and Reflector, tracks failed venues ingetFailedVenues(), and prevents failed venues from falsely diluting or reweighting price aggregates.docs/RUNBOOK.mdcovering processes, external dependencies, degraded modes,/status&/metricsdiagnostics, and deploy/rollback procedures, and documents the shared connection pool inREADME.md.Verification
npx vitest run src/__tests__/reliabilityResilienceCluster.test.ts tests/openapi.test.ts(24/24 passing).npx tsc --noEmit.npm run openapi:gen..changeset/reliability-resilience-cluster.md.