← All seeds & suites
coa ADL 0.5.1 Defense & Staff Planning

COA Planner

Structured staff course-of-action planning workspace enforcing essential task coverage, assumption tracking, weighted scoring criteria, and commander decision gates.

Resources (8)
plan, task, assumption, criterion, course, score, risk, decision
Roles (5)
decision_maker, lead, observer, planner, admin
Features (9)
suitepermissionsstate_machinevalidationrules_engineviewsaudithistory_eventsindexes

A structured staff-planning workspace. coa-planner.infinity-sdg.com. An Infinity Software Development Group product built on Kalos/ADL.

plan: receipt → analysis → COA development → comparison → decided → published
  tasks · facts & assumptions · criteria · courses of action → scores · risks · decision record

The product is for any organization that plans under time pressure: emergency management, defense staffs, utilities, and large-event operations.

What it enforces

The rules below are enforced on the server, so no screen or API call can skip them.

  • No course-of-action development before the essential tasks are written.
  • No comparison without criteria and at least two ready courses of action.
  • AI-drafted courses of action need a human. Each one must name the model that drafted it, and it counts only after a named person has reviewed it.
  • Only ready courses of action are scored. Each scores 1–5 per weighted criterion, with a rationale.
  • A plan is decided only by an approved decision record, which captures who decided, which course of action and why. Deciding with unvalidated assumptions is allowed but flagged.
  • Major risks need a mitigation.
  • Superseded decisions stay on record.
  • Every change is audited with the old and new values, who made it and when. Plans and decisions also appear in a readable history timeline.

Resources

plan · task · assumption · criterion · course · score · risk · decision

Views: planBoard (late plans highlighted), aiDraftedCourses, openAssumptions. Roles: planner, lead, decision_maker, observer, admin.

Demo data

A regional emergency-management staff with 10 planning efforts: hurricane supply distribution, flood evacuation, winter-storm warming centers, power restoration, wildfire shelters and more.

  • Stages: four are decided (one published), three are in comparison with a draft decision, and three are still developing courses of action.
  • Courses of action: every plan has one written by staff and one AI-drafted and reviewed by a named planner.
  • Hurricane plan: this one is fully worked, with four weighted criteria and a scored comparison.
  • Superseded drafts: three decided plans carry an earlier draft decision that was superseded after new information.

Regenerate the seed with python3 seeds/gen_seed.py.

Run it

This repo runs on a Kalos checkout, as one of its *.infinity-sdg.com sub-domain sites.

export KALOS_REPO=~/kalos        # defaults to ../kalos beside this repo
scripts/kalos.sh validate        # static checks (adlref + config + seed)
scripts/kalos.sh start           # certs + fresh DB + kalosd on :9208
scripts/kalos.sh verify          # boot, seed, exercise over TLS, stop

Sign in as admin / Admin123!, or as planner1, lead1, director1 or observer1 / Demo123!.

Domain Resource Summary

ResourcePurpose & Lifecycle
planOne planning effort, from receipt of the problem to a published decision. (States: receipt, analysis, coa_development, comparison, decided, published)
taskA task from mission analysis: specified (given), implied (deduced) or essential (must be done).
assumptionA fact (verified) or assumption (believed true, must be checked) the plan rests on.
criterionAn evaluation criterion with its weight (1–5).
courseA course of action. Staff-written or AI-drafted; an AI draft records its model and must be reviewed by a named person before it is ready. (States: draft, ready, selected, rejected)
scoreOne course of action scored (1–5) against one criterion, with the reason.
riskA risk to the plan or to one course of action, with its mitigation.
decisionThe decision record: which course of action, who decided, and why. (States: draft, approved, superseded)
Inspect domain.yaml (387 lines)
# coa-planner/backend/domain.yaml
#
# COA Planner — a structured staff-planning workspace.
#
#   plan (receipt → analysis → COA development → comparison → decided → published)
#     tasks (specified / implied / essential) · facts & assumptions · criteria
#     courses of action (staff or AI-drafted) → scores per criterion → risks
#     decision record (who decided, which COA, why)
#
# The rules keep the process honest: no COA development before the essential
# tasks are written, no comparison with fewer than two ready COAs, no
# AI-drafted COA reaches "ready" until a named person has reviewed it, scores
# only for ready COAs, and a plan is decided only by an approved decision.
#
# An ISDG product for any organization that plans under time pressure:
# emergency management, defense staffs, utilities, large-event operations.
# query() filter keys are single lowercase words.

