{
  "slug": "glab-stack-infer-creates-layers-from-a-commit-range-f3a6d50d6491",
  "title": "glab stack infer creates layers from a commit range",
  "tools": [
    "glab"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-27T16:32:35.677Z",
  "announced_at": "2026-05-27T16:32:35.677Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When you need to create stack layers from commits in a range, run `glab stack infer <revision-range>`; the command opens an editor to select commits and creates a diff for each selected commit. The start of the range must be a branch name, not a relative ref such as `HEAD~5`.",
    "examples": [
      "glab stack infer main..HEAD",
      "glab stack infer --name feature-stack main..HEAD"
    ],
    "gotchas": [
      "Version: v1.100.0",
      "<revision-range> (required): Commit range; start must be a branch name, not a relative ref such as `HEAD~5`.",
      "-n, --name <string>: Name for the new stack when creating one.",
      "-R, --repo <string>: Select another repository by OWNER/REPO, GROUP/NAMESPACE/REPO, full URL, or Git URL.",
      "Prerequisite: `glab stack` is experimental and may be unstable or removed.",
      "The command operates on a commit range."
    ]
  },
  "why_it_matters": "Create stack layers from a range of commits in a repository.",
  "sources": [
    "https://gitlab.com/gitlab-org/cli/-/releases/v1.100.0",
    "https://docs.gitlab.com/ja-jp/cli/stack/infer/",
    "https://docs.gitlab.com/cli/stack/"
  ],
  "rank": 0.90034,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-5e5b5ed48bcadf3b-4:gate",
    "evidence_hash": "8dca3e63256812247373a46ab1dfdd0cf661deeeffe096447f05bf80a6bc4465"
  },
  "review": {
    "draft_hash": "db1059bee4b65e8ec04dfc7f7cbffa315833e78f1ff20bf92a8b325a29fb53a7",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.90 >= 0.9; 2 needed) and Jev gave 0.69 (>= 0.6 needed)."
  }
}
