[GH-ISSUE #4750] Require independent review before unmerged PRs reach the default Nightly channel #1437

Open
opened 2026-11-02 15:46:56 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Mars-den on GitHub (Oct 30, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4750

Horizon is an exciting project, and this is a request to strengthen its release controls so people can try it with confidence. This report was prepared by an AI assistant at my request, from public source inspection; it is not a full security audit and does not allege malware or a confirmed compromise.

Observed release-policy gap

In tools/ci/nightly_set.py at c527d60, check() explicitly states that no review is needed, following a 2026-10-30 decision. The function checks whether a PR is open, targets main, and avoids guarded paths. It does not require approval at the selected head or passing checks. The command is restricted to the owner/trusted reviewers and pins selected heads, which are useful safeguards, but selection is not an independent review gate.

nightly-build.yml at 0f8f59e builds selected PRs on top of main, signs the artifacts in a separate job, and publishes after the smoke-test/release-blocker gate. Its build call explicitly uses trusted: false because the build can contain unreviewed PRs. The workflow comments and release documentation say this Nightly is now the channel all launchers install.

This means the ordinary main-branch review policy does not by itself establish review of all code distributed to users. Protecting pipeline files and separating the signing key are valuable, but arbitrary application code also executes on players' machines. A valid signature and a world-rendering smoke test do not establish that application code is safe.

Requested changes

  • Restore an independent approving review tied to each selected PR's exact head; reject stale approvals, unresolved change requests, and self-approval. Make clear which approvals involve an accountable human reviewer.
  • Require relevant checks on the actual assembled source tree before publication, not just a green main base or a smoke run. Include appropriate dependency/security checks; gameplay parity alone does not cover malicious behaviour.
  • Keep builds containing unreviewed changes behind explicit experimental opt-in. Give ordinary users a reviewed update channel and a way to pause updates or roll back.
  • Document and verify OS-level separation of untrusted build jobs from signing/release identities, credentials, and persistent toolchains. Separate runner labels and a clean checkout alone do not demonstrate isolation.
  • Reconcile docs/security.md with docs/release-flow.md and the actual workflows. The security status table still lists important controls as pending while later prose describes them as active. Publish a dated status that distinguishes implemented controls, repository settings actually enabled, and planned work.

Please address this with enforceable gates and tests that reject an unapproved/stale head and an assembled build with failed checks. This is a release-governance concern based on already-public behaviour, not an exploit disclosure. If any detail needs private discussion, please direct it to the project's private security reporting channel.

Originally created by @Mars-den on GitHub (Oct 30, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4750 Horizon is an exciting project, and this is a request to strengthen its release controls so people can try it with confidence. This report was prepared by an AI assistant at my request, from public source inspection; it is not a full security audit and does not allege malware or a confirmed compromise. ## Observed release-policy gap In [tools/ci/nightly_set.py at c527d60](https://github.com/horizon-rust/horizon/blob/c527d60b752565243a64f572686e8f3e99b656cb/tools/ci/nightly_set.py), check() explicitly states that no review is needed, following a 2026-10-30 decision. The function checks whether a PR is open, targets main, and avoids guarded paths. It does not require approval at the selected head or passing checks. The command is restricted to the owner/trusted reviewers and pins selected heads, which are useful safeguards, but selection is not an independent review gate. [nightly-build.yml at 0f8f59e](https://github.com/horizon-rust/horizon/blob/0f8f59ec2282028e6c59073b0625e90f63891f71/.github/workflows/nightly-build.yml) builds selected PRs on top of main, signs the artifacts in a separate job, and publishes after the smoke-test/release-blocker gate. Its build call explicitly uses trusted: false because the build can contain unreviewed PRs. The workflow comments and release documentation say this Nightly is now the channel all launchers install. This means the ordinary main-branch review policy does not by itself establish review of all code distributed to users. Protecting pipeline files and separating the signing key are valuable, but arbitrary application code also executes on players' machines. A valid signature and a world-rendering smoke test do not establish that application code is safe. ## Requested changes - Restore an independent approving review tied to each selected PR's exact head; reject stale approvals, unresolved change requests, and self-approval. Make clear which approvals involve an accountable human reviewer. - Require relevant checks on the actual assembled source tree before publication, not just a green main base or a smoke run. Include appropriate dependency/security checks; gameplay parity alone does not cover malicious behaviour. - Keep builds containing unreviewed changes behind explicit experimental opt-in. Give ordinary users a reviewed update channel and a way to pause updates or roll back. - Document and verify OS-level separation of untrusted build jobs from signing/release identities, credentials, and persistent toolchains. Separate runner labels and a clean checkout alone do not demonstrate isolation. - Reconcile docs/security.md with docs/release-flow.md and the actual workflows. The security status table still lists important controls as pending while later prose describes them as active. Publish a dated status that distinguishes implemented controls, repository settings actually enabled, and planned work. Please address this with enforceable gates and tests that reject an unapproved/stale head and an assembled build with failed checks. This is a release-governance concern based on already-public behaviour, not an exploit disclosure. If any detail needs private discussion, please direct it to the project's private security reporting channel.
Author
Owner

@Mars-den commented on GitHub (Oct 30, 2026):

Follow-up from a broader independent source review, prepared by an AI assistant at my request. The core concern remains supported, but these qualifications matter:

  • The captured published Nightly was 1da354b67a509812c4141b67de2affd6de65c342, built from main alone, and captured nightly-state at 09689d720320d2f9471086e9f829155bbbf1ba5a had an empty selection. This report does not establish that the current download contains unreviewed selected PRs, or that any compromise occurred.
  • The route requires an authorized selector. Pinned heads, guarded-path revalidation, conflict rejection, compilation/exporter/startup checks, smoke and release-blocker gates are real safeguards. The missing property is independent review and relevant checks on the assembled revision, not an absence of all checking.
  • The default main-base selection checks successful checks and parity-main runs; that does not establish the same results for the subsequently assembled PR combination. Assembly, final gate.
  • A categorical claim that pause/rollback is absent would be wrong: auto-install can be disabled, and selected/pinned Nightlies survive pruning. Binary rollback is still different from restoring a world modified by a new version.
  • The temporary October 28 gate accepted reviews posted by agents using the owner's account. Restoring that code alone would not establish independent human approval. The policy should state which reviewer identities count and how human and agent actions are distinguished.

Suggested acceptance criteria for this issue:

  1. Default-channel selection rejects missing/stale/self approval at the selected head and handles unresolved change requests explicitly.
  2. Publication depends on required checks of the exact assembled SHA/tree, including a regression where individually passing changes fail together.
  3. Direct dispatch and force inputs cannot accidentally bypass the intended ordinary-channel policy; experimental exceptions are explicit and opt-in.
  4. Publish a dated status distinguishing implemented code, actual GitHub review/environment settings and demonstrated runner isolation. The security document's pending-controls table is stale; current signed-download and clean-checkout controls should receive credit, without presenting them as proof of safe code or OS isolation.

No full builds or credential flows were run. A sandboxed extraction of the inspected pure selection/publication gate functions confirmed acceptance of an unreviewed application path, rejection of guarded paths, and rejection of a short smoke report or an open blocker. Broader parity-test scope already has a dedicated discussion in #4187, so I am not opening a duplicate.

<!-- gh-comment-id:6535472098 --> @Mars-den commented on GitHub (Oct 30, 2026): Follow-up from a broader independent source review, prepared by an AI assistant at my request. The core concern remains supported, but these qualifications matter: - The captured published Nightly was `1da354b67a509812c4141b67de2affd6de65c342`, built from main alone, and captured `nightly-state` at `09689d720320d2f9471086e9f829155bbbf1ba5a` had an empty selection. This report does **not** establish that the current download contains unreviewed selected PRs, or that any compromise occurred. - The route requires an authorized selector. Pinned heads, guarded-path revalidation, conflict rejection, compilation/exporter/startup checks, smoke and release-blocker gates are real safeguards. The missing property is independent review and relevant checks on the **assembled revision**, not an absence of all checking. - The default main-base selection checks successful `checks` and `parity-main` runs; that does not establish the same results for the subsequently assembled PR combination. [Assembly](https://github.com/horizon-rust/horizon/blob/ce12bd5b6d0d12bb0706337abd6e5b44532313b1/tools/ci/nightly.py#L163-L204), [final gate](https://github.com/horizon-rust/horizon/blob/ce12bd5b6d0d12bb0706337abd6e5b44532313b1/tools/release_train.py#L257-L274). - A categorical claim that pause/rollback is absent would be wrong: [auto-install can be disabled](https://github.com/horizon-rust/horizon/blob/ce12bd5b6d0d12bb0706337abd6e5b44532313b1/launcher/src/backend.rs#L3113-L3115), and [selected/pinned Nightlies survive pruning](https://github.com/horizon-rust/horizon/blob/ce12bd5b6d0d12bb0706337abd6e5b44532313b1/launcher/src/nightly.rs#L62-L95). Binary rollback is still different from restoring a world modified by a new version. - The temporary October 28 gate accepted reviews posted by agents using the owner's account. Restoring that code alone would not establish independent **human** approval. The policy should state which reviewer identities count and how human and agent actions are distinguished. Suggested acceptance criteria for this issue: 1. Default-channel selection rejects missing/stale/self approval at the selected head and handles unresolved change requests explicitly. 2. Publication depends on required checks of the exact assembled SHA/tree, including a regression where individually passing changes fail together. 3. Direct dispatch and force inputs cannot accidentally bypass the intended ordinary-channel policy; experimental exceptions are explicit and opt-in. 4. Publish a dated status distinguishing implemented code, actual GitHub review/environment settings and demonstrated runner isolation. The security document's pending-controls table is stale; current signed-download and clean-checkout controls should receive credit, without presenting them as proof of safe code or OS isolation. No full builds or credential flows were run. A sandboxed extraction of the inspected pure selection/publication gate functions confirmed acceptance of an unreviewed application path, rejection of guarded paths, and rejection of a short smoke report or an open blocker. Broader parity-test scope already has a dedicated discussion in #4187, so I am not opening a duplicate.
Sign in to join this conversation.
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
horizon-rust/horizon#1437
No description provided.