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

s.Domain & {
  id          = "personal",
  name        = "Personal Ontology",
  repo_kinds  = ["PersonalOntology"],
  description = "Career history, CFP pipeline, opportunities, and content tracking for PersonalOntology projects.",
  required_extensions = ["career", "personal"],
  short_alias         = "personal",

  commands = [
    { id = "projects",                       description = "Project portfolio — Project-level nodes from core.ncl" },
    { id = "projects show <id|idx>",         description = "Full detail of a project node" },
    { id = "state",                          description = "Current FSM position across all dimensions" },
    { id = "next",                           description = "Next valid transition per dimension with blocker/catalyst" },
    { id = "validate <decision>",            description = "Check a decision against ontological invariants" },
    { id = "audit",                          description = "Coherence audit: tensions without practices, axioms without project links" },
    { id = "career skills [--tier]",         description = "Skills sorted by proficiency, filtered by Expert|Advanced|Intermediate|Foundational" },
    { id = "career talks [--status]",        description = "Talks filtered by Idea|Proposed|Accepted|Delivered|Archived" },
    { id = "career publications",            description = "Publication cards sorted by order, --featured for featured only" },
    { id = "career positioning",             description = "Positioning strategies with core message" },
    { id = "content [--status]",             description = "Content pipeline filtered by Idea|Draft|Review|Published|Archived" },
    { id = "opportunities [--status]",       description = "Opportunities filtered by Watching|Evaluating|Active|Submitted|Closed" },
    { id = "opportunities show <id>",        description = "Full detail of a single opportunity" },
    { id = "opportunities update <id>",      description = "Update opportunity status in .ontoref/ontology/personal.ncl" },
    { id = "cfp [--stage]",                  description = "CFP pipeline filtered by Watching|Evaluating|Drafting|Submitted|Accepted|Declined|Delivered" },
    { id = "cfp show <id>",                  description = "Full detail of a single CFP item" },
    { id = "cfp update <id> --stage <s>",   description = "Update CFP stage in reflection/backlog.ncl" },
  ],

  pages = [
    { id = "personal", route = "/<slug>/personal", title = "Personal (Content · Opportunities · CFP)", template = "personal", nav_label = "Personal" },
    { id = "career",   route = "/<slug>/career",   title = "Career (Skills · Experience · Talks)",     template = "career",   nav_label = "Career" },
  ],
}
