Files
waggle-os/docs/oss/adr/0001-no-monetization.md
shumeiko.it fe2eb0f648 refactor: remove the billing tier model (P0.1)
The community edition has no monetization (ADR-0001). Remove the tier
model (packages/shared/src/tiers.ts), the requireTier middleware and every
tier gate, GET/PATCH /api/tier and the trial start, and the Stripe
integration, which depends on the tier model.

Personal features a tier used to limit are open to everyone: unlimited
workspaces and connectors, every embedding provider including LiteLLM,
per-workspace costs, Approvals. The workspace session cap is one constant
(100). Team and enterprise surfaces are hidden instead of unlocked (team
dock zone, Settings Team/Enterprise/Plan tabs, workspace Team tab);
cloud sync reports unavailable, as it did for free users.

The sidecar ignores the tier keys in config.json but does not delete them:
both editions may still share ~/.waggle.

Web billing UI is deleted: plan cards, upgrade and trial modals, payment
success route, the KVARK sales block, tier 403 handling.
2026-10-15 19:31:50 +02:00

35 lines
1.6 KiB
Markdown

# ADR-0001: The community edition has no monetization
- Status: Accepted
- Date: 2026-10-14
- Source: Waggle OSS Agreed Scope Annex
## Context
The commercial product sells tiers (Trial, Solo, Teams, Enterprise) through Stripe. The
server gates routes with `requireTier`, caps sessions per tier and blocks some embedding
providers; the web UI keeps its own copy of the tier model and shows plan cards, trial
banners, upgrade modals and KVARK and Team calls to action.
## Decision
The community edition is free and has no monetization. We remove the tier model, trial
logic, the Stripe integration, license checks, KVARK tools and nudges, and upgrade or Team
calls to action. Everything a tier used to gate becomes available. The per-tier session cap
becomes a fixed constant.
## Consequences
- P0.1 removes `packages/shared/src/tiers.ts`, the `assert-tier` middleware and the routes
that call `requireTier`, `/api/tier` and `/api/tier/start-trial`, and the trial auto-start
after onboarding.
- P0.1 also removes `packages/server/src/stripe/` and the web billing UI, because both depend
on the tier model. P1.1 removes `packages/server/src/kvark/`; P1.4 removes
`packages/agent/src/kvark-tools.ts`.
- The sidecar ignores the `tier`, `trialStartedAt` and `stripe_customer_id` keys in
`config.json`. It does not delete them: until the data-directory question is decided, the
commercial and community editions may share `~/.waggle`, and deleting the keys would downgrade
a paying user of the commercial edition.
- UserTier (UI complexity), ModelTier, persona tiers, CLI levels and memory health levels are
unrelated to billing and stay.