Active

TMM Created

Check Mode Change Control

See the impact before you commit


Description

A change process creates a change request in ServiceNow and fires the automation orchestrator webhook. AAP runs the multi-domain change in check mode - nothing is applied, and the playbook publishes per-domain impact via set_stats. An AI impact analyst scans the check-mode output and writes a detailed work note, pushed to the change request through the Update SNOW Change job template. After the human approval step, the approved path runs the same playbook for real, an AI close-out analyst scans what actually happened against the check-mode prediction, and the results are pushed to ServiceNow, which also closes the change request. The rejected path pushes a work note recording the operator's rejection - no system touched.

Why it matters

  • Check mode makes the whole multi-domain change run as a dry run first - every task reports what it would change, and nothing is modified.
  • The AI impact analyst reads the real dry-run artifacts published by the playbook, so the report shows actual per-domain impact, not a guess.
  • The approval decision happens where the context is - the impact report is attached to the change request before the approval step fires.
  • One playbook, two job templates - check and run - keeps the dry run and the real run byte-for-byte identical.
  • All ServiceNow writes go through job templates, the same pattern the Ticket Enrichment demo uses - AI agents never touch the ITSM directly.

AO building blocks

Automation orchestrator step types this workflow uses on the canvas. See all building blocks

Interactive Experience

Coming soon

Workflow

flowchart LR
  A@{ img: "https://ansible-tmm.github.io/aap-orchestrator-demos/assets/icons/glossary/webhook-trigger.svg", label: "Change Process Initiation", pos: "b", h: 96, constraint: "on" } --> B@{ img: "https://ansible-tmm.github.io/aap-orchestrator-demos/assets/icons/launch-aap-job-template.png", label: "Run Change in Check Mode", pos: "b", h: 96, constraint: "on" }
  B --> C@{ img: "https://ansible-tmm.github.io/aap-orchestrator-demos/assets/icons/task-agent.png", label: "AI Impact Analyst", pos: "b", h: 96, constraint: "on" }
  C --> D@{ img: "https://ansible-tmm.github.io/aap-orchestrator-demos/assets/icons/launch-aap-job-template.png", label: "Push Impact Work Note", pos: "b", h: 96, constraint: "on" }
  D --> E@{ img: "https://ansible-tmm.github.io/aap-orchestrator-demos/assets/icons/approval-node.png", label: "Approve Change Execution", pos: "b", h: 96, constraint: "on" }
  E -->|Approved| F@{ img: "https://ansible-tmm.github.io/aap-orchestrator-demos/assets/icons/launch-aap-job-template.png", label: "Run Change for Real", pos: "b", h: 96, constraint: "on" }
  F --> G@{ img: "https://ansible-tmm.github.io/aap-orchestrator-demos/assets/icons/task-agent.png", label: "AI Close-Out Analyst", pos: "b", h: 96, constraint: "on" }
  G --> H@{ img: "https://ansible-tmm.github.io/aap-orchestrator-demos/assets/icons/launch-aap-job-template.png", label: "Push Close-Out and Close Change", pos: "b", h: 96, constraint: "on" }
  E -->|Rejected| I@{ img: "https://ansible-tmm.github.io/aap-orchestrator-demos/assets/icons/launch-aap-job-template.png", label: "Push Rejection Work Note", pos: "b", h: 96, constraint: "on" }
  classDef noBorder fill:transparent,stroke:transparent
  class A,B,C,D,E,F,G,H,I noBorder

Switch routing

Decision Condition Action
approved Reviewer approves after reading the impact report Run the multi-domain change for real → AI scans the result → push close-out work note → close change request (Closed)
rejected Reviewer rejects after reading the impact report Push a work note recording the operator's rejection - no system touched

Playbooks

Playbook What it does Runs on
multi_domain_change.yml Runs the multi-domain change (package, sysctl config, service) and publishes per-domain impact via set_stats. Registered as both the Check and Apply job templates. All in-scope hosts (web, db, loadbalancer)
update_snow_change.yml Looks up the change request sys_id and PATCHes it with the work note passed by the workflow; sets state 3 (Closed) on the approved path. localhost (ServiceNow REST)
simulate_change_process.yml Creates the change request in ServiceNow and fires the automation orchestrator webhook to initiate the check-mode change control workflow. localhost (ServiceNow + automation orchestrator APIs)

Demo ideas

  • {"Run the Simulate - Change Process Initiation job with scenario_list"=>"standard and watch the check-mode impact report land on the change request"}
  • Approve at the gate and compare the check-mode and real-run job outputs in AAP
  • Read the close-out work note - prediction versus reality, scanned by the AI close-out analyst
  • {"Run scenario_list"=>"high_risk to show a higher-risk impact report, then manually reject at the approval gate (AI recommendation does not auto-reject)"}
  • Inspect a host after a check-mode run to prove nothing changed, then again after the approved apply