{
 "flight": {
  "id": 22840,
  "agent": "github-copilot",
  "state": "open",
  "title": "Fix OAuth2 scope deduplication in OpenAPI spec generation",
  "number": 7771,
  "source": "aidev",
  "commits": 9,
  "debrief": null,
  "outcome": "stale",
  "signals": [
   "aidev:Copilot"
  ],
  "index_ok": false,
  "additions": 5092,
  "closed_at": null,
  "deletions": 1868,
  "merged_at": null,
  "opened_at": "2025-06-27T19:48:16+00:00",
  "task_type": "fix",
  "body_chars": 1721,
  "confidence": "dataset",
  "updated_at": "2026-11-03T17:53:33.703657+00:00",
  "enriched_at": null,
  "body_excerpt": "When OAuth2 authentication schemes have multiple flows with the same scopes, the generated OpenAPI spec contained duplicate scope entries in the security section.\n\nFor example, with this TypeSpec definition:\n\n```tsp\nmodel oauth<Scopes extends string[]>\n  is OAuth2Auth<\n    [\n      {\n        type: OA",
  "review_count": 9,
  "files_changed": 305,
  "hours_to_merge": null,
  "metrics_source": "aidev_commit_sum",
  "change_requests": 0,
  "og_generated_at": null,
  "reviewer_excerpt": "/azp run typespec - pr tools",
  "review_comment_count": 6,
  "reviewer_excerpt_url": "https://github.com/microsoft/typespec/pull/7771#issuecomment-3014300778"
 },
 "repo": {
  "name": "typespec",
  "owner": "microsoft",
  "stars": 5933,
  "license": "MIT",
  "full_name": "microsoft/typespec",
  "primary_language": "Java"
 },
 "author": {
  "login": "Copilot",
  "name": null,
  "github_profile": "https://github.com/Copilot",
  "page": null
 },
 "claim": null,
 "events": [
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "copilot-swe-agent[bot]"
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "copilot-swe-agent[bot]"
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "copilot-swe-agent[bot]"
  },
  {
   "at": null,
   "url": null,
   "kind": "reviewed",
   "actor_login": null
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "copilot-swe-agent[bot]"
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "copilot-swe-agent[bot]"
  },
  {
   "at": null,
   "url": null,
   "kind": "reviewed",
   "actor_login": null
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "copilot-swe-agent[bot]"
  }
 ],
 "related": [
  {
   "agent": "github-copilot",
   "state": "closed",
   "title": "[python] Support python 3.13",
   "number": 8029,
   "outcome": "burn",
   "index_ok": true,
   "additions": 11,
   "deletions": 4,
   "merged_at": null,
   "opened_at": "2025-07-28T03:30:50+00:00",
   "task_type": "feat",
   "files_changed": 4,
   "hours_to_merge": null
  },
  {
   "agent": "github-copilot",
   "state": "merged",
   "title": "Fix Add-Debug-Profile.ps1 script: Update DLL path and replace generator parameter with management switch",
   "number": 8008,
   "outcome": "merged_clean",
   "index_ok": true,
   "additions": 200,
   "deletions": 103,
   "merged_at": "2025-07-25T19:57:47+00:00",
   "opened_at": "2025-07-25T02:17:44+00:00",
   "task_type": "fix",
   "files_changed": 3,
   "hours_to_merge": 17.67
  },
  {
   "agent": "github-copilot",
   "state": "merged",
   "title": "Add nullable implicit cast operator for string extensible enums",
   "number": 7967,
   "outcome": "merged_clean",
   "index_ok": true,
   "additions": 247,
   "deletions": 90,
   "merged_at": "2025-07-21T18:02:23+00:00",
   "opened_at": "2025-07-21T02:26:54+00:00",
   "task_type": "feat",
   "files_changed": 12,
   "hours_to_merge": 15.59
  }
 ],
 "pr_url": "https://github.com/microsoft/typespec/pull/7771",
 "page": "https://agentriders.com/logs/microsoft/typespec/7771/"
}