Skip to main content
On this page

Getting Started

Key concepts

Kater is where warehouse tables become definitions the data team verifies. Every answer, chart, dashboard and app reads them.

How work moves

  1. Find the measure that means it, in the Shared layer (search the catalog).
  2. Ask with a query in a workspace over one semantic model.
  3. Show with a chart, on a dashboard or in an app.
  4. Keep with a follow, a project or a workflow.
  5. Promote a field more than one person needs into the Shared layer (skill model-layer-rules-promotion).

How objects connect

Layers hold models; a model declares members; a field’s role is its type. Resources read the models; records are numbers and rows about them, with no file.

Each label counts the two ends: 1 : n is one to many, n : n many to many, 0..1 at most one. A query, its charts and its dashboard sit inside their workspace. A dotted line is a snapshot kept.

DB dataset feeds Kater dataset (1 : n)1 : nKater dataset feeds Semantic model (n : n)n : nKater dataset feeds Test (0..1 : n)0..1 : nKater dataset feeds Workspace (0..1 : n)0..1 : nSemantic model feeds Semantic model (n : n)n : nSemantic model feeds Test (0..1 : n)0..1 : nSemantic model has Explore (1 : 0..1)1 : 0..1Semantic model feeds Workspace (0..1 : n)0..1 : nQuery feeds Query (n : n)n : nQuery feeds Chart (1 : n)1 : nQuery feeds App (n : n)n : nChart is laid out on Dashboard (n : 0..1)n : 0..1Dashboard is kept as Snapshot (0..1 : n)0..1 : nApp is grouped in Project (n : n)n : nApp is kept as Snapshot (0..1 : n)0..1 : n
SOURCE LAYER
SHARED LAYER
WORKSPACE LAYER
WHAT PEOPLE OPEN
can be in a workspace
can be in a workspace

Figures

A query’s result is figures: one field at one row, with a value for each period. A part is drawn inside what owns it, so a figure holds its usual range and its rows of Compare’s check, one for each two periods. A project tracks a figure, a follow stars it, and a citation writes it on a page. For you ranks Compare’s rows, and a takeaway cites them, as part of a dashboard or a snapshot. Records wear no colour.

Query feeds Chart (1 : n)1 : nQuery gives Figure (1 : n)1 : nChart is starred in Follow (0..1 : n)0..1 : nDashboard is kept as Snapshot (0..1 : n)0..1 : nDashboard holds Takeaway (0..1 : n)0..1 : nFigure is tracked in Project (n : n)n : nFigure is starred in Follow (0..1 : n)0..1 : nFigure is written as Citation (0..1 : n)0..1 : nCompare is ranked into For you (0..1 : n)0..1 : nCompare is cited by Takeaway (n : n)n : nSnapshot holds Takeaway (0..1 : n)0..1 : nCitation is worked out from Citation (n : n)n : n
a chart's star covers every figure it draws

Layer types

Where a model is made.

LayerIs
SourceThe warehouse’s tables. Not: source (alone).
SharedThe data team’s governed models, where Verified fields live.
WorkspaceWhere people ask and keep questions.
SandboxOne person’s tries in scratch files, in their own folder.

Model types

The SQL files a layer holds.

ModelLayerIsMay useSkill
DB datasetSourceOne warehouse table. Sync writes it.nonedataset-db
Kater datasetSharedThe governed view of one table or SQL query: its dimensions, measures and formats. Not: dataset (alone), view.measures, required filtersdataset-kater
Semantic modelSharedKater datasets joined by relationships: the model people ask questions of. Not: model (alone), cube.relationships, measures, required filterssemantic-model
TestSharedA question with rows someone checked; a rerun fails when a change moves them.measures, custom calculationstests
WorkspaceWorkspaceWhere queries on one subject live, read through its root. Its dashboard is its page. Not: project, folder.measures, parameters, required and optional filtersoverview
QueryWorkspaceA named Kater SQL question. Not: query contract, saved query, report.relationships, measures, parameters, required and optional filters, custom calculationsquery-authoring
ChartWorkspaceOne way to draw one query: it picks, filters and orders its columns.nonesandbox-charts
Scratch fileSandboxA person’s SQL file in their Sandbox.measures, parameters, optional filters, custom calculationssandbox

Member types

What a model declares.

MemberIsSkill
FieldA named column a model declares.new-fields
RelationshipHow two datasets join, and which side has many rows. Not: join path.modeling-practices
FilterA condition on a model or a query: required always applies; optional is on or off for the reader. Not: dynamic filter.filters
ParameterA value a reader sets, such as a date window, that a filter or a field reads. Not: variable.filters

Field types

What a field is once its role is known.

FieldIsSkill
MeasureA total that adds up again at whatever level a reader asks for, such as Email revenue. Not: metric, KPI.new-fields
DimensionA field you group, filter or slice by, such as Channel or Order month. Not: attribute.new-fields
Custom calculationA field a query works out across its own rows, such as a rank or a running total. Not: table calculation, window.new-fields

Resource types

What people open, share and run.

ResourceIsSkill
ConnectionOne warehouse of your organisation, and everything modeled on it. Not: database, source.tour
ExploreA semantic model’s ready-made cards; each opens into a workspace.overview
DashboardA workspace’s charts in sections under one filter bar. Not: report.dashboard
AppA page, report, deck or chat record drawn from live queries. Not: dashboard (for an app).app
ProjectApps and figures grouped around one goal, with one timeline. Not: workspace (for a goal).projects
WorkflowSteps an agent runs on a schedule or when asked, such as a Monday brief. Not: automation.workflows
SkillA Markdown file that teaches an agent one task. An agent is a role that uses skills. Not: prompt.new-skill
NoteContext an agent reads, such as a person’s about.md or a connection’s connection_context.md.about-me

