subagent-execution-governance SKILL.md skillA

subagent-execution-governance from ooooooooooooooooooop/agent-tools is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add ooooooooooooooooooop/agent-tools/subagent-execution-governance@v0.2.0

Pins v0.2.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
ooooooooooooooooooop/agent-tools
Path
skills/subagent-execution-governance/SKILL.md
Versions recorded
5
Latest version
v0.2.0, committed Sep 1, 2026
First version recorded
Aug 23, 2026
Size
19,915 bytes
Repository stars
4
License
MIT

把子代理派发从"监督型治理"升级为"契约型治理":探查/实现/验证角色分离、契约快照(含负空间)、三级有界读取、单写者文件所有权、行动门槛替代轮次门槛、结构化 BLOCKED、token/工具/轮次预算、结构化结果回收与 repair-contract 恢复。用于派发实现型子代理(写代码/写文件类任务)、设计"谁读什么/谁写什么/何时算阻塞"的执行协议、审计子代理空转(反复探查不产出、并行写冲突、上下文膨胀)、或复盘"子代理烧了大量 token 却没产出"的会话。不用于纯问答、单轮小修改、或已有成熟任务流程的普通委派。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 子代理执行治理(Subagent Execution Governance)

> 本 skill 由一次真实实现会话审计(session-33b69ec9-1abf-454d-9555-f2d4031a9453)提炼而成。那次会话 3 小时、17 个子代理、执行层消耗 309 万输入 token(主会话 4 倍),`b21b9211` 一个子代理读了 65 个文件后仍被催"直接实现",主会话被迫 28 次 `send_message` 催促 + 8 次 `interrupt_agent`,最终目标未 complete、会话中途悬死。**根因不是"监督不够凶",而是子代理的工作边界、信息边界、写权限和退出条件没有工程化。**

## 核心原则

> 不要从"自由探索"直接走向"实现代理完全失去自主权";正确形态是 **契约驱动 + 有界自治 + 结构化升级**。
>
> 目标不是"主代理不断管子代理",而是 **系统规则让正常子代理根本不需要被管**。

失败因果链(本 skill 要打断的):

```text
任务设计错误(探查/实现不分)
  → 执行边界过宽(无限读取授权)
  → 监督不得不频繁介入(催促/中断/重派)
  → send_message / interrupt 注入上下文
  → 上下文继续膨胀 → 缓存命中率恶化 → token 爆炸
```

## 一、角色分离(Discovery → Contract → Implementation → Validation)

禁止让一个子代理同时承担"先研究、再实现、再测试"四种认知模式:

| 角色 | 读 | 写 | 产出 |
|------|----|----|------|
| **Discovery**(探查) | 自由只读 | 禁止 | 契约快照草案(≤15 条 file:line 事实) |
| **Contract Builder**(主会话) | 验证契约 | 写契约文件 | 最终契约快照(含负空间) |
| **Implementation**(实现) | 有界读取(三级) | 只写自有文件 | 代码 + 变更清单 + 状态 |
| **Validation**(验证) | 只读目标文件/测试 | 禁止(或只改测试) | 测试结果 + 差异报告 |

**主会话承担 Contract Builder 与 Orchestrator**:探查结果必须经主会话验证、确认文件无冲突、写入契约快照后,才能派实现子代理。**禁止**探查子代理直接产出实现任务。

## 二、契约快照(Implementation Contract)

每个实现子代理派发前必须有一份契约快照,包含**正空间和负空间**:

