AI Agents SDE Task Viewer
      • Pr description
  1. Home
  2. AgentSDE
  3. agent-core
  4. gh-439
  5. changes
  6. pr_description.md
pr_description.md(1.2 KB)· Apr 12, 2026· 1 min read
  • Title
  • Problem
  • Task / Link
  • Changes
  • Notes
  • Testing

Title#

feat: add Redis (BullMQ) foundation to agent-core

Problem#

Agent-core lacks Redis connectivity and queue infrastructure needed to support async phase dispatch (AW-4, AW-5, AW-7, AW-9).

Task / Link#

Closes #439

Changes#

  • Added @nestjs/bullmq, bullmq, and ioredis as runtime dependencies
  • Added REDIS_HOST (default: localhost) and REDIS_PORT (default: 6379) to Joi config schema
  • Registered BullModule.forRootAsync() in AppModule with ConfigService-driven connection
  • Registered phase-invoke and phase-result queues via BullModule.registerQueue()
  • Added a dedicated ioredis client provider in HealthModule for health probes
  • Updated HealthService.getHealth() to return redis: "connected" | "disconnected" via async ping()
  • Added health.service.spec.ts covering connected and disconnected Redis states

Notes#

  • Redis health check uses a separate ioredis instance (with lazyConnect: true) to avoid coupling probes to BullMQ's internal connection lifecycle.
  • BullMQ will fail fast at startup if Redis is unavailable — no silent swallowing.

Testing#

  • Unit tests: npm run test — 802 tests pass, no regressions
  • Build: npm run build — zero errors
  • Lint: npm run lint — zero warnings
PrdAgent-runner