# Atomic facts and rule derivations / 原子事实与规则推导实测

Recorded2026-10-31. [Project section11](https://ai.lwkjob.com/notes/harness-end-to-end-project/#atomic-derived-contract) · [中文教程](/lab/harness-contract-v2/WALKTHROUGH.zh.md) · [English walkthrough](/lab/harness-contract-v2/WALKTHROUGH.md) · [Exact contract](/lab/harness-contract-v2/CONTRACT.md) · [Source ZIP](/downloads/harness-evidence-contract-v2.zip) · [Exact results](results.json)

## Preserve the original failure / 原始失败不重判

The [original v1 evidence](/research-evidence/harness-eval/README.md), all eight responses and scores0/4,1/4 remain unchanged. [Attempt8 request/response](examples/v1-recorded-trace.jsonl) is an exact byte copy of its two original trace lines; SHA256 `ded104261d734a7e7e383ee87e912ecb0b6badb4e2eeffd0f630eee8bde7c666`. The unchanged v1 grader still reports correct decision/citation identity and failed atomic claims. The business policy supports the decision, but cited records do not explicitly assert the extra eligibility atom.

新合同不追溯修改旧输出或旧判分。原账本前18条记录也保持完全相同，新验证仅追加第19、20次尝试。

## Authored repair / 编写修复，零付费

v2 separates direct atoms from registered one-hop derivations. Direct atoms must appear verbatim as field/value assertions in every referenced trusted, current, correctly scoped record. Eligibility is excluded from atomic fields. A derivation cites a registered current rule/version and policy evidence, with exact references to already validated atomic premises. The final decision binds to its proved conclusion; `decision_label_match` separately records raw reference-label agreement. Unknown/self/derived premise IDs, forged or stale rules, missing/extra premises and unsupported atoms fail closed. A proof is never a merchant authorization or completed effect.

普通订单有七条必需原子事实，登记规则恰好使用其中六条；order_id仍绑定订单/范围，不是这条规则的额外前提。规则版本1与业务政策returns-v3分开核对。模型文字不能登记新规则。

- [Full authored repair / 完整编写修复](examples/authored-v2-repair.json)
- [Nine deliberately broken answers / 九个故意改坏的输出](examples/broken-mutations.json)
- [Recomputed original grade, repair and mutation report / 旧红灯、新参考绿灯与负例](examples/example-report.json)

`python examples.py` re-runs the unchanged legacy v1 grader and the v2 checker locally, with0paidcalls. The authored repair passes; all nine authored mutations fail. This is a teaching reference, not a provider response or independent learner result. Keep your own submission outside the frozen source and do not edit the checker to pass.

## Two fresh actual decisions / 两次真实决策

The source, registered rules, schema and instructions were independently reviewed and frozen before the two calls. Model `gpt-5.4-mini-2026-03-17`; unchanged Responses transport, default tier, max_output_tokens1600, no tools/storage/retry/redirect/output repair/fallback/resume. Exactly one request per public authored case:

| Case | Attempt | Decision | Atoms / derivation / strict contract | Request seconds | Estimated USD |
| --- | --- | --- | --- | --- | --- |
| ordinary_complete | 19 | eligible | Pass / pass / pass | 4.173065 | 0.0026235 |
| gift_exception | 20 | manual_review | Pass / pass / pass | 3.165630 | 0.0025200 |

Both responses completed, both decisions match the reference labels, and both structured contracts pass. [Readonly verification](live/verification.json) independently rebuilds source/request/schema/context and trace/ledger/usage/reservation/cost/timing bindings; saved report flags are not authority. The automatic contract gate passes for these two observations. Full-prose semantic release review remains `pending_human`.

两次都通过，不等于旧评分变成2/2，也不证明提示普遍改善：v2增加了正式规则、范围和新的schema/指令，不是受控A/B。两个公开场景只验证决策阶段；本轮没有新的完整MCP执行，没有生产p95、可靠性或真实学员掌握程度结论。作者编写的修复与实际模型输出始终分开保存。

- [Actual serialized requests and unchanged provider JSON / 真实请求与未改写响应](live/provider-trace.jsonl)
- [Exact trial inventory / 两次试次](live/trials.jsonl)
- [Source and plan bindings / 冻结来源与计划](live/manifest.json)
- [18-attempt before snapshot / 运行前18次快照](live/ledger-before.json)
- [20-attempt after snapshot / 运行后20次快照](live/ledger-snapshot.json)
- [Independent verification / 独立重算](live/verification.json)

## Original cumulative allowance / 原预算

This increment adds2requests and estimated$0.0051435. Cumulative: **20/20requests, estimated$0.02516325 of USD2**, unknown-usage reserve$0. The exact original private ledger was reused, its first18rows unchanged. The attempt allowance is exhausted. No replacement ledger, repair request or hidden retry was used, and no further model call is authorized by this exhausted allowance.

[Original ledger JSON export](provider-budget-export.json) includes all20attempts, conservative reservations, actual usage and known-cost estimates without credentials. Prices remain input$0.75/cached$0.075/output$4.50 per million tokens, checked against the pinned model's [official standard pricing](https://developers.openai.com/api/docs/models/gpt-5.4-mini) on2026-10-31. Reasoning tokens are already included in output tokens. These are estimates, not billed invoices. Durations are per-request monotonic observations, not end-to-end MCP latency or a percentile distribution.

## Review and reproducibility / 复核与复现

[Review summary](review-summary.json) records independent source, ZIP and actual-evidence/content reviews. The83-member source ZIP includes exact file hashes; source and fresh-extracted suites each pass26tests with0paidcalls. Actual saved evidence also verifies from the fresh extraction; the ZIP-only manifest is excluded from the execution source fingerprint. The61vendored files remain byte-identical, including the old checker. [File manifest](MANIFEST.json) binds these public exports.

Public snapshots can be checked without the private SQLite ledger. When that original ledger exists, verification also reads and compares its rows. These hashes establish internal evidence consistency, not an external cryptographic provider attestation. No real customer records or private key are included. Full natural-language semantics and independent learner transfer remain unmeasured.
