roadmap BUILT

892. A std program at the prompt holds the network and a name resolver

BUILT, 2026-10-19 (UTC). An installed std program started at the prompt holds the network and a resolver badge per zone, because the owner granted them at jig install. A package the owner does not approve is not installed, and bytes vouched for without a grant are refused the network by name. script/swish-check proves both halves on aarch64, riscv64 and x86_64; the kernel harness proves a name resolved inside a zone, which calef accepted as the proof (ruling B on #2011, 2026-10-12 UTC). His rulings are under "Item 3, ruled", "The network at install, ruled" and "Rulings of 2026-10-19".

(The title and slug are provisional.)

Milestone 801 (packages over the internet) built a std program that resolves a name through std::net and fetches the package index over TLS.

The pieces this joins

jig (milestone 809 (the package client becomes a program)) needs all three to reach basalt.nifeos.org by name, so rung 3c's exit criterion on xenon rests on this.

The work

  1. The progenitor starts domain_name_resolver once the lease arrives, told the lease's name server (socket_contract::lease's second word), as the test harness does with the runners' peer.
  2. The progenitor mints a socket frames' budget for a std program whose manifest declares the network, and places it at slot 3. 595's a_std_program_declares_only_what_the_std_layout_can_hold then admits the network.
  3. A manifest names the zone it may resolve; the progenitor grants a fresh badge that zone and places it at slot 9. Whether the zone is the manifest's word or the owner's is a fork: a manifest can only ask, and §252 (a resolver grant is one zone per client badge) says a spawner grants. For jig it is ruled: the root zone, recorded where it is granted (calef's Q5 on #1884, 2026-10-10 (UTC)). For every other program it is ruled too: see "Item 3, ruled".
  4. A script/swish-check line: an in-tree std program run at the prompt resolves a name in its zone and is refused one outside it, on all three architectures.

Reuse: everything named above is in the tree; this is wiring.

Built 2026-10-12 (UTC), and a premise that was wrong

Lane milestone/892-a-std-program-at-the-prompt-holds-the-network-and-a-resolver. "Reuse: this is wiring" was false. The resolver had eight windows for its life and no way to withdraw a grant (domain_name_resolution_contract's BUGS), and the progenitor outlives every job it spawns, so wiring alone would have let the ninth jig of a boot be refused.

Item 3, ruled 2026-10-12 (UTC)

calef, on #2011: "yes, record c". For every program other than jig, the manifest asks for its resolver zones. The owner grants them at jig install, in the same confirmation as the program's other grants (§208 (installing a package is granting it, and the installed programs are versioned)). The owner can narrow them later. The details he accepted:

All four pieces are built: the zones in the note, the granted zones in the table, a badge per zone, and the line at install. "Built 2026-10-19" has each.

The network at install, ruled 2026-10-12 (UTC)

The ruling above left a gap: an installed std program could not hold the network, so a zone did nothing for one. calef was asked whether a manifest declares network use beside its zones, shown at install before the owner approves (a), or whether the network stays out of manifests and is granted by hand after install (b). He answered "a". The reason he accepted: what a program may reach differs by program, since a weather app that calls one API is not a browser. The network is the same kind of grant as a zone, so it belongs in the same declaration and the same confirmation.

The question as put was loose on two points. The ruling reads as follows with both fixed:

So "network use" means the existing grant: a client view of the network stack carrying WRITE, at NETWORK_SLOT (slot 10) for a native program and slot 2 for a std one. A std program also gets the socket frames' budget at slot 3, as item 2 mints it for jig. It connects out and cannot listen (socket_contract::NO_LISTEN_GRANT).

All three are built with item 3's: the network is endowed only on a recorded grant, recorded in the same grant lines as the zones, and listed in the one confirmation.

The grant stays one flag, ruled 2026-10-12 (UTC). Once the network grant was found to bound no addresses, calef was asked whether it should be limited per destination now (b), or kept as one flag with per-destination limits recorded as a gap (a). He answered "a". The reasons he accepted: Flatpak's --share=network and Android's INTERNET permission are all or nothing too (recalled, not read today), and a per-destination limit comes from a filter layer such as Little Snitch on macOS. Zones already bound which names a program can look up, and a filter in the network stack is a milestone of its own. (a) can be undone; (b) would have committed to building that filter now.

Built 2026-10-19 (UTC)

Lane milestone/892-installed-programs-hold-the-network-and-zones (#2405).

Rulings of 2026-10-19 (UTC), on #2405

calef took the recommendation each time.

BUGS

Follow-on

Index row

A std program installed with jig and started at the prompt holds the network and a name resolver, because the owner granted them at install; one not granted is refused by name.