[PR #4245] [MERGED] Publish staging-first repository governance to main #6299

Closed
opened 2026-10-23 04:09:05 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4245
Author: @SpicyMarinara
Created: 7/29/2026
Status: ✅ Merged
Merged: 7/29/2026
Merged by: @SpicyMarinara

Base: main ← Head: agent/main-governance


📝 Commits (6)

  • 1fc4658 chore: define staging-first repository governance
  • 6ee6a21 docs: address governance review feedback
  • 1f9a5ce docs: keep runtime claims on staging
  • 3e7d160 ci: enforce pull request target policy
  • 68b967f ci: bind main PRs to trusted branches
  • 34abc75 ci: reserve outside PR approval for owner

📊 Changes

8 files changed (+111 additions, -34 deletions)

View changed files

➕ .coderabbit.yaml (+18 -0)
➕ .github/CODEOWNERS (+3 -0)
📝 .github/agents/chai-workflow.md (+1 -0)
📝 .github/pull_request_template.md (+3 -2)
📝 .github/workflows/pull-request-checks.yml (+1 -27)
📝 .github/workflows/pull-request-triage.yml (+74 -0)
📝 AGENTS.md (+2 -0)
📝 CONTRIBUTING.md (+9 -5)

📄 Description

Closes #4242

Why this change

The default branch must publish the same contributor policy and review configuration now enforced on staging, without promoting unrelated unreleased staging features.

What changed

  • Publish the staging-only contribution and owner-only release policy on the default branch.
  • Configure CodeRabbit, owner Code Ownership, and a non-bypassable owner-approval gate for outside and first-time staging contributors.
  • Ensure required PR checks run for documentation and metadata changes.
  • Add a provenance-aware branch policy check: normal main promotions must come from this repository's staging branch, while owner emergency work must use a same-repository hotfix/* branch.

This PR intentionally contains governance and configuration only. The Engine runtime channel implementation remains on staging until the normal release promotion.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • pnpm check completed on the staging implementation.
  • Branch-policy promotion, hotfix, fork-rejection, actor-rejection, and wrong-base paths were exercised locally.\n- Owner-approval behavior was exercised across internal, outside, other-reviewer, stale-approval, and current-owner-approval cases.
  • GitHub CI and CodeRabbit review are required before merge.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] <paths> follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

Summary by CodeRabbit

  • Documentation

    • Clarified contribution guidelines, branch usage, pull request targets, review requirements, and merge rules.
    • Updated pull request templates and workflow guidance with clearer staging and production promotion policies.
  • Chores

    • Added automated review configuration and repository ownership rules.
    • Expanded pull request checks to run on key activity events.
    • Added branch-policy validation to help enforce approved contribution and promotion paths.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/4245 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/29/2026 **Status:** ✅ Merged **Merged:** 7/29/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `agent/main-governance` --- ### 📝 Commits (6) - [`1fc4658`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1fc46585b268907aa551b914caed614c1a140875) chore: define staging-first repository governance - [`6ee6a21`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6ee6a2121a1e12ce77b29a5177af4083ac59e161) docs: address governance review feedback - [`1f9a5ce`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1f9a5ce166e66766a84752bfc3ecb3ce23776aa3) docs: keep runtime claims on staging - [`3e7d160`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3e7d1605367b5a3e2d0c4a89be5603549ac80f07) ci: enforce pull request target policy - [`68b967f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/68b967f90a7dee006804e3a9360ba80bc65bb480) ci: bind main PRs to trusted branches - [`34abc75`](https://github.com/Pasta-Devs/Marinara-Engine/commit/34abc75f9527d44489aa092b8b43e476b45f80b2) ci: reserve outside PR approval for owner ### 📊 Changes **8 files changed** (+111 additions, -34 deletions) <details> <summary>View changed files</summary> ➕ `.coderabbit.yaml` (+18 -0) ➕ `.github/CODEOWNERS` (+3 -0) 📝 `.github/agents/chai-workflow.md` (+1 -0) 📝 `.github/pull_request_template.md` (+3 -2) 📝 `.github/workflows/pull-request-checks.yml` (+1 -27) 📝 `.github/workflows/pull-request-triage.yml` (+74 -0) 📝 `AGENTS.md` (+2 -0) 📝 `CONTRIBUTING.md` (+9 -5) </details> ### 📄 Description Closes #4242 ## Why this change The default branch must publish the same contributor policy and review configuration now enforced on staging, without promoting unrelated unreleased staging features. ## What changed - Publish the staging-only contribution and owner-only release policy on the default branch. - Configure CodeRabbit, owner Code Ownership, and a non-bypassable owner-approval gate for outside and first-time staging contributors. - Ensure required PR checks run for documentation and metadata changes. - Add a provenance-aware branch policy check: normal main promotions must come from this repository's staging branch, while owner emergency work must use a same-repository hotfix/* branch. This PR intentionally contains governance and configuration only. The Engine runtime channel implementation remains on staging until the normal release promotion. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - `pnpm check` completed on the staging implementation. - Branch-policy promotion, hotfix, fork-rejection, actor-rejection, and wrong-base paths were exercised locally.\n- Owner-approval behavior was exercised across internal, outside, other-reviewer, stale-approval, and current-owner-approval cases. - GitHub CI and CodeRabbit review are required before merge. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n] <paths>` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Clarified contribution guidelines, branch usage, pull request targets, review requirements, and merge rules. * Updated pull request templates and workflow guidance with clearer staging and production promotion policies. * **Chores** * Added automated review configuration and repository ownership rules. * Expanded pull request checks to run on key activity events. * Added branch-policy validation to help enforce approved contribution and promotion paths. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:09:05 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#6299
No description provided.