## Pull requests 7 and 8 are read, then the catalog. A record the catalog has not seen change is current; 7 is open, and its docs check is still running.
# metab https://github.com/octo/demo/pull/7 --api '/api/plugin/github/pull?number=7'
exit: 0
--- stdout ---
api: /api/plugin/github/pull?number=7
status: 200
{
  "number": 7,
  "state": "current",
  "fetched_at": "2026-09-17T12:00:00Z",
  "verified_at": "2026-09-17T12:00:00Z",
  "verified_by": "fetch",
  "head_moved": false,
  "checks_pending": true
}
--- stderr ---
cloning https://github.com/octo/demo into <HOME>
cloned https://github.com/octo/demo in 0.0 s
selection: pull_request
pin: 85fcb2fa9e77eb5db485ffef445cbbc645d6db4a (pull request 7 head)
pull_request: 7 (open; fetched 2026-09-17T12:00:00Z by gh:octo-reader)
--- gh ---
gh auth status
gh api repos/octo/demo --jq .size
gh api user
gh api repos/octo/demo/pulls/7
gh api repos/octo/demo/issues/7/comments?per_page=100&page=1
gh api repos/octo/demo/pulls/7/comments?per_page=100&page=1
gh api repos/octo/demo/pulls/7/reviews?per_page=100&page=1
gh api user (If-None-Match)
gh api graphql status number=7 cursor=start
# metab https://github.com/octo/demo --api /api/plugin/github/pull-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pull-refresh
status: 202
{
  "refresh": "started",
  "pull": {
    "number": 8,
    "state": "pending",
    "fetched_at": null,
    "verified_at": null,
    "verified_by": null,
    "head_moved": false,
    "checks_pending": false
  },
  "status_route": "/api/plugin/github/pull?number=8"
}
after: /api/plugin/github/pull?number=8
status: 200
{
  "number": 8,
  "state": "current",
  "fetched_at": "2026-09-17T12:00:00Z",
  "verified_at": "2026-09-17T12:00:00Z",
  "verified_by": "fetch",
  "head_moved": false,
  "checks_pending": false
}
--- stderr ---
--- body ---
{"number": 8, "retry": true}
--- gh ---
gh api user
gh api repos/octo/demo/pulls/8
gh api repos/octo/demo/issues/8/comments?per_page=100&page=1
gh api repos/octo/demo/pulls/8/comments?per_page=100&page=1
gh api repos/octo/demo/pulls/8/reviews?per_page=100&page=1
gh api user (If-None-Match)
gh api graphql status number=8 cursor=start
# metab https://github.com/octo/demo --api /api/plugin/github/pulls-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pulls-refresh
status: 202
{
  "refresh": "started",
  "pulls": {
    "state": "pending",
    "fetched_at": null,
    "reader": null
  },
  "status_route": "/api/plugin/github/pulls?state=open&limit=0",
  "status_scan": "not_due",
  "status_scan_at": null
}
after: /api/plugin/github/pulls?state=open&limit=0
status: 200
{
  "state": "current",
  "fetched_at": "2026-09-17T12:00:00Z",
  "reader": "gh:octo-reader",
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:00:00Z"
  }
}
--- stderr ---
--- body ---
{}
--- gh ---
gh api user
gh api graphql catalog state=open cursor=start
gh api graphql catalog state=all cursor=start
gh api graphql catalog state=all cursor=all-100
## The clock moves on 7200 s, to 2026-09-17T14:00:00Z.
# metab https://github.com/octo/demo --api /api/plugin/github/pulls-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pulls-refresh
status: 202
{
  "refresh": "started",
  "pulls": {
    "state": "stale",
    "fetched_at": "2026-09-17T12:00:00Z",
    "reader": "gh:octo-reader"
  },
  "status_route": "/api/plugin/github/pulls?state=open&limit=0",
  "status_scan": "started",
  "status_scan_at": null
}
after: /api/plugin/github/pulls?state=open&limit=0
status: 200
{
  "state": "current",
  "fetched_at": "2026-09-17T14:00:00Z",
  "reader": "gh:octo-reader",
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T14:00:00Z"
  }
}
--- stderr ---
--- body ---
{}
--- gh ---
gh api user
gh api graphql catalog state=updated cursor=start
gh api graphql statuses cursor=start
gh api graphql statuses cursor=statuses-25
gh api graphql statuses cursor=statuses-50
gh api graphql statuses cursor=statuses-75
# metab https://github.com/octo/demo --api '/api/plugin/github/pull?number=8'
exit: 0
--- stdout ---
api: /api/plugin/github/pull?number=8
status: 200
{
  "number": 8,
  "state": "current",
  "fetched_at": "2026-09-17T12:00:00Z",
  "verified_at": "2026-09-17T14:00:00Z",
  "verified_by": "catalog",
  "head_moved": false,
  "checks_pending": false
}
--- stderr ---
--- gh ---
## The catalog vouches for open 7's conversation and head, and its record holds nothing `updated_at` does not track, so it is current. Its status does, its checks and whether it can merge, and the list's ask just scanned every open pull request's: 7's found its checks as its read left them, so it is current too, and its docs check is still pending.
# metab https://github.com/octo/demo --api '/api/plugin/github/pull?number=7'
exit: 0
--- stdout ---
api: /api/plugin/github/pull?number=7
status: 200
{
  "number": 7,
  "state": "current",
  "fetched_at": "2026-09-17T12:00:00Z",
  "verified_at": "2026-09-17T14:00:00Z",
  "verified_by": "catalog",
  "head_moved": false,
  "checks_pending": true
}
--- stderr ---
--- gh ---
## A visible page asks for 7, 8, and 10 and for 8's changed files. The store gives 8's list from its record's comparison, with no request to GitHub, so it goes first; then the records: 7 and 8 are current; 10 has no record, so it is read.
# metab https://github.com/octo/demo --api /api/plugin/github/pulls-prefetch --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pulls-prefetch
status: 202
{
  "prefetch": "started",
  "queued": 4,
  "status_route": "/api/plugin/github/pulls-prefetch"
}
after: /api/plugin/github/pulls-prefetch
status: 200
{
  "source": "https://github.com/octo/demo",
  "running": null,
  "queued": [],
  "records": {
    "per_scan": 8,
    "scan": "<CATALOG_EPOCH_1>:2026-09-17T14:00:00Z",
    "scan_used": 1,
    "per_hour": 12,
    "hour_used": 1
  },
  "files": {
    "per_hour": 20,
    "hour_used": 0
  },
  "governor": {
    "floor": 0.25,
    "admits": true,
    "reason": null,
    "held_until": null,
    "observed": {
      "core": {
        "limit": 5000,
        "remaining": 4999,
        "reset_at": "2026-09-23T16:46:00Z"
      }
    },
    "ceiling": {
      "per_hour": 300,
      "hour_used": 4,
      "speculative_per_hour": 100,
      "speculative_hour_used": 4,
      "prefetch_reserved": 32,
      "walk_hour_used": 0
    }
  },
  "recent": [
    {
      "kind": "files",
      "number": 8,
      "outcome": "refreshed",
      "at": "2026-09-17T14:00:00Z"
    },
    {
      "kind": "record",
      "number": 7,
      "outcome": "skipped:current",
      "at": "2026-09-17T14:00:00Z"
    },
    {
      "kind": "record",
      "number": 8,
      "outcome": "skipped:current",
      "at": "2026-09-17T14:00:00Z"
    },
    {
      "kind": "record",
      "number": 10,
      "outcome": "refreshed",
      "at": "2026-09-17T14:00:00Z"
    }
  ]
}
--- stderr ---
--- body ---
{"records": [7, 8, 10], "files": [8]}
--- 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)
## 7's page asks for its automatic refresh. Its status alone is due, but its last full read was two hours ago, past FULL_REFRESH_S, and a visible page's record is read in full that often: every part is asked with its ETag, and GitHub answers 304 for all that did not change, and its status after it. A record read in full within that interval reads its status alone. The same ask probes the repository's list, one read of the row updated last, as a visible Pulls tab's ask would.
# metab https://github.com/octo/demo --api /api/plugin/github/pull-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pull-refresh
status: 202
{
  "refresh": "started",
  "pull": {
    "number": 7,
    "state": "current",
    "fetched_at": "2026-09-17T12:00:00Z",
    "verified_at": "2026-09-17T14:00:00Z",
    "verified_by": "catalog",
    "head_moved": false,
    "checks_pending": true
  },
  "status_route": "/api/plugin/github/pull?number=7"
}
after: /api/plugin/github/pull?number=7
status: 200
{
  "number": 7,
  "state": "current",
  "fetched_at": "2026-09-17T14:00:00Z",
  "verified_at": "2026-09-17T14:00:00Z",
  "verified_by": "catalog",
  "head_moved": false,
  "checks_pending": true
}
--- stderr ---
--- body ---
{"number": 7}
--- gh ---
gh api repos/octo/demo/issues?state=all&sort=updated&direction=desc&per_page=1
gh api user
gh api repos/octo/demo/pulls/7 (If-None-Match)
gh api repos/octo/demo/issues/7/comments?per_page=100&page=1 (If-None-Match)
gh api repos/octo/demo/pulls/7/comments?per_page=100&page=1 (If-None-Match)
gh api repos/octo/demo/pulls/7/reviews?per_page=100&page=1 (If-None-Match)
gh api user (If-None-Match)
gh api graphql status number=7 cursor=start
# metab https://github.com/octo/demo --api '/api/plugin/github/pull?number=7'
exit: 0
--- stdout ---
api: /api/plugin/github/pull?number=7
status: 200
{
  "number": 7,
  "state": "current",
  "fetched_at": "2026-09-17T14:00:00Z",
  "verified_at": "2026-09-17T14:00:00Z",
  "verified_by": "catalog",
  "head_moved": false,
  "checks_pending": true
}
--- stderr ---
--- gh ---
## The clock moves on 5 s, to 2026-09-17T14:00:05Z.
## 7's page asks again while its docs check still runs. Its probe asks the issue and the first pages of the head's checks, whose first ask seeds what later probes compare with: a paid read of each page, counted as a change. So the status is read alone, an account check and one GraphQL query, and nothing of the record over REST.
# metab https://github.com/octo/demo --api /api/plugin/github/pull-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pull-refresh
status: 202
{
  "refresh": "started",
  "pull": {
    "number": 7,
    "state": "current",
    "fetched_at": "2026-09-17T14:00:00Z",
    "verified_at": "2026-09-17T14:00:05Z",
    "verified_by": "catalog",
    "head_moved": false,
    "checks_pending": true
  },
  "status_route": "/api/plugin/github/pull?number=7"
}
after: /api/plugin/github/pull?number=7
status: 200
{
  "number": 7,
  "state": "current",
  "fetched_at": "2026-09-17T14:00:00Z",
  "verified_at": "2026-09-17T14:00:05Z",
  "verified_by": "catalog",
  "head_moved": false,
  "checks_pending": true
}
--- stderr ---
--- body ---
{"number": 7}
--- gh ---
gh api repos/octo/demo/issues?state=all&sort=updated&direction=desc&per_page=1
gh api repos/octo/demo/issues/7
gh api repos/octo/demo/commits/85fcb2fa9e77eb5db485ffef445cbbc645d6db4a/check-runs?per_page=100&page=1
gh api repos/octo/demo/commits/85fcb2fa9e77eb5db485ffef445cbbc645d6db4a/status?per_page=100&page=1
gh api user
gh api graphql status number=7 cursor=start
# metab https://github.com/octo/demo --api '/api/plugin/github/pull?number=7'
exit: 0
--- stdout ---
api: /api/plugin/github/pull?number=7
status: 200
{
  "number": 7,
  "state": "current",
  "fetched_at": "2026-09-17T14:00:00Z",
  "verified_at": "2026-09-17T14:00:00Z",
  "verified_by": "catalog",
  "head_moved": false,
  "checks_pending": true
}
--- stderr ---
--- gh ---
## The clock moves on 5 s, to 2026-09-17T14:00:10Z.
## Five seconds on, the next ask's probe sends the ETags that one kept beside the status, GitHub answers both pages 304, and nothing is due.
# metab https://github.com/octo/demo --api /api/plugin/github/pull-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pull-refresh
status: 200
{
  "refresh": "not_due",
  "pull": {
    "number": 7,
    "state": "current",
    "fetched_at": "2026-09-17T14:00:00Z",
    "verified_at": "2026-09-17T14:00:10Z",
    "verified_by": "catalog",
    "head_moved": false,
    "checks_pending": true
  },
  "status_route": "/api/plugin/github/pull?number=7"
}
--- stderr ---
--- body ---
{"number": 7}
--- gh ---
gh api repos/octo/demo/issues?state=all&sort=updated&direction=desc&per_page=1
gh api repos/octo/demo/issues/7
gh api repos/octo/demo/commits/85fcb2fa9e77eb5db485ffef445cbbc645d6db4a/check-runs?per_page=100&page=1 (If-None-Match)
gh api repos/octo/demo/commits/85fcb2fa9e77eb5db485ffef445cbbc645d6db4a/status?per_page=100&page=1 (If-None-Match)
## Pull request 7 is force-pushed back to its earlier commit, where CI has finished. The next scan shows the row newer with another head: the record is stale and its head moved. A prefetch of 7 lists its files first, from the new head the row names against the mirror's base branch, then reads the record.
## The clock moves on 61 s, to 2026-09-17T14:01:11Z.
# metab https://github.com/octo/demo --api /api/plugin/github/pulls-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pulls-refresh
status: 202
{
  "refresh": "started",
  "pulls": {
    "state": "stale",
    "fetched_at": "2026-09-17T14:00:00Z",
    "reader": "gh:octo-reader"
  },
  "status_route": "/api/plugin/github/pulls?state=open&limit=0",
  "status_scan": "not_due",
  "status_scan_at": "2026-09-17T14:00:00Z"
}
after: /api/plugin/github/pulls?state=open&limit=0
status: 200
{
  "state": "current",
  "fetched_at": "2026-09-17T14:01:11Z",
  "reader": "gh:octo-reader",
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T14:01:11Z"
  }
}
--- stderr ---
--- body ---
{}
--- gh ---
gh api user
gh api graphql catalog state=updated cursor=start
# metab https://github.com/octo/demo --api '/api/plugin/github/pull?number=7'
exit: 0
--- stdout ---
api: /api/plugin/github/pull?number=7
status: 200
{
  "number": 7,
  "state": "stale",
  "fetched_at": "2026-09-17T14:00:00Z",
  "verified_at": "2026-09-17T14:00:00Z",
  "verified_by": "fetch",
  "head_moved": true,
  "checks_pending": true
}
--- stderr ---
--- gh ---
# metab https://github.com/octo/demo --api /api/plugin/github/pulls-prefetch --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pulls-prefetch
status: 202
{
  "prefetch": "started",
  "queued": 2,
  "status_route": "/api/plugin/github/pulls-prefetch"
}
after: /api/plugin/github/pulls-prefetch
status: 200
{
  "source": "https://github.com/octo/demo",
  "running": null,
  "queued": [],
  "records": {
    "per_scan": 8,
    "scan": "<CATALOG_EPOCH_1>:2026-09-17T14:01:11Z",
    "scan_used": 1,
    "per_hour": 12,
    "hour_used": 1
  },
  "files": {
    "per_hour": 20,
    "hour_used": 0
  },
  "governor": {
    "floor": 0.25,
    "admits": true,
    "reason": null,
    "held_until": null,
    "observed": {
      "core": {
        "limit": 5000,
        "remaining": 4999,
        "reset_at": "2026-09-23T16:46:00Z"
      }
    },
    "ceiling": {
      "per_hour": 300,
      "hour_used": 1,
      "speculative_per_hour": 100,
      "speculative_hour_used": 1,
      "prefetch_reserved": 32,
      "walk_hour_used": 0
    }
  },
  "recent": [
    {
      "kind": "files",
      "number": 7,
      "outcome": "refreshed",
      "at": "2026-09-17T14:01:11Z"
    },
    {
      "kind": "record",
      "number": 7,
      "outcome": "refreshed",
      "at": "2026-09-17T14:01:11Z"
    }
  ]
}
--- stderr ---
--- body ---
{"records": [7], "files": [7]}
--- gh ---
gh api user
gh api repos/octo/demo/pulls/7 (If-None-Match)
gh api repos/octo/demo/issues/7/comments?per_page=100&page=1 (If-None-Match)
gh api repos/octo/demo/pulls/7/comments?per_page=100&page=1 (If-None-Match)
gh api repos/octo/demo/pulls/7/reviews?per_page=100&page=1 (If-None-Match)
gh api user (If-None-Match)
# metab https://github.com/octo/demo --api '/api/plugin/github/pull?number=7'
exit: 0
--- stdout ---
api: /api/plugin/github/pull?number=7
status: 200
{
  "number": 7,
  "state": "current",
  "fetched_at": "2026-09-17T14:01:11Z",
  "verified_at": "2026-09-17T14:01:11Z",
  "verified_by": "catalog",
  "head_moved": false,
  "checks_pending": false
}
--- stderr ---
--- gh ---
# metab https://github.com/octo/demo --api '/api/plugin/github/pull-files?number=7&limit=0'
exit: 0
--- stdout ---
api: /api/plugin/github/pull-files?number=7&limit=0
status: 200
{
  "number": 7,
  "state": "current",
  "listed_from": "comparison",
  "head": "f7c5a9918657080d6aeb455902615b6e17df760a",
  "base_ref": "topic",
  "fetched": 1
}
--- stderr ---
--- gh ---
## This server's cores walk has spent the whole of speculative work's share of the ceiling this hour, before any page asked for the prefetch, so the lane kept nothing back from it. The ceiling itself has two thirds left, which what is on screen keeps. A visible page asks for 9 and for 10's and 9's changed files. The record is refused at once with `self_ceiling`, and the lists go on: the store gives 10's, which costs GitHub nothing, and 9's, which GitHub would give, is refused when its turn comes. From this ask on, the lane keeps a scan's records from the walk.
# metab https://github.com/octo/demo --api /api/plugin/github/pulls-prefetch --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pulls-prefetch
status: 202
{
  "prefetch": "started",
  "queued": 2,
  "reason": "self_ceiling",
  "status_route": "/api/plugin/github/pulls-prefetch"
}
after: /api/plugin/github/pulls-prefetch
status: 200
{
  "source": "https://github.com/octo/demo",
  "running": null,
  "queued": [],
  "records": {
    "per_scan": 8,
    "scan": null,
    "scan_used": 0,
    "per_hour": 12,
    "hour_used": 0
  },
  "files": {
    "per_hour": 20,
    "hour_used": 0
  },
  "governor": {
    "floor": 0.25,
    "admits": false,
    "reason": "self_ceiling",
    "held_until": null,
    "observed": {},
    "ceiling": {
      "per_hour": 300,
      "hour_used": 100,
      "speculative_per_hour": 100,
      "speculative_hour_used": 100,
      "prefetch_reserved": 32,
      "walk_hour_used": 100
    }
  },
  "recent": [
    {
      "kind": "files",
      "number": 10,
      "outcome": "refreshed",
      "at": "2026-09-17T14:01:11Z"
    },
    {
      "kind": "files",
      "number": 9,
      "outcome": "deferred:self_ceiling",
      "at": "2026-09-17T14:01:11Z"
    }
  ]
}
--- stderr ---
--- body ---
{"records": [9], "files": [10, 9]}
--- gh ---
## Every REST answer now reports 1,000 of 5,000 core points left, below the 25% floor. Nothing was observed when the lane started, so 9 is read; its answers stop the lane before 106.
# metab https://github.com/octo/demo --api /api/plugin/github/pulls-prefetch --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pulls-prefetch
status: 202
{
  "prefetch": "started",
  "queued": 2,
  "status_route": "/api/plugin/github/pulls-prefetch"
}
after: /api/plugin/github/pulls-prefetch
status: 200
{
  "source": "https://github.com/octo/demo",
  "running": null,
  "queued": [],
  "records": {
    "per_scan": 8,
    "scan": "<CATALOG_EPOCH_1>:2026-09-17T14:01:11Z",
    "scan_used": 1,
    "per_hour": 12,
    "hour_used": 1
  },
  "files": {
    "per_hour": 20,
    "hour_used": 0
  },
  "governor": {
    "floor": 0.25,
    "admits": false,
    "reason": "below_floor",
    "held_until": null,
    "observed": {
      "core": {
        "limit": 5000,
        "remaining": 1000,
        "reset_at": "2026-09-23T16:46:00Z"
      }
    },
    "ceiling": {
      "per_hour": 300,
      "hour_used": 4,
      "speculative_per_hour": 100,
      "speculative_hour_used": 4,
      "prefetch_reserved": 32,
      "walk_hour_used": 0
    }
  },
  "recent": [
    {
      "kind": "record",
      "number": 9,
      "outcome": "refreshed",
      "at": "2026-09-17T14:01:11Z"
    },
    {
      "kind": "record",
      "number": 106,
      "outcome": "deferred:below_floor",
      "at": "2026-09-17T14:01:11Z"
    }
  ]
}
--- stderr ---
--- body ---
{"records": [9, 106]}
--- 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)
## The clock moves on 5 s, to 2026-09-17T14:01:16Z.
## 7 is retitled on GitHub while the budget is that low, and its page's automatic ask probes it. The probe's own answer shows the budget below the floor, and the change it found is read in full all the same: the floor stops the reads the clock asks for, not a change found on the page the reader is looking at.
# metab https://github.com/octo/demo --api /api/plugin/github/pull-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pull-refresh
status: 202
{
  "refresh": "started",
  "pull": {
    "number": 7,
    "state": "current",
    "fetched_at": "2026-09-17T14:01:11Z",
    "verified_at": "2026-09-17T14:01:16Z",
    "verified_by": "catalog",
    "head_moved": false,
    "checks_pending": false
  },
  "status_route": "/api/plugin/github/pull?number=7"
}
after: /api/plugin/github/pull?number=7
status: 200
{
  "number": 7,
  "state": "current",
  "fetched_at": "2026-09-17T14:01:16Z",
  "verified_at": "2026-09-17T14:01:16Z",
  "verified_by": "catalog",
  "head_moved": false,
  "checks_pending": false
}
--- stderr ---
--- body ---
{"number": 7}
--- gh ---
gh api repos/octo/demo/issues?state=all&sort=updated&direction=desc&per_page=1
gh api repos/octo/demo/issues/7
gh api user
gh api repos/octo/demo/pulls/7 (If-None-Match)
gh api repos/octo/demo/issues/7/comments?per_page=100&page=1 (If-None-Match)
gh api repos/octo/demo/pulls/7/comments?per_page=100&page=1 (If-None-Match)
gh api repos/octo/demo/pulls/7/reviews?per_page=100&page=1 (If-None-Match)
gh api user (If-None-Match)
gh api graphql status number=7 cursor=start
## GitHub refuses the catalog's next scan with its rate limit exhausted. The hold it leaves beside the catalog defers any prefetch until it lifts, in this process or another.
## The clock moves on 61 s, to 2026-09-17T14:02:17Z.
# metab https://github.com/octo/demo --api /api/plugin/github/pulls-refresh --data request.json
exit: 1
--- stdout ---
api: /api/plugin/github/pulls-refresh
status: 202
{
  "refresh": "started",
  "pulls": {
    "state": "stale",
    "fetched_at": "2026-09-17T14:01:11Z",
    "reader": "gh:octo-reader"
  },
  "status_route": "/api/plugin/github/pulls?state=open&limit=0",
  "status_scan": "started",
  "status_scan_at": "2026-09-17T14:00:00Z"
}
after: /api/plugin/github/pulls?state=open&limit=0
status: 200
{
  "state": "stale",
  "fetched_at": "2026-09-17T14:01:11Z",
  "reader": "gh:octo-reader",
  "last_refresh": {
    "outcome": "rate_limited",
    "message": "GitHub's API rate limit is exhausted until 2026-09-23T16:46:00Z",
    "reset_at": "2026-09-23T16:46:00Z",
    "at": "2026-09-17T14:02:17Z"
  }
}
--- stderr ---
Error: the refresh ended with rate_limited
--- body ---
{"retry": true}
--- gh ---
gh api user
gh api graphql catalog state=updated cursor=start
gh api graphql statuses cursor=start
gh api graphql statuses cursor=statuses-25
gh api graphql statuses cursor=statuses-50
gh api graphql statuses cursor=statuses-75
# metab https://github.com/octo/demo --api /api/plugin/github/pulls-prefetch --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/pulls-prefetch
status: 200
{
  "prefetch": "deferred",
  "queued": 0,
  "reason": "rate_hold"
}
--- stderr ---
--- body ---
{"records": [106]}
--- gh ---
