| 70 | 70 | | protected workspace. Both go in the workspace's audit log, as g1t, and in |
| 71 | 71 | | sudo's (`workspace_restored`, `workspace_purged`), naming the staff |
| 72 | 72 | | member. |
| 73 | + | - **Aliases** (`/aliases`, under Customers): names that lead to a |
| 74 | + | workspace, set by staff only; there is no way for a customer to make |
| 75 | + | one, and nothing user-facing mentions them. `g1t`, the product's name, |
| 76 | + | leads to `flagon-io`, Flagon, Inc. (seeded by identity's migration |
| 77 | + | `0029_workspace_aliases.sql`), so nobody mistakes the trading name for |
| 78 | + | the organization. Every address under an alias leads to the workspace: |
| 79 | + | pages answer with a 301 to the same page (`/g1t/g1t/issues` to |
| 80 | + | `/flagon-io/g1t/issues`), git over HTTPS is answered in place as the |
| 81 | + | workspace's repository (pushes do not follow redirects), the API and MCP |
| 82 | + | run the call again under the workspace's slug, and the package |
| 83 | + | registries answer a 301 (308 for a publish). An alias points at the |
| 84 | + | workspace's id, so it follows a rename; it goes when the workspace is |
| 85 | + | purged. Each row shows the workspace, why the alias exists, and who added |
| 86 | + | it and when. **Add** (`admin_set_alias`) takes the alias, the |
| 87 | + | workspace's slug and why: identity refuses the site's own routes |
| 88 | + | (`settings`, `api`…), anyone's username, a workspace's slug (deleted, or |
| 89 | + | held after a rename for another workspace) and an existing alias. |
| 90 | + | Reserved names such as `g1t` can be aliases, and an alias is nobody's to |
| 91 | + | register or rename a workspace to while it exists. **Remove** |
| 92 | + | (`admin_remove_alias`) needs a reason. Both go in sudo's audit log |
| 93 | + | (`alias_added`, `alias_removed`), naming the staff member. `@g1t` in |
| 94 | + | text still means g1t's agent: it links to how the agent works, never to |
| 95 | + | `/g1t`. |
| 73 | 96 | | - **Enterprises**: customers that pay for several workspaces with one |
| 74 | 97 | | bill, one limit and one set of terms. Each has its workspaces (add or |
| 75 | 98 | | remove them), combined usage, terms, credits, ledger and audit log, and |