# Review a real-model submission / 复核真实模型提交

## English

### What this checker establishes

Use this after the seven-stage project, alongside its [live-model guide](https://ai.lwkjob.com/lab/capstone/MODEL_GUIDE.md). The checker reads an actual cli.py inspect JSON file. It makes no model request, reads no credentials and runs no submitted code. Download the [checker package](https://ai.lwkjob.com/downloads/agent-provider-evidence-v1.zip) and use Python 3.10+. Copy the [blank worksheet](https://ai.lwkjob.com/lab/provider-evidence/SUBMISSION_TEMPLATE.json) into your work directory.

The checker correlates model requests/responses, actual tool events, receipt argument hashes and exact function_call_output continuation. It preserves missing provider usage/request IDs as null. It compares final citations with the actual retrieved context and its text digests. A completed write needs a matching task receipt; an optional independently queried merchant audit must agree. An awaiting_approval proposal is not a completed business effect.

Exit 0 and evidence_consistent mean only that the submitted records agree internally. A fabricated JSON file can also be internally consistent. source=provider, a response ID and SHA values cannot authenticate an API origin. liveGatePassed always remains false in this offline tool; realProviderObserved stays pending_independent_observation. Independently observe an authorized run or cross-check its provider request record, application execution and source digests before changing your reviewer worksheet. Free-text truth and operational experience require separate review.

### Run against your inspected trace

Extract the existing capstone package separately. Run its authorized live workflow in your own environment if you have selected a model and permitted potentially billed calls; inspect the resulting task. Keep the complete original trace privately. In the checker package root:

```sh
python3 evidence_check.py --trace ../enterprise-after-sales-agent-v1/model-run/trace.json --out work/trace-review.json
python3 -m json.tool work/trace-review.json
```

For a task already completed after reviewed approval, save an independent merchant GET /v1/audit response and compare it too:

```sh
python3 evidence_check.py --trace work/completed-trace.json --merchant-audit work/merchant-audit.json --out work/completed-review.json
```

These are file checks. Obtain the audit through the original authenticated merchant client; a file called merchant-audit.json is not itself independent evidence. Keep trace/audit/source/dataset digests with the observation conditions. Never submit a key, Authorization header or private customer record.

### Read the result before claiming progress

An HTTP 429 record has no returned model/tool continuation and must exit 1. The existing [live attempt](https://ai.lwkjob.com/lab/capstone/LIVE_VALIDATION.json) remains a single failed request with unknown error subtype, not a successful model loop. A queued or truncated trace fails the complete-loop contract. contract_stub and simulated responses cannot become a provider gate merely because a request's mode is live. A consistent reference trace still earns no independent learner credit.

Use the first failed check to form a diagnosis: wrong call_id, changed arguments, missing tool receipt, omitted previous output items, fabricated usage, unsupported citation, proposal mistaken for completion, or a duplicated merchant effect. Repair the application source or collect missing evidence; do not edit raw records to make them green. Rerun from a fresh task and retain failed-before/passed-after records.

The checker targets the current capstone trace contract, including complete stateless continuation. It is not a universal validator for every provider API, previous_response_id mode or every Agent framework. It checks source membership, not whether a natural-language claim logically follows a passage. It does not score model quality, estimate spend, verify a hiring rank or run a load test.

### Reviewer observation and learner transfer

Record four distinct states: local engineering; provider integration; reviewer-observed fresh modification; production responsibility. In the worksheet, attach the model actually returned, actual usage or null, request/response correlation, source/dataset digests, one model→tool→continuation trace and a source-claim review. The reviewer records the observation method and its limits. A dashboard total alone does not connect a particular tool execution to a particular response.

For transfer review, the evaluator supplies one complete new output/permission/failure condition and its acceptance contract after the learner's known submission. Observe the learner implementing and rerunning it; disclose permitted AI/search assistance. Public checker negatives are preparation, not unseen interview observations. Consult the [responsibility paths](https://ai.lwkjob.com/lab/capstone/CAREER_PATHS.md) for the remaining level-specific artifacts.

## 中文

### 验收器能证明什么

七阶段项目之后，配合[真实模型指南](https://ai.lwkjob.com/lab/capstone/MODEL_GUIDE.md)使用。验收器读取 cli.py inspect 的实际 JSON，不请求模型、不读取凭据、不执行学员代码。下载[验收包](https://ai.lwkjob.com/downloads/agent-provider-evidence-v1.zip)，使用 Python 3.10+，将[空白记录表](https://ai.lwkjob.com/lab/provider-evidence/SUBMISSION_TEMPLATE.json)复制到自己的工作目录。

它关联模型请求/返回、实际工具事件、回执参数摘要和完整 function_call_output 续轮；提供方 usage 或请求 ID 缺失保持 null。最终引用对照实际检索 context 和原文摘要；已完成写须有匹配任务回执，可另外对照独立查询的商家审计。awaiting_approval 提案不是业务完成。

退出 0 和 evidence_consistent 仅说明提交记录内部一致，编造 JSON 也可能内部一致。source=provider、响应 ID、SHA 都不能认证 API 来源。此离线工具的 liveGatePassed 始终 false，realProviderObserved 保持 pending_independent_observation。独立观察获授权运行，或交叉核对提供方请求记录、应用执行与源码摘要之后，评审才更新自己的记录表；自由文本真实性和运维经历另行复核。

### 检查本人 inspect 轨迹

另解压原项目包。如果已选择模型并授权可能计费请求，在自己的环境运行真实模式，再 inspect 任务。完整原始轨迹私下保留。在验收包根运行：

```sh
python3 evidence_check.py --trace ../enterprise-after-sales-agent-v1/model-run/trace.json --out work/trace-review.json
python3 -m json.tool work/trace-review.json
```

经过复核审批、实际完成的任务，另保存独立商家 GET /v1/audit 返回，并对照：

```sh
python3 evidence_check.py --trace work/completed-trace.json --merchant-audit work/merchant-audit.json --out work/completed-review.json
```

这些命令只检查文件。审计须通过原认证商家 client 获取，文件名 merchant-audit.json 本身不证明独立。保留轨迹/审计/源码/数据摘要及观察条件，不提交密钥、Authorization 头或私有客户资料。

### 读完结果再陈述进展

HTTP 429 没有模型返回和工具续轮，应退出 1。已有[真实请求记录](https://ai.lwkjob.com/lab/capstone/LIVE_VALIDATION.json)仍是一次失败，错误子类型未知，不是真实模型闭环成功。queued 或截断轨迹不通过完整闭环合同；contract_stub、simulated 不能因请求 mode=live 就变成提供方证据。一份内部一致的参考轨迹也不算独立学员成果。

从首个失败形成诊断：call_id 错配、参数变化、工具回执缺失、续轮遗漏先前条目、编造 usage、引用不在 context、提案当完成、商家效果重复。修应用源码或补缺失证据，不改原记录求绿；另建新任务，保留失败前后材料。

验收器针对当前 capstone 的轨迹合同和完整无服务端状态续轮，不通用于所有提供方、previous_response_id 模式或 Agent 框架。它检查引用来源是否在 context，不判断一句自然语言是否由原文推导；不评分模型质量、不估费用、不验证职级、不压测。

### 评审观察与学员迁移

分别记录本机工程、提供方接入、评审观察新条件修改、生产责任。记录表附实际返回模型、usage 或 null、请求/响应关联、源码/数据摘要、一条模型→工具→续轮轨迹及原文主张复核。评审记录观察方法与边界，控制台总量本身不能关联某次工具和某次响应。

已知提交后，评审另外提供完整的新输出/权限/故障条件与验收合同，观察本人实现和重跑，并注明允许的 AI/搜索协助。公开验收反例用于准备，不算未见面试观察；其余分级产物见[职责路径](https://ai.lwkjob.com/lab/capstone/CAREER_PATHS.md)。
