usm schema (v0.5)
The models/usm.json file is validated by the normative JSON Schema published at its canonical URL:
- $id: https://contextbrew.dev/schemas/usm/v0.5/schema.json
- Format version:
0.5.0 - Schema dialect: draft-07
- Validate with:
ctx schema usmor any JSON Schema validator (ajv, VS Code, …)
Root object: UsmFile
Section titled “Root object: UsmFile”| Property | Type | Required | Description |
|---|---|---|---|
kind | "usm-file" | yes | |
schemaVersion | "0.5.0" | "0.4.0" | "0.3.0" | "0.2.0" | "0.1.0" | yes | Current USM schema version. Accepts 0.1.0 (legacy), 0.2.0, 0.3.0 (optional notes), 0.4.0 (optional persona card fields) and 0.5.0 (current — additive: strategy layer, goals/initiatives arrays + initiativeId on stories). |
title | string | yes | |
personas | UsmPersona[] | yes | |
columns | | yes | |
releases | UsmRelease[] | yes | |
goals | UsmGoal[] | no | Strategy layer (0.5.0, additive — optional). Goals are the outcomes; initiatives group stories toward a goal (goalId). The Aha! mapping: goals.csv → goals, initiatives.csv → initiatives, features carry initiativeId. |
initiatives | UsmInitiative[] | no | |
notes | ModelNote[] | no | File-level notes (see parser/model-note.ts). |
VisualisationSetup | VisualisationSetup | no |
Definitions
Section titled “Definitions”ModelNote
Section titled “ModelNote”| Property | Type | Required | Description |
|---|---|---|---|
kind | "model-note" | yes | |
id | string | yes | Stable id ("note-" + 12 hex chars); survives JSON round-trips. |
audience | ModelNoteAudience | yes | Who the note is for. Drives delivery: only "agent" reaches agent payloads. |
text | string | yes | Markdown body. |
author | string | no | |
createdAt | string | no | ISO 8601 timestamps. |
updatedAt | string | no | |
resolved | boolean | no | Lifecycle flag — resolved ≠ deleted. |
field | string | no | Optional sub-node scope: a member/property name of the anchored node. |
ModelNoteAudience
Section titled “ModelNoteAudience”Type: "user" | "agent"
UsmAcceptanceCriteria
Section titled “UsmAcceptanceCriteria”| Property | Type | Required | Description |
|---|---|---|---|
kind | "acceptance-criteria" | yes | |
id | string | yes | |
description | string | yes | |
given | string | no | |
when | string | no | |
then | string | no |
UsmGoal
Section titled “UsmGoal”Strategy layer (0.5.0, additive): an outcome the plan is accountable to.
| Property | Type | Required | Description |
|---|---|---|---|
kind | "goal" | yes | |
id | string | yes | |
name | string | yes | |
description | string | no | |
notes | ModelNote[] | no |
UsmInitiative
Section titled “UsmInitiative”Strategy layer (0.5.0, additive): groups stories toward a goal.
| Property | Type | Required | Description |
|---|---|---|---|
kind | "initiative" | yes | |
id | string | yes | |
name | string | yes | |
description | string | no | |
goalId | string | no | The goal this initiative serves, when the plan declares one. |
notes | ModelNote[] | no |
UsmPersona
Section titled “UsmPersona”| Property | Type | Required | Description |
|---|---|---|---|
kind | "persona" | yes | |
id | string | yes | |
name | string | yes | |
color | string | yes | |
role | string | no | Aha!-familiar persona card fields (0.4.0, additive — optional, so 0.3.0 files parse unchanged). role is the one-line job title, description the free-text profile, goals/pains the bullet lists a product persona card shows. Stories stay the structural half of the persona; these fields are the card. |
description | string | no | |
goals | | no | |
pains | | no | |
stories | UsmUserStory[] | yes | |
notes | ModelNote[] | no |
UsmRelease
Section titled “UsmRelease”| Property | Type | Required | Description |
|---|---|---|---|
kind | "release" | yes | |
id | string | yes | |
name | string | yes | |
color | string | yes | |
notes | ModelNote[] | no |
UsmStoryStatus
Section titled “UsmStoryStatus”Type: "draft" | "defined" | "implemented" | "tested" | "verified"
UsmUserStory
Section titled “UsmUserStory”| Property | Type | Required | Description |
|---|---|---|---|
kind | "user-story" | yes | |
id | string | yes | |
title | string | yes | |
description | string | yes | |
priority | number | yes | |
column | string | yes | |
release | string | no | |
status | UsmStoryStatus | no | |
points | number | no | Optional story-point estimate (Fibonacci-ish: 1, 2, 3, 5, 8, 13). |
acceptanceCriteria | UsmAcceptanceCriteria[] | yes | |
linkedRequirements | | yes | |
aggregateIds | | no | |
initiativeId | string | no | Initiative this story serves (0.5.0, additive — optional). |
notes | ModelNote[] | no |
VisualisationSetup
Section titled “VisualisationSetup”INTERNAL: Context Studio canvas state only; never emitted to coding agents.
| Property | Type | Required | Description |
|---|---|---|---|
nodePositions | Record<string, object> | yes | |
zoomLevel | number | yes | |
viewport | object | no | |
updatedAt | string | no |
Sample documents
Section titled “Sample documents”Representative models/usm.json files committed under samples/usm/. Each demo shows four views — pick the one you want: Canvas (rendered through the same SvelteFlow component the IDE uses), Mermaid (a static-flowchart fallback), Interactive (the live artifact ctx diagram <file> compiles — pan, zoom, click-to-trace, guided stories, exports), or Raw JSON. All assets are locally served; no GitHub redirect.
Live artifact compiled by ctx diagram — pan & zoom,/ to find a node, click one to trace reach, T theme, P guided story, ? for all shortcuts.
Open the raw JSON in a new tab(demo-01-minimal-story-map.json). The full source is also expanded in the <details> below this preview.
Demo 1 — minimal USM file: a single column, one release, one persona, one story. The smallest viable story-map shape.
demo-01-minimal-story-map.json — Demo 1 — minimal USM file: a single column, one release, one persona, one story. The smallest viable story-map shape. (expand for full JSON)
{ "kind": "usm-file", "schemaVersion": "0.1.0", "title": "Minimal User Story Map", "columns": ["Todo"], "releases": [ { "kind": "release", "id": "v1.0", "name": "MVP", "color": "#06D6A0" } ], "personas": [ { "kind": "persona", "id": "P1", "name": "User", "stories": [ { "kind": "user-story", "id": "US-001", "title": "Add a todo", "description": "As a User, I want to add a todo so I can track work.", "priority": 1, "column": "Todo", "release": "v1.0", "acceptanceCriteria": [ { "kind": "acceptance-criteria", "id": "AC-001", "description": "Adding a todo creates a row in the list." } ], "linkedRequirements": [] } ], "color": "#7B2CBF" } ]}Live artifact compiled by ctx diagram — pan & zoom,/ to find a node, click one to trace reach, T theme, P guided story, ? for all shortcuts.
Open the raw JSON in a new tab(demo-02-travel-booking-map.json). The full source is also expanded in the <details> below this preview.
Demo 2 — multi-column travel-booking story map with stories + acceptance criteria + linkedRequirements. The canonical 'realistic' example.
demo-02-travel-booking-map.json — Demo 2 — multi-column travel-booking story map with stories + acceptance criteria + linkedRequirements. The canonical ‘realistic’ example. (expand for full JSON)
{ "kind": "usm-file", "schemaVersion": "0.1.0", "title": "Travel Booking User Story Map", "columns": ["Discovery", "Booking", "Management", "Review"], "releases": [ { "kind": "release", "id": "v1.0", "name": "MVP", "color": "#06D6A0" }, { "kind": "release", "id": "v1.1", "name": "Enhancement", "color": "#118AB2" } ], "personas": [ { "kind": "persona", "id": "P1", "name": "Traveler", "stories": [ { "kind": "user-story", "id": "US-001", "title": "Search flights by route and date", "description": "As a Traveler, I want to search for flights so I can find options.", "priority": 1, "column": "Discovery", "release": "v1.0", "acceptanceCriteria": [ { "kind": "acceptance-criteria", "id": "AC-US1-01", "description": "Search returns only flights with available seats." }, { "kind": "acceptance-criteria", "id": "AC-US1-02", "description": "Results are sorted by departure time." } ], "linkedRequirements": ["SEARCH-001"] }, { "kind": "user-story", "id": "US-002", "title": "Confirm a booking", "description": "As a Traveler, I want to confirm a booking so my seat is reserved.", "priority": 1, "column": "Booking", "release": "v1.0", "acceptanceCriteria": [ { "kind": "acceptance-criteria", "id": "AC-US2-01", "description": "Confirmation emails the traveler." } ], "linkedRequirements": ["BOOK-001"] } ], "color": "#7B2CBF" } ]}Live artifact compiled by ctx diagram — pan & zoom,/ to find a node, click one to trace reach, T theme, P guided story, ? for all shortcuts.
Open the raw JSON in a new tab(demo-03-two-persona-aspects.json). The full source is also expanded in the <details> below this preview.
Demo 3 — two-persona map with per-story aspects (@accessibility, @audit). Exercises the cross-cutting-concerns vocabulary.
demo-03-two-persona-aspects.json — Demo 3 — two-persona map with per-story aspects (@accessibility, @audit). Exercises the cross-cutting-concerns vocabulary. (expand for full JSON)
{ "kind": "usm-file", "schemaVersion": "0.1.0", "title": "Two-Persona Map with Aspects", "columns": ["Browse", "Purchase", "Support"], "releases": [ { "kind": "release", "id": "v1.0", "name": "MVP", "color": "#06D6A0" }, { "kind": "release", "id": "v2.0", "name": "Self-Service", "color": "#118AB2" } ], "personas": [ { "kind": "persona", "id": "P-customer", "name": "Customer", "color": "#7B2CBF", "stories": [ { "kind": "user-story", "id": "US-100", "title": "Browse products", "priority": 1, "column": "Browse", "release": "v1.0", "acceptanceCriteria": [ { "kind": "acceptance-criteria", "id": "AC-100", "description": "Customer can filter by category." } ], "linkedRequirements": [], "description": "As a Customer, I want to browse products." }, { "kind": "user-story", "id": "US-101", "title": "Place an order", "priority": 1, "column": "Purchase", "release": "v1.0", "acceptanceCriteria": [ { "kind": "acceptance-criteria", "id": "AC-101", "description": "Order is persisted and email is sent." } ], "linkedRequirements": [], "description": "As a Customer, I want to place an order." } ] }, { "kind": "persona", "id": "P-support", "name": "Support Agent", "color": "#EF476F", "stories": [ { "kind": "user-story", "id": "US-200", "title": "Refund a customer", "priority": 2, "column": "Support", "release": "v2.0", "acceptanceCriteria": [ { "kind": "acceptance-criteria", "id": "AC-200", "description": "Refund creates a refund record and notifies the customer." } ], "linkedRequirements": [], "description": "As a Support Agent, I want to refund a customer." } ] } ]}Live artifact compiled by ctx diagram — pan & zoom,/ to find a node, click one to trace reach, T theme, P guided story, ? for all shortcuts.
Open the raw JSON in a new tab(demo-04-comprehensive-map.json). The full source is also expanded in the <details> below this preview.
Demo 4 — comprehensive multi-release map (5 columns × 3 releases × 2 personas × 5 stories). Exercises every field combination.
demo-04-comprehensive-map.json — Demo 4 — comprehensive multi-release map (5 columns × 3 releases × 2 personas × 5 stories). Exercises every field combination. (expand for full JSON)
{ "kind": "usm-file", "schemaVersion": "0.1.0", "title": "Comprehensive Multi-Release Map", "columns": [ "Awareness", "Consideration", "Purchase", "Onboarding", "Loyalty" ], "releases": [ { "kind": "release", "id": "v1.0", "name": "MVP", "color": "#06D6A0" }, { "kind": "release", "id": "v1.5", "name": "Mobile", "color": "#118AB2" }, { "kind": "release", "id": "v2.0", "name": "Premium", "color": "#FFD166" } ], "personas": [ { "kind": "persona", "id": "P1", "name": "Prospective Traveler", "stories": [ { "kind": "user-story", "id": "US-A01", "title": "Discover via blog", "priority": 3, "column": "Awareness", "release": "v1.0", "acceptanceCriteria": [], "linkedRequirements": [], "description": "As a Prospective Traveler, I want to discover via blog." }, { "kind": "user-story", "id": "US-A02", "title": "Compare prices", "priority": 2, "column": "Consideration", "release": "v1.0", "acceptanceCriteria": [], "linkedRequirements": [], "description": "As a Prospective Traveler, I want to compare prices." } ], "color": "#7B2CBF" }, { "kind": "persona", "id": "P2", "name": "Active Traveler", "stories": [ { "kind": "user-story", "id": "US-B01", "title": "Book a flight", "priority": 1, "column": "Purchase", "release": "v1.0", "acceptanceCriteria": [], "linkedRequirements": [], "description": "As a Active Traveler, I want to book a flight." }, { "kind": "user-story", "id": "US-B02", "title": "Check in online", "priority": 1, "column": "Onboarding", "release": "v1.5", "acceptanceCriteria": [], "linkedRequirements": [], "description": "As a Active Traveler, I want to check in online." }, { "kind": "user-story", "id": "US-B03", "title": "Earn loyalty points", "priority": 2, "column": "Loyalty", "release": "v2.0", "acceptanceCriteria": [], "linkedRequirements": [], "description": "As a Active Traveler, I want to earn loyalty points." } ], "color": "#7B2CBF" } ]}What this model produces
Section titled “What this model produces”The usm model is one of the richly-curated records — every downstream surface (CLI, MCP, docs, tests) reads from one record. The pasteable snippet below is the Door 1 anchor a downstream agent should see before touching this model.
- **USM v0.5.0** — `models/usm.json`. Produces: User guide, Gherkin features, navigation tests, Vitest suites from story acceptance criteria. Oracle: story acceptance criteria become behavior tests that must fail first and end green. Downstream: `ctxbrew semantics usm` · `ctxbrew://semantics/usm/v0.5.0` — read the record first.The full record (every door — anchor template, tool description hint, response annotations, behavior tripwire, and the complete produced-surface list) is served as JSON at:
- CLI —
ctxbrew semantics usm --schema-version 0.5.0 - MCP —
ctxbrew://semantics/usm/v0.5.0 - HTTP —
https://contextbrew.dev/schemas/usm/v0.5/semantics.json
See the schemas overview for the versioning policy and how these files are generated and kept in sync.








