Description
Currently, the updateUsers method in Storage.mjs strictly slices the users.jsonl array at config.github.maxUsers. This creates an unfair scenario where manually allowlisted users (e.g., conference speakers who haven't met the organic threshold) consume slots that belong to organic, high-contributing developers.
Requirements
- Update
apps/devindex/services/Storage.mjs.
- Inside
updateUsers(), fetch the current allowlist size.
- Calculate the
effectiveMax as config.github.maxUsers + allowlist.size.
- Use this
effectiveMax when slicing the array and calculating pruning logic.
- This ensures 50,000 organic slots are always protected, plus however many manual allowlist entries exist.