policy: inventory environment switches in all crates #244

Manually merged
github merged 4 commits from github-bot/gh-244 into gh-pr/244/base 2026-12-02 19:32:44 +00:00 AGit
Owner

@⁠TheRifai on GitHub · 2026-12-02 15:58 UTC · original
TheRifai:toggle-roots-all → main · +49 −5 · 2 files · 4 commits · merged 2026-12-02 19:29 UTC

What

TASKS item "Every crate's switches in the toggle inventory" (renamed from "victory-hle's switches" in main 3aea0e4). The policy walk covered greenfield, crates/victory-gpu and crates/victory-hle; 46 switches read in victory-core, victory-formats, victory-loader, victory-shader and apps were unlisted, so a new one there passed unlisted (PR #182's VICTORY_BC7_DICTIONARY did).

ROOTS now covers greenfield, crates and apps. The 46 missing names are listed with a kind (path, external, test, tune, debug). SIZE_ROOTS keeps the file-size check on its old roots, so this stays one topic.

Evidence

cargo test -p vkback --test policy: 6 passed, 0 failed. Before the entries were added, toggles_registered failed listing exactly those 46 names. No runtime code or build output changed; docs/AGENTS.md rule 2 is now enforced across the whole tree.

Checklist (docs/AGENTS.md)

  • One topic; docs/TASKS.md not edited (rules 29/31)
  • No fallback, constant, switch, queue, unsafe or translator output changed (rules 2/9b/33/35/36/27)
  • Comments say what is true now (rule 3)
**@⁠TheRifai** on GitHub · 2026-12-02 15:58 UTC · [original](https://github.com/vktory6/VKtory/pull/244) `TheRifai:toggle-roots-all` → `main` · +49 −5 · 2 files · 4 commits · merged 2026-12-02 19:29 UTC ## What TASKS item "Every crate's switches in the toggle inventory" (renamed from "victory-hle's switches" in main `3aea0e4`). The policy walk covered `greenfield`, `crates/victory-gpu` and `crates/victory-hle`; 46 switches read in `victory-core`, `victory-formats`, `victory-loader`, `victory-shader` and `apps` were unlisted, so a new one there passed unlisted (PR #182's `VICTORY_BC7_DICTIONARY` did). `ROOTS` now covers `greenfield`, `crates` and `apps`. The 46 missing names are listed with a kind (path, external, test, tune, debug). `SIZE_ROOTS` keeps the file-size check on its old roots, so this stays one topic. ## Evidence `cargo test -p vkback --test policy`: 6 passed, 0 failed. Before the entries were added, `toggles_registered` failed listing exactly those 46 names. No runtime code or build output changed; `docs/AGENTS.md` rule 2 is now enforced across the whole tree. ## Checklist (docs/AGENTS.md) - [x] One topic; `docs/TASKS.md` not edited (rules 29/31) - [x] No fallback, constant, switch, queue, `unsafe` or translator output changed (rules 2/9b/33/35/36/27) - [x] Comments say what is true now (rule 3)
TASKS "Every crate's switches in the toggle inventory" (renamed in 3aea0e4):
the toggle walk covered greenfield, victory-gpu and victory-hle only; 46
switches read in victory-core/formats/loader/shader and apps passed unlisted.
ROOTS now covers greenfield, crates and apps; SIZE_ROOTS keeps the size check
unchanged (one topic). Added the 46 missing names with a kind each.

cargo test -p vkback --test policy: 6 passed, 0 failed. No runtime change.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 16:01:45 +00:00
Author
Owner

@⁠TheRifai on GitHub · 2026-12-02 17:49 UTC · original

Maintenance note (no force-push, PR left open). Main moved to 88d66ae (#223 size-check and #202 switch validation merged). I rebased this branch locally onto that base, resolved the conflicts by keeping ROOTS = all crates/apps with main's SIZE_ROOTS, and removed six registry entries that #202/#212 made stale (VICTORY_CONSOLE_DXC, VICTORY_DIFF_ONLY, VICTORY_PC_DXC, VICTORY_POOL_NO_ASSERT, VICTORY_POOL_SITES, VICTORY_PROBE). cargo test -p vkback --test policy: 6 passed, 0 failed; local branch toggle-roots-all in /home/shlong/Documents/VKtory-toggleroots.

I could not push the corrected branch: POST /repos/TheRifai/VKtory/git/refs still returns 404 for a valid commit SHA, GraphQL createRef is FORBIDDEN for this token, and git push is rejected for missing workflow scope on the unchanged workflow file. Same blocker as on #147; account credentials/permissions are needed.

**@⁠TheRifai** on GitHub · 2026-12-02 17:49 UTC · [original](https://github.com/vktory6/VKtory/pull/244#issuecomment-7353682476) Maintenance note (no force-push, PR left open). Main moved to `88d66ae` (#223 size-check and #202 switch validation merged). I rebased this branch locally onto that base, resolved the conflicts by keeping ROOTS = all crates/apps with main's SIZE_ROOTS, and removed six registry entries that #202/#212 made stale (`VICTORY_CONSOLE_DXC`, `VICTORY_DIFF_ONLY`, `VICTORY_PC_DXC`, `VICTORY_POOL_NO_ASSERT`, `VICTORY_POOL_SITES`, `VICTORY_PROBE`). `cargo test -p vkback --test policy`: 6 passed, 0 failed; local branch `toggle-roots-all` in `/home/shlong/Documents/VKtory-toggleroots`. I could not push the corrected branch: `POST /repos/TheRifai/VKtory/git/refs` still returns 404 for a valid commit SHA, GraphQL `createRef` is FORBIDDEN for this token, and `git push` is rejected for missing `workflow` scope on the unchanged workflow file. Same blocker as on #147; account credentials/permissions are needed.
github-bot changed target branch from main to gh-pr/244/base 2026-12-02 19:32:41 +00:00
github manually merged commit 1ac08e3179 into gh-pr/244/base 2026-12-02 19:32:44 +00:00
Author
Owner

@⁠vktory6 on GitHub · 2026-12-02 19:30 UTC · original

Merged, thanks. We merged main into your branch (the nohacks removals took VICTORY_POKE and the write-site switches with them) and dropped the stale entries; the policy test passes on the public and the private tree. Every environment switch in every crate is now on the inventory, so a new one fails the policy test until it is listed with its owner and removal condition.

**@⁠vktory6** on GitHub · 2026-12-02 19:30 UTC · [original](https://github.com/vktory6/VKtory/pull/244#issuecomment-7356281833) Merged, thanks. We merged main into your branch (the nohacks removals took VICTORY_POKE and the write-site switches with them) and dropped the stale entries; the policy test passes on the public and the private tree. Every environment switch in every crate is now on the inventory, so a new one fails the policy test until it is listed with its owner and removal condition.
This discussion has been locked. Commenting is limited to contributors.
No description provided.