allow
role.signedIn, through the class grant the program issues at install.
Everything else an app declares
in its tree, with five declarations from @bijectionhq/bijection:
How an act is decided
An act proceeds only when all three hold:- Positive authority. The principal’s surviving grants, together, cover
it: one holds a role in the function’s
allow, and together they clear the function’sunder. The function’s own grants must cover it too. - Label flow. Every read stays at or below the frame’s clearance, and every write carries its data to a label at or above it. A lowering goes through a declared release.
- No guard refuses it. Each guard in the act’s scope decides once per offered grant. The grants no guard refuses are the act’s survivors, and only survivors count toward positive authority.
Result with a host code: Disallowed
when the surviving grants do not cover the act or the frame does not clear a label, and
Forbidden, with the guard’s path in guard, when a guard matched.
How an act is decided states the rules in full.
A small example
bijection/access.ts
bijection/notes.ts
bijection/app.ts
list and add are exposed to holders of member or owner, and run
under: shared, so they may read and write the labelled notes. The labelled
table is protected. notes.byId() serves each
page in fact-id order. Start with cursor: null and pass the previous
page’s next for the next page. The guard’s
path, notes.fixedAuthor, is its identity: a refused write answers
{ ok: false, code: "Forbidden", guard: "notes.fixedAuthor" } with the
guard’s message as its message. bijection check --write-lock records every path’s
allow, under, grave acts and guards in bijection.lock for review.