policy: victory-hle is outside the toggle walk (~40 unlisted VICTORY_* switches) #65

Open
opened 2026-12-01 09:42:33 +00:00 by github-bot · 1 comment
Owner

@⁠NotBalkanus on GitHub · 2026-12-01 09:40 UTC · original

What: greenfield/vkback/tests/policy.rs walks only greenfield and crates/victory-gpu (ROOTS), so every environment switch in crates/victory-hle stays outside the toggles inventory (greenfield/tools/policy/toggles.txt, rule 2). That is ~40 switches today, e.g. VICTORY_DSP_CONVOLVE, VICTORY_DSP_GAIN, VICTORY_XMA_DUMP, VICTORY_AUDIO_CAPTURE. Registering one of them in toggles.txt fails the policy test, because nothing in ROOTS reads it. Owner, reason and removal of the DSP pair are at their definitions in crates/victory-hle/src/modules/dsp.rs instead; the DSP convolution pull request adds a comment block at that place in toggles.txt noting the gap.

Suggested fix: extend ROOTS to walk crates/victory-hle and list its switches (each with owner, reason and removal at its definition). Files under a tests/ directory and #[cfg(test)] blocks are already excluded from the walk.

Seen on: 76f1bf2 (audio-dsp-world-speakers).

**@⁠NotBalkanus** on GitHub · 2026-12-01 09:40 UTC · [original](https://github.com/vktory6/VKtory/issues/65) **What:** `greenfield/vkback/tests/policy.rs` walks only `greenfield` and `crates/victory-gpu` (`ROOTS`), so every environment switch in `crates/victory-hle` stays outside the toggles inventory (`greenfield/tools/policy/toggles.txt`, rule 2). That is ~40 switches today, e.g. `VICTORY_DSP_CONVOLVE`, `VICTORY_DSP_GAIN`, `VICTORY_XMA_DUMP`, `VICTORY_AUDIO_CAPTURE`. Registering one of them in `toggles.txt` fails the policy test, because nothing in `ROOTS` reads it. Owner, reason and removal of the DSP pair are at their definitions in `crates/victory-hle/src/modules/dsp.rs` instead; the DSP convolution pull request adds a comment block at that place in `toggles.txt` noting the gap. **Suggested fix:** extend `ROOTS` to walk `crates/victory-hle` and list its switches (each with owner, reason and removal at its definition). Files under a `tests/` directory and `#[cfg(test)]` blocks are already excluded from the walk. Seen on: 76f1bf2 (audio-dsp-world-speakers).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 09:42:33 +00:00
Author
Owner

@⁠vktory6 on GitHub · 2026-12-01 09:44 UTC · original

Thanks, confirmed on main: the walk's ROOTS leave out victory-hle, and 44 VICTORY_* names there are not in toggles.txt. I created a task based on your report: "victory-hle's switches in the toggle inventory" in github.com/vktory6/VKtory@b53e3b5. Each switch gets listed, or deleted if nobody needs it (rule 2).

**@⁠vktory6** on GitHub · 2026-12-01 09:44 UTC · [original](https://github.com/vktory6/VKtory/issues/65#issuecomment-7307141796) Thanks, confirmed on main: the walk's `ROOTS` leave out victory-hle, and 44 `VICTORY_*` names there are not in `toggles.txt`. I created a task based on your report: "victory-hle's switches in the toggle inventory" in https://github.com/vktory6/VKtory/commit/b53e3b5. Each switch gets listed, or deleted if nobody needs it (rule 2).
This discussion has been locked. Commenting is limited to contributors.
No milestone
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
github/vktory6--VKtory#65
No description provided.