## Without a store, an idle comparison request is never due
# metab checkout --api /api/plugin/github/pull-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pull-refresh
status: 202
{
  "refresh": "started",
  "pull": {
    "state": "pending",
    "reason": null,
    "source": "https://github.com/octo/demo",
    "number": 10,
    "pin": null,
    "pin_ref": null,
    "fetched_at": null,
    "verified_at": null,
    "verified_by": null,
    "head_moved": false,
    "checks_pending": false,
    "record_revision": null,
    "fresh_for_s": 60.0,
    "probe_every_s": null,
    "refreshing": true,
    "last_refresh": null,
    "comparison_route": null,
    "image_route": null,
    "rendered_route": null,
    "size_route": null,
    "record": null,
    "core_preview": null,
    "repository_labels": [],
    "labels_pending": false,
    "status": null,
    "readiness": null,
    "checks": null,
    "status_unavailable": null,
    "no_store": true
  },
  "status_route": "/api/plugin/github/pull?number=10"
}
after: /api/plugin/github/pull?number=10
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "number": 10,
  "pin": null,
  "pin_ref": null,
  "fetched_at": "2026-09-17T12:00:00Z",
  "verified_at": "2026-09-17T12:00:00Z",
  "verified_by": "fetch",
  "head_moved": false,
  "checks_pending": false,
  "record_revision": "c36045ea629502557bd96c6e87df7ae1499b7900c34b438a5cb7b34cc16e61af",
  "fresh_for_s": 60.0,
  "probe_every_s": 5.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:00:00Z"
  },
  "comparison_route": null,
  "image_route": null,
  "rendered_route": null,
  "size_route": null,
  "record": {
    "schema_version": 3,
    "projection_version": 2,
    "source": "https://github.com/octo/demo",
    "number": 10,
    "fetched_at": "2026-09-17T12:00:00Z",
    "reader": "gh:octo-reader",
    "etags": {
      "repos/octo/demo/pulls/10": "W/\"834290f720c663d55774891f093a7b77e296b675ff12cece8a9063b429073af7\"",
      "repos/octo/demo/issues/10/comments?per_page=100&page=1": "W/\"3ca900254595a4252fe8210df7ad12e7e1c80935d21d9bdbf6054cf92b779d91\"",
      "repos/octo/demo/pulls/10/reviews?per_page=100&page=1": "W/\"aaed24104d56430f749ca52d38dac89318e6ef13eaff22e50730d564709f774d\"",
      "repos/octo/demo/pulls/10/comments?per_page=100&page=1": "W/\"e0af241df992737c49edf94e2feee1a361f52281e026b6e99a9625d59db8a2eb\""
    },
    "pull": {
      "number": 10,
      "title": "WIP: draft the next page",
      "body": "Not ready.",
      "body_truncated": false,
      "state": "open",
      "draft": true,
      "merged": false,
      "merged_by": null,
      "merged_by_avatar_url": null,
      "commits": 1,
      "merge_commit_sha": null,
      "labels": [],
      "author": "maintainer",
      "author_avatar_url": null,
      "created_at": "2026-09-16T10:57:23Z",
      "updated_at": "2026-09-16T17:39:01Z",
      "merged_at": null,
      "closed_at": null,
      "base": {
        "ref": "topic",
        "sha": "c691256511d05858850bc7684ae062fea0d41132",
        "repository": "octo/demo"
      },
      "head": {
        "ref": "wip",
        "sha": "7a7d6596e515735d244dc1d942463c95851e139c",
        "repository": "octo/demo"
      },
      "html_url": "https://github.com/octo/demo/pull/10"
    },
    "issue_comments": [],
    "reviews": [],
    "review_comments": [],
    "comparison": null,
    "truncated": {
      "issue_comments": false,
      "reviews": false,
      "review_comments": false,
      "text": false
    },
    "unavailable": {
      "comparison": "no_store"
    }
  },
  "core_preview": null,
  "repository_labels": [],
  "labels_pending": false,
  "status": {
    "number": 10,
    "head": "7a7d6596e515735d244dc1d942463c95851e139c",
    "base_ref": "topic",
    "base": "c691256511d05858850bc7684ae062fea0d41132",
    "observed_at": "2026-09-17T12:00:00Z",
    "observed_by": "read",
    "conflicts": "conflicting",
    "merge_state": "dirty",
    "review_decision": null,
    "checks": {
      "state": "none",
      "counts": {
        "pass": 0,
        "fail": 0,
        "pending": 0,
        "skipping": 0,
        "cancel": 0
      },
      "required_failing": 0,
      "required_pending": 0,
      "listed_at": "2026-09-17T12:00:00Z",
      "moved_at": null
    },
    "auto_merge": null,
    "queue": null
  },
  "readiness": {
    "verdict": "conflicts",
    "tone": "severe",
    "label": "Merge conflicts",
    "head": "7a7d6596e515735d244dc1d942463c95851e139c",
    "observed_at": "2026-09-17T12:00:00Z",
    "requirements": [
      {
        "kind": "conflicts",
        "status": "unmet",
        "summary": "Merge conflicts with topic must be resolved.",
        "github_url": "https://github.com/octo/demo/pull/10/conflicts",
        "tone": "severe"
      },
      {
        "kind": "checks",
        "status": "met",
        "summary": "No checks.",
        "github_url": null,
        "tone": "success"
      }
    ],
    "auto_merge": null,
    "auto_merge_summary": null
  },
  "checks": {
    "number": 10,
    "head": "7a7d6596e515735d244dc1d942463c95851e139c",
    "observed_at": "2026-09-17T12:00:00Z",
    "items": [],
    "truncated": false
  },
  "status_unavailable": null,
  "refresh_timing": {
    "finished_at": "2026-09-17T12:00:00Z",
    "duration_ms": "<ELAPSED_MS>",
    "provider": "github_cli",
    "request_count": 6,
    "response_body_bytes": 693
  },
  "no_store": true
}
--- stderr ---
--- body ---
{"number": 10, "retry": true}
--- gh ---
gh api user
gh api repos/octo/demo/pulls/10
gh api repos/octo/demo/issues/10/comments?per_page=100&page=1
gh api repos/octo/demo/pulls/10/comments?per_page=100&page=1
gh api repos/octo/demo/pulls/10/reviews?per_page=100&page=1
gh api user (If-None-Match)
gh api graphql status number=10 cursor=start
# metab checkout --api /api/plugin/github/pull-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pull-refresh
status: 200
{
  "refresh": "not_due",
  "pull": {
    "state": "current",
    "reason": null,
    "source": "https://github.com/octo/demo",
    "number": 10,
    "pin": null,
    "pin_ref": null,
    "fetched_at": "2026-09-17T12:00:00Z",
    "verified_at": "2026-09-17T12:00:00Z",
    "verified_by": "fetch",
    "head_moved": false,
    "checks_pending": false,
    "record_revision": "c36045ea629502557bd96c6e87df7ae1499b7900c34b438a5cb7b34cc16e61af",
    "fresh_for_s": 60.0,
    "probe_every_s": 5.0,
    "refreshing": false,
    "last_refresh": {
      "outcome": "succeeded",
      "message": null,
      "reset_at": null,
      "at": "2026-09-17T12:00:00Z"
    },
    "comparison_route": null,
    "image_route": null,
    "rendered_route": null,
    "size_route": null,
    "record": {
      "schema_version": 3,
      "projection_version": 2,
      "source": "https://github.com/octo/demo",
      "number": 10,
      "fetched_at": "2026-09-17T12:00:00Z",
      "reader": "gh:octo-reader",
      "etags": {
        "repos/octo/demo/pulls/10": "W/\"834290f720c663d55774891f093a7b77e296b675ff12cece8a9063b429073af7\"",
        "repos/octo/demo/issues/10/comments?per_page=100&page=1": "W/\"3ca900254595a4252fe8210df7ad12e7e1c80935d21d9bdbf6054cf92b779d91\"",
        "repos/octo/demo/pulls/10/reviews?per_page=100&page=1": "W/\"aaed24104d56430f749ca52d38dac89318e6ef13eaff22e50730d564709f774d\"",
        "repos/octo/demo/pulls/10/comments?per_page=100&page=1": "W/\"e0af241df992737c49edf94e2feee1a361f52281e026b6e99a9625d59db8a2eb\""
      },
      "pull": {
        "number": 10,
        "title": "WIP: draft the next page",
        "body": "Not ready.",
        "body_truncated": false,
        "state": "open",
        "draft": true,
        "merged": false,
        "merged_by": null,
        "merged_by_avatar_url": null,
        "commits": 1,
        "merge_commit_sha": null,
        "labels": [],
        "author": "maintainer",
        "author_avatar_url": null,
        "created_at": "2026-09-16T10:57:23Z",
        "updated_at": "2026-09-16T17:39:01Z",
        "merged_at": null,
        "closed_at": null,
        "base": {
          "ref": "topic",
          "sha": "c691256511d05858850bc7684ae062fea0d41132",
          "repository": "octo/demo"
        },
        "head": {
          "ref": "wip",
          "sha": "7a7d6596e515735d244dc1d942463c95851e139c",
          "repository": "octo/demo"
        },
        "html_url": "https://github.com/octo/demo/pull/10"
      },
      "issue_comments": [],
      "reviews": [],
      "review_comments": [],
      "comparison": null,
      "truncated": {
        "issue_comments": false,
        "reviews": false,
        "review_comments": false,
        "text": false
      },
      "unavailable": {
        "comparison": "no_store"
      }
    },
    "core_preview": null,
    "repository_labels": [],
    "labels_pending": false,
    "status": "<STATUS 10>",
    "readiness": "<READINESS 7a7d6596e515735d244dc1d942463c95851e139c>",
    "checks": "<CHECKS 10>",
    "status_unavailable": null,
    "refresh_timing": {
      "finished_at": "2026-09-17T12:00:00Z",
      "duration_ms": "<ELAPSED_MS>",
      "provider": "github_cli",
      "request_count": 6,
      "response_body_bytes": 693
    },
    "no_store": true
  },
  "status_route": "/api/plugin/github/pull?number=10"
}
--- stderr ---
--- body ---
{"number": 10, "prepare_comparison": "c36045ea629502557bd96c6e87df7ae1499b7900c34b438a5cb7b34cc16e61af"}
--- gh ---
## A reader's Changes on another pull request attaches a store
# metab checkout --api /api/plugin/github/pull-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pull-refresh
status: 202
{
  "refresh": "started",
  "pull": {
    "state": "pending",
    "reason": null,
    "source": "https://github.com/octo/demo",
    "number": 9,
    "pin": null,
    "pin_ref": null,
    "fetched_at": null,
    "verified_at": null,
    "verified_by": null,
    "head_moved": false,
    "checks_pending": false,
    "record_revision": null,
    "fresh_for_s": 60.0,
    "probe_every_s": null,
    "refreshing": true,
    "last_refresh": null,
    "comparison_route": null,
    "image_route": null,
    "rendered_route": null,
    "size_route": null,
    "record": null,
    "core_preview": null,
    "repository_labels": [],
    "labels_pending": false,
    "status": null,
    "readiness": null,
    "checks": null,
    "status_unavailable": null,
    "no_store": true
  },
  "status_route": "/api/plugin/github/pull?number=9"
}
after: /api/plugin/github/pull?number=9
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "number": 9,
  "pin": null,
  "pin_ref": null,
  "fetched_at": "2026-09-17T12:00:00Z",
  "verified_at": "2026-09-17T12:00:00Z",
  "verified_by": "fetch",
  "head_moved": false,
  "checks_pending": false,
  "record_revision": "0936cac1ccb731138606b1752683f5cba68d3c8c8943d9821f8a17a7f2d53d8c",
  "fresh_for_s": 60.0,
  "probe_every_s": 5.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:00:00Z"
  },
  "comparison_route": null,
  "image_route": null,
  "rendered_route": null,
  "size_route": null,
  "record": {
    "schema_version": 3,
    "projection_version": 2,
    "source": "https://github.com/octo/demo",
    "number": 9,
    "fetched_at": "2026-09-17T12:00:00Z",
    "reader": "gh:octo-reader",
    "etags": {
      "repos/octo/demo/pulls/9": "W/\"bd0a1535019ba33ca5d652f1e47b79467f9530f4108d8188308766a528b0938a\"",
      "repos/octo/demo/issues/9/comments?per_page=100&page=1": "W/\"8e3fb7499c48198e2722d4bf87b6c307d9dd9f38dc4d767cb6d084933715125a\"",
      "repos/octo/demo/pulls/9/reviews?per_page=100&page=1": "W/\"7f0bc5191955ee595d16f9154007d0dc93786fa2ababd3d3aeb87531c7dbc19a\"",
      "repos/octo/demo/pulls/9/comments?per_page=100&page=1": "W/\"d3923abb607ffe393dc70a9b0bb679b48cf6c97b158f065d3879327d52e2bbe4\""
    },
    "pull": {
      "number": 9,
      "title": "spam",
      "body": "",
      "body_truncated": false,
      "state": "closed",
      "draft": false,
      "merged": false,
      "merged_by": null,
      "merged_by_avatar_url": null,
      "commits": 1,
      "merge_commit_sha": null,
      "labels": [
        {
          "name": "invalid",
          "color": "e4e669",
          "description": null
        }
      ],
      "author": null,
      "author_avatar_url": null,
      "created_at": "2026-09-16T10:57:23Z",
      "updated_at": "2026-09-16T17:39:01Z",
      "merged_at": null,
      "closed_at": "2026-09-16T19:00:00Z",
      "base": {
        "ref": "topic",
        "sha": "c1063e6e9a97345a8c7e1dc275c7fd858c91d7b3",
        "repository": "octo/demo"
      },
      "head": {
        "ref": "spam",
        "sha": "0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd",
        "repository": null
      },
      "html_url": "https://github.com/octo/demo/pull/9"
    },
    "issue_comments": [],
    "reviews": [],
    "review_comments": [],
    "comparison": null,
    "truncated": {
      "issue_comments": false,
      "reviews": false,
      "review_comments": false,
      "text": false
    },
    "unavailable": {
      "comparison": "no_store"
    }
  },
  "core_preview": null,
  "repository_labels": [],
  "labels_pending": false,
  "status": {
    "number": 9,
    "head": "0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd",
    "base_ref": "topic",
    "base": "c1063e6e9a97345a8c7e1dc275c7fd858c91d7b3",
    "observed_at": "2026-09-17T12:00:00Z",
    "observed_by": "read",
    "conflicts": "unknown",
    "merge_state": "unknown",
    "review_decision": "review_required",
    "checks": {
      "state": "pending",
      "counts": {
        "pass": 2,
        "fail": 0,
        "pending": 1,
        "skipping": 0,
        "cancel": 0
      },
      "required_failing": 0,
      "required_pending": 1,
      "listed_at": "2026-09-17T12:00:00Z",
      "moved_at": null
    },
    "auto_merge": null,
    "queue": null
  },
  "readiness": null,
  "checks": {
    "number": 9,
    "head": "0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd",
    "observed_at": "2026-09-17T12:00:00Z",
    "items": [
      {
        "name": "tests (3.13)",
        "kind": "run",
        "bucket": "pass",
        "status": "COMPLETED",
        "conclusion": "SUCCESS",
        "required": true,
        "details_url": "https://github.com/octo/demo/actions/runs/18062895276/job/51401654787",
        "app": "GitHub Actions",
        "description": null
      },
      {
        "name": "docs",
        "kind": "run",
        "bucket": "pending",
        "status": "IN_PROGRESS",
        "conclusion": null,
        "required": true,
        "details_url": "https://github.com/octo/demo/actions/runs/18062895276/job/51401654788",
        "app": "GitHub Actions",
        "description": null
      },
      {
        "name": "docs/readthedocs.org:demo",
        "kind": "status",
        "bucket": "pass",
        "status": null,
        "conclusion": "SUCCESS",
        "required": false,
        "details_url": "https://demo--7.org.readthedocs.build/en/7/",
        "app": null,
        "description": "Read the Docs build succeeded!"
      }
    ],
    "truncated": false
  },
  "status_unavailable": null,
  "refresh_timing": {
    "finished_at": "2026-09-17T12:00:00Z",
    "duration_ms": "<ELAPSED_MS>",
    "provider": "github_cli",
    "request_count": 6,
    "response_body_bytes": 702
  },
  "no_store": true
}
--- stderr ---
--- body ---
{"number": 9, "retry": true}
--- gh ---
gh api user
gh api repos/octo/demo/pulls/9
gh api repos/octo/demo/issues/9/comments?per_page=100&page=1
gh api repos/octo/demo/pulls/9/comments?per_page=100&page=1
gh api repos/octo/demo/pulls/9/reviews?per_page=100&page=1
gh api user (If-None-Match)
gh api graphql status number=9 cursor=start
# metab checkout --api /api/plugin/github/pull-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pull-refresh
status: 202
{
  "refresh": "started",
  "pull": {
    "state": "current",
    "reason": null,
    "source": "https://github.com/octo/demo",
    "number": 10,
    "pin": null,
    "pin_ref": null,
    "fetched_at": "2026-09-17T12:00:00Z",
    "verified_at": "2026-09-17T12:00:00Z",
    "verified_by": "fetch",
    "head_moved": false,
    "checks_pending": false,
    "record_revision": "c36045ea629502557bd96c6e87df7ae1499b7900c34b438a5cb7b34cc16e61af",
    "fresh_for_s": 60.0,
    "probe_every_s": 5.0,
    "refreshing": true,
    "last_refresh": {
      "outcome": "succeeded",
      "message": null,
      "reset_at": null,
      "at": "2026-09-17T12:00:00Z"
    },
    "comparison_route": null,
    "image_route": null,
    "rendered_route": null,
    "size_route": null,
    "record": {
      "schema_version": 3,
      "projection_version": 2,
      "source": "https://github.com/octo/demo",
      "number": 10,
      "fetched_at": "2026-09-17T12:00:00Z",
      "reader": "gh:octo-reader",
      "etags": {
        "repos/octo/demo/pulls/10": "W/\"834290f720c663d55774891f093a7b77e296b675ff12cece8a9063b429073af7\"",
        "repos/octo/demo/issues/10/comments?per_page=100&page=1": "W/\"3ca900254595a4252fe8210df7ad12e7e1c80935d21d9bdbf6054cf92b779d91\"",
        "repos/octo/demo/pulls/10/reviews?per_page=100&page=1": "W/\"aaed24104d56430f749ca52d38dac89318e6ef13eaff22e50730d564709f774d\"",
        "repos/octo/demo/pulls/10/comments?per_page=100&page=1": "W/\"e0af241df992737c49edf94e2feee1a361f52281e026b6e99a9625d59db8a2eb\""
      },
      "pull": {
        "number": 10,
        "title": "WIP: draft the next page",
        "body": "Not ready.",
        "body_truncated": false,
        "state": "open",
        "draft": true,
        "merged": false,
        "merged_by": null,
        "merged_by_avatar_url": null,
        "commits": 1,
        "merge_commit_sha": null,
        "labels": [],
        "author": "maintainer",
        "author_avatar_url": null,
        "created_at": "2026-09-16T10:57:23Z",
        "updated_at": "2026-09-16T17:39:01Z",
        "merged_at": null,
        "closed_at": null,
        "base": {
          "ref": "topic",
          "sha": "c691256511d05858850bc7684ae062fea0d41132",
          "repository": "octo/demo"
        },
        "head": {
          "ref": "wip",
          "sha": "7a7d6596e515735d244dc1d942463c95851e139c",
          "repository": "octo/demo"
        },
        "html_url": "https://github.com/octo/demo/pull/10"
      },
      "issue_comments": [],
      "reviews": [],
      "review_comments": [],
      "comparison": null,
      "truncated": {
        "issue_comments": false,
        "reviews": false,
        "review_comments": false,
        "text": false
      },
      "unavailable": {
        "comparison": "no_store"
      }
    },
    "core_preview": null,
    "repository_labels": [],
    "labels_pending": false,
    "status": "<STATUS 10>",
    "readiness": "<READINESS 7a7d6596e515735d244dc1d942463c95851e139c>",
    "checks": "<CHECKS 10>",
    "status_unavailable": null,
    "refresh_timing": {
      "finished_at": "2026-09-17T12:00:00Z",
      "duration_ms": "<ELAPSED_MS>",
      "provider": "github_cli",
      "request_count": 6,
      "response_body_bytes": 693
    },
    "no_store": true
  },
  "status_route": "/api/plugin/github/pull?number=10"
}
after: /api/plugin/github/pull?number=10
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "number": 10,
  "pin": null,
  "pin_ref": null,
  "fetched_at": "2026-09-17T12:00:00Z",
  "verified_at": "2026-09-17T12:00:00Z",
  "verified_by": "fetch",
  "head_moved": false,
  "checks_pending": false,
  "record_revision": "60d4bad26a8d61acad5e5860ddbc489f0c5516b8c233dca8bd74893202981149",
  "fresh_for_s": 60.0,
  "probe_every_s": 5.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:00:00Z"
  },
  "comparison_route": "/api/plugin/github/pull-comparison?number=10&left=c691256511d05858850bc7684ae062fea0d41132&right=7a7d6596e515735d244dc1d942463c95851e139c&base_policy=merge_base&build=<BUILD>&store=<STORE_TAG>",
  "image_route": "/api/plugin/github/pull-image?number=10&left=c691256511d05858850bc7684ae062fea0d41132&right=7a7d6596e515735d244dc1d942463c95851e139c&store=<STORE_TAG>",
  "rendered_route": "/api/plugin/github/pull-rendered-diff?number=10&left=c691256511d05858850bc7684ae062fea0d41132&right=7a7d6596e515735d244dc1d942463c95851e139c&store=<STORE_TAG>",
  "size_route": "/api/plugin/github/pull-size?number=10&left=c691256511d05858850bc7684ae062fea0d41132&right=7a7d6596e515735d244dc1d942463c95851e139c&store=<STORE_TAG>",
  "record": {
    "schema_version": 3,
    "projection_version": 2,
    "source": "https://github.com/octo/demo",
    "number": 10,
    "fetched_at": "2026-09-17T12:00:00Z",
    "reader": "gh:octo-reader",
    "etags": {
      "repos/octo/demo/pulls/10": "W/\"834290f720c663d55774891f093a7b77e296b675ff12cece8a9063b429073af7\"",
      "repos/octo/demo/issues/10/comments?per_page=100&page=1": "W/\"3ca900254595a4252fe8210df7ad12e7e1c80935d21d9bdbf6054cf92b779d91\"",
      "repos/octo/demo/pulls/10/reviews?per_page=100&page=1": "W/\"aaed24104d56430f749ca52d38dac89318e6ef13eaff22e50730d564709f774d\"",
      "repos/octo/demo/pulls/10/comments?per_page=100&page=1": "W/\"e0af241df992737c49edf94e2feee1a361f52281e026b6e99a9625d59db8a2eb\""
    },
    "pull": {
      "number": 10,
      "title": "WIP: draft the next page",
      "body": "Not ready.",
      "body_truncated": false,
      "state": "open",
      "draft": true,
      "merged": false,
      "merged_by": null,
      "merged_by_avatar_url": null,
      "commits": 1,
      "merge_commit_sha": null,
      "labels": [],
      "author": "maintainer",
      "author_avatar_url": null,
      "created_at": "2026-09-16T10:57:23Z",
      "updated_at": "2026-09-16T17:39:01Z",
      "merged_at": null,
      "closed_at": null,
      "base": {
        "ref": "topic",
        "sha": "c691256511d05858850bc7684ae062fea0d41132",
        "repository": "octo/demo"
      },
      "head": {
        "ref": "wip",
        "sha": "7a7d6596e515735d244dc1d942463c95851e139c",
        "repository": "octo/demo"
      },
      "html_url": "https://github.com/octo/demo/pull/10"
    },
    "issue_comments": [],
    "reviews": [],
    "review_comments": [],
    "comparison": {
      "base": "c691256511d05858850bc7684ae062fea0d41132",
      "head": "7a7d6596e515735d244dc1d942463c95851e139c",
      "base_commit": "c691256511d05858850bc7684ae062fea0d41132",
      "base_from": "base_sha"
    },
    "truncated": {
      "issue_comments": false,
      "reviews": false,
      "review_comments": false,
      "text": false
    },
    "unavailable": {}
  },
  "core_preview": null,
  "repository_labels": [],
  "labels_pending": false,
  "status": "<STATUS 10>",
  "readiness": "<READINESS 7a7d6596e515735d244dc1d942463c95851e139c>",
  "checks": "<CHECKS 10>",
  "status_unavailable": null,
  "refresh_timing": {
    "finished_at": "2026-09-17T12:00:00Z",
    "duration_ms": "<ELAPSED_MS>",
    "provider": "github_cli",
    "request_count": 6,
    "response_body_bytes": 693
  }
}
--- stderr ---
--- body ---
{"number": 10, "retry": true, "comparison": true}
--- gh ---
## Now a fresh record's revision is due once, and fetches only that pull request; a stale revision and a repeat are not due
# metab checkout --api /api/plugin/github/pull-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pull-refresh
status: 200
{
  "refresh": "not_due",
  "pull": {
    "state": "stale",
    "reason": null,
    "source": "https://github.com/octo/demo",
    "number": 9,
    "pin": null,
    "pin_ref": null,
    "fetched_at": "2026-09-17T12:00:00Z",
    "verified_at": "2026-09-17T12:00:00Z",
    "verified_by": "fetch",
    "head_moved": false,
    "checks_pending": false,
    "record_revision": "0936cac1ccb731138606b1752683f5cba68d3c8c8943d9821f8a17a7f2d53d8c",
    "fresh_for_s": 60.0,
    "probe_every_s": 5.0,
    "refreshing": false,
    "last_refresh": {
      "outcome": "succeeded",
      "message": null,
      "reset_at": null,
      "at": "2026-09-17T12:00:00Z"
    },
    "comparison_route": null,
    "image_route": null,
    "rendered_route": null,
    "size_route": null,
    "record": {
      "schema_version": 3,
      "projection_version": 2,
      "source": "https://github.com/octo/demo",
      "number": 9,
      "fetched_at": "2026-09-17T12:00:00Z",
      "reader": "gh:octo-reader",
      "etags": {
        "repos/octo/demo/pulls/9": "W/\"bd0a1535019ba33ca5d652f1e47b79467f9530f4108d8188308766a528b0938a\"",
        "repos/octo/demo/issues/9/comments?per_page=100&page=1": "W/\"8e3fb7499c48198e2722d4bf87b6c307d9dd9f38dc4d767cb6d084933715125a\"",
        "repos/octo/demo/pulls/9/reviews?per_page=100&page=1": "W/\"7f0bc5191955ee595d16f9154007d0dc93786fa2ababd3d3aeb87531c7dbc19a\"",
        "repos/octo/demo/pulls/9/comments?per_page=100&page=1": "W/\"d3923abb607ffe393dc70a9b0bb679b48cf6c97b158f065d3879327d52e2bbe4\""
      },
      "pull": {
        "number": 9,
        "title": "spam",
        "body": "",
        "body_truncated": false,
        "state": "closed",
        "draft": false,
        "merged": false,
        "merged_by": null,
        "merged_by_avatar_url": null,
        "commits": 1,
        "merge_commit_sha": null,
        "labels": [
          {
            "name": "invalid",
            "color": "e4e669",
            "description": null
          }
        ],
        "author": null,
        "author_avatar_url": null,
        "created_at": "2026-09-16T10:57:23Z",
        "updated_at": "2026-09-16T17:39:01Z",
        "merged_at": null,
        "closed_at": "2026-09-16T19:00:00Z",
        "base": {
          "ref": "topic",
          "sha": "c1063e6e9a97345a8c7e1dc275c7fd858c91d7b3",
          "repository": "octo/demo"
        },
        "head": {
          "ref": "spam",
          "sha": "0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd",
          "repository": null
        },
        "html_url": "https://github.com/octo/demo/pull/9"
      },
      "issue_comments": [],
      "reviews": [],
      "review_comments": [],
      "comparison": null,
      "truncated": {
        "issue_comments": false,
        "reviews": false,
        "review_comments": false,
        "text": false
      },
      "unavailable": {
        "comparison": "no_store"
      }
    },
    "core_preview": null,
    "repository_labels": [],
    "labels_pending": false,
    "status": "<STATUS 9>",
    "readiness": null,
    "checks": "<CHECKS 9>",
    "status_unavailable": null,
    "refresh_timing": {
      "finished_at": "2026-09-17T12:00:00Z",
      "duration_ms": "<ELAPSED_MS>",
      "provider": "github_cli",
      "request_count": 6,
      "response_body_bytes": 702
    }
  },
  "status_route": "/api/plugin/github/pull?number=9"
}
--- stderr ---
--- body ---
{"number": 9, "prepare_comparison": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}
--- gh ---
# metab checkout --api /api/plugin/github/pull-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pull-refresh
status: 202
{
  "refresh": "started",
  "pull": {
    "state": "stale",
    "reason": null,
    "source": "https://github.com/octo/demo",
    "number": 9,
    "pin": null,
    "pin_ref": null,
    "fetched_at": "2026-09-17T12:00:00Z",
    "verified_at": "2026-09-17T12:00:00Z",
    "verified_by": "fetch",
    "head_moved": false,
    "checks_pending": false,
    "record_revision": "0936cac1ccb731138606b1752683f5cba68d3c8c8943d9821f8a17a7f2d53d8c",
    "fresh_for_s": 60.0,
    "probe_every_s": 5.0,
    "refreshing": true,
    "last_refresh": {
      "outcome": "succeeded",
      "message": null,
      "reset_at": null,
      "at": "2026-09-17T12:00:00Z"
    },
    "comparison_route": null,
    "image_route": null,
    "rendered_route": null,
    "size_route": null,
    "record": {
      "schema_version": 3,
      "projection_version": 2,
      "source": "https://github.com/octo/demo",
      "number": 9,
      "fetched_at": "2026-09-17T12:00:00Z",
      "reader": "gh:octo-reader",
      "etags": {
        "repos/octo/demo/pulls/9": "W/\"bd0a1535019ba33ca5d652f1e47b79467f9530f4108d8188308766a528b0938a\"",
        "repos/octo/demo/issues/9/comments?per_page=100&page=1": "W/\"8e3fb7499c48198e2722d4bf87b6c307d9dd9f38dc4d767cb6d084933715125a\"",
        "repos/octo/demo/pulls/9/reviews?per_page=100&page=1": "W/\"7f0bc5191955ee595d16f9154007d0dc93786fa2ababd3d3aeb87531c7dbc19a\"",
        "repos/octo/demo/pulls/9/comments?per_page=100&page=1": "W/\"d3923abb607ffe393dc70a9b0bb679b48cf6c97b158f065d3879327d52e2bbe4\""
      },
      "pull": {
        "number": 9,
        "title": "spam",
        "body": "",
        "body_truncated": false,
        "state": "closed",
        "draft": false,
        "merged": false,
        "merged_by": null,
        "merged_by_avatar_url": null,
        "commits": 1,
        "merge_commit_sha": null,
        "labels": [
          {
            "name": "invalid",
            "color": "e4e669",
            "description": null
          }
        ],
        "author": null,
        "author_avatar_url": null,
        "created_at": "2026-09-16T10:57:23Z",
        "updated_at": "2026-09-16T17:39:01Z",
        "merged_at": null,
        "closed_at": "2026-09-16T19:00:00Z",
        "base": {
          "ref": "topic",
          "sha": "c1063e6e9a97345a8c7e1dc275c7fd858c91d7b3",
          "repository": "octo/demo"
        },
        "head": {
          "ref": "spam",
          "sha": "0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd",
          "repository": null
        },
        "html_url": "https://github.com/octo/demo/pull/9"
      },
      "issue_comments": [],
      "reviews": [],
      "review_comments": [],
      "comparison": null,
      "truncated": {
        "issue_comments": false,
        "reviews": false,
        "review_comments": false,
        "text": false
      },
      "unavailable": {
        "comparison": "no_store"
      }
    },
    "core_preview": null,
    "repository_labels": [],
    "labels_pending": false,
    "status": "<STATUS 9>",
    "readiness": null,
    "checks": "<CHECKS 9>",
    "status_unavailable": null,
    "refresh_timing": {
      "finished_at": "2026-09-17T12:00:00Z",
      "duration_ms": "<ELAPSED_MS>",
      "provider": "github_cli",
      "request_count": 6,
      "response_body_bytes": 702
    },
    "preparing_comparison": true
  },
  "status_route": "/api/plugin/github/pull?number=9"
}
after: /api/plugin/github/pull?number=9
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "number": 9,
  "pin": null,
  "pin_ref": null,
  "fetched_at": "2026-09-17T12:00:00Z",
  "verified_at": "2026-09-17T12:00:00Z",
  "verified_by": "fetch",
  "head_moved": false,
  "checks_pending": false,
  "record_revision": "5c011c3a5b821c19776edbdfa483a6ec9360c8295d279a5527cd55fbe14b7766",
  "fresh_for_s": 60.0,
  "probe_every_s": 5.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:00:00Z"
  },
  "comparison_route": "/api/plugin/github/pull-comparison?number=9&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd&base_policy=merge_base&build=<BUILD>&store=<STORE_TAG>",
  "image_route": "/api/plugin/github/pull-image?number=9&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd&store=<STORE_TAG>",
  "rendered_route": "/api/plugin/github/pull-rendered-diff?number=9&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd&store=<STORE_TAG>",
  "size_route": "/api/plugin/github/pull-size?number=9&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd&store=<STORE_TAG>",
  "record": {
    "schema_version": 3,
    "projection_version": 2,
    "source": "https://github.com/octo/demo",
    "number": 9,
    "fetched_at": "2026-09-17T12:00:00Z",
    "reader": "gh:octo-reader",
    "etags": {
      "repos/octo/demo/pulls/9": "W/\"bd0a1535019ba33ca5d652f1e47b79467f9530f4108d8188308766a528b0938a\"",
      "repos/octo/demo/issues/9/comments?per_page=100&page=1": "W/\"8e3fb7499c48198e2722d4bf87b6c307d9dd9f38dc4d767cb6d084933715125a\"",
      "repos/octo/demo/pulls/9/reviews?per_page=100&page=1": "W/\"7f0bc5191955ee595d16f9154007d0dc93786fa2ababd3d3aeb87531c7dbc19a\"",
      "repos/octo/demo/pulls/9/comments?per_page=100&page=1": "W/\"d3923abb607ffe393dc70a9b0bb679b48cf6c97b158f065d3879327d52e2bbe4\""
    },
    "pull": {
      "number": 9,
      "title": "spam",
      "body": "",
      "body_truncated": false,
      "state": "closed",
      "draft": false,
      "merged": false,
      "merged_by": null,
      "merged_by_avatar_url": null,
      "commits": 1,
      "merge_commit_sha": null,
      "labels": [
        {
          "name": "invalid",
          "color": "e4e669",
          "description": null
        }
      ],
      "author": null,
      "author_avatar_url": null,
      "created_at": "2026-09-16T10:57:23Z",
      "updated_at": "2026-09-16T17:39:01Z",
      "merged_at": null,
      "closed_at": "2026-09-16T19:00:00Z",
      "base": {
        "ref": "topic",
        "sha": "c1063e6e9a97345a8c7e1dc275c7fd858c91d7b3",
        "repository": "octo/demo"
      },
      "head": {
        "ref": "spam",
        "sha": "0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd",
        "repository": null
      },
      "html_url": "https://github.com/octo/demo/pull/9"
    },
    "issue_comments": [],
    "reviews": [],
    "review_comments": [],
    "comparison": {
      "base": "f92fd713acd521d4ebb62fb9f345ec927b8b6d1b",
      "head": "0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd",
      "base_commit": "c1063e6e9a97345a8c7e1dc275c7fd858c91d7b3",
      "base_from": "base_sha"
    },
    "truncated": {
      "issue_comments": false,
      "reviews": false,
      "review_comments": false,
      "text": false
    },
    "unavailable": {}
  },
  "core_preview": null,
  "repository_labels": [],
  "labels_pending": false,
  "status": "<STATUS 9>",
  "readiness": null,
  "checks": "<CHECKS 9>",
  "status_unavailable": null,
  "refresh_timing": {
    "finished_at": "2026-09-17T12:00:00Z",
    "duration_ms": "<ELAPSED_MS>",
    "provider": "github_cli",
    "request_count": 6,
    "response_body_bytes": 702
  }
}
--- stderr ---
--- body ---
{"number": 9, "prepare_comparison": "0936cac1ccb731138606b1752683f5cba68d3c8c8943d9821f8a17a7f2d53d8c"}
--- gh ---
# metab checkout --api /api/plugin/github/pull-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pull-refresh
status: 200
{
  "refresh": "not_due",
  "pull": {
    "state": "current",
    "reason": null,
    "source": "https://github.com/octo/demo",
    "number": 9,
    "pin": null,
    "pin_ref": null,
    "fetched_at": "2026-09-17T12:00:00Z",
    "verified_at": "2026-09-17T12:00:00Z",
    "verified_by": "fetch",
    "head_moved": false,
    "checks_pending": false,
    "record_revision": "5c011c3a5b821c19776edbdfa483a6ec9360c8295d279a5527cd55fbe14b7766",
    "fresh_for_s": 60.0,
    "probe_every_s": 5.0,
    "refreshing": false,
    "last_refresh": {
      "outcome": "succeeded",
      "message": null,
      "reset_at": null,
      "at": "2026-09-17T12:00:00Z"
    },
    "comparison_route": "/api/plugin/github/pull-comparison?number=9&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd&base_policy=merge_base&build=<BUILD>&store=<STORE_TAG>",
    "image_route": "/api/plugin/github/pull-image?number=9&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd&store=<STORE_TAG>",
    "rendered_route": "/api/plugin/github/pull-rendered-diff?number=9&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd&store=<STORE_TAG>",
    "size_route": "/api/plugin/github/pull-size?number=9&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd&store=<STORE_TAG>",
    "record": {
      "schema_version": 3,
      "projection_version": 2,
      "source": "https://github.com/octo/demo",
      "number": 9,
      "fetched_at": "2026-09-17T12:00:00Z",
      "reader": "gh:octo-reader",
      "etags": {
        "repos/octo/demo/pulls/9": "W/\"bd0a1535019ba33ca5d652f1e47b79467f9530f4108d8188308766a528b0938a\"",
        "repos/octo/demo/issues/9/comments?per_page=100&page=1": "W/\"8e3fb7499c48198e2722d4bf87b6c307d9dd9f38dc4d767cb6d084933715125a\"",
        "repos/octo/demo/pulls/9/reviews?per_page=100&page=1": "W/\"7f0bc5191955ee595d16f9154007d0dc93786fa2ababd3d3aeb87531c7dbc19a\"",
        "repos/octo/demo/pulls/9/comments?per_page=100&page=1": "W/\"d3923abb607ffe393dc70a9b0bb679b48cf6c97b158f065d3879327d52e2bbe4\""
      },
      "pull": {
        "number": 9,
        "title": "spam",
        "body": "",
        "body_truncated": false,
        "state": "closed",
        "draft": false,
        "merged": false,
        "merged_by": null,
        "merged_by_avatar_url": null,
        "commits": 1,
        "merge_commit_sha": null,
        "labels": [
          {
            "name": "invalid",
            "color": "e4e669",
            "description": null
          }
        ],
        "author": null,
        "author_avatar_url": null,
        "created_at": "2026-09-16T10:57:23Z",
        "updated_at": "2026-09-16T17:39:01Z",
        "merged_at": null,
        "closed_at": "2026-09-16T19:00:00Z",
        "base": {
          "ref": "topic",
          "sha": "c1063e6e9a97345a8c7e1dc275c7fd858c91d7b3",
          "repository": "octo/demo"
        },
        "head": {
          "ref": "spam",
          "sha": "0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd",
          "repository": null
        },
        "html_url": "https://github.com/octo/demo/pull/9"
      },
      "issue_comments": [],
      "reviews": [],
      "review_comments": [],
      "comparison": {
        "base": "f92fd713acd521d4ebb62fb9f345ec927b8b6d1b",
        "head": "0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd",
        "base_commit": "c1063e6e9a97345a8c7e1dc275c7fd858c91d7b3",
        "base_from": "base_sha"
      },
      "truncated": {
        "issue_comments": false,
        "reviews": false,
        "review_comments": false,
        "text": false
      },
      "unavailable": {}
    },
    "core_preview": null,
    "repository_labels": [],
    "labels_pending": false,
    "status": "<STATUS 9>",
    "readiness": null,
    "checks": "<CHECKS 9>",
    "status_unavailable": null,
    "refresh_timing": {
      "finished_at": "2026-09-17T12:00:00Z",
      "duration_ms": "<ELAPSED_MS>",
      "provider": "github_cli",
      "request_count": 6,
      "response_body_bytes": 702
    }
  },
  "status_route": "/api/plugin/github/pull?number=9"
}
--- stderr ---
--- body ---
{"number": 9, "prepare_comparison": "0936cac1ccb731138606b1752683f5cba68d3c8c8943d9821f8a17a7f2d53d8c"}
--- gh ---
## The reader's Changes answers the same comparison, with no gh read
# metab checkout --api /api/plugin/github/pull-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pull-refresh
status: 202
{
  "refresh": "started",
  "pull": {
    "state": "current",
    "reason": null,
    "source": "https://github.com/octo/demo",
    "number": 9,
    "pin": null,
    "pin_ref": null,
    "fetched_at": "2026-09-17T12:00:00Z",
    "verified_at": "2026-09-17T12:00:00Z",
    "verified_by": "fetch",
    "head_moved": false,
    "checks_pending": false,
    "record_revision": "5c011c3a5b821c19776edbdfa483a6ec9360c8295d279a5527cd55fbe14b7766",
    "fresh_for_s": 60.0,
    "probe_every_s": 5.0,
    "refreshing": true,
    "last_refresh": {
      "outcome": "succeeded",
      "message": null,
      "reset_at": null,
      "at": "2026-09-17T12:00:00Z"
    },
    "comparison_route": "/api/plugin/github/pull-comparison?number=9&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd&base_policy=merge_base&build=<BUILD>&store=<STORE_TAG>",
    "image_route": "/api/plugin/github/pull-image?number=9&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd&store=<STORE_TAG>",
    "rendered_route": "/api/plugin/github/pull-rendered-diff?number=9&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd&store=<STORE_TAG>",
    "size_route": "/api/plugin/github/pull-size?number=9&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd&store=<STORE_TAG>",
    "record": {
      "schema_version": 3,
      "projection_version": 2,
      "source": "https://github.com/octo/demo",
      "number": 9,
      "fetched_at": "2026-09-17T12:00:00Z",
      "reader": "gh:octo-reader",
      "etags": {
        "repos/octo/demo/pulls/9": "W/\"bd0a1535019ba33ca5d652f1e47b79467f9530f4108d8188308766a528b0938a\"",
        "repos/octo/demo/issues/9/comments?per_page=100&page=1": "W/\"8e3fb7499c48198e2722d4bf87b6c307d9dd9f38dc4d767cb6d084933715125a\"",
        "repos/octo/demo/pulls/9/reviews?per_page=100&page=1": "W/\"7f0bc5191955ee595d16f9154007d0dc93786fa2ababd3d3aeb87531c7dbc19a\"",
        "repos/octo/demo/pulls/9/comments?per_page=100&page=1": "W/\"d3923abb607ffe393dc70a9b0bb679b48cf6c97b158f065d3879327d52e2bbe4\""
      },
      "pull": {
        "number": 9,
        "title": "spam",
        "body": "",
        "body_truncated": false,
        "state": "closed",
        "draft": false,
        "merged": false,
        "merged_by": null,
        "merged_by_avatar_url": null,
        "commits": 1,
        "merge_commit_sha": null,
        "labels": [
          {
            "name": "invalid",
            "color": "e4e669",
            "description": null
          }
        ],
        "author": null,
        "author_avatar_url": null,
        "created_at": "2026-09-16T10:57:23Z",
        "updated_at": "2026-09-16T17:39:01Z",
        "merged_at": null,
        "closed_at": "2026-09-16T19:00:00Z",
        "base": {
          "ref": "topic",
          "sha": "c1063e6e9a97345a8c7e1dc275c7fd858c91d7b3",
          "repository": "octo/demo"
        },
        "head": {
          "ref": "spam",
          "sha": "0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd",
          "repository": null
        },
        "html_url": "https://github.com/octo/demo/pull/9"
      },
      "issue_comments": [],
      "reviews": [],
      "review_comments": [],
      "comparison": {
        "base": "f92fd713acd521d4ebb62fb9f345ec927b8b6d1b",
        "head": "0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd",
        "base_commit": "c1063e6e9a97345a8c7e1dc275c7fd858c91d7b3",
        "base_from": "base_sha"
      },
      "truncated": {
        "issue_comments": false,
        "reviews": false,
        "review_comments": false,
        "text": false
      },
      "unavailable": {}
    },
    "core_preview": null,
    "repository_labels": [],
    "labels_pending": false,
    "status": "<STATUS 9>",
    "readiness": null,
    "checks": "<CHECKS 9>",
    "status_unavailable": null,
    "refresh_timing": {
      "finished_at": "2026-09-17T12:00:00Z",
      "duration_ms": "<ELAPSED_MS>",
      "provider": "github_cli",
      "request_count": 6,
      "response_body_bytes": 702
    }
  },
  "status_route": "/api/plugin/github/pull?number=9"
}
after: /api/plugin/github/pull?number=9
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "number": 9,
  "pin": null,
  "pin_ref": null,
  "fetched_at": "2026-09-17T12:00:00Z",
  "verified_at": "2026-09-17T12:00:00Z",
  "verified_by": "fetch",
  "head_moved": false,
  "checks_pending": false,
  "record_revision": "5c011c3a5b821c19776edbdfa483a6ec9360c8295d279a5527cd55fbe14b7766",
  "fresh_for_s": 60.0,
  "probe_every_s": 5.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:00:00Z"
  },
  "comparison_route": "/api/plugin/github/pull-comparison?number=9&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd&base_policy=merge_base&build=<BUILD>&store=<STORE_TAG>",
  "image_route": "/api/plugin/github/pull-image?number=9&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd&store=<STORE_TAG>",
  "rendered_route": "/api/plugin/github/pull-rendered-diff?number=9&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd&store=<STORE_TAG>",
  "size_route": "/api/plugin/github/pull-size?number=9&left=f92fd713acd521d4ebb62fb9f345ec927b8b6d1b&right=0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd&store=<STORE_TAG>",
  "record": {
    "schema_version": 3,
    "projection_version": 2,
    "source": "https://github.com/octo/demo",
    "number": 9,
    "fetched_at": "2026-09-17T12:00:00Z",
    "reader": "gh:octo-reader",
    "etags": {
      "repos/octo/demo/pulls/9": "W/\"bd0a1535019ba33ca5d652f1e47b79467f9530f4108d8188308766a528b0938a\"",
      "repos/octo/demo/issues/9/comments?per_page=100&page=1": "W/\"8e3fb7499c48198e2722d4bf87b6c307d9dd9f38dc4d767cb6d084933715125a\"",
      "repos/octo/demo/pulls/9/reviews?per_page=100&page=1": "W/\"7f0bc5191955ee595d16f9154007d0dc93786fa2ababd3d3aeb87531c7dbc19a\"",
      "repos/octo/demo/pulls/9/comments?per_page=100&page=1": "W/\"d3923abb607ffe393dc70a9b0bb679b48cf6c97b158f065d3879327d52e2bbe4\""
    },
    "pull": {
      "number": 9,
      "title": "spam",
      "body": "",
      "body_truncated": false,
      "state": "closed",
      "draft": false,
      "merged": false,
      "merged_by": null,
      "merged_by_avatar_url": null,
      "commits": 1,
      "merge_commit_sha": null,
      "labels": [
        {
          "name": "invalid",
          "color": "e4e669",
          "description": null
        }
      ],
      "author": null,
      "author_avatar_url": null,
      "created_at": "2026-09-16T10:57:23Z",
      "updated_at": "2026-09-16T17:39:01Z",
      "merged_at": null,
      "closed_at": "2026-09-16T19:00:00Z",
      "base": {
        "ref": "topic",
        "sha": "c1063e6e9a97345a8c7e1dc275c7fd858c91d7b3",
        "repository": "octo/demo"
      },
      "head": {
        "ref": "spam",
        "sha": "0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd",
        "repository": null
      },
      "html_url": "https://github.com/octo/demo/pull/9"
    },
    "issue_comments": [],
    "reviews": [],
    "review_comments": [],
    "comparison": {
      "base": "f92fd713acd521d4ebb62fb9f345ec927b8b6d1b",
      "head": "0fe10aeb84bee6fe05150d6d9f6da3f4d68549bd",
      "base_commit": "c1063e6e9a97345a8c7e1dc275c7fd858c91d7b3",
      "base_from": "base_sha"
    },
    "truncated": {
      "issue_comments": false,
      "reviews": false,
      "review_comments": false,
      "text": false
    },
    "unavailable": {}
  },
  "core_preview": null,
  "repository_labels": [],
  "labels_pending": false,
  "status": "<STATUS 9>",
  "readiness": null,
  "checks": "<CHECKS 9>",
  "status_unavailable": null,
  "refresh_timing": {
    "finished_at": "2026-09-17T12:00:00Z",
    "duration_ms": "<ELAPSED_MS>",
    "provider": "github_cli",
    "request_count": 6,
    "response_body_bytes": 702
  }
}
--- stderr ---
--- body ---
{"number": 9, "retry": true, "comparison": true}
--- gh ---
