{
"meta": {
"agent": "planner",
"task_id": "357",
"title": "Fix unit test failures for pipeline refactor on rc/multi-tenant",
"created_at": "2026-04-08T12:00:00Z"
},
"inputs": [
{
"name": "issue-357",
"type": "context",
"ref": "https://github.com/AgentSDE/agent-core/issues/357",
"notes": "MT-13: Update unit tests for all interface migrations"
},
{
"name": "test-output",
"type": "log",
"ref": "npm test",
"notes": "2 suites failed, 6 tests failed — watchdog (execute phase refs) + ws-gateway (missing module)"
}
],
"outputs": [
{
"name": "plan",
"type": "plan",
"format": "md",
"content": "plan.md"
}
],
"files": [
{
"path": "src/watchdog/watchdog.service.spec.ts",
"action": "modify",
"reason": "Replace removed 'execute' phase with 'deliver' in 5 test fixtures and assertions"
},
{
"path": "package.json",
"action": "modify",
"reason": "Add @nestjs/websockets + @nestjs/platform-ws dependencies"
}
],
"steps": [
{
"id": "S1",
"summary": "Fix watchdog spec — replace 'execute' phase references with 'deliver'",
"acceptance": [
"All 5 watchdog test fixtures use currentPhase: 'deliver' instead of 'execute'",
"Phase assertion strings updated to 'deliver'",
"All 12 watchdog tests pass"
],
"depends_on": []
},
{
"id": "S2",
"summary": "Fix ws-gateway dependency — install @nestjs/websockets and @nestjs/platform-ws",
"acceptance": [
"@nestjs/websockets and @nestjs/platform-ws in package.json dependencies",
"ws-gateway.service.spec.ts suite runs successfully",
"All 8 ws-gateway tests pass"
],
"depends_on": []
},
{
"id": "S3",
"summary": "Verify full test suite, type-check, and lint pass",
"acceptance": [
"npm test — 0 failures across all 44 suites",
"tsc --noEmit exits 0",
"npm run lint exits 0"
],
"depends_on": [
"S1",
"S2"
]
}
],
"risks": [
{
"risk": "@nestjs/websockets may be intentionally omitted",
"mitigation": "Check if ws-gateway was added without its dependency; if intentional, mock the import in tests instead"
}
],
"assumptions": [
"'deliver' is the correct replacement phase for 'execute' in watchdog test fixtures — it occupies the same pipeline position",
"The issue's mention of PlatformProvider/LLMProvider interfaces refers to work in dependency PRs #349-#356 not yet merged — current branch failures are solely from pipeline refactor"
],
"open_questions": []
}