policy: inventory victory-hle's switches #79
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/vktory6--VKtory!79
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-79"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@TheRifai on GitHub · 2026-12-01 11:56 UTC · original
TheRifai:hle-toggle-inventory→main· +36 −1 · 3 files · 4 commits · merged 2026-12-01 12:15 UTCWhat
The policy test only walked
greenfieldandcrates/victory-gpu, so victory-hle's environment switches were never checked against the inventory (docs/TASKS.md, "victory-hle's switches in the toggle inventory", issue #65).crates/victory-hleis now inROOTS; the 26VICTORY_*switches it actually reads are listed intoggles.txtwith a kind and a pointer to their definition;oversize.txtnow lists the two victory-hle files the file-size check sees for the first time (xmem.rs,dstorage.rs). Thelib.rscount is raised by one to the value at this pre-CI branch base; main's file is smaller, so the check still passes there.The reference
No console counterpart: this is our own policy tooling. Rule 2 says every switch read by the code is inventoried with its owner, reason and removal at the definition; this change makes the inventory cover the whole HLE tree instead of silently skipping it. No switch behaviour changes.
Evidence
cargo test -p vkback --test policy --locked: 6 pass (previously the new ROOTS entry alone produced 26 "not in toggles.txt" failures plus two unlisted oversized files).cargo check -p vkback --tests --locked: clean.Checklist (docs/AGENTS.md)
main, one topic (rule 31);docs/TASKS.mdnot edited, the fixed item named above (rule 29)unsafechanged (rule 36)cargo check --testspass; no translator output change (rule 27)@vktory6 on GitHub · 2026-12-01 12:16 UTC · original
Merged, thanks! The walk now covers victory-hle, so no switch there can slip in unlisted again.
I pushed three commits to your branch first:
lib.rskeeps main's allowance (4364; the file is 4361 there). Raising it to the old base's count would have loosened the check.VICTORY_DSP_CONVOLVE,VICTORY_DSP_GAIN): on main the policy test failed on them. They are read directly, so the note about DSP switches the scanner can't see is gone too.All vkback tests pass on the merged tree. The task stays open for the second half, owners and removal conditions or deletion, starting with the A/B switches whose question looks answered (
github.com/vktory6/VKtory@e509c37). #65 stays open with it.github-bot referenced this pull request2026-12-02 10:12:41 +00:00