# Evidence-Claim Verifier

> 检查核心论断能否回链到证据矩阵。 Use when: 形成问题、证据矩阵或章节草稿后. Do not use when: 仅做纯格式调整.

- **Type:** Skill
- **Install:** `agentstack add skill-woshixiguaweierde-codex-sci-review-agent-q02-evidence-claim-verifier`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [woshixiguaweierde](https://agentstack.voostack.com/s/woshixiguaweierde)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [woshixiguaweierde](https://github.com/woshixiguaweierde)
- **Source:** https://github.com/woshixiguaweierde/codex-sci-review-agent/tree/main/.agents/skills/Q02-evidence-claim-verifier

## Install

```sh
agentstack add skill-woshixiguaweierde-codex-sci-review-agent-q02-evidence-claim-verifier
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

## Identity
- Skill ID: Q02
- Slug: evidence-claim-verifier
- Directory: .agents/skills/Q02-evidence-claim-verifier/
- Name: Evidence-Claim Verifier
- 中文角色: 证据-论断回链验证——核心 QA
- Stage: QA
- Skill Type: qa
- Human Gate: NONE
- Required QA Hooks: - None

## Mission
检查核心论断能否通过 claim_evidence_graph 回链到 evidence units 与证据矩阵。

此 skill 在综述生产流水线中的角色：证据-论断回链验证——核心 QA。它在"QA"阶段运行，
生成结构化产物供下游 skill 消费，并在 NONE 处接受人工审核。

## Scientific Role in the Workflow
- **所处阶段**: QA 阶段——在形成问题、证据矩阵或章节草稿后自动执行
- **产出形式**: qa_evidence_claim.json
- **人机协同点**: 产物在 NONE 处需人工审签；关键决策记录在 decision_log.md 中
- **对下游的价值**: 阻断无证据支撑的论断进入手稿，防止幻觉

## Scope of Responsibility
- 本 skill 仅负责 科学论断提取、claim-to-evidence graph 检查、证据单元强度边界检查、quantitative claim 字段级核验、严重度分级
- 不负责 data extraction accuracy（那是 S10 的职责）
- 不负责 study methodology quality（那是 S11 的职责）

## Trigger When
形成问题、证据矩阵或章节草稿后

## Do Not Trigger When
仅做纯格式调整

## Required Inputs
- evidence_matrix.json
- evidence_units.json
- claim_evidence_graph.json
- manuscript_text_or_notes

## Optional Inputs
- 额外的验证文本（非手稿正文，如 response letter）

## Output Contract
1. 所有输出文件写入 `/artifacts/run-/qa/` 目录下
2. 结构化输出（.json / .csv）优先于叙述性输出（.md），必须通过 schemas/ 下对应 JSON Schema 校验
3. 每个输出产物在 artifact registry 中注册时，须记录其上游依赖、生成时间、生成器和版本号
4. 产物格式优先级：结构化数据 (.json) > 表格 (.csv) > 叙述性 Markdown (.md) > 自由文本
5. 产物路径和命名遵循 `configs/artifact_registry_rules.json` 中定义的规范

## Expected Outputs
- qa_evidence_claim.json

## Operational Steps
1. 验证所有 Required Inputs 存在且可读，缺失则立即停止并报告
2. 加载相关 Schema 和契约文件（schemas/ 目录下）
3. 仅执行 Purpose 与 Scope of Responsibility 中定义的任务，不漂移到相邻 skill 的职责
4. 先产出结构化数据（.json / .csv），再生成叙述性说明（.md）
5. 记录所有假设、未解决的歧义和失败追踪信息
6. 若置信度不足（如关键数据缺失导致无法做出科学判断），停止执行并升级给人工，不得猜测或编造

## Decision / Writing / Validation Principles
- 结构化字段优先：先填满 schema 的 required 字段，再补充 optional 字段
- 证据三元组：每个科学论断必须包含 (source_id, finding_direction, evidence_strength)
- 冲突分类：如发现证据方向矛盾，标记为 direction_conflict 而非强行选边
- 术语一致性：同一实体在全文中使用统一的 canonical term（参见 configs/ontology/）
- 保守推断：不在证据不足时声称"clearly" "definitively" "proves"

## Hard Constraints
- 不得编造 DOI、PMID、样本量、统计值、期刊身份或研究结论
- 不得静默覆盖已有高版本 artifact（必须 version incrementally，参见 AGENTS.md）
- 不得删除上游可审计痕迹（raw exports、screening decisions、extraction logs 必须保留）
- 不得绕过 Gate 或把 QA 结论写成"已人工确认"（除非真正通过了人工审核）
- 不因'证据在别的文献里可能有'而放行——Q02 只看 evidence_units / evidence_matrix / claim_evidence_graph 中有没有
- 不将 partial_match 升级为 exact_match
- 不允许 abstract-only evidence 支撑 mechanistic、causal 或 clinical_translation 强 claim
- quantitative claim 必须具备 `claim_type`、`certainty_level`、`required_evidence_profile`、`evidence_matrix_row_id` 和可回链的 `quantitative_payload`；数字、单位、比较方向或样本量无法与 evidence unit 对齐时必须 block

## QA Hooks
- None

## Human-in-the-Loop Checkpoint
- 产出物完成后，进入 NONE 等待人工审核
- 审核通过前，下游 skill 不得启动
- 若人工审核要求修订，返回上游 skill（参见 `orchestrator/state_machine/transitions.yaml`）

## Acceptance Checklist (Self-Verification Before Declaring Done)
- [ ] 所有 Required Inputs 已加载且完整
- [ ] 所有 Expected Outputs 已生成且非空
- [ ] 结构化输出通过对应 JSON Schema 校验
- [ ] 产物已在 artifact registry 中注册（含 checksum + version）
- [ ] QA hooks 中列出的所有 QA skill 已触发
- [ ] decision_log.md 记录了关键决策及其理由

## Failure Handling
- **缺少输入**: 发出 blocking error，立即停止，不继续执行
- **Schema 校验失败**: 重试一次（带错误上下文修正）；若第二次仍失败，升级给 checkpoint manager
- **下游污染风险**: 如果当前产物可能影响下游 skill 的正确性，标记为 `status: blocked`，阻止流水线继续
- **领域特定失败**: 若发现任何 critical 等级的 claim-evidence 不匹配 → block
- **重试耗尽**: 若达到 orchestrator/retry_policies/ 中定义的最大重试次数，升级给人工

## Logging and Observability
每个 skill 必须产出以下日志文件（写入 `/artifacts/run-/logs/Q02/`）：
- `input_manifest.json` — 所有输入的路径和校验和
- `output_manifest.json` — 所有输出的路径和校验和
- `validation_result.json` — Schema 校验结果
- `decision_log.md` — 关键决策及其理由
- `failure_trace.md` — 失败时的错误堆栈（如有）

## Collaboration Notes for Codex / Orchestrator
- 执行前先读取 `AGENTS.md` 获取项目级非协商规则
- 执行前先读取 `configs/skills_manifest.json` 确认本 skill 的上下游依赖
- 产物注册使用 `orchestrator/artifact_registry/registry_v2.py` 的统一接口

## Definition of Done
1. 所有 Expected Outputs 已写入磁盘并通过 Schema 校验
2. 所有 Required QA Hooks 已触发并获得非 blocking 结果
3. 产物已在 artifact registry 中注册，具备完整的 provenance 记录

## Examples

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [woshixiguaweierde](https://github.com/woshixiguaweierde)
- **Source:** [woshixiguaweierde/codex-sci-review-agent](https://github.com/woshixiguaweierde/codex-sci-review-agent)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-woshixiguaweierde-codex-sci-review-agent-q02-evidence-claim-verifier
- Seller: https://agentstack.voostack.com/s/woshixiguaweierde
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
