mcpField
A
agent-runtime-governance

agent-runtime-governance

github.com/wyattowalshAgent workflows537 installsUpdated 8w ago
Repository

About agent-runtime-governance

Agent Runtime Governance is a skill for designing and auditing controls in agents that use tools, memory, approvals, subagents, evaluations, or external systems. It organizes work into modes such as permissions, memory, rollout, and incident response, with an emphasis on enforceable controls and operational evidence.

Key features

  1. 01Design and audit runtime policies
  2. 02Define tool permissions and approval gates
  3. 03Set memory scope and retention rules
  4. 04Plan regression and adversarial evaluations
  5. 05Specify rollout, rollback, and monitoring
  6. 06Define incident containment and recovery

Use cases

  1. 01Governing a new tool-using agent
  2. 02Auditing approvals, memory, and telemetry
  3. 03Planning a production rollout with rollback criteria
  4. 04Preparing containment controls for agent failures

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/wyattowalsh/agents --skill agent-runtime-governance

After installing, type/agent-runtime-governancein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

evals/
evals.json
references/
control-matrix.md
rollout-governance.md
scripts/
check.py
scripts/asset_toolkit/
__init__.py
_shared.py
common.py
package.py
validate_evals.py
validate_hooks.py
validate_skill.py

Details

From the project README

Agent Runtime Governance

Design and audit the controls that keep tool-bearing agent systems predictable, observable, and safe to operate.

Scope: Runtime governance for agents that use tools, memory, approvals, subagents, evals, or external systems. NOT for generic vulnerability scanning (security-scanner), normal code review (review), prompt-only optimization (prompt-engineer), or MCP implementation details (mcp-creator).

Dispatch

$ARGUMENTSModeAction
EmptymenuShow governance modes and required inputs
design <system>designDefine runtime policies for a new or changing agent system
audit <path-or-system>auditReview existing tool, approval, memory, telemetry, and eval controls
permissions <agent-or-tools>permissionsDesign allowlists, denylists, approval modes, and escalation rules
memory <agent-or-system>memoryDefine memory scope, retention, privacy, and invalidation policy
evals <workflow>evalsPlan regression, adversarial, and runtime acceptance eval loops
rollout <system>rolloutDefine staged release, monitoring, rollback, and operator readiness controls
incident <failure-mode>incidentDefine containment and recovery controls for agent failures
Natural language about agent tools, permissions, memory, evals, or containmentAuto-detect the closest mode

Governance Surfaces

SurfaceReview Questions
ToolsWhich tools can read, write, spend money, deploy, message users, or delete data?
ApprovalsWhich operations require explicit user approval or human review?
MemoryWhat can be stored, for how long, and at what scope?
StateWhat is durable, replayable, idempotent, and auditable?
TelemetryWhich traces, decisions, tool calls, and failures are observable?
EvalsWhich scenarios prevent regression before rollout?
ContainmentHow does the system stop, rollback, quarantine, or degrade safely?

Canonical Vocabulary

Use these canonical terms exactly when producing governance reports.

TermMeaning
tool consequenceThe real-world effect a tool call can have: read, write, deploy, message, spend, delete, or expose
approval gateExplicit human or policy checkpoint before a higher-risk action
runtime guardHook, wrapper, allowlist, denylist, test, or platform policy that enforces a governance rule
memory boundaryScope, retention, redaction, and invalidation policy for stored agent context
containmentStop, rollback, quarantine, or degrade action after unsafe or failed behavior
shadow modeRuntime mode that records proposed actions without executing them

Classification Gate

Classify the request before choosing a mode:

  1. If it asks for app vulnerability scanning, route to security-scanner.
  2. If it asks for code review, route to review.
  3. If it asks for prompt wording only, route to prompt-engineer.
  4. If it asks how to implement an MCP server, route to mcp-creator.
  5. Otherwise, choose the closest runtime governance mode from the dispatch table.

Workflow

  1. Define the agent’s job, users, data sensitivity, and external effects.
  2. Inventory tools by capability: read-only, write, destructive, financial, deploy, messaging, credential access, and network egress.
  3. Map approval gates to consequence, reversibility, and confidence.
  4. Define memory scope, retention, redaction, and invalidation rules.
  5. Require telemetry for tool calls, decisions, approval outcomes, and failures.
  6. Build evals around unsafe tool use, stale memory, missing approval, and failure containment.
  7. Define rollout gates, rollback criteria, and operator evidence for changes that affect live users, accounts, credentials, or external systems.
  8. Return a governance matrix with owners and enforcement points.

Scaling Strategy

ScopeStrategy
Single agent or workflowProduce one control matrix and one eval/monitoring set
Multiple agents sharing toolsGroup by tool consequence and shared approval gates
Platform-wide governanceDefine baseline policy first, then exceptions by agent class
Live production rolloutAdd staged rollout, rollback, monitoring, and owner review gates

Progressive Disclosure

  • Start with this SKILL.md for routing and control surfaces.
  • Read references/control-matrix.md for permissions, memory, telemetry, and eval controls.
  • Read references/rollout-governance.md only when release, rollback, monitoring, or production readiness is in scope.
  • Do not load security, prompt, or MCP implementation references unless routing redirects to those skills.

Reference File Index

FileRead When
references/control-matrix.mdDesigning or auditing runtime control surfaces
references/rollout-governance.mdPlanning staged release, rollback, monitoring, and operator readiness

Output Shape

## Agent Governance Report

- System:
- Mode:
- Risk tier:

### Control Matrix
| Surface | Current | Required | Enforcement | Evidence |
|---|---|---|---|---|

### Required Changes
- ...

### Evals And Monitoring
- ...

### Rollout And Containment
- ...

Critical Rules

  1. Classify tools by consequence before recommending autonomy.
  2. Require explicit approval for irreversible, costly, public, credential, or destructive actions.
  3. Keep memory scope narrow and document retention, redaction, and invalidation.
  4. Require telemetry for tool calls, approvals, denials, failures, and containment actions.
  5. Add evals for unsafe tool use, missing approval, stale memory, and rollback behavior.
  6. Separate policy from enforcement; name the hook, wrapper, test, or runtime gate that enforces each rule.
  7. Do not replace security-scanner, review, prompt-engineer, or mcp-creator; route to them when the request is outside runtime governance.
  8. Do not mark a governance change ready without rollout, rollback, and monitoring criteria.

Validation Contract

Run from this skill directory before declaring changes complete:

python scripts/check.py

Completion criteria:

  1. scripts/check.py exits 0.
  2. No portable-CLI violations remain under this skill directory.
  3. Smoke review covers explicit, implicit, rollout, and negative-control prompts.

Comments

Markdown supported