victory-gpu: remove the broken VICTORY_AB phase switch #53

Manually merged
github merged 2 commits from github-bot/gh-53 into gh-pr/53/base 2026-12-01 08:43:52 +00:00 AGit
Owner

@⁠TheRifai on GitHub · 2026-12-01 08:22 UTC · original
TheRifai:gpu-remove-victory-ab → main · +7 −121 · 10 files · 2 commits · merged 2026-12-01 08:38 UTC

What

VICTORY_AB (diagnostics A/B phases) is broken: nothing starts a phase any more, so a switch named in it is off for the whole run instead of alternating (issue #40). Per AGENTS.md rule 2 (no dead toggles), remove it and its readers' hooks:

  • delete ab.rs and victory_gpu::switched();
  • collapse toggled! / asked_for! and the ab::pick readers (no_reset, sync_jobs, lane_core, side_by_side, titlewrite::import) to read their own variable once;
  • drop VICTORY_AB from greenfield/tools/policy/toggles.txt.

Net −119/+7 lines. Every affected switch now behaves exactly as its non-diagnostics path already did.

Evidence

  • cargo test -p vkback --test policy: 6 pass, incl. toggles_registered and toggle_scan_finds_reads.
  • tools/build.sh (PE, diagnostics) compiles.
  • 70 s house run with VICTORY_SYNC_FINE=1: reaches the world, survives, and shows only the pre-existing known rule-32 loud kinds (no new kind). The switch takes effect via read-once.
**@⁠TheRifai** on GitHub · 2026-12-01 08:22 UTC · [original](https://github.com/vktory6/VKtory/pull/53) `TheRifai:gpu-remove-victory-ab` → `main` · +7 −121 · 10 files · 2 commits · merged 2026-12-01 08:38 UTC ## What `VICTORY_AB` (diagnostics A/B phases) is broken: nothing starts a phase any more, so a switch named in it is **off for the whole run** instead of alternating (issue #40). Per AGENTS.md rule 2 (no dead toggles), remove it and its readers' hooks: - delete `ab.rs` and `victory_gpu::switched()`; - collapse `toggled!` / `asked_for!` and the `ab::pick` readers (`no_reset`, `sync_jobs`, `lane_core`, `side_by_side`, `titlewrite::import`) to read their own variable once; - drop `VICTORY_AB` from `greenfield/tools/policy/toggles.txt`. Net −119/+7 lines. Every affected switch now behaves exactly as its non-diagnostics path already did. ## Evidence - `cargo test -p vkback --test policy`: 6 pass, incl. `toggles_registered` and `toggle_scan_finds_reads`. - `tools/build.sh` (PE, diagnostics) compiles. - 70 s house run with `VICTORY_SYNC_FINE=1`: reaches the world, survives, and shows only the pre-existing known rule-32 loud kinds (no new kind). The switch takes effect via read-once.
Nothing starts an A/B phase any more, so a switch named in VICTORY_AB was off for
the whole run instead of alternating (issue #40). Remove ab.rs, the switched()
hook, and the ab readers in toggled!/asked_for! and in no_reset/sync_jobs/
lane_core/side_by_side; every switch now goes by its own variable, read once
(AGENTS.md rule 2, no dead toggles). Drop VICTORY_AB from toggles.txt.

vkback policy tests pass (toggles_registered, toggle_scan_finds_reads); PE builds;
a 70 s house run with VICTORY_SYNC_FINE=1 reaches the world with only the known
rule-32 loud kinds.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 08:27:24 +00:00
github-bot changed target branch from main to gh-pr/53/base 2026-12-01 08:43:50 +00:00
github manually merged commit dec128a442 into gh-pr/53/base 2026-12-01 08:43:52 +00:00
Author
Owner

@⁠vktory6 on GitHub · 2026-12-01 08:38 UTC · original

Merged, thanks! This is the removal decided in #40 (rule 2), and each switch now reads its own variable once, as its normal path already did. One commit of mine on top (dec128a) takes the finished line out of TASKS.md.

Check on the reference system (RX 9070 XT): the PE build with diagnostics (where the removed code lived), victory-gpu and vkback tests, and policy pass. The house-scene validation run shows no new error.

**@⁠vktory6** on GitHub · 2026-12-01 08:38 UTC · [original](https://github.com/vktory6/VKtory/pull/53#issuecomment-7305587758) Merged, thanks! This is the removal decided in #40 (rule 2), and each switch now reads its own variable once, as its normal path already did. One commit of mine on top (dec128a) takes the finished line out of TASKS.md. Check on the reference system (RX 9070 XT): the PE build with `diagnostics` (where the removed code lived), victory-gpu and vkback tests, and policy pass. The house-scene validation run shows no new error.
This discussion has been locked. Commenting is limited to contributors.
No description provided.