Records

Numbers and rows about objects, with no file.

RecordIsSkill
FigureOne field at one row of a query’s result, with a value for each period, such as Email revenue for Email by week. Verified when its field is. Not: project metric.follow
CompareChecks every figure of an app, a workspace or a query for two periods: its change, usual range, size, last year and record. One that stands out has meaningfully changed. Not: anomaly.
Usual rangeWhere a figure usually lives, from its own periods. Not: threshold, normal range.follow
SnapshotWhat a dashboard or an app showed at one run; it never changes. Not: export.projects-documents
TakeawayA sentence citing Compare’s rows, typing no number ({f01} is a figure); a dashboard’s key takeaway is a row.projects-documents
CitationA number as a page or an answer writes it, with where it came from: a figure, link, file, person or mock data. Not: provenance.app-sources
FollowWhat a person stars: a figure, chart or project; Compare tells them when a figure stands out. Not: alert, pin, watch.follow
For youA card Home ranks for a person each night: a figure that stands out, a project’s open loop or a key takeaway. Not: feed.
RoleAdmin, Developer (the data team) or Explorer: what a person may do. Not: permission.portal
GrantViewer, Editor or Manager, execute access, or both, on a folder or file, for a person, a group or Everyone. Not: share, ACL.portal

Laws

  • Data moves down the layers and never back. A model reads only its own layer or the ones before it; a test may also read the workspace it checks.
  • Verified means a field of the Shared layer; a query’s field is verified once promoted there.
  • A shared model means the same to every reader: it has no parameters and no optional filters.
  • A workspace reads one shared model through its root; a field every query needs goes there.
  • Only Compare’s check says a figure meaningfully changed. Cite its row or verdict words; never judge a change yourself.
  • A custom calculation lives in a query, a test or a scratch file, never in a model.
  • An agent acts as its person, within their role and grants. Read access gives a model’s logic; execute access gives its data.

Identity

  • Every object has a key: its kind, where it lives and its name; never a file path or a label.
  • Its id, rel1_…, is a hash of the key. A rename gives a new id; the old name still finds it.
  • A name is 1 to 64 lower case letters, digits and _; an output with no name gets a made one, sum__amount. The label (the words after AS) is what people read and may change.
  • On screen an object is <kind>.<name>: query.email_revenue_by_week. A command takes the connection first: snowflake_prod_connection/email/email_revenue_by_week. A field is its model’s key and its name (fld1_…).
  • A figure is its query’s key, field and row.

Kater SQL

  • Kater SQL is the warehouse’s SQL with Kater’s additions: DIMENSION, MEASURE, EVAL, RELATIONSHIP, REQUIRED_FILTER, OPTIONAL_FILTER, CUSTOM_CALCULATION, the KATER__ functions and -- @ comments. A query with none means what it means in the warehouse.
  • An Excel formula, starting with =, defines one whole column of a query’s result. Always two words: a plain formula is a field’s SQL.

Model for business people

  • Name and label a field the way the business says it. Its description, ai_context and business_questions say when to use it.
  • One meaning, one measure. Declare a new measure only when the definition changes, and give it a new name.
  • Map a code to the name people use once, in the shared model, beside the code.
  • Keep a date at the source’s finest grain; a reader groups it by week or month.
  • Keep an amount’s unit beside it; it adds up only within one.

Colour and mark

  • A model wears its layer’s colour: Source navy, Shared green, Workspace blue, Sandbox pink; a query and its chart orange.
  • A field wears its role: measure blue, dimension cobalt, custom calculation purple. The mark, not the colour, says the kind.
Open full size

A field moves up

Anyone who edits a workspace may promote; the data team approves or denies each request.

  • Scratch file → add to a workspace → Query field
  • Query field → promote → Workspace root field
  • Workspace root field → promotion request → Semantic model field
  • Query field → promotion request → Semantic model field
  • Semantic model field → move up → Kater dataset field

A promotion request starts as pending.

  • pending moves to approved or denied or withdrawn
  • denied moves to pending

Other words

Words these docs use that no object of the picture stands for.

TermWhat it is
OrganisationYour company in Kater. People sign in to it through PropelAuth, and everything belongs to one organisation.
Content storeThe git repository that holds your organisation’s content. Nobody clones it directly.
Local copyA snapshot of everything you can read, made with kater git clone. You publish from it with kater git push.
Write-backAn optional, one-way publish of each connection’s modeling/ folder to your own GitHub repository.
Kater MCPThe server your agent connects to. It acts as the person who signed in.
Ask panelWith in-app chat on, the answer to your question shows in the panel. Otherwise Ask writes a prompt from what you type and the page you are on, then opens it in your agent.
StarterA ready-made prompt, such as Brief me, in the Ask panel and in your agent.
Scheduled workflowA workflow with a schedule: block, which runs on its schedule, such as every Monday at 08:00.
CuratedA model, query or workspace the data team recommends, with curated: ["true"] in its frontmatter tags. It grants no access and verifies no field.
Promotion requestA person’s request, with a reason, to move a field into a shared model. A person who can change the Shared layer approves or denies it, its requester only when shared_layer.approve_own_requests names their role.
Ask to defineA request, with no draft, that the data team define a field for a number cited from outside Kater.
Promotion recommendationA field defined the same way in several models, offered to the data team.
History and UndoEvery change to a workspace, app or file, each of which you can undo as a new change.
Brainstorm folderYour private folder for notes, scratch files, workspace copies and draft apps.
Workspace copyA private copy of a workspace where you try a change, then diff and apply it.
OriginWhere a cited number came from: a figure, a link, a file, a person or mock data.
SourcesThe citations of one document, listed by number, each with where its number came from.