Skip to content

Factory · Layer 1 · Specification

Decide what the software must do.

The specification states what the product does, which rules it must respect and what counts as success. Your agent helps you challenge assumptions and resolve contradictions; Factory keeps every decision and its reasoning.

What it holds

  • Components: which part of the system owns each responsibility.
  • Features: what a person or another system can do, and how acceptance is judged.
  • Criteria: rules and constraints every design must respect.
  • Evaluations: what was learned and what should change.
  • Decisions and rejected alternatives, kept with the node they shaped.

Why it exists

Everything later points back here. A data model concept, an architecture component and a construction check each name the requirement they serve, so a change in intent shows exactly what it affects.

A small example

Illustrative feature from a booking app, in the open MFM Spec format.

---
id: book-appointment
kind: feature
intent: A customer books a free slot and receives a confirmation.
touches:
  - component: booking-service
    needs: reserve a slot so no one else can take it
---
## Acceptance
- Two customers can never hold the same slot.
- A cancelled booking frees its slot immediately.

Published specification examples

Four read-only examples, no account needed. Each states what it demonstrates and where its limits are.

Walk through a specification example · Field guide to spec-driven development

Only need the specification?

MFM Local is a standalone skill for writing and validating the same format as files in your own repository, without the hosted service.

Get mfm-local

How it is checked

  • Every change is validated as a whole graph: node kinds, required sections and every reference.
  • The project's rule set adds its own constraints; a failure is a design conversation, not a silent fix.
  • Writes name the revision they were based on, so two agents cannot overwrite each other.
  • Renames, merges, splits and retirements keep the old identity as history instead of deleting it.

Tools

  • mfm_spec_readreadsRead the Spec. Pull a projection of your tenant project's spec.
  • mfm_spec_validatereadsValidate Spec Mutation. Dry-run a fine-grained mutation batch.
  • mfm_spec_mutatewritesMutate the Spec. Commit a fine-grained mutation batch against `base_rev`.
  • mfm_spec_renamewritesRename a Spec Node. Rename a node — THE way to change a node's id.
  • mfm_spec_mergewritesMerge Spec Nodes. Merge nodes into one successor — THE way to fold responsibilities together.
  • mfm_spec_splitwritesSplit a Spec Node. Split one node into two or more successors — THE way to divide a responsibility.
  • mfm_spec_retirewritesRetire a Spec Node. Retire a node whose responsibility is GONE, not relocated (if it moved, use merge/rename instead).
  • mfm_spec_historyreadsRead Spec History. List recent immutable revisions with source, change note, and touched node ids.

Your agent's step-by-step procedure for this layer is in references/spec-authoring.md of the mfm-factory skill. This page explains the concepts; the skill is the operating guide.

All Factory tools