decisions AMENDED

251. Restarting the machine is a kernel object the progenitor hands out

calef approved the reboot object on PR #1766 on 2026-10-06 (UTC), taking the recommendation of the proposal milestone 805 (reboot at the prompt) was promoted from on all three of its questions. The same day, on #1783, calef ruled the three corrections milestone 805's build found (how reboot syncs, no objtype number, a refusal returns its reason). On 2026-11-02 (UTC) calef ruled that the object and the sync-only capability belong to whatever bytes the owner grants them, not to a program name (clause 2). (Section number provisional until the merge queue lands it.) Milestone 805 built the object, the sync-only capability and the program.

The object, its method, the reboot field and the program reboot carry provisional names under design/naming.md. The sync names are ratified (2026-10-06 UTC): the file-server request and its capability are fs::BIND_SYNC, SyncOnly and Manifest::sync, and "flush" means the block device's own cache command only. So are reboot_capability (capability is never abbreviated cap) and the four errors under "A refusal returns its reason".

The ruling

  1. A new kernel object kind carries the authority to restart the machine. It has no payload: the kernel stores nothing in it, and it names no device. It has one method and its own method module, abi::reboot, and no abi::object_type number (below; the ruling of 2026-11-11 (UTC) spelled out the module's name). This is a new method within the capability model of §10 (process model: capability-based, microkernel) and §16 (object revocation). It adds no system call number.
  2. The kernel creates exactly one at boot and grants it to the progenitor. The progenitor endows it to a job whose manifest declares the reboot field and whose bytes something vouches for: the image's measured archive for the image's own programs, or an owner's grant line for installed bytes (ruled 2026-11-02 UTC). The grant line binds to the bytes' digest, or to the package identity where a package vouches for them, and it names no program. Nothing in nife keys the object on a program's name, and several programs on one system may hold it. A job that does not declare it, or whose declaration nothing vouches for, holds none. The image's reboot holds it through the measured archive and stays the default. The same rule governs the sync-only capability, Manifest::sync.
  3. The image's reboot syncs the writable filesystem through a sync-only capability, waits for the reply, then invokes REBOOT (below). An ordered shutdown of services is deferred to milestone 853 (orderly shutdown closes the sync window), which will add its step before the SYNC.
  4. Power-off is excluded. It is a separate program and a separate object kind, so holding the reboot object confers no power to switch the machine off.

The kernel grants the progenitor the object with WRITE | GRANT at slot 31. The progenitor never invokes it, but delegation only narrows. It places the object with WRITE alone at slot 13 (grant_plan::REBOOT_SLOT).

The method

REBOOT takes no arguments. Holding the capability is the whole authority; the method checks no rights bit beyond what invoking any object needs.

A board's PMIC route runs in userspace

Ruled 2026-11-10 (UTC). A board that resets through its power controller does so from userspace, not from the reboot object. On a JH7110 the I2C master and the AXP15060 PMIC write leave the kernel for a userspace PMIC route: a process that holds the I2C controller's page as a DeviceFrame and answers one request, reset the board.

The route is components/src/power_management_chip_route.rs, from milestone 1062 (the device control planes leave the kernel). Its starter brings I2C5 up at boot through the JH7110 clock and reset server of §320 (the JH7110 clock and reset wire), and the kernel holds no I2C master. The route's name and its request are provisional, like the object's.

How reboot syncs: a sync-only capability

For an ordinary client, fs::SYNC needs a handle carrying dir::WRITE, which is also the right to open and truncate files by name. So the file server has one more protocol message, filesystem_protocol::fs::BIND_SYNC (66, provisional), beside BIND and UNBIND (milestone 606 (a directory walk costs what it does on Linux), ruling D). It binds a client badge sync-only: the server answers SYNC on that badge with the block server's flush count and refuses every other verb with EPERM, before it reads a handle. The badge names no directory and reaches no file. BIND's caller rule holds (only an unbound badge may bind), and UNBIND revokes it like any grant. It is a server message on an existing endpoint, inside the badge model of §230 (badged endpoint capabilities), and adds no system call and no kernel method.

Alternatives considered:

Prior art, recalled, not re-read:

The object has no object_type number

object_type lists what MemoryRegion::RETYPE_OBJECT (method 2, its name spelled out by the ruling of 2026-11-11 (UTC)) can make out of memory. Nothing makes a reboot object, and a number there would read as a way to. It has a method module, abi::reboot, like Irq, the other kernel-minted object.

Alternatives considered:

Prior art, recalled, not re-read:

A refusal returns its reason

Why SYNC and no more

RedoxFS is the writable filesystem, and notes/fs-server.md measures it prefix-consistent at every power-cut point. Milestone 37 (prove RedoxFS's crash consistency) showed a cut loses only a suffix of the workload. SYNC reaches a real device flush in both the virtio and NVMe block servers, which makes "nothing acknowledged is lost" true on a device with a volatile write cache. No service yet holds state a stop message would save: the system log of milestone 613 (a system log service: the in-memory half) lives in memory only.

What was refused

Option Why it lost
B. A method on an existing object No existing object names the machine, and a "may reset" bit on the root MemoryRegion would make every memory grant a question about power.
C. A user-mode driver holding device authority PSCI and SBI calls cannot be made from user mode, so it works on x86_64 alone and breaks §19 (architectural parity).
D. A new system call number Ambient authority with no identity for the kernel to check, and a new number is its own fork.
E. An op on milestone 391 (kernel introspection over an endpoint)'s endpoint §149 (may the kernel answer on an endpoint) left that open, and it would put a harmless read and a destructive act behind one capability.
Power-off in the same milestone, or a --off flag One program, one thing (2026-09-26), and on radon a powered-off board needs a person at smart plug 2.
The object bound to the program named reboot Nife would then name every program that may restart the machine, and an owner could not install a replacement from a source they opted into (§195 (a reviewed recipe vouches for a package)). Refused 2026-11-02 (UTC) in favor of the owner's grant in clause 2.

At equal cost the answer is the same. The reboot object is the only option that is both a capability and possible on all three architectures. Fuchsia's zx_system_powerctl, which takes a resource handle, is the same shape; Linux's reboot(2) behind CAP_SYS_BOOT is D with an identity check. Both are recalled, not re-read.

Open