Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Feature Profiles

Audience: Go embedders, and operators who run pulse mcp.

A feature profile declares exactly which features one *pulse.Pulse instance offers: which capabilities, operators, I/O formats and MCP-only surfaces exist for it. A profile is a complete, closed allowlist. It never means “everything minus X”, and a feature added in a later Pulse release is not in an existing profile until you add it.

With no profile, an instance offers everything, including features added in later releases.

An instance enforces its profile. Everything the profile omits is hidden:

  • An extension operator the profile omits is not registered.
  • A built-in aggregator, attribute, filter, grouper, window, feature, statistical test, regression or overlay kind the profile omits behaves at run time exactly as a name Pulse has never heard of: same result or error, on every entry point and every overlay host, predict included. Smart defaults never pick it.
  • A request that sets a slot the profile omits (crosstab, joins, or an overlays slot with no enabled host and kind) is refused with PULSE_REQUEST_UNKNOWN_FIELD, exactly as an unrecognised JSON key, and valid_keys lists only the slots the instance offers. A request template that renders such a slot fails PULSE_TEMPLATE_RENDER_INVALID.
  • p.Manifest, p.PayloadSchema() and the errors lookup describe only what the instance offers (see below).

Library methods are not gated: p.Process, p.Compose, p.Facet, p.Lookup, p.Import and the rest stay callable on every instance. A profile hides names and slots, not methods. The MCP server registers only the tools, prompts, cohort listing, skills and examples the profile offers (see below).

The name is “feature profile” because “profile” already means synthetic data profiling (Pulse.Profile, pulse profile create).

A profile file

{
  "profile": "survey-self-serve",
  "written_with": "1.0.0",
  "features": [
    "capability:process",
    "capability:crosstab",
    "capability:facet",
    "AGG_COUNT",
    "AGG_MODE_COUNT",
    "AGG_SUM",
    "GROUP_CATEGORY",
    "GROUP_DATE",
    "FILTER_INCLUDE",
    "TEST_CHISQ",
    "OVERLAY_SHARE_OF_ROW",
    "io_format:csv",
    "io_format:spss"
  ],
  "behaviour": { "disable_projection": true }
}
KeyRequiredMeaning
profilenoYour own label. Informational; the pulse mcp startup line prints it
written_withnoThe Pulse version you wrote the profile against. Stored as-is, never compared, and never an error
featuresyesThe exact feature names the instance offers. May be empty ([]), and must not repeat a name
behaviournoEngine switches the profile turns on (below)
returnnoThe instance’s default response selection — the return block a request without its own is shaped by ({"preset": "standard"}, include, exclude, precision)
limitsnoThe instance’s resource limits (below)

Any other key is refused, and so is an unknown key inside behaviour, return or limits. Trailing data after the JSON object is refused too.

return takes the request block’s shape. A request return replaces it entirely, and Options.DefaultReturn wins over it. pulse.New checks it against the profile’s own feature set: a path only a feature the profile leaves out has (for example matrices without capability:matrices), an unknown preset or a precision outside 1–17 is refused with PULSE_FEATURE_PROFILE_INVALID, reason invalid_return.

limits sets the instance resource limits with the same snake_case names the root --limit flag and every PULSE_LIMIT_* error’s limit detail use: request_timeout, max_groups, max_crosstab_cells, max_estimated_memory, max_matrix_dim, max_compose_slots, max_chain_stages, max_join_build_rows, max_derived_columns, max_expanded_items, max_mmm_geos, max_mmm_draw_values, max_disclosure_comparisons.

{
  "features": [],
  "limits": { "max_groups": 1000000, "request_timeout": "30s", "max_matrix_dim": -1 }
}

The encoding matches Options.Limits: an omitted key or 0 keeps the built-in default, -1 means no limit, and any other negative value is refused with PULSE_FEATURE_PROFILE_INVALID, reason invalid_limits (details.limit names the key, details.value echoes it). Counts are JSON integers; request_timeout is a Go duration string ("30s", "2m"), with "-1" or "unlimited" for no timeout. Per limit, a non-zero Options.Limits field wins over the profile’s value, so an embedder can still tighten or relax one limit on top of a shared profile. p.Limits() reports the effective values. In Go the section is FeatureProfile.Limits (*pulse.FeatureProfileLimits). Limits are behaviour, not features: they never change feature_set_digest. Full guide: Tuning Limits.

