{
 "flight": {
  "id": 1468,
  "agent": "claude-code",
  "state": "merged",
  "title": "sql/stats: prevent stats collection in read-only tenants",
  "number": 150562,
  "source": "aidev",
  "commits": 1,
  "debrief": "Claude Code worked a fix in cockroachdb/cockroach to stop statistics collection in read-only tenants. The change detects read-only status at the tenant level, covering both automatic and manual collection, across nine files with 191 additions and 25 deletions in one commit. It merged clean after three reviews with no change requests, 47.71 hours to merge.",
  "outcome": "merged_clean",
  "signals": [
   "aidev:Claude_Code",
   "trailer:claude"
  ],
  "index_ok": true,
  "additions": 191,
  "closed_at": "2025-07-21T18:29:38+00:00",
  "deletions": 25,
  "merged_at": "2025-07-21T18:29:38+00:00",
  "opened_at": "2025-07-19T18:47:12+00:00",
  "task_type": "fix",
  "body_chars": 1301,
  "confidence": "dataset",
  "updated_at": "2026-11-03T21:27:21.295877+00:00",
  "enriched_at": null,
  "body_excerpt": "This change prevents both automatic and manual statistics collection\nin PCR reader tenants by detecting read-only tenant status at the\ntenant level rather than checking individual table descriptors.\n\nKey changes:\n- Add TenantReadonly field to SQLConfig and ExecutorConfig to track\n  tenant-level read",
  "review_count": 3,
  "files_changed": 9,
  "hours_to_merge": 47.71,
  "metrics_source": "aidev_commit_sum",
  "change_requests": 0,
  "og_generated_at": "2026-11-03T21:27:21.295877+00:00",
  "reviewer_excerpt": "<!-- Reviewable:start --> This change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/cockroachdb/cockroach/150562) <!-- Reviewable:end -->",
  "review_comment_count": 0,
  "reviewer_excerpt_url": "https://github.com/cockroachdb/cockroach/pull/150562#issuecomment-3092510217"
 },
 "repo": {
  "name": "cockroach",
  "owner": "cockroachdb",
  "stars": 32610,
  "license": "NOASSERTION",
  "full_name": "cockroachdb/cockroach",
  "primary_language": "Go"
 },
 "author": {
  "login": "petermattis",
  "name": "Peter Mattis",
  "github_profile": "https://github.com/petermattis",
  "page": "https://agentriders.com/logs/author/petermattis/"
 },
 "claim": null,
 "events": [
  {
   "at": null,
   "url": null,
   "kind": "reviewed",
   "actor_login": null
  },
  {
   "at": null,
   "url": null,
   "kind": "reviewed",
   "actor_login": null
  },
  {
   "at": null,
   "url": null,
   "kind": "committed",
   "actor_login": "Peter Mattis"
  },
  {
   "at": null,
   "url": null,
   "kind": "reviewed",
   "actor_login": null
  },
  {
   "at": "2025-07-21T18:29:38+00:00",
   "url": null,
   "kind": "merged",
   "actor_login": "craig[bot]"
  },
  {
   "at": "2025-07-21T18:29:38+00:00",
   "url": null,
   "kind": "closed",
   "actor_login": "craig[bot]"
  },
  {
   "at": "2025-07-21T18:29:41+00:00",
   "url": null,
   "kind": "labeled",
   "actor_login": "celeste-cockroachdb[bot]"
  }
 ],
 "related": [
  {
   "agent": "claude-code",
   "state": "open",
   "title": "geo/geomfn: implement ST_GeometricMedian({geometry,float8,int4,bool})",
   "number": 150695,
   "outcome": "stale",
   "index_ok": false,
   "additions": 714,
   "deletions": 2,
   "merged_at": null,
   "opened_at": "2025-07-23T18:32:12+00:00",
   "task_type": "feat",
   "files_changed": 6,
   "hours_to_merge": null
  }
 ],
 "pr_url": "https://github.com/cockroachdb/cockroach/pull/150562",
 "page": "https://agentriders.com/logs/cockroachdb/cockroach/150562/"
}