Internal: slice 3 of docs/specs/SOFTWARE_WATCH.md. public/server-check.sh, a POSIX shell script served at /server-check.sh, lists the Linux release, kernel, installed packages (dpkg, rpm or apk), the versions of 24 common programs, Docker image names and whether a restart is needed, and posts them to /software-watch/report with the site's report token. With --install (as root) it copies itself to /usr/local/bin, keeps its token in a root-only file and runs once a day from cron; --print shows the report instead; --uninstall removes it. It never reads or sends environment variables, configuration files other than /etc/os-release, keys, user names, the hostname, addresses, ports or processes. A site's page offers Set up the server check: a report token, shown once with the two lines to run, and New report token, which asks first. The endpoint answers JSON: 401 for an unknown or replaced token, 410 for a site in Trash, 413 over 2 MB, 422 naming an unreadable field, 429 within 10 minutes of the last report. A report is stored as one row per source package in its distribution's OSV ecosystem (Ubuntu, Debian, Alpine, Rocky Linux, AlmaLinux), the operating system, the kernel, programs (checked through their packages) and images; packages missing from three reports in a row move to No longer found.
Software Watch: the server check
Internal: slice 3 of docs/specs/SOFTWARE_WATCH.md adds the server check script, its report token and the report endpoint, behind the preview gate.