Feature names

KindSpellingExamples
operatorbare registered nameAGG_SUM, GROUP_DATE, TEST_T, REG_OLS, OVERLAY_YOY, and your extension operators
capabilitycapability:<name>capability:process, capability:compose, capability:crosstab, capability:facet, capability:weighting, capability:matrices
I/O formatio_format:<name>io_format:csv, io_format:parquet, io_format:spss. One name covers both import and export
MCP extramcp_extra:<name>mcp_extra:cohort_resources, mcp_extra:prompt_bootstrap, mcp_extra:prompt_author_request, and one mcp_extra:prompt_<intent> per analytic intent (mcp_extra:prompt_describe, mcp_extra:prompt_compare_groups, …) for the pulse-<intent> prompts

pulse features init prints every feature name the running build offers, by kind; pulse features show FILE describes each one, with its dependencies.

Rules:

  • Exact names only. TEST_*, capability:* and other patterns are refused, never expanded.
  • One spelling per feature. operator:AGG_SUM and process (without its kind) are refused, and the error suggests the right spelling.
  • A statistical test is one name. TEST_T covers both its row-test and post-test forms.
  • Synth distributions are not features. capability:synth gates all of them.
  • The core is always present and cannot be listed. Open, inspect, predict, record counts, the manifest, the payload schema, skills, examples, errors lookup and cohort artifacts exist on every instance. Listing one is an error.
  • Extension operators are features. List them by their registered name, like a built-in. An extension operator the profile omits is hidden: pulse.New still validates its registration and its DependsOn, then does not register it.

Dependencies

Some features need others. A dependency is a list of groups, and at least one name in every group must be enabled:

  • Every operator, and capability:crosstab / capability:joins / capability:weighting / capability:matrices / capability:for_each / capability:model_save / capability:regression_holdout / capability:regression_order, needs a host that runs requests: capability:process, capability:compose or capability:process_chain.
  • capability:models and capability:params need a host that runs requests or capability:facet (a facet’s models feed its filters’ coef(), its params their params.<name> reads).
  • capability:union (the union / union_source_field slots, which read several labelled cohorts as one) needs any root that carries them: capability:process, capability:compose, capability:process_chain, capability:facet, capability:sample or capability:lookup. Hidden, either key is an unknown field on every root and the PULSE_UNION_* codes leave the error list.
  • capability:crosstab_cells (several measures in one crosstab) needs capability:crosstab.
  • capability:multiplicity needs nothing: its blocks ride every request host and facet overlays alike.
  • capability:stream, capability:watch, capability:filter_to_file and capability:materialize need capability:process.
  • An intent prompt (mcp_extra:prompt_<intent>) needs every tool its script calls: capability:recommend, capability:explain and capability:process (all three; pulse_inspect is always mounted).
  • An overlay kind needs a host that can run it: capability:crosstab for crosstab overlays, capability:compose for compose and series overlays, capability:process_chain for stage overlays, capability:facet for facet overlays.
  • Some operators read another’s results, and filter-to-file runs on the filter-expression engine. The table holds the common edges; pulse features show (or DescribeFeatureProfile) prints the full dependency groups of every listed feature:
