Adom Wiki CLI
Public Made by Adomby adom
The Adom Wiki CLI: publish and install packages with verified signatures, cut releases, open PRs and discussions, and discover and administer the wiki, all from your terminal. Replaces adompkg.
discover list --limit silently truncates at 9,998 rows while reporting total 10,841; manual --offset returns the rest
discover list --limit N walks offsets internally (per the --limit help text, adom-wiki-cli#34), but the walk stops at 9,998 rows while the very same response reports total: 10841. No warning, no error, exit 0.
Reproduction
adom-wiki discover list --type component --limit 30000 --json
# rows returned: 9998
# data.total: 10841
Asking for more does not help: --limit 20000 and --limit 30000 both return exactly 9,998.
Manual pagination reaches the missing rows perfectly well, so the data is there and only the internal walk is short:
adom-wiki discover list --type component --limit 200 --offset 10200 --json # 200 rows
adom-wiki discover list --type component --limit 200 --offset 10600 --json # 200 rows
Walking --offset by hand in 200-row pages returns 10,841, exactly the reported total.
Why this one bites harder than the count suggests
The 843 rows it drops are not random: --sort defaults put the most recently updated pages at one end, so a truncated read silently hides the newest pages. Those are precisely the ones any freshness check is asking about.
Concretely, the component-page factory uses this call to answer "does this part already have a page?" before spending a full build on it. A short read there means rebuilding a page that already exists and only finding out at pkg publish (already published), after the datasheet fetch, the LLM extraction, symbol, footprint, STEP, GLB, lbr, hero, build and lint have all been paid for. That failure has already cost 889 full pipeline runs from a different stale-cache bug; this call was the intended fix, and it would have quietly reintroduced 843 of the same collisions.
Suggested behaviour
Any of these closes it; the first is the least surprising:
- keep walking until the accumulated count reaches
total, or the server returns a short page; - if the walk stops early, return a non-zero exit or a
hints[]entry saying the result is partial and naming the count and the total; - failing both, document the ceiling in
--limit's help so callers know to paginate themselves.
Silent truncation is the worst of the three, because the caller cannot tell a complete answer from a partial one, and the response carries the number that proves it is partial.
Environment
adom-wiki-cli via adom-wiki on ROG-Zephyrus, adom-cli 0.5.18, 2026-09-10.