The model

The few ideas everything else is built from.

The shape of a specification #

Barnspek describes a business by its needs, as a tree. A specification holds one or more areas of business. Each has roles, and each role has stories. A story is proven by Scenarios, which are built from shared building blocks. Stories are released in Phases.

TermWhat it isExample
Area of businessA distinct part of what the business does, with a title and a meaning.reservations: booking and keeping rooms
RoleA kind of person within an area of business, and what they are responsible for.guest: choosing and securing somewhere to stay
StoryWhat a role wants to do (the goal) and why (the reward).The guest wants to book a room for a run of nights, so they have somewhere to stay.
ScenarioOne concrete case of a story: given, when, then.Given no booking holds the room, when they book a room for three nights, then the booking is confirmed.
PhaseA slice of work. One is being built; earlier ones are released.first bookings

Areas of business and roles #

An area of business is named in your own words and says what it covers. It is never shortened: it is an area of business everywhere in Barnspek. A role belongs to one area of business and has a meaning of its own, which says what the role is responsible for.

Stories #

A story is told in the third person: “The role wants to goal, so they reward.” Its address is its goal turned into a slug (book-a-room-for-a-run-of-nights). It belongs to one Phase.

Stages #

A story can sit at one stage of the role’s dealings with the business. The five stages are fixed and the same in every area of business, so maps line up column for column. A story with no stage is Unassigned, a permanent home for things that are not about a lifespan, such as reporting or notifications.

StageShown on the map asThe role…
establishEstablishgains what it needs to take part: signs up, registers, is granted access, or creates the thing later stories act on.
adjustAdjustchanges something that already exists without completing the area of business’s core exchange: edits details, reconfigures, corrects a mistake.
transactActcompletes the exchange the area of business exists for: pays, places the order, submits, publishes.
resolveFollow Upgets the exchange to a settled state: tracks it, chases it, disputes a charge, claims a refund, asks for help.
closeTerminateends something for good: cancels, closes, deletes, archives.

Set a stage when capturing, or afterwards until the story’s Phase is released.

Scenarios and building blocks #

A Scenario has a name and three parts. Given lists facts that hold at the start. When is the action the role takes, with an outcome the role expects: accepted or rejected. Then lists facts that hold afterwards. The words in them are shared building blocks, defined once and reused by every Scenario:

  • A subject is a thing the business reasons about, such as a room or a booking. It has a meaning.
  • A fact is something that can be true of a subject: is available, is confirmed. It has a meaning.
  • An action is what a role does: book a room for three nights.
  • A parameter is a detail a fact or action takes, with a type and a value in each Scenario, such as the number of nights. It can carry an example, shown beside its meaning in the glossary.

Because every word is defined once, every story and example uses the same word for the same thing, and the glossary Barnspek writes is the business’s own language.

Phases #

A Phase is a small, whole piece of value built from end to end. Each area of business has exactly one Phase being built and any number already released. A story belongs to one Phase. A Phase can be released only when every story in it is proven by a passing run, and releasing it locks what it holds. Phases, releasing and changing has the details.

Fulfilment: tickets, runs and colours #

Work is tracked as tickets against Scenarios, and proof is a run of the Scenario against the real software. Each Scenario has a colour, worked out from those and never set by hand. Each story’s colour is rolled up from its Scenarios. The rules are in Prove a Scenario.

Impact #

A released story also records its impact: whether doing what it describes delivered its reward. It is recorded beside the story’s colour, never instead of it.