PR 零操作自主性评估
zero-touch
用于 PR 自主性测量的『操作者零接触』(zero-touch-by-operator)规范定义。在评估、报告或标注 PR 自主性状态时使用。
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 6
- Forks
- 0
01 前言 Front Matter
- name
- zero-touch
- description
- Canonical definition of zero-touch-by-operator for PR autonomy measurement. Use when evaluating, reporting, or labeling PR autonomy status.
03 SKILL.md 正文
Zero-Touch-by-Operator
Retained review integrations
The shared catalog preserves host-installed /advice and /web-advice integrations instead of installing them. Before invoking either, resolve its ../advice/SKILL.md or ../web-advice/SKILL.md relative to this package and read the existing skill. For a remote invocation, check the corresponding skill on the target host. If absent, report that integration as UNAVAILABLE and identify the missing package; do not invent a replacement runner, claim an approval, or treat a required gate as passed. Continue independent authorized work, but leave any dependent readiness or plan-approval gate unmet. Existing review quorum, external-disclosure authorization, and optional-review rules still apply.
Definition
A PR is zero-touch when AO (Agent Orchestrator) produced a PR that completed
the applicable draft-first quality sequence and reached current-head /green
without human or terminal intervention. The audit window runs from the AO
spawn through the point immediately before the merge action; read-only status
checks are observation, not intervention. Canonical definitions live in
pr-lifecycle and pr-green-definition.
This repo requires explicit human MERGE APPROVED authorization before any
merge (see this repo's merge-safety policy) — that authorization step, and the
gh pr merge command it triggers, are not by themselves a zero-touch
violation. The metric measures AO's autonomy in producing a mergeable-quality
PR, not who executes the final merge click. (Prior to
PR #8217, condition
#3 required skeptic-cron.yml to have auto-merged the PR; that gate and its
auto-merge mechanism no longer exist in this repo, so this condition is retired
rather than left permanently unsatisfiable.)
Specifically:
- AO spawned the worker session autonomously (via
ao spawn, lifecycle-worker, or poller) - The worker completed the applicable draft gates per
pr-lifecycle, then reached/green, without external nudges - No human/terminal session pushed commits, changed PR content, resolved comments, fixed CI, or posted reviews on the PR branch before the authorized merge action. The required
MERGE APPROVEDauthorization and merge action itself are excluded.
Quality-complete criteria
Use ~/.claude/skills/pr-lifecycle/SKILL.md for the draft-phase sequence and
~/.claude/skills/pr-green-definition/SKILL.md for the two /green gates.
CodeRabbit and Bugbot are advisory and do not determine zero-touch status.
Repo evidence exceptions still apply where the evidence standards permit them.
What breaks zero-touch
- A Claude Code terminal session (human-operated) pushed fixes to the PR branch
- A human or terminal session posted review comments or approvals
- A human dismissed a bot review to unblock merge
- A terminal session ran
@coderabbitai approveor similar to bypass a gate - A human manually triggered CI re-runs to get past flaky tests
Not counted as breaking zero-touch: the mandatory MERGE APPROVED human
authorization and the merge command itself — every PR in this repo requires
this regardless of how autonomously it was produced.
What does NOT break zero-touch
- The operator asking questions about the PR in Slack (observation, not intervention)
- Bot-to-bot interactions (CR, Bugbot, Skeptic, evidence-review-bot)
- The operator approving the AO spawn itself (dispatch is expected; execution must be autonomous)
Measurement — GitHub actor audit
A PR is zero-touch if, from AO spawn until immediately before the merge action, the only GitHub actors (commits, reviews, comments) are:
$AO_AGENT_GH_LOGIN(AO agent GitHub identity)github-actions[bot](CI)coderabbitai[bot](code review)cursor[bot](Bugbot)
The required MERGE APPROVED authorization and merge action are excluded
from this audit. Since PR #8217 removed the auto-merge mechanism, every merge
in this repo is executed by a human-facing session under explicit authorization.
Only actions before the merge command are audited. A human fix or review after
the PR first reaches /green still makes it operator-assisted; the current
merge candidate must remain green at its live head.
If $OPERATOR_GH_LOGIN (the operator's personal account, default gh api user -q .login) or any other human/terminal identity
appears as a commit author, reviewer, or commenter before the merge, it's
operator-assisted.
KPI
zero_touch_rate = (zero-touch merged PRs) / (total merged PRs) * 100
Measured weekly. Target: increasing trend.
Labeling (planned)
Previously planned to run via skeptic-cron.yml; that workflow no longer exists
(removed by PR #8217). Labeling mechanism TBD — not yet implemented, tracked in beads.
Reference
(No external doc currently exists — this SKILL.md is the sole source of truth. A prior external doc reference pointed to files that do not exist; it was removed rather than left as a dead link.)
04 同仓库更多 Skills
disk-reclaim-playbook
Use Disk Magician to diagnose disk growth or qualify cleanup on macOS or Linux.
claudea-bench
Compare `claudea` and normal `claude` on a fair split of comparable work by default; use `--strict` for duplicate runs of the exact same task.
pr
Alias for the canonical pr-lifecycle PR workflow skill (/pr-workflow, /prw).
whisper
OpenAI's general-purpose speech recognition model. Supports 99 languages, transcription, translation to English, and language identification. Six model sizes from tiny (39M params) to large (1550M params). Use for speech-to-text, podcast transcription, or multilingual audio processing. Best for robust, multilingual ASR.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
pr-report
This skill should be used when the user asks for a PR report, PR audit, PR delta analysis, /pr-report, or wants per-PR summary with delta files/lines. Generates a structured report for one or more open PRs covering purpose, files changed, +/− line counts, /code-standards + /thermo review findings, /ponytail simplification opportunities, file-overlap combination candidates, and /green status per pr-green-definition. Output: machine-readable JSONL + human-readable markdown. Read-only by default; can apply simplifications if user opts in.