policy: inventory victory-hle's switches #79

Manually merged
github merged 4 commits from github-bot/gh-79 into gh-pr/79/base 2026-12-01 12:16:41 +00:00 AGit
Owner

@⁠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 UTC

What

The policy test only walked greenfield and crates/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-hle is now in ROOTS; the 26 VICTORY_* switches it actually reads are listed in toggles.txt with a kind and a pointer to their definition; oversize.txt now lists the two victory-hle files the file-size check sees for the first time (xmem.rs, dstorage.rs). The lib.rs count 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.
  • No GPU run: this changes only the static policy data and the test's source roots.

Checklist (docs/AGENTS.md)

  • On current main, one topic (rule 31); docs/TASKS.md not edited, the fixed item named above (rule 29)
  • No fallback or second path; no switch added, removed or changed (rule 33)
  • No constants or tuned values introduced (rule 9b)
  • Every new switch is listed in the inventory with its kind; bad values are still checked at the definitions (rule 2)
  • No queues touched (rule 35)
  • No unsafe changed (rule 36)
  • Policy test and cargo check --tests pass; no translator output change (rule 27)
  • Comments say what is true now (rule 3)
  • Nothing from the title, no non-free data pointers (hard constraints)
**@⁠TheRifai** on GitHub · 2026-12-01 11:56 UTC · [original](https://github.com/vktory6/VKtory/pull/79) `TheRifai:hle-toggle-inventory` → `main` · +36 −1 · 3 files · 4 commits · merged 2026-12-01 12:15 UTC ## What The policy test only walked `greenfield` and `crates/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-hle` is now in `ROOTS`; the 26 `VICTORY_*` switches it actually reads are listed in `toggles.txt` with a kind and a pointer to their definition; `oversize.txt` now lists the two victory-hle files the file-size check sees for the first time (`xmem.rs`, `dstorage.rs`). The `lib.rs` count 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. - No GPU run: this changes only the static policy data and the test's source roots. ## Checklist (docs/AGENTS.md) - [x] On current `main`, one topic (rule 31); `docs/TASKS.md` not edited, the fixed item named above (rule 29) - [x] No fallback or second path; no switch added, removed or changed (rule 33) - [x] No constants or tuned values introduced (rule 9b) - [x] Every new switch is listed in the inventory with its kind; bad values are still checked at the definitions (rule 2) - [x] No queues touched (rule 35) - [x] No `unsafe` changed (rule 36) - [x] Policy test and `cargo check --tests` pass; no translator output change (rule 27) - [x] Comments say what is true now (rule 3) - [x] Nothing from the title, no non-free data pointers (hard constraints)
Add crates/victory-hle to the policy test's ROOTS so rule 2 covers it, list the
26 VICTORY_* switches it reads in toggles.txt, and list the two oversized
victory-hle files in oversize.txt now that the file-size check sees them.
Policy test 6/6 and cargo check -p vkback --tests pass.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 12:00:49 +00:00
The header claimed owner, reason and removal condition at every definition; most give only a
reason, so it now says so and points at the task. lib.rs stays at main's 4364 (the file is 4361
there): raising the allowance to the old base's count would loosen the check.
github-bot changed target branch from main to gh-pr/79/base 2026-12-01 12:16:40 +00:00
github manually merged commit 373f9c303b into gh-pr/79/base 2026-12-01 12:16:41 +00:00
Author
Owner

@⁠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:

  • The inventory header: it said every definition has an owner, reason and removal condition. Most give only a reason, so it now says so and points at the task.
  • lib.rs keeps main's allowance (4364; the file is 4361 there). Raising it to the old base's count would have loosened the check.
  • Main merged in, plus the two switches #66 added (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.

**@⁠vktory6** on GitHub · 2026-12-01 12:16 UTC · [original](https://github.com/vktory6/VKtory/pull/79#issuecomment-7310899277) 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: - **The inventory header:** it said every definition has an owner, reason and removal condition. Most give only a reason, so it now says so and points at the task. - **`lib.rs` keeps main's allowance** (4364; the file is 4361 there). Raising it to the old base's count would have loosened the check. - **Main merged in, plus the two switches #66 added** (`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 (https://github.com/vktory6/VKtory/commit/e509c37). #65 stays open with it.
This discussion has been locked. Commenting is limited to contributors.
No description provided.