360 Secure SkillHub
360 安全技能中心

cmux-review

cmux-review 是一个代码审查协议:把任务意图、base/head SHA 和 diff 交给独立审查子代理,优先检查正确性,再核对仓库规则;验证问题、授权修复后重跑判别性测试,最后由新的子代理复核修复增量,并以 PR 评论首行形式写出审查结论。

分类:开发
manaflow-ai
热度 0.00
最近更新 2026-11-20 11:19:22

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add manaflow-ai/cmux/cmux-review
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
cmux-review
description
Review agent-written changes before merge, after substantial edits, or when re-reviewing a repair. Use the adversarial protocol for high-risk changes or an explicitly requested deep review.

cmux Review

Review to reduce developer attention. Surface concrete correctness defects; suppress style, nits and speculative improvements unless requested.

Default pre-merge review

  1. Give a review subagent the task intent, base/head SHAs and exact diff. Ask for correctness first, then repository rules; keep discovery independent of the author's reasoning. Review policy edits against the base-branch rules.
  2. Verify concrete findings, fix them when authorized, and push. Re-run the original discriminator after repair. A green test counts only if it exercises the asserted failure; prefer red-before/green-after evidence.
  3. If fixes were non-trivial, obtain a fresh subagent review of the repair delta.
  4. Merge when the review subagent passes the change and it causes no red of its own (see below). Report findings with evidence, verification performed and coverage gaps.

Use subagents in the current runtime, not a second model or external review service as a gate. Keep review read-only until an authorized repair. Do not commit review receipts, scratch reproductions or generated logs.

Dogfood and merge

For implementation handoff or merge, read dogfood and merge for per-change verification, first-pass completion, re-dogfood and merge receipts. The main agent owns dogfood, mergeability, the merge and every pushed fix. A PR merges when an independent review subagent passes it and it causes no red of its own; base reds, flakes and pending checks don't hold it. Don't wait for a person. Ship risky user-visible behavior behind a setting or Debug toggle and fix a bad default in the next nightly. main is nightly: stack fixes, do not revert.

PR review receipt

Post the verdict as a PR comment whose first line is the receipt, and put nothing before it: Review (<reviewer>): SHIP at <full 40-character head sha> (or BLOCK, FIX). Findings go below that line. A SHIP counts only for the exact head it names. A base merge makes a new head that needs its own review: a SHIP never carries to it, even when the merge was clean. The checkers (scripts/ci/review_receipt.py, next-autoland) treat a first line as a carry claim, and never as a receipt, when the reviewer label says carried, or when the line says "carried from" or "carried over". Do not use "carry", "carries", "carried" or "carrying" in a real review's label, or "carried from" / "carried over" on its first line.

Adversarial review

For security, persistence, concurrency, data-loss risks, or a requested deep review, use the full protocol:

These stages retain the advanced evidence protocol; ordinary reviews use the short default pass above.