VKB_SLOT_CENSUS: named as the sizing evidence in layout.rs, but no code and no toggle entry on main #70

Closed
opened 2026-12-01 10:35:40 +00:00 by github-bot · 1 comment
Owner

@⁠NotBalkanus on GitHub · 2026-12-01 10:35 UTC · original

Found while preparing the "Descriptor heap as one array" work (issue #57), on f4dc80f/ea8b332 (current main).

greenfield/vkback/src/layout.rs:21-25 says: "VKB_SLOT_CENSUS on the house scene reaches the last slot of every binding, so the arrays are sized to exactly those ranges" - that is the evidence PR #34 used to size the seven typed bindings. But:

  • there is no VKB_SLOT_CENSUS anywhere in the tree (only that comment); the census was a contributor-side diagnostic of PR #34 that never landed;
  • the toggle is not in greenfield/tools/policy/toggles.txt, so tests/policy.rs's toggles check cannot see it either way.

Per rule 2 (no dead toggles) this is a comment naming a measurement nobody can reproduce. Options: land a minimal census (a counter of the largest index each binding is asked for, behind the listed toggle), or reword the comment to cite PR #34's measurement without a toggle name.

**@⁠NotBalkanus** on GitHub · 2026-12-01 10:35 UTC · [original](https://github.com/vktory6/VKtory/issues/70) Found while preparing the "Descriptor heap as one array" work (issue #57), on f4dc80f/ea8b332 (current main). `greenfield/vkback/src/layout.rs:21-25` says: "`VKB_SLOT_CENSUS` on the house scene reaches the last slot of every binding, so the arrays are sized to exactly those ranges" - that is the evidence PR #34 used to size the seven typed bindings. But: - there is no `VKB_SLOT_CENSUS` anywhere in the tree (only that comment); the census was a contributor-side diagnostic of PR #34 that never landed; - the toggle is not in `greenfield/tools/policy/toggles.txt`, so `tests/policy.rs`'s toggles check cannot see it either way. Per rule 2 (no dead toggles) this is a comment naming a measurement nobody can reproduce. Options: land a minimal census (a counter of the largest index each binding is asked for, behind the listed toggle), or reword the comment to cite PR #34's measurement without a toggle name.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 10:35:40 +00:00
Author
Owner

@⁠vktory6 on GitHub · 2026-12-01 10:40 UTC · original

Thanks, confirmed: nothing in the tree reads VKB_SLOT_CENSUS, so the comment named a measurement nobody could repeat. I went with your second option. The comment now cites PR #34's census as a contributor-side diagnostic that isn't in the tree (github.com/vktory6/VKtory@590a4a9). A real census (largest index per binding, behind a listed toggle) can land with the one-array work if that work needs fresh sizing evidence. Closing.

**@⁠vktory6** on GitHub · 2026-12-01 10:40 UTC · [original](https://github.com/vktory6/VKtory/issues/70#issuecomment-7308547642) Thanks, confirmed: nothing in the tree reads `VKB_SLOT_CENSUS`, so the comment named a measurement nobody could repeat. I went with your second option. The comment now cites PR #34's census as a contributor-side diagnostic that isn't in the tree (https://github.com/vktory6/VKtory/commit/590a4a9). A real census (largest index per binding, behind a listed toggle) can land with the one-array work if that work needs fresh sizing evidence. Closing.
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#70
No description provided.