Glossary
This page is generated from the project corpus and rewritten on every docs build. Edit the source in corpus/, not here.
One definition per term. Definitions only — no implementation detail. When a term is defined, split or renamed, it is recorded here in the same session.
_Avoid_ is the load-bearing half: it names the synonyms the term displaces,
which is what actually stops the drift.
Estate
The set of side projects deployed from vps-deploy onto the shared Caddy VPS —
currently seventeen, of which six have or will have identity. The unit
wzd_auth serves. Surveyed in estate.md.
Avoid: "the projects", "the apps", "the monorepo" (there is no monorepo — each
project is its own repo).
Origin
Scheme + host + port, in the browser's sense: https://example.com. The whole
estate is one origin; the per-project /atrium, /trips and so on are paths
within it, and paths are not a security boundary.
Avoid: using "site", "domain" or "app" when the browser's isolation rule is
what matters — those three all blur the distinction that decides whether a
cookie is shared.
Account
The unit a credential authenticates and the security boundary — inherited from atrium D30. One account, one password, one set of sessions. Avoid: "user" when the boundary is what is meant. See Person below.
Profile
An identity inside an account, switchable with no password (atrium D35). A household member, not a permission. Atrium-local: wzd_auth does not know profiles exist, and no other app is obliged to have them. Avoid: "sub-user", "child account", "role". A profile grants nothing.
Person
A human being. Used only where the distinction from Account and Profile is the point — one person may hold several accounts, and one account may be used by several people. Avoid: "user", which in this estate has meant a database row, a household member and a human being in three different repos.
Subject
The stable, opaque identifier wzd_auth gives an account, and the only thing apps store to mean "this person". It is the contract between the identity service and every app: stable forever, never recycled, unaffected by a username change. An app's rows are keyed on it and outlive everything else about the account. Avoid: "user id" — every app already has one of those, meaning its own local row. The whole point of a separate word is that the two are different numbers.
Session
Proof that an account authenticated, held by the client and presented on each request. Whose shape is undecided: atrium's is opaque, server-stored and revocable; newspapper's is a stateless signed cookie that cannot be revoked before it expires. Q4's downstream. Avoid: "token" and "cookie" as synonyms for it — those are transports a session can travel in, and this estate currently uses three (Bearer header, query string, cookie).
Grant
A (subject, app, role) triple held by Ward: this person may use this app, at
this role. The security boundary of the estate. Without a grant for an app,
holding a valid Ward account gives no access to it whatsoever.
Avoid: "permission" and "role" used alone. A role is one field of a grant,
and Ward stores role strings opaquely — it never interprets what a role may
do, which stays each app's business. There is no wildcard grant: even the
owner account holds six explicit rows, so a newly-added app is reachable by
nobody until someone says otherwise.
Superuser
The break-glass credential in Ward's .env. Has no account row, no subject
and no grants — so it can administer Ward's console and reach nothing else.
Its session is never a JWT. Used when something is broken.
Avoid: "admin" and "the admin account", both of which mean the Owner
account below. Conflating the two is the specific mistake
decisions-admin.md exists to prevent.
Owner account
An ordinary Ward account holding explicit admin grants across every app. The daily driver — what actually runs atrium, newspapper and the rest. Created through the console by the superuser at cutover, and revocable, rotatable and auditable like any other account, which is exactly what the superuser is not. Avoid: "superuser", "root". It has no special powers in Ward itself; it just holds a lot of grants.
Access token
The short-lived signed JWT in Ward's session cookie. Proves who. Verified
locally with Ward's public key (by each app until 2026-10-13; since then
only Ward reads it, at Path=/ward-api); never checked against a denylist, and
deliberately carries no permissions — a token minted before a grant changed
would otherwise carry stale authority for its whole lifetime.
Avoid: "the JWT" unqualified — the refresh token is not one, and the
difference is the entire design.
Refresh token
The long-lived, opaque credential that buys a new access token. It is a row, so revoking it is deleting it. Rotated on every use; presenting an already-spent one is a theft signal that kills the whole family. Avoid: "session id" — it is not presented on ordinary requests, only at the refresh endpoint.
Introspection
Retired 2026-10-13 with POST /introspect. An app asked Ward
"is this session still live, and what are its grants?", cached briefly per
session. It established liveness and authorization, where local signature
checking establishes only authentication. Its successor for a
Ward-originated session is the session-status check,
POST /session-status, which answers liveness and this app's grant only.
Avoid: "validation", which blurs the two halves — the signature is valid long
after the session is revoked.
Forward auth
The pattern where the reverse proxy asks a sidecar to authorize a request before it reaches the app, and passes identity down as injected headers. One of the three candidate families in landscape.md. Avoid: calling it SSO — it gates requests; it does not necessarily issue an identity the app can reason about.
Relying party
An app that delegates authentication to wzd_auth rather than performing it. What atrium and newspapper would become. Avoid: "client", which in an OAuth context means something narrower and in a frontend context means the browser bundle.
Local account
A user row in one app's own database, with that app's own password check and sessions — the shape every app returns to under decisions-oidc.md. Its id is the app's, minted by the shared library (or a migrated subject, kept so old rows keep their keys). It works while Ward is down. It may have no local password at all, if it was created by a first "Sign in with Ward". Avoid: "Ward account" for it, and "user" unqualified when the point is which database holds the row.
Linked Ward identity
The record that a local account may also be entered through Ward: the pairing of the app's local user id with a Ward subject. Created by a first Ward sign-in or by the signed-in person choosing "link" in their settings — never by matching a username or email. Unlinking is refused while the local account has no local password. Avoid: "SSO account", "merged account" — nothing is merged; one local row gains a second way in.
Ward-originated session
An app session that began with "Sign in with Ward" rather than a local
password. It carries Ward's session id (ward_sid) and is the only kind the
app checks against Ward, at most every 30 seconds, so a Ward revoke ends it.
A session that began with a local password is never checked against Ward.
Avoid: "Ward session" for it — that is the session at Ward itself (the
refresh family), which this one points at but is not.