Files
cms-website/docs/adr/ADR-006-内容身份稳定键.md
T
浅念 07483b5ae2 docs: ADR 001–015 落档 + README
Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-20 20:56:26 +08:00

7 lines
568 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ADR-006:内容身份 = Source Record 稳定键
- **状态**:已采纳(spec §3,阶段 0)
- **决策**:WordPress 导入内容的身份锚定 source_records 的稳定键(来源类型 + WordPress ID);Permalink 只作为 URL 证据保存,不作为稳定主键。
- **理由**:WP 的 permalink 可随站点设置/ slug 修改而变,重导入时按链接匹配合错内容;post ID 在单个来源内天然唯一且不可变。
- **权衡**:跨来源同名 ID 须靠 source 维度区分(复合身份);换取重导幂等与身份稳定。