VKB_SLOT_CENSUS: named as the sizing evidence in layout.rs, but no code and no toggle entry on main #70
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#70
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@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-25says: "VKB_SLOT_CENSUSon 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:VKB_SLOT_CENSUSanywhere in the tree (only that comment); the census was a contributor-side diagnostic of PR #34 that never landed;greenfield/tools/policy/toggles.txt, sotests/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.
@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.