gh-stack
Native PR stacks
Use GitHub's native stack membership and actual PR base refs as authority. A stack comment is not native membership. This framework is adapted from the maintained Parcha gh-stack skill at 37fc1a0a24d374abda3c136a36b6d5998c9ff1ea, whose upstream metadata names github/gh-stack v0.1.0. Verify the installed CLI's version, help and implementation for the operation; the command's side effects vary by version. Use ship for proof, approval and landing policy.
Inspect and own
Read native membership, dependency order, trunk, each full head/base/merge-base and state. Resolve a bare number as the installed CLI does: v0.1.0 tries stack number before PR number. Confirm the command selects exactly the authorized PRs and their unmerged ancestors. Merged ancestors are historical members, not work to recreate. Closed unmerged members need an explicit resolution, never silent removal. More than one parent/child or ambiguous membership is a graph problem to resolve before mutation.