Skip to content

refactor(queue): use nanoid for adaptive task IDs - #5

Merged
DerekStride merged 1 commit into
mainfrom
adaptive-id-gen
Mar 23, 2026
Merged

refactor(queue): use nanoid for adaptive task IDs#5
DerekStride merged 1 commit into
mainfrom
adaptive-id-gen

Conversation

@DerekStride

Copy link
Copy Markdown
Owner

What

Refactor task ID generation to use nanoid with a custom lowercase Crockford-style Base32 alphabet. New IDs still start at 3 characters, and the generator increases length by 1 once the current ID space reaches 10% occupancy, while preserving existing IDs and retrying on collisions before assignment.

Switch task ID generation to a custom lowercase Crockford-style Base32 alphabet via nanoid.

Keep assignment logic simple while adapting generated ID length as occupancy reaches the configured threshold and retrying on collisions before persisting new IDs.

Agent: pi
Co-authored-by: ChatGPT <codex@openai.com>
@DerekStride
DerekStride marked this pull request as ready for review March 23, 2026 12:47
@DerekStride
DerekStride merged commit d0bbeb5 into main Mar 23, 2026
1 check passed
@DerekStride
DerekStride deleted the adaptive-id-gen branch March 23, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant