From 801c3601d99111fa4cba8f546fbe136ada55da95 Mon Sep 17 00:00:00 2001 From: MoonEyes <14891700+MoonEyes@users.noreply.github.com> Date: Fri, 27 Nov 2026 01:14:32 +0100 Subject: [PATCH 1/2] docs: how contributors' agents work together (DOC-AGENT-COLLAB) One page, docs/agent_collaboration.md, linked from AGENTS.md and the docs index: GitHub as the shared memory of the agents, five machine profiles and the work each is best placed for, three blocks with fixed fields (AGENT-MSG, RUN, TEST-WANTED), evidence tags and what an unattended agent may do. Adds to CONTRIBUTING.md and AGENTS.md; no existing rule changes. AI-assisted. Co-Authored-By: Claude Fable 5.2 --- AGENTS.md | 2 + docs/README.md | 1 + docs/agent_collaboration.md | 116 ++++++++++++++++++++++++++++++++++++ 3 files changed, 119 insertions(+) create mode 100644 docs/agent_collaboration.md diff --git a/AGENTS.md b/AGENTS.md index d6788158e4..0f19460525 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -121,3 +121,5 @@ Shard runs write `index.part*.json`; merge them into `index.json` with `--merge` input gives the same bytes on every platform; `tests/test_text_write_line_endings.py` catches a writer that forgets. - Keep `make_game.py` working on Windows first: paths through `os.path`, no bash in the build. - In the pull request, say that it was AI-assisted, what you tested and on which GPU and driver. +- How agents share results, ask each other for a test on a machine they do not have and say how sure a claim is: + [docs/agent_collaboration.md](docs/agent_collaboration.md). diff --git a/docs/README.md b/docs/README.md index 3aec00ea91..d78fca3fbf 100644 --- a/docs/README.md +++ b/docs/README.md @@ -19,6 +19,7 @@ method, scope and caveats. No game data is included. | [modding.md](modding.md) | The mod format: `mods//mod.json`, checked and loaded in name order by `gta6rt`; a swap takes effect once the game's archetype lookup is hooked (needs the executable, RT-5). A mod names game models and holds no game data. | | [progress_dashboard.md](progress_dashboard.md) | A local page of what works, what changed since it last passed and what blocks next: unit and runtime tests, the translator contract by confirmation method, measured imports, corpus counts and, with `--github`, CI and the D3D- items (`tools/progress_dashboard.py`). | | [dev-tools.md](dev-tools.md) | The development CLI `scripts/dev.py`: `discover` (text or `--json`, schema version 1) lists the boot-trace analyzer and the guest-scene runner with their help commands and prerequisites, without running them; live attach, pause, step and screenshots are not available through it. | +| [agent_collaboration.md](agent_collaboration.md) | How contributors' coding agents work together through GitHub: which machine profile takes which work, the `AGENT-MSG`, `RUN` and `TEST-WANTED` blocks, and the evidence tags. A convention, not a measurement. | ## Archives and assets diff --git a/docs/agent_collaboration.md b/docs/agent_collaboration.md new file mode 100644 index 0000000000..85878a7160 --- /dev/null +++ b/docs/agent_collaboration.md @@ -0,0 +1,116 @@ +# Agents working together + +Many contributors work through a coding agent, each on its own machine. This page is how those agents share work +without their humans briefing them: where they read and write, which machine takes which kind of work, three blocks +with fixed fields, and how sure a claim is. It adds to [CONTRIBUTING.md](../CONTRIBUTING.md) and +[AGENTS.md](../AGENTS.md) and replaces nothing in them. No game data is included. + +## GitHub is the shared memory + +- GitHub is the one place every agent reads. What every agent should know (a result, a decision, a request for a + test) is written in the coordination issue, in a pull request comment or under `docs/`; what is written + elsewhere does not exist for the other agents. +- At the start of a session an agent reads the coordination issue and the open pull requests of its topic + ([AGENTS.md](../AGENTS.md#claim-before-you-start)), then [running.md](running.md) and + [`gpu-test-results/`](../gpu-test-results). +- The coordination issue has a comment cap and is already in its second thread. A block goes on the pull request or + issue it is about; only run reports ([running.md](running.md#reporting)) and `claiming:` / `done:` / `finding:` + lines go in the coordination issue, plus a `TEST-WANTED` block that has no pull request (below). + +## Each machine does what only it can do + +| Profile | Machine | Work it is best placed for | +|---|---|---| +| L | 24 GB of video memory or more | Long runs into the world, the large ray-tracing programs described in [running.md](running.md), the control arm of an A/B test | +| M | 8 GB to under 24 GB | What fails first when video memory is short, reproducing a reported failure (a guess: running.md has no run on this class yet) | +| S | Integrated, older, Intel, Apple | The GPU test suite ([testing.md](testing.md)) and a file in `gpu-test-results/`, driver-specific problems | +| F | Several GPUs in one machine | Disjoint shards and pull request checks ([multi_gpu_validation.md](multi_gpu_validation.md)) | +| Z | No free GPU, or one busy with a long run | The translator suite, unit tests, docs, tools, pull request review | + +- Outside the tests of its own pull requests (`GPUs tested:`), a large card's time goes to profile L work. +- Work outside your profile is handed over as a `finding:` that names the profile it needs; AGENTS.md already asks a + `finding:` to say whether it needs game files or particular hardware. +- While a long run holds the GPU, the agent takes profile Z work instead of waiting. +- Add the profile to `GPUs tested:` in a pull request, so a reviewer sees which profile has not run it. + +## Three blocks + +Each block starts with its prefix (`AGENT-MSG`, `RUN`, `TEST-WANTED`) so a search finds it, and says it is +AI-assisted. Values only: no shader or program names, addresses, local paths or raw log lines. + +A message from one agent to another: + +``` +AGENT-MSG | | | AI-assisted: +BASE: + + +MACHINE: | | | +RECIPE: documented (running.md, "
") + DEVIATIONS: , or none +ASK: +RETURNED: +RUNS: , or "0, read-only" +EVIDENCE: +``` + +`RECIPE` shortens what [running.md](running.md#reporting) asks for: every `LEONIDA_*` variable that differs from the +section named, or from the defaults where that section says TBD. Never the watchdog's values. + +A run of the game, in the fields of [running.md](running.md#reporting) in a fixed order, plus the prediction, how the +run ended, the caches and the rank of the run: + +``` +RUN | | | AI-assisted: +BASE: + | shaders: +MACHINE: | | | +RECIPE: documented ("
") + DEVIATIONS: | precompile: +OS/DRIVER: +TARGET: | PREDICTED (written before the run): +MEASURED: | duration | frame rate +END: