{
  "name": "logic",
  "version": "0.1.1",
  "description": "How the application actually works, in order: the flows a request or a person goes through, the decisions along the way, and the lifecycles things move through (a lock, an invite, a job). The core says what the parts are; this pack says what they do and when. Rules ask that every flow starts somewhere, every step leads on, every decision has labelled branches and every lifecycle has one first state.",
  "license": "Apache-2.0",
  "publisher": "trumly",
  "namespace": "lgc",
  "tier": "verified",
  "role": "enrichment",
  "useWhen": "When the order of events matters and getting it wrong is a bug: concurrency, permissions, retries, or anything an agent would otherwise guess.",
  "enriches": [
    "capability",
    "requirement",
    "component",
    "interface"
  ],
  "requires": [
    "core@^1.0.0"
  ],
  "optional": [
    "api@^0.3.0",
    "data-model@^0.6.0"
  ],
  "includes": [],
  "sha256": "ea3b2374b7b82ea762d2a55605ea15c64feabb91d7b3f135ac1d17271b2e12e5",
  "files": [
    [
      "lgc--flows",
      "---\nid: lgc--flows\ntype: plane\ntitle: Flows\nfields:\n  order: 1\n  stack: Logic\n  pack: logic@0.1.1\n---\nWhat happens, step by step: one flow for each scenario, drawn as a flowchart.\n"
    ],
    [
      "lgc--lifecycles",
      "---\nid: lgc--lifecycles\ntype: plane\ntitle: Lifecycles\nfields:\n  order: 2\n  stack: Logic\n  pack: logic@0.1.1\n---\nWhat a thing goes through over its life: states and the events that move it between them.\n"
    ],
    [
      "lgc--link-type-begins-at",
      "---\nid: lgc--link-type-begins-at\ntype: link-type\ntitle: begins-at\nfields:\n  name: begins-at\n  description: Use to say which step a flow begins at, or which state a lifecycle begins in.\n  inverse: is where it begins\n  from:\n  - flow\n  - lifecycle\n  to:\n  - step\n  - state\n  pack: logic@0.1.1\n---\n"
    ],
    [
      "lgc--link-type-by",
      "---\nid: lgc--link-type-by\ntype: link-type\ntitle: by\nfields:\n  name: by\n  description: Use to say who or what does a step.\n  inverse: does\n  from:\n  - step\n  to:\n  - actor\n  - component\n  - external\n  - team\n  - datastore\n  pack: logic@0.1.1\n---\n"
    ],
    [
      "lgc--link-type-enforces",
      "---\nid: lgc--link-type-enforces\ntype: link-type\ntitle: enforces\nfields:\n  name: enforces\n  description: Use to say that a step or state carries out a requirement or constraint, so the rule is\n    written once.\n  inverse: is enforced by\n  from:\n  - step\n  - state\n  to:\n  - requirement\n  - constraint\n  pack: logic@0.1.1\n---\n"
    ],
    [
      "lgc--link-type-moves-to",
      "---\nid: lgc--link-type-moves-to\ntype: link-type\ntitle: moves-to\nfields:\n  name: moves-to\n  description: Use to say that a state can be followed by another. Say what causes it in `on`, and any\n    condition in `guard`.\n  inverse: is reached from\n  from:\n  - state\n  to:\n  - state\n  pack: logic@0.1.1\n---\n"
    ],
    [
      "lgc--link-type-next",
      "---\nid: lgc--link-type-next\ntype: link-type\ntitle: next\nfields:\n  name: next\n  description: Use to say which step can follow this one. A decision gives each branch a `when`.\n  inverse: comes after\n  from:\n  - step\n  to:\n  - step\n  pack: logic@0.1.1\n---\n"
    ],
    [
      "lgc--link-type-touches",
      "---\nid: lgc--link-type-touches\ntype: link-type\ntitle: touches\nfields:\n  name: touches\n  description: 'Use to say what a step works on. Say how in the link''s `how`: call, read, write, publish\n    or subscribe.'\n  inverse: is touched by\n  from:\n  - step\n  to:\n  - interface\n  - queue\n  - datastore\n  - api-endpoint\n  - api-event\n  - data-table\n  pack: logic@0.1.1\n---\n"
    ],
    [
      "lgc--pack",
      "---\nid: lgc--pack\ntype: pack\ntitle: Logic\nfields:\n  name: logic\n  namespace: lgc\n  version: 0.1.1\n  license: Apache-2.0\n  publisher: trumly\n  role: enrichment\n  default-pattern: starter-flow\n  enriches:\n  - capability\n  - requirement\n  - component\n  - interface\n  description: 'How the application actually works, in order: the flows a request or a person goes through,\n    the decisions along the way, and the lifecycles things move through (a lock, an invite, a job). The\n    core says what the parts are; this pack says what they do and when. Rules ask that every flow starts\n    somewhere, every step leads on, every decision has labelled branches and every lifecycle has one first\n    state.'\n  use-when: 'When the order of events matters and getting it wrong is a bug: concurrency, permissions,\n    retries, or anything an agent would otherwise guess.'\n  requires:\n  - core@^1.0.0\n  optional:\n  - api@^0.3.0\n  - data-model@^0.6.0\n---\n"
    ],
    [
      "lgc--rule-action-has-doer",
      "---\nid: lgc--rule-action-has-doer\ntype: rule\ntitle: Actions say who does them\nfields:\n  name: Actions say who does them\n  statement: Every action says who or what does it\n  severity: warn\n  applies_to:\n    type: step\n    kind: action\n  check:\n    require_link:\n      type: by\n      min: 1\n  pack: logic@0.1.1\n---\n"
    ],
    [
      "lgc--rule-decision-branches",
      "---\nid: lgc--rule-decision-branches\ntype: rule\ntitle: Decisions have branches\nfields:\n  name: Decisions have branches\n  statement: Every decision has two or more branches and each says when it is taken\n  severity: error\n  applies_to:\n    type: step\n    kind: decision\n  check:\n    require_link:\n      type: next\n      node_type: step\n      min: 2\n    require_link_fields:\n      type: next\n      fields:\n      - when\n  pack: logic@0.1.1\n---\n"
    ],
    [
      "lgc--rule-final-ends",
      "---\nid: lgc--rule-final-ends\ntype: rule\ntitle: Final states end\nfields:\n  name: Final states end\n  statement: A final state has no way out\n  severity: warn\n  applies_to:\n    type: state\n    final: true\n  check:\n    forbid_link:\n      type: moves-to\n  pack: logic@0.1.1\n---\n"
    ],
    [
      "lgc--rule-flow-begins",
      "---\nid: lgc--rule-flow-begins\ntype: rule\ntitle: Flows begin at one step\nfields:\n  name: Flows begin at one step\n  statement: Every flow begins at exactly one start step\n  severity: error\n  applies_to:\n    type: flow\n  check:\n    require_link:\n      type: begins-at\n      node_type: step\n      node_fields:\n        kind: start\n      min: 1\n      max: 1\n  pack: logic@0.1.1\n---\n"
    ],
    [
      "lgc--rule-flow-traces",
      "---\nid: lgc--rule-flow-traces\ntype: rule\ntitle: Flows trace to a reason\nfields:\n  name: Flows trace to a reason\n  statement: Every flow details or satisfies something in Define\n  severity: warn\n  applies_to:\n    type: flow\n  check:\n    any_of:\n    - require_link:\n        type: details\n        node_type: capability\n        min: 1\n    - require_link:\n        type: details\n        node_type: requirement\n        min: 1\n    - require_link:\n        type: satisfies\n        node_type: requirement\n        min: 1\n  pack: logic@0.1.1\n---\n"
    ],
    [
      "lgc--rule-lifecycle-begins",
      "---\nid: lgc--rule-lifecycle-begins\ntype: rule\ntitle: Lifecycles begin in one state\nfields:\n  name: Lifecycles begin in one state\n  statement: Every lifecycle begins in exactly one initial state\n  severity: error\n  applies_to:\n    type: lifecycle\n  check:\n    require_link:\n      type: begins-at\n      node_type: state\n      node_fields:\n        initial: true\n      min: 1\n      max: 1\n  pack: logic@0.1.1\n---\n"
    ],
    [
      "lgc--rule-state-leads-on",
      "---\nid: lgc--rule-state-leads-on\ntype: rule\ntitle: States lead on\nfields:\n  name: States lead on\n  statement: Every state that is not final has a way out\n  severity: warn\n  applies_to:\n    type: state\n    final: false\n  check:\n    require_link:\n      type: moves-to\n      node_type: state\n      min: 1\n  pack: logic@0.1.1\n---\n"
    ],
    [
      "lgc--rule-state-reached",
      "---\nid: lgc--rule-state-reached\ntype: rule\ntitle: States are reached\nfields:\n  name: States are reached\n  statement: Every state except the first is reached from another state\n  severity: warn\n  applies_to:\n    type: state\n    initial: false\n  check:\n    require_link:\n      type: moves-to\n      dir: in\n      node_type: state\n      min: 1\n  pack: logic@0.1.1\n---\n"
    ],
    [
      "lgc--rule-step-leads-on",
      "---\nid: lgc--rule-step-leads-on\ntype: rule\ntitle: Steps lead on\nfields:\n  name: Steps lead on\n  statement: Every step except an end has a step that follows\n  severity: error\n  applies_to:\n    type: step\n    kind:\n    - start\n    - action\n    - wait\n    - decision\n  check:\n    require_link:\n      type: next\n      node_type: step\n      min: 1\n  pack: logic@0.1.1\n---\n"
    ],
    [
      "lgc--rule-step-reached",
      "---\nid: lgc--rule-step-reached\ntype: rule\ntitle: Steps are reached\nfields:\n  name: Steps are reached\n  statement: Every step except the start is reached from another step\n  severity: warn\n  applies_to:\n    type: step\n    kind:\n    - action\n    - wait\n    - decision\n    - end\n  check:\n    require_link:\n      type: next\n      dir: in\n      node_type: step\n      min: 1\n  pack: logic@0.1.1\n---\n"
    ],
    [
      "lgc--rule-step-stays-in-flow",
      "---\nid: lgc--rule-step-stays-in-flow\ntype: rule\ntitle: Steps stay in their flow\nfields:\n  name: Steps stay in their flow\n  statement: A step only leads on to steps of its own flow\n  severity: warn\n  applies_to:\n    type: step\n  check:\n    forbid_link:\n      type: next\n      ancestor_type: flow\n      scope: other\n  pack: logic@0.1.1\n---\n"
    ],
    [
      "lgc--rule-transition-says-on",
      "---\nid: lgc--rule-transition-says-on\ntype: rule\ntitle: Moves say what causes them\nfields:\n  name: Moves say what causes them\n  statement: Every move between states says what causes it\n  severity: error\n  applies_to:\n    type: state\n  check:\n    require_link_fields:\n      type: moves-to\n      fields:\n      - 'on'\n  pack: logic@0.1.1\n---\n"
    ],
    [
      "lgc--type-flow",
      "---\nid: lgc--type-flow\ntype: type\ntitle: flow\nfields:\n  name: flow\n  plane: lgc--flows\n  description: Use for one scenario from the thing that sets it off to how it ends, such as opening a\n    node or adding a person to a project. Its steps are its children.\n  shape: chevron\n  fields:\n  - name: trigger\n    kind: text\n    label: What sets it off\n    required: true\n  - name: outcome\n    kind: text\n    label: How it ends\n    required: true\n  pack: logic@0.1.1\n---\n**Ask:** What starts it? What are the possible endings? What would an agent get wrong if it guessed?\n\nOne flow per scenario. Title it with what happens (`Open a node`). Make each step a child of the flow, point `begins-at` at the start step, and join the steps with `next`. Say why the flow exists with `details` or `satisfies` to a capability or requirement.\n\n**Watch:** a flow that restates a business rule. Write the rule once as a requirement and let a step `enforces` it.\n"
    ],
    [
      "lgc--type-lifecycle",
      "---\nid: lgc--type-lifecycle\ntype: type\ntitle: lifecycle\nfields:\n  name: lifecycle\n  plane: lgc--lifecycles\n  description: Use for something that moves through states over its life, such as a lock, an invite or\n    a job. Its states are its children.\n  shape: hexagon\n  pack: logic@0.1.1\n---\n**Ask:** What is the thing? What state does it start in? Which states are the end?\n\nOne lifecycle per thing. Say what it is about with `details` to a concept, entity or datastore. Make each state a child, point `begins-at` at the first one, and join states with `moves-to`.\n\n**Watch:** two first states, a state nothing leads to, and a state that is not final but has no way out.\n"
    ],
    [
      "lgc--type-state",
      "---\nid: lgc--type-state\ntype: type\ntitle: state\nfields:\n  name: state\n  plane: lgc--lifecycles\n  description: Use for one state of a lifecycle, such as free, held, queued or failed.\n  shape: circle\n  fields:\n  - name: initial\n    kind: boolean\n    required: true\n    label: The first state\n  - name: final\n    kind: boolean\n    required: true\n    label: An end state\n  pack: logic@0.1.1\n---\n**Ask:** What is true while it is in this state? What moves it on?\n\nSet `initial` on the first state and `final` on the ones where it stops. Link each way out with `moves-to`, with `on` for the event and `guard` for any condition. Use `enforces` for a requirement the state upholds.\n"
    ],
    [
      "lgc--type-step",
      "---\nid: lgc--type-step\ntype: type\ntitle: step\nfields:\n  name: step\n  plane: lgc--flows\n  description: 'Use for one thing that happens in a flow: it begins, someone or something acts, a choice\n    is made, it waits, or it ends. A decision''s outgoing `next` links each say when they are taken.'\n  shape: square\n  fields:\n  - name: kind\n    kind: choice\n    required: true\n    values:\n    - start\n    - action\n    - decision\n    - wait\n    - end\n  pack: logic@0.1.1\n---\n**Ask:** Who or what does this? What does it touch? What can happen next?\n\n- **start**: where the flow begins (one per flow).\n- **action**: someone or something does a thing. Say who with `by`.\n- **decision**: a choice with two or more ways on; each `next` has a `when`.\n- **wait**: nothing happens until time passes or an event arrives. Say which in the body.\n- **end**: one way the flow finishes.\n\nUse `touches` for the interface, queue or datastore it works on and put how in the link's `how` (call, read, write, publish, subscribe). Use `enforces` for a requirement or constraint it carries out.\n\n**Watch:** a step with no way on, and a decision with one branch.\n"
    ],
    [
      "examples/ops-api-logic/acceptance-criterion-jobs-listed",
      "---\nid: acceptance-criterion-jobs-listed\ntype: acceptance-criterion\ntitle: Jobs listed\nplane: def--requirements\nfields:\n  given: A job has just changed state\n  when: Ops staff open the job list\n  then: The job and its new state are shown within 60 seconds\n  method: test\n---\n"
    ],
    [
      "examples/ops-api-logic/actor-ops-staff",
      "---\nid: actor-ops-staff\ntype: actor\ntitle: Ops staff\nplane: def--capabilities\nlinks:\n  - type: uses\n    to: component-ops-api\n---\n"
    ],
    [
      "examples/ops-api-logic/capability-view-job-status",
      "---\nid: capability-view-job-status\ntype: capability\ntitle: View job status\nplane: def--capabilities\nfields:\n  statement: view the current status of every job\n  scope: in\n  priority: must\n  status: proposed\nlinks:\n  - type: performed-by\n    to: actor-ops-staff\n  - type: derives-from\n    to: goal-timely-visibility\n---\n"
    ],
    [
      "examples/ops-api-logic/component-ops-api",
      "---\nid: component-ops-api\ntype: component\ntitle: Ops API\nplane: dsn--design\nfields:\n  kind: service\n  owner: Platform\n  status: planned\nlinks:\n  - type: satisfies\n    to: requirement-list-jobs\n  - type: writes\n    to: datastore-ops-db\n  - type: runs-in\n    to: environment-production\n---\n\nServes the list of jobs and their status to operations staff.\n"
    ],
    [
      "examples/ops-api-logic/datastore-ops-db",
      "---\nid: datastore-ops-db\ntype: datastore\ntitle: Ops db\nplane: dsn--design\nfields:\n  kind: relational\n  owner: Platform\n---\n\nHolds every job and its latest status.\n"
    ],
    [
      "examples/ops-api-logic/environment-production",
      "---\nid: environment-production\ntype: environment\ntitle: Production\nplane: dsn--design\nfields:\n  kind: production\n---\n\nThe live system that operations staff use.\n"
    ],
    [
      "examples/ops-api-logic/example",
      "---\nid: example\ntype: example\ntitle: Listing jobs\nfields:\n  title: Listing jobs\n  description: A flow for listing every job, with a decision on whether the database answers, and a lifecycle\n    for a job from queued to done, with retries.\n  use: starter\n  requires:\n  - logic\n  - core\n---\n"
    ],
    [
      "examples/ops-api-logic/flow-list-jobs",
      "---\nid: flow-list-jobs\ntype: flow\ntitle: List jobs\nplane: lgc--flows\nfields:\n  trigger: Ops staff open the job list\n  outcome: They see every job with its status, or an error\nlinks:\n- type: begins-at\n  to: step-open-list\n- type: details\n  to: capability-view-job-status\n- type: satisfies\n  to: requirement-list-jobs\n---\nThe path a request takes from the browser to the list on screen.\n"
    ],
    [
      "examples/ops-api-logic/goal-timely-visibility",
      "---\nid: goal-timely-visibility\ntype: goal\ntitle: Timely ops visibility\nplane: def--intent\nfields:\n  statement: Operations staff see the state of every job within a minute.\n  status: proposed\nlinks:\n  - type: measured-by\n    to: metric-status-freshness\n---\n"
    ],
    [
      "examples/ops-api-logic/increment-live-status",
      "---\nid: increment-live-status\ntype: increment\ntitle: Live job status\nplane: pln--plan\nfields:\n  status: planned\nlinks:\n  - type: enables\n    to: capability-view-job-status\n---\n\nThe first slice: staff can see live job status.\n"
    ],
    [
      "examples/ops-api-logic/lifecycle-job",
      "---\nid: lifecycle-job\ntype: lifecycle\ntitle: Job\nplane: lgc--lifecycles\nlinks:\n- type: begins-at\n  to: state-queued\n- type: details\n  to: datastore-ops-db\n---\nA job from request to result, with up to three tries. The database holds its latest state.\n"
    ],
    [
      "examples/ops-api-logic/metric-status-freshness",
      "---\nid: metric-status-freshness\ntype: metric\ntitle: Job status age\nplane: def--intent\nfields:\n  kind: success\n  unit: seconds\n  direction: lower-is-better\n  target: 60\n  how-measured: Age of the newest status for each job, sampled every minute\n---\n"
    ],
    [
      "examples/ops-api-logic/overview",
      "---\nid: overview\ntype: overview\ntitle: Ops API\nplane: abt--about\nfields:\n  purpose: A status API so operations staff can see what every job is doing.\n  audience: The build team and operations staff\n  owner: Platform\n  stage: design\n---\n"
    ],
    [
      "examples/ops-api-logic/requirement-list-jobs",
      "---\nid: requirement-list-jobs\ntype: requirement\ntitle: List jobs\nplane: def--requirements\nfields:\n  statement: The system shall list every job with its current status.\n  kind: functional\n  priority: must\n  status: proposed\nlinks:\n  - type: verified-by\n    to: acceptance-criterion-jobs-listed\n  - type: derives-from\n    to: capability-view-job-status\n---\n"
    ],
    [
      "examples/ops-api-logic/state-abandoned",
      "---\nid: state-abandoned\ntype: state\ntitle: Abandoned\nparent: lifecycle-job\nplane: lgc--lifecycles\nfields:\n  initial: false\n  final: true\n---\n"
    ],
    [
      "examples/ops-api-logic/state-done",
      "---\nid: state-done\ntype: state\ntitle: Done\nparent: lifecycle-job\nplane: lgc--lifecycles\nfields:\n  initial: false\n  final: true\n---\n"
    ],
    [
      "examples/ops-api-logic/state-failed",
      "---\nid: state-failed\ntype: state\ntitle: Failed\nparent: lifecycle-job\nplane: lgc--lifecycles\nfields:\n  initial: false\n  final: false\nlinks:\n- type: moves-to\n  to: state-queued\n  fields:\n    'on': it is retried\n    guard: fewer than three tries so far\n- type: moves-to\n  to: state-abandoned\n  fields:\n    'on': the third try fails\n---\n"
    ],
    [
      "examples/ops-api-logic/state-queued",
      "---\nid: state-queued\ntype: state\ntitle: Queued\nparent: lifecycle-job\nplane: lgc--lifecycles\nfields:\n  initial: true\n  final: false\nlinks:\n- type: moves-to\n  to: state-running\n  fields:\n    'on': a worker picks it up\n---\n"
    ],
    [
      "examples/ops-api-logic/state-running",
      "---\nid: state-running\ntype: state\ntitle: Running\nparent: lifecycle-job\nplane: lgc--lifecycles\nfields:\n  initial: false\n  final: false\nlinks:\n- type: moves-to\n  to: state-done\n  fields:\n    'on': it finishes\n- type: moves-to\n  to: state-failed\n  fields:\n    'on': it errors\n---\n"
    ],
    [
      "examples/ops-api-logic/step-ask-api",
      "---\nid: step-ask-api\ntype: step\ntitle: Ask the API for jobs\nparent: flow-list-jobs\nplane: lgc--flows\nfields:\n  kind: action\nlinks:\n- type: by\n  to: component-ops-api\n- type: next\n  to: step-read-db\n---\n"
    ],
    [
      "examples/ops-api-logic/step-open-list",
      "---\nid: step-open-list\ntype: step\ntitle: Open the job list\nparent: flow-list-jobs\nplane: lgc--flows\nfields:\n  kind: start\nlinks:\n- type: by\n  to: actor-ops-staff\n- type: next\n  to: step-ask-api\n---\n"
    ],
    [
      "examples/ops-api-logic/step-read-db",
      "---\nid: step-read-db\ntype: step\ntitle: Does the database answer?\nparent: flow-list-jobs\nplane: lgc--flows\nfields:\n  kind: decision\nlinks:\n- type: by\n  to: component-ops-api\n- type: touches\n  to: datastore-ops-db\n  fields:\n    how: read\n- type: enforces\n  to: requirement-list-jobs\n- type: next\n  to: step-show-jobs\n  fields:\n    when: 'yes'\n- type: next\n  to: step-show-error\n  fields:\n    when: 'no'\n---\nThe requirement says every job is listed with its current status, so a partial list is never shown.\n"
    ],
    [
      "examples/ops-api-logic/step-show-error",
      "---\nid: step-show-error\ntype: step\ntitle: Show an error\nparent: flow-list-jobs\nplane: lgc--flows\nfields:\n  kind: end\n---\n"
    ],
    [
      "examples/ops-api-logic/step-show-jobs",
      "---\nid: step-show-jobs\ntype: step\ntitle: Show every job\nparent: flow-list-jobs\nplane: lgc--flows\nfields:\n  kind: end\n---\n"
    ],
    [
      "examples/ops-api-logic/team-dev",
      "---\nid: team-dev\ntype: team\ntitle: Dev\nplane: pln--plan\nfields:\n  kind: agent\n  focus: Implements work packages for review\n---\n\nAn AI agent that writes code and hands it to people to review.\n"
    ],
    [
      "examples/ops-api-logic/team-platform",
      "---\nid: team-platform\ntype: team\ntitle: Platform\nplane: pln--plan\nfields:\n  kind: human\n  focus: Builds and runs the platform\n---\n\nThe people who own the system.\n"
    ],
    [
      "examples/ops-api-logic/work-package-build-status-api",
      "---\nid: work-package-build-status-api\ntype: work-package\ntitle: Build status API\nplane: pln--plan\nfields:\n  status: planned\nlinks:\n  - type: owned-by\n    to: team-dev\n  - type: reviewed-by\n    to: team-platform\n  - type: delivers\n    to: component-ops-api\n  - type: part-of\n    to: increment-live-status\n---\n\nBuild the service that lists job status.\n"
    ],
    [
      "examples/ops-api-logic/work-package-provision-database",
      "---\nid: work-package-provision-database\ntype: work-package\ntitle: Provision database\nplane: pln--plan\nfields:\n  status: planned\nlinks:\n  - type: owned-by\n    to: team-platform\n  - type: delivers\n    to: datastore-ops-db\n  - type: part-of\n    to: increment-live-status\n---\n\nCreate the operations database.\n"
    ],
    [
      "patterns/starter-flow/do",
      "---\nid: do\ntype: step\ntitle: Something happens\nparent: flow\nplane: lgc--flows\nfields:\n  kind: action\nlinks:\n- type: next\n  to: finish\n---\nSay who does it with `by`.\n"
    ],
    [
      "patterns/starter-flow/finish",
      "---\nid: finish\ntype: step\ntitle: It ends\nparent: flow\nplane: lgc--flows\nfields:\n  kind: end\n---\nOne way the flow finishes.\n"
    ],
    [
      "patterns/starter-flow/flow",
      "---\nid: flow\ntype: flow\ntitle: What happens\nplane: lgc--flows\nfields:\n  trigger: What sets it off\n  outcome: How it ends\nlinks:\n- type: begins-at\n  to: start\n---\nOne scenario from trigger to outcome.\n"
    ],
    [
      "patterns/starter-flow/pattern",
      "---\nid: pattern\ntype: pattern\ntitle: Starter flow\nfields:\n  title: Starter flow\n  description: A flow with a start, one action and an end. Add it for each scenario whose order matters,\n    then rename the steps and add the decisions.\n  use: starter\n  requires:\n  - logic\n  root: flow\n  prefix: flow\n---\n"
    ],
    [
      "patterns/starter-flow/start",
      "---\nid: start\ntype: step\ntitle: It begins\nparent: flow\nplane: lgc--flows\nfields:\n  kind: start\nlinks:\n- type: next\n  to: do\n---\nWhere the flow begins.\n"
    ]
  ]
}