FeatureAlso needs
OVERLAY_T_CELL, OVERLAY_Z_CELL, OVERLAY_T_VS_REF, OVERLAY_Z_VS_REF, OVERLAY_PAIRWISE_WELCH_T, OVERLAY_PAIRWISE_TWO_MEANS_ZAGG_WELFORD
OVERLAY_PAIRWISE_WEIGHTED_TWO_MEANS_ZAGG_WEIGHTED_MEAN or AGG_AVERAGE (either one)
OVERLAY_T_VS_PRIOR, OVERLAY_Z_VS_PRIORAGG_WELFORD, AGG_VARIANCE or AGG_STDDEV (any one)
OVERLAY_PROP_Z_VS_PRIORAGG_AVERAGE
ATTR_REG_FITTED, ATTR_REG_INFLUENCE, ATTR_REG_LEVERAGE, ATTR_REG_RESIDUALREG_OLS
ATTR_REG_PREDICTREG_BAYES_LINEAR, REG_GLM, REG_MMM_BAYES, REG_MMM_HILL, REG_MULTINOMIAL, REG_OLS or REG_ORDINAL (any one)
OVERLAY_YOYGROUP_DATE
capability:filter_to_fileFILTER_EXPRESSION (filter-to-file compiles every filterer into one filter expression)
capability:model_saveREG_BAYES_LINEAR, REG_GLM, REG_MMM_BAYES, REG_MMM_HILL, REG_MULTINOMIAL, REG_OLS, REG_ORDINAL, ATTR_MAHALANOBIS, ATTR_PC_SCORE, ATTR_FACTOR_SCORE or capability:matrices (any one; a save writes a fitted regression as a model file, a vector fit as a population file or a SEM fit as a .pulse-sem.json SEM fit file)
capability:regression_holdoutREG_BAYES_LINEAR, REG_GLM, REG_MMM_BAYES, REG_MMM_HILL, REG_MULTINOMIAL, REG_OLS or REG_ORDINAL (any one; a regression holdout scores that slot’s fit — a categorical-outcome fit by its probability vector’s proper scores)
capability:regression_orderany built-in regression (REG_BAYES_LINEAR, REG_GLM, REG_MMM_BAYES, REG_MMM_HILL, REG_MULTINOMIAL, REG_OLS or REG_ORDINAL; a regression order sorts that slot’s rows)
capability:paramsATTR_FORMULA, FILTER_EXPRESSION, OVERLAY_FORMULA, capability:regression_holdout or capability:compose_optimize (any one; a request params value is read only by an expression)
capability:sem_meanstructureMAT_SEM or ATTR_SEM_SCORE (any one; their meanstructure param and ~ 1 model lines)
capability:sem_groupsMAT_SEM or ATTR_SEM_SCORE, and capability:sem_meanstructure (a multi-group fit always models the means)
capability:sem_definedMAT_SEM or ATTR_SEM_SCORE (any one; their name := expr defined-parameter model lines)
capability:compose_sweep_samplingcapability:compose_sweep (the sweep’s seeded random / lhs modes, samples, rng_seed, axis range and the sweep_seed echo; hidden, a sweep offers grid / zip only and refuses lhs as an unknown mode)
capability:compose_sweep_adaptivecapability:compose_sweep and capability:compose_sweep_sampling (the sweep’s adaptive modes — each round’s points chosen from the ranked values of the rounds before — and their budget; an adaptive mode searches range axes; hidden, budget is an unknown field and an adaptive mode an unknown mode)
capability:compose_optimizecapability:compose (the batch optimize blocks and the optimizations they produce; hidden, a set optimize is an unknown field)
capability:compose_basecapability:compose (the batch base merged into every explicit slot; hidden, a set base is an unknown field)
capability:materialize_outputcapability:materialize (the materialize-only request output slot, which lays out the written cohort; hidden, a set output is an unknown field)
capability:compose_sweep_bindcapability:compose_sweep and capability:compose_fits (a fits entry’s from_sweep, binding the ranked sweep winner as a named fit; hidden, a set from_sweep is an unknown field)
capability:compose_comparecapability:compose_fits, and MAT_SEM, REG_GLM, REG_MULTINOMIAL, REG_OLS or REG_ORDINAL (the batch compare nested-model comparisons of two fits and the comparisons they produce; hidden, a set compare is an unknown field while fits stay)
capability:compose_post_fitcapability:compose_fits (the batch post_fit runs of embedder-registered post-fit operators and the post_fit results they produce; hidden, a set post_fit is an unknown field while fits stay, and no post-fit operator can be enabled)
capability:sem_bootstrapMAT_SEM (its resample, bootstrap_iters, rng_seed and ci_level params)
capability:sem_ordinalATTR_SEM_SCORE or MAT_SEM (their estimator, ordered and parameterization params: the DWLS / WLSMV ordinal fit, and its EBM scores)
capability:modelsATTR_REG_PREDICT, ATTR_REG_FITTED, ATTR_REG_RESIDUAL, ATTR_FORMULA, FILTER_EXPRESSION, ATTR_MAHALANOBIS, ATTR_PC_SCORE, ATTR_FACTOR_SCORE, ATTR_SEM_SCORE, ATTR_VEC_DISTANCE, capability:matrices or capability:compose_optimize (any one; a loaded model is read only by a scoring reference, a loaded population — the populations key, which this capability also gates — or a loaded SEM fit file only by a params.fit)

TEST_TUKEY_HSD does not require TEST_ANOVA_F.

Extension dependencies

