{
  "slug": "gh-stack-init-adopts-multiple-branches-and-derives-their-prefix-1450b30dea80",
  "title": "gh-stack init adopts multiple branches and derives their prefix",
  "tools": [
    "gh-stack"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-15T18:05:16.000Z",
  "announced_at": "2026-05-15T18:05:16.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When initializing a stack from multiple existing branches, run `gh stack init <branch1> <branch2> ...`; existing branches are adopted automatically and v0.0.4 derives the prefix from their names.",
    "examples": [
      "gh stack init <branch1> <branch2>"
    ],
    "gotchas": [
      "Version: v0.0.4",
      "branches... (required): One or more branch names, processed in order; existing branches are adopted automatically. For this task, supply multiple names.",
      "--adopt: Deprecated, hidden, but still accepted; existing branches no longer require it to be adopted.",
      "Prerequisite: Install the extension with `gh extension install github/gh-stack`; the README says GitHub CLI (`gh`) must be installed first.",
      "The `--adopt` flag is deprecated and hidden but still accepted.",
      "Docs conflict: Later official docs say automatic prefix detection was removed; branch names with slashes are taken literally. That behavior is newer than v0.0.4 and does not apply to this card's version: https://github.com/github/gh-stack/releases."
    ]
  },
  "why_it_matters": "Initialize a stack from multiple existing branches with a shared prefix.",
  "sources": [
    "https://github.com/github/gh-stack/releases/tag/v0.0.4",
    "https://github.com/github/gh-stack/blob/v0.0.4/README.md"
  ],
  "rank": 0.90033,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "recover-20261008",
    "verdict_id": "recover-20261008:recover-20261008-14eb892d437ccab2-1:gate",
    "evidence_hash": "cd1871dd481144832877146aa291d79906c6bf2d3ef0b23925b29edc2962668b"
  },
  "review": {
    "draft_hash": "7da378daad30b4f632934c0ac95968ee7f482f044d58e1ee078fb0f57ee62353",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "recover-20261008:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.90 >= 0.9; 2 needed) and Jev gave 0.64 (>= 0.6 needed)."
  }
}
