QA: add pull request template with asset policy and safety checklist #543

Closed
pushkarreddyy wants to merge 2 commits from upstream-pr/543 into main
pushkarreddyy commented 2026-11-24 04:41:56 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-24T04:41:56Z.


Motivation

With a high volume of community contributions and pull requests, establishing a standardized Pull Request template is critical for Quality Assurance and maintaining project integrity.

Crucially, every contributor must be explicitly reminded and asked to certify compliance with Rule #1 (Asset Policy), code formatting with Rust 2024, and // SAFETY: explanations for all unsafe blocks.

Solution

  • Added .github/pull_request_template.md.
  • Includes structured sections for Description, Motivation & Context, Quality Assurance, and mandatory Asset Policy & Safety compliance checklists.

No game files used.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6574768849 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/543). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-24T04:41:56Z. --- ## Motivation With a high volume of community contributions and pull requests, establishing a standardized Pull Request template is critical for Quality Assurance and maintaining project integrity. Crucially, every contributor must be explicitly reminded and asked to certify compliance with **Rule #1 (Asset Policy)**, code formatting with Rust 2024, and `// SAFETY:` explanations for all unsafe blocks. ## Solution - Added `.github/pull_request_template.md`. - Includes structured sections for Description, Motivation & Context, Quality Assurance, and mandatory Asset Policy & Safety compliance checklists. No game files used.
pushkarreddyy commented 2026-11-24 06:55:53 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-24T04:51:52Z.


### Technical Verification & Implementation Details

Context & Architecture

With a high volume of community contributions, establishing a standardized Pull Request template is critical for Quality Assurance and maintaining project integrity. Contributors must be explicitly prompted to verify compliance with Rule #1, code formatting, and safety comments.

Changes & Template Structure

  • Added .github/pull_request_template.md.
  • Sections:
    1. Description & Context
    2. Quality Assurance & Verification (tests and toolchain)
    3. Mandatory Asset Policy & Safety Compliance Checklist:
      • Rule #1: No proprietary game assets, executables, binaries, or long encoded runs.
      • Passes cargo xtask policy.
      • Explicit // SAFETY: comments on all unsafe blocks.

Git Log Line & Verification

