Files
cms-website/docs/adr/ADR-007-路由键与碰撞键分离.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
633 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-007:URL 模型 = Exact Route Key 与 Collision Key 分离
- **状态**:已采纳(spec §3,阶段 0)
- **决策**:路由注册表存 Exact Route Key(原文、不大小写折叠、不去尾斜杠)与 Collision Key(折叠+规范化,仅用于风险检查)两个独立键。
- **理由**:实际路由必须按静态站点服务器的真实行为匹配(大小写/尾斜杠敏感);而大小写碰撞、尾斜杠歧义是迁移质量风险,需要单独检测报警而非混入路由匹配。
- **权衡**:route_registry 多一列维护;换取"路由正确性"与"碰撞风险提示"互不污染。