Individual skill
test-runner
For a code change, pick the right test tier by change surface, run apc test with baseline diff, and report only NEW reds vs baseline back to the task's acceptance criterion. Separates env_blocked from SUT red so a broken machine never fails the code.
sdk/apc/skills/test-runner/SKILL.md
Source commit f83b859a173802a73d978197e92328ab2bf57a6e
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 9, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,364
- Repository last updated
- Oct 22, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-communication Repository topic
- agent-memory Repository topic
- ai-agents Repository topic
- claude Repository topic
- cursor Repository topic
- docker Repository topic
- knowledge-base Repository topic
- llm-tools Repository topic
- mcp Repository topic
- mcp-server Repository topic
- testing Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
Read excerpt
# test-runner
对一个改动**选层跑测试**并把**新增红(vs baseline)**报回 task 的验收 criterion(`apc/02` §2 R1 · `apc/05` A1 S7)。核心纪律:环境红(`env_blocked`)与被测代码红(SUT red)**分域**——机器坏了绝不判代码红。
**什么时候用**:一个 coding task 改完进 review,需要按改动面选层跑回归、把结果作为 acceptance criterion 的 pass/fail 证据。
## 工具契约(签名以此为准,先核后用)
| 命令 | 作用 | 退出码 |
| --- | --- | --- |
| `apc env doctor` | 环境体检(见 env-doctor skill) | `0` 全绿 · `78` env_blocked |
| `apc test [--tier=T0,T1] [--diff] [--json] [--list]` | 全层测试编排(包装 `scripts/test203/run.ts`) | `0` 绿 · `1` SUT 红/回归 · `2` 用法错 · `78` env_blocked |
| `cloud task verify-criterion <task-id> <criterion-id> --outcome <passed\|failed\|n/a\|waived>` | 把一个 criterion 的判定报回 task | 0 成功 |