AI Agents SDE Task Viewer
      • Context
      • Plan
      • Prd
  1. Home
  2. AgentSDE
  3. agent-core
  4. gh-236
  5. plan
  6. prd.json
prd.json(1.3 KB)· Apr 2, 2026
{
  "issueNumber": 236,
  "branchName": "fix/236-metrics-success-rate",
  "generatedAt": "2026-04-02T12:00:00Z",
  "stories": [
    {
      "id": "S1",
      "title": "Add inProgressCount to MetricsSummary interface and compute it in computeSummary",
      "priority": 1,
      "dependsOn": [],
      "acceptanceCriteria": [
        "MetricsSummary interface has inProgressCount: number field",
        "computeSummary returns inProgressCount = blocked + gated counts",
        "Code comment added at zero-denominator guard: // successRate is 0.0 when no terminal tasks exist",
        "npm run build compiles without errors"
      ],
      "passes": false,
      "completedAt": null
    },
    {
      "id": "S2",
      "title": "Add unit tests for corrected formula, inProgressCount, and zero-terminal edge case",
      "priority": 2,
      "dependsOn": [
        "S1"
      ],
      "acceptanceCriteria": [
        "Test: 27 complete + 10 failed + 5 stopped + 3 stuck + 23 blocked + 15 gated → successRate ≈ 0.60, inProgressCount === 38",
        "Test: all tasks blocked/gated → successRate === 0.0, inProgressCount equals total",
        "Existing zero-tasks test asserts inProgressCount === 0",
        "npm run test passes, npm run lint passes"
      ],
      "passes": false,
      "completedAt": null
    }
  ]
}
PlanPr description