Files
cms-website/docs/adr/ADR-010-发布双指针.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
575 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-010:发布模型 = current/published 双指针
- **状态**:已采纳(spec §3,阶段 0)
- **决策**:content_entries 维护 current(编辑态)与 published(线上态)双指针;导入只更新 current,发布只移动 published 指针,从不修改 Revision 内容。
- **理由**:导入是批量实验性操作,绝不能直接改线上内容;Revision 不可变 + 指针移动让"发布了什么""何时回滚"完全可追溯。
- **权衡**:查询线上内容须 join 指针而非直取最新;换取导入安全与发布原子性。