Skip to content
This repository was archived by the owner on Sep 9, 2026. It is now read-only.

chore: enforce native stacked pull requests - #2

Merged
aletty merged 1 commit into
masterfrom
codex/stack-policy-v1
Sep 9, 2026
Merged

chore: enforce native stacked pull requests#2
aletty merged 1 commit into
masterfrom
codex/stack-policy-v1

Conversation

@aletty

@aletty aletty commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Dependent changes now use native GitHub stacks, while focused independent changes may use a standalone PR. Add shared Codex instructions, dependency declarations, a trusted metadata-only Stack policy controller, and the stack workflow runbook.

The controller validates native membership, immediate parents and ancestry, and rechecks open PRs after changes. It never checks out PR code. Branch protection is activated only after this setup lands and the controller succeeds.

Validation: policy unit and mocked-controller tests passed locally; existing repository CI must pass before merge.

Depends on: none

@aletty
aletty marked this pull request as ready for review September 9, 2026 01:13
@aletty
aletty merged commit 279465b into master Sep 9, 2026
@aletty
aletty deleted the codex/stack-policy-v1 branch September 9, 2026 01:13
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-09T01:18:37.121385Z 465b9cd Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 465b9cd97f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread docs/stacked-prs.md

## Merge

Wait for checks and existing merge authorization. Verify the exact target and its unmerged predecessors. Use `gh stack merge <PR-number> --yes` with an explicit allowed merge method; targeting an upper layer includes lower layers. Verify the asynchronous result on GitHub. After bottom-layer merge, verify automatic retargeting and rebase, update the new bottom's dependency to `none`, and sync locally. Do not bypass protection.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include the merge strategy in the runbook command

When an operator follows this runbook in a repository using squash merges, the example passes only --yes even though the same sentence requires an explicit allowed merge method. This contradicts the repository's canonical gh stack merge <PR-number> --yes --squash example and leaves the copyable command without the required strategy; add the appropriate method flag here.

AGENTS.md reference: AGENTS.md:L9-L9

Useful? React with 👍 / 👎.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant