mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 03:39:52 +00:00
docs: establish contribution and repository policies
Signed-off-by: Ranveer Soni <git@ranveersoni.me>
This commit is contained in:
14 files changed
+348
-25
No files matched your search
@@ -0,0 +1,18 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[*.{rs,c,cc,cpp,h,hpp,metal,swift}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
[*.{yml,yaml,json}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.md]
|
||||||
|
trim_trailing_whitespace = false
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
name: Bug report
|
||||||
|
description: Report a reproducible defect in Xenora or XenoMetal.
|
||||||
|
title: "bug: "
|
||||||
|
labels: [bug]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Use synthetic or authorized inputs only. For vulnerabilities, follow SECURITY.md. Remove personal paths, credentials and private data from logs.
|
||||||
|
- type: textarea
|
||||||
|
id: description
|
||||||
|
attributes:
|
||||||
|
label: Description
|
||||||
|
description: What went wrong? Identify the affected subsystem and expected behavior.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: steps
|
||||||
|
attributes:
|
||||||
|
label: Reproduction steps
|
||||||
|
description: Include exact commands and a minimal, legally distributable input if applicable.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: environment
|
||||||
|
attributes:
|
||||||
|
label: Environment
|
||||||
|
description: Commit, macOS, Apple GPU, RAM, Rust, Xcode and relevant tool versions. Include sanitized doctor output if available.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: output
|
||||||
|
attributes:
|
||||||
|
label: Actual output and diagnostics
|
||||||
|
description: Include expected versus actual results, validation-layer messages and relevant logs.
|
||||||
|
- type: checkboxes
|
||||||
|
id: confirmation
|
||||||
|
attributes:
|
||||||
|
label: Confirmation
|
||||||
|
options:
|
||||||
|
- label: I searched for existing reports and have not included sensitive or unauthorized material.
|
||||||
|
required: true
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
blank_issues_enabled: true
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
name: Feature proposal
|
||||||
|
description: Propose a compiler, graphics, tooling or other project enhancement.
|
||||||
|
title: "feat: "
|
||||||
|
labels: [enhancement]
|
||||||
|
body:
|
||||||
|
- type: textarea
|
||||||
|
id: problem
|
||||||
|
attributes:
|
||||||
|
label: Problem or gap
|
||||||
|
description: Which limitation does this feature address?
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: proposal
|
||||||
|
attributes:
|
||||||
|
label: Proposed approach
|
||||||
|
description: Explain the intended behavior and affected components. Link relevant public specifications when available.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: criteria
|
||||||
|
attributes:
|
||||||
|
label: Acceptance criteria
|
||||||
|
description: What observable results and tests would demonstrate completion?
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: alternatives
|
||||||
|
attributes:
|
||||||
|
label: Alternatives and trade-offs
|
||||||
|
description: Include limitations, dependency costs or impacts on native ARM64 and Metal if relevant.
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
name: Hardware verification report
|
||||||
|
description: Submit real hardware test results for Xenora.
|
||||||
|
title: "hardware: "
|
||||||
|
labels: [needs-verification]
|
||||||
|
body:
|
||||||
|
- type: textarea
|
||||||
|
id: environment
|
||||||
|
attributes:
|
||||||
|
label: Test environment
|
||||||
|
description: Commit, Apple chip/GPU, RAM, macOS, Xcode/Metal version, Rust version, validation settings. Do not include serial numbers or registry IDs.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: commands
|
||||||
|
attributes:
|
||||||
|
label: Commands and inputs
|
||||||
|
description: Include exact commands and synthetic or authorized fixture identifiers.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: results
|
||||||
|
attributes:
|
||||||
|
label: Results
|
||||||
|
description: Report actual output, pass/fail/skip counts, and limitations. Compilation alone does not prove execution.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: performance
|
||||||
|
attributes:
|
||||||
|
label: Performance data (optional)
|
||||||
|
description: Include repetitions, warm-up, timing method, validation state and variability if reporting measurements.
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
name: Technical research
|
||||||
|
description: Record an ISA, Metal or publicly documented graphics research finding.
|
||||||
|
title: "research: "
|
||||||
|
labels: [research]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: Use only public, authorized sources. Do not link to leaked SDKs, private documentation or unauthorized game content.
|
||||||
|
- type: textarea
|
||||||
|
id: question
|
||||||
|
attributes:
|
||||||
|
label: Research question or finding
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: sources
|
||||||
|
attributes:
|
||||||
|
label: Sources and applicability
|
||||||
|
description: URLs, specification sections or revision, exact architecture and license/provenance if relevant.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
id: evidence
|
||||||
|
attributes:
|
||||||
|
label: Evidence class (highest applicable)
|
||||||
|
options:
|
||||||
|
- A - Measured on named hardware
|
||||||
|
- B - Normative source for exact target
|
||||||
|
- C - Normative source for related target
|
||||||
|
- D - Non-normative official material
|
||||||
|
- E - Independent software behavior
|
||||||
|
- F - Uncorroborated community claim
|
||||||
|
- U - Unknown or assumption
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: validation
|
||||||
|
attributes:
|
||||||
|
label: Validation, limitations and proposed next steps
|
||||||
|
description: Distinguish Apple or desktop RDNA observations from Xbox behavior.
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
## Summary
|
||||||
|
|
||||||
|
<!-- What changes, and why? Link an issue if relevant. -->
|
||||||
|
|
||||||
|
## Implementation and evidence
|
||||||
|
|
||||||
|
<!-- Describe affected subsystems, architecture assumptions, specification sections and upstream provenance where applicable. -->
|
||||||
|
|
||||||
|
## Verification
|
||||||
|
|
||||||
|
<!-- List actual commands and outcomes. Include hardware, validation-layer state and pass/fail/skip counts for GPU tests. Mark unrun checks explicitly. -->
|
||||||
|
|
||||||
|
| Check | Result / evidence |
|
||||||
|
| --- | --- |
|
||||||
|
| Formatting and lint | |
|
||||||
|
| Unit / integration tests | |
|
||||||
|
| GPU / differential tests | |
|
||||||
|
| Fuzzing / mutation / benchmarks, if relevant | |
|
||||||
|
|
||||||
|
## Compatibility and limitations
|
||||||
|
|
||||||
|
<!-- Note unsupported behavior, regressions, interface changes, performance effects and remaining uncertainty. -->
|
||||||
|
|
||||||
|
## Checklist
|
||||||
|
|
||||||
|
- [ ] I reviewed the changes and disclosed material AI assistance below, if applicable.
|
||||||
|
- [ ] The change preserves native ARM64 and Metal-first requirements.
|
||||||
|
- [ ] I added relevant tests or explained why they are not applicable.
|
||||||
|
- [ ] I did not report skipped or unrun tests as passing.
|
||||||
|
- [ ] I updated applicable documentation, claims and status records.
|
||||||
|
- [ ] Third-party code and fixtures have verified licenses and provenance, or none were added.
|
||||||
|
- [ ] No restricted materials, credentials or private data are included.
|
||||||
|
- [ ] My commits are signed off under the DCO.
|
||||||
|
|
||||||
|
## AI assistance
|
||||||
|
|
||||||
|
<!-- Describe material assistance and the checks you personally performed, or state none. -->
|
||||||
+29
@@ -0,0 +1,29 @@
|
|||||||
|
# Rust and local builds
|
||||||
|
/target/
|
||||||
|
/build/
|
||||||
|
/cmake-build-*/
|
||||||
|
/fuzz/target/
|
||||||
|
/fuzz/artifacts/
|
||||||
|
|
||||||
|
# macOS / Xcode local state
|
||||||
|
.DS_Store
|
||||||
|
**/xcuserdata/
|
||||||
|
*.xcuserstate
|
||||||
|
/DerivedData/
|
||||||
|
|
||||||
|
# Local environment and diagnostics
|
||||||
|
.env
|
||||||
|
.env.*
|
||||||
|
!.env.example
|
||||||
|
*.log
|
||||||
|
*.profraw
|
||||||
|
*.profdata
|
||||||
|
|
||||||
|
# Keep Cargo.lock, source fixtures, reviewed golden files and documentation tracked.
|
||||||
|
|
||||||
|
# Local AI agent tooling
|
||||||
|
.agents/
|
||||||
|
.claude/
|
||||||
|
.codex/
|
||||||
|
.cursor/
|
||||||
|
.gemini/
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
Notable project changes will be recorded here. Entries describe implemented and verified changes, not roadmap promises. Releases should identify their exact revision and known limitations; experimental interfaces may change.
|
||||||
|
|
||||||
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||||
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Repository contribution guidelines, issue forms, pull request checklist, community expectations and security reporting policy.
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
# Code of Conduct
|
||||||
|
|
||||||
|
Xenora welcomes contributors with different backgrounds and experience levels. Discussions should be about the technical work and conducted with respect.
|
||||||
|
|
||||||
|
## Expected behavior
|
||||||
|
|
||||||
|
- Give specific, constructive feedback supported by evidence.
|
||||||
|
- Respect disagreements, boundaries, privacy and differing levels of experience.
|
||||||
|
- Credit other contributors and upstream authors accurately.
|
||||||
|
- Accept corrections and disclose uncertainty rather than presenting speculation as fact.
|
||||||
|
|
||||||
|
## Unacceptable behavior
|
||||||
|
|
||||||
|
Harassment, threats, discriminatory abuse, sexual harassment, impersonation, doxxing, sharing private information without consent, intimidation, and deliberate disruption are not acceptable. Neither are personal attacks on contributors, competing projects or their communities.
|
||||||
|
|
||||||
|
## Reporting and moderation
|
||||||
|
|
||||||
|
If possible, use an available private contact channel for a repository maintainer or GitHub's reporting mechanisms. Do not publish sensitive personal information in an issue. If a maintainer is involved in the concern, use GitHub's reporting tools rather than contacting that maintainer directly.
|
||||||
|
|
||||||
|
Maintainers may remove content, limit participation or block accounts when necessary to protect the community. Responses should be proportionate to the behavior and protect the privacy of affected people. Do not retaliate against anyone reporting a concern in good faith.
|
||||||
|
|
||||||
|
This policy applies to repository issues, pull requests, discussions and other spaces officially managed by Xenora.
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
# Contributing to Xenora
|
||||||
|
|
||||||
|
Xenora is an experimental Xbox Series X|S recompilation framework for Apple Silicon. Its graphics subsystem, XenoMetal, targets native Metal execution. Contributions should improve verified behavior rather than expand untested claims.
|
||||||
|
|
||||||
|
## Getting started
|
||||||
|
|
||||||
|
- Read `README.md` and, when present, `AGENTS.md`, `docs/interfaces.md`, `docs/status.toml` and the relevant architecture decisions.
|
||||||
|
- Discuss substantial changes in an issue before implementing them; small fixes do not require prior approval.
|
||||||
|
- Use a native ARM64 macOS environment with Rust and the appropriate Xcode/Metal tools. LLVM AMDGPU tools are needed for ISA fixture generation; extra tooling depends on the subsystem.
|
||||||
|
- Keep changes focused and preserve existing public interfaces unless a change is justified and documented.
|
||||||
|
|
||||||
|
## Development and verification
|
||||||
|
|
||||||
|
When the Cargo workspace exists, run from its root:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
cargo fmt --all -- --check
|
||||||
|
cargo clippy --workspace --all-targets -- -D warnings
|
||||||
|
cargo test --workspace
|
||||||
|
```
|
||||||
|
|
||||||
|
Follow repository documentation for actual GPU tests, fuzzing, mutation testing and benchmarks. Report commands, versions, pass/fail/skip counts and hardware used. A successful shader compile is not successful GPU execution. Do not report unavailable tools or skipped tests as passes.
|
||||||
|
|
||||||
|
For an instruction or compiler change, cite the applicable ISA section, state the exact architecture, document operand and execution-mask semantics, and add tests for encodings, edge cases, unsupported cases and independent expected results. Where applicable, verify the resulting MSL through actual Metal execution. Do not convert unsupported instructions into silent no-ops.
|
||||||
|
|
||||||
|
For a performance change, provide reproducible before-and-after results using equivalent inputs, hardware and settings. For a new dependency, explain why it is needed, verify its license and native ARM64 compatibility, and record its provenance.
|
||||||
|
|
||||||
|
## Research and clean-room policy
|
||||||
|
|
||||||
|
Use publicly accessible specifications and authorized materials only. Do not submit leaked SDKs, confidential documentation, firmware, keys, proprietary game binaries or unauthorized shader dumps. Under Xenora's clean-room policy, anyone who has accessed leaked or confidential Xbox materials must not contribute. Do not post details of restricted material in issues or PRs.
|
||||||
|
|
||||||
|
Distinguish desktop RDNA behavior from Xbox-specific behavior. Cite primary sources with exact applicable architectures and record uncertainties using the project's evidence classification when available. Tests on Apple GPUs do not establish verification on Xbox hardware.
|
||||||
|
|
||||||
|
Before incorporating third-party code, verify per-file license compatibility with GPL-3.0-or-later, record the exact upstream revision and original paths, preserve copyright notices and document changes. Update applicable attribution records. Public visibility alone is not proof of authorization or license compatibility.
|
||||||
|
|
||||||
|
## Pull requests
|
||||||
|
|
||||||
|
- Branch from the current main branch, keep commits focused, and link relevant issues.
|
||||||
|
- Include a clear explanation, tests and any documentation/status updates. Separate unverified work from supported behavior.
|
||||||
|
- Disclose material AI assistance and personally review generated changes. AI output is not an authoritative source, test oracle or substitute for independent review.
|
||||||
|
- Never include secrets, personal paths, credentials or private data in patches or logs.
|
||||||
|
- Do not claim approval from an independent reviewer unless one has actually reviewed the change.
|
||||||
|
|
||||||
|
Sign off each commit under the [Developer Certificate of Origin](https://developercertificate.org/):
|
||||||
|
|
||||||
|
```sh
|
||||||
|
git commit -s -m "Describe the change"
|
||||||
|
```
|
||||||
|
|
||||||
|
Use your configured Git identity and a privacy-preserving email address if desired. Sign-off is your certification of the contribution; do not sign off work on another person's behalf. Contributions are subject to the repository license and any applicable, compatible third-party notices.
|
||||||
|
|
||||||
|
For security-sensitive findings, see [SECURITY.md](SECURITY.md). Community expectations are in [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
|
||||||
@@ -28,15 +28,6 @@ flowchart TD
|
|||||||
|
|
||||||
An independent CPU reference interpreter is intended to validate supported instruction semantics against known-answer tests and actual GPU output. SPIR-V may be used as an optional compiler intermediate representation without introducing a Vulkan runtime dependency.
|
An independent CPU reference interpreter is intended to validate supported instruction semantics against known-answer tests and actual GPU output. SPIR-V may be used as an optional compiler intermediate representation without introducing a Vulkan runtime dependency.
|
||||||
|
|
||||||
## Design principles
|
|
||||||
|
|
||||||
- **Native ARM64:** target Apple Silicon directly, without Rosetta.
|
|
||||||
- **Metal-first graphics:** build around native Metal capabilities rather than recreating another graphics API unnecessarily.
|
|
||||||
- **Correctness before performance:** validate instruction semantics and observable shader results before optimizing.
|
|
||||||
- **Evidence-driven development:** distinguish public specifications, implementation assumptions and measured hardware behavior.
|
|
||||||
- **Independent verification:** use reference implementations, differential tests, fuzzing and mutation testing to detect semantic errors.
|
|
||||||
- **Clean-room research:** rely on public documentation, original fixtures and legally reusable upstream software.
|
|
||||||
|
|
||||||
## Development roadmap
|
## Development roadmap
|
||||||
|
|
||||||
The following describes the project's intended development stages, not a claim that the features are already implemented.
|
The following describes the project's intended development stages, not a claim that the features are already implemented.
|
||||||
@@ -51,21 +42,6 @@ The following describes the project's intended development stages, not a claim t
|
|||||||
| 06 | Guest runtime and publicly documented system interfaces |
|
| 06 | Guest runtime and publicly documented system interfaces |
|
||||||
| 07 | Integrated execution and compatibility validation using authorized test programs |
|
| 07 | Integrated execution and compatibility validation using authorized test programs |
|
||||||
|
|
||||||
## Target platform
|
|
||||||
|
|
||||||
| Component | Target |
|
|
||||||
| --- | --- |
|
|
||||||
| Guest architecture | Xbox Series X\|S (x86-64 CPU, RDNA 2-derived GPU) |
|
|
||||||
| Host operating system | macOS |
|
|
||||||
| Host architecture | ARM64 / AArch64 |
|
|
||||||
| Host hardware | Apple Silicon |
|
|
||||||
| Graphics subsystem | XenoMetal |
|
|
||||||
| Graphics API | Metal |
|
|
||||||
| Primary language | Rust |
|
|
||||||
| Supporting languages | C++, Metal Shading Language |
|
|
||||||
|
|
||||||
The development target spans Apple Silicon generations, but hardware compatibility must be established through actual testing. Features are not considered supported solely because they compile.
|
|
||||||
|
|
||||||
## Development and testing
|
## Development and testing
|
||||||
|
|
||||||
Xenora targets the native Rust `aarch64-apple-darwin` toolchain and Apple's Xcode and Metal development tools. LLVM's AMDGPU tools are intended to serve as an independent instruction encoding and decoding reference where applicable.
|
Xenora targets the native Rust `aarch64-apple-darwin` toolchain and Apple's Xcode and Metal development tools. LLVM's AMDGPU tools are intended to serve as an independent instruction encoding and decoding reference where applicable.
|
||||||
@@ -102,7 +78,7 @@ Changes should include a clear technical rationale, relevant specification refer
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Xenora is intended to be distributed under the GNU General Public License, version 3 or later ([GPL-3.0-or-later](https://www.gnu.org/licenses/gpl-3.0.html)). Third-party components retain their applicable licenses and copyright notices.
|
Xenora is intended to be distributed under the GNU General Public License, version 3 ([GPL-3.0](LICENSE)). Third-party components retain their applicable licenses and copyright notices.
|
||||||
|
|
||||||
Xenora does not distribute proprietary game binaries, console firmware, encryption keys or restricted Xbox SDK material. The project does not aim to circumvent DRM or console security mechanisms.
|
Xenora does not distribute proprietary game binaries, console firmware, encryption keys or restricted Xbox SDK material. The project does not aim to circumvent DRM or console security mechanisms.
|
||||||
|
|
||||||
|
|||||||
+21
@@ -0,0 +1,21 @@
|
|||||||
|
# Security policy
|
||||||
|
|
||||||
|
## Scope
|
||||||
|
|
||||||
|
Xenora is experimental and is not currently represented as a security-hardened runtime. Treat shaders, binary containers, caches and native library inputs as untrusted. Do not use it to process untrusted content in a sensitive environment.
|
||||||
|
|
||||||
|
The project does not promise a fixed security support window at this stage. Report issues against a specific revision, preferably reproduced on current `main` where safe.
|
||||||
|
|
||||||
|
## Reporting vulnerabilities
|
||||||
|
|
||||||
|
Use [GitHub private vulnerability reporting](https://github.com/ranveersoni98/Xenora/security/advisories/new), if enabled. If it is unavailable, request a private reporting channel without disclosing exploit details publicly. Do not open a public issue containing sensitive vulnerability details, credentials, or private data.
|
||||||
|
|
||||||
|
Include the affected commit, environment, affected component, expected and actual behavior, impact and a minimal, authorized reproduction. Use synthetic inputs wherever possible. Do not attach protected content, leaked SDK material or proprietary shaders.
|
||||||
|
|
||||||
|
Relevant concerns include parser memory safety, malformed input handling, resource exhaustion, unsound FFI, unsafe cache handling and GPU hangs. Stop testing if a workload makes the system unstable; do not repeat destructive or unbounded workloads.
|
||||||
|
|
||||||
|
## Handling and disclosure
|
||||||
|
|
||||||
|
Please coordinate disclosure with the maintainers. A report should be acknowledged and investigated as resources permit; no response or patch deadline is guaranteed. Public advisories should describe affected versions, impact, fixes and available mitigations once these are established.
|
||||||
|
|
||||||
|
Unsupported shader semantics and ordinary correctness bugs can generally go through the issue tracker unless they have a security impact.
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
# Getting help
|
||||||
|
|
||||||
|
Start with the [README](README.md) and the relevant documentation in the repository, if available. Xenora is an experimental research project, not a commercial game compatibility service.
|
||||||
|
|
||||||
|
- Use [GitHub Issues](https://github.com/ranveersoni98/Xenora/issues) for reproducible bugs, feature proposals, research findings and hardware verification reports.
|
||||||
|
- Use [GitHub Discussions](https://github.com/ranveersoni98/Xenora/discussions) for general questions if Discussions is enabled. Otherwise, search existing issues before filing a relevant question.
|
||||||
|
- Follow [SECURITY.md](SECURITY.md) for security-sensitive reports.
|
||||||
|
|
||||||
|
Include the exact revision, host architecture, macOS version, relevant tool versions, steps to reproduce and sanitized output. Do not share personal paths, private account information, protected game assets, credentials or confidential material. If the reported feature is not yet implemented, identify it as a request rather than a regression.
|
||||||
Reference in new issue
Block a user