validation-supervision
它能做什么
这项技能管理 Firstmate 中对已完成代码更改的自动化验证运行。适合希望代码在发布前得到检查、并希望避免检查过程中范围蔓延的人。
适用场景
- ✓当代码更改已准备就绪、应当启动自动化验证运行的时候。
- ✓当验证运行过程中出现新需求的时候。
- ✓当验证运行提出需要决定的问题时。
技能链接
https://github.com/kunchenguid/firstmate/blob/main/.agents/skills/validation-supervision/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请对我已完成的更改启动验证检查,并把任何新想法发到后续任务中,而不是放在这个任务里。”
每周 5 个新技能,1 分钟读完。
工作原理
工作者启动验证运行,并逐个推进各个关卡。新的需求通常会成为后续工作,而为保持已商定行为正确所需的修复则留在当前任务中。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Validation supervision
For a no-mistakes ship, trigger validation on the same worker after its implementation commit, using the harness invocation owned by harness-adapters.
The task worker that starts a no-mistakes run drives the pipeline and owns every no-mistakes axi run and no-mistakes axi respond call through the next gate or outcome.
Firstmate never invokes no-mistakes axi respond for a crew-owned run.
bin/fm-dod-lib.sh owns the worker-side --intent contract.
Once validation starts, prefer routing new requirements to follow-up work rather than expanding the current task, unless a new requirement completely invalidates the work being validated; however, the smallest downstream changes needed to keep already accepted product or engineering behavior correct, add behavioral tests where an executable contract exists, or keep documentation accurate remain within the current task even when they touch files not named at intake, and corrections required to satisfy already accepted intent are not new requirements.
Only a current, explicit captain instruction that completely invalidates the work being validated keeps the task with the same worker instead of routing it to follow-up work or handing it to a replacement.
That worker cancels the active run through no-mistakes axi's supported abort command and confirms through axi status that the run has stopped before changing any code.
The worker then follows branch_sync.next_action from structured axi status: use axi sync's supported guarded recovery only when its code is recover_custody, and otherwise proceed only when structured status confirms that branch ownership is already returned and no recovery is required.
Custody recovery settles branch ownership, not content: the worker must replace the obsolete work from the correct pre-invalidation base rather than building on top of the recovered-but-obsolete head, keeping the obsolete run's own pipeline-fix commits out of what gets validated and shipped.
Apart from that single supported abort, do not hand-edit, commit, restart, or start a second validation run while the obsolete run still owns the branch.
Once ownership is settled, validate exactly once against that final head so no obsolete or intermediate head is ever treated as authoritative.
An ask-user finding returns as needs-decision; firstmate loads ask-user-authority and either decides or escalates per that skill.
Send the same worker one exact decision naming the decision key, step, action, affected finding IDs, instructions where needed, and exact response command, passing --resolve-key so the worker's open decision record closes at answer time.
Require the matching resolved event, forbid --yes, and require the worker to process every synchronous return until completion or a genuinely new escalation.
Resume fleet supervision immediately after the decision lands.
Judge validation by the resolved state line from bin/fm-crew-state.sh, whose header owns outcome mappings and CI-monitor/daemon exceptions, never by shell liveness, the last status event, or a raw run record.
Workers parked at approval or fix-review must follow the active gate help.
A worker hand-editing, committing, aborting, or restarting during an active validation run duplicates pipeline ownership outside the supersession sequence above; steer it back to the gate response flow.
The worker reports the PR when CI first becomes green rather than waiting for merge monitoring to finish.
常见问题
新的需求会改变当前任务吗?
只有在明确的指令使所验证的工作完全失效时才会。
谁来回答验证中的问题?
工作者会把问题上报以供决定,智能体不会自行回答。
验证运行可以停止吗?
可以,使用受支持的中止命令即可,并且在任何更改之前都会确认停止。
详情
作者的原始描述
Load when a ship starts or already has an active no-mistakes validation run, including a mid-run requirement change or finding, and before deciding or answering any ask-user finding.
repo: kunchenguid/firstmate
热度
- GitHub 星标
- 8.5k
- 排名
- #12450
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …