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.

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 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:

3.2 Out of scope

3.3 Relationship to existing standards

This specification draws on the following published standards:

4. Terminology

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):

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):

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

Example (another vendor's prefix):

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.

Example:

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.

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

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.

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.

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:

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 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:

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:

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

13. References

13.1 Normative references

13.2 Informative references

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:

# RIGHT
mx:
  status: active

Mistake 2: camelCase on an extension field.

# 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:

# RIGHT
mx:
  x-mx-deployTarget: production

Mistake 3: publishing under another vendor's prefix.

# 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.

# 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.

# 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.