{
  "name": "sp-kit-kits-planes-lanes",
  "version": 1,
  "semanticSource": "sp-docs/hld/HLD-kit-planes-lanes-model.md",
  "summary": "Shared repo-role model that separates reusable kits, ownership planes, and lifecycle lanes across toolkit and usage repositories.",
  "definitions": [
    {
      "id": "kit",
      "label": "Kit",
      "summary": "Reusable owner or reusable system surface.",
      "detail": "A kit may be a workflow toolkit, a domain toolkit, or a toolkit-like shared system. It describes reusable ownership, not a required directory layout."
    },
    {
      "id": "plane",
      "label": "Plane",
      "summary": "Ownership context.",
      "detail": "Planes separate semantic families such as toolkit self-description, domain semantics, and repo governance."
    },
    {
      "id": "lane",
      "label": "Lane",
      "summary": "Operation or change stream.",
      "detail": "Lanes describe how a surface is authored, distributed, consumed, or visualized."
    }
  ],
  "planes": [
    {
      "id": "plane-a",
      "label": "Plane A",
      "kind": "kit plane",
      "summary": "SP workflow toolkit plane.",
      "owner": "sp-gh-copilot-kit"
    },
    {
      "id": "plane-b",
      "label": "Plane B",
      "kind": "kit plane",
      "summary": "Peer toolkit plane, currently represented by capability-modeling-toolkit in mixed repos.",
      "owner": "capability-modeling-toolkit"
    },
    {
      "id": "plane-c",
      "label": "Plane C",
      "kind": "domain plane",
      "summary": "Domain or target-project plane.",
      "owner": "usage repo or domain surface"
    },
    {
      "id": "plane-d",
      "label": "Plane D",
      "kind": "governance plane",
      "summary": "Repo-governance, sync, and publication plane.",
      "owner": "repo-local governance surfaces"
    },
    {
      "id": "shared-system-plane",
      "label": "Shared-system kit plane",
      "kind": "kit plane",
      "summary": "Reusable shared-system plane for toolkit-like systems such as sp-theme-system.",
      "owner": "sp-theme-system"
    }
  ],
  "laneFamilies": [
    {
      "id": "semantic",
      "label": "Semantic lane",
      "summary": "Own durable meaning for rules, HLDs, plans, and system contracts.",
      "verbs": ["analyze", "plan", "doc", "model", "explain"]
    },
    {
      "id": "distribution",
      "label": "Distribution lane",
      "summary": "Package or ship reusable payload into downstream repos or release bundles.",
      "verbs": ["export", "install", "update", "release", "import"]
    },
    {
      "id": "consumption",
      "label": "Consumption lane",
      "summary": "Adopt external payload or system contracts while preserving local ownership.",
      "verbs": ["adopt", "integrate", "configure", "merge"]
    },
    {
      "id": "operation",
      "label": "Operation lane",
      "summary": "Run repo-local tooling for the repo's own product or modeling purpose.",
      "verbs": ["build", "render", "publish", "test", "generate"]
    },
    {
      "id": "visualization",
      "label": "Visualization lane",
      "summary": "Produce readable atlas, guide, or derived-view surfaces from semantic truth.",
      "verbs": ["visualize", "derive", "publish"]
    }
  ],
  "lifecycleClasses": [
    {
      "id": "managed-payload",
      "label": "Managed-payload workflow toolkit",
      "requiredVerbs": ["export", "install", "update", "validate"],
      "optionalVerbs": ["import", "release"],
      "note": "Payload distribution is part of the repo's purpose."
    },
    {
      "id": "source-toolkit",
      "label": "Source toolkit lifecycle",
      "requiredVerbs": ["model", "build", "render", "publish", "test"],
      "optionalVerbs": ["export", "install", "update"],
      "note": "Managed-payload verbs are optional until the repo intentionally adds that lane."
    },
    {
      "id": "shared-system",
      "label": "Shared-system lifecycle",
      "requiredVerbs": ["publish", "version", "adopt contract"],
      "optionalVerbs": ["install", "export"],
      "note": "A clear consumer-delivery story matters more than mirroring SP verbs."
    },
    {
      "id": "consumer",
      "label": "Consumer lifecycle",
      "requiredVerbs": ["adopt", "integrate", "configure", "upgrade"],
      "optionalVerbs": ["visualize", "publish project views"],
      "note": "The repo consumes reusable systems instead of distributing them as a generic kit."
    }
  ],
  "repoTypes": [
    {
      "id": "managed-payload-workflow-toolkit",
      "label": "Managed-payload workflow toolkit",
      "examples": ["sp-gh-copilot-kit"],
      "planeIds": ["plane-a", "plane-d"],
      "laneIds": ["semantic", "distribution", "visualization", "operation"],
      "genericRootOwnership": "toolkit-owned inside the toolkit repo; target repos keep generic roots project-owned and use explicit kit roots or shared workflow roots",
      "lifecycleClassId": "managed-payload"
    },
    {
      "id": "source-toolkit",
      "label": "Source toolkit or mixed toolkit source repo",
      "examples": ["capability-modeling-toolkit"],
      "planeIds": ["plane-b", "plane-c", "plane-d"],
      "laneIds": ["semantic", "operation", "visualization"],
      "genericRootOwnership": "repo-local to that toolkit ecosystem; downstream ownership must be defined explicitly rather than borrowed from SP",
      "lifecycleClassId": "source-toolkit"
    },
    {
      "id": "shared-system-kit",
      "label": "Toolkit-like shared system repo",
      "examples": ["sp-theme-system"],
      "planeIds": ["shared-system-plane"],
      "laneIds": ["semantic", "operation", "visualization"],
      "genericRootOwnership": "repo-local reusable system ownership; consumer repos keep generic roots project-owned",
      "lifecycleClassId": "shared-system"
    },
    {
      "id": "usage-project",
      "label": "Usage or target project repo",
      "examples": ["sp-music-hero"],
      "planeIds": ["plane-c", "plane-d"],
      "laneIds": ["semantic", "consumption", "operation", "visualization"],
      "genericRootOwnership": "project-owned",
      "lifecycleClassId": "consumer"
    }
  ],
  "repositories": [
    {
      "id": "sp-gh-copilot-kit",
      "name": "sp-gh-copilot-kit",
      "repoTypeId": "managed-payload-workflow-toolkit",
      "primaryPlanes": ["plane-a", "plane-d"],
      "laneIds": ["semantic", "distribution", "visualization", "operation"],
      "verbs": ["export", "install", "update", "validate", "release"],
      "rootOwnership": "The repo itself is the toolkit. In downstream repos, generic roots stay project-owned while SP-owned convenience surfaces move into sp-kit/ or shared workflow roots.",
      "note": "This repo must keep managed-payload verbs because shipping and updating payload is part of its purpose."
    },
    {
      "id": "capability-modeling-toolkit",
      "name": "capability-modeling-toolkit",
      "repoTypeId": "source-toolkit",
      "primaryPlanes": ["plane-b", "plane-c", "plane-d"],
      "laneIds": ["semantic", "operation", "visualization"],
      "verbs": ["model", "build", "render", "publish", "test"],
      "rootOwnership": "The mixed repo owns its own generic roots. SP does not become owner of CBP or Plane C surfaces just because both toolkits can coexist.",
      "note": "Managed-payload verbs are optional here until this repo intentionally defines a generic install/update lane."
    },
    {
      "id": "sp-theme-system",
      "name": "sp-theme-system",
      "repoTypeId": "shared-system-kit",
      "primaryPlanes": ["shared-system-plane"],
      "laneIds": ["semantic", "operation", "visualization"],
      "verbs": ["publish", "version", "adopt contract"],
      "rootOwnership": "The repo owns a reusable shared system, but consumer projects keep their generic roots project-owned while adopting the system contract they need.",
      "note": "It needs a clear delivery story, but not automatically the full SP export/install/update surface."
    },
    {
      "id": "sp-music-hero",
      "name": "sp-music-hero",
      "repoTypeId": "usage-project",
      "primaryPlanes": ["plane-c", "plane-d"],
      "laneIds": ["semantic", "consumption", "operation", "visualization"],
      "verbs": ["adopt", "integrate", "configure", "upgrade"],
      "rootOwnership": "Generic roots stay project-owned. Imported toolkit convenience surfaces stay namespaced instead of taking over project roots.",
      "note": "This repo is primarily a consumer and integrator, not a generic kit distributor."
    }
  ],
  "useCases": [
    {
      "id": "music-hero-new-idea",
      "label": "New idea in sp-music-hero",
      "summary": "A product idea begins in the usage repo and only crosses into toolkit repos when the change proves reusable.",
      "steps": [
        {
          "repoId": "sp-music-hero",
          "title": "Start with a Plane A workflow read of the new idea",
          "detail": "A new practice or UX idea starts in `sp-music-hero` as Plane C product material, but the first governed move is a Plane A workflow read through `sp-analyze`, so the method is SP-owned even while the subject stays project-owned.",
          "laneId": "semantic",
          "planeId": "plane-a",
          "verbs": ["sp-analyze", "plan", "explain"]
        },
        {
          "repoId": "sp-music-hero",
          "title": "Prototype the product change in project-owned code",
          "detail": "The first implementation still lives in project-owned roots such as src or docs so the team can prove value before extracting anything reusable.",
          "laneId": "operation",
          "planeId": "plane-c",
          "verbs": ["build", "test", "publish project views"]
        },
        {
          "repoId": "sp-theme-system",
          "title": "Lift reusable shell or theming concerns into the shared system",
          "detail": "If the analyzed idea exposes a stable shell, theme, or host-integration concern, only that reusable slice moves into the shared-system plane.",
          "laneId": "consumption",
          "planeId": "shared-system-plane",
          "verbs": ["adopt contract", "publish", "version"]
        },
        {
          "repoId": "sp-gh-copilot-kit",
          "title": "Update workflow payload only when generic workflow guidance changes",
          "detail": "SP changes are justified only if the idea needs a reusable workflow rule, prompt, HLD, or visualization pattern beyond the product repo itself after the initial `sp-analyze` read.",
          "laneId": "distribution",
          "planeId": "plane-a",
          "verbs": ["doc", "export", "update", "validate"]
        },
        {
          "repoId": "capability-modeling-toolkit",
          "title": "Touch CBP only if domain-model tooling is affected",
          "detail": "CBP remains separate unless the feature introduces reusable modeling or workbook-backed semantics rather than only product behavior.",
          "laneId": "operation",
          "planeId": "plane-b",
          "verbs": ["model", "render", "publish"]
        }
      ]
    }
  ],
  "repoTrees": [
    {
      "repoId": "sp-gh-copilot-kit",
      "title": "Managed-payload workflow toolkit",
      "lines": [
        "sp-gh-copilot-kit/",
        "  .github/",
        "  codex/",
        "  sp-docs/",
        "  sp-plan/",
        "  docs/kit-site/",
        "  scripts/"
      ]
    },
    {
      "repoId": "capability-modeling-toolkit",
      "title": "Mixed toolkit source repo",
      "lines": [
        "capability-modeling-toolkit/",
        "  samples/",
        "  scripts/ps1/",
        "  scripts/py/",
        "  sp-docs/",
        "  sp-plan/"
      ]
    },
    {
      "repoId": "sp-theme-system",
      "title": "Toolkit-like shared system repo",
      "lines": [
        "sp-theme-system/",
        "  docs/",
        "  tokens/",
        "  css/",
        "  runtime/",
        "  examples/",
        "  scripts/"
      ]
    },
    {
      "repoId": "sp-music-hero",
      "title": "Usage or target project repo",
      "lines": [
        "sp-music-hero/",
        "  docs/",
        "  public/",
        "  src/",
        "  sp-docs/",
        "  sp-plan/",
        "  package.json"
      ]
    }
  ]
}