Every extension operator registration has an optional DependsOn. Each entry is a feature the operator needs, and all of them must be enabled whenever the operator is:

pulse.AggregatorRegistration{
    Name:      "AGG_ACME_SPREAD",
    DependsOn: []string{"AGG_WELFORD"},
    Factory:   newSpread,
}

Every DependsOn entry must name a feature this build knows: a built-in, or another registered extension operator. This is checked at every pulse.New, with or without a profile, so a typo fails at construction. An enabled extension operator also needs a request host, like a built-in. An extension overlay kind needs a host its handlers run on instead: a crosstab kind (Handler.Matrix) needs capability:crosstab, a series or Compose kind (Handler.Series / Handler.Compose) capability:compose. An extension post-fit operator runs only in the Compose post_fit slot, so its host is capability:compose_post_fit. A profile that omits it hides it from the manifest, the payload schema, MCP and the generated reference, and a spec naming it is refused as an unknown kind.

An enabled extension regression also counts as a regression for the built-in features that need one. ATTR_REG_PREDICT, capability:model_save and capability:regression_holdout need a built-in regression (table above); an enabled extension regression whose registration supplies a Scorer meets that need too. capability:compose_fits and capability:regression_order accept any enabled extension regression. So a profile that enables only your own model can still fit, score and save it. ATTR_REG_FITTED and ATTR_REG_RESIDUAL still need REG_OLS, because without params.fit they refit OLS themselves.

Using a profile from Go

As a value:

p, err := pulse.New(pulse.Options{
    DataDir: "/var/data/pulse",
    FeatureProfile: &pulse.FeatureProfile{
        Profile:  "survey-self-serve",
        Features: []string{"capability:process", "AGG_SUM", "GROUP_CATEGORY"},
    },
})

Features must be non-nil. Use []string{} for an empty profile; a nil slice is refused as a missing features key. pulse.New copies the value, so changing it afterwards has no effect.

From a file read through the instance filesystem:

p, err := pulse.New(pulse.Options{
    DataDir:            "/var/data/pulse",
    FeatureProfileFile: "profiles/self-serve.json", // relative to DataDir (or Options.FS)
})

Set at most one of FeatureProfile and FeatureProfileFile. For bytes you hold yourself (a config service, an embedded file), pulse.ParseFeatureProfile(data) applies the same strict decode and returns a *pulse.FeatureProfile for Options.FeatureProfile. It only decodes: names and dependencies are checked by pulse.New.

pulse.New never reads PULSE_FEATURE_PROFILE. Only the MCP server entry point does (below).

Behaviour switches

KeyTurns on
disable_defaultsOptions.DisableDefaults
disable_componentsOptions.DisableComponents
disable_projectionOptions.DisableProjection
disable_cohort_scanthe MCP server’s DisableCohortScan (no effect on the engine)

Each switch is combined with Options by OR. A profile can turn a switch on, and Options cannot turn it back off. Omitting a switch, or setting it false, leaves it to Options.

Errors

Validation runs in three classes, in order. It stops at the first class that fails and reports every problem in that class, sorted. Look any code up with pulse errors lookup CODE.

CodeWhenRead
PULSE_FEATURE_PROFILE_INVALIDThe profile cannot be used as writtendetails.reason: both_options_set, file_unreadable, malformed_json, unknown_key, missing_features, duplicate_feature (the names are under duplicates), unknown_example (from pulse.ExampleFeatureProfile). details.path names the file when one was read
PULSE_FEATURE_PROFILE_UNKNOWNA name does not resolvedetails.unknown[], each with name and reason: unregistered, pattern, wrong_kind (see did_you_mean), core_surface, newer_than_running (see since; the running build is under details.version). An unknown extension DependsOn entry also carries extension and category
PULSE_FEATURE_PROFILE_DEPENDENCYAn enabled feature is missing what it needs, or an Options value needs a feature the profile omitsdetails.unmet[], each with feature (or option, for an Options value — listed under details.options) and requires_any_of. Add one name from the group, or remove the feature / leave the option unset. Two options are checked: Options.DefaultWeight needs capability:weighting, Options.DefaultMultiplicity needs capability:multiplicity (both unmet: one unmet entry each)

Versions

Every built-in feature records the release that introduced it. A profile naming a feature newer than the running Pulse fails with newer_than_running, so a profile written for a newer release cannot silently lose features on an older one. Only the running version’s major.minor.patch is compared, so 1.0.0-alpha.2 offers every 1.0.0 feature. Development builds (devel, untagged builds) offer everything. pulse.Version() reports Pulse’s own version, even inside your binary.