```text
GOAL:           一句话目标(可验收)
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add ooooooooooooooooooop/agent-tools/subagent-execution-governance@sha256:db3ba9c54c446be2

The line at the top of this page pins the label v0.2.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_eq6fhytjoqqdryxu.svg)](https://markdownregistry.com/a/art_eq6fhytjoqqdryxu)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Aug 23, 2026 and Sep 1, 2026, about one every 2 days.

versioncommittedcommitsizeaudit
v0.2.0 latest2026-09-01 75025e2 19,915 BA view · diff
v0.2.02026-08-28 278776e 17,309 BA view · diff
v0.1.02026-08-25 1dcadfc 15,856 BA view · diff
v0.1.02026-08-23 fc0b525 14,851 BA view · diff
v0.1.02026-08-23 8753690 14,852 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (19915 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

ooooooooooooooooooop/agent-tools · 4 stars · license MIT · pushed 2026-10-23 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_eq6fhytjoqqdryxu
GET https://markdownregistry.com/api/v1/resolve?ref=ooooooooooooooooooop/agent-tools/subagent-execution-governance
GET https://markdownregistry.com/api/v1/blob/db3ba9c54c446be2985d64654bc5f388aaddac48e2734f6ccc4e9b8296735bf9

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from ooooooooooooooooooop/agent-tools

AGENTS.md AGENTS.md file
ooooooooooooooooooop/agent-tools · AGENTS.md
git:20261022.bc4f1e5 · audit A · 4 stars
your-skill-name SKILL.md skill
ooooooooooooooooooop/agent-tools · _template/SKILL.md · 用一句中文说明这个 Skill 能做什么,以及何时应该触发它
v0.1.0 · audit A · 4 stars
AGENTS.md@dsh-config AGENTS.md file
ooooooooooooooooooop/agent-tools · dsh-config/AGENTS.md
git:20260914.0c9411e · audit A · 4 stars
llms.txt@research/agent-harness-survey-v1/changelogs/amp llms.txt file
ooooooooooooooooooop/agent-tools · research/agent-harness-survey-v1/changelogs/amp/llms.txt
git:20260921.a69e78d · audit A · 4 stars
llms.txt@research/agent-harness-survey-v1/changelogs/qoder llms.txt file
ooooooooooooooooooop/agent-tools · research/agent-harness-survey-v1/changelogs/qoder/llms.txt
git:20260921.a69e78d · audit A · 4 stars
llms.txt@research/agent-harness-survey-v1/changelogs/replit llms.txt file
ooooooooooooooooooop/agent-tools · research/agent-harness-survey-v1/changelogs/replit/llms.txt
git:20260921.a69e78d · audit A · 4 stars
chatgpt-web-bridge SKILL.md skill
ooooooooooooooooooop/agent-tools · skills/chatgpt-web-bridge/SKILL.md · 通过 chatgpt-web 的 MCP 或 REST 桥,把本地 agent 接入已登录的 ChatGPT Web。 适用于“推进/继续网页端会话”“让网页端设计、本地执行”“协作/对等推进”,以及只读拉取网页端会话/项目资料和…
git:20260921.679541d · audit A · 4 stars
clarify-before-change SKILL.md skill
ooooooooooooooooooop/agent-tools · skills/clarify-before-change/SKILL.md · 在修改前澄清范围、风险、假设与验收标准,避免误改。用于修改 Skill、AGENTS.md、项目规则、工作流规则、仓库结构、复杂代码或具有结构影响的文档,也用于优化 Skill、调整规则、重构、重组或需求不完整的场景。
git:20260828.278776e · audit A · 4 stars
decision-gates SKILL.md skill
ooooooooooooooooooop/agent-tools · skills/decision-gates/SKILL.md · 在 DSH 长程任务中为决策层加装五道防偏闸门:原始证据锚、对抗式对齐审计、跨包一致性校验、成本比对、防御自检,防止目标漂移、验收失真与摘要偏差。用于跨会话长任务、多 worker 并行、审计类任务、成本敏感任务的 checkpoint…
v0.2.0 · audit A · 4 stars
dsh-config-sync SKILL.md skill
ooooooooooooooooooop/agent-tools · skills/dsh-config-sync/SKILL.md · 把 DSH(DeepSeek Harness)的用户配置(~/.dsh 下的 AGENTS.md、settings.yaml 及可选 profiles/预设)打包成脱敏骨架并在设备间安全同步恢复,提供只读审计、显式应用与 SHA-256…
v1.0.0 · audit A · 4 stars
environment-bootstrap SKILL.md skill
ooooooooooooooooooop/agent-tools · skills/environment-bootstrap/SKILL.md · 从源仓库向其他设备或用户级 Skill 目录恢复已登记的 Codex Skill,提供只读审计、显式应用、SHA-256 校验,并且不删除目标端额外文件。用于复现 Codex 工作环境、比较已安装 Skill…
git:20260817.d6c4635 · audit A · 4 stars
evolution-proposal SKILL.md skill
ooooooooooooooooooop/agent-tools · skills/evolution-proposal/SKILL.md · 把 evolution-inbox 中的审计异常条目转化为可评审的进化提案(规则/技能/插件/路由补丁)。先做系统化问题分析(量化基线→全量聚合→根因分类→优先级排序),再用便宜模型起草、前沿模型评审、人工批准后走既有门禁固化。用于处理…
v0.3.0 · audit A · 4 stars

Every file in ooooooooooooooooooop/agent-tools

Other files named subagent-execution-governance

subagent-execution-governance SKILL.md skill
ooooooooooooooooooop/personal-ai · skills/subagent-execution-governance/SKILL.md · 把子代理派发从"监督型治理"升级为"契约型治理":探查/实现/验证角色分离、契约快照(含负空间)、三级有界读取、单写者文件所有权、行动门槛替代轮次门槛、结构化 BLOCKED、token/工具/轮次预算、结构化结果回收与…
v0.2.0 · audit A · 4 stars

Browse by kind, by grade A, or by owner.