[PR #4243] [MERGED] Adopt staging-first governance and Agent channel alignment #6297

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

📋 Pull Request Information

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

Base: staging ← Head: agent/staging-governance


📝 Commits (7)

  • 584ba22 chore: define staging-first repository governance
  • a3abc39 feat: follow Agent catalog staging channel
  • bbf417c docs: address governance review feedback
  • 5786339 docs: clarify ruleset-backed ownership
  • 67cf024 ci: enforce pull request target policy
  • a4fe09b ci: bind main PRs to trusted branches
  • abe85af ci: reserve outside PR approval for owner

📊 Changes

12 files changed (+226 additions, -44 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 (+11 -5)
📝 README.md (+1 -1)
📝 packages/server/src/config/build-info.ts (+36 -0)
📝 packages/server/src/services/capability-packages/package-manager.service.ts (+48 -9)
📝 scripts/regressions/capability-package-lifecycle.regression.ts (+28 -0)

📄 Description

Closes #4242

Why this change

The repository needs a staging-first contribution boundary that distinguishes Pasta-Devs developers from outside contributors, while Engine staging installations need to consume the matching Marinara-Agents staging channel.

What changed

  • Document the staging-only contribution and owner-only release policy.
  • Configure CodeRabbit, owner Code Ownership, a provenance-aware pull-request target check, and a non-bypassable owner-approval gate for outside and first-time contributors.
  • Ensure required PR checks run for documentation and metadata changes.
  • Make Engine staging select the Marinara-Agents staging catalog and artifacts, while stable builds continue to use main.
  • Add regression coverage for official staging catalog and artifact routing without rewriting custom catalogs.

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 locally.
  • Focused capability-package lifecycle regression completed locally.
  • A real staging catalog artifact was downloaded and its byte size and checksum were verified.
  • Branch-policy positive and rejection 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

  • New Features

    • Staging Engine installations now automatically use matching staging Agent catalogs and artifacts.
    • Stable installations continue using released Agent catalogs.
    • Existing installed Agents are retained during Engine upgrades.
    • Capability artifact links are automatically aligned with the selected release channel.
  • Documentation

    • Clarified contribution, branch, review, and release requirements.
    • Expanded guidance for Agent catalogs, custom imports, and upgrade behavior.
  • Workflow Improvements

    • Added automated checks to enforce supported pull request targeting and review gates.

🔄 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/4243 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/29/2026 **Status:** ✅ Merged **Merged:** 7/29/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/staging-governance` --- ### 📝 Commits (7) - [`584ba22`](https://github.com/Pasta-Devs/Marinara-Engine/commit/584ba22089f27dfb4a4631777b033ae9d9f93975) chore: define staging-first repository governance - [`a3abc39`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a3abc395e1b5388068382255a8bd6ab0e9bbd4b4) feat: follow Agent catalog staging channel - [`bbf417c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bbf417caf776d1a798c798316e8f080ca886dcf2) docs: address governance review feedback - [`5786339`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5786339cf93e749a0e755cbb306ac497b27e89e2) docs: clarify ruleset-backed ownership - [`67cf024`](https://github.com/Pasta-Devs/Marinara-Engine/commit/67cf02428a6298ec7c0ed188b8cc69c9cb42a04f) ci: enforce pull request target policy - [`a4fe09b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a4fe09bbeecf8699dc872f0e4a185030c6b5aceb) ci: bind main PRs to trusted branches - [`abe85af`](https://github.com/Pasta-Devs/Marinara-Engine/commit/abe85affc7d8de860685ae224565597609f7a9c0) ci: reserve outside PR approval for owner ### 📊 Changes **12 files changed** (+226 additions, -44 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` (+11 -5) 📝 `README.md` (+1 -1) 📝 `packages/server/src/config/build-info.ts` (+36 -0) 📝 `packages/server/src/services/capability-packages/package-manager.service.ts` (+48 -9) 📝 `scripts/regressions/capability-package-lifecycle.regression.ts` (+28 -0) </details> ### 📄 Description Closes #4242 ## Why this change The repository needs a staging-first contribution boundary that distinguishes Pasta-Devs developers from outside contributors, while Engine staging installations need to consume the matching Marinara-Agents staging channel. ## What changed - Document the staging-only contribution and owner-only release policy. - Configure CodeRabbit, owner Code Ownership, a provenance-aware pull-request target check, and a non-bypassable owner-approval gate for outside and first-time contributors. - Ensure required PR checks run for documentation and metadata changes. - Make Engine staging select the Marinara-Agents staging catalog and artifacts, while stable builds continue to use main. - Add regression coverage for official staging catalog and artifact routing without rewriting custom catalogs. ## 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 locally. - Focused capability-package lifecycle regression completed locally. - A real staging catalog artifact was downloaded and its byte size and checksum were verified. - Branch-policy positive and rejection 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 * **New Features** * Staging Engine installations now automatically use matching staging Agent catalogs and artifacts. * Stable installations continue using released Agent catalogs. * Existing installed Agents are retained during Engine upgrades. * Capability artifact links are automatically aligned with the selected release channel. * **Documentation** * Clarified contribution, branch, review, and release requirements. * Expanded guidance for Agent catalogs, custom imports, and upgrade behavior. * **Workflow Improvements** * Added automated checks to enforce supported pull request targeting and review gates. <!-- 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:04 +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#6297
No description provided.