Phase 13, part 8: a team's data is theirs

The owner exports everything from Settings → Your data (the keys only with
their password), and can delete the team: it closes at once, everyone in it
is told, it can be undone for 30 days, and then its schema, files, agents
and memberships go for good.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 12:40:28 -07:00
co-authored by Claude Opus 5.5
parent d35ed7cbb2
commit b8a64e258a
11 changed files with 501 additions and 4 deletions
+15 -1
View File
@@ -55,7 +55,7 @@ tools over MCP, approvals, limits and visibility, and the JSON API. Schema
39.
**Phase 13 (multi-tenant) is under way** on branch `phase13`, with a
Postgres schema per team (decided 2026-11-26); parts 1–7 are built.
Postgres schema per team (decided 2026-11-26); parts 1–8 are built.
**Phase 12 (signing in with the Core, OIDC) is set aside for now**
(2026-11-26): before it starts, the user will share the Federated Core's
@@ -2916,6 +2916,20 @@ stand.
who looked, why and for how long, as it does a suspension, a restore, a
release and resent invitations.
**Part 8 built 2026-11-26** on `phase13`.
- Settings → Your data (the owner only, on the server and multi-tenant
editions): *Export everything* writes Phase 9's export of the team's
tables to its storage (`exports/…`), listed to download or delete. The
keys and tokens are left out unless asked for, which needs the owner's
password. Exports and downloads are in the audit log. The shared tables
(people, sessions) aren't in a team's export.
- *Delete the team* (multi-tenant) needs the team's name typed and the
owner's password. The team closes at once (its page offers the owner
*Undo*), everyone in it is emailed, and it can be undone for 30 days.
Then the platform's hourly job (`platform:purge`) removes its files, its
schema and role, its agents and their keys, memberships, sessions and
row. People keep their accounts.
1. **Teams everywhere.**
- Every table that holds a company's data gets `team_id`, and its
unique keys include it. The settings table's key becomes