946. A granted file name can be longer than sixteen bytes
PARTIAL, 2026-10-24 (UTC). A file named over 16 bytes is granted at the prompt and read,
gated by script/swish-check on aarch64 and x86_64 and by CI on all three. Left: an installed
least_authority_demo run by its package path, which waits on milestone 909 ("BUGS").
(Title and slug provisional.)
Raised 2026-10-20 (UTC) by maintainer/record-2026-10-20, recording calef's ruling of that day on
milestone 922 (the demos are packaged in basalt). He kept the ratified least_authority_demo rather
than shortening it: "B". The fix is to lift the limit that refuses the name. calef asked on
2026-10-24 (UTC) for it to be built.
What a name may be
- A file's name is at most
file_system_contract::grant::MAX_NAME, 252 bytes ("The bound" below).grant_plan::MAX_FILE_NAMEmirrors it, pinned by a host test. It is the last component of a path the shell opens, a name a pattern matched, and a name in a grant's set. - A name that rides two
STARTwords is at mostgrant::WORDS_NAME, 16 bytes: a caretaker's directory,rm's operand when it fits, aloginidentity's subtree, an activation message's package or vouched name.grant::pack_nameanswersNonepast it, so nothing truncates.grant_plan::WORDS_NAMEmirrors it. - A directory the shell stands in, walks through or binds is at most 16 bytes
(
grant_plan::nav::MAX_DIRECTORY_NAME), because a directory grant names its directory in a caretaker's two words and the shell carries every position by value. A longer one is refused asRefused::DirectoryNameTooLong. - A name set carries at most 8 names and 512 bytes of them (
nameset::MAX_NAMES,nameset::NAME_BYTES): two of the longest names, or eight of 64 bytes. A record is a length byte, a flags byte, then the name. The shell'sNameSetpacks its names into those bytes rather than holding eight slots of 252, and over either bound is the same refusal, never a truncation.
How a long name reaches a program
- A file the shell opens itself:
wc quarterly-report.txt,<,>and2>, and a program run by its path. Nothing travels but the shell's ownOPEN, through the file service's page. - A word a program hears (§170 (how a foreign program is told what to do)): the name rides the grant's set, on the page
fs_nameset_caretakermaps, as every designated name already did. rmwith a name over two words:dir_granttellsrmgrant::WHOLE_NAMESPACEand grants the set of that one name, whichrmsweeps.- Where the file server binds badges (milestone 606 (a directory walk costs what it does on
Linux)), a grant carrying a set is bound.
fs_nameset_caretakerthen serves it over the bound channel, told with an empty name that the bound root is its directory (client_windows::at_bound_root). The badge alone would hold the whole directory, and the set is what narrows it.
Reuse: none exists; this is nife's own grant wiring between the shell, the progenitor and a caretaker, and no library carries a capability's name by argument words or frame.
Built 2026-10-24 (UTC)
Lane milestone/946-granted-file-name-longer-than-sixteen-bytes.
script/swish-check's aarch64 and x86_64 legs type these, and each answers as shown:
wc < quarterly-report.txtandwc quarterly-report.txtboth print1 3 19, andcaps wc quarterly-report.txtnames the 20-byte file as the input./installed/std-grep needle the-quarterly-report.txtprints the line from the 24-byte file its word named.rm -v rmtree/a-name-longer-than-two-wordsremoves the 28-byte name, andls rmtree | wcstill counts the two entries nothing named.installed/least_authority_demo 5is opened by its 20-byte name, its note read and its bytes sent, and the progenitor refuses the line for what the note asks of unvouched bytes. The shell no longer refuses the name.
The shell's stack was measured rather than scaled, on the same leg: twelve pages fault on the
boot's first pipeline, sixteen in installed/jig rollback, seventeen pass both boots. The shell
gets twenty-one (system_initializer::SHELL_STACK_PAGES), the planner is compiled optimized in a
debug build, and a set holds at most 512 bytes of name. notes/glob-grant/xargs.md ("The bytes a
set carries") has the numbers. The progenitor's capability peak stays at the 37 that
kernel/src/cap.rs records, on both boots. The timetable, which holds an Endowment per entry,
was measured the same way: login_user_schedule_tests faults at 52 pages and passes at 56, and
timetable::contract::STACK_PAGES is 60, with the crate compiled optimized in a debug build.
The bound
grant::MAX_NAME is 252, calef's ruling of 2026-10-24 (UTC): "B". It is §307 (how long a name
may be)'s bound, RedoxFS's DIR_ENTRY_MAX_LENGTH, the smallest name limit of a filesystem nife
installs onto. The option he did not take was 255, Linux's NAME_MAX and xattr::MAX_NAME, under
which a name of 253 to 255 bytes would be grantable and unstorable on nife's own disk. The stacks
above were measured at 255; a shorter name can only make every frame that holds one smaller.
Exit
On aarch64, riscv64 and x86_64: a file named with more than 16 bytes is granted at the prompt and read
by the program it was granted to, and an installed least_authority_demo runs by its package path.
BUGS
- The riscv64 leg has not run here (no
qemu-system-riscv64on the machine that built this). It carries the same code and script lines, and CI runs it. - An installed
least_authority_democannot yet be installed to be run:jig install demosis refused while every image packs the program, until milestone 909 (basalt composes the bootable image from its packages). The shell's half of the exit is theinstalled/least_authority_demoline above; the run that squares an integer is milestone 922's exit. - A directory's name is at most 16 bytes, so
cdrefuses a longer one andmkdircan make a directory the shell cannot then stand in. - A package or vouched name is at most 16 bytes, because the activation messages carry it in two words (the proposal below).
fs_file_caretakertakes its file's name in two words, so it serves a name of at most 16 bytes. No prompt line builds one.- A caretaker on a client window that was once bound gets
EBADFthroughout, sinceUNBINDleaves the badge revoked (client_windows::job_windows' BUGS). A set grant no longer meets it, because it is bound before its caretaker is built.
Follow-on
- Outstanding. The exit's second half, an installed
least_authority_demorun by its package path, checked 2026-10-24 (UTC):jig install demosis still refused, because every image packs the program. It waits on milestone 909. - Milestone 963.
jig installtakes a package name longer than sixteen bytes, andjig removetakes it off again, promoted to milestone 963 (a package name longer than sixteen bytes installs and is removed):design/roadmap/0963-a-package-name-longer-than-sixteen-bytes-installs-and-is-removed.md. - Milestone 909. Taking the demos out of the shipped image is what lets an installed
least_authority_demorun by its package path. - Recorded. A directory name over 16 bytes, in BUGS above.
Index row
A customer's files are not named for a demonstrator's limit. A name like quarterly-report.txt
can be granted at the prompt and read by the program it was granted to, and a package's program
named over sixteen bytes runs by its path.