{
  "name": "plan",
  "version": "1.0.0",
  "description": "How the design gets built: teams (people or AI agents), increments of value, the work packages inside them and the risks. Rules keep every work package owned and delivering something, and every agent's work with a human accountable.",
  "license": "Apache-2.0",
  "publisher": "trumly",
  "namespace": "pln",
  "tier": "verified",
  "role": "core",
  "useWhen": "When the design is settled enough to schedule: who builds what, in which slices, and what could go wrong.",
  "enriches": [],
  "requires": [
    "links@^1.0.0",
    "define@^1.0.0",
    "design@^1.0.0"
  ],
  "optional": [],
  "includes": [],
  "sha256": "840e7bb68325d06d0d2c86c133a70725b8efa57f9695e69aff04eec75060d6c2",
  "files": [
    [
      "pln--link-type-arises-from",
      "---\nid: pln--link-type-arises-from\ntype: link-type\ntitle: arises-from\nfields:\n  name: arises-from\n  description: Use to say which assumption a risk comes from, so a failed assumption points at its risks.\n  inverse: is the source of\n  from:\n  - risk\n  to:\n  - assumption\n  pack: plan@1.0.0\n---\n"
    ],
    [
      "pln--link-type-delivers",
      "---\nid: pln--link-type-delivers\ntype: link-type\ntitle: delivers\nfields:\n  name: delivers\n  description: Use to say which design nodes a work package builds.\n  inverse: delivered by\n  from:\n  - work-package\n  to: []\n  pack: plan@1.0.0\n---\n"
    ],
    [
      "pln--link-type-enables",
      "---\nid: pln--link-type-enables\ntype: link-type\ntitle: enables\nfields:\n  name: enables\n  description: Use to say which capabilities become possible when an increment is done.\n  inverse: enabled by\n  from:\n  - increment\n  to:\n  - capability\n  pack: plan@1.0.0\n---\n"
    ],
    [
      "pln--link-type-follows",
      "---\nid: pln--link-type-follows\ntype: link-type\ntitle: follows\nfields:\n  name: follows\n  description: 'Use to put increments in order: this one comes after that one.'\n  inverse: followed by\n  from:\n  - increment\n  to:\n  - increment\n  pack: plan@1.0.0\n---\n"
    ],
    [
      "pln--link-type-owned-by",
      "---\nid: pln--link-type-owned-by\ntype: link-type\ntitle: owned-by\nfields:\n  name: owned-by\n  description: Use to say which team is responsible for a work package or a risk.\n  inverse: owns\n  from:\n  - work-package\n  - risk\n  to:\n  - team\n  pack: plan@1.0.0\n---\n"
    ],
    [
      "pln--link-type-reviewed-by",
      "---\nid: pln--link-type-reviewed-by\ntype: link-type\ntitle: reviewed-by\nfields:\n  name: reviewed-by\n  description: Use to say which team checks a work package's output before it counts as built, such as\n    a human team reviewing an agent's work.\n  inverse: reviews\n  from:\n  - work-package\n  to:\n  - team\n  pack: plan@1.0.0\n---\n"
    ],
    [
      "pln--pack",
      "---\nid: pln--pack\ntype: pack\ntitle: Plan\nfields:\n  name: plan\n  namespace: pln\n  version: 1.0.0\n  description: 'How the design gets built: teams (people or AI agents), increments of value, the work\n    packages inside them and the risks. Rules keep every work package owned and delivering something,\n    and every agent''s work with a human accountable.'\n  license: Apache-2.0\n  publisher: trumly\n  role: core\n  use-when: 'When the design is settled enough to schedule: who builds what, in which slices, and what\n    could go wrong.'\n  requires:\n  - links@^1.0.0\n  - define@^1.0.0\n  - design@^1.0.0\n---\n"
    ],
    [
      "pln--plan",
      "---\nid: pln--plan\ntype: plane\ntitle: Plan\nfields:\n  order: 1\n  stack: Plan\n  stack_at:\n  - 4\n  - 2\n  shapes:\n    increment: chevron\n    risk: diamond\n    team: person\n    work-package: square\n  pack: plan@1.0.0\n---\nHow the design gets built: who builds it, increments of value, the work packages inside them, and what could go wrong.\n"
    ],
    [
      "pln--rule-agent-work-reviewed",
      "---\nid: pln--rule-agent-work-reviewed\ntype: rule\ntitle: Agent work has a human\nfields:\n  name: Agent work has a human\n  statement: Every work package is owned or reviewed by a human team\n  severity: error\n  applies_to:\n    type: work-package\n  check:\n    any_of:\n    - require_link:\n        node_fields:\n          kind: human\n        node_type: team\n        type: owned-by\n    - require_link:\n        node_fields:\n          kind: human\n        node_type: team\n        type: reviewed-by\n  pack: plan@1.0.0\n---\n**Why:** agents propose, humans accept. Someone human must own the work or review it.\n\n**Fix:** give the work package a human team as owner, or add `reviewed-by` pointing at a human team.\n"
    ],
    [
      "pln--rule-capability-enabled",
      "---\nid: pln--rule-capability-enabled\ntype: rule\ntitle: Musts are scheduled\nfields:\n  name: Musts are scheduled\n  statement: Every in-scope must-have capability is enabled by an increment\n  severity: warn\n  applies_to:\n    priority: must\n    scope: in\n    type: capability\n  check:\n    require_link:\n      dir: in\n      min: 1\n      node_type: increment\n      type: enables\n  pack: plan@1.0.0\n---\n**Why:** an in-scope must-have that no increment enables is not in the plan.\n\n**Fix:** add an increment with an `enables` link to the capability.\n"
    ],
    [
      "pln--rule-component-delivered",
      "---\nid: pln--rule-component-delivered\ntype: rule\ntitle: Components are planned for\nfields:\n  name: Components are planned for\n  statement: Every component is delivered by a work package\n  severity: warn\n  applies_to:\n    type: component\n  check:\n    require_link:\n      dir: in\n      min: 1\n      node_type: work-package\n      type: delivers\n  pack: plan@1.0.0\n---\n**Why:** a component no work package builds has no plan behind it.\n\n**Fix:** add it to a work package with `delivers`.\n"
    ],
    [
      "pln--rule-increment-enables",
      "---\nid: pln--rule-increment-enables\ntype: rule\ntitle: Increments enable something\nfields:\n  name: Increments enable something\n  statement: Every increment enables at least one capability\n  severity: warn\n  applies_to:\n    type: increment\n  check:\n    require_link:\n      min: 1\n      node_type: capability\n      type: enables\n  pack: plan@1.0.0\n---\n**Why:** an increment with no capability delivers no value anyone asked for.\n\n**Fix:** add an `enables` link to the capability it unlocks.\n"
    ],
    [
      "pln--rule-increment-has-work",
      "---\nid: pln--rule-increment-has-work\ntype: rule\ntitle: Increments contain work\nfields:\n  name: Increments contain work\n  statement: Every increment includes at least one work package\n  severity: error\n  applies_to:\n    type: increment\n  check:\n    require_link:\n      dir: in\n      min: 1\n      node_type: work-package\n      type: part-of\n  pack: plan@1.0.0\n---\n**Why:** an empty increment is a promise with no work behind it.\n\n**Fix:** add work packages with `part-of`.\n"
    ],
    [
      "pln--rule-increments-ordered",
      "---\nid: pln--rule-increments-ordered\ntype: rule\ntitle: Increments are ordered\nfields:\n  name: Increments are ordered\n  statement: Increments do not follow each other in a loop\n  severity: error\n  applies_to:\n    type: increment\n  check:\n    acyclic: follows\n  pack: plan@1.0.0\n---\n**Why:** a loop in `follows` means there is no first slice.\n\n**Fix:** remove the link that makes the loop.\n"
    ],
    [
      "pln--rule-risk-about",
      "---\nid: pln--rule-risk-about\ntype: rule\ntitle: Risks are about something\nfields:\n  name: Risks are about something\n  statement: Every risk is about a node\n  severity: error\n  applies_to:\n    type: risk\n  check:\n    require_link:\n      min: 1\n      type: about\n  pack: plan@1.0.0\n---\n**Why:** a risk has to threaten something specific to be actionable.\n\n**Fix:** add an `about` link to the node it threatens.\n"
    ],
    [
      "pln--rule-risk-owned",
      "---\nid: pln--rule-risk-owned\ntype: rule\ntitle: Risks have an owner\nfields:\n  name: Risks have an owner\n  statement: Every risk is owned by a team\n  severity: error\n  applies_to:\n    type: risk\n  check:\n    require_link:\n      min: 1\n      node_type: team\n      type: owned-by\n  pack: plan@1.0.0\n---\n**Why:** a risk nobody owns is a risk nobody watches.\n\n**Fix:** add an `owned-by` link to a team.\n"
    ],
    [
      "pln--rule-team-focus",
      "---\nid: pln--rule-team-focus\ntype: rule\ntitle: Teams state their focus\nfields:\n  name: Teams state their focus\n  statement: Every team states its focus\n  severity: error\n  applies_to:\n    type: team\n  check:\n    require_fields:\n    - focus\n  pack: plan@1.0.0\n---\n**Why:** for an agent, the focus is what keeps its work reviewable.\n\n**Fix:** set focus.\n"
    ],
    [
      "pln--rule-work-package-acyclic",
      "---\nid: pln--rule-work-package-acyclic\ntype: rule\ntitle: No circular work dependencies\nfields:\n  name: No circular work dependencies\n  statement: Work packages do not depend on each other in a loop\n  severity: error\n  applies_to:\n    type: work-package\n  check:\n    acyclic: depends-on\n  pack: plan@1.0.0\n---\n**Why:** if A waits for B and B waits for A, neither can start.\n\n**Fix:** split one work package, or remove the dependency that is not real.\n"
    ],
    [
      "pln--rule-work-package-delivers",
      "---\nid: pln--rule-work-package-delivers\ntype: rule\ntitle: Work packages deliver\nfields:\n  name: Work packages deliver\n  statement: Every work package delivers at least one design node\n  severity: error\n  applies_to:\n    type: work-package\n  check:\n    require_link:\n      min: 1\n      type: delivers\n  pack: plan@1.0.0\n---\n**Why:** a work package that builds no design node is effort with no purpose.\n\n**Fix:** add a `delivers` link to the design node it builds.\n"
    ],
    [
      "pln--rule-work-package-in-increment",
      "---\nid: pln--rule-work-package-in-increment\ntype: rule\ntitle: Work sits in an increment\nfields:\n  name: Work sits in an increment\n  statement: Every work package is part of an increment\n  severity: warn\n  applies_to:\n    type: work-package\n  check:\n    require_link:\n      min: 1\n      node_type: increment\n      type: part-of\n  pack: plan@1.0.0\n---\n**Why:** an increment is how work turns into something usable.\n\n**Fix:** add a `part-of` link to an increment.\n"
    ],
    [
      "pln--rule-work-package-owned",
      "---\nid: pln--rule-work-package-owned\ntype: rule\ntitle: Work packages have a team\nfields:\n  name: Work packages have a team\n  statement: Every work package is owned by one team\n  severity: error\n  applies_to:\n    type: work-package\n  check:\n    require_link:\n      max: 1\n      min: 1\n      node_type: team\n      type: owned-by\n  pack: plan@1.0.0\n---\n**Why:** work with no owner does not get finished.\n\n**Fix:** add an `owned-by` link to a team.\n"
    ],
    [
      "pln--type-increment",
      "---\nid: pln--type-increment\ntype: type\ntitle: increment\nfields:\n  name: increment\n  plane: pln--plan\n  description: Use for a releasable slice of value that enables one or more capabilities and groups the\n    work packages needed for it.\n  shape: chevron\n  fields:\n  - name: status\n    kind: choice\n    required: true\n    values:\n    - planned\n    - in-progress\n    - built\n    - verified\n    - dropped\n  - name: target-date\n    kind: text\n  - name: body\n    kind: text\n    label: Description\n    required: true\n  pack: plan@1.0.0\n---\n**Ask:** What is the first slice that is useful on its own? What comes after?\n\nOrder increments with `follows`. A target date is optional and is a forecast, not a promise. The name `release` is taken by Helm, hence increment.\n\n**Watch:** an increment that enables no capability, or one marked verified while its work is not.\n"
    ],
    [
      "pln--type-risk",
      "---\nid: pln--type-risk\ntype: type\ntitle: risk\nfields:\n  name: risk\n  plane: pln--plan\n  description: Use for something that could stop the build or the system working, with how likely and\n    how bad it is and what will be done about it.\n  shape: diamond\n  fields:\n  - name: likelihood\n    kind: choice\n    required: true\n    values:\n    - low\n    - medium\n    - high\n  - name: impact\n    kind: choice\n    required: true\n    values:\n    - low\n    - medium\n    - high\n  - name: mitigation\n    kind: text\n    required: true\n  - name: state\n    kind: choice\n    required: true\n    values:\n    - open\n    - mitigated\n    - accepted\n    - occurred\n  - name: body\n    kind: text\n    label: Description\n    required: true\n  pack: plan@1.0.0\n---\n**Ask:** What could stop this being built or working? How likely, how bad, and what will we do about it?\n\nTie it to the assumption it comes from, so a failed assumption points at its risks. Every risk needs an owner and a mitigation.\n\n**Watch:** a risk nobody owns, or one with no mitigation.\n"
    ],
    [
      "pln--type-team",
      "---\nid: pln--type-team\ntype: type\ntitle: team\nfields:\n  name: team\n  plane: pln--plan\n  description: 'Use for a group that builds or reviews work: a human team or an AI agent. Every work package\n    is owned by one.'\n  shape: person\n  fields:\n  - name: kind\n    kind: choice\n    required: true\n    values:\n    - human\n    - agent\n  - name: focus\n    kind: text\n    required: true\n  - name: body\n    kind: text\n    label: Description\n    required: true\n  pack: plan@1.0.0\n---\n**Ask:** Who builds this? Who reviews? Is the builder a person's team or an AI agent?\n\nA team is a role, not a named individual. An AI agent is a team of kind `agent`; give it a focus narrow enough that its output can be reviewed.\n\n**Watch:** work with no team, or an agent's work with no human reviewer.\n"
    ],
    [
      "pln--type-work-package",
      "---\nid: pln--type-work-package\ntype: type\ntitle: work-package\nfields:\n  name: work-package\n  plane: pln--plan\n  description: 'Use for a chunk of build work that one team can finish: it delivers design nodes and moves\n    through planned, in-progress, built and verified.'\n  shape: square\n  fields:\n  - name: status\n    kind: choice\n    required: true\n    values:\n    - planned\n    - in-progress\n    - built\n    - verified\n    - dropped\n  - name: body\n    kind: text\n    label: Description\n    required: true\n  pack: plan@1.0.0\n---\n**Ask:** What is the next chunk someone can pick up and finish? What does it deliver? What must be done first?\n\nSize it so one team can finish and verify it. It points at the design nodes it delivers; it never repeats their detail. Tickets and stories are generated from this, not stored here.\n\n**Watch:** a work package that delivers nothing, belongs to no increment, or depends on itself in a loop.\n"
    ],
    [
      "examples/ops-api-plan/acceptance-criterion-status-shown",
      "---\nid: acceptance-criterion-status-shown\ntype: acceptance-criterion\ntitle: Status shown\nplane: def--requirements\nfields:\n  given: A job has just changed state\n  when: Operations staff open the job list\n  then: The new state is shown within 60 seconds\n  method: test\n---\n"
    ],
    [
      "examples/ops-api-plan/actor-ops-staff",
      "---\nid: actor-ops-staff\ntype: actor\ntitle: Operations staff\nplane: def--capabilities\nlinks:\n- type: uses\n  to: component-ops-api\n---\n"
    ],
    [
      "examples/ops-api-plan/assumption-job-volume",
      "---\nid: assumption-job-volume\ntype: assumption\ntitle: Job volume stays modest\nplane: def--intent\nfields:\n  statement: No more than 5,000 jobs run each night.\n  how-to-check: Count the nightly jobs for a month\n  owner: Platform team\n  state: open\n---\n"
    ],
    [
      "examples/ops-api-plan/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: derives-from\n  to: goal-timely-visibility\n- type: performed-by\n  to: actor-ops-staff\n- type: refers-to\n  to: concept-job\n- type: relies-on\n  to: assumption-job-volume\n---\n"
    ],
    [
      "examples/ops-api-plan/component-ops-api",
      "---\nid: component-ops-api\ntype: component\ntitle: Ops API service\nplane: dsn--design\nfields:\n  kind: service\n  owner: Platform team\n  status: planned\nlinks:\n- type: exposes\n  to: interface-ops-api\n- type: writes\n  to: datastore-ops-db\n- type: publishes\n  to: queue-job-events\n- type: runs-in\n  to: environment-production\n- type: satisfies\n  to: requirement-status-freshness\n---\nServes job status to operations staff and records state changes.\n"
    ],
    [
      "examples/ops-api-plan/component-ops-report",
      "---\nid: component-ops-report\ntype: component\ntitle: Nightly report job\nplane: dsn--design\nfields:\n  kind: job\n  owner: Platform team\n  status: planned\nlinks:\n- type: subscribes\n  to: queue-job-events\n- type: reads\n  to: datastore-ops-db\n- type: runs-in\n  to: environment-production\n- type: satisfies\n  to: requirement-status-freshness\n---\nBuilds the overnight summary from the recorded events.\n"
    ],
    [
      "examples/ops-api-plan/concept-job",
      "---\nid: concept-job\ntype: concept\ntitle: Job\nplane: def--capabilities\nfields:\n  definition: A scheduled piece of work run for a customer.\n---\n"
    ],
    [
      "examples/ops-api-plan/constraint-uk-eu-data",
      "---\nid: constraint-uk-eu-data\ntype: constraint\ntitle: Data stays in UK/EU\nplane: def--intent\nfields:\n  statement: Customer data stays in the UK or the EU.\n  kind: legal\n  source: Customer contracts\n  status: proposed\nlinks:\n- type: governs\n  to: capability-view-job-status\n---\n"
    ],
    [
      "examples/ops-api-plan/datastore-ops-db",
      "---\nid: datastore-ops-db\ntype: datastore\ntitle: Operations database\nplane: dsn--design\nfields:\n  kind: relational\n  owner: Platform team\n---\nHolds every job and its latest status.\n"
    ],
    [
      "examples/ops-api-plan/environment-production",
      "---\nid: environment-production\ntype: environment\ntitle: Production\nplane: dsn--design\nfields:\n  kind: production\n---\nThe live system that operations staff use.\n"
    ],
    [
      "examples/ops-api-plan/example",
      "---\nid: example\ntype: example\ntitle: Building the ops API\nfields:\n  title: Building the ops API\n  description: Two teams (one an AI agent with a human reviewer), the first increment, the work packages\n    inside it and a risk.\n  use: starter\n  requires:\n  - plan\n  - define\n  - design\n---\n"
    ],
    [
      "examples/ops-api-plan/goal-timely-visibility",
      "---\nid: goal-timely-visibility\ntype: goal\ntitle: Timely 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-plan/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---\nThe first slice: staff can see live job status.\n"
    ],
    [
      "examples/ops-api-plan/interface-ops-api",
      "---\nid: interface-ops-api\ntype: interface\ntitle: Ops API\nplane: dsn--design\nfields:\n  protocol: http\n---\nThe boundary operations tools call to read job status.\n"
    ],
    [
      "examples/ops-api-plan/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-plan/question-report-recipients",
      "---\nid: question-report-recipients\ntype: question\ntitle: Report recipients\nplane: def--intent\nfields:\n  state: open\n  raised-by: agent\nlinks:\n- type: about\n  to: capability-view-job-status\n---\nWho should receive the nightly report, and should it also be emailed?\n"
    ],
    [
      "examples/ops-api-plan/queue-job-events",
      "---\nid: queue-job-events\ntype: queue\ntitle: Job events\nplane: dsn--design\nfields:\n  kind: queue\n  delivery: at-least-once\n---\nAnnounces each job state change so other parts can react.\n"
    ],
    [
      "examples/ops-api-plan/requirement-status-freshness",
      "---\nid: requirement-status-freshness\ntype: requirement\ntitle: Status is fresh\nplane: def--requirements\nfields:\n  statement: The system shall show each job status no more than 60 seconds old.\n  kind: functional\n  priority: must\n  status: accepted\n  accepted-by: Mat\n  accepted-on: '2026-11-03'\nlinks:\n- type: derives-from\n  to: capability-view-job-status\n- type: verified-by\n  to: acceptance-criterion-status-shown\n---\n"
    ],
    [
      "examples/ops-api-plan/risk-job-volume-growth",
      "---\nid: risk-job-volume-growth\ntype: risk\ntitle: Job volume growth\nplane: pln--plan\nfields:\n  likelihood: medium\n  impact: high\n  mitigation: Recount nightly jobs every month\n  state: open\nlinks:\n- type: owned-by\n  to: team-platform\n- type: about\n  to: assumption-job-volume\n- type: arises-from\n  to: assumption-job-volume\n---\nIf job volume grows past the assumption, the database may need a bigger plan.\n"
    ],
    [
      "examples/ops-api-plan/team-build-agent",
      "---\nid: team-build-agent\ntype: team\ntitle: Build agent\nplane: pln--plan\nfields:\n  kind: agent\n  focus: Implements work packages for review\n---\nAn AI agent that writes code and hands it to people to review.\n"
    ],
    [
      "examples/ops-api-plan/team-platform",
      "---\nid: team-platform\ntype: team\ntitle: Platform team\nplane: pln--plan\nfields:\n  kind: human\n  focus: Builds and runs the platform\n---\nThe people who own the system.\n"
    ],
    [
      "examples/ops-api-plan/work-package-report-job",
      "---\nid: work-package-report-job\ntype: work-package\ntitle: Report job and database\nplane: pln--plan\nfields:\n  status: planned\nlinks:\n- type: owned-by\n  to: team-platform\n- type: delivers\n  to: component-ops-report\n- type: delivers\n  to: datastore-ops-db\n- type: part-of\n  to: increment-live-status\n---\nBuild the database and the nightly job that reads it.\n"
    ],
    [
      "examples/ops-api-plan/work-package-status-api",
      "---\nid: work-package-status-api\ntype: work-package\ntitle: Status API\nplane: pln--plan\nfields:\n  status: planned\nlinks:\n- type: owned-by\n  to: team-build-agent\n- type: reviewed-by\n  to: team-platform\n- type: delivers\n  to: component-ops-api\n- type: delivers\n  to: interface-ops-api\n- type: part-of\n  to: increment-live-status\n---\nBuild the service that serves job status.\n"
    ]
  ]
}
