Skip to content

usm schema (v0.5)

The models/usm.json file is validated by the normative JSON Schema published at its canonical URL:

PropertyTypeRequiredDescription
kind"usm-file"yes
schemaVersion"0.5.0" | "0.4.0" | "0.3.0" | "0.2.0" | "0.1.0"yesCurrent 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).
titlestringyes
personasUsmPersona[]yes
columnsstring[]yes
releasesUsmRelease[]yes
goalsUsmGoal[]noStrategy 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.
initiativesUsmInitiative[]no
notesModelNote[]noFile-level notes (see parser/model-note.ts).
VisualisationSetupVisualisationSetupno
PropertyTypeRequiredDescription
kind"model-note"yes
idstringyesStable id ("note-" + 12 hex chars); survives JSON round-trips.
audienceModelNoteAudienceyesWho the note is for. Drives delivery: only "agent" reaches agent payloads.
textstringyesMarkdown body.
authorstringno
createdAtstringnoISO 8601 timestamps.
updatedAtstringno
resolvedbooleannoLifecycle flag — resolved ≠ deleted.
fieldstringnoOptional sub-node scope: a member/property name of the anchored node.

Type: "user" | "agent"

PropertyTypeRequiredDescription
kind"acceptance-criteria"yes
idstringyes
descriptionstringyes
givenstringno
whenstringno
thenstringno

Strategy layer (0.5.0, additive): an outcome the plan is accountable to.

PropertyTypeRequiredDescription
kind"goal"yes
idstringyes
namestringyes
descriptionstringno
notesModelNote[]no

Strategy layer (0.5.0, additive): groups stories toward a goal.

PropertyTypeRequiredDescription
kind"initiative"yes
idstringyes
namestringyes
descriptionstringno
goalIdstringnoThe goal this initiative serves, when the plan declares one.
notesModelNote[]no
PropertyTypeRequiredDescription
kind"persona"yes
idstringyes
namestringyes
colorstringyes
rolestringnoAha!-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.
descriptionstringno
goalsstring[]no
painsstring[]no
storiesUsmUserStory[]yes
notesModelNote[]no
PropertyTypeRequiredDescription
kind"release"yes
idstringyes
namestringyes
colorstringyes
notesModelNote[]no

Type: "draft" | "defined" | "implemented" | "tested" | "verified"

PropertyTypeRequiredDescription
kind"user-story"yes
idstringyes
titlestringyes
descriptionstringyes
prioritynumberyes
columnstringyes
releasestringno
statusUsmStoryStatusno
pointsnumbernoOptional story-point estimate (Fibonacci-ish: 1, 2, 3, 5, 8, 13).
acceptanceCriteriaUsmAcceptanceCriteria[]yes
linkedRequirementsstring[]yes
aggregateIdsstring[]no
initiativeIdstringnoInitiative this story serves (0.5.0, additive — optional).
notesModelNote[]no

INTERNAL: Context Studio canvas state only; never emitted to coding agents.

PropertyTypeRequiredDescription
nodePositionsRecord<string, object>yes
zoomLevelnumberyes
viewportobjectno
updatedAtstringno

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.

↓ download

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.

demo-01-minimal-story-map.json — Context Studio canvas view

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)
demo-01-minimal-story-map.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"
}
]
}
↓ download

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.

demo-02-travel-booking-map.json — Context Studio canvas view

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)
demo-02-travel-booking-map.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"
}
]
}
↓ download

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.

demo-03-two-persona-aspects.json — Context Studio canvas view

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)
demo-03-two-persona-aspects.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."
}
]
}
]
}
↓ download

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.

demo-04-comprehensive-map.json — Context Studio canvas view

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)
demo-04-comprehensive-map.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"
}
]
}

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.

paste into AGENTS.md / CLAUDE.md
- **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.