Reading an instance’s feature set

  • p.FeatureProfile() returns a copy of the profile the instance was built with, or nil, false without one. Changing the copy changes nothing on the instance.
  • p.FeatureSetDigest() returns the instance’s feature-set digest, "fs1:" plus the hex SHA-256 of its sorted enabled feature names and its effective behaviour switches (the profile’s ORed with Options). Every instance has one. It is the same across processes for the same features and switches, and any difference in either changes it, so it can key a cache of an instance’s self-description. It hides the list but not its identity: anyone running the same Pulse version can tell an unprofiled instance’s digest from a profiled one’s.

What a profiled instance describes

  • Manifest. p.Manifest(ctx) lists only enabled operators, tests, regressions, overlays, commands, MCP tools, synth distributions and I/O formats. The facet, process_chain, join, crosstab, export and import capability blocks are omitted when their capability is off: descriptor.Manifest.Facet, ProcessChain, Join, Crosstab, Export and Import are pointers, nil when hidden. Prose that names a hidden feature is dropped from descriptions and hints. The manifest’s skills list and examples count, categories and tags cover only the skills and examples the instance serves (see the MCP section). extensions.label_tables is empty ([]) when capability:labels is off and extensions.range_tables when capability:range_tables is off, exactly as on an instance that registered no tables, and requests resolve them the same way: a label binding naming one fails PULSE_LABEL_TABLE_UNKNOWN, an AutoLabels default naming one is not applied, and a date-range table: fails PULSE_RANGE_TABLE_UNKNOWN. p.LabelTables() and p.RangeTables() still return them: facade methods are not gated. Lookup tables ride capability:lookup_tables: with it off the instance registers none — tables set in code and files under Options.LookupTablesDir alike (the files are still checked, so a bad one still fails pulse.New) — so lookup() is an unknown function, extensions.lookup_tables is [], p.LookupTables() lists none, the pulse_lookup_tables MCP tool is not mounted and the lookup-table error codes are not listed. range_label() follows capability:range_tables only. p.ManifestForIntent(ctx, intent) narrows this same instance view to one intent, so it never lists a hidden operator either; an intent the profile prunes (every operator serving it hidden) is PULSE_RECOMMEND_INTENT_UNKNOWN.
  • Payload schema. p.PayloadSchema() returns the JSON Schema for the instance: enums keep only enabled names, hidden slots are not properties, and a request root whose capability is off (compose, process chain, facet, sample, lookup) is not offered. A profile-free instance’s schema is byte-identical to pulse schema’s published golden apart from the digest comment. pulse schema serves the default instance; the MCP pulse://schema resource serves the mounted instance’s p.PayloadSchema().
  • Virtual vectors and matrices. Without capability:matrices the request vectors and matrices slots fail PULSE_REQUEST_UNKNOWN_FIELD on every entry point, the payload schema drops them with the VectorSpec / VectorCoerce / MatrixSpec definitions and the Response.matrices result slot, and the manifest drops the matrix block. Every MAT_* operator depends on capability:matrices.
  • Request parameters. Without capability:params a request params object (inside Compose requests and chain stages too, the top-level params of a Compose batch or a chain, a FacetRequest’s or a FilterToFileRequest’s), and a Compose sweep axis target, fail PULSE_REQUEST_UNKNOWN_FIELD, and the payload schema and the MCP tool input schemas drop the key. An expression reading params.<name> is then refused PULSE_PARAMS_UNDECLARED, as on any request declaring no such name.
  • Item fan-out. Without capability:for_each a for_each on a window, feature, attribute, aggregation or matrix item (inside Compose requests and chain stages too) fails PULSE_REQUEST_UNKNOWN_FIELD, locating the key under details.path (windows[1].for_each); the payload schema and the MCP tool input schemas drop the key and the ForEach definition. A hand-expanded request runs unchanged.
  • Row weighting. Without capability:weighting the instance has no weight surface. The request weight and every per-slot weight (aggregations, the crosstab cell, margin aggregations and axes, groups, tests, post-tests, regressions, attributes, overlays — inside Compose requests and chain stages too, and on facet overlays) fail PULSE_REQUEST_UNKNOWN_FIELD, even when set to null. A nested one is located under details.path (aggregations[0].weight) and lists that object’s keys under valid_keys. The payload schema and the MCP tool input schemas drop every weight property, the manifest drops weight_aware (built-in and extension) and the weighted sum_weights / n_eff / n_weight_invalid component keys, predict reports no weights, inspect and predict report no SPSS suggested_weight, and pulse.New refuses Options.DefaultWeight (PULSE_FEATURE_PROFILE_DEPENDENCY). AGG_WEIGHTED_MEAN and its params.weight_field keep working: they are the operator’s own parameters, not the weight surface, so its invalid-weight warning and decimal refusal stay listed while AGG_WEIGHTED_MEAN is enabled.
  • Multiple-comparison correction. Without capability:multiplicity every multiplicity block — on the request, the composed request, a test or post-test, a request, facet or Compose overlay, inside Compose requests and chain stages too — fails PULSE_REQUEST_UNKNOWN_FIELD (a nested one under details.path), the payload schema drops every multiplicity property with the Multiplicity defs, PULSE_MULTIPLICITY_* leave the error lists, and pulse.New refuses Options.DefaultMultiplicity (PULSE_FEATURE_PROFILE_DEPENDENCY).
  • Errors. p.ErrorLookup, p.ErrorsByDomain and p.ErrorsSearch, and the manifest’s error lists, show only codes the instance can raise. A hidden code looks up as unknown. pulse errors lookup on the CLI stays unscoped.
  • Wording follows the instance. Refusals and hints that name built-ins name only what the instance offers: the zone-capable operator list, the ATTR_RANK to WIN_RANK hint (the generic unknown-attribute error when WIN_RANK is hidden), pairwise overlay advice, the facet overlay kind list, and the categorical and decimal suggestion reasons. Runtime refusals follow the same rule: one that recommends other operators (for example “use GROUP_SET_VALUE or GROUP_SET_PER_ELEMENT” or “use TEST_ANOVA_F for k>2”) names only the ones the instance offers, keeping its error code.
  • Digest. Manifest and payload schema carry feature_set_digest (the schema as its root $comment), equal to p.FeatureSetDigest(). The field is additive; the envelope format_version stays "1.1". Do not read the digest as hiding the profile: a same-version observer can tell a profiled digest from the default.

