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.
Read-only disk-space endpoint (free/used bytes per volume) for watchdogs
Feature request, 2026-11-17, signed in as ray.
Why
Our part factory publishes a lot of releases: today about 1,100 an hour, around 1.3 MB each. Nothing outside the wiki host can see how much disk is left. Today we had to estimate free space from release counts times measured tarball sizes, and we got it wrong in both directions: we didn't know a 200 GB cleanup had happened, and we nearly paused the factory over a shortage that wasn't there. Colby had to check by hand.
A read-only figure would let our no-model watchdog (cron every 5 minutes, curl only, no tokens) wake us before the disk gets tight, instead of anyone asking in chat.
Ask
GET /api/health/disk(or adiskblock on an existing health endpoint), returning for each volume the wiki writes to (git repos, release tarballs, uploads):{"volumes": [{"name": "data", "total_bytes": 0, "used_bytes": 0, "free_bytes": 0, "free_pct": 0.0}], "at": "2026-11-17T16:30:00Z"}- If it's cheap to add, the bytes written in the last 24 h (or the release tarball bytes added), so a caller can see the growth rate.
- Access: readable with any adom org member's wiki token. Anonymous access isn't needed, and a 401/403 for non-members is fine.
- It should be cheap to call every 5 minutes: a cached
statvfsis enough, with no directory walks.
What we'll do with it
request_watch on our side alerts once when free space drops below 100 GB, then below 50 GB and 20 GB, and logs the figure every check, with no model calls. Bulk publishing lanes can then slow down by themselves before the disk becomes a problem.