Doc verifier

From Tibsfox/gsd-skill-creator · View interactive version

Doc verifier is an AI agent skill from the GitHub repository Tibsfox/gsd-skill-creator. Guidance for verifying documentation accuracy against running OpenStack infrastructure. Use when detecting documentation drift, validating operations procedures against live systems, or confirming that runbooks produce expected results on the deployed cloud. Implements NASA Product Verification (SP-

How to use this skill

Skill file

Documentation Verifier

This skill guides agents performing documentation verification for cloud infrastructure. Documentation drift -- the gap between what docs say and what the system does -- is the primary failure mode for operations manuals. The doc-verifier detects drift using NASA's TAID (Test, Analysis, Inspection, Demonstration) verification methods applied to documentation artifacts.

Documentation drift is insidious because it compounds silently. A single undetected drift item erodes operator trust. Once operators stop trusting documentation, they stop reading it and start improvising. The doc-verifier breaks this cycle by making verification systematic and repeatable.

Drift Detection Methods

Four categories of documentation drift exist, each with distinct detection strategies.

Configuration Drift

Definition: Document says setting X=A but the running system has X=B.

Detection strategy:

  1. Parse documented configuration values from procedures (grep for =, :, or YAML key-value patterns)
  2. Read actual configuration files (/etc/kolla/*/ for Kolla-Ansible deployments, globals.yml)
  3. Query API for runtime configuration where available (openstack configuration show)
  4. Compare documented values against actual values
  5. Flag mismatches with severity based on operational impact

Common sources: Kolla-Ansible globals.yml changes, service reconfiguration, security hardening, upgrades.

Detection patterns:

Endpoint Drift

Definition: Document references a URL, port, or API endpoint that has changed or is unreachable.

Detection strategy:

  1. Extract documented endpoints (URLs, host:port patterns, API paths)
  2. Verify reachability using non-destructive probes (curl -s -o /dev/null -w "%{http_code}")
  3. Verify service catalog entries match documented endpoints (openstack endpoint list)
  4. Check port availability where direct HTTP probes are inappropriate

Common sources: TLS migration (HTTP to HTTPS), port changes, VIP address changes, service catalog updates.

Procedure Drift

Definition: Documented steps no longer produce the documented results.

Detection strategy:

  1. Parse procedure steps to extract commands and expected output
  2. Execute read-only commands against the running system
  3. Compare actual output to documented expected output
  4. For destructive commands, verify preconditions and rollback sections exist without executing

Common sources: CLI argument changes across OpenStack releases, output format changes, deprecated subcommands, renamed resources.

Detection patterns:

Version Drift

Definition: Document references a software version that has been upgraded or changed.

Detection strategy:

  1. Extract version references from documentation (OpenStack release names, package versions, container image tags)
  2. Compare against installed versions (openstack versions show, rpm -qa | grep openstack, docker image ls)
  3. Check Kolla-Ansible container image tags against documented tags
  4. Flag version mismatches with assessment of whether procedures are still valid for the new version

Common sources: OpenStack minor releases, Kolla container rebuilds, base OS updates, Python package updates.

Verification Methods (TAID Applied to Documentation)

NASA SP-6105 SS 5.3 defines four verification methods. Applied to documentation verification:

Test

Execute documented commands and compare output to documented expected results.

Approach:

Comparison strategies:

Analysis

Compare documented configuration values against running configuration without executing commands.

Approach:

Targets: globals.yml, service .conf files, policy files, network configurations, certificate parameters.

Inspection

Review documentation structure for completeness against the required format.

Checklist for operations procedures (OPS-* format):

Checklist for runbooks (RB-* format):

Demonstration

Walk through an end-to-end documented scenario and confirm each step works as described.

Approach:

Demonstration scenarios (non-destructive):

Automated Verification Framework

Script Structure

For each documented procedure, build a verification script:

INPUT:  Procedure document (Markdown)
PARSE:  Extract (command, expected_output) pairs
FILTER: Remove destructive commands (create, delete, set, update, migrate)
RUN:    Execute read-only commands against running system
COMPARE: Actual vs documented using appropriate strategy
REPORT: Per-procedure pass/fail with specific drift items

Drift Severity Classification

| Severity | Definition | Example |

|----------|-----------|---------|

| Critical | Procedure will fail if followed as written | Documented command uses deprecated flag; documented port is wrong |

| Warning | Procedure works but output differs from documentation | Column headers changed; additional fields in output |

| Info | Cosmetic differences that do not affect procedure outcome | Timestamp format change; UUID casing difference |

Reporting Format

Each verification run produces a report:

VERIFICATION REPORT
Date: [ISO timestamp]
System: [hostname, OpenStack version]
Scope: [which documents were verified]

RESULTS:
  Procedures verified: [N]
  Pass: [N]
  Fail: [N] (Critical: [N], Warning: [N], Info: [N])

DRIFT ITEMS:
  1. [CRITICAL] OPS-NOVA-003 Step 4: 'openstack server create --nic'
     Expected: "net-id" parameter
     Actual: "network" parameter (changed in Zed release)
     Fix: Update command in procedure

  2. [WARNING] RB-KEYSTONE-001 Step 2: 'openstack token issue'
     Expected: 4 columns in output
     Actual: 5 columns (project_domain_id added)
     Fix: Update expected output in runbook

Verification Workflow

Step 1: Inventory. Scan docs/operations-manual/ and docs/runbooks/ for all documented procedures. Build a registry of procedure IDs, commands, and expected outputs.

Step 2: Extract assertions. For each procedure, extract verifiable assertions: commands paired with expected outputs. Tag each assertion as read-only or destructive.

Step 3: Execute read-only assertions. Run all read-only commands against the running system. For destructive commands, verify only that preconditions and rollback sections exist.

Step 4: Compare. Match actual output to documented output using the appropriate comparison strategy (exact, pattern, presence, subset).

Step 5: Report. Generate verification report with drift items classified by severity. Flag Critical items for immediate documentation update.

Step 6: Update metadata. For verified documents, update LAST VERIFIED date and system version. For documents with Critical drift, mark as UNVERIFIED with drift details.

Safety Constraints

Doc Sync Loop Integration

The doc-verifier operates on the doc-sync communication loop (Priority 4) within the GSD communication framework.

Message flow:

  1. SURGEON detects system change (config update, upgrade, service restart) via the health loop
  2. SURGEON sends drift alert to doc-sync loop
  3. Doc-verifier receives alert, runs targeted verification against affected procedures
  4. Doc-verifier reports drift findings to FLIGHT via doc-sync loop
  5. FLIGHT directs EXEC-docs to update affected documentation
  6. Updated documentation is re-verified before publication

Trigger conditions:

Cross-References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.