The MCP server

pulse mcp --feature-profile FILE loads a profile into the served instance. Without the flag it reads the PULSE_FEATURE_PROFILE environment variable. Both are host OS paths, absolute or relative to the working directory, and never resolved under --data-dir. An invalid profile fails startup. Every other pulse command ignores the variable, because the CLI is an admin tool and is not profiled.

The server mounts only what the profile offers. A tool tied to a feature (pulse_process to capability:process, pulse_facet to capability:facet, and so on) is registered only when that feature is listed; the discovery tools (pulse_inspect, pulse_cohorts_list, pulse_predict, pulse_manifest, the skills, examples and errors lookups) are always there. Calling a tool the profile hides fails exactly like calling one that does not exist. Each prompt needs its own mcp_extra:prompt_* feature. A pulse-<intent> prompt also disappears, feature or not, when the profile hides every operator that answers its intent, and pulse-author-request then routes no question to it: its intent list names only the prompts and route tools the instance mounts. Without mcp_extra:cohort_resources the server skips the startup walk and does not list cohorts under resources/list, as if --no-cohort-scan were set; every cohort stays readable by its pulse:// URI.

Tool input schemas follow the profile too. With BindOnInspect on, the schemas re-bound after an inspect list only the operators, tests and overlay kinds the profile enables (an operator family with none enabled carries no list at all), offer the labels slot only with capability:labels, and leave out any request slot the profile hides. A request naming a hidden slot (say crosstab without capability:crosstab) is refused as PULSE_REQUEST_UNKNOWN_FIELD, exactly like a misspelt key, and the valid-key list and suggestions name only the slots the profile offers.

Prose follows the profile the same way the manifest’s does. Tool descriptions, every description in a tool’s input schema (at registration and after a re-bind), prompt descriptions and prompt bodies drop each sentence that names a hidden operator or a tool the profile does not mount; a numbered step dropped from a prompt renumbers the rest of its list. A sentence about an enabled operator that also names a hidden one goes too. The same goes for the wire names of a hidden request slot: without capability:multiplicity no sentence naming multiplicity, p_adjusted or significant_adjusted is served (the pulse_lookup duplicate-key multiplicity setting is a different slot and stays), without capability:matrices none naming vectors or matrices, and likewise for the weighting and crosstab slots’ own keys. The text a caller supplies to pulse-author-request is never touched.

