PLAN.md, TEST.md and README: the Metrics changes from testing
Total spend from charges, MRR and cohorts on paid invoices, renewals as existing customers, cohorts in full with dollars, and the start month's cohort labelled. TEST.md gets checks for each. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -29,7 +29,7 @@ running a Federated Core can install as a CoreDesktop sibling.
|
||||
| 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-26)
|
||||
## Where things stand (2026-11-30)
|
||||
|
||||
**Every phase is built, 0–14**, Phase 12's part 5 (roles from the Core's
|
||||
groups) included, and all of it is merged into `main` and pushed (the user
|
||||
@@ -56,6 +56,26 @@ writes the post; the user pastes each subreddit's rules once (kept in
|
||||
filled in or copies the title and text, posts, and marks it posted. The
|
||||
warnings come from the pasted rules and the posts marked as posted.
|
||||
|
||||
**Metrics, from testing (2026-11-30).** Fixes from looking at the live
|
||||
Stripe data:
|
||||
- *Customers* means those who have spent more than $0, as Stripe counts
|
||||
total spend: successful charges, captured less refunded. The sync now
|
||||
reads charges too (`KindCharge`, and their events); sync state version
|
||||
2 makes an older database read everything once. `metrics.Spenders`
|
||||
serves the Stripe card's count and Metrics → Customers.
|
||||
- MRR and cohorts count only **paid** invoices (open ones count once
|
||||
paid).
|
||||
- A customer whose earliest recurring invoice is a renewal
|
||||
(`subscription_cycle`) was a customer already: their first payment is
|
||||
reactivation (move `existing`, `Model.Existing`), not new, and puts them
|
||||
in no cohort. A $0 trial signup before it still makes them new. On the
|
||||
live data, 38 customers.
|
||||
- Cohorts show every cohort to the latest month, each as two rows: the
|
||||
share of starting MRR, and the dollars (`Cohort.MRR`). The start month's
|
||||
cohort is labelled *existing customers* (`Model.Base`). The CSVs follow.
|
||||
- The live data shows yearly Federated - Good renewals at $700 since July
|
||||
2026 (it was $70, then $190 from March): for the user to confirm.
|
||||
|
||||
**Next: testing by hand with TEST.md**, in three passes: local, then
|
||||
server with the Core, then multi-tenant (TEST.md's table says which
|
||||
sections go with each pass). What the passes find gets fixed as it comes.
|
||||
@@ -1129,7 +1149,8 @@ into `main`. **Parts 1 to 6 built, and merged into `main` on 2026-11-22**
|
||||
descriptions). Products are read on every sync; without Products
|
||||
access, the sync says so and names come from the line
|
||||
descriptions. `metrics.Products` lists each product's last 12
|
||||
months billed (paid and open invoices). Margins are a default plus
|
||||
months billed (paid and open invoices; MRR, since 2026-11-30, paid
|
||||
only). Margins are a default plus
|
||||
per-product overrides, under Metrics → Gross margin by product.
|
||||
`WeightedMargin` gives the revenue-weighted margin.
|
||||
- On the live account, the first full sync read 857 customers,
|
||||
@@ -1143,8 +1164,8 @@ into `main`. **Parts 1 to 6 built, and merged into `main` on 2026-11-22**
|
||||
- **Built 2026-11-22** (no schema change):
|
||||
- `metrics.Build` measures each customer's MRR at each month's last
|
||||
second (the current month: now). It sums the recurring lines of
|
||||
paid and open invoices in the main currency whose period covers
|
||||
that moment.
|
||||
paid invoices in the main currency whose period covers that moment
|
||||
(open ones too, until 2026-11-30).
|
||||
- A normal line is divided by its interval (a year counts as 12
|
||||
months, a week as 52/12). A proration is spread over its actual
|
||||
part-period, so an upgrade counts from its day. Under a cent counts
|
||||
@@ -1155,7 +1176,7 @@ into `main`. **Parts 1 to 6 built, and merged into `main` on 2026-11-22**
|
||||
paid then. NRR over 12 months is what the customers of 12 months
|
||||
ago pay now ÷ what they paid then.
|
||||
- Cohorts are by the first paid month, with the retained share of
|
||||
starting MRR for up to 12 months.
|
||||
starting MRR (since 2026-11-30: and the dollars, every month).
|
||||
- **Start month.** When 20+ customers and most of the MRR appear as
|
||||
new in one month, the app suggests counting from it. That's what
|
||||
happened in January 2025 on the live account: billing came back to
|
||||
@@ -1174,8 +1195,9 @@ into `main`. **Parts 1 to 6 built, and merged into `main` on 2026-11-22**
|
||||
tie.
|
||||
- **Built 2026-11-22** (schema 20: `crm_matches`, the user's choices
|
||||
only):
|
||||
- `metrics.Matches` matches every customer with a paid or open
|
||||
invoice, in this order:
|
||||
- `metrics.Matches` matches every customer who has spent more than
|
||||
$0 (until 2026-11-30: every customer with a paid or open invoice),
|
||||
in this order:
|
||||
1. the user's choice;
|
||||
2. an Account Hermes created from here (a done `stripe-customer:`
|
||||
CRM action);
|
||||
@@ -1258,7 +1280,7 @@ into `main`. **Parts 1 to 6 built, and merged into `main` on 2026-11-22**
|
||||
CLV:CAC.
|
||||
- `metrics.Export` writes eight tables as CSV, amounts in dollars:
|
||||
MRR month by month (every month), NRR by cohort and revenue by
|
||||
cohort (24 months), CAC by month and by channel, the spend log,
|
||||
cohort (every cohort, every month, since 2026-11-30), CAC by month and by channel, the spend log,
|
||||
products and margins, and customers with their MRR and CRM match.
|
||||
Each is downloaded at `/metrics/export/<name>.csv`, linked under
|
||||
its table.
|
||||
|
||||
Reference in New Issue
Block a user