AI Agents SDE Task Viewer
      • Context
      • Plan
      • Prd
  1. Home
  2. AgentSDE
  3. agent-core
  4. gh-346
  5. plan
  6. prd.json
prd.json(2.2 KB)· Apr 8, 2026
{
  "issueNumber": 346,
  "branchName": "rc/multi-tenant",
  "generatedAt": "2026-04-08T12:00:00Z",
  "stories": [
    {
      "id": "S1",
      "title": "Define PhaseResult type, LLMProvider interface, and LLM_PROVIDER token",
      "priority": 1,
      "dependsOn": [],
      "acceptanceCriteria": [
        "PhaseResult has fields: status, blockedType, reason, completeType, retryAfter, prNumber, prBranch, conflictMetadata, metadata",
        "LLMProvider interface has invoke(skill, env, taskId): Promise<PhaseResult>",
        "LLM_PROVIDER is exported as Symbol('LLM_PROVIDER')"
      ],
      "passes": false,
      "completedAt": null
    },
    {
      "id": "S2",
      "title": "Implement ClaudeCLIProvider with SignalResult-to-PhaseResult mapping and error handling",
      "priority": 2,
      "dependsOn": [
        "S1"
      ],
      "acceptanceCriteria": [
        "ClaudeCLIProvider.invoke() delegates to ClaudeInvocationService.invoke()",
        "Maps SignalResult.type to PhaseResult.status (complete→complete, skip→skip, blocked/partial/none→blocked)",
        "Maps SignalResult.subtype to PhaseResult.blockedType with transient default",
        "Catches invoke errors and returns blocked:transient PhaseResult",
        "No-signal case returns blocked:transient with descriptive reason"
      ],
      "passes": false,
      "completedAt": null
    },
    {
      "id": "S3",
      "title": "Create LLMModule providing and exporting LLM_PROVIDER token",
      "priority": 3,
      "dependsOn": [
        "S2"
      ],
      "acceptanceCriteria": [
        "LLMModule imports InvokeModule",
        "Provides LLM_PROVIDER token with useClass: ClaudeCLIProvider",
        "Exports LLM_PROVIDER token"
      ],
      "passes": false,
      "completedAt": null
    },
    {
      "id": "S4",
      "title": "Write unit tests covering all 7 signal mapping scenarios",
      "priority": 4,
      "dependsOn": [
        "S2"
      ],
      "acceptanceCriteria": [
        "Tests: complete, blocked:transient, blocked:persistent, blocked:conflict, skip, none, and invoke-throws",
        "All tests pass with npm run test",
        "tsc --noEmit passes",
        "npm run lint passes"
      ],
      "passes": false,
      "completedAt": null
    }
  ]
}
PlanPr description