ext 83447df QA: add pull request template with asset policy and safety checklist .github/pull_request_template.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)

  • Passes cargo xtask policy (Rule #1 compliance, zero game assets).
  • Formatted with rustfmt --edition 2024.
<!-- greyfinch-sync:Marvisak/VIctory:comment:7122407119 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/543#issuecomment-7122407119). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-24T04:51:52Z. --- ### Technical Verification & Implementation Details #### Context & Architecture With a high volume of community contributions, establishing a standardized Pull Request template is critical for Quality Assurance and maintaining project integrity. Contributors must be explicitly prompted to verify compliance with Rule #1, code formatting, and safety comments. #### Changes & Template Structure - Added `.github/pull_request_template.md`. - Sections: 1. Description & Context 2. Quality Assurance & Verification (tests and toolchain) 3. Mandatory Asset Policy & Safety Compliance Checklist: - Rule #1: No proprietary game assets, executables, binaries, or long encoded runs. - Passes `cargo xtask policy`. - Explicit `// SAFETY:` comments on all `unsafe` blocks. #### Git Log Line & Verification ` ext 83447df QA: add pull request template with asset policy and safety checklist .github/pull_request_template.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) ` - Passes `cargo xtask policy` (Rule #1 compliance, zero game assets). - Formatted with `rustfmt --edition 2024`.
pushkarreddyy commented 2026-11-24 06:56:21 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-24T06:24:39Z.


### Call for Maintainer Review & Merge
Infrastructure and quality assurance improvement:

  • Enforces Rule #1 asset policy and code style consistency across the repository.
  • Non-breaking, zero dependencies on game files.
  • Helps maintainers manage the influx of incoming PRs by automating gates.

@Marvisak: Ready for review and merge when convenient!

<!-- greyfinch-sync:Marvisak/VIctory:comment:7123903812 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/543#issuecomment-7123903812). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-24T06:24:39Z. --- ### Call for Maintainer Review & Merge Infrastructure and quality assurance improvement: - Enforces Rule #1 asset policy and code style consistency across the repository. - Non-breaking, zero dependencies on game files. - Helps maintainers manage the influx of incoming PRs by automating gates. @Marvisak: Ready for review and merge when convenient!
mercuryVM commented 2026-11-24 08:02:24 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T07:27:00Z.

Review: COMMENTED


Read only, not built: a PR template file. The workspace builds and tests at 83447df (264 passed, 0 failed) on Windows 11, RTX 5070, MSVC.

  • .github/pull_request_template.md is only a Markdown template GitHub pre-fills. No workflow and nothing executable.
  • One wording fix: cargo fmt --edition 2024 is not a cargo fmt flag, which takes rustfmt options after --. The workspace edition is already 2024 in Cargo.toml (and in rustfmt.toml if #547 lands), so the checkbox should just say "Formatted with cargo fmt". As written, it suggests a command that fails.
  • Since cargo fmt --all --check already fails on main, "formatted" probably needs to mean "the changed lines". Saying so would keep contributors from reformatting untouched files.

AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:review:6035248034 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/543#pullrequestreview-6035248034). Originally posted by [mercuryVM](https://github.com/mercuryVM) on 2026-11-24T07:27:00Z. **Review:** COMMENTED --- Read only, not built: a PR template file. The workspace builds and tests at 83447df (264 passed, 0 failed) on Windows 11, RTX 5070, MSVC. - `.github/pull_request_template.md` is only a Markdown template GitHub pre-fills. No workflow and nothing executable. - One wording fix: `cargo fmt --edition 2024` is not a `cargo fmt` flag, which takes rustfmt options after `--`. The workspace edition is already 2024 in `Cargo.toml` (and in `rustfmt.toml` if #547 lands), so the checkbox should just say "Formatted with `cargo fmt`". As written, it suggests a command that fails. - Since `cargo fmt --all --check` already fails on main, "formatted" probably needs to mean "the changed lines". Saying so would keep contributors from reformatting untouched files. AI-assisted (Claude Code).
pushkarreddyy commented 2026-11-24 08:02:50 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-24T07:31:10Z.


Thanks for the suggestion @mercuryVM!

Updated the checkbox in commit c9e5db8 to:
- [ ] Formatted changed lines with cargo fmt

This avoids suggesting an invalid CLI flag and clarifies that only changed lines need formatting.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7125079429 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/543#issuecomment-7125079429). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-24T07:31:10Z. --- Thanks for the suggestion @mercuryVM! Updated the checkbox in commit `c9e5db8` to: `- [ ] Formatted changed lines with `cargo fmt` ` This avoids suggesting an invalid CLI flag and clarifies that only changed lines need formatting.
mercuryVM commented 2026-11-24 10:03:17 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T09:20:08Z.

Review: APPROVED


Re-checked c9e5db8 (read only, template text). The checkbox now says "Formatted changed lines with cargo fmt", which fixes the command cargo rejects and matches the reality that main isn't fully formatted. Approving.

AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:review:6036577157 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/543#pullrequestreview-6036577157). Originally posted by [mercuryVM](https://github.com/mercuryVM) on 2026-11-24T09:20:08Z. **Review:** APPROVED --- Re-checked c9e5db8 (read only, template text). The checkbox now says "Formatted changed lines with `cargo fmt`", which fixes the command `cargo` rejects and matches the reality that `main` isn't fully formatted. Approving. AI-assisted (Claude Code).
catminou4 commented 2026-11-24 13:01:34 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T12:46:09Z.

Review: APPROVED


Good template — it encodes the repo's actual rules rather than generic boilerplate: the asset-policy check (cargo xtask policy), the // SAFETY: requirement for unsafe blocks, and the toolchain verification step all match how this workspace operates. The HTML-comment hints keep it usable for both humans and agents.

<!-- greyfinch-sync:Marvisak/VIctory:review:6039426426 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/543#pullrequestreview-6039426426). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-24T12:46:09Z. **Review:** APPROVED --- Good template — it encodes the repo's actual rules rather than generic boilerplate: the asset-policy check (`cargo xtask policy`), the `// SAFETY:` requirement for `unsafe` blocks, and the toolchain verification step all match how this workspace operates. The HTML-comment hints keep it usable for both humans and agents.
upstream-sync closed this pull request 2026-11-25 01:04:09 +00:00
Marvisak commented 2026-11-25 01:07:44 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:24:33Z.


Automated triage for the maintainers. Closing because another open pull request covers the same change.

See #113. A PR template only; #113 carries a shorter one that also asks what was tested and whether an AI wrote the change.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148478648 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/543#issuecomment-7148478648). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:24:33Z. --- Automated triage for the maintainers. Closing because another open pull request covers the same change. See #113. A PR template only; #113 carries a shorter one that also asks what was tested and whether an AI wrote the change. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
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.

Reference
Marvisak/VIctory!543
No description provided.