AI Agents SDE Task Viewer
      • Context
      • Plan
      • Prd
  1. Home
  2. AgentSDE
  3. agent-core
  4. gh-552
  5. plan
  6. prd.json
prd.json(2.3 KB)ยท Apr 23, 2026
{
  "issueNumber": 552,
  "branchName": "rc/atlassian-integration",
  "generatedAt": "2026-04-23T17:12:41Z",
  "stories": [
    {
      "id": "S1",
      "title": "Inspect merged Atlassian provider + state-repo sources and capture exact signatures, config keys, token endpoints",
      "priority": 1,
      "dependsOn": [],
      "acceptanceCriteria": [
        "Provider constructors, base-class refresh loop, and state-repo methods are documented before any assertion is written",
        "BLOCKED signal emitted if any of #541/#542/#543/#544 has not yet landed on rc/atlassian-integration"
      ],
      "passes": false,
      "completedAt": null
    },
    {
      "id": "S2",
      "title": "Write src/atlassian/bitbucket-oauth-auth.provider.spec.ts covering cold fetch, caching, near-expiry refresh, concurrent dedup, rotation persistence, 401, getBotUsername, platform",
      "priority": 2,
      "dependsOn": [
        "S1"
      ],
      "acceptanceCriteria": [
        "Spec passes under npm run test",
        "fetch spy verifies POST to https://bitbucket.org/site/oauth2/access_token with grant_type=refresh_token",
        "AtlassianOAuthStateRepo mock receives persisted rotated refresh token",
        "No real network calls (globalThis.fetch fully spied)"
      ],
      "passes": false,
      "completedAt": null
    },
    {
      "id": "S3",
      "title": "Write src/atlassian/jira-oauth-auth.provider.spec.ts mirroring S2 with Jira-specific config keys and token endpoint",
      "priority": 3,
      "dependsOn": [
        "S1"
      ],
      "acceptanceCriteria": [
        "Spec passes under npm run test",
        "fetch spy verifies POST to https://auth.atlassian.com/oauth/token",
        "platform identifier asserted as 'jira'",
        "getBotUsername returns JIRA_BOT_USERNAME from mocked ConfigService"
      ],
      "passes": false,
      "completedAt": null
    },
    {
      "id": "S4",
      "title": "Run npm run test, npm run lint, npm run test:cov; confirm both providers have >90% branch coverage and lint is clean",
      "priority": 4,
      "dependsOn": [
        "S2",
        "S3"
      ],
      "acceptanceCriteria": [
        "npm run test -- src/atlassian exits 0",
        "npm run lint exits with zero warnings",
        "Coverage report shows >90% branch coverage for both provider files"
      ],
      "passes": false,
      "completedAt": null
    }
  ]
}
PlanAi-done