Skip to content

fix(pr-gate): read default branch metadata contract - #6

Merged
autogame-17 merged 1 commit into
mainfrom
claude/pr-gate-default-branch-contract-20260805
Aug 5, 2026
Merged

fix(pr-gate): read default branch metadata contract#6
autogame-17 merged 1 commit into
mainfrom
claude/pr-gate-default-branch-contract-20260805

Conversation

@autogame-17

Copy link
Copy Markdown
Contributor

Touches hot-path: no
Phase: fix
Risk vector: forward

Summary

Re-syncs evolver-cursor-plugin's installed pr metadata policy workflow with the upstream default-branch-contract fix. PR events now checkout the base repository's default branch contract instead of a PR base branch that may be a stale feature branch.

Scope and cuts

Nothing cut. This PR changes only the installed pr-gate workflow so the metadata gate can later become a required check even with old stacked PRs. It does not change branch protection itself.

Module boundary

Repository governance only: .github/workflows/pr-metadata-policy.yml. No product code, runtime path, schema, deployment, package manifest, validator, or PR template is touched.

Alternative considered

Keep reading the PR base branch and require every stacked feature base to be rebased after the gate rollout. Rejected because required checks must work for old PRs and absent owners; the default-branch repository contract is the contract branch protection promotes.

Validation

Body validated against this repository's PR metadata validator before PR creation. Workflow content compared against the fixed upstream canonical workflow. The upstream source PR passed pr-gate unit tests, bootstrap tests, scaffold validation, and sample workflow byte-identity checks.

Rollback / recovery

Revert this PR to restore the prior installed workflow. If pr metadata policy has been made required, remove it from branch protection before reverting or old stacked PRs can become blocked again.

🤖 Generated with Claude Code

Sync evolver-cursor-plugin with engineering-operating-system#20. The metadata gate still uses pull_request_target and never checks out PR-head code, but PR events now checkout the base repository default branch instead of a possibly stale stacked-PR base branch.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@autogame-17
autogame-17 merged commit 0fab93b into main Aug 5, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant