agent-governance-lord
БесплатноБез исполняемых скриптовНе проверенLord skill for governing AI coding agents at runtime — gateway interception, agent/flow/model allowlisting, and MCP-server-as-securable. The control layer…
от majiayu000★ 31 звезда на GitHubОб этом скилле
Agent Governance Lord
[OBJ] Runtime governance for AI coding agents: intercept, allowlist, and audit every agent action.
Problem
AI agents can write, push, and deploy without human review at each step. Access control answers "can the agent do this?" — governance answers "should the agent do this?" Permission is necessary; it is not sufficient. An agent can be fully permitted and still wrong.
Rules
- [REQ] Gateway on the path. Every LLM request and MCP tool call MUST pass through
runtime/agent_gateway.py(pre-LLM + post-execution guardrails). No bypass. - [REQ] Three verdicts. Guardrails emit ALLOW / REDACT / BLOCK. Most severe wins (BLOCK > REDACT > ALLOW). Never silently drop a BLOCK.
- [REQ] Pre-LLM guardrails. Inspect outbound prompt + tool payloads BEFORE the model sees them. Catch: secret leakage, prompt injection in tool responses fed back, forbidden tool calls.
- [REQ] Post-execution guardrails. Inspect inbound response + generated code BEFORE the developer sees it. Catch: destructive commands, insecure patterns, hallucinated APIs.
- [REQ] Agent allowlist. Only agents registered in
runtime/agent_catalog.pywithstatus == ALLOWEDmay run. Unknown agent = BLOCK + alert. - [REQ] Flow allowlist. Each agent has an
allowed_flowslist. A flow not in the list = BLOCK. No blanket flow access. - [REQ] Model allowlist. Each agent has an
allowed_modelslist. A model not in the list = BLOCK. Prevents unauthorized model escalation. - [REQ] MCP-as-securable. MCP servers registered in
runtime/mcp_securable.pyas governed assets. Access via GRANT policies (USE/ADMIN/REGISTER). No ungoverned MCP server. - [REQ] Composite identity. Every agent action attributed to BOTH agent + human principal (
runtime/composite_identity.py). No anonymous agent actions. - [REQ] Audit every verdict. Every ALLOW/REDACT/BLOCK logged with agent_id, user_id, tool, reason. Tamper-evident via existing audit chain.
- [REQ] Rate limiting. Per-agent rate limits enforced at the gateway. Burst > threshold = BLOCK + cooldown.
- [REQ] Cost attribution. Per-agent cost tracked via
runtime/cost_attribution.py. Anomaly (spike/budget breach) = alert + optional throttle. - [REQ] Plan validation. Before edits, validate the agent's plan via
runtime/plan_diff_validator.py. Forbidden paths = BLOCK. File count > max = WARN. - [REQ] Diff validation. After edits, validate the git diff. Undeclared imports = WARN. Test gap = WARN. Unrelated refactor = WARN.
- [REQ] Supply-chain guard. New imports not in lockfile = WARN. External package not declared = BLOCK in strict mode.
- [REQ] Human-in-the-loop. Irreversible/destructive actions (rm, drop, force-push, deploy to prod) require explicit human approval. Gateway holds the action pending approval.
- [REQ] Rollback path. Every agent action that modifies state must have a documented rollback. No rollback = BLOCK.
- [PROHIBIT] Bypassing the gateway for "trusted" agents. All agents pass through.
- [PROHIBIT] Allowing an agent to call an ungoverned MCP server.
- [PROHIBIT] Executing a destructive action without composite identity attribution + human approval.
- [REQ] SARC enforcement sites. Implement 4 enforcement sites: Pre-Action Gate (block injection/PII/policy violations before LLM call), Action-Time Monitor (rate/cost/budget enforcement, circuit breakers), Post-Action Auditor (log, evaluate, score for reliability@k), Escalation Router (human approval, kill-switch, incident creation).
- [REQ] Agent SRE Governance v1.0. Implement SLOs, error budgets, circuit breakers, chaos engineering, trace replay, Ed25519 artifact signing, SBOMs, and OpenTelemetry for all agent deployments. Reference: Microsoft Agent Governance Toolkit.
- [REQ] Microsoft Agent Hooks. Support framework-neutral governance contracts — "deny means deny" enforceable across LangChain, CrewAI, OpenAI Agents SDK, etc.
- [REQ] MCP 2026-07-28 stateless governance. Update gateway for stateless MCP protocol. No session state assumptions. Per-request protocolVersion validation. Header-based routing (Mcp-Method, Mcp-Name).
- [REQ] Per-PR spend limits. Implement per-PR spend caps (soft block) and org-level ACU visibility. Devin enterprise pattern.
- [REQ] Enterprise MCP server allowlist. Maintain allowlist of approved MCP servers. Block ungoverned servers. Enterprise plugin governance (required/optional/forbidden plugins).
- [REQ] 5-layer control plane. Gateway Layer (auth, rate limiting, cost tracking) → Policy Layer (4-level hierarchy, fail-closed) → Observability Layer (tamper-evident audit) → Governance Layer (approvals, kill-switch, RBAC) → Integration Layer (A2A, MCP, REST, webhooks).
- [PROHIBIT] Deploying agents without SARC 4-site enforcement and Agent SRE Governance compliance.
Enforcement Stack
Agent request → AgentGateway.check_request (pre-LLM)
→ AgentCatalog.
Установить agent-governance-lord в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agent-governance-lord?
Lord skill for governing AI coding agents at runtime — gateway interception, agent/flow/model allowlisting, and MCP-server-as-securable. The control layer between an agent's decision and its real-world action.
Как установить скилл agent-governance-lord?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-governance-lord запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic