---
"@context": https://mx.allabout.network/canon/context.json
title: "MX Extensions specification"
description: "This specification defines the namespace policy for the Machine Experience (MX) framework. It specifies how vendors extend the MX vocabulary without polluting the standard namespace, how field names adapt across syntactic contexts, and how new extension fields are registered."
author: "Tom Cranstoun"
created: "2026-09-16"
modified: "2026-11-28"
type: "reference"
mx:
  mxSpecVersion: "0.9"
  canonicalUri: https://mx.allabout.network/specs/extensions.md
  servedAt: https://mx.allabout.network/specs/extensions.md
  audience: [humans, machines]
  contentPolicy: "MX specification page: MX Extensions specification. AI agents may cite, summarize, link to, and quote."
  stability: "stable"
  x-mx-contentState: "published"
  contextProvides:
    - "This specification defines the namespace policy for the Machine Experience (MX) framework. It specifies how vendors extend the MX vocabulary without polluting the standard namespace, how field names adapt across syntactic contexts, and how new extension fields are registered."
  runbook: "Generated from the page's draft-site source; never edit this file. Change the source and regenerate the page, and this twin is rebuilt beside it."
  purpose: "The markdown version of https://mx.allabout.network/specs/extensions.html, built from its source: the same text as the page, without its navigation or footer."
cps:
  record: urn:uuid:98abac36-5557-5a2e-b110-0217eb26a411
  signedDocument: https://mx.allabout.network/specs/extensions.html
  contentHash: sha256:51f1a659f15fb83b37221fd715bb7c7d3f4f9249a94be52c69660100c25f6d43
---

> This is the markdown version of https://mx.allabout.network/specs/extensions.html. For the site index, see [llms.txt](https://mx.allabout.network/llms.txt).

# MX Extensions specification

**Version:** 1.1
**Status:** MX specification, maintained by CogNovaMX
**Date:** 16 September 2026
**Author:** Tom Cranstoun
**License:** MIT

---

## 1. Abstract

This specification defines the namespace policy for the Machine Experience (MX) framework. It specifies how vendors extend the MX vocabulary without polluting the standard namespace, how field names adapt across syntactic contexts, and how new extension fields are registered.

The namespace policy establishes three levels: standard fields (no prefix, part of the open MX standard), public extensions (`x-mx-`, the public extension namespace operated by CogNovaMX during the seed phase; another vendor uses its own `x-{vendor}-` prefix), and private extensions (`x-mx-p-`, opaque-value extensions). The prefix itself is the policy: an implementation can determine governance from the field name alone, without external lookup.

---

## 2. Conformance

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC 2119](https://www.rfc-editor.org/rfc/rfc2119).

Field definitions in this specification conform to the **MX Field Definition Pattern specification**. That pattern governs the structural template for every field - heading, property table, definition prose, example - and is binding on this specification. This specification adopts the pattern's authoring rules and does not restate them.

### 2.1 Conformance levels

This specification defines two conformance levels (modelled on the [WCAG 2.1](https://www.w3.org/TR/WCAG21/) Level A/AA pattern):

| Level | Name | Requirement |
|-------|------|-------------|
| Level 1 | **MX Core** | Valid namespace usage - standard fields have no prefix, extensions use `x-mx-` or `x-mx-p-`. No prefix pollution. |
| Level 2 | **MX Standard** | Adds Level 1 plus correct context-specific naming when fields appear outside YAML (HTML, JSDoc, CSS, XMP, shell, sidecar, SQL). |

A document claiming conformance at a given level MUST satisfy all requirements at that level and all lower levels.

### 2.2 Draft status

This specification is maintained by CogNovaMX as part of MX. It is not a Gathering proposal. A change to its text is published as a new version, and implementations SHOULD note the version they implemented against.

---

## 3. Scope

### 3.1 In scope

This specification specifies:

- **Namespace policy** - the three-level prefix hierarchy and governance rules
- **Context-specific naming** - how the same field appears in YAML, HTML, JSDoc, CSS, shell, XMP, sidecar, and SQL contexts
- **Public extension fields** - the `x-mx-` vendor extension vocabulary
- **Private extension mechanism** - the `x-mx-p-` obfuscated extension system
- **Extension registration process** - how to add new extension fields

### 3.2 Out of scope

- **Carrier format mechanics** - how each file format (HTML meta tags, JSDoc, CSS comments, EXIF/XMP, shell, sidecar, SQL) carries MX metadata is governed by a separate carrier-formats note.
- **Non-YAML identity fields** - the `mx:*` field vocabulary used by HTML, JavaScript, and CSS carriers (`mx:name`, `mx:version`, `mx:type`, etc.) is governed by the carrier-formats note.
- **Domain-specific extension fields** - fields belonging to a particular application domain (workflow contracts, content audits, observability) belong in their own notes, not this one.
- **Standard field definitions** - the meaning, type, and validation of standard MX fields (`title`, `author`, `created`, `description`, `status`, `contentType`) is governed by the MX Core Metadata specification.

### 3.3 Relationship to existing standards

This specification draws on the following published standards:

- **HTTP "X-" extension header convention** ([RFC 6648](https://www.rfc-editor.org/rfc/rfc6648) provides historical context) - the `x-` prefix convention for non-standard headers, adapted for metadata namespaces as `x-mx-`
- **Schema.org Style Guide** - vocabulary naming conventions; fields in YAML use camelCase per the Schema.org pattern
- **Dublin Core DCMI Namespace** - namespace governance model

---

## 4. Terminology

- **Namespace** - A prefix that identifies the owner and governance policy of a metadata field.
- **Standard field** - A field with no prefix, part of the open MX standard, universal across all MX implementations.
- **Extension field** - A field with an `x-mx-` or `x-mx-p-` prefix, owned by a vendor (currently CogNovaMX).
- **$MX_HOME** - The local MX OS registry directory. Contains decode tables for private extension values.

---

## 5. Design principles

The namespace system follows these principles:

1. **The prefix IS the policy.** No documentation lookup is needed to determine governance - `x-` means extension, `mx-` means CogNovaMX, `p-` means private.
2. **Standard fields are universal.** Every MX implementation uses the same core vocabulary with no prefix.
3. **Extensions are opt-in.** No implementation is required to support `x-mx-` or `x-mx-p-` fields.
4. **Context determines syntax, not semantics.** A field means the same thing regardless of whether it appears in YAML, HTML, or JSDoc.

---

## 6. Namespace policy

### 6.1 The three-level namespace

MX metadata fields are organised into three namespace levels. Each level has a distinct prefix, owner, and governance policy.

| Level | Prefix | Owner | Governance | Visibility |
|-------|--------|-------|------------|------------|
| Standard | *(none)* | The Gathering | Community-governed. Changes require Gathering approval. | Universal - all implementations use these fields. |
| Public extension | `x-mx-` | Public namespace, operated by CogNovaMX during the seed phase. Another vendor uses its own `x-{vendor}-` prefix. | Vendor-governed within each vendor prefix. | Visible in published cogs. Implementation extension, not the open standard. |
| Private extension | `x-mx-p-` | Vendor-internal namespace. CogNovaMX during the seed phase; vendor sub-namespaces `x-mx-p-{vendor}-*` allocated as the public namespace is. | Vendor-governed. | Obfuscated. Only registry holders can decode values. |

### 6.2 Standard fields (no prefix)

Standard fields are the core MX vocabulary of the open standard. They have no prefix.

Implementations MUST NOT add a prefix to standard fields. A field that is part of the core MX vocabulary MUST always appear without a prefix in all contexts.

**Example (correct):**

```yaml
type: guide
mx:
  status: active
```

**Example (incorrect - prefix pollution):** writing the standard `status` field under the `x-mx-` prefix is wrong, because `status` is a standard field and takes no prefix; writing `type` as `mx-type` inside the `mx:` block is wrong, because `type` is a Zone 1b field and sits at the top level with no prefix.

### 6.3 Public extension fields (`x-mx-`)

Public extension fields use the `x-mx-` prefix. The namespace is the public extension space for the MX vocabulary; CogNovaMX operates it during the seed phase. Another vendor uses its own prefix of the form `x-{vendor}-` (public) and `x-{vendor}-p-` (private) - for example, a vendor named "Acme" publishes fields as `x-acme-deployTarget`. Within its own prefix the vendor governs the field set.

Public extension fields MUST use the `x-mx-` prefix. The prefix keeps its hyphens; the field name portion after it MUST be camelCase, the same spelling rule as standard fields (`x-mx-mountType`, `x-acme-deployTarget`). They are visible in published cogs and public outputs; they are implementation-specific features, not part of the open standard.

**Example (CogNovaMX, the seed-phase operator):**

```yaml
mx:
  x-mx-mountType: personal
  x-mx-mountSwappable: true
```

**Example (another vendor's prefix):**

```yaml
mx:
  x-acme-deployTarget: production
  x-acme-clusterId: cluster-east-1
```

### 6.4 Private extension fields (`x-mx-p-`)

Private extension fields use the `x-mx-p-` prefix. They are owned by CogNovaMX and their values are hashed, encoded, or tokenised.

- Private extension field values MUST be opaque to any system that does not hold the decode registry at `$MX_HOME`.
- Implementations MUST NOT attempt to interpret `x-mx-p-` field values without access to the decode registry. Unknown values MUST be passed through unchanged.

**Example:**

```yaml
mx:
  x-mx-p-clientTier: "a3f2c8"
```

### 6.5 Prefix parsing rule

Implementations MUST parse field prefixes using the following precedence:

1. If the field name starts with `x-mx-p-`, it is a **private extension**.
2. If the field name starts with `x-mx-`, it is a **public extension**.
3. Otherwise, it is a **standard field**.

This ordering ensures that `x-mx-p-` is not misidentified as `x-mx-` followed by `p-`.

---

## 7. Context-specific naming

The same MX field appears in syntactically different contexts - YAML frontmatter, HTML meta tags, JavaScript documentation comments, CSS comments, shell scripts, XMP metadata, sidecar files, and SQL comments. Each context has its own naming convention. Implementations MUST apply the conversion consistently so that a field's identity is preserved across carriers.

### 7.1 Naming and conversion rules (Informative summary)

The table below summarises the per-carrier conventions. The **normative form** of each conversion - the binding rule a verifier checks - lives in the **MX Carrier Formats specification**, which is the single source of truth for carrier-specific syntax. This summary is informative; if a row here disagrees with the carrier-formats note, the carrier-formats note wins.

| Context | Convention | Conversion from YAML camelCase | Example field | Example syntax |
|---------|-----------|--------------------------------|---------------|----------------|
| YAML | camelCase | *(canonical)* | `buildsOn` | `buildsOn: [cog-unified-spec]` |
| YAML (Zone 1b) | camelCase, top-level, no prefix | OKF-reserved field at top level | `type` | `type: guide` |
| HTML | Zone 1b: bare name; Zone 2: camelCase with `mx:` prefix | OKF fields: no prefix; operational: prepend `mx:`, case preserved | `type` / `mx:status` | `<meta name="type" content="guide">` / `<meta name="mx:status" content="active">` |
| JSDoc | camelCase with `@mx:` tag | prepend `@mx:`, case preserved | `@mx:contentType` | `@mx:contentType script` |
| CSS | camelCase with `@mx:` comment | prepend `@mx:`, case preserved | `@mx:contentType` | `/* @mx:contentType theme */` |
| Shell | camelCase in `# key: value` | none - preserve camelCase | `type` | `# type: guide` |
| XMP | `mx:` namespace prefix, case preserved | prepend `mx:` | `mx:type` | `<mx:type>guide</mx:type>` |
| Sidecar | camelCase in YAML (three-zone) | Zone 1b fields at top level | `type` | `type: guide` |
| SQL | camelCase in `-- @mx` block | none - preserve camelCase | `type` | `-- @mx type: guide` |

For HTML in particular: the four MUST-at-Level-2 fields from MX Core Metadata §7a (`canonicalUri`, `summary`, `conformsTo`, `trainingDataPolicy`) MUST be present in HTML carriers as the `mx:` `<meta>` tags `mx:canonicalUri`, `mx:summary`, `mx:conformsTo`, `mx:trainingDataPolicy`, the same camelCase names after the prefix. The carrier-formats note defines the binding form and worked examples.

### 7.2 Extension field naming in non-YAML contexts

Extension fields (`x-mx-` and `x-mx-p-`) carry a hyphenated prefix and a camelCase name. In non-YAML contexts the whole name is preserved as-is:

| Context | Standard field example | Extension field example |
|---------|----------------------|------------------------|
| YAML | `type: guide` (Zone 1b) | `x-mx-mountType: personal` |
| HTML | `<meta name="type" content="guide">` | `<meta name="mx:x-mx-mountType">` |
| JSDoc | `@okf-type guide` | `@mx:x-mx-mountType personal` |

---

## 8. Public extension fields (`x-mx-`)

The following fields use the `x-mx-` prefix and are owned by CogNovaMX. They are visible in published cogs and provide implementation-specific features that are not part of the open standard.

### 8.1 `x-mx-mountType`

| Property | Value |
|----------|-------|
| **Type** | string |
| **Zone** | 2 (mx:) |
| **Profile** | x-mx-public |
| **Conformance** | MUST (Level 1) for x-mx-public profile |
| **Valid values** | personal, team, product, standard |

Categorises submodules in the hub mount table. Determines the governance and swapability characteristics of a mounted repository.

- `personal` - owned by an individual.
- `team` - shared across a team.
- `product` - a product component.
- `standard` - a forkable standard.

This field is REQUIRED for all `.mx.yaml.md` folder metadata files that describe mount points.

```yaml
mx:
  x-mx-mountType: personal
```

### 8.2 `x-mx-mountSwappable`

| Property | Value |
|----------|-------|
| **Type** | string-or-boolean |
| **Zone** | 2 (mx:) |
| **Profile** | x-mx-public |
| **Conformance** | MUST (Level 1) for x-mx-public profile |
| **Valid values** | true, false, fork |

Whether this mount can be swapped for a different implementation.

- `true` - the mount can be replaced with any compatible alternative.
- `false` - the mount is integral and MUST NOT be replaced.
- `fork` - the mount can be replaced only by forking and customising.

```yaml
mx:
  x-mx-mountSwappable: true
```

### 8.3 `x-mx-mountUpstream`

| Property | Value |
|----------|-------|
| **Type** | string |
| **Zone** | 2 (mx:) |
| **Profile** | x-mx-public |
| **Conformance** | MAY (Level 2) |

Upstream source for standard-type mounts. Identifies the canonical source repository for a forked or derived mount. Only meaningful when `x-mx-mountType` is `standard`. The value SHOULD be a URL pointing to the upstream repository.

```yaml
mx:
  x-mx-mountUpstream: "https://github.com/example/upstream-repo"
```

---

## 9. Private extension mechanism (`x-mx-p-`)

### 9.1 Overview

The `x-mx-p-` prefix designates private extension fields. Unlike standard fields and `x-mx-` public extensions, private extension values are opaque - they are hashed, encoded, or tokenised so that only holders of the decode registry can interpret them.

### 9.2 Value encoding

Private extension values MUST be encoded before storage. The encoding method is at the vendor's discretion. Common approaches include:

- **Hash-based** - a one-way hash that maps to a lookup table in `$MX_HOME`
- **Token-based** - a short token (e.g., `a3f2c8`) that resolves to a full value via the registry
- **Encrypted** - symmetric or asymmetric encryption with keys stored in `$MX_HOME`

### 9.3 Decode registry

The decode registry lives in `$MX_HOME`. Implementations that encounter `x-mx-p-` fields without access to the decode registry MUST:

1. Preserve the field and its opaque value unchanged.
2. Not attempt to decode, interpret, or validate the value.
3. Pass the field through to any output format without modification.

### 9.4 Field listing

This specification does not list individual `x-mx-p-` fields. By definition, private extension fields are internal to CogNovaMX's implementation. Their names and semantics are documented in the `$MX_HOME` registry, not in public standards.

---

## 10. Extension registration process

### 10.1 How to add new extension fields

New extension fields are registered by CogNovaMX. The Gathering does not govern extension fields - vendor extensions are the vendor's call.

### 10.2 Registration steps

1. **Choose the prefix.** Use `x-mx-` for public extensions, `x-mx-p-` for private extensions.
2. **Use camelCase after the prefix.** The prefix keeps its hyphens; the name after it MUST be camelCase, the same rule as standard fields. Example: `x-mx-deployTarget`, not a hyphenated `deploy-target` after the prefix.
3. **Document the context.** Describe the field's purpose, type, valid values, and which carrier formats it applies to.
4. **No Gathering approval needed.** Extension fields follow vendor governance, not community governance.

### 10.3 Promotion to the core vocabulary

An extension field MAY be promoted into the core MX vocabulary through the following process:

1. The vendor proposes promotion to The Gathering.
2. The Gathering reviews the field's adoption, utility, and universality.
3. If accepted, the field's prefix is removed, and it becomes a core field with camelCase naming.
4. The old `x-mx-` prefixed version SHOULD be maintained as an alias for one major version cycle.

### 10.4 Field deprecation and retirement (Normative)

A field - standard or extension - that turns out to be a bad idea, that fails to find adoption, or that is replaced by a better-named or better-shaped equivalent follows the announce → deprecate → retire lifecycle. The lifecycle is normative for standard fields; vendor prefixes SHOULD adopt it but MAY follow their own retirement policy provided the policy is documented and the same one-major-version alias guarantee is offered.

**Stage 1 - Announce.** The owner publishes notice that the field will be deprecated. The notice MUST name:

- The field being deprecated.
- The replacement field, if any (or the rationale for retirement without replacement).
- The major version at which the field will be marked deprecated.
- The major version at which the field will be retired (typically one major version after deprecation).

The notice is a draft note, an entry in the field dictionary's deprecation log, or both. From the announcement onwards the canonical documentation for the field MUST link to the announcement.

**Stage 2 - Deprecate.** At the announced major version, the field is marked deprecated:

- The field's canonical documentation gains a `Deprecated:` banner naming the replacement.
- New documents SHOULD declare the replacement field; existing documents continue to validate.
- Tools SHOULD emit a one-line warning when they encounter the deprecated field, naming the replacement.
- The replacement field MUST treat the deprecated field as an alias and copy the value across when migrating documents.

A field MUST remain in the deprecated state for at least one major version cycle. This window is the migration runway: tooling, registries, downstream consumers, and authored documents have time to switch.

**Stage 3 - Retire.** At the announced retirement version, the field is removed:

- The field is removed from the canonical field dictionary and from the conformance summary tables.
- Validators MAY treat the retired field as a conformance failure (warning at minimum, error at the validator's discretion).
- The deprecation log keeps the field's entry permanently as historical record, with the retirement version annotated.

**Reverse of promotion.** A field that was promoted from extension space into the core vocabulary (§10.3) follows the same announce → deprecate → retire path if it is later retired. The `x-mx-`-prefixed alias maintained during promotion is itself retired in the same lifecycle event.

**Aliases as a migration tool.** When a field is renamed (the active case throughout the MX 1.0 ratification cycle - `author` → `originator`, `maintainer` / `ownership` → `stewardship`), the old name is treated as a deprecated alias of the new name from the deprecation announcement onward. The one-major-version alias guarantee gives every author and tool a mechanical migration path: update the field name at any point in the migration window, and validators on either side of the change will accept the document.

---

## 11. Conformance summary

| Requirement | Level 1 (MUST) | Level 2 (SHOULD/MAY) |
|-------------|:-:|:-:|
| Standard fields have no prefix | MUST | - |
| Extension fields use `x-mx-` or `x-mx-p-` | MUST | - |
| No prefix pollution | MUST | - |
| Correct context-specific naming for non-YAML carriers | - | SHOULD |
| `x-mx-mountType` (when x-mx-public profile applies) | MUST | - |
| `x-mx-mountSwappable` (when x-mx-public profile applies) | MUST | - |
| `x-mx-mountUpstream` | - | MAY |

---

## 12. Security and privacy considerations

- The `x-mx-p-` private extension mechanism is designed to protect sensitive metadata values. Implementations MUST NOT attempt to decode private values without the `$MX_HOME` registry.
- Extension fields MAY carry information about infrastructure, deployment targets, or organisational structure. Authors SHOULD consider whether public extension values expose sensitive operational details.
- The decode registry at `$MX_HOME` contains sensitive lookup tables. Access to `$MX_HOME` SHOULD be restricted to authorised users and agents.

---

## 13. References

### 13.1 Normative references

- [RFC 2119](https://www.rfc-editor.org/rfc/rfc2119) - Key words for use in RFCs to indicate requirement levels

### 13.2 Informative references

- [RFC 6648](https://www.rfc-editor.org/rfc/rfc6648) - Deprecating the "X-" prefix (historical context for the `x-mx-` convention)
- [HTTP Extension Headers](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers) - the `X-` prefix convention for non-standard headers
- [Schema.org Style Guide](https://schema.org/docs/styleguide.html) - Vocabulary naming conventions
- [Dublin Core DCMI Namespace](https://www.dublincore.org/specifications/dublin-core/dcmi-namespace/) - namespace governance model
- [WCAG 2.1](https://www.w3.org/TR/WCAG21/) - Web Content Accessibility Guidelines (conformance level model)

---

## 14. Common authoring mistakes (Informative)

Five shapes a fresh author often produces, each with the fix.

**Mistake 1: prefixing a standard field.** Writing the standard `status` field under the `x-mx-` prefix is wrong.

Standard fields (§6.2) MUST never carry the `x-mx-` prefix. Drop the prefix:

```yaml
# RIGHT
mx:
  status: active
```

**Mistake 2: camelCase on an extension field.**

```yaml
# WRONG - the name after the prefix is camelCase, not PascalCase
mx:
  x-mx-DeployTarget: production
```

Extension fields (§6.3, §10.2) keep the hyphenated prefix and use camelCase for the suffix:

```yaml
# RIGHT
mx:
  x-mx-deployTarget: production
```

**Mistake 3: publishing under another vendor's prefix.**

```yaml
# WRONG - the x-acme- prefix belongs to Acme, not to this author
mx:
  x-acme-clusterId: "prod-1"
```

A vendor prefix `x-{vendor}-` (§6.3) belongs to that vendor. Only the vendor publishes fields under it. For one-off fields, an author uses its own vendor prefix, or the seed-phase `x-mx-` namespace operated by CogNovaMX.

**Mistake 4: trying to decode an `x-mx-p-` value.**

```yaml
# WRONG — implementations without the registry MUST NOT attempt to interpret
mx:
  x-mx-p-clientTier: "a3f2c8"
  # ... and downstream code does:
  # if (clientTier === "a3f2c8") { ... }
```

Private extension values (§9) are opaque. Implementations without access to the decode registry MUST pass the value through unchanged and MUST NOT branch on its content. The opaque token is meaningful only to a registry-equipped consumer.

**Mistake 5: introducing `x-mx-` for something the standard already covers.**

```yaml
# WRONG — modified is already a standard field
mx:
  x-mx-lastChanged: 2026-05-07
```

Before declaring an `x-mx-` extension, check the standard vocabulary in MX Core Metadata §5-6. The intent here is captured by `modified` (Zone 1, §5.5). Use the standard field; the extension namespace is for genuinely new vocabulary, not synonyms of existing fields.

---

*End of MX Extensions specification draft.*
