[PR #1770] [MERGED] Harden workflow metadata naming #5271

Closed
opened 2026-10-22 04:14:48 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1770
Author: @Xelvanis
Created: 6/1/2026
Status: ✅ Merged
Merged: 6/1/2026
Merged by: @Xelvanis

Base: refactor ← Head: docs/harden-workflow-naming


📝 Commits (1)

  • 51430a1 Harden workflow metadata naming

📊 Changes

7 files changed (+58 additions, -8 deletions)

View changed files

📝 .github/agents/chai-workflow.md (+1 -0)
📝 .github/workflows/ci.yml (+6 -0)
📝 AGENTS.md (+1 -0)
📝 package.json (+1 -0)
➕ scripts/check-workflow-names.mjs (+40 -0)
📝 skills/marinara-agent-workflow/references/workflows/review-and-pr.md (+8 -7)
📝 src/shared/api/llm-api.ts (+1 -1)

📄 Description

Linked issue

N/A

Why this change

AI authoring tool names were still able to leak into branch names and PR titles even after guidance discouraged them. This hardens the workflow rules and adds a PR metadata check so bad names fail before expensive CI work runs.

What changed

  • Added repo guidance forbidding AI/tool/provider self-naming in branch, commit, PR, issue, trailer, and release metadata.
  • Added a Review and PR workflow gate to check branch, commit, trailer, and PR metadata before shipping.
  • Mirrored the rule in the GitHub-facing workflow overlay.
  • Added scripts/check-workflow-names.mjs plus pnpm check:workflow-names.
  • Wired CI to run the workflow metadata name check for pull requests using the PR title and source branch.
  • Removed an unused export from the Tauri stream terminal cleanup grace constant.

Refactor impact

Primary owner:

  • Repo workflow guidance and CI checks

Impact areas reviewed:

  • Root agent guidance
  • Repo-local Marinara review/PR workflow
  • GitHub-facing workflow overlay
  • Frontend CI job setup
  • Shared API export surface for the unused-code cleanup

Boundary notes:

  • No engine, feature, shared API adapter behavior, Rust command, or remote-runtime behavior changed. The llm-api.ts cleanup only changes a file-local constant from exported to non-exported.

Pressure points touched:

  • None

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • pnpm check passes locally before PR push/handoff, including the unused-code check
  • pnpm typecheck passes locally
  • pnpm build passes locally
  • pnpm check:architecture passes locally
  • pnpm check:docs passes locally
  • cargo check --manifest-path src-tauri/Cargo.toml --workspace passes locally
  • Rust clippy/tests were run for Rust behavior changes
  • Browser or Tauri app manual verification completed
  • Browser screenshot/recording evidence added when UI/browser state is the claim
  • Remote runtime smoke checked when relevant

Manual verification notes

  • PR_TITLE='Harden workflow naming rules' PR_HEAD_REF='docs/harden-workflow-naming' pnpm check:workflow-names passed.
  • PR_TITLE='Codex: harden workflow names' PR_HEAD_REF='codex/harden-workflow-names' pnpm check:workflow-names failed as expected with exit code 1.
  • pnpm lint passed with warnings in untouched files; tracked separately in the local chore queue.
  • pnpm check passed locally.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • This PR changes contributor/CI workflow metadata checks only and does not add a user-facing app feature.

Docs and release impact

  • No docs changes needed
  • Updated README.md
  • Updated CONTRIBUTING.md
  • Updated docs/developer/
  • Updated repo skills or AGENTS.md
  • Confirmed this PR does not restore old staging/package-workspace/release claims

Repo skills and AGENTS.md were updated. No release notes are needed because this is contributor workflow guidance and CI wiring only.

UI evidence

N/A


🔄 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/1770 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 6/1/2026 **Status:** ✅ Merged **Merged:** 6/1/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `docs/harden-workflow-naming` --- ### 📝 Commits (1) - [`51430a1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/51430a176b26533789a36eeb684af792c30c21a8) Harden workflow metadata naming ### 📊 Changes **7 files changed** (+58 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `.github/agents/chai-workflow.md` (+1 -0) 📝 `.github/workflows/ci.yml` (+6 -0) 📝 `AGENTS.md` (+1 -0) 📝 `package.json` (+1 -0) ➕ `scripts/check-workflow-names.mjs` (+40 -0) 📝 `skills/marinara-agent-workflow/references/workflows/review-and-pr.md` (+8 -7) 📝 `src/shared/api/llm-api.ts` (+1 -1) </details> ### 📄 Description ## Linked issue N/A ## Why this change AI authoring tool names were still able to leak into branch names and PR titles even after guidance discouraged them. This hardens the workflow rules and adds a PR metadata check so bad names fail before expensive CI work runs. ## What changed - Added repo guidance forbidding AI/tool/provider self-naming in branch, commit, PR, issue, trailer, and release metadata. - Added a Review and PR workflow gate to check branch, commit, trailer, and PR metadata before shipping. - Mirrored the rule in the GitHub-facing workflow overlay. - Added `scripts/check-workflow-names.mjs` plus `pnpm check:workflow-names`. - Wired CI to run the workflow metadata name check for pull requests using the PR title and source branch. - Removed an unused export from the Tauri stream terminal cleanup grace constant. ## Refactor impact Primary owner: - Repo workflow guidance and CI checks Impact areas reviewed: - Root agent guidance - Repo-local Marinara review/PR workflow - GitHub-facing workflow overlay - Frontend CI job setup - Shared API export surface for the unused-code cleanup Boundary notes: - No engine, feature, shared API adapter behavior, Rust command, or remote-runtime behavior changed. The `llm-api.ts` cleanup only changes a file-local constant from exported to non-exported. Pressure points touched: - None ## Validation - [x] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [ ] `pnpm check` passes locally before PR push/handoff, including the unused-code check - [ ] `pnpm typecheck` passes locally - [ ] `pnpm build` passes locally - [ ] `pnpm check:architecture` passes locally - [ ] `pnpm check:docs` passes locally - [ ] `cargo check --manifest-path src-tauri/Cargo.toml --workspace` passes locally - [ ] Rust clippy/tests were run for Rust behavior changes - [ ] Browser or Tauri app manual verification completed - [ ] Browser screenshot/recording evidence added when UI/browser state is the claim - [ ] Remote runtime smoke checked when relevant ### Manual verification notes - `PR_TITLE='Harden workflow naming rules' PR_HEAD_REF='docs/harden-workflow-naming' pnpm check:workflow-names` passed. - `PR_TITLE='Codex: harden workflow names' PR_HEAD_REF='codex/harden-workflow-names' pnpm check:workflow-names` failed as expected with exit code 1. - `pnpm lint` passed with warnings in untouched files; tracked separately in the local chore queue. - `pnpm check` passed locally. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [x] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - This PR changes contributor/CI workflow metadata checks only and does not add a user-facing app feature. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated `README.md` - [ ] Updated `CONTRIBUTING.md` - [ ] Updated `docs/developer/` - [x] Updated repo skills or `AGENTS.md` - [x] Confirmed this PR does not restore old staging/package-workspace/release claims Repo skills and `AGENTS.md` were updated. No release notes are needed because this is contributor workflow guidance and CI wiring only. ## UI evidence N/A --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:14:48 +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#5271
No description provided.