## Stack 70 is pending: its guide waits for the members too, since a member not read yet may carry it.
# metab https://github.com/octo/demo --api '/api/plugin/github/guided-review?stack=70'
exit: 0
--- stdout ---
api: /api/plugin/github/guided-review?stack=70
status: 200
{
  "stack": 70,
  "carrier": null,
  "carrier_url": null,
  "record_revision": null,
  "state": "not_cached"
}
--- stderr ---
--- gh ---
## 8 and 10 read, 70 is current: 10, its top, carries a `stack-review` block pinned to the stack's pair, so its guide reads ready, its layers as rows and its file from the stack's Changes; 8's block below it is not the stack's.
# metab https://github.com/octo/demo --api '/api/plugin/github/guided-review?stack=70'
exit: 0
--- stdout ---
api: /api/plugin/github/guided-review?stack=70
status: 200
{
  "stack": 70,
  "carrier": 10,
  "carrier_url": "https://github.com/octo/demo/pull/10",
  "record_revision": "161cdf3eeeedf69a8203fbc796617cc789a010845c45b4a08d405766b45885d4",
  "state": "ready",
  "comparison": {
    "merge_base": "<base>",
    "head": "<draft_head>"
  },
  "step_count": 2,
  "titles": [
    "The layers",
    "The draft"
  ],
  "outline": [
    {
      "kind": "step",
      "step": 1,
      "title": "The layers"
    },
    {
      "kind": "step",
      "step": 2,
      "title": "The draft"
    }
  ],
  "step": 1,
  "group": null,
  "title": "The layers",
  "note": "8 extends the guide; 10 starts a draft on top of it.",
  "note_html": "\n<div><div><p>8 extends the guide; 10 starts a draft on top of it.</p></div></div>",
  "note_refusal": null,
  "group_note_html": null,
  "group_note_refusal": null,
  "references": [
    {
      "kind": "pull",
      "path": null,
      "side": null,
      "start_line": null,
      "end_line": null,
      "pull": 8,
      "commit": null,
      "state": "ready",
      "rendered": null,
      "href": "/pull/8",
      "hunks": [],
      "truncated": false,
      "comparison": null,
      "target": {
        "title": "Say more in the guide",
        "state": "merged",
        "stack": {
          "number": 70,
          "place": 1,
          "count": 2,
          "own": true
        },
        "author": "maintainer",
        "avatar": null
      }
    },
    {
      "kind": "pull",
      "path": null,
      "side": null,
      "start_line": null,
      "end_line": null,
      "pull": 10,
      "commit": null,
      "state": "ready",
      "rendered": null,
      "href": "/pull/10",
      "hunks": [],
      "truncated": false,
      "comparison": null,
      "target": {
        "title": "WIP: draft the next page",
        "state": "draft",
        "stack": {
          "number": 70,
          "place": 2,
          "count": 2,
          "own": true
        },
        "author": "maintainer",
        "avatar": null
      }
    }
  ],
  "assets": {
    "schema_version": "kpress-asset-manifest-v2",
    "assets": [
      {
        "id": "css/style-tokens.css",
        "kind": "package",
        "path": "css/style-tokens.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "8efb2fa07a0a0370",
        "output_path": "css/style-tokens.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/style-tokens.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/syntax.css",
        "kind": "package",
        "path": "css/syntax.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "807cf5be35b5a8dd",
        "output_path": "css/syntax.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/syntax.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/document.css",
        "kind": "package",
        "path": "css/document.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "bc14c4d38a7a4d65",
        "output_path": "css/document.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/document.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/components.css",
        "kind": "package",
        "path": "css/components.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "7c60e6bb7d672589",
        "output_path": "css/components.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/components.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/print.css",
        "kind": "package",
        "path": "css/print.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "8a8f7b928ad6be2f",
        "output_path": "css/print.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/print.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/print-fonts.css",
        "kind": "package",
        "path": "css/print-fonts.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "f4a0751b8416f372",
        "output_path": "css/print-fonts.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/print-fonts.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-400-normal.css",
        "kind": "package",
        "path": "css/mono-planetaire-400-normal.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "9a5f82ca54019902",
        "output_path": "css/mono-planetaire-400-normal.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-400-normal.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-700-normal.css",
        "kind": "package",
        "path": "css/mono-planetaire-700-normal.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "c5232ad5d38dc5a6",
        "output_path": "css/mono-planetaire-700-normal.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-700-normal.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-400-italic.css",
        "kind": "package",
        "path": "css/mono-planetaire-400-italic.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "34bd1d5b7aa5a794",
        "output_path": "css/mono-planetaire-400-italic.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-400-italic.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-700-italic.css",
        "kind": "package",
        "path": "css/mono-planetaire-700-italic.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "8fe04148a6caac2d",
        "output_path": "css/mono-planetaire-700-italic.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-700-italic.css",
        "entry_point": true,
        "loading": "stylesheet"
      }
    ]
  }
}
--- stderr ---
--- gh ---
## Its second step.
# metab https://github.com/octo/demo --api '/api/plugin/github/guided-review?stack=70&step=2'
exit: 0
--- stdout ---
api: /api/plugin/github/guided-review?stack=70&step=2
status: 200
{
  "stack": 70,
  "carrier": 10,
  "carrier_url": "https://github.com/octo/demo/pull/10",
  "record_revision": "161cdf3eeeedf69a8203fbc796617cc789a010845c45b4a08d405766b45885d4",
  "state": "ready",
  "comparison": {
    "merge_base": "<base>",
    "head": "<draft_head>"
  },
  "step_count": 2,
  "titles": [
    "The layers",
    "The draft"
  ],
  "outline": [
    {
      "kind": "step",
      "step": 1,
      "title": "The layers"
    },
    {
      "kind": "step",
      "step": 2,
      "title": "The draft"
    }
  ],
  "step": 2,
  "group": null,
  "title": "The draft",
  "note": "Read the draft whole.",
  "note_html": "\n<div><div><p>Read the draft whole.</p></div></div>",
  "note_refusal": null,
  "group_note_html": null,
  "group_note_refusal": null,
  "references": [
    {
      "kind": "file",
      "path": "docs/draft.md",
      "side": null,
      "start_line": null,
      "end_line": null,
      "pull": null,
      "commit": null,
      "state": "ready",
      "rendered": "markdown",
      "href": "/stack/70/changes/docs/draft.md",
      "hunks": [],
      "truncated": false,
      "comparison": null,
      "target": null
    }
  ],
  "assets": {
    "schema_version": "kpress-asset-manifest-v2",
    "assets": [
      {
        "id": "css/style-tokens.css",
        "kind": "package",
        "path": "css/style-tokens.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "8efb2fa07a0a0370",
        "output_path": "css/style-tokens.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/style-tokens.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/syntax.css",
        "kind": "package",
        "path": "css/syntax.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "807cf5be35b5a8dd",
        "output_path": "css/syntax.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/syntax.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/document.css",
        "kind": "package",
        "path": "css/document.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "bc14c4d38a7a4d65",
        "output_path": "css/document.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/document.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/components.css",
        "kind": "package",
        "path": "css/components.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "7c60e6bb7d672589",
        "output_path": "css/components.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/components.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/print.css",
        "kind": "package",
        "path": "css/print.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "8a8f7b928ad6be2f",
        "output_path": "css/print.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/print.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/print-fonts.css",
        "kind": "package",
        "path": "css/print-fonts.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "f4a0751b8416f372",
        "output_path": "css/print-fonts.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/print-fonts.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-400-normal.css",
        "kind": "package",
        "path": "css/mono-planetaire-400-normal.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "9a5f82ca54019902",
        "output_path": "css/mono-planetaire-400-normal.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-400-normal.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-700-normal.css",
        "kind": "package",
        "path": "css/mono-planetaire-700-normal.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "c5232ad5d38dc5a6",
        "output_path": "css/mono-planetaire-700-normal.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-700-normal.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-400-italic.css",
        "kind": "package",
        "path": "css/mono-planetaire-400-italic.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "34bd1d5b7aa5a794",
        "output_path": "css/mono-planetaire-400-italic.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-400-italic.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-700-italic.css",
        "kind": "package",
        "path": "css/mono-planetaire-700-italic.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "8fe04148a6caac2d",
        "output_path": "css/mono-planetaire-700-italic.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-700-italic.css",
        "entry_point": true,
        "loading": "stylesheet"
      }
    ]
  }
}
--- stderr ---
--- gh ---
## A comparison named by less than its two commits and its key is refused.
# metab https://github.com/octo/demo --api '/api/plugin/github/guided-review?stack=70&left=<base>'
exit: 1
--- stdout ---
api: /api/plugin/github/guided-review?stack=70&left=<base>
status: 400
{
  "error": "a stack's comparison names its two commits and its key",
  "code": "invalid_request"
}
--- stderr ---
Error: /api/plugin/github/guided-review?stack=70&left=<base> returned HTTP 400
--- gh ---
## A step past its last.
# metab https://github.com/octo/demo --api '/api/plugin/github/guided-review?stack=70&step=3'
exit: 0
--- stdout ---
api: /api/plugin/github/guided-review?stack=70&step=3
status: 200
{
  "stack": 70,
  "carrier": 10,
  "carrier_url": "https://github.com/octo/demo/pull/10",
  "record_revision": "161cdf3eeeedf69a8203fbc796617cc789a010845c45b4a08d405766b45885d4",
  "state": "step_not_found"
}
--- stderr ---
--- gh ---
## 10's description renders without the block, as a guide's does.
# metab https://github.com/octo/demo --api '/api/plugin/github/pull-markdown?number=10&part=body'
exit: 0
--- stdout ---
api: /api/plugin/github/pull-markdown?number=10&part=body
status: 200
{
  "number": 10,
  "fetched_at": "2026-09-17T12:00:00Z",
  "record_revision": "161cdf3eeeedf69a8203fbc796617cc789a010845c45b4a08d405766b45885d4",
  "part": "body",
  "html": "\n<div><div><p>Not ready.</p></div></div>",
  "assets": {
    "schema_version": "kpress-asset-manifest-v2",
    "assets": [
      {
        "id": "css/style-tokens.css",
        "kind": "package",
        "path": "css/style-tokens.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "8efb2fa07a0a0370",
        "output_path": "css/style-tokens.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/style-tokens.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/syntax.css",
        "kind": "package",
        "path": "css/syntax.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "807cf5be35b5a8dd",
        "output_path": "css/syntax.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/syntax.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/document.css",
        "kind": "package",
        "path": "css/document.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "bc14c4d38a7a4d65",
        "output_path": "css/document.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/document.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/components.css",
        "kind": "package",
        "path": "css/components.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "7c60e6bb7d672589",
        "output_path": "css/components.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/components.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/print.css",
        "kind": "package",
        "path": "css/print.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "8a8f7b928ad6be2f",
        "output_path": "css/print.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/print.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/print-fonts.css",
        "kind": "package",
        "path": "css/print-fonts.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "f4a0751b8416f372",
        "output_path": "css/print-fonts.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/print-fonts.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-400-normal.css",
        "kind": "package",
        "path": "css/mono-planetaire-400-normal.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "9a5f82ca54019902",
        "output_path": "css/mono-planetaire-400-normal.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-400-normal.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-700-normal.css",
        "kind": "package",
        "path": "css/mono-planetaire-700-normal.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "c5232ad5d38dc5a6",
        "output_path": "css/mono-planetaire-700-normal.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-700-normal.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-400-italic.css",
        "kind": "package",
        "path": "css/mono-planetaire-400-italic.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "34bd1d5b7aa5a794",
        "output_path": "css/mono-planetaire-400-italic.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-400-italic.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-700-italic.css",
        "kind": "package",
        "path": "css/mono-planetaire-700-italic.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "8fe04148a6caac2d",
        "output_path": "css/mono-planetaire-700-italic.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-700-italic.css",
        "entry_point": true,
        "loading": "stylesheet"
      }
    ]
  }
}
--- stderr ---
--- gh ---
## A request that names a pull request and a stack is refused.
# metab https://github.com/octo/demo --api '/api/plugin/github/guided-review?stack=70&number=10'
exit: 1
--- stdout ---
api: /api/plugin/github/guided-review?stack=70&number=10
status: 400
{
  "error": "name a pull request by \"number\" or a stack by \"stack\"",
  "code": "invalid_request"
}
--- stderr ---
Error: /api/plugin/github/guided-review?stack=70&number=10 returned HTTP 400
--- gh ---
## Stack 72 is not linear, so its guide is unavailable, with the stack's reason.
# metab https://github.com/octo/demo --api '/api/plugin/github/guided-review?stack=72'
exit: 0
--- stdout ---
api: /api/plugin/github/guided-review?stack=72
status: 200
{
  "stack": 72,
  "carrier": null,
  "carrier_url": null,
  "record_revision": null,
  "state": "stack_unavailable",
  "reason": "not_linear"
}
--- stderr ---
--- gh ---
## 9 read, 73 is current. Its top, 9, carries no block, so its guide is 8's, below it: pinned to 8's own head, it is out of date, and its file is no longer in the stack's changes, since 9's head lacks 8's.
# metab https://github.com/octo/demo --api '/api/plugin/github/guided-review?stack=73'
exit: 0
--- stdout ---
api: /api/plugin/github/guided-review?stack=73
status: 200
{
  "stack": 73,
  "carrier": 8,
  "carrier_url": "https://github.com/octo/demo/pull/8",
  "record_revision": "f4e61e54ea6acf066c241e6ffb434eadd7188c3de9848c1d4dc3ed3166ba4b25",
  "state": "stale",
  "stale": {
    "guide": {
      "merge_base": "<base>",
      "head": "<merged_head>"
    },
    "current": {
      "merge_base": "<base>",
      "head": "<closed_head>"
    },
    "github_newer": false,
    "history": "rewritten",
    "commit_count": 1,
    "commits": [
      {
        "sha": "<closed_head>",
        "subject": "spam"
      }
    ],
    "changed_paths": [
      "docs/guide.md"
    ],
    "changed_steps": [
      1
    ]
  },
  "comparison": {
    "merge_base": "<base>",
    "head": "<closed_head>"
  },
  "step_count": 1,
  "titles": [
    "The guide"
  ],
  "outline": [
    {
      "kind": "step",
      "step": 1,
      "title": "The guide"
    }
  ],
  "step": 1,
  "group": null,
  "title": "The guide",
  "note": "Check the guide's new line.",
  "note_html": "\n<div><div><p>Check the guide's new line.</p></div></div>",
  "note_refusal": null,
  "group_note_html": null,
  "group_note_refusal": null,
  "references": [
    {
      "kind": "file",
      "path": "docs/guide.md",
      "side": null,
      "start_line": null,
      "end_line": null,
      "pull": null,
      "commit": null,
      "state": "path_not_changed",
      "rendered": null,
      "href": null,
      "hunks": [],
      "truncated": false,
      "comparison": null,
      "target": null
    }
  ],
  "assets": {
    "schema_version": "kpress-asset-manifest-v2",
    "assets": [
      {
        "id": "css/style-tokens.css",
        "kind": "package",
        "path": "css/style-tokens.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "8efb2fa07a0a0370",
        "output_path": "css/style-tokens.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/style-tokens.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/syntax.css",
        "kind": "package",
        "path": "css/syntax.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "807cf5be35b5a8dd",
        "output_path": "css/syntax.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/syntax.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/document.css",
        "kind": "package",
        "path": "css/document.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "bc14c4d38a7a4d65",
        "output_path": "css/document.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/document.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/components.css",
        "kind": "package",
        "path": "css/components.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "7c60e6bb7d672589",
        "output_path": "css/components.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/components.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/print.css",
        "kind": "package",
        "path": "css/print.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "8a8f7b928ad6be2f",
        "output_path": "css/print.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/print.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/print-fonts.css",
        "kind": "package",
        "path": "css/print-fonts.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "f4a0751b8416f372",
        "output_path": "css/print-fonts.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/print-fonts.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-400-normal.css",
        "kind": "package",
        "path": "css/mono-planetaire-400-normal.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "9a5f82ca54019902",
        "output_path": "css/mono-planetaire-400-normal.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-400-normal.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-700-normal.css",
        "kind": "package",
        "path": "css/mono-planetaire-700-normal.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "c5232ad5d38dc5a6",
        "output_path": "css/mono-planetaire-700-normal.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-700-normal.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-400-italic.css",
        "kind": "package",
        "path": "css/mono-planetaire-400-italic.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "34bd1d5b7aa5a794",
        "output_path": "css/mono-planetaire-400-italic.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-400-italic.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-700-italic.css",
        "kind": "package",
        "path": "css/mono-planetaire-700-italic.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "8fe04148a6caac2d",
        "output_path": "css/mono-planetaire-700-italic.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-700-italic.css",
        "entry_point": true,
        "loading": "stylesheet"
      }
    ]
  }
}
--- stderr ---
--- gh ---
## The stack's page, as `--show` reports it: the merge its header shows, its guide, Guided Review as its front page's tab, and Changes at Changes' own address. Its files are its header's Diff summary, so there is no Files tab to show.
# metab https://github.com/octo/demo --show /stack/70
exit: 0
--- stdout ---
show: /stack/70
route: /stack/70
kind: pull-stack
views: pull-stack (default)
model: stack envelope; state=current merge=wip->topic members=8:merged,10:draft files=1 additions=1 deletions=0 in_two_or_more_layers=0 guide=#10 tab=guided comparison_route=/api/plugin/github/stack-comparison?number=70&left=<base>&right=<draft_head>&base_policy=direct&key=ebfe45cd812c6d00f8d4a921576b31d7&build=<BUILD>&store=<STORE>
--- stderr ---
--- gh ---
# metab https://github.com/octo/demo --show /stack/70/changes
exit: 0
--- stdout ---
show: /stack/70/changes
route: /stack/70/changes
kind: pull-stack
views: pull-stack (default)
model: stack envelope; state=current merge=wip->topic members=8:merged,10:draft files=1 additions=1 deletions=0 in_two_or_more_layers=0 guide=#10 tab=changes comparison_route=/api/plugin/github/stack-comparison?number=70&left=<base>&right=<draft_head>&base_policy=direct&key=ebfe45cd812c6d00f8d4a921576b31d7&build=<BUILD>&store=<STORE>
--- stderr ---
--- gh ---
# metab https://github.com/octo/demo --show /stack/70/files
exit: 1
--- stdout ---
--- stderr ---
Error: /stack/70/files is not a route this grammar accepts
--- gh ---
# metab https://github.com/octo/demo --show /stack/70/guided
exit: 0
--- stdout ---
show: /stack/70/guided
route: /stack/70/guided
kind: pull-stack
views: pull-stack (default)
model: stack envelope; state=current merge=wip->topic members=8:merged,10:draft files=1 additions=1 deletions=0 in_two_or_more_layers=0 guide=#10 tab=guided comparison_route=/api/plugin/github/stack-comparison?number=70&left=<base>&right=<draft_head>&base_policy=direct&key=ebfe45cd812c6d00f8d4a921576b31d7&build=<BUILD>&store=<STORE>
--- stderr ---
--- gh ---
## The stack's page at a file, as `--show` reports it: its kind and layers.
# metab https://github.com/octo/demo --show /stack/70/changes/docs/draft.md
exit: 0
--- stdout ---
show: /stack/70/changes/docs/draft.md
route: /stack/70/changes/docs/draft.md
kind: pull-stack
views: pull-stack (default)
model: stack envelope; state=current merge=wip->topic members=8:merged,10:draft files=1 additions=1 deletions=0 in_two_or_more_layers=0 file=docs/draft.md layers=2/2:#10 guide=#10 tab=changes comparison_route=/api/plugin/github/stack-comparison?number=70&left=<base>&right=<draft_head>&base_policy=direct&key=ebfe45cd812c6d00f8d4a921576b31d7&build=<BUILD>&store=<STORE>
--- stderr ---
--- gh ---
## Its guide, asked at the comparison a page still draws, reads as it did there.
# metab https://github.com/octo/demo --api '/api/plugin/github/guided-review?stack=70&step=2&left=<base>&right=<draft_head>&key=ebfe45cd812c6d00f8d4a921576b31d7'
exit: 0
--- stdout ---
api: /api/plugin/github/guided-review?stack=70&step=2&left=<base>&right=<draft_head>&key=ebfe45cd812c6d00f8d4a921576b31d7
status: 200
{
  "stack": 70,
  "carrier": 10,
  "carrier_url": "https://github.com/octo/demo/pull/10",
  "record_revision": "161cdf3eeeedf69a8203fbc796617cc789a010845c45b4a08d405766b45885d4",
  "state": "ready",
  "comparison": {
    "merge_base": "<base>",
    "head": "<draft_head>"
  },
  "step_count": 2,
  "titles": [
    "The layers",
    "The draft"
  ],
  "outline": [
    {
      "kind": "step",
      "step": 1,
      "title": "The layers"
    },
    {
      "kind": "step",
      "step": 2,
      "title": "The draft"
    }
  ],
  "step": 2,
  "group": null,
  "title": "The draft",
  "note": "Read the draft whole.",
  "note_html": "\n<div><div><p>Read the draft whole.</p></div></div>",
  "note_refusal": null,
  "group_note_html": null,
  "group_note_refusal": null,
  "references": [
    {
      "kind": "file",
      "path": "docs/draft.md",
      "side": null,
      "start_line": null,
      "end_line": null,
      "pull": null,
      "commit": null,
      "state": "ready",
      "rendered": "markdown",
      "href": "/stack/70/changes/docs/draft.md",
      "hunks": [],
      "truncated": false,
      "comparison": null,
      "target": null
    }
  ],
  "assets": {
    "schema_version": "kpress-asset-manifest-v2",
    "assets": [
      {
        "id": "css/style-tokens.css",
        "kind": "package",
        "path": "css/style-tokens.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "8efb2fa07a0a0370",
        "output_path": "css/style-tokens.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/style-tokens.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/syntax.css",
        "kind": "package",
        "path": "css/syntax.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "807cf5be35b5a8dd",
        "output_path": "css/syntax.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/syntax.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/document.css",
        "kind": "package",
        "path": "css/document.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "bc14c4d38a7a4d65",
        "output_path": "css/document.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/document.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/components.css",
        "kind": "package",
        "path": "css/components.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "7c60e6bb7d672589",
        "output_path": "css/components.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/components.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/print.css",
        "kind": "package",
        "path": "css/print.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "8a8f7b928ad6be2f",
        "output_path": "css/print.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/print.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/print-fonts.css",
        "kind": "package",
        "path": "css/print-fonts.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "f4a0751b8416f372",
        "output_path": "css/print-fonts.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/print-fonts.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-400-normal.css",
        "kind": "package",
        "path": "css/mono-planetaire-400-normal.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "9a5f82ca54019902",
        "output_path": "css/mono-planetaire-400-normal.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-400-normal.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-700-normal.css",
        "kind": "package",
        "path": "css/mono-planetaire-700-normal.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "c5232ad5d38dc5a6",
        "output_path": "css/mono-planetaire-700-normal.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-700-normal.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-400-italic.css",
        "kind": "package",
        "path": "css/mono-planetaire-400-italic.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "34bd1d5b7aa5a794",
        "output_path": "css/mono-planetaire-400-italic.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-400-italic.css",
        "entry_point": true,
        "loading": "stylesheet"
      },
      {
        "id": "css/mono-planetaire-700-italic.css",
        "kind": "package",
        "path": "css/mono-planetaire-700-italic.css",
        "mode": "hosted",
        "media_type": "text/css",
        "content_hash": "8fe04148a6caac2d",
        "output_path": "css/mono-planetaire-700-italic.css",
        "public_url": "/kpress-static/@e619e63103603bcc/v0.3.11/css/mono-planetaire-700-italic.css",
        "entry_point": true,
        "loading": "stylesheet"
      }
    ]
  }
}
--- stderr ---
--- gh ---
## A comparison the route never gave has moved, as the stack's comparison route says.
# metab https://github.com/octo/demo --api '/api/plugin/github/guided-review?stack=70&step=2&left=<base>&right=<draft_head>&key=00000000000000000000000000000000'
exit: 0
--- stdout ---
api: /api/plugin/github/guided-review?stack=70&step=2&left=<base>&right=<draft_head>&key=00000000000000000000000000000000
status: 200
{
  "stack": 70,
  "carrier": 10,
  "carrier_url": "https://github.com/octo/demo/pull/10",
  "record_revision": "161cdf3eeeedf69a8203fbc796617cc789a010845c45b4a08d405766b45885d4",
  "state": "stack_moved"
}
--- stderr ---
--- gh ---
## 10's author pins its guide to the stack's new pair, and 10 is read again.
# metab https://github.com/octo/demo --api /api/plugin/github/pull-refresh --data ask.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": "<topic>",
    "pin_ref": "refs/remotes/origin/topic",
    "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": "161cdf3eeeedf69a8203fbc796617cc789a010845c45b4a08d405766b45885d4",
    "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=10&left=<topic>&right=<draft_head>&base_policy=merge_base&build=<BUILD>&store=<STORE>",
    "image_route": "/api/plugin/github/pull-image?number=10&left=<topic>&right=<draft_head>&store=<STORE>",
    "rendered_route": "/api/plugin/github/pull-rendered-diff?number=10&left=<topic>&right=<draft_head>&store=<STORE>",
    "size_route": "/api/plugin/github/pull-size?number=10&left=<topic>&right=<draft_head>&store=<STORE>",
    "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.\n\n```stack-review\nsoftschema:\n  contract: metabrowser.collection:Collection/v1\n  envelope: collection\n  status: enforced\ncollection:\n  comparison:\n    merge_base: \"<base>\"\n    head: \"<draft_head>\"\n  items:\n    - title: The layers\n      note: 8 extends the guide; 10 starts a draft on top of it.\n      references:\n        - {pull: 8}\n        - {pull: 10}\n    - title: The draft\n      note: Read the draft whole.\n      references:\n        - {path: docs/draft.md}\n```\n",
        "body_truncated": false,
        "state": "open",
        "draft": true,
        "merged": false,
        "merged_by": null,
        "merged_by_avatar_url": null,
        "commits": 1,
        "merge_commit_sha": null,
        "labels": [
          {
            "name": "bugfix",
            "color": "d73a4a",
            "description": null
          },
          {
            "name": "shared design",
            "color": "0e8a16",
            "description": null
          }
        ],
        "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": "<topic>",
          "repository": "octo/demo"
        },
        "head": {
          "ref": "wip",
          "sha": "<draft_head>",
          "repository": "octo/demo"
        },
        "html_url": "https://github.com/octo/demo/pull/10"
      },
      "issue_comments": [],
      "reviews": [],
      "review_comments": [],
      "comparison": {
        "base": "<topic>",
        "head": "<draft_head>",
        "base_commit": "<topic>",
        "base_from": "base_branch"
      },
      "truncated": {
        "issue_comments": false,
        "reviews": false,
        "review_comments": false,
        "text": false
      },
      "unavailable": {}
    },
    "core_preview": null,
    "repository_labels": [],
    "labels_pending": false,
    "status": {
      "number": 10,
      "head": "<draft_head>",
      "base_ref": "topic",
      "base": "<topic>",
      "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": "<draft_head>",
      "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": "<draft_head>",
      "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": 1371
    }
  },
  "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": "<topic>",
  "pin_ref": "refs/remotes/origin/topic",
  "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": "1df47b5d9e740f6661b862bba5b5dd1800cf45808fa1d70962db322b9563a9f4",
  "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=<topic>&right=<draft_head>&base_policy=merge_base&build=<BUILD>&store=<STORE>",
  "image_route": "/api/plugin/github/pull-image?number=10&left=<topic>&right=<draft_head>&store=<STORE>",
  "rendered_route": "/api/plugin/github/pull-rendered-diff?number=10&left=<topic>&right=<draft_head>&store=<STORE>",
  "size_route": "/api/plugin/github/pull-size?number=10&left=<topic>&right=<draft_head>&store=<STORE>",
  "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/\"2caaa065222c02b5e649ed89f3238bdc52e577a301ad9bbad21fcaa75210ad4d\"",
      "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.\n\n```stack-review\nsoftschema:\n  contract: metabrowser.collection:Collection/v1\n  envelope: collection\n  status: enforced\ncollection:\n  comparison:\n    merge_base: \"<topic>\"\n    head: \"<draft_head>\"\n  items:\n    - title: The layers\n      note: 8 extends the guide; 10 starts a draft on top of it.\n      references:\n        - {pull: 8}\n        - {pull: 10}\n    - title: The draft\n      note: Read the draft whole.\n      references:\n        - {path: docs/draft.md}\n```\n",
      "body_truncated": false,
      "state": "open",
      "draft": true,
      "merged": false,
      "merged_by": null,
      "merged_by_avatar_url": null,
      "commits": 1,
      "merge_commit_sha": null,
      "labels": [
        {
          "name": "bugfix",
          "color": "d73a4a",
          "description": null
        },
        {
          "name": "shared design",
          "color": "0e8a16",
          "description": null
        }
      ],
      "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": "<topic>",
        "repository": "octo/demo"
      },
      "head": {
        "ref": "wip",
        "sha": "<draft_head>",
        "repository": "octo/demo"
      },
      "html_url": "https://github.com/octo/demo/pull/10"
    },
    "issue_comments": [],
    "reviews": [],
    "review_comments": [],
    "comparison": {
      "base": "<topic>",
      "head": "<draft_head>",
      "base_commit": "<topic>",
      "base_from": "base_branch"
    },
    "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 <draft_head>>",
  "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": 1365
  }
}
--- stderr ---
--- gh ---
gh api user
gh api repos/octo/demo/pulls/10 (If-None-Match)
gh api repos/octo/demo/issues/10/comments?per_page=100&page=1 (If-None-Match)
gh api repos/octo/demo/pulls/10/comments?per_page=100&page=1 (If-None-Match)
gh api repos/octo/demo/pulls/10/reviews?per_page=100&page=1 (If-None-Match)
gh api user (If-None-Match)
gh api graphql status number=10 cursor=start
## Its guide, asked at the comparison a page still draws, is pinned past it, so it says the stack has moved, as a comparison the route never gave does.
# metab https://github.com/octo/demo --api '/api/plugin/github/guided-review?stack=70&step=2&left=<base>&right=<draft_head>&key=ebfe45cd812c6d00f8d4a921576b31d7'
exit: 0
--- stdout ---
api: /api/plugin/github/guided-review?stack=70&step=2&left=<base>&right=<draft_head>&key=ebfe45cd812c6d00f8d4a921576b31d7
status: 200
{
  "stack": 70,
  "carrier": 10,
  "carrier_url": "https://github.com/octo/demo/pull/10",
  "record_revision": "1df47b5d9e740f6661b862bba5b5dd1800cf45808fa1d70962db322b9563a9f4",
  "state": "stack_moved"
}
--- stderr ---
--- gh ---
## Last, stack 74 arrives, 7 alone.
# metab https://github.com/octo/demo --api /api/plugin/github/stacks-refresh --data request.json
exit: 0
--- stdout ---
api: /api/plugin/github/stacks-refresh
status: 202
{
  "refresh": "started",
  "stacks": {
    "state": "current",
    "reason": null,
    "source": "https://github.com/octo/demo",
    "reader": "gh:octo-reader",
    "fetched_at": "2026-09-17T12:00:00Z",
    "fresh_for_s": 90.0,
    "refreshing": true,
    "last_refresh": {
      "outcome": "succeeded",
      "message": null,
      "reset_at": null,
      "at": "2026-09-17T12:00:00Z"
    },
    "complete": true,
    "stacks": [
      {
        "number": 70,
        "base_ref": "topic",
        "open": true,
        "pulls": [
          10
        ],
        "titles": [
          "WIP: draft the next page"
        ],
        "authors": [
          "maintainer"
        ],
        "avatars": [
          null
        ],
        "labels": [
          [
            "bugfix",
            "shared design"
          ]
        ],
        "updated_at": "2026-09-16T17:39:01Z",
        "leaders": {}
      },
      {
        "number": 71,
        "base_ref": "topic",
        "open": true,
        "pulls": [
          8,
          7,
          10
        ],
        "titles": [
          "Say more in the guide",
          "Count to two in the app",
          "WIP: draft the next page"
        ],
        "authors": [
          "maintainer",
          "forker",
          "maintainer"
        ],
        "avatars": [
          null,
          null,
          null
        ],
        "labels": [
          [
            "shared design",
            "earnings analysis"
          ],
          [
            "enhancement"
          ],
          [
            "bugfix",
            "shared design"
          ]
        ],
        "updated_at": "2026-09-16T17:39:01Z",
        "leaders": {}
      },
      {
        "number": 72,
        "base_ref": "topic",
        "open": true,
        "pulls": [
          10,
          8
        ],
        "titles": [
          "WIP: draft the next page",
          "Say more in the guide"
        ],
        "authors": [
          "maintainer",
          "maintainer"
        ],
        "avatars": [
          null,
          null
        ],
        "labels": [
          [
            "bugfix",
            "shared design"
          ],
          [
            "shared design",
            "earnings analysis"
          ]
        ],
        "updated_at": "2026-09-16T17:39:01Z",
        "leaders": {}
      },
      {
        "number": 73,
        "base_ref": "topic",
        "open": true,
        "pulls": [
          8,
          9
        ],
        "titles": [
          "Say more in the guide",
          "spam"
        ],
        "authors": [
          "maintainer",
          null
        ],
        "avatars": [
          null,
          null
        ],
        "labels": [
          [
            "shared design",
            "earnings analysis"
          ],
          [
            "invalid"
          ]
        ],
        "updated_at": "2026-09-16T17:39:01Z",
        "leaders": {}
      }
    ]
  },
  "status_route": "/api/plugin/github/stacks"
}
after: /api/plugin/github/stacks
status: 200
{
  "state": "current",
  "reason": null,
  "source": "https://github.com/octo/demo",
  "reader": "gh:octo-reader",
  "fetched_at": "2026-09-17T12:00:00Z",
  "fresh_for_s": 90.0,
  "refreshing": false,
  "last_refresh": {
    "outcome": "succeeded",
    "message": null,
    "reset_at": null,
    "at": "2026-09-17T12:00:00Z"
  },
  "complete": true,
  "stacks": [
    {
      "number": 70,
      "base_ref": "topic",
      "open": true,
      "pulls": [
        10
      ],
      "titles": [
        "WIP: draft the next page"
      ],
      "authors": [
        "maintainer"
      ],
      "avatars": [
        null
      ],
      "labels": [
        [
          "bugfix",
          "shared design"
        ]
      ],
      "updated_at": "2026-09-16T17:39:01Z",
      "leaders": {}
    },
    {
      "number": 71,
      "base_ref": "topic",
      "open": true,
      "pulls": [
        8,
        7,
        10
      ],
      "titles": [
        "Say more in the guide",
        "Count to two in the app",
        "WIP: draft the next page"
      ],
      "authors": [
        "maintainer",
        "forker",
        "maintainer"
      ],
      "avatars": [
        null,
        null,
        null
      ],
      "labels": [
        [
          "shared design",
          "earnings analysis"
        ],
        [
          "enhancement"
        ],
        [
          "bugfix",
          "shared design"
        ]
      ],
      "updated_at": "2026-09-16T17:39:01Z",
      "leaders": {}
    },
    {
      "number": 72,
      "base_ref": "topic",
      "open": true,
      "pulls": [
        10,
        8
      ],
      "titles": [
        "WIP: draft the next page",
        "Say more in the guide"
      ],
      "authors": [
        "maintainer",
        "maintainer"
      ],
      "avatars": [
        null,
        null
      ],
      "labels": [
        [
          "bugfix",
          "shared design"
        ],
        [
          "shared design",
          "earnings analysis"
        ]
      ],
      "updated_at": "2026-09-16T17:39:01Z",
      "leaders": {}
    },
    {
      "number": 73,
      "base_ref": "topic",
      "open": true,
      "pulls": [
        8,
        9
      ],
      "titles": [
        "Say more in the guide",
        "spam"
      ],
      "authors": [
        "maintainer",
        null
      ],
      "avatars": [
        null,
        null
      ],
      "labels": [
        [
          "shared design",
          "earnings analysis"
        ],
        [
          "invalid"
        ]
      ],
      "updated_at": "2026-09-16T17:39:01Z",
      "leaders": {}
    },
    {
      "number": 74,
      "base_ref": "topic",
      "open": true,
      "pulls": [
        7
      ],
      "titles": [
        "Count to two in the app"
      ],
      "authors": [
        "forker"
      ],
      "avatars": [
        null
      ],
      "labels": [
        [
          "enhancement"
        ]
      ],
      "updated_at": "2026-09-16T17:39:01Z",
      "leaders": {}
    }
  ]
}
--- stderr ---
--- gh ---
gh stack --version
gh api user
gh api repos/octo/demo/stacks?per_page=100&page=1 (If-None-Match)
gh api user (If-None-Match)
## 7's description has two `stack-review` blocks, so 74's guide is refused, and says why.
# metab https://github.com/octo/demo --api '/api/plugin/github/guided-review?stack=74'
exit: 0
--- stdout ---
api: /api/plugin/github/guided-review?stack=74
status: 200
{
  "stack": 74,
  "carrier": 7,
  "carrier_url": "https://github.com/octo/demo/pull/7",
  "record_revision": "f704a54a7f7540c879d8976e123b50e4a04323c03bd76a38e993e6c912d84672",
  "state": "invalid",
  "message": "Use one stack-review block in the pull request description."
}
--- stderr ---
--- gh ---
