Skip to main content
How to draft, confirm and propose metrics is in metrics.

What a definition holds

Every proposal, from the form, an agent or drafting, is checked against the source’s catalog before it is saved. Whether a person may read the numbers is checked on every call, as that person. A metric’s owner is whoever first proposed it, or started the drafting.

Events and states

  • Events, such as sign-ups or orders, leave Until empty. Each row counts in the period its time column falls in.
  • A state that lasts, such as MRR, names an Until column. A row counts from its time column until Until, open while that is empty. Each period shows the state at its end. Don’t filter a state on a current status such as status = 'active': that drops rows that left it since.

Versions and statuses

Every change is a new version (v1, v2, v3), each a draft or confirmed; a confirmed version records who confirmed it and when.
  • Answers use the version confirmed last; until there is one, the newest draft, and they say so.
  • A newer draft of a confirmed metric waits: Metrics shows Confirmed v2 with Draft v3 waiting.
  • Discard removes a never-confirmed metric with all its versions.

The workspace time zone

Days, weeks (from Monday) and months start at midnight in the workspace’s time zone, and a date range includes its first and last day. A new workspace takes your browser’s zone; one with none set uses UTC. Owners and admins change it under Time zone on Metrics; answers already given keep their numbers. Provenance lines use the zone; Activity shows UTC.

What the model sees

For one source, the drafting model is sent:
  • the source’s name and engine;
  • each table and view Everyone can read: name, kind, comment, and each column’s name, type, comment, and whether it is a primary key or can’t be empty; and the foreign keys between them;
  • which columns are masked, so it doesn’t group or filter by them;
  • a few distinct values of short text columns (below);
  • the source’s other metrics: names, descriptions, status;
  • your answers to the three questions;
  • for Save as metric, the statement as written.
The distinct values let it ask whether active or trialing counts as active. Midplane reads them through Everyone’s access, only from text columns that aren’t masked or flagged as personal data or a credential (even if the review left them clear), and only where a sample of 10,000 rows has at most 20 distinct values of at most 64 characters, and at most half as many distinct values as rows. At most 8 columns a table and 60 a source. These reads show in Activity as Midplane drafting.

What the model never sees

Any other value from your tables (no rows, no numbers, nothing from masked or unreviewed columns), tables and views Everyone can’t read, query results, answers, snapshots and the activity log.

Which model drafts

In the EU region, drafting asks a language model on Microsoft’s Azure OpenAI, through an Azure resource in the EU. The US region has no drafting yet. See regions.

When drafting fails

A run replaces the earlier drafts on the source that no one confirmed or changed; Cancel keeps nothing it drafted. The Drafting card on Metrics says why a run failed, and offers Draft again: