GASP Standard

v1.27.0
io.github.GASP-Standard/gasp-standard-mcp Checked 1 day ago Published 1 hour ago

MCP server for the GASP Standard: SaaS metric definitions, formulas, benchmarks, the entity and metric graph, access governance, query generation and the Ossie…

MCP server for the GASP Standard, the Generally Accepted SaaS Principles standard for metric definitions, formulas, benchmarks and relationships. Works with Claude Code, Claude Desktop or any MCP-compatible client. The package bundles a copy of the standard, so it runs offline. I maintain the standard and this server together. Each release carries the standard as it stood on the day I published it. GASP Standard is listed in the Claude connectors directory: open it and click Connect. The tools that read the standard need no sign-in.

Summary extracted from the README.

gasp-standard-mcp

MCP server for the GASP Standard, the Generally Accepted SaaS Principles standard for metric definitions, formulas, benchmarks and relationships.

Works with Claude Code, Claude Desktop or any MCP-compatible client. The package bundles a copy of the standard, so it runs offline. I maintain the standard and this server together. Each release carries the standard as it stood on the day I published it.

Install

Claude (web, desktop, mobile)

GASP Standard is listed in the Claude connectors directory: open it and click Connect. The tools that read the standard need no sign-in. Any other client that takes a remote MCP server uses the hosted endpoint https://mcp.gaspwiki.com/mcp (Streamable HTTP; /health reports the version).

Claude Code (one command)

claude mcp add gasp-standard -- npx -y gasp-standard-mcp

Manual config

Add to your project's .mcp.json (or use claude mcp add --scope user for every project):

{
  "mcpServers": {
    "gasp-standard": {
      "command": "npx",
      "args": ["-y", "gasp-standard-mcp"]
    }
  }
}

Restart your MCP client after adding the config.

Hosted endpoint

The same server runs over Streamable HTTP for clients that connect to a remote server, such as the Claude connectors directory. Every standard tool is read-only. With the Workspace off (the default) the endpoint takes no authentication. With it on, the tools that implement the standard for a company need sign-in (see Workspace below).

npx gasp-standard-mcp-http          # PORT=3000, endpoint /mcp, /health for the version and tool count

PORT, HOST and MCP_PATH set where it listens. MCP_ALLOWED_HOSTS and MCP_ALLOWED_ORIGINS (comma-separated) refuse requests whose Host or Origin header is not listed, the DNS-rebinding guard for a server reachable from a browser; set MCP_ALLOWED_HOSTS to the public hostname in production. MCP_RATE_LIMIT (requests a minute per client address, default 60), MCP_MAX_BODY_BYTES (default 1 MB) and MCP_HEAVY_CONCURRENCY (how many score_drift and readiness_report calls run at once, default 2) guard a public endpoint; 0 turns one off. The Dockerfile in this directory serves the published package the same way. Every standard tool carries a title and readOnlyHint: true, so a client can run them without a per-call prompt. save_workspace is the one tool that writes. The HTTP server writes one JSON line to stderr per tool call (the tool, the duration, success or error and the client's name and version; never the arguments or the result), so the host's logs count calls per tool.

Workspace

GASP Workspace keeps a company's mapping, semantic model, decisions, check results and schema snapshots on the hosted server, versioned, and is used through this same server. It is off unless both WORKSPACE_DATABASE_URL (Postgres) and WORKSPACE_ISSUER (the WorkOS AuthKit domain, such as https://<tenant>.authkit.app, the OAuth 2.1 authorization server the MCP client signs in through) are set on gasp-standard-mcp-http. With it on:

  • save_workspace and load_workspace are served, and need a signed-in company. The company is the WorkOS organisation in the access token; its first member becomes the admin and a new company starts on a thirty-day trial.
  • A call to a protected tool without a valid bearer token gets a 401 with WWW-Authenticate: Bearer resource_metadata="<resource origin>/.well-known/oauth-protected-resource", which sends the client through sign-in. The protected tools are profile_schema, propose_mapping, record_decision, compile_model, compile_target, score_drift, derive_cel, generate_checks, plan_fixes, readiness_report and the two workspace tools; the thirteen tools that read the standard (fourteen names, with validate_adapter) stay anonymous.
  • The protected-resource metadata is served at /.well-known/oauth-protected-resource and at the same path with the MCP path appended, and each tool call record gains company, the organisation id (never the user or the email).

The other variables: WORKSPACE_JWKS_URL (default <issuer>/oauth2/jwks), WORKSPACE_AUDIENCE (the aud a token must carry; unchecked when unset), WORKSPACE_RESOURCE (the URL the Workspace is signed in to, default https://mcp.koinedata.com/mcp), WORKSPACE_TOOLS (comma-separated tool names that need a signed-in company, replacing the list above; the two workspace tools are always included) and WORKSPACE_DATABASE_CA (the database's CA certificate in PEM, for a managed Postgres that signs with its own). The stdio package (gasp-standard-mcp) never asks for sign-in and serves every standard tool free.

Tools

Tool Description
lookup_metric Full record for one metric: department, category, signal type, definition, formulas as written, the canonical formula with unit, forms, variants and breakdowns, benchmarks, validation rules, common mistakes, sources, aliases, the entities it measures, operating and market forms, the recommended sensitivity tier and access scope and the page URL. Matches exactly, ignoring case: formula id, graph node id, name with or without its abbreviation, abbreviation, graph label, alias or slug, with the full record preferred over a cross-reference stub. A name two departments define (Activation Rate) lists each candidate with department, formula id and URL; prefix the department ("Product Activation Rate") or pass the formula id. A glossary term returns its definition and a miss returns close names (misspellings included)
lookup_definition Glossary term lookup (e.g. Signal Type, Sensitivity Tier, Access Scope, Metric Owner, CEL): full definition, section, canonical or reference link, where it is used and page URL. Matches the term, its slug, either part of "Term (Abbreviation)" or a name on its "Also called" line exactly; a metric name points to lookup_metric and a miss returns close terms
list_metrics Metric names grouped by department and category, optionally filtered by department (case-insensitive, spaces or hyphens; an unknown name returns close names and the department list) and signal type (outcome, leading, efficiency, operational, primary or secondary). The Core tier is the Core department
get_formula Canonical formula in the GASP formula grammar, with unit, O/M forms, named variants, breakdowns (field, bucket and total mode), notes, input metrics with role and polarity, the fields and datasets the formula and each form read and the enum filters each form applies (CAC-O reads cost_function in (gtm, implementation, onboarding), CAC-M cost_function = gtm), then the formula as written in the standard. Metrics that cannot be computed carry the reason
get_relationships One node of the relationship graph (metric, entity or concept) with its direct edges: upstream, measured by, downstream and measures. 21 relationship types across signal, lifecycle, ownership, interaction and financial flow categories. Metric names resolve as in lookup_metric, ambiguity included; a metric outside the graph says so. An entity also lists every metric whose formula reads its datasets (from entityMappings), with department and URL
get_data_requirements Data requirements for one metric, a department or every metric with a formula: per metric, each field and dataset pair with its type, the staged flag, source, grain, frequency, page URL and example SQL. The metric resolves exactly as in lookup_metric; department lists a department or picks between metrics sharing a name. Optional breakdown names a breakdown the metric declares (by_plan on MRR) and returns that breakdown's requirement: the dimension among the fields and example SQL with one row per value; an unknown name lists the declared ones. Optional dialect (postgres by default and for Redshift, snowflake, bigquery, databricks) writes the example SQL for that warehouse
search Whole-word phrase search across metrics (names, aliases, definitions, formulas, fields, categories, departments) and glossary terms (terms, definitions, sections); the last word may take a plural or verb ending. Up to 10 results, one per metric or term, ranked name, alias and term first, then words within them, then definitions, then formulas and fields, each with what matched and its gaspwiki.com URL. A query that matches nothing returns up to 6 close names as "Did you mean"
generate_query Compile warehouse SQL from the metric's canonical formula and a mapping (a GASP adapter, or an Ossie mapping with its semantic_model). One scalar subquery per aggregate, each reading the table mapped for its dataset, with :period_start and :period_end date parameters (both inclusive). Unmapped pairs stay as {{field@dataset}} placeholders and are listed with any dataset lacking a table and any mapping conflict. Optional breakdown names a breakdown the metric declares (by_plan on MRR) and returns one row per value; an unknown name lists the declared ones. Optional dialect (postgres, snowflake, bigquery, databricks; postgres also covers Redshift) picks the SQL syntax for date arithmetic, casts and percentiles; without it the adapter's warehouse decides when it names one of them, else postgres. The output says which dialect it used
validate_mapping Validate a warehouse mapping in either format: a GASP adapter (JSON) or an Apache Ossie mapping document (YAML or JSON) over your semantic model, passed as semantic_model. A GASP adapter is converted on load into an Ossie mapping over a model synthesised from its tables and columns. Reports in layers: the schema (the adapter JSON Schema, and the bundled Ossie mapping schema for the Ossie form), GASP's cross-document checks against the GASP ontology and the model, then coverage: unknown fields and datasets, fields mapped to a dataset that does not carry them, table conflicts, every metric with a formula scored against the field and dataset pairs its compiled SQL reads (full, partial with the missing pairs or none), enum fields mapped without a transform, covered metrics without an owner, owners naming unknown metrics and up to 15 unmapped pairs ranked by how many partially covered metrics need them. validate_adapter is the same tool under its original name
score_drift Score how far your own metrics drift from GASP's canonical definitions, by result. Takes your mapping (either format) and your semantic_model holding your metrics; each is matched to a GASP metric by exact name, by the synonyms in its ai_context or by a pair in matches, a name ending in -O or -M matching that declared form, with near names listed for review and never scored on a guess. The canonical metric is compiled into your names and both run on the GASP synthetic SaaS dataset for six monthly periods in an in-process Postgres (PGlite, an optional dependency). Differences come with both values per period and the likely cause read from the canonical formula: a null on one side (a sum over no rows is NULL in your SQL and 0 in GASP's), a cohort or opening value the expression cannot state, a filter one side applies, a dataset one side reads, an aggregate with no equal on the other side. Your values are checked against the standard's range for the metric per period, and where both forms of a dual-lens metric are matched the O/M bridge (the Durability Gap for ARR, the Activation Delta for CAC and the others the Core metrics name) is scored beside the canonical gap. output: json returns the data
profile_schema Profile your warehouse schema into a minimal Ossie semantic model, the first step towards a mapping. Pass the rows of information_schema.columns (JSON or CSV), a tables list or CREATE TABLE statements, read through your own warehouse MCP or from a dump, and optionally statistics per column (output: statistics returns the query that gathers them). Every table gets a key, a time field and a kind (snapshot, event, fact or reference) with the evidence and a confidence, plus the relationships the columns imply; what the names cannot settle is a question for you rather than a guess. The model is returned as YAML to pass on as semantic_model
propose_mapping Propose a GASP mapping from the model profile_schema returned (or your own Ossie model, or a schema profiled on the way in). Every table is scored against the GASP datasets on its columns, its profiled kind, key and time field and its name; every column of a proposed table against the dataset's fields by name, structural role, a short synonym list, word order and near names, checked against the type and the listed values. A column in cents gets a divide-by-100 transform and enum values the standard does not use a CASE recode when one is known. High-confidence pairs become an Ossie mapping over the model (a transform a calculated field) for validate_mapping; medium ones are candidates with their evidence and what would settle them; output: adapter gives the pairs as a GASP adapter
derive_cel SQL that derives CEL Revenue_Event rows from your billing data by the rules in cel.md. source: subscription (default): the subscription dataset your mapping covers (snapshots at any cadence or a version history) becomes one event per movement, with the customer's prior_mrr and new_mrr chained so the row identity holds, the event type read from the customer's MRR around the step, the ATL lifecycle tag and an empty expansion_classification the ledger cannot fill. source: invoice: the invoice dataset read as one row per service period (recurring_amount over the months between service_period_start and service_period_end), for a billing system that keeps no subscription history. Usage billed above a commitment is Consumption Revenue and adds no Revenue_Event. target: credit_event writes it as Credit_Event rows: one overage consumption per usage period above its commitment, for a company with usage records and no credit ledger. Same mapping input as generate_query, plus the ledger's currency; dialect from the request or the warehouse; unmapped fields listed
generate_checks SQL for the readiness checks the standard states, over the datasets your mapping covers: CEL row identity, MRR continuity, the year-or-renewal test (a contract under 12 months with no renewal stays out of the subscription dataset and carries no ACV), unique event ids, the ATL tags (lifecycle, expansion classification, cost function), customer identity both ways, freshness per dataset and, for every fully mapped metric with a hard range rule in the ontology (NRR at least 0, GRR at most 100%), its value in every reporting period of your period spine (period_spine, the table compile_model reads), one row per check. Paste the result rows back as results for pass or fail per check and per metric, each check naming the metrics it protects. output: bundle writes the scheduled re-check: the checks and a schema snapshot query over the mapped tables, to run in your own orchestrator after each load. Same mapping input as generate_query; dialect from the request or the warehouse
plan_fixes The ranked fix list: every unmapped field and every failing check, ordered by Core metrics unlocked, then all metrics unlocked, with an effort class shown and used only as a tiebreak. A fix unlocks a metric when it is the last thing between that metric and covered-and-passing. Takes the mapping and the results from generate_checks
readiness_report Which readiness level a company has reached and what stands between it and the next, read from the documents the other tools wrote: L1 Profiled (a semantic model exists), L2 Mapped (a metric fully covered, no open question or candidate), L3 Clean core (the CEL revenue events mapped, the checks run and every covered Core metric passing every check that protects it), L4 LLM-ready (the canonical metrics compiled into the model and none of your own metrics differing from its canonical counterpart). Takes the mapping, the semantic_model (with an adapter, the one compile_model returned) and the results from generate_checks; each blocker names the tool that clears it and the Next line is the one action to take. With a schema snapshot it also names every mapped pair that reads a table or column the warehouse no longer has and the metrics that lose coverage (a level 2 blocker), and with previous_schema the columns added, dropped and retyped since
record_decision Record the decisions people make on the proposed mapping, each named by content with its owner and date: a profiler question answered (key, time field, kind, datatype) is written into the model; a candidate accepted or rejected into the mapping (an accepted table matched column by column, an accepted column with an optional transform as a calculated field); a metric owner into metricOwners; a judgement call GASP cannot apply (reporting currency, churn date) recorded. All land in the mapping's GASP extension; a later decision on a subject replaces the earlier one. With no decisions it lists the open questions, candidates and unowned metrics and whether readiness level 2 is reached
compile_model Compile the GASP metrics your mapping covers into your Apache Ossie semantic model. Same input as validate_mapping; returns your model with a gasp_ metric per covered formula entry (main formula, O and M forms, variants, named breakdowns): a direct OSSIE_SQL_2026 expression over your datasets and fields where the language can state it, else staged through a gasp_staged_ per-period dataset whose source is the compiled SQL over your tables in your warehouse dialect, reading the period_spine table you name. Net Revenue Retention (NRR) and Gross Revenue Retention (GRR) are sums over one shared dataset, gasp_account_cohorts, with one row per customer per period, so they can be sliced by any attribute joined on the customer. Entries with unmapped pairs are listed with the pairs they need; recompiling replaces the gasp_ additions and leaves the rest. Optional metrics and department compile a subset; output: report returns the coverage without the document
compile_target Compile the GASP metrics your mapping covers into the files of your semantic-layer engine. Same input as compile_model, compiled the same way and written in the engine's format and your warehouse's SQL (a filtered aggregate as a CASE inside it, each staged query the compiled source in that dialect). target: snowflake gives semantic_model.yaml, a Cortex Analyst semantic model with database.schema.table base tables, time dimensions, dimensions, facts, relationships and the gasp_ metrics (loadable as a semantic view), and staged_views.sql, the period spine table and one view per staged dataset (one per staged metric, with the cohort table shared by the retention metrics), to run first; database and staged_schema complete the names. target: cube gives a Cube data model: model/cubes/<table>.yml per table with its joins, a dimension per field and the metrics as measures, and one view joining the cubes from revenue_event; dialect picks its SQL. target: dbt gives a MetricFlow project fragment under models/gasp/: a model per table (with gasp_surrogate_key, the key columns joined as text, wherever the key is composite, since MetricFlow keys an entity on one column), a model per staged dataset and the period spine, the sources, a semantic model per table and the metrics as simple, ratio or derived; the project supplies its own MetricFlow time spine. Unmapped and not computable entries are listed; output: files returns the files alone and output: report the coverage and notes
infer_drivers Diagnose what could explain an observed metric movement: up to 25 upstream candidates ranked by attenuation score, each with its implied direction and path. Direction flips across reduces edges and negative-polarity inputs; a baseline input (MRR read at period start by NRR) is listed but not walked through. Metric nodes only; maxDepth 1 to 8 (default 6)
explain_path Up to 5 forward edge chains from one graph node to another, shortest first, with edge type, classification (metric_signal / structural / lifecycle / behavioral / assignment / generative), attenuation and direction flips per step and the target's end direction per path. A baseline edge can only start a path
coverage_gap Audit a metric set: metrics with a direct edge into or out of it that it leaves out, plus graph metrics with no path to or from it. Inputs that are ambiguous, outside the graph or not metrics are listed as unresolved with the reason
classify_revenue Apply the year-or-renewal test to one contract (kind: what is sold, its term in months, whether it renews or follows an earlier term, whether the customer holds another subscription, is coming back or is converting from a trial, its value), a contract with several lines (lines, with an optional bundle price) or a change to a running subscription (change): whether it counts in MRR and ARR, the line the revenue is reported on, whether its end is churn, what its first and last day are reported as, every other metric it reaches and the amounts, with the page of each metric named and a link to the same answer in the calculator at https://gaspwiki.com/research/does-it-count

The traversal tools (infer_drivers, explain_path, coverage_gap) return paths, edge classifications and attenuation scores. A score says how strongly the graph connects two metrics, never how far one will move. The tools chain: infer_drivers picks candidates, explain_path shows the chain behind one and coverage_gap checks whether you measure it. For "what if" simulation, use the TWIN Modifier.

Data

Version 1.26.0.

  • 320 metrics across 13 departments
  • 123 glossary definitions (110 SaaS domain + 13 GASP framework)
  • 105 relationship nodes (70 metrics + 28 entities + 7 concepts), 213 edges
  • 21 relationship types: metric signal (drives, reduces, predicts, component, measures), entity lifecycle (converts_to, parent_of, belongs_to), entity ownership (owns, grants, priced_by), entity interactions (manages, serves, engages_via, submits, represented_by, sources), entity financial flows (generates, produces, contributes_to, incurs)
  • 298 data requirements, one per metric with a formula, compiled from the formula at load time: fields with types, datasets, grain and a compiled example query
  • 298 query templates, one per metric with a formula, compiled by the same step. None of the SQL is hand-written. Every field placeholder names the dataset it is read from ({{customer_status@customer}}), so generate_query resolves per-dataset adapter mappings by tag, inside cohort subqueries too. The grammar's window(expr, n unit) gives Daily, Weekly and Monthly Active Users (DAU, WAU, MAU) their 1, 7 and 30 day windows. all_time(expr) lets retention numerators read past the period end. A multi-argument count_distinct counts distinct tuples (Breadth of Adoption counts account and feature pairs). A cohort takes a condition, over cohort(field.<key>, <point> where <condition>), so a metric follows the entities that met it on that day (Commit Accuracy follows the deals in commit when the period opened). A formula with a breakdown field compiles to one row per value of that field, with total(expr) reading the whole population for shares of total (Ticket Distribution by Type, CAC by Channel)
  • The test suite executes every compiled template against a seeded fixture in an in-process Postgres (PGlite) and checks selected metrics against independently computed values
  • Apache Ossie (incubating) export, written by npm run derive to standard/exports/ossie/ and served at https://gaspwiki.com/downloads/ossie/: gasp.ontology.yaml (every dataset and GASP concept as an entity type, every field as a value type or relationship, enum values as constraints), gasp.semantic_model.yaml (every dataset with OSSIE_SQL_2026 field expressions, the foreign-key relationships between them and every canonical formula as a metric, either a direct expression or staged through a dataset that carries the compiled SQL: one row per period holding the value or, for the NRR and GRR entries, the cohort table gasp_account_cohorts with one row per customer per period that their expressions sum, the customer's segment on the period's first day beside the key for the two by_segment breakdowns; O/M forms and variants are separate metrics with the form in nonportable_extensions), gasp.mapping.yaml (the ontology mapped onto the model) and coverage.json (how each formula was exported and why). All three documents pass the upstream validator (vendored at ossie-validator/), its vendor run --vendor GASP with the checker in gasp-ossie-validator/ and GASP's own cross-reference checks in src/ossie/check.ts, which cover references the upstream validator leaves alone
  • 28 business entities (Customer, Subscription, License, Lead, Opportunity, User, Ticket, Employee, Invoice, Partner, Project, Plan, Product, Campaign, Contact, Incident, Deployment, Release, Issue, Vulnerability, Feature, Requisition, Project Milestone, Deliverable, Quote, Order, Knowledge Article and Deal Registration). Every dataset with its own identity maps to an entity; ledger and period-level facts (cost events, financials, forecasts, web traffic) stay entity-free
  • 7 business concepts (Revenue, Bookings, COGS, Cohort, Pipeline, Segment and TCV)
  • 295 canonical fields across 56 datasets (event, snapshot and fact tables with date and key fields, entities, CEL class and activation rules). Enum fields declare their allowed values
  • 70 structured formulas with decomposed inputs (metric refs + field refs, with baseline inputs marked)
  • Canonical formulas for every metric in the GASP formula grammar (standard/formulas.json): 308 entries covering all 320 metrics (298 with formulas, 10 marked not computable with a reason, 2 department-qualified ids for shared headings), with units, O/M forms for ARR, NRR, CAC, LTV, LTV:CAC, CAC Payback and Gross Margin (a form can reference another metric's form, metric.gross_margin.O) and variants such as Adjusted NRR (served by get_formula and compiled by generate_query and get_data_requirements)
  • Access control classifications for every graph metric (sensitivity tier + access scope)
  • CEL change_nature field for revenue quality analysis (Adjusted NRR/GRR) and segment on revenue, contract and amendment events, so MRR, retention and churn metrics break down by customer segment
  • Per-department cross-references (NRR under Customer Success, CAC under Marketing) resolve to the full canonical record, with its access classification, structured formula and entity mappings
  • Every metric and definition result carries its gaspwiki.com page URL; definitions keep their full body and reference links
  • One mapping format: a company's warehouse mapping is an Apache Ossie mapping document over its semantic model, and the v1 adapter is accepted everywhere and converted on load (src/ossie/adapt.ts). The upstream Ossie schemas travel in the bundled data as ossieSchemas, so validate_mapping checks an Ossie mapping offline. Every tool reads a document in the forms Apache Ossie has proposed as well as the current one: vendor_name and dialect in any case (apache/ossie #712) and a dataset source as a table object, {kind: table, identifier: [...]} (apache/ossie #704), and hands back the form the pinned validator accepts
  • The schema profiler (src/ossie/profile.ts, behind profile_schema) turns a schema dump into a minimal Ossie semantic model with its evidence; the Acme DDL in test/fixture/acme-schema.sql is its fixture.
  • The mapping proposer (src/ossie/propose.ts, behind propose_mapping) turns that model into a draft GASP mapping with the evidence per pair, transforms where the name or the values call for one and candidates for the pairs the evidence does not settle; on the Acme DDL it reproduces the Acme adapter.
  • The CEL derivations (src/cel.ts, behind derive_cel) are the standard's rules for turning a subscription ledger or an invoice ledger into Revenue_Event rows and usage records into Credit_Event rows, compiled over a company's mapping in its dialect. The test suite runs them over the synthetic dataset: every generated movement comes back from the subscription snapshots with monthly sums equal to the compiled MRR movement metrics, the monthly invoices give the month-start movements with a lapsed subscription churning the day after its last period, usage above a commitment adds no revenue event from either source, and the usage records derive into the credit ledger's overage rows.
  • Two vendor worked examples beside Acme in test/fixture/ (stripe/, Redshift; salesforce/, BigQuery): a DDL, a GASP mapping and a README stating the source documentation and every choice, written from public API documentation and never standard content. The Stripe example is taken from a validated mapping to readiness level 4 in the test suite, derives from its item snapshots and from its invoices, its metered item's usage adding no revenue event, and its drift report names a planted difference; the Salesforce example compiles in BigQuery and stops at level 2 because a CRM maps no revenue event
  • The readiness checks and the fix plan (src/checks.ts, behind generate_checks and plan_fixes) compile the rules in cel.md and atl.md, and the ontology's value ranges per reporting period (src/ranges.ts), into SQL over a mapping and rank what to fix by the metrics it unlocks; the synthetic dataset passes every check and a table of planted violations fails the right ones.
  • The readiness report (src/readiness.ts, behind readiness_report) reads the level a company has reached (L1 to L4 of the interop plan) from the mapping, the model and the pasted check rows, and names what blocks the next level; the test suite takes the synthetic dataset to L4. Schema drift (src/schema-drift.ts) compares a schema snapshot with the mapping, so a scheduled re-check catches a dropped or retyped column before a metric quietly stops matching.
  • The Decide step (src/ossie/decide.ts, behind record_decision) applies the answers people give to the model and the mapping and keeps every decision, with its owner, in the mapping's GASP extension; it closes readiness level 2 when no question and no candidate is open.
  • The drift scorer (src/ossie/drift.ts, behind score_drift) runs a company's metrics and the canonical ones side by side on the synthetic SaaS dataset (src/synthetic.ts, also the test fixture) in PGlite, loaded on first use from the optional dependency @electric-sql/pglite; without it the tool says so and runs nothing
  • The metric compiler (src/ossie/company.ts, behind compile_model) writes every covered GASP metric into a company's own Ossie model, direct or staged, over their datasets, sources and field expressions. The test suite compiles the fixture adapter and checks every direct and staged value against the reference export on the fixture rows, the cohort table's sums included
  • Adapter schema 1.1 (standard/gasp-adapter-schema.json, JSON Schema draft 2020-12, served at https://gaspwiki.com/schemas/gasp-adapter-v1.json): a datasets map, per-dataset mappings (a mapping names its dataset), informational fields and $schema. The schema travels in the bundled data as adapterSchema and validate_adapter applies it with Ajv, so validation works offline. npm run derive writes a ready template to standard/exports/gasp-adapter-template.json (served at https://gaspwiki.com/downloads/gasp-adapter-template.json) and the tests validate it against the schema
  • GASP Ossie extension schema 1 (standard/gasp-ossie-extension-v1.json, JSON Schema draft 2020-12, served at https://gaspwiki.com/schemas/gasp-ossie-extension-v1.json): the data object of every nonportable_extensions entry GASP writes under vendor_name: GASP, one definition per placement (model, dataset, metric, mapping), strict so each key GASP adds outside Ossie is listed. It travels in the bundled data as extensionSchema and the cross-document checks (checkExport in src/ossie/check.ts) validate every GASP payload against it in the export, validate_mapping, compile_model, propose_mapping and record_decision. Every tool writes data as an object under nonportable_extensions, the form Apache Ossie 0.3.0.dev0 defines. Each still loads a document saved by an earlier release (version 0.2.0.dev0, the custom_extensions key, data as a JSON string), rewriting it to the current form on the way in
  • Sources: the canonical GASP Standard files

Examples

Once installed, ask your AI assistant:

Definitions and structure

  • "What is NRR?"
  • "How do I calculate CAC Payback?"
  • "What drives ARR?"
  • "How does Customer relate to Subscription?"
  • "What sensitivity tier is CAC classified as?"
  • "What does confidential mean in GASP?"
  • "How does Plan relate to Subscription?"
  • "Which campaigns source leads into the pipeline?"
  • "List all marketing metrics"
  • "What data do I need to implement ARR tracking?"
  • "Search for churn"

Diagnosis, exploration and coverage

  • "ARR is down this month. What could explain it?" (infer_drivers)
  • "How does Health Score eventually affect NRR?" (explain_path)
  • "We track ARR, NRR, GRR, CAC and CAC Payback. What important metrics are we missing?" (coverage_gap)
  • "Why might NRR be slipping? Trace the path back through Health Score." (composes infer_drivers and explain_path)

License

Apache-2.0. Source: https://github.com/GASP-Standard/standard (the standard itself is CC BY 4.0, see standard/LICENSE there).