# Urban OS account specification

Canonical route: `/account/`  
Shell: Account Shell  
Boundary: personal identity and preferences, not project operations.

## Navigation

1. Overview
2. Urban OS ID
3. Roles and access
4. Organizations
5. Projects
6. Security
7. Preferences
8. Notifications
9. Public profile
10. Billing
11. Data and privacy
12. Activity and support

## Real data sources

- Profile, roles, role catalog, organizations and project memberships: `/1/api/profile.php`
- Public profile and published models: `/1/api/community.php`
- Payment provider readiness and tokenized methods: `/1/api/billing.php`
- Notifications: `/1/api/notifications.php`
- Current authentication session: `/1/api/auth/status.php` and `/1/api/auth/logout.php`
- Avatar: `/1/api/avatar-upload.php`

## Account states

- Guest: authentication invitation and public routes only.
- Demo: safe examples, no work-project claim.
- Pending: access request received; project workspace disabled.
- Active: assigned roles and memberships from the server.
- Blocked: reason, support path and safe logout.
- Admin: platform governance actions, separately permission-checked.

## Urban OS ID

Display name, verified contact supplied by provider, avatar source order, linked identities and primary provider. Never expose provider tokens or subjects.

## Roles and access

Show role title, status, stage coverage and cabinet route. Separate platform roles from project-level access. A disabled or pending role cannot be presented as active.

## Organizations

Show name, membership status, position and `member/manager/owner` access. Organization creation and invitations are real only when the API confirms them.

## Projects

Show project title, `projectId`, assigned role, `viewer/editor/manager/owner` access and membership status. Link only to modules the role can access.

## Security

The current implementation supports the current browser session and logout. Device list, remote revocation, passkeys and 2FA remain `PLANNED` until a server session registry and credential APIs exist.

## Preferences

Language, theme, timezone, date/number format, units, density, reduced motion and high-contrast preference. Device-local values must be labeled as stored on this device until server persistence exists.

## Notifications

Render the real inbox from the notifications API. Channel preferences must remain device-local or planned unless a server preference endpoint exists.

## Billing

Urban OS stores only provider, token reference, brand, last four digits, expiry metadata, status and default flag. Card number and CVV are entered only on the certified payment partner page.

## Privacy and destructive actions

Provide links to consent and privacy documents. Data export and account deletion remain disabled/planned until real endpoints and retention rules exist. Deletion requires explicit final confirmation and re-authentication.


## Authentication provider controls

Use the canonical [identity controls specification](identity-controls.md) and `/shared/uos-identity.css`. Provider buttons use readable 16 px labels, equal 64 px minimum heights and a single responsive column. Keep the real auth flow and account permissions.
