Governance executor

From RHEcosystemAppEng/agentic-plugins · View interactive version

Governance executor is an AI agent skill from the GitHub repository RHEcosystemAppEng/agentic-plugins. Orchestrates governed job execution with risk analysis, check mode, approval, and rollback. Use when: - "Execute job template X", "Deploy to production", "Push to prod", "Launch job template" - Any execution request targeting sensitive environments - Job template launches requiring governance contro

How to use this skill

Skill file

Governance Executor

Prerequisites

Required MCP Servers: aap-mcp-job-management, aap-mcp-inventory-management

Required Skills: aap-mcp-validator, execution-risk-analyzer, governed-job-launcher, execution-summary

When to Use This Skill

Use this skill when:

Do NOT use when:

Workflow

1. Validate MCP Connectivity

Invoke the aap-mcp-validator skill:

2. Analyze Execution Risk

Invoke the execution-risk-analyzer skill:

Document Consultation (performed by the skill):

The execution-risk-analyzer skill reads execution-governance.md and reports its consultation.

If secrets detected: STOP. Report the finding and recommend using AAP credentials.

3. Execute Governed Launch

Invoke the governed-job-launcher skill:

Human Confirmation (REQUIRED for CRITICAL/HIGH):

If failure: Offer rollback options via jobs_relaunch_create.

4. Generate Execution Summary

Invoke the execution-summary skill:

Dependencies

Required Skills

Required MCP Servers

Required MCP Tools

Related Skills

Reference Documentation

Example Usage

Example 1: Production Execution with Full Governance

User: "Execute the security patch on production"

Agent:

  1. Validates MCP connectivity via aap-mcp-validator
  2. Invokes execution-risk-analyzer:
  1. Reports risk analysis to user with Red Hat citations
  2. Invokes governed-job-launcher:
  1. Invokes execution-summary with full audit trail

Example 2: Low-Risk Development Execution

User: "Launch the dev-setup template"

Agent:

  1. Validates MCP connectivity
  2. Invokes execution-risk-analyzer: "Development" inventory → LOW risk, clear job history
  3. Reports: "Low risk execution, direct execution permitted."
  4. Invokes governed-job-launcher: executes directly, reports results
  5. Invokes execution-summary

Critical: Human-in-the-Loop Requirements

  1. Before full execution (CRITICAL/HIGH risk): Present check mode results, wait for approval
  2. Between rollout phases (CRITICAL risk): Present phase results, wait for approval
  3. Before rollback: Present failure summary, let user choose rollback strategy
  4. Never skip check mode for CRITICAL risk, even if user says "urgent"
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.