cross-agent-install-smoke
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCross-Agent Install Smoke
跨Agent安装冒烟测试
Validate additive skills sync without mutating live harness installs.
Scope: Install smoke only. Do not run live apply installs unless the maintainer explicitly requests it.
验证增量技能同步,且不会修改实时harness安装。
适用范围: 仅用于安装冒烟测试。除非维护人员明确要求,否则请勿运行实时apply安装。
Dispatch
调度
| $ARGUMENTS | Action |
|---|---|
Empty / | Run phase 1 dry-run JSON assertions |
| Run phase 2 temp-HOME smoke (requires |
| Run phase 1, then phase 2 when gated |
| Show phases, gates, and example commands |
| 参数($ARGUMENTS) | 操作 |
|---|---|
空值 / | 运行第一阶段试运行JSON断言 |
| 运行第二阶段临时HOME冒烟测试(需设置 |
| 先运行第一阶段,满足条件后再运行第二阶段 |
| 显示阶段、条件和示例命令 |
Phase 1 — Dry-Run JSON
第一阶段 — 试运行JSON
Run the deterministic checker from the repo root:
bash
uv run python skills/cross-agent-install-smoke/scripts/dry_run.pyPhase 1 executes the repo skills-sync dry-run command and asserts:
- top-level keys: ,
ok,mode,inventory_count,include_installedagents - is
modedry-run - each agent row includes plus bucket fields
agent,missing,already_present,unresolvedskipped - bucket fields may be legacy string lists or compact objects (Wave 1b+ default JSON)
{count, sample, truncated} - when present, optional buckets (,
projection_ensure,projection_blocked,store_missing,internal_projection) use the same shapespin_blocked
Pass criteria: script exits and prints a JSON summary to stdout. Phase 1 is dry-run only — never .
0--apply从仓库根目录运行确定性检查器:
bash
uv run python skills/cross-agent-install-smoke/scripts/dry_run.py第一阶段执行仓库的skills-sync试运行命令,并断言:
- 顶级键:、
ok、mode、inventory_count、include_installedagents - 的值为
modedry-run - 每个agent行包含以及分类字段
agent、missing、already_present、unresolvedskipped - 分类字段可以是旧版字符串列表 或 紧凑对象(Wave 1b+ 默认JSON格式)
{count, sample, truncated} - 当存在可选分类(、
projection_ensure、projection_blocked、store_missing、internal_projection)时,使用相同的格式pin_blocked
通过标准:脚本以状态码退出,并向标准输出打印JSON摘要。第一阶段仅为试运行——绝不使用。
0--applyPhase 2 — Temp-HOME Smoke
第二阶段 — 临时HOME冒烟测试
Phase 2 is opt-in and mutates only a temporary home directory.
bash
INSTALL_SMOKE=1 uv run python skills/cross-agent-install-smoke/scripts/local_smoke.pyThe script:
- Refuses to run unless
INSTALL_SMOKE=1 - Creates an isolated under a temp directory
HOME - Runs the repo validation command against the repo
- Runs a single-harness skills-sync dry-run JSON probe
- Cleans up the temp home
Never point phase 2 at a production home directory.
第二阶段为可选操作,仅修改临时主目录。
bash
INSTALL_SMOKE=1 uv run python skills/cross-agent-install-smoke/scripts/local_smoke.py该脚本:
- 除非设置,否则拒绝运行
INSTALL_SMOKE=1 - 在临时目录下创建独立的
HOME - 针对仓库运行仓库验证命令
- 运行单harness技能同步试运行JSON探测
- 清理临时主目录
切勿将第二阶段指向生产环境的主目录。
Validation Contract
验证约定
bash
uv run python skills/cross-agent-install-smoke/scripts/check.py
INSTALL_SMOKE=1 uv run python skills/cross-agent-install-smoke/scripts/check.pyCompletion criteria:
- Phase 1 () exits
dry_run.pyin CI and local maintainer runs.0 - Phase 2 runs only when is set.
INSTALL_SMOKE=1 - exits
scripts/check.pyfor the selected phase gates.0
bash
uv run python skills/cross-agent-install-smoke/scripts/check.py
INSTALL_SMOKE=1 uv run python skills/cross-agent-install-smoke/scripts/check.py完成标准:
- 第一阶段()在CI和本地维护人员运行时以状态码
dry_run.py退出。0 - 第二阶段仅在设置时运行。
INSTALL_SMOKE=1 - 针对所选阶段条件以状态码
scripts/check.py退出。0
Critical Rules
关键规则
- Default to dry-run; never apply live installs from this skill.
- Treat skills sync JSON as evidence, not authority over repo policy.
- Run phase 1 before recommending any cross-harness install reconciliation.
- Gate phase 2 behind and a disposable temp
INSTALL_SMOKE=1.HOME - Report harness-specific inventory errors without masking top-level .
ok: false
- 默认使用试运行模式;绝不要通过此技能执行实时安装apply操作。
- 将技能同步JSON视为证据,而非仓库策略的权威依据。
- 在建议任何跨harness安装协调之前,先运行第一阶段。
- 第二阶段需以和可丢弃的临时
INSTALL_SMOKE=1作为运行条件。HOME - 报告特定于harness的清单错误,不要掩盖顶级键的状态。
ok: false