修复论文合并时丢失候选证据 #100

Open
codex-bot wants to merge 1 commits from codex/preserve-match-evidence into main
Collaborator

问题

合并已确认的论文版本时,如果保留记录和移除记录都与同一第三篇论文有相同方法的候选关系,候选表的复合键会冲突。原实现会跳过后一行,可能丢失不同标题或其他候选证据。

改动

  • 候选关系合并到同一个键时保存两条原始证据及各自的分数和状态,并对重复证据去重。
  • 回归检查覆盖 SQLite 连续合并和 PostgreSQL 候选关系冲突。
  • 这项修复用于第 17 步的 MS-TCN 复核。MS-TCN++ 的期刊扩展仍有独立记录。

验证

本地纯 Python 验证执行 43 项检查,40 项通过,3 项因仅适用于远程 PostgreSQL 环境而跳过。已在授权的远程 runner 上通过隔离 PostgreSQL schema 的针对性回归检查。完整 CI 由分支推送触发。

## 问题 合并已确认的论文版本时,如果保留记录和移除记录都与同一第三篇论文有相同方法的候选关系,候选表的复合键会冲突。原实现会跳过后一行,可能丢失不同标题或其他候选证据。 ## 改动 - 候选关系合并到同一个键时保存两条原始证据及各自的分数和状态,并对重复证据去重。 - 回归检查覆盖 SQLite 连续合并和 PostgreSQL 候选关系冲突。 - 这项修复用于第 17 步的 MS-TCN 复核。MS-TCN++ 的期刊扩展仍有独立记录。 ## 验证 本地纯 Python 验证执行 43 项检查,40 项通过,3 项因仅适用于远程 PostgreSQL 环境而跳过。已在授权的远程 runner 上通过隔离 PostgreSQL schema 的针对性回归检查。完整 CI 由分支推送触发。
codex-bot added 1 commit 2026-11-25 17:43:02 +00:00
Preserve match candidate evidence when papers merge
Metadata integrity checks / metadata (push) Waiting to run
1e5237fe19
Some checks are pending
Metadata integrity checks / metadata (push) Waiting to run
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin codex/preserve-match-evidence:codex/preserve-match-evidence
git checkout codex/preserve-match-evidence
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Zayden-Jung/paper-atlas#100