LiveNode · cascade-architect
2026-06-14 · 04:46:Z
IBM Bob · Hackathon 2026Cascade
/report · demo-2 · baked output

Environment Variable Rename

Email service failure due to SMTP_SERVER → MAIL_HOST environment variable rename

CRITICAL
overall
CRITICAL
files
6
cross-svc
no
critical
5
high
0
medium
1
low
0
/a

changed symbols

services/notifications/config.ts
SMTP_HOST constant
process.env.SMTP_SERVER
+ process.env.MAIL_HOST
/b

impacts

riskfilelinesymbolreasonkind
CRITICALservices/notifications/config.ts5SMTP_HOSTReads undefined environment variable - email service failsdirect
CRITICAL.env6SMTP_SERVEROld variable name still defined - needs update to MAIL_HOSTindirect
CRITICALdocker-compose.yml29SMTP_SERVERDocker sets old variable name - container deployment failsindirect
MEDIUMREADME.md0SMTP_SERVERDocumentation may reference old variable nameindirect
CRITICALCI/CD pipelines0SMTP_SERVERCI environment may set old variable nameindirect
CRITICALProduction environment0SMTP_SERVERProduction servers have old variable configuredindirect
/c

dependency graph

/d

suggested regression tests

demo-monorepo/tests/regression/cascade-env-config.spec.ts// jest
describe('Email configuration validation', () => {
  it('should throw error when MAIL_HOST is not set', () => {
    delete process.env.MAIL_HOST;
    expect(() => require('../services/notifications/config')).toThrow('MAIL_HOST environment variable is required');
  });
});
demo-monorepo/tests/regression/cascade-env-config.spec.ts// jest
describe('Email service error handling', () => {
  it('should throw descriptive error when SMTP_HOST is undefined', async () => {
    process.env.MAIL_HOST = undefined;
    await expect(sendEmail('test@example.com', 'Test', 'Body')).rejects.toThrow('Email configuration incomplete');
  });
});
/e

missing coverage

  • services/notifications/email.tssendEmail should fail gracefully when SMTP_HOST is undefined
  • services/notifications/config.tsconfig should validate all required environment variables are set
  • services/notifications/email.tssendEmail should throw descriptive error when email config is incomplete