Skills and examples follow the profile as well. The reference skill for a hidden operator, overlay kind, regression or synth distribution, and for a tool the server does not mount, is left out of pulse_skills_list, pulse_skills_get, the pulse-skill:// resources and the manifest’s skills list. Field-type skills, the design guides and the glossary / intents reference skills stay, and a design guide is served as written even where it mentions an operator the profile hides. An example is left out of pulse_examples_search, pulse_examples_get, p.ExamplesSearch, p.ExampleGet and the manifest’s examples count, categories and tags when it uses a hidden operator or overlay kind, or needs a hidden facet, crosstab, joins or compose capability. Asking for a hidden skill or example by name fails exactly like asking for one that does not exist. A visible skill’s listed description drops each sentence that names a hidden operator or tool, in pulse_skills_list and the manifest alike, and the manifest’s top-level intents list leaves out an intent when every operator that serves it is hidden (an intent no operator serves, such as lookup, always stays).

Embedders building their own discovery UI read the same instance view through three facade methods. Like every facade method they are callable on any instance; only what they return follows the profile.

g := p.Ontology()   // descriptor.Ontology: nodes + typed edges, no prose
for _, n := range g.Nodes {
    if n.Kind == descriptor.OntologyNodeSkill {
        body, ok := p.Skill(n.Name) // markdown body as MCP serves it
        _, _ = body, ok
    }
}
list := p.Skills() // []pulse.SkillMetadata, as pulse_skills_list returns it
  • p.Ontology() returns the instance’s skill ontology: intents, operators, skills, examples, glossary terms, capabilities, MCP tools and named tables, joined by typed edges (serves_intent, documented_by, exemplified_by, not_for, follow_up, uses_term, routes_to, requires_capability). It is always the pruned view — every node for a hidden feature, and every skill, example, intent or term left with nothing to describe, is absent with its edges. Each call returns a fresh copy you may modify.
  • p.Skills() lists the skills the instance serves, with the same rendered metadata as pulse_skills_list and the pulse-skill:// resource list.
  • p.Skill(name) returns the body pulse_skills_get and a pulse-skill://<name> read return, or ("", false) for a hidden or unknown name.

Bodies of examples come from p.ExamplesSearch and p.ExampleGet, and glossary text from pulse.Glossary(). On an instance with no profile all three return the full skill pack and graph.

Embedders serving MCP themselves use mcpserve.NewPulse:

p, err := mcpserve.NewPulse(
    pulse.Options{DataDir: "/var/data/pulse"},
    mcpserve.Options{FeatureProfileFile: "/etc/pulse/self-serve.json"},
)
if err != nil {
    return err
}
return mcpserve.ServeStdio(p, mcpserve.Options{BindOnOpen: true})

Its sources, highest first: mcpserve.Options.FeatureProfileFile, a profile already on the pulse.Options, then PULSE_FEATURE_PROFILE. Setting the field and a pulse.Options profile together is both_options_set. mcpserve.Serve and ServeStdio ignore FeatureProfileFile: a profile is applied when the instance is built.

mcpserve.Describe(p, opts) returns the effective serving settings: the cohort-scan setting after the profile’s disable_cohort_scan and mcp_extra:cohort_resources, and the loaded profile’s label. The pulse mcp startup line prints the same thing:

pulse mcp: serving over stdio (data dir: /var/data/pulse, bind-on-open: true, cohort-scan: false, return: standard, feature-profile: survey-self-serve)

gosdk.RegisteredTools() and gosdk.RegisteredPrompts() are global: they list every canonical tool and prompt whatever the instance hides. To learn what a profiled server offers, ask the server (tools/list, prompts/list) or read p.Manifest(ctx).

Example profiles

Pulse publishes example profiles to copy, in the repository’s examples/profiles/ directory and embedded in the library:

