notes

Review package: grant_contract

The grant_contract package of crate-reviews.md, written with script/crate-review-packet grant_contract. It is the second of two for the split in milestone 1094 (grant_plan: what an outside maintainer would fix before it leaves); grant-plan.md is the first.

In one paragraph

grant_contract is what a program links to say what it may ask for, and what the planner reads to decide. It holds the manifest types: Manifest, the file and directory declarations, the rights bits and the authorities a program asks for. It also holds the slot constants a program finds its holdings in, and the verb narrowing that turns a manifest into the subset a verb needs. It is no_std with no allocator and no unsafe, and depends on program_argument_contract. grant_plan and nine other packages in nife link it.

Identity

item value
crate grant_contract; the name is ruled as built, and the block in lib.rs stays provisional until the name of the library above it is chosen
interface INTERFACE_ID 17, VERSION 1
version 0.1.0; no tag
edition, rust-version 2024; none
license inherited from the nife workspace; no license files in the crate
publish false
size four files under src/: lib.rs 55 lines, manifest.rs 749, manifest/tests.rs 99, verbs.rs 482
consumers in nife components, capability_manifest_note, grant_plan, program_asks (dev), program_table, swish, system_initializer, timetable, fixtures, fuzz, jig, std_exerciser, system_tests (dev), xtask

Public API

group items
identity VERSION, INTERFACE_ID
slots CATALOG_SLOT, DIAGNOSTICS_SLOT, DOMAIN_SLOT, ENTROPY_SLOT, INDEX_SOURCES_SLOT, INSTALLER_REPLY_SLOT, INSTALLER_SLOT and the rest of the slot list
declarations FileGrantDeclaration, DirectoryGrantDeclaration (Forbidden, Required)
manifest Manifest, with is_well_formed; RIGHTS_BITS_DO_NOT_OVERLAP, the compile-time check that the rights bits share no bit
verbs verbs::ManifestAuthorities (a u16 set with union, contains, bits, from_bits), VerbGrant, narrow_by_verb, verb_key, delegated_identity, page_verb, MAXIMUM_VERB_BYTES

The packet lists every item with its signature.

Proofs and falsification patches

None. The crate has no Kani harness and no falsification patch. Tests cover the manifest's well-formedness and the verb narrowing; grant_plan's tests exercise both again through the planner. The wire identity is the INTERFACE_ID and VERSION pair above, which the elf note of milestone 597 (a program carries its manifest in an ELF note) reads.

Names

python3 helpers/name_release.py --draft grant_contract lists 75 names: 71 ratified (2026-11-20 UTC), the crate and its two modules manifest and verbs still provisional, and one private item with no block. The ratified names include the slot constants, the verb-authority bits, the manifest methods, Manifest, WordGrant, VerbGrant, narrow_by_verb, verb_key, page_verb, delegated_identity, MAXIMUM_VERB_BYTES, RIGHTS_BITS_DO_NOT_OVERLAP and the private field length_bytes.

The crate carries no doc(alias) of an earlier nife spelling.

Naming rules

Checked with helpers/name_checks.py: no finding.

License

As for grant_plan: inherited today, written into the crate's own manifest by the move, with both license files. The crate adapts no source.

What the release still needs

item owner
A README, with an example a doctest runs. the move lane
rust-version, repository, and the license files. the move lane
A review of 51 milestone citations, 29 section citations, 17 nife paths and 4 provenance lines in shipped text. the move lane
The tag v0.1.0. calef

Proposed items

Milestone 1094 carries the state of each finding. These remain for the move.

  1. P1-5: a Kani harness for the manifest's well-formedness and for the verb narrowing, with a falsification patch for each, written in the new repository before any tag.
  2. P1-14: the first mutation run of the crate, in the new repository before any tag.
  3. P1-9: documentation for a stranger; the move strips the citations and the provenance lines.

P1-9b and P1-13 are built.

Open questions

None for this package.

Result of script/crate-standalone

The run fails on the crate and module names not yet ratified (python3 helpers/name_release.py --draft grant_contract prints the table), the missing README, license files and rust-version, and the citations listed above. The two path dependencies are sibling crates in nife. The run skips the build and proofs because the copy needs them.

Recommendation

Cleared to move. The architect cleared this review together with grant_plan's on 2026-11-22 (UTC), which approves creating partsfoundry/grant_contract with publish = false, no tag and no publication. The crate depends on program_argument_contract, so it moves after that crate has its own repository. The proofs (P1-5) and the first mutation run (P1-14) happen in the new repository before any tag.