One table for every session in the platform. A TTL that is not in this table does not get invented locally: sign-in surfaces take their durations from here (the session signature standard copies them verbatim), and a new session type is added to this page first. Source: the passwordless sign-in audit (#3536), canon v1, 2026-10-28; the GoTrue values below were measured live on the ANUKA Core project on the same day.
| Mechanism | Who | Confirmation | TTL |
|---|
| Key pickup session (key claim) | Onboarding agent | Founder approves the key issue; one pickup call, raw response saved first | ~15 min |
| Admin step-up | Founder | Fresh code per session (registry letter auth_admin_secure_session) | 30 min |
| Founder presence (Presence Gate) | Founder | Explicit check-in (never chat activity) | 4 h; held requests release with a 15-min TTL |
| Agent session — admin contour | Agent | Founder approves EACH request; request is presence-held while the founder is out | ≤ 1 h |
| Agent session — app contour | Agent | Founder approves EACH request; presence-held while the founder is out | 24 h |
| Human session (GoTrue) | Human (team, clients) | Passwordless-primary sign-in (passkey / email code / link) | Access JWT 7 d + rotating refresh (measured, see below) |
| Agent-session-exchange | Service accounts | Registry of accounts/apps, exact callback match, audited | Per registry entry |
| Widget session | Any | None of its own — inherits the host app’s session | Inherits host |
| Setting | Value |
|---|
| Email OTP length | 6 digits |
| Email OTP expiry | 3600 s (60 min) |
| SMS OTP length / expiry | 6 / 60 s |
| Rate limit: email sent | 100 / h (project) + per-address cooldown |
| Rate limit: OTP / verify / token refresh | 30 / 30 / 150 per window |
| Refresh token rotation | enabled |
| Refresh reuse interval | 99,999,999 s — finding: rotation without reuse detection; proposed 30 s grace |
| Access token (JWT) expiry | 604,800 s (7 d) — note: above the 1-day corridor; the corridor binds the administrative contour, human app sessions are the product default |
| Send Email hook | Registry email templates (since v2, 2026-10-28) |
| SMS hook | Enabled |
- An agent-login token’s plaintext exists only between approval and delivery; delivery clears it, and a sweeper clears any delivered remainder immediately and undelivered plaintext after a 1-hour grace. Nightly control: delivered-with-plaintext rows = 0.
- No session class exceeds its table TTL; the admin contour never inherits the 24-hour agent TTL.