NameOffers
minimalcapability:process plus core aggregators and the default groupers
survey-crosstabProcess, Compose, crosstab, facet, labels, row weighting and multiple-comparison correction, with survey tests, the crosstab, compose and facet overlays they feed, and the residual / correspondence / raking crosstab overlays, closed over their dependencies
read-only-analystEvery analytic capability and operator; nothing that writes data (import, export, filter_to_file, dedup, materialize with its materialize_output slot, rake, widen, shard, index, synth, model_save) and no I/O formats
names := pulse.ExampleFeatureProfiles()        // sorted: minimal, read-only-analyst, survey-crosstab
fp, err := pulse.ExampleFeatureProfile("minimal") // a fresh *pulse.FeatureProfile you own
p, err := pulse.New(pulse.Options{FeatureProfile: fp})

Each example passes pulse.New validation. An unknown name fails with PULSE_FEATURE_PROFILE_INVALID, details.reason unknown_example, and the available names under details.examples.

Published examples are never edited in place. Each lists exact feature names as of the release in its written_with, so upgrading Pulse never grows the feature set of a profile copied from one. A changed example ships under a new name. Copy one and own the copy.

Writing, checking and upgrading profiles

Four root functions work on a profile without building a *pulse.Pulse, so a CI job can keep a profile honest. Each optional ext argument is the same pulse.Extensions value you hand to pulse.New. Every result type is JSON-tagged, with list fields that are never null.

// Every feature this build offers (plus your extension operators), in
// canonical order, stamped with the running release.
fp, err := pulse.InitFeatureProfile("", ext)
// Or start from a published example.
fp, err = pulse.InitFeatureProfile("survey-crosstab")

// Exactly the validation pulse.New runs: INVALID, then UNKNOWN, then
// DEPENDENCY, stopping at the first failing class.
report, err := pulse.CheckFeatureProfile(fp, pulse.FeatureProfileCheckOptions{Extensions: ext})

// What this build offers that the profile does not list, and what the
// profile lists that this build does not know.
diff, err := pulse.DiffFeatureProfile(fp, ext)

// Kind, category, Since and dependency groups of every listed feature.
desc, err := pulse.DescribeFeatureProfile(fp, ext)
  • InitFeatureProfile(from, ext...) lists every built-in feature the running build has reached plus the given extension operators, by exact name, ordered by kind, then operator category, then table position (the order the examples use). A non-empty from seeds the profile from that example instead (label, features, behaviour; no extension names are added). written_with is the running release core: 1.0.0-alpha.2 stamps 1.0.0; a development build with no release core stamps the newest release its feature table knows. The result always passes CheckFeatureProfile with the same extensions.
  • CheckFeatureProfile(fp, opts) returns a report and the coded error pulse.New would return for the same profile and extensions (nil when valid). With opts.Offline — for checking without your extensions in hand — a name that is not registered but follows the extension naming policy (AGG_ACME_THING: an operator category other than SYNTH, a namespace other than BUILTIN / STANDARD / CORE / PULSE) becomes a warning, “unverified extension name, check in-process”, coded PULSE_FEATURE_PROFILE_UNKNOWN with details.reason unverified_extension, instead of an error. It still needs a request host. Every other unknown name stays an error. Run the check in-process, with your extensions, before shipping.
  • DiffFeatureProfile(fp, ext...) reports missing — features the running build offers that the profile omits, each flagged new when its Since is later than the profile’s written_with — and unknown — names the build does not resolve, with the same reasons PULSE_FEATURE_PROFILE_UNKNOWN uses. Unknown names are reported, not fatal. A missing or unparseable written_with flags nothing new.
  • DescribeFeatureProfile(fp, ext...) describes every listed name: kind, category (operators only), source (builtin, extension or unknown), since (built-ins) and depends_on, an AND of any-of groups. A name the build does not resolve carries an unknown explanation instead of failing.

Diff and describe fail only on a missing profile or a nil feature list (PULSE_FEATURE_PROFILE_INVALID).

From the command line

pulse features wraps the same four functions, with no extensions and no data directory (the leaves describe the binary). A profile path is a host OS path, relative to the working directory.

pulse features init > profile.json              # or: init --from minimal
pulse features check profile.json               # exits non-zero on any failure
pulse features diff profile.json                # missing (flagged [new]) + unknown
pulse features show profile.json

Every leaf takes --json for the standard envelope: data is the profile, check report, diff or description; pulse features check --json also lifts each unverified-extension warning onto the envelope’s warnings, and a fatal error carries its own code in errors[0] (the report stays in data) before the command exits non-zero. check is always offline (above), so check in-process before shipping a profile that lists your extension operators.