{
"issueNumber": 15,
"branchName": "fix/15-eaddrinuse-restart-delay",
"generatedAt": "2026-04-02T12:00:00Z",
"stories": [
{
"id": "S1",
"title": "Create PM2 ecosystem config with restart_delay, max_restarts, min_uptime",
"priority": 1,
"dependsOn": [],
"acceptanceCriteria": [
"ecosystem.config.cjs exists at repo root",
"restart_delay is 3000, max_restarts is 5, min_uptime is 5000",
"Script points to dist/main.js with correct env setup"
],
"passes": false,
"completedAt": null
},
{
"id": "S2",
"title": "Create port-availability monitoring script and update deploy workflow",
"priority": 2,
"dependsOn": [
"S1"
],
"acceptanceCriteria": [
"scripts/check-port.sh polls localhost:8998/health for 30s and exits 1 on failure",
"deploy.yml uses pm2 startOrRestart ecosystem.config.cjs",
"deploy.yml includes post-restart port monitoring step",
"npm run lint and npm run test pass"
],
"passes": false,
"completedAt": null
}
]
}