decisions DECIDED

309. A supervised job's ThreadControlBlock goes to the shell that asked for it

Number provisional; the integrator mints it at merge.

Raised by milestone 48 (job control)'s phase two, on nifeos/nife#2332. calef ruled option A on 2026-10-18 (UTC), and the same day ruled the two clauses below that A left open: no wiring bit asks for the capability, and it travels without GRANT.

The decision

When the progenitor builds a supervised job, it hands the job's ThreadControlBlock capability to the shell that requested the job. The progenitor keeps no copy.

Why the shell, and not the progenitor

The shell already holds the region a supervised job was built from, and DESTROY on that region ends the job. On a started thread a TCB admits only SUSPEND and RESUME: CONFIGURE, CAP_INSERT, START and SET_THREAD_POINTER refuse anything but an embryo. So the shell gains pause and nothing more. That is milestone 48's own premise, that a job is what the shell holds capabilities for, made true for the one kind of job where the rest was already true.

The refused option, B, kept the TCB in the progenitor and added suspend and resume requests to the spawn channel. That would put a second party between the shell and its own job, add a request vocabulary to a wire two programs agree on, and leave the progenitor holding authority over threads it built for someone else. At equal effort A still wins, and the efforts are about equal.

What it leaves alone