Appearance
Playbooks
Playbooks are standard operating procedures (SOPs) for UAS. Use calls.md for payload shape and required fields.
Surface availability (explicit)
- API Gateway: Available (public
POST /uas/statonly). - Direct Lambda: Available (all other UAS actions).
- CLI: Available (
g3n uas ..., direct Lambda). - MCP: Available.
Playbook: User onboarding + verification
Goal: Create a user, verify their primary email, and mark the account verified for downstream session issuance.
Why this sequence:
- UAS uses a strict status FSM; unverified users should not receive sessions or sensitive actions.
- Email verification is required before setting status to
verified.
Preconditions
- You have an email address and initial passcode that meet policy.
- You can invoke direct Lambda actions for UAS (operator or trusted caller).
SOP (happy path)
- Create user (
userCreate).- Reason: establishes the canonical user record and initial status.
- Add or confirm email (
emailAddif not part of create).- Reason: ensures the email is registered on the user record.
- Issue verification token (
emailIssueToken).- Reason: the token is required to confirm and lock in verification.
- Confirm token (
emailConfirmToken).- Reason: transitions the email to verified state.
- Set primary email (
emailSetPrimary) if multiple emails are present.- Reason: UAS uses a single primary email for identity workflows.
- Set user status to verified (
userStatusSetwithstatus=verified).- Reason: enables USM session creation and downstream access.
- Optional: add payment method (
pmCreate) if required by downstream flows.
Outputs
- User record in
verifiedstatus. - Verified primary email attached to the user.
- (Optional) payment method stored and active.
Failure modes / remediation
duplicate-email: email already exists on another user → resolve ownership or use a new email.invalid-token/token-expired: re-issue token and retry confirm.invalid-transition: check current user/email status; re-read withuserGet/userSnapshot.
Cross-service relationships
- USM: uses the verified user + passcode to issue sessions.
- OFM: may use the verified user to create/join orgs.