Repository navigation
test: four-model review-report sample for audit fixtures - #2
Merged
wangcan26 merged 1 commit intoAug 19, 2026
Merged
Conversation
10 tasks
|
@yangfei222666-9,已审阅。这个 PR 先保持开放,请基于当前 PR 创建后,ExpMem 建议这样调整:
对齐最终 Schema 时请注意:记录字段是 这样改完后,这个 PR 会成为对 |
Replace the placeholder reviewer with the four-model review (glm-5, claude-opus-5, gemini-3.1-pro, codex), re-bind evidence-link.json.sha256 to the exact report bytes, and assert the four providers, verdicts, and cannotClaim lists in the existing audit test.
yangfei222666-9
force-pushed
the
fix/add-audit-fixtures
branch
from
August 19, 2026 04:43
78d3f2f to
db53a0a
Compare
Contributor
Author
|
@wangcan26 已按你的审阅意见改成增量贡献:
本地 |
wangcan26
approved these changes
Aug 19, 2026
wangcan26
left a comment
There was a problem hiding this comment.
复审通过。已核对 report 的准确字节哈希和 targetSha256,本地 pnpm run check 与 GitHub CI 均通过。四模型样本现在是基于 0.3.0 的干净增量,可以合入。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
按 Issue #1 确认的契约提交(参见 #1 及 wangcan26 的确认评论)。
内容
新增
tests/fixtures/audit/首批四类 fixture,以及消费它们的测试tests/audit-fixtures.test.mjs:fx-04Loader 不得静默丢记录archive/experience/出现损坏 JSON 或未知版本记录时,list()必须报错并列出相对路径,而不是跳过fx-05单记录原子写入/中断恢复.tmp残留不得被读作记录、不得造成数据丢失;正常写入只落一个完整.jsonfx-07无合格证据不能从 candidate 升级candidate且无verificationfx-08删除后只留最小 tombstoneid+deletedAt+reasonCode,不含正文与证据另附一份脱敏
review-report样本:schemaVersion为review-report@1,证据链接保存schemaVersion / reportId / location / sha256 / targetSha256(location 与哈希双保留);内容全部用占位符,不含任何真实私有数据,哈希为全零占位。与真实 API 的关系(如实说明)
fx-04/fx-05已由当前FileExperienceArchive实现,测试对照真实 API 行为断言,pnpm test全绿(8/8)。fx-07/fx-08属于 0.3.0 Schema(candidate 状态机、tombstone)的输入契约,当前 0.2.0 运行时尚未实现(现有expmem_forget为硬删除、无状态机),故这两类 fixture 目前只校验数据契约,运行时断言待 0.3.0 落地后再接入。Refs #1