[PR #204] [MERGED] fix(ci): restore automatic member approval status #853

Closed
opened 2026-10-20 17:31:38 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/204
Author: @SpicyMarinara
Created: 8/2/2026
Status: ✅ Merged
Merged: 8/2/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/restore-member-approval-status


📝 Commits (2)

  • edf21d6 fix(ci): restore member approval status
  • 995ee2b fix(ci): harden approval review refresh

📊 Changes

7 files changed (+522 additions, -6 deletions)

View changed files

➕ .github/workflows/owner-approval-review-signal.yml (+15 -0)
➕ .github/workflows/owner-approval-review.yml (+73 -0)
📝 .github/workflows/pull-request-checks.yml (+3 -0)
📝 .github/workflows/pull-request-triage.yml (+29 -0)
➕ scripts/evaluate-owner-approval.mjs (+153 -0)
➕ scripts/test-owner-approval.mjs (+186 -0)
📝 scripts/validate-pr-triage.mjs (+63 -6)

📄 Description

Linked issue

Closes #203

Why this change

The native staging Code Owner rule leaves Pasta-Devs members in a review-required state and only offers a manual ruleset bypass. Member and owner pull requests should receive a successful status automatically, while outside contributors should still require SpicyMarinara's approval.

What changed

  • Publish a token-backed Owner approval for outside contributors commit status from trusted staging code.
  • Treat active Pasta-Devs member and admin organization roles as internal contributors.
  • Fail closed for missing or invalid membership credentials and for outside contributors without a current SpicyMarinara approval.
  • Refresh the status after review activity through a permissionless signal and a trusted default-branch evaluator.
  • Add topology validation and evaluator regression coverage.
  • Restore the existing status as a required staging quality gate and disable the conflicting native staging Code Owner rule.

Package and security impact

  • Affected package IDs: none
  • Engine compatibility impact: none
  • New or changed permissions/entrypoints: CI receives statuses: write; the review signal has no permissions or secrets
  • Restart, storage, update, or uninstall impact: none

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Catalog lane, catalog validation, policy topology, evaluator regression, and whitespace checks were run locally.
  • The staging quality ruleset now requires Owner approval for outside contributors; the native staging Code Owner ruleset is disabled.
  • Existing open Pasta-Devs member PRs have a successful owner-approval check and no longer require the native ruleset bypass.
  • Manually verify an outside contributor remains blocked until SpicyMarinara approves the current head commit.
  • Promote the trusted review evaluator to the default branch before relying on review-event refreshes.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

Not applicable; CI policy only.

Summary by CodeRabbit

  • New Features

    • Added automated owner-approval checks for pull requests targeting staging.
    • Re-evaluates approval status when reviews are submitted, edited, or dismissed.
    • Publishes approval status for the current pull request commit.
  • Bug Fixes

    • Prevents stale approvals and missing membership information from being treated as valid.
  • Tests

    • Added coverage for approval, membership, token, and review-status scenarios.
    • Expanded workflow validation for trusted approval processing.

🔄 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-Agents/pull/204 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/2/2026 **Status:** ✅ Merged **Merged:** 8/2/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/restore-member-approval-status` --- ### 📝 Commits (2) - [`edf21d6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/edf21d6f1811b0ef5b104fb3d65d32c64fb25888) fix(ci): restore member approval status - [`995ee2b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/995ee2bca67a4ef3e70a5831cedc0e31fbd7144d) fix(ci): harden approval review refresh ### 📊 Changes **7 files changed** (+522 additions, -6 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/owner-approval-review-signal.yml` (+15 -0) ➕ `.github/workflows/owner-approval-review.yml` (+73 -0) 📝 `.github/workflows/pull-request-checks.yml` (+3 -0) 📝 `.github/workflows/pull-request-triage.yml` (+29 -0) ➕ `scripts/evaluate-owner-approval.mjs` (+153 -0) ➕ `scripts/test-owner-approval.mjs` (+186 -0) 📝 `scripts/validate-pr-triage.mjs` (+63 -6) </details> ### 📄 Description ## Linked issue Closes #203 ## Why this change The native staging Code Owner rule leaves Pasta-Devs members in a review-required state and only offers a manual ruleset bypass. Member and owner pull requests should receive a successful status automatically, while outside contributors should still require SpicyMarinara's approval. ## What changed - Publish a token-backed `Owner approval for outside contributors` commit status from trusted staging code. - Treat active Pasta-Devs `member` and `admin` organization roles as internal contributors. - Fail closed for missing or invalid membership credentials and for outside contributors without a current SpicyMarinara approval. - Refresh the status after review activity through a permissionless signal and a trusted default-branch evaluator. - Add topology validation and evaluator regression coverage. - Restore the existing status as a required staging quality gate and disable the conflicting native staging Code Owner rule. ## Package and security impact - Affected package IDs: none - Engine compatibility impact: none - New or changed permissions/entrypoints: CI receives `statuses: write`; the review signal has no permissions or secrets - Restart, storage, update, or uninstall impact: none ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Catalog lane, catalog validation, policy topology, evaluator regression, and whitespace checks were run locally. - The staging quality ruleset now requires `Owner approval for outside contributors`; the native staging Code Owner ruleset is disabled. - Existing open Pasta-Devs member PRs have a successful owner-approval check and no longer require the native ruleset bypass. - Manually verify an outside contributor remains blocked until SpicyMarinara approves the current head commit. - Promote the trusted review evaluator to the default branch before relying on review-event refreshes. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) Not applicable; CI policy only. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added automated owner-approval checks for pull requests targeting staging. - Re-evaluates approval status when reviews are submitted, edited, or dismissed. - Publishes approval status for the current pull request commit. - **Bug Fixes** - Prevents stale approvals and missing membership information from being treated as valid. - **Tests** - Added coverage for approval, membership, token, and review-status scenarios. - Expanded workflow validation for trusted approval processing. <!-- 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-20 17:31:38 +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-Agents#853
No description provided.