Part of Sunlight Linux · slinit · slpam · slinstaller · slkernel · slpkgs · sldocs · slmanifests
Documentation for Sunlight Linux: what the system must do, how it is specified, what is planned, the configuration known to work, and what was learned when things went wrong.
Plain Markdown with no code, build or tests, checked out at docs/ by the
repo manifest in a default
repo sync, so the documents sit beside the code they describe.
| Project | Details |
|---|---|
| Covers | slinit, slpam, slinstaller and slkernel; each document names the releases it was checked against, so this page does not (first content: 2026-11-28) |
| Contents | Six document kinds, one directory each: requirements, specs, plans, config, ai, findings (see Layout) |
| Checks | check-docs CI: template sections, status lines, relative links, pinned links and no typographic quotes, offline on every push to main; the same plus a check, through the GitHub API, that every github.com/sunlightlinux link exists, on pull requests and weekly |
| Not checked | Whether a claim is true: the script checks form, links and pinning, the reviewer reads the evidence |
| Requires | Nothing to read it; bash to run .github/scripts/check-docs.sh |
| License | Apache 2.0 (LICENSE) |
Each document states its own status in its first lines; this page does not repeat them, so it cannot disagree with them. Large parts of the system are not yet documented here. Where a document could not establish something (whether a kernel tag was boot-tested, display-manager logins), it says so rather than guessing.
Deliberately out of scope: a mirror of code comments (explanations that
belong beside the code stay there), a changelog (git log holds that), and
findings about defects that have not yet shipped a fix.
New here? Start with the Index and pick your project's row: its specs entry says how the thing works, its requirements entries say what it must do. Read the Conventions before trusting a citation marked (working notes).
| Directory | Holds |
|---|---|
requirements/ |
What the system must do, and for whom. Stated so that a reader can tell whether it is met. |
specs/ |
How a requirement is met — interfaces, formats, protocols, state machines. |
plans/ |
What is being done next and in what order, including release planning. |
config/ |
The known-good distribution configuration — kernel config, package sets, service trees, and the reasoning behind the choices. |
ai/ |
How AI agents are used on this codebase: what they are given, what they are trusted to do alone, and what they must not do. |
findings/ |
One document per investigation: the bug, the fix, and what was learned. |
| requirements | specs | plans | config | findings | |
|---|---|---|---|---|---|
| slinit | task limits, signals, LTS fixes only | service manager | 4.0 LTS and 4.1 | 10 findings | |
| slpam | login without elogind | login sessions over login1 | dropping elogind | 4 findings | |
| slinstaller | boots slinit, Sunlight mirror | install pipeline | 4 findings | ||
| slkernel | release tags | kernel config | |||
| distribution | pro audio/video and enterprise server |
Each finding records why the defect was not caught earlier; the fix is in a released tag, named in its header.
slinit
- slinit-logind leaked one session cgroup per logout: the rmdir ran from inside the session
- slinit-logind wrote session strings unquoted into the records polkit reads
- Ctrl+Alt+Del killed PID 1: the shutdown signals were claimed 1600 lines into main
- protect-proc changed the host's /proc: procfs options belong to the superblock
- PID 1's reaper took children before their waiters did: lost exit codes and a failing service reported STARTED
- Hardening silently missing: slinit-runner set per-thread state and exec'd from another thread
- Concurrent setenv killed PID 1, and the suite that would have run it stopped halfway, silently
- 90-second shutdown: a soft dependency counted twice, because slinit's queue is FIFO and dinit's is LIFO
- Soft reboot lost all operator state: its flags were appended after the kernel command-line words, where
flag.Parsestops - v4.0.4 died at start as container PID 1: a thread reserve sized by CPUs alone
slpam
- pam_slinit.so closed the session FIFO, so elogind ended every session at once
- pam_slinit.so passed unchecked input to libdbus: invalid UTF-8 aborted sshd, and the environment chose the bus
- A dbus-daemon that stopped answering hung every login, root's included
- A dbus-daemon with a full listen queue still hung every login
slinstaller
- slinstaller 2.3.0 was built in CI with Go 1.25.0 and 35 reachable stdlib vulnerabilities: setup-go took go.mod's floor as the toolchain
- The Sunlight mirror could vanish from an install without a word
- skipValidationAll switched off the checks that bound what gets destroyed
- A terminal query before main stalled the installer for five seconds
Across projects: open work; how agents work here and what went wrong.
An earlier layout had separate directories for bugs, fixes and discoveries. They are not separate things.
The soft-reboot state-loss defect is the example. One cause — injected
flags appended where argument parsing never reached them — produced four
symptoms, took four wrong hypotheses to find, and the most valuable
output was neither the bug nor the patch but a set of transferable
lessons: that the development VM was the only environment where the
defect could not appear, and that quiet on the kernel command line
silences the diagnostics you would reach for.
Split across three directories, that is three stubs and two cross-references. As one document it is a thing someone can read.
Splitting later is a git mv if this turns out wrong.
- Markdown, one topic per file, named for the topic rather than a date or a ticket number.
- Working notes are private notes kept by the maintainer and by agents. They are not public and cannot be checked by a reader. Documents cite them only where nothing public records the fact, and mark each such claim (working notes).
- Everything else a document must do — checkable claims, an honest status, evidence beside each number, one source per fact — is in CONTRIBUTING.md.
Contributions are Markdown. CONTRIBUTING.md says where a
document goes and what makes one worth having; run
.github/scripts/check-docs.sh (add --external to fetch every GitHub link)
before opening a pull request. Vulnerabilities in the system itself go to the
repository that holds the code; see SECURITY.md.
LLM-assisted work follows CLAUDE.md.
Apache License 2.0; see LICENSE.