notes

The resolver's contract: three parties, one endpoint

Name: provisional, minted 2026-10-24 (UTC) by comments/929-crates-17.

An appendix to Name resolution. crates/domain_name_resolution_contract holds what the resolver, its clients and their spawner agree on, under §248 (the name resolver is its own confined program). Three parties share the resolver's endpoint, each with a different capability to it:

  spawner ──unbadged WRITE──┐          (GRANT: badge B may resolve names in zone Z)
                            ▼
  client ──WRITE, badge B──► domain_name_resolver ──Stack──► net_stack ──► a name server
  (ATTACH a page, then RESOLVE)    │
                                   └──entropy──► the transaction id

A grant is a zone, compared label by label (domain_name_system::Name::is_within). Granted nife.test, a client may ask about packages.nife.test and not evilnife.test. One host name is an exact grant, and the empty zone is any name. The grant applies to the name asked, not to the CNAME chain the answer follows.