Individual skill
test-result-feedback
Close the acceptance loop for a tested change — consume the apc test TierResult, map EACH acceptance criterion to a pass/fail outcome from structured fields (never chat text), attach an evidence ref, and write it back to the task. A SUT red is a finding, never softened to green.
sdk/apc/skills/test-result-feedback/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-result-feedback
把 `apc test` 的 **TierResult** 回流成 task 每条验收 criterion 的 **结构化判定 + 证据**(`apc/05` C2 · S5b)。这是「测试→回流」的后半段:test-runner 负责**选层跑**并把新增红报回**一条** criterion;本 skill 负责把一轮 TierResult 摊到 task 的**每一条** criterion 上,逐条 `passed/failed/n/a` 落库并**挂证据 ref**,喂给循环级视图(cockpit 用 task metadata `loopId` 聚合,不建 loop 实体)。
**承重纪律(本 skill 存在的唯一理由)**:**红是一个发现,不是要修绿的对象。** TierResult 里一条 SUT 红 → 对应 criterion 必须报 `failed` 并附失败证据;**绝不**因为"就差一点"或"看起来还行"把红判成 `passed`。把断言放松到红能过 = 作废(`CLAUDE.md` 验收纪律 §3)。判定只取自 TierResult 的**结构字段**(`exitCode/failedNames/regressions[]/pass 计数`),**绝不**取自 agent 自己的聊天叙述——文本会冒充证据。
**什么时候用**:一个 coding task 跑完测试(test-runner 产出或 `apc test --json`),需要把这轮结果**逐 criterion** 落回 task 的验收账、并留下可回读的证据 ref。
## 工具契约(签名以此为准,先核后用)
| 命令 | 作用 | 退出码 |
| --- | --- | --- |
| `apc test [--tier=T0,T1] [--diff] [--json]` | 全层测试编排(包装 `scripts/test203/run.ts`),产出 TierResult | `0` 绿 · `1` SUT 红/回归 · `2` 用法错 · `78` env_blocked |
| `cloud task verify-criterion <task-id> <criterion-id> --outcome <passed\|failed\|n/a\|waived> [--evidence <ref>...] [--note <md>]` | 把**一条** criterion 的判定 + 证据报回 task | 0 成功 |