roadmap PARTIAL

933. Every job is built the way a supervised job is

Raised by milestone 48 (job control)'s phase one, which could give &, wait, kill and fg only to supervised jobs. Name: provisional.

Reuse: the tree's own supervised-job path (spawn_interruptible in the progenitor's spawn loop) and the screen-narrowed tail's shell-held exit endpoint (§106) are the parts to take; no outside code applies, since the question is this kernel's spawn protocol.

Why

The progenitor builds a supervised job out of a region the shell holds, so the shell can tear it down. The job shares a frame with the shell, so the shell can interrupt it and see it finish. The progenitor built every other job in its own pool. The progenitor deleted its thread control block at START (§142 (what a spawner retains over a child after START)), the job answered on the one result rendezvous every job shares, and job_undertaker held its supervision endpoint and reaped it. The shell held nothing for it, so it could neither wait on it nor stop it.

Ruling

2026-10-27 (UTC), about 22:30: yes. The shell holds the region of every job it starts and an endpoint where the job's exit arrives, the shape of §106 (take the terminal_sink_caretaker narrowing). The shell reaps these jobs. The progenitor learns that a job's file-service window is free some way other than the undertaker's "reaped" message. The shell's endowment grows by what the progenitor's pool shrinks. The cooperative tier, a std program's SIGINT, stays its own question. The architect weighed a Unix parent shell, Fuchsia process handles and Genode's parent-paid quotas.

§142 (what a spawner retains over a child after START) carries the amendment.

What is built

The shell holds a job from the program table, started by a plain line or by &. It does not hold pipeline stages, a file run by its path, an installer holder or the graphical terminal; BUGS lists each.

Memory

The numbers are in pages of 4 KiB, measured with free at the prompt on all three architectures (script/swish-check), and counted from the constants.

before after
progenitor's job pool (JOBS_BUDGET_PAGES) 672 672
shell's budget (SHELL_BUDGET_PAGES) 1,152 1,824
a native job's region 48, from the pool 48, from the shell
a directory-granted job's region 98 98
a std job's region 384 384
free's Yours: total 672 1,824
free's Yours: used, idle shell plus free 48 67

The shell's own static pages are 19 (76 KiB): Yours: reads 268 KiB with free running and 192 KiB of that is free. A held job costs the shell 48 pages for its life and nothing after, and the same 48 came from the pool before, so the cost per job moved and did not grow. After a hundred spawn-and-reap cycles of job_sleeper it reads 576 KiB on both sides of the cycles on aarch64, riscv64 and x86_64, the same figure to the kibibyte. The boot shell holds six native jobs and a std job at once (script/swish-check), the pool's old mix; its budget has 1,824 pages for them.

The pool has not shrunk, and the shell's endowment grew by 672 pages. The ruling says the shell grows by what the pool shrinks. The pool still serves pipeline stages, and one graphical terminal session takes 544 of its 672 pages (GRAPHICAL_TERMINAL_SESSION_PAGES), so it cannot shrink until the stages move and the session has another builder. The 672 pages are the same mix the pool holds (six native regions and one std region), so the total grows until the pool follows. The shell's budget also keeps its 1,024 pages for an image's frames.

What ps shows

Milestone 942 (ps and top show which process each thread belongs to, and how many threads it has) groups threads by process within the domain a viewer holds (§223 (the process view is the supervision domain)). A held job is not in the progenitor's domain, because its death arrives on the shell's endpoint. So the progenitor gives a held ps or top the shell's exit endpoint with ENUMERATE as its domain. It lists the jobs this shell holds, itself among them. It does not list the stages of a pipeline, which stay in the progenitor's domain. A ps that is itself a pipeline stage sees the progenitor's domain and not the held jobs. Milestone 942 groups what a domain holds and adds no domain, so it does not change this; a viewer of both domains would need a second domain slot.

Tests

BUGS

Follow-on

Index row

The shell holds the region and the exit of every job it starts from the program table, so &, wait, kill -9 and fg reach an ordinary program. Pipeline stages, files run by their path and the graphical terminal still use the progenitor's pool and job_undertaker. The pool has not yet shrunk.