domain:
  name: coa
  version: "1.0.0"
  description: >
    Staff planning: mission analysis, facts and assumptions, courses of
    action, weighted comparison and decision records, with AI-drafted
    content that a human must review before it counts.

  resources:

    plan:
      description: "One planning effort, from receipt of the problem to a published decision."
      object:
        id:           { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
        code:         { type: string, required: true, unique: true, maxLength: 24 }
        title:        { type: string, required: true, maxLength: 200 }
        situation:    { type: text, required: true }
        decisionMaker: { type: string, required: true, maxLength: 100 }
        receivedOn:   { type: date, required: true }
        decisionDue:  { type: date, required: true }
        status:       { type: string, required: true, default: receipt }
      validation:
        dueAfterReceipt:
          rule: "decisionDue == null || receivedOn == null || decisionDue >= receivedOn"
          message: "A decision cannot be due before the problem was received."
      stateMachine:
        field: status
        initial: receipt
        states:
          receipt:
            transitions:
              begin_analysis: { to: analysis, guards: [planner, lead, admin] }
          analysis:
            transitions:
              develop: { to: coa_development, guards: [lead, admin] }
          coa_development:
            transitions:
              compare: { to: comparison, guards: [lead, admin] }
          comparison:
            transitions:
              decide: { to: decided, guards: [decision_maker, admin] }
          decided:
            transitions:
              publish: { to: published, guards: [lead, admin] }
          published: {}
      permissions:
        list:   [planner, lead, decision_maker, observer, admin]
        get:    [planner, lead, decision_maker, observer, admin]
        create: [lead, admin]
        update: [lead, planner, decision_maker, admin]
        delete: [admin]
      features: { audit: true }
      history:
        events:
          planAdvanced: { trigger: transition, label: "Plan {code} moved to {status}", severity: info }
      indexes:
        - { fields: [status] }
        - { fields: [decisionDue] }

    task:
      description: "A task from mission analysis: specified (given), implied (deduced) or essential (must be done)."
      object:
        id:        { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
        plan:
          type: reference
          references: "adl.coa.coa.plan"
          required: true
        kind:      { type: string, required: true, enum: [specified, implied, essential] }
        statement: { type: text, required: true }
        source:    { type: string, maxLength: 120 }
      permissions:
        list:   [planner, lead, decision_maker, observer, admin]
        get:    [planner, lead, decision_maker, observer, admin]
        create: [planner, lead, admin]
        update: [planner, lead, admin]
        delete: [lead, admin]
      features: { audit: true }
      indexes:
        - { fields: [plan] }

    assumption:
      description: "A fact (verified) or assumption (believed true, must be checked) the plan rests on."
      object:
        id:          { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
        plan:
          type: reference
          references: "adl.coa.coa.plan"
          required: true
        kind:        { type: string, required: true, enum: [fact, assumption] }
        statement:   { type: text, required: true }
        validated:   { type: boolean, required: true, default: false }
        validatedBy: { type: string, maxLength: 100 }
      validation:
        validationHasAnOwner:
          rule: "validated == false || validatedBy != null"
          message: "Say who validated this."
      permissions:
        list:   [planner, lead, decision_maker, observer, admin]
        get:    [planner, lead, decision_maker, observer, admin]
        create: [planner, lead, admin]
        update: [planner, lead, admin]
        delete: [lead, admin]
      features: { audit: true }
      indexes:
        - { fields: [plan] }

    criterion:
      description: "An evaluation criterion with its weight (1–5)."
      object:
        id:         { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
        plan:
          type: reference
          references: "adl.coa.coa.plan"
          required: true
        name:       { type: string, required: true, maxLength: 80 }
        definition: { type: text, required: true }
        weight:     { type: integer, required: true, min: 1, max: 5 }
      permissions:
        list:   [planner, lead, decision_maker, observer, admin]
        get:    [planner, lead, decision_maker, observer, admin]
        create: [lead, admin]
        update: [lead, admin]
        delete: [lead, admin]
      features: { audit: true }
      indexes:
        - { fields: [plan] }

    course:
      description: >
        A course of action. Staff-written or AI-drafted; an AI draft records
        its model and must be reviewed by a named person before it is ready.
      object:
        id:         { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
        plan:
          type: reference
          references: "adl.coa.coa.plan"
          required: true
        name:       { type: string, required: true, maxLength: 80 }
        concept:    { type: text, required: true }
        origin:     { type: string, required: true, enum: [staff, ai_draft] }
        aiModel:    { type: string, maxLength: 80 }
        reviewedBy: { type: string, maxLength: 100 }
        status:     { type: string, required: true, default: draft }
      validation:
        aiDraftsNameTheirModel:
          rule: "origin != 'ai_draft' || aiModel != null"
          message: "An AI-drafted course of action must record the model that drafted it."
      stateMachine:
        field: status
        initial: draft
        states:
          draft:
            transitions:
              ready:  { to: ready, guards: [planner, lead, admin] }
              reject: { to: rejected, guards: [lead, admin] }
          ready:
            transitions:
              select: { to: selected, guards: [decision_maker, admin] }
              reject: { to: rejected, guards: [lead, decision_maker, admin] }
          selected: {}
          rejected: {}
      permissions:
        list:   [planner, lead, decision_maker, observer, admin]
        get:    [planner, lead, decision_maker, observer, admin]
        create: [planner, lead, admin]
        update: [planner, lead, decision_maker, admin]
        delete: [lead, admin]
      features: { audit: true }
      indexes:
        - { fields: [plan] }
        - { fields: [origin] }

    score:
      description: "One course of action scored (1–5) against one criterion, with the reason."
      object:
        id:        { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
        plan:
          type: reference
          references: "adl.coa.coa.plan"
          required: true
        course:
          type: reference
          references: "adl.coa.coa.course"
          required: true
        criterion:
          type: reference
          references: "adl.coa.coa.criterion"
          required: true
        value:     { type: integer, required: true, min: 1, max: 5 }
        rationale: { type: text, required: true }
        scoredBy:  { type: string, required: true, maxLength: 100 }
      permissions:
        list:   [planner, lead, decision_maker, observer, admin]
        get:    [planner, lead, decision_maker, observer, admin]
        create: [planner, lead, admin]
        update: [planner, lead, admin]
        delete: [lead, admin]
      features: { audit: true }
      indexes:
        - { fields: [course] }
        - { fields: [criterion] }
        - { fields: [course, criterion], unique: true }

    risk:
      description: "A risk to the plan or to one course of action, with its mitigation."
      object:
        id:          { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
        plan:
          type: reference
          references: "adl.coa.coa.plan"
          required: true
        course:
          type: reference
          references: "adl.coa.coa.course"
        description: { type: text, required: true }
        probability: { type: string, required: true, enum: [unlikely, possible, likely] }
        severity:    { type: string, required: true, enum: [minor, moderate, major] }
        mitigation:  { type: text }
      validation:
        majorRisksAreMitigated:
          rule: "severity != 'major' || mitigation != null"
          message: "A major risk needs a mitigation."
      permissions:
        list:   [planner, lead, decision_maker, observer, admin]
        get:    [planner, lead, decision_maker, observer, admin]
        create: [planner, lead, admin]
        update: [planner, lead, admin]
        delete: [lead, admin]
      features: { audit: true }
      indexes:
        - { fields: [plan] }

    decision:
      description: "The decision record: which course of action, who decided, and why."
      object:
        id:        { type: uuid, primaryKey: true, protected: true, allowUserProvided: true }
        plan:
          type: reference
          references: "adl.coa.coa.plan"
          required: true
        course:
          type: reference
          references: "adl.coa.coa.course"
          required: true
        rationale: { type: text, required: true }
        decidedBy: { type: string, maxLength: 100 }
        decidedAt: { type: datetime }
        status:    { type: string, required: true, default: draft }
      stateMachine:
        field: status
        initial: draft
        states:
          draft:
            transitions:
              approve:   { to: approved, guards: [decision_maker, admin], sets: { decidedBy: $user.id, decidedAt: now() } }
              supersede: { to: superseded, guards: [lead, decision_maker, admin] }
          approved: {}
          superseded: {}
      permissions:
        list:   [planner, lead, decision_maker, observer, admin]
        get:    [planner, lead, decision_maker, observer, admin]
        create: [lead, admin]
        update: [lead, decision_maker, admin]
        delete: [admin]
      features: { audit: true }
      history:
        events:
          decisionApproved: { trigger: transition, transition: approve, severity: success }
      indexes:
        - { fields: [plan] }

  rules:

    essentialTasksBeforeCourses:
      description: "No course-of-action development until the essential tasks are written down."
      trigger: { resource: plan, events: [transition], transition: develop }
      condition: "len(query('task', { plan: $record.id, kind: 'essential' })) == 0"
      action: reject
      severity: error
      message: "Write at least one essential task before developing courses of action."

    twoCoursesToCompare:
      description: "A comparison needs at least two ready courses of action."
      trigger: { resource: plan, events: [transition], transition: compare }
      condition: "len(query('course', { plan: $record.id, status: 'ready' })) < 2"
      action: reject
      severity: error
      message: "Bring at least two courses of action to ready before comparing."

    criteriaBeforeComparison:
      description: "Comparison without criteria is opinion."
      trigger: { resource: plan, events: [transition], transition: compare }
      condition: "len(query('criterion', { plan: $record.id })) == 0"
      action: reject
      severity: error
      message: "Define evaluation criteria before comparing."

    aiDraftsNeedAHumanReview:
      description: "An AI-drafted course of action counts only after a named person reviewed it."
      trigger: { resource: course, events: [transition], transition: ready }
      condition: "$record.origin == 'ai_draft' && $record.reviewedBy == null"
      action: reject
      severity: error
      message: "Record who reviewed this AI-drafted course of action before marking it ready."

    scoreOnlyReadyCourses:
      description: "Only ready courses of action are scored."
      trigger: { resource: score, events: [create] }
      condition: "some(query('course', { id: $record.course }), c => c.status != 'ready' && c.status != 'selected')"
      action: reject
      severity: error
      message: "This course of action is not ready for scoring."

    decideOnlyWithAnApprovedDecision:
      description: "A plan is decided only by an approved decision record."
      trigger: { resource: plan, events: [transition], transition: decide }
      condition: "len(query('decision', { plan: $record.id, status: 'approved' })) == 0"
      action: reject
      severity: error
      message: "Approve a decision record first."

    unvalidatedAssumptionsAtDecision:
      description: "Deciding on unchecked assumptions is allowed, but flagged."
      trigger: { resource: plan, events: [transition], transition: decide }
      condition: "len(query('assumption', { plan: $record.id, validated: false })) > 0"
      action: warn
      severity: warning
      message: "Some assumptions are still unvalidated."

  views:

    planBoard:
      description: "Every plan, its stage and its decision deadline."
      source: plan
      permissions: [planner, lead, decision_maker, observer, admin]
      columns:
        - { field: code,        label: "Plan" }
        - { field: title,       label: "Title" }
        - { field: status,      label: "Stage" }
        - { field: decisionDue, label: "Decision due" }
        - name: late
          label: "Late"
          computed: "decisionDue < today() && status != 'decided' && status != 'published'"
          highlight:
            red: "== true"
      sort: decisionDue asc
      defaultLimit: 200

    aiDraftedCourses:
      description: "Every AI-drafted course of action and who reviewed it."
      source: course
      filter: "origin == 'ai_draft'"
      permissions: [lead, decision_maker, admin]
      columns:
        - { field: name,       label: "Course of action" }
        - { field: aiModel,    label: "Model" }
        - { field: reviewedBy, label: "Reviewed by" }
        - { field: status,     label: "State" }
      defaultLimit: 200

    openAssumptions:
      description: "Assumptions nobody has checked yet."
      source: assumption
      filter: "validated == false"
      permissions: [planner, lead, decision_maker, admin]
      columns:
        - { field: kind,      label: "Kind" }
        - { field: statement, label: "Statement" }
      defaultLimit: 200

Download seed bundle