by adom
How the Adom Wiki (wiki.adom.inc) works and how to drive it with the adom-wiki CLI: the two storage layers (git page repo vs package registry), hosting source by pushing files (not a tarball), making packages, cutting per-platform releases, and the three-tier skill layout (user skills ship, dev-skills/ and publish-skills/ stay source-only). adom-wiki is the current tool; adompkg is deprecated.
Stale-range auto-issues: dependents past the first 50 are never filed
When a package publishes a new latest version, the registry files a "Stale dependency range" issue on each dependent whose declared range now excludes it (the dependent notification from adom/adom-wiki-cli#10). Only the first 50 stranded dependents ever get one.
Where. fileForStrandedDependents() in lib/stale-range-notify.js cuts the staleDependentsOf() list to MAX_DEPENDENTS_PER_PUBLISH (50) before the stale_range_file transaction skips dependents that already have an open auto-issue. The list comes back in the same order each time, so on the dependency's next publish the same 50 already-filed dependents use up the cap again and nothing new is filed.
Effect. For a package with more than 50 stranded dependents, dependents 51 and up never get the issue, so their maintainers are never told their range is stale. The only trace is a server log line saying the rest were "deferred to their next publish", but nothing later files them: a dependent's own publish only closes its resolved issues. Admin health shows nothing.
Example. 120 dependents declare ^0.7.0 on a dependency, which then publishes 0.9.0, 0.9.1 and 0.9.2. The three publishes file 50, 0 and 0 issues; 70 dependents never get one.
Fix. https://github.com/adom-inc/git-wiki/pull/328 (review requested from Colby). It drops already-filed dependents before the cap applies, records anything left past the cap as a backlog row in settings, drains that backlog every 15 minutes on the leader process, and lists it in /api/admin/health with a STALE_RANGE_BACKLOG warning when a backlog is more than a day old. Tests cover the 120-dependent case across three publishes and already-filed dependents not using up the cap.