let s = import "../schema.ncl" in

s.Domain & {
  id          = "provisioning",
  name        = "Provisioning",
  repo_kinds  = ["DevWorkspace", "Mixed"],
  description = "Infrastructure workspace and platform commands for DevWorkspace and Mixed projects.",
  short_alias = "prov",
  required_extensions = [],

  commands = [
    { id = "state",                         description = "Current FSM position across all dimensions" },
    { id = "next",                          description = "Next valid transitions with blockers and catalysts" },
    { id = "validate <decision>",           description = "Check a decision against ontological invariants" },
    { id = "connections",                   description = "Upstream and downstream project dependency graph" },
    { id = "gates",                         description = "Membrane status and opening conditions" },
    { id = "card",                          description = "Workspace card — identity, clusters, status (DevWorkspace only)" },
    { id = "capabilities",                  description = "Platform capabilities from manifest" },
    { id = "backlog [--priority]",          description = "Backlog items filtered by High|Medium|Low (platform only)" },
    { id = "backlog show <id>",             description = "Full detail of a backlog item" },
  ],

  pages = [
    { id = "provisioning", route = "/<slug>/provisioning", title = "Provisioning (State · Connections · Gates)", template = "provisioning", nav_label = "Provisioning" },
  ],
}
