A grant has one outward form
Whatever shows a grant shows its grant value, printed by ral’s one value printer; no second notation spells one. This page is the one home of a grant’s printed form. The dual of a-grant-is-decoded-where-it-lands: a grant comes in as a value and goes out as one.
- A layer shows itself as decode’s inverse.
GrantLayer::value(authority/policy/lattice.rs) builds aLayerValuethrough the typed encoder (authority/grant/value.rs) from each rule’swrittenspelling or key, anddecode_grant(value(l)) == lon the host that decodedl(value::tests::a_layers_value_decodes_back_to_it, over decoded layers and their extensions by decoded fragments). - A rule prints resolved. An anchored place shows as the
absolutespelling it froze to (`cwd srcas`absolute '/work/src'), a selector as the directories it chose, a bare name, allowed or excluded, as written: an excluded name also shows the file it was found as, and its veto (exec::Veto) judges by a folded key while showing the name as written. A rule keeps noPlace: after acd,`cwd srcwould predict the wrong denial. - An empty list is left out. The decoder reads an omitted table list as
the empty one, so the encoder omits it (
read: []beside awritelist would read to a model as “reads nothing”); a table listing nothing is written by its first list,[allow: []]or[read: []], asgrantwrites the empty table. The property test decodes every value with each omitted list written out empty, alike. - Every program shows as an extension. No grant spells
Any(no-grant-spells-every-program), andAnyarises only ast ⊕ fragmenton exec, the table’s other rules being the fragment’s. So a layer whose exec holdsAnyshows as its grant, exec left out, then the fragment[exec: <those rules>]:decode_grant(grant) ◁ decode_fragment(fragment). Nothing beside the resolution is kept; every other extension is spelled (b ⊕ fas the union, fs over the top aswrite: [`absolute '/']beside the exclusions). - Every reader takes it.
Probe::Grantsanswers each layer a reader needs (GrantLayer::is_shown: it restricts, or its exec runs something, which stays readable under a nested fs restriction) as itsLayerValue, with the host’swithholds_gpu(Grants,protocol/probe.rs). The engine’s prompt, exarch’s and a synod guest’s alike, prints each ingrantsyntax, oldest first, an extension asgrant G extended by F(Display for LayerValue,authority/grant/value.rs), under a legend that says only what grants mean (exarch/data/grant-legend.md;grant_section,exarch/src/prompt.rs). A refusal citing an exec exclusion prints it as its value (Display for ExecDeny), and so does the file-key refusal. - The printer is beneath
authority.data::print::pretty_printreads a value through aPrintableview thatFOValueand the shell’sValueeach implement, soauthorityprints a grant without reaching the shell (core-below-shell), and the REPL and a grant share one printer. - Paths are shown with a slash. An
absolutepayload is the spelling as ral shows it (paths-are-shown-with-slash), which decodes back to the same spelling.
Why. Three forms (the value, a summary of key strings, and a prompt
notation of exec dirs:, (none), inherit) were three vocabularies of one
authority, each with its own rendering of an anchored place and of every
program, and a prompt the model could not paste back into grant. One form
means the agent reads its authority in the syntax it writes a narrower grant
in, and a refusal names a rule the way the prompt does.
Gap. The inverse is exact on the decoding host, its filesystem and PATH
unchanged, but for one spelling that means the same: on Windows a verbatim
\\?\C:\… spelling shows without its prefix.
See grant, engine-protocol, exarch policy.