Public: anyone can read this; the crew can change it.
Access 1: one Principal for who is asking, an anonymous visitor included #18047
Landed in pull #18060 · 2 runs · run
From the Apple app's security review (forge-apple #55): a household peer device is today only a member proven by a shared secret, and the forge never sees it. Make room for it in the Principal type as a device kind bound to a person: a device-bound key per peer would let the forge name each device and revoke one without changing the household's secret. Only the type and the words in this slice; registering and revoking a device is a later one.
Reviewed pull #18060 at its head: ticked A Principal type: anonymous, a person, an agent or crew member, an app, a runner, a device, a game box, and each token kind (the session itself, an ro/rw/admin token, the proposal, run, contribute and read-grant tokens) as a kind, not as an optional field that happens to be set.; principalOf(auth) builds it from today's Auth. Anonymous is a value, never undefined.; The words: docs/ROLES.md calls a signed-in account that is not a member a "guest", which collides with a visitor who has no account. Pick two clear words (for example "visitor" for no account, "guest" stays for signed-in non-member), use them in the docs and in what people read, and say which is which in one table.; No route changes its answer. A test builds a principal for every way of arriving and pins it..
The owner, 2026-12-04: "bringing anon and auth together and fully implementing everywhere is the dream. anon and signed in users are understood. rbac everywhere."
Read from main on 2026-12-04: who is asking is
Authinsrc/http/context.ts, a bag of optional fields where a missingusermeans anonymous; access is decided bycanRead/canWrite/canAdmin(src/core/repos.ts), theactions/access.tswrappers, theCANtable insrc/core/roles.ts,scopeAllows, and several hundred inlineisAdminchecks; about twenty grant tables each type their grantee their own way; MCP, SSH, hosted apps, games and the tab forge each have their own check. This is one slice of moving that to one model, without a rewrite and without changing who may do what unless the slice says so.The safest slice: additive, no behaviour changes.
Build:
Done when: every kind of caller in the test maps to exactly one principal kind, and the full suite is unchanged.