PLAN.md: decisions for Phases 9–14: teams and domains, agent approvals, Garage, Free and Paid tiers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 06:50:18 -07:00
co-authored by Claude Opus 5.5
parent 734ecb0e0c
commit 338eaa2c79
+115 -25
View File
@@ -25,7 +25,9 @@ running a Federated Core can install as a CoreDesktop sibling.
| Database by edition | SQLite for local; **Postgres** for server and multi-tenant (2026-11-25) | | Database by edition | SQLite for local; **Postgres** for server and multi-tenant (2026-11-25) |
| Users | Owner (with billing), admins (the whole system, users and connections), members (given modules, each view or edit) and agents (a key, given modules). Sign-in by **email and password**, with optional two-factor for everyone, or **the Core's Authelia (OIDC)** (2026-11-25) | | Users | Owner (with billing), admins (the whole system, users and connections), members (given modules, each view or edit) and agents (a key, given modules). Sign-in by **email and password**, with optional two-factor for everyone, or **the Core's Authelia (OIDC)** (2026-11-25) |
| Posting accounts | Several social accounts per platform (the company's, users' own); admins set who may post to which; a post can go to one or several at once (2026-11-25) | | Posting accounts | Several social accounts per platform (the company's, users' own); admins set who may post to which; a post can go to one or several at once (2026-11-25) |
| Billing | Multi-tenant only: a **Stripe subscription** per team, managed by its owner. Each team brings its own keys for AI and services (2026-11-25) | | Billing | Multi-tenant only: a **Stripe subscription** per team, managed by its owner. **Free** (2 users, some modules, limited storage) and **Paid** ($15 per user per month, with storage limits). Each team brings its own keys for AI and services (2026-11-25) |
| Teams and domains | A person can belong to several teams; each team works on **one website domain** (with its subdomains) (2026-11-25) |
| Hosting (multi-tenant) | On a cloud, with **Garage** as the object storage we install, and the cloud's managed Postgres (2026-11-25) |
## Where things stand (2026-11-22) ## Where things stand (2026-11-22)
@@ -2112,8 +2114,21 @@ single `mcp-token`. A commit after each part.
- An **Approvals** page (and a count in the sidebar) lists what agents - An **Approvals** page (and a count in the sidebar) lists what agents
asked to do. Members with that module, and admins, approve or refuse asked to do. Members with that module, and admins, approve or refuse
each item, and can edit it first. each item, and can edit it first.
- An admin can let an agent act without approval, per module. This is - **Everything waits for approval at first** (decided 2026-11-25).
recorded, and the agent's page warns about it. An agent acts on its own only once a person has marked a *class* of
action as approved for automation. The classes:
- publish a post to a given posting account
- send a first email to a prospect
- send a reply in an existing conversation
- add someone to a given mailing list
- push a page to a given site
- apply an SEO change to a page
Approving a class is done per agent, by an admin, or by a member with
*edit* on that module (for the classes in it). Each approval can carry
a cap per day, is recorded, can be withdrawn at any time, and the
agent's page lists what it may do on its own. A new agent, or one
whose key was rotated after a leak, starts with no classes approved.
- The reason: agents read untrusted web text (signals, replies, - The reason: agents read untrusted web text (signals, replies,
search results), the same risk that keeps the app's AI away from search results), the same risk that keeps the app's AI away from
Hermes' tools today. Hermes' tools today.
@@ -2143,10 +2158,9 @@ it at once.
shows the block to paste (client ID, the hashed secret, the redirect shows the block to paste (client ID, the hashed secret, the redirect
address `https://<domain>/auth/core/callback`, scopes `openid email address `https://<domain>/auth/core/callback`, scopes `openid email
profile groups`). profile groups`).
- On Settings → Sign-in, an admin enters the issuer address (suggested - On Settings → Sign-in, the issuer address is filled in as
as `https://authelia.<Core domain>` from the Core's domain), the `https://authelia.<Core domain>`; an admin enters the client ID and
client ID and the secret, and *Test* checks the provider's discovery the secret, and *Test* checks the provider's discovery document.
document.
- The sign-in page then offers *Sign in with <Core>*, with the code - The sign-in page then offers *Sign in with <Core>*, with the code
flow and PKCE. flow and PKCE.
2. **Who may sign in.** 2. **Who may sign in.**
@@ -2163,9 +2177,10 @@ it at once.
`supermarket-admins` group makes admins). Until then roles are set in `supermarket-admins` group makes admins). Until then roles are set in
Supermarket. Supermarket.
Open question: is Authelia's address on every Core Authelia is always at `authelia.<Core domain>` (confirmed 2026-11-25), so
`authelia.<Core domain>`, and will the Core's developer add Supermarket's Supermarket fills in the issuer itself from the Core's domain. Still open:
client, or should the Core's admin tooling do it? whether the Core's developer adds Supermarket's client to Authelia, or the
Core's admin tooling does it.
#### Phase 13: Multi-tenant #### Phase 13: Multi-tenant
@@ -2189,8 +2204,14 @@ builds on Phases 9–12. A commit after each part.
- On multi, the home page offers *Sign up*: an email, password, and - On multi, the home page offers *Sign up*: an email, password, and
the company's name and first website. That person becomes the the company's name and first website. That person becomes the
team's owner, and the team starts on a trial (Phase 14). team's owner, and the team starts on a trial (Phase 14).
- A user can belong to several teams, with a team switcher in the - A user can belong to several teams (decided 2026-11-25), with a
sidebar; the role is per team. team switcher in the sidebar; the role, modules and two-factor
sign-in are per user, the role and modules per team.
- **Each team works on one website domain** (decided 2026-11-25): one
registered domain, such as `example.com`, with its subdomains
(`www.`, `cloud.`, `enterprise.`) counted as part of it. A company
with a second domain sets up a second team. The server edition
follows the same rule; the local edition keeps its list of websites.
- Invitations work as in Phase 10, within a team. - Invitations work as in Phase 10, within a team.
4. **Proving a domain is the team's.** Before Supermarket does anything 4. **Proving a domain is the team's.** Before Supermarket does anything
with a website (crawl it, read its Search Console data, publish to with a website (crawl it, read its Search Console data, publish to
@@ -2200,7 +2221,8 @@ builds on Phases 9–12. A commit after each part.
- a Google Search Console property they own - a Google Search Console property they own
A domain can belong to one team at a time. This keeps one team from A domain can belong to one team at a time. This keeps one team from
claiming another company's site. claiming another company's site. Proving the domain covers its
subdomains.
5. **Each team's connections and jobs.** 5. **Each team's connections and jobs.**
- Connections and secrets are per team: each team brings its own AI - Connections and secrets are per team: each team brings its own AI
key and services (decided 2026-11-25). key and services (decided 2026-11-25).
@@ -2238,6 +2260,36 @@ builds on Phases 9–12. A commit after each part.
database (sessions, OAuth flows in progress, locks), so any copy can database (sessions, OAuth flows in progress, locks), so any copy can
answer any request. Files are in object storage. Postgres runs with answer any request. Files are in object storage. Postgres runs with
connection pooling. Per-team metrics feed the platform page. connection pooling. Per-team metrics feed the platform page.
10. **Hosting and object storage** (decided 2026-11-25: a cloud, with the
object storage installed by us, not the cloud's own).
- Supermarket only speaks the S3 API, so the store can be changed
later with a configuration change and a copy of the bucket.
- What goes in it is modest: backups and exports, uploaded files and
images, crawled pages kept for SEO, and site previews. Expect
gigabytes per team, not terabytes.
- The options looked at:
- **Garage** (chosen 2026-11-25): a single small binary, built
for a few nodes across zones, with replication of 3. It's easy
to run and light on memory. AGPL, which doesn't matter for a
separate service that's only reached over its API.
- **SeaweedFS**, if storage grows large or holds many millions of
small files. Apache 2.0, with more moving parts (master, volume
and filer servers).
- **Ceph's RADOS Gateway**, only if Ceph is run anyway (for
example with Rook on Kubernetes) for block storage too. Too heavy
just for this.
- Not **MinIO**: in 2025 its community edition lost its admin
console, stopped shipping binaries and images, and went into
maintenance mode.
- With Garage:
- three nodes in different zones
- a bucket and key per environment, with Supermarket's files under
a prefix per team
- versioning or a nightly `rclone` copy to another provider or
region, so a mistake or a lost cluster isn't a lost team
- Postgres beside it: the cloud's managed Postgres (chosen 2026-11-25), the least work.
If the platform is run on Kubernetes, CloudNativePG gives
replicas, failover and backups to the same object storage.
**Done when:** two teams with their own domains are signed up. Neither **Done when:** two teams with their own domains are signed up. Neither
can see or change the other's data, through any page, fragment, MCP tool can see or change the other's data, through any page, fragment, MCP tool
@@ -2255,10 +2307,37 @@ reads.
prices. Each plan sets: prices. Each plan sets:
- the modules included - the modules included
- seats (people), and how many agents - seats (people), and how many agents
- websites, and pages crawled - pages crawled
- fetch and storage limits - fetch and storage limits
The trial is 14 days on the top plan. Decided 2026-11-25: a **Free** tier and a **Paid** tier at **$15 per
user per month**. The limits below were suggested and accepted the
same day:
| | **Free** | **Paid**: $15/user/month |
|---|---|---|
| People | 2 | As many as paid for |
| Agents | 1 (not counted as a user) | 5 per team (not counted as users) |
| Modules | Content, SEO and the Market | All: also Prospects, Sites and Metrics |
| Storage | 1 GB per team | 5 GB per paid user, pooled for the team; more in 25 GB blocks |
| SEO crawl | 500 pages, weekly | 10,000 pages, daily |
| Content sources | 10 | No limit beyond fair use |
Why those modules on Free:
- Content and SEO show what Supermarket does on day one, and they cost
the platform little, since each team brings its own AI key.
- **Prospects** sends email to people who didn't ask for it. Keeping it
paid keeps spammers off the platform, which protects the deliverability
of everyone's mail.
- **Sites** pushes to a team's repository and builds previews: the
heaviest on storage.
- **Metrics** is worth most to a paying business with Stripe revenue.
Also decided:
- A new team gets a 14-day trial of Paid, then drops to Free unless the
owner subscribes.
- Agents count against the team's fetch and send limits, not its
seats.
2. **The owner's Billing page.** It shows the plan, seats in use, the 2. **The owner's Billing page.** It shows the plan, seats in use, the
trial's end, and the next invoice. *Change plan* goes to Stripe trial's end, and the next invoice. *Change plan* goes to Stripe
Checkout. *Payment and invoices* goes to Stripe's Customer Portal. Checkout. *Payment and invoices* goes to Stripe's Customer Portal.
@@ -2275,11 +2354,16 @@ reads.
- After 60 days, the team is deleted as in Phase 13, part 8, with - After 60 days, the team is deleted as in Phase 13, part 8, with
emails first. emails first.
5. **Seats.** Inviting beyond the plan's seats asks the owner to add a 5. **Seats.** Inviting beyond the plan's seats asks the owner to add a
seat; admins are told to ask the owner. seat (Stripe prorates it); admins are told to ask the owner.
6. **Moving down to Free.** A team over Free's limits when Paid ends:
- People beyond the first two (the owner, and one more of the owner's
choosing) become view-only until removed or paid for.
- The paid modules keep their data, read-only.
- Storage over the limit stops new files (no new crawls kept or
previews built), and nothing is deleted.
Open questions for this phase: Open questions for this phase:
- Pricing: per seat, a flat price per team, or tiers by websites? - Is there an annual plan (for example two months free)?
- Is there an annual plan?
- Tax: Stripe Tax? - Tax: Stripe Tax?
#### Order #### Order
@@ -2299,24 +2383,30 @@ they replace the `mcp-token`.
#### Open questions (2026-11-25) #### Open questions (2026-11-25)
1. Can a person belong to several teams on multi-tenant? (Planned: yes.) 1. ~~Several teams~~ *Resolved 2026-11-25:* yes; each team works on one
website domain (Phase 13, part 3).
2. ~~View-only access~~ *Resolved 2026-11-25:* members get each module 2. ~~View-only access~~ *Resolved 2026-11-25:* members get each module
as *view* or *edit* (Phase 10, part 5). as *view* or *edit* (Phase 10, part 5).
3. ~~Posting as yourself~~ *Resolved 2026-11-25:* posting accounts, 3. ~~Posting as yourself~~ *Resolved 2026-11-25:* posting accounts,
several per platform, with admins choosing who may post to which; a several per platform, with admins choosing who may post to which; a
post can go out as yourself, as someone else, or to several accounts post can go out as yourself, as someone else, or to several accounts
at once (Phase 10, part 7). at once (Phase 10, part 7).
4. *Partly resolved 2026-11-25:* the Core runs Authelia. Who adds 4. *Partly resolved 2026-11-25:* the Core runs Authelia, always at
Supermarket's client to it is still open (Phase 12). `authelia.<Core domain>`. Who adds Supermarket's client to it is still
5. Where will the multi-tenant edition be hosted, and which object open (Phase 12).
storage will it use? 5. *Partly resolved 2026-11-25:* on a cloud, with Garage as the object
6. Should agents' outgoing actions always need approval at first, with storage we install, and the cloud's managed Postgres (Phase 13, part
no switch until Phase 11 has run for a while? 10). Which cloud is still open.
6. ~~Agents' approvals~~ *Resolved 2026-11-25:* everything waits for
approval until a person approves a class of action for automation
(Phase 11, part 3).
7. ~~Internet or private~~ *Resolved 2026-11-25:* server installs face 7. ~~Internet or private~~ *Resolved 2026-11-25:* server installs face
the internet, and can also be deployed on a private network (Phase 10, the internet, and can also be deployed on a private network (Phase 10,
part 9). part 9).
8. ~~Two-factor~~ *Resolved 2026-11-25:* an option for every user, 8. ~~Two-factor~~ *Resolved 2026-11-25:* an option for every user,
owners and admins included (Phase 10, part 3). owners and admins included (Phase 10, part 3).
9. ~~Pricing~~ *Resolved 2026-11-25:* the Free and Paid limits in Phase
14, part 1. An annual plan and Stripe Tax are still open.
### Future enhancements ### Future enhancements