38 Commits

Author SHA1 Message Date
a9c4995c5c docs: allow agents to manage PRs while keeping main push-protected
Clarify in docs/agent_collaboration.md, AGENTS.md, and CONTRIBUTING.md
that agents may open, change, merge, and close pull requests on separate
branches, while keeping the strict rule that nobody (human or agent)
ever pushes directly to main.
2026-12-01 11:37:19 -05:00
64ec184069 docs: prohibit direct pushes to main
Document clearly in CONTRIBUTING.md, AGENTS.md, and
docs/agent_collaboration.md that contributors, maintainers, and coding
agents must never push directly to main and must always use a separate
branch and pull request so every change goes through CI and review.
2026-12-01 11:27:57 -05:00
8246772326 docs: deduplicate AGENTS/CONTRIBUTING and consolidate descriptor_lookup docs 2026-12-01 07:53:33 -05:00
457735ca8a docs: fix stale repo references and add coding-agent engineering bar 2026-12-01 07:44:31 -05:00
eb3d976b89 Update CONTRIBUTING.md 2026-11-30 09:09:19 -05:00
cf1ab6623b docs: recommend AI models and separate reviewer agent in CONTRIBUTING.md 2026-11-30 09:04:56 -05:00
9822d208d0 CONTRIBUTING: add a maintainer quick guide (DOC-CONTRIBUTING-MAINTAINER-GUIDE)
A short section at the end for maintainers: what to read before acting, when
a pull request is mergeable, how to test it (merge main in, never rebase or
force-push; the PR's tests, then the full suite against plain main), and what
to do afterwards (merge with a short comment, list blockers, or close a
duplicate kindly). The contributor rules above it are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 13:33:19 -05:00
364754de5c ci: the needs-rebase labeler no longer runs per pull request push (PR-CONFLICT-LABEL-LOAD)
conflict-label.yml (#155) started a run on every push to every pull
request through pull_request_target. On this repository that queued 265
runs within a day, some waiting five hours, in the same runner queue as
CI, No Game Data and Runtime, whose oldest queued run waited six hours.

Drop the pull_request_target trigger and put every run in one
concurrency group. Each run already checks every open pull request, so
a push to main and the hourly schedule cover what the per-PR runs did;
a rebased pull request loses the label within the hour instead of at
once. At most one run waits at a time. The workflow also no longer has a
trigger that hands a fork's pull request a write token.

tests/test_pr_conflict_label.py fails on the old workflow and checks
that no pull request trigger, per-PR group or --pr comes back; the tool's
docstring and CONTRIBUTING.md say what runs it now.
2026-11-24 20:51:58 +00:00
9674d530a0 Merge pull request #56 from natterman12/docs/contributor-links-current-repo
docs: contributor guidance points at this repository, not the private original (DOC-REPO-LINKS)
2026-11-23 22:09:48 -05:00
4f7a347775 ci: label pull requests that conflict with main needs rebase (PR-CONFLICT-LABEL)
Every pull request is reviewed by hand, and with over a hundred open the
reviewer has no quick way to skip the ones that cannot merge as they
stand. tools/pr_conflict_label.py asks the GitHub API for each open pull
request's `mergeable` and labels the conflicting ones `needs rebase`,
removing the label once they merge cleanly again; an answer GitHub has
not computed yet is asked again a few times and otherwise left for the
next run. .github/workflows/conflict-label.yml runs it on a push to main
(all open pull requests), on a pull request being opened, reopened or
pushed to (that one), and hourly.

The job uses pull_request_target so a fork's pull request can be
labeled, and is safe with it: it checks out main, never the pull
request, and the tool reads only the API, so no pull request code runs.
Its token can read contents and write pull requests, nothing else;
tests/test_pr_conflict_label.py checks that, and the tool against a fake
API.

The pull request template also asks for `Fixes: #N` and `GPUs tested:`
lines and has checklist items for "based on current main" and "one
topic"; tests/test_docs_pr_template.py checks the new prompts, and
CONTRIBUTING.md gets a short Pull requests section. The process is
modelled on AnyPS5's (boykopovar/AnyPS5); the code is written here, not
copied.
2026-11-24 02:30:45 +00:00
bbfacade3e docs: contributor guidance points at this repository, not the private original
CONTRIBUTING.md, AGENTS.md, the French contributing page and the issue
template's build link sent contributors to ItsNotRexed/Leonida, which went
private on 23 November 2026: the claims search, the gh command an agent is
told to run, #166 and #313 all led nowhere.

They now use ubiquitarianism/leonida, say that older #N numbers are from the
original tracker, and name what replaces them here (#18, #17,
gpu-test-results/, docs/d3d12_vulkan.md). Adds the done: line and the main
target from the coordination issue.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-23 21:08:34 -05:00
1ab957b304 CONTRIBUTING: name tools/report_paths.same_report_path as the shared --out/input guard (EGEN-REPORTPATHS-DOC) (#6730)
Squash-merged after diff review of PR #6730
2026-11-23 10:50:22 -06:00
c2cc4bfe7f scripts/run_semantic_tests.py: run tests/semantic one process per file, in parallel (253 s -> 26 s) (#4961)
Squash-merged after review of PR #4961 - scripts/run_semantic_tests.py: run tests/semantic one process per file, in parallel (253 s -> 26 s)
2026-11-23 08:10:57 -06:00
dfe9fb8ef8 Merge pull request #4153 from akimfomin
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 23:11:48 -05:00
33a4580f45 docs: clarify native Windows GPU test setup 2026-11-23 02:41:52 +03:00
858c355a1b CONTRIBUTING: Linux and macOS configure the portable CPU tests too
Signed-off-by: Maxime Mansiet <AirKyzzZ@users.noreply.github.com>
2026-11-22 23:07:51 +01:00
c9299376b0 docs: AGENTS.md lists every numpy/Pillow tool, CONTRIBUTING.md mentions pytest-based tests; test pins both 2026-11-22 14:57:45 -05:00
ef6139ddb3 tools: newline= on text-mode temp files and Path.open too (BUILD-468)
#1615's detector read the mode only at position 1, so Path.open(mode)
and tempfile.NamedTemporaryFile(mode) were not seen: three atomic report
writes (rbf0_tree, rtti_scan, world_build) still get CRLF on Windows.
They now pass newline="\n".

The test now reads the mode where each call takes it: open, io/gzip/
bz2/lzma.open and os.fdopen at position 1, Path.open and the tempfile
classes at position 0 (binary by default). It accepts only real mode
strings, and skips codecs, os, tarfile, zipfile and webbrowser opens.
Found by @undeadhuman37 in their review of #1615.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:54:01 +01:00
ec9b6cf22b tools: text reports are written with LF line ends on every platform (BUILD-468)
open(path, "w") without newline= turns each \n into \r\n on Windows, so the same JSON report, manifest or assembly
listing was CRLF there and LF elsewhere. 91 text-mode writes (open, os.fdopen, Path.write_text) under tools/, scripts/,
make_game.py and runtime/test/shaders/ now pass newline="\n". tests/test_text_write_line_endings.py reads the source
with ast and fails for a writer that forgets it; CONTRIBUTING.md names the convention.

AI-assisted (Claude), on behalf of dev-ewann.
2026-11-22 14:20:30 +00:00
2a769f749c Merge pull request #505 from Koert Lichtendonk 2026-11-21 19:43:50 -05:00
df1c2efa71 Merge pull request #444 from SombraSoft 2026-11-21 19:14:05 -05:00
fad3f9ee9e Merge pull request #416 from VictorJulianiR 2026-11-21 19:14:01 -05:00
cf25a277ba Docs: a finding: command for work you found but won't do
Contributors and their agents often come across bugs, missing methods or
stale docs while working on something else. Ask them to post those in
the coordination issue as "finding: <one line>" with where, why and
what it needs, so the coordinator can list them for others.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:13:08 +01:00
11f67b9057 Select the Visual Studio configuration for runtime CPU tests 2026-11-21 20:43:22 -03:00
e2ad499d45 CI: upgrade viewer-tests to Node 24 LTS and add pip/NuGet caching with global.json 2026-11-21 20:42:13 -03:00
ed6b5236e5 Merge pull request #348 from traeb0n 2026-11-21 18:37:58 -05:00
e0d68c8bb2 Docs: link the coordination issue by its title, not its number
The coordination issue (#156) will move to a successor when its thread
gets long. CONTRIBUTING.md, AGENTS.md, the PR template and the testing
guide now find it as the open issue titled "Coordinating who works on
what" (a search link, and a gh command for agents), so they stay right
without an edit each time.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:11:59 +01:00
d3a02408ff Tests: loader_test on machines whose security software holds new PE files
On Windows with Trend Micro Maximum Security (Defender and Smart App Control
off), images the test writes to %TEMP% can be written but not opened for a
while: each takes 50-800 ms, the first case failed, the truncation case
stalled for about ten minutes, and an uncaught write error then ended the
process with 0xc0000409. Held images from one run also made the next fail.

- Each run writes to leonida_loader_test\<process id>, so the previous run's
  held images cannot collide; LEONIDA_TEST_DIR picks the parent folder.
- A start-up check writes and reads back 8 images and stops with the reason
  and the folder to exclude if one is refused or they average over 25 ms.
- A failed write ends the run as one FAIL instead of std::terminate.
- A run folder that cannot be removed is reported as a note.

The loader and its 48 checks are unchanged. ctest 15/15 on Windows 11 with
the antivirus active. AI-assisted (Claude Code).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 17:11:10 -06:00
c17cdd8b6b Docs: point CONTRIBUTING.md and AGENTS.md at #313 for the D3D12 layer
The D3D12 -> Vulkan layer is tracked in #313 (critical path, who builds
what, open D3D12 methods); say so next to #156 and #166.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 23:57:45 +01:00
307d5e4c1a Docs: a guide to running the GPU tests
Collects what testers in #166 needed to find out themselves: llvm-mc
with the AMDGPU target per OS, building the test programs, the two ways
to run the suite, wave64 emulation on 32-wide GPUs (set
LEONIDA_W64_EMULATE for build.py too), choosing a GPU, and the problems
reported so far with their fixes. Linked from CONTRIBUTING.md and the
docs index.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 23:50:59 +01:00
bc9e77c8ba Merge pull request #213 from Jonathan 2026-11-21 16:37:30 -05:00
8a7e5dce94 Docs: claim work in #156 before opening a pull request
@ItsNotRexed asked in #156 for claims to be made there before a PR is
opened. Say so where contributors and their agents look first:
CONTRIBUTING.md, AGENTS.md and the pull request template.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 22:33:56 +01:00
0c17741bf4 Viewer: retry failed chunk loads with bounded backoff 2026-11-21 17:29:15 -04:00
9d28e6d210 Contributing: document runtime and package-gated tests 2026-11-21 18:47:37 +00:00
4b251d1cb6 Merge pull request #15 from Mulkku
# Conflicts:
#	runtime/test/vk_store_test.cpp
#	runtime/test/vk_texture_test.cpp
#	runtime/test/vulkan_loader.h
#	tools/rdna2spirv.py
2026-11-21 11:47:52 -05:00
695ae01d21 tests: value-level regression tests for RDNA2 -> SPIR-V pixel shaders
Add tests/semantic: translate two hand-written, branch-free pixel shaders
(ps_sdwa, ps_ops) and execute the resulting SPIR-V with a small strict
interpreter, asserting every mrt0 word against hand-derived expectations.
Catches wrong-value regressions (SDWA selects/sext, min3/max3, bfe_i32,
packed f16 FMA) that spirv-val cannot.

- Standard library only; no LLVM, SPIRV-Tools, GPU or game files.
- Interpreter rejects unmodelled constructs instead of approximating.
- Negative controls sabotage translated output; mutation tests sabotage a
  temporary copy of tools/ and require the matching test to fail.
- Fixtures are generated from runtime/test/shaders/*.asm.
- CI job semantic-tests (Windows + Ubuntu, Python 3.12), discovery limited
  to tests/semantic.
2026-11-21 18:27:51 +02:00
987e8471ee Fix RDNA2 wave masks and flat inputs
Preserve whole-wave mask operations, saved EXEC values and flat
pixel inputs when generating SPIR-V. Keep a dispatch-loop fallback
alongside structured control flow and share the descriptor probe.

Add reproducible GPU fixtures for these cases and exercise the
control-flow and mask analyses in CI.
2026-11-21 16:56:54 +02:00
db0dc8bd5e Initial commit: Leonida, build-it-yourself PC port groundwork
Shader pipeline (carve, FSSM unpack, gfx1013 disassembly, RDNA2 to SPIR-V),
asset export via rpf9-explorer's Core (submodule), PE loader and shim
skeleton, and make_game.py, which builds from the user's own copy of the game.
No game data, keys or executables are included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 15:22:16 -05:00