The bug
Unlike all other commands that target resource locations, the autocomplete suggestions for /advancement will not suggest vanilla (minecraft) advancements if you begin typing the start of the ID. Submitting the command will still correctly identify the advancement. This also applies to dimensions (possibly related to MC-135392).
How to reproduce
Type
/advancement grant @s onlyPress space and observe the complete vanilla list
Type
adv(the start ofadventure/adventuring_time)
→ ❌ No suggestions are shownClear the chat and type
/recipe give @sPress space and observe the complete vanilla list
Type
aca(the start ofacacia_boat)
→ ✔ All vanilla recipes that begin withacaare shown as suggestions
Fixed by pre-1