PLAN.md: Phase 13 is built, and was run for real with Garage

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 12:47:14 -07:00
co-authored by Claude Opus 5.5
parent f4c31c9fa3
commit 0de5ab6698
+18 -4
View File
@@ -54,8 +54,9 @@ merged** (2026-11-25): a new `compose.server.yaml` and `install-server.sh`.
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–9 are built.
**Phase 13 (multi-tenant) is built** on branch `phase13`, not yet merged,
with a Postgres schema per team (decided 2026-11-26); schema 42. Next is
Phase 14 (billing), or Phase 12 once the Core's `idproviders.yml` is in.
**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
@@ -2957,8 +2958,21 @@ starts.**
three copies on one database run a round of a job for six teams at once;
each team's turn runs exactly once, the copies share them, and any copy
answers a team's requests.
- Not run yet: the whole multi-tenant edition in Docker with Garage (the
server edition's was, in Phase 10).
- Run for real (2026-11-26): the app's binary as the multi-tenant edition
against a fresh Postgres database and a one-node Garage in Docker.
`supermarket config` found both (the database reachable, the bucket
writable); two teams signed up over HTTP, each got its schema and role;
each saw only its own profile; a photo went to Garage under the team's
prefix (one object) and came back, and the other team got a 404 for it.
Not run: `compose.multi.yaml` itself, with several copies behind Caddy.
**Part 10 (hosting) 2026-11-26.** Nothing more to build: Supermarket only
speaks the S3 API (Garage was checked for real above), each team's files
are under `teams/<id>/` within the bucket's prefix, and Postgres is the
cloud's managed one (its user needs `CREATEROLE`). Left to whoever runs it,
as decided: three Garage nodes in different zones, a bucket and key per
environment, and versioning or a nightly `rclone` copy elsewhere.
**Phase 13 is built.**
1. **Teams everywhere.**
- Every table that holds a company's data gets `team_id`, and its