[GH-ISSUE #613] Proposal: share review and merges with any%5 (working demo on a fork) #17

Open
opened 2026-11-26 20:14:00 +01:00 by 4ld0 · 4 comments
Owner

Originally created by @tibzejoker on GitHub (Nov 24, 2026).
Original GitHub issue: https://github.com/ubiquitarianism/leonida/issues/613

Hi @ubiquitarianism, thanks for picking Leonida up after the original repository went private.

With around 460 open pull requests and the claims thread in #14, a lot of coordination still runs through one person. I would like to offer a way to share the review and merge work, and I set up a working copy so you can see it.

The demo

tibzejoker/leonida-ubq is a fork of main with any%5 installed. Its merge queue checks for game data, compiles make_game.py, builds the runtime with MSVC and runs ctest (excluding d3d12_sparse_queue_family, which needs a GPU the hosted runner does not have). It is green on your current main. Before the original went down I ran the same setup on a private copy of Leonida: seven changes went through blind review and the queue, including an A8 texture format fix and five test fixes from another contributor.

any%5 also has leased tasks (anyp5 task / claim) that could replace claims posted by hand in #14.

What any%5 is

any%5 is a small tool for projects that get more pull requests than their maintainers can read. It runs on GitHub alone (an Action, an inbox issue and a ledger branch, no server):

  • A contributor sends a change with anyp5 submit. It does not appear as a pull request.
  • The change goes to a few other contributors picked at random, who review it without knowing who wrote it. Known-bad "canary" changes are mixed in, so a reviewer who approves everything loses their review weight.
  • Approved changes are batched onto an anyp5-queue branch, the project's own tests run there, and the main branch only moves when the run is green.
  • Maintainers keep the direction: they open tasks, can veto, and can still push themselves.

What I would like to know

Is this something you would want to try? I can do the setup on this repository, or hand the fork over, or drop it if it does not fit how you work. Questions and objections welcome.

(Disclosure: I wrote any%5, with heavy help from an AI agent. Nothing here contains or links game data.)

Originally created by @tibzejoker on GitHub (Nov 24, 2026). Original GitHub issue: https://github.com/ubiquitarianism/leonida/issues/613 Hi @ubiquitarianism, thanks for picking Leonida up after the original repository went private. With around 460 open pull requests and the claims thread in #14, a lot of coordination still runs through one person. I would like to offer a way to share the review and merge work, and I set up a working copy so you can see it. ## The demo [tibzejoker/leonida-ubq](https://github.com/tibzejoker/leonida-ubq) is a fork of `main` with any%5 installed. Its merge queue checks for game data, compiles `make_game.py`, builds the runtime with MSVC and runs ctest (excluding `d3d12_sparse_queue_family`, which needs a GPU the hosted runner does not have). It is green on your current `main`. Before the original went down I ran the same setup on a private copy of Leonida: seven changes went through blind review and the queue, including an A8 texture format fix and five test fixes from another contributor. any%5 also has leased tasks (`anyp5 task` / `claim`) that could replace claims posted by hand in #14. ## What any%5 is [any%5](https://github.com/tibzejoker/anyPercent5) is a small tool for projects that get more pull requests than their maintainers can read. It runs on GitHub alone (an Action, an inbox issue and a ledger branch, no server): - A contributor sends a change with `anyp5 submit`. It does not appear as a pull request. - The change goes to a few other contributors picked at random, who review it without knowing who wrote it. Known-bad "canary" changes are mixed in, so a reviewer who approves everything loses their review weight. - Approved changes are batched onto an `anyp5-queue` branch, the project's own tests run there, and the main branch only moves when the run is green. - Maintainers keep the direction: they open tasks, can veto, and can still push themselves. ## What I would like to know Is this something you would want to try? I can do the setup on this repository, or hand the fork over, or drop it if it does not fit how you work. Questions and objections welcome. (Disclosure: I wrote any%5, with heavy help from an AI agent. Nothing here contains or links game data.)
Author
Owner

@juandelacruz-calvo commented on GitHub (Nov 24, 2026):

How do you deal with attempts of intrusive code?

<!-- gh-comment-id:7128924884 --> @juandelacruz-calvo commented on GitHub (Nov 24, 2026): How do you deal with attempts of intrusive code?
Author
Owner

@tibzejoker commented on GitHub (Nov 24, 2026):

Good question, it is the main thing any%5 is built around. Several layers, each assuming the previous one can fail:

  1. Risk tier from what the diff touches, never from who wrote it. Build files, CI, .github/, lock files, third_party/ and scripts are red. So is any added network call, process spawn, WriteProcessMemory/CreateRemoteThread, registry write, URL, eval, or long base64/byte blob. Red changes need more reviewers. Renames, mode changes and binary patches are flagged too, since a line-by-line review cannot see them.
  2. Blind, random reviewers. The author cannot pick or predict who reviews: the draw uses a seed whose hash is published before it is revealed. Reviewers see only the diff, not the author.
  3. Canaries. Planted bad changes, including backdoors, are mixed in and look like real ones. A reviewer who approves them loses weight in future draws, so rubber-stampers stop counting.
  4. A backdoor claim is checked before anyone acts on it. A reviewer can reject with --backdoor. The best-calibrated auditors then confirm it. If they agree, the author is banned, everything they merged is reverted, and everything their approvers passed is re-checked.
  5. The merge queue is sandboxed. Batches never contain .github/ changes, so the workflow that runs is always the one already on main. It runs contributor code with no secrets and a read-only token.
  6. Soak before release. Merged changes get random post-merge re-reviews. A release tag only moves to a commit whose changes have all soaked for 14 days with no open check. The advice is to build release tags, never main.

None of this makes intrusive code impossible. It makes it expensive and likely to be caught, and the cost of being caught is everything you merged.

<!-- gh-comment-id:7128946375 --> @tibzejoker commented on GitHub (Nov 24, 2026): Good question, it is the main thing any%5 is built around. Several layers, each assuming the previous one can fail: 1. **Risk tier from what the diff touches, never from who wrote it.** Build files, CI, `.github/`, lock files, `third_party/` and scripts are red. So is any added network call, process spawn, `WriteProcessMemory`/`CreateRemoteThread`, registry write, URL, `eval`, or long base64/byte blob. Red changes need more reviewers. Renames, mode changes and binary patches are flagged too, since a line-by-line review cannot see them. 2. **Blind, random reviewers.** The author cannot pick or predict who reviews: the draw uses a seed whose hash is published before it is revealed. Reviewers see only the diff, not the author. 3. **Canaries.** Planted bad changes, including backdoors, are mixed in and look like real ones. A reviewer who approves them loses weight in future draws, so rubber-stampers stop counting. 4. **A backdoor claim is checked before anyone acts on it.** A reviewer can reject with `--backdoor`. The best-calibrated auditors then confirm it. If they agree, the author is banned, everything they merged is reverted, and everything their approvers passed is re-checked. 5. **The merge queue is sandboxed.** Batches never contain `.github/` changes, so the workflow that runs is always the one already on `main`. It runs contributor code with no secrets and a read-only token. 6. **Soak before release.** Merged changes get random post-merge re-reviews. A release tag only moves to a commit whose changes have all soaked for 14 days with no open check. The advice is to build release tags, never `main`. None of this makes intrusive code impossible. It makes it expensive and likely to be caught, and the cost of being caught is everything you merged.
Author
Owner

@juandelacruz-calvo commented on GitHub (Nov 24, 2026):

I just think that Github is probably not the kind of place for this project, something like https://radicle.dev/ would fit better

<!-- gh-comment-id:7129464245 --> @juandelacruz-calvo commented on GitHub (Nov 24, 2026): I just think that Github is probably not the kind of place for this project, something like https://radicle.dev/ would fit better
Author
Owner

@tibzejoker commented on GitHub (Nov 24, 2026):

Fair point. any%5's git mode only needs a branch, an inbox and a runner, so it could sit on another forge, Radicle included. It runs on GitHub here because that is where this project and its contributors already are.

<!-- gh-comment-id:7129497703 --> @tibzejoker commented on GitHub (Nov 24, 2026): Fair point. any%5's git mode only needs a branch, an inbox and a runner, so it could sit on another forge, Radicle included. It runs on GitHub here because that is where this project and its contributors already are.
Sign in to join this conversation.
No labels
bug
pull-request
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
starred/leonida#17
No description provided.