docs(tasks): plan junction tools delivery

This commit is contained in:
que01 committed 2026-09-03 12:28:47 +08:00
1 parent 6a0736517f
commit 8c99bb7340
14 files changed
+211 -60

No files matched your search

@@ -0,0 +1 @@
{"_example": "Fill with {\"file\": \"<path>\", \"reason\": \"<why>\"}. Put spec/research files only — no code paths. Run `python3 .trellis/scripts/get_context.py --mode packages` to list available specs. Delete this line once real entries are added."}
@@ -0,0 +1,3 @@
# Design
设施层只保存现有语义文档;JunctionTools 汇总设施约束、受影响图层和阻塞诊断,发布前复用导出契约校验。
@@ -0,0 +1 @@
{"_example": "Fill with {\"file\": \"<path>\", \"reason\": \"<why>\"}. Put spec/research files only — no code paths. Run `python3 .trellis/scripts/get_context.py --mode packages` to list available specs. Delete this line once real entries are added."}
@@ -0,0 +1,20 @@
# 路口设施与验证闭环
## Goal
在 JunctionTools 中协调斑马线、停止线、信号灯及发布前诊断,形成可复核的路口交付闭环。
## Requirements
- 设施编辑复用现有元素语义和交通信号文档,不复制 GeoJSON。
- 设施必须受所属进口/路口几何约束,越界时给出结构化诊断。
- 发布前展示受影响对象、阻塞问题、文档版本和导出契约状态。
- 保存、取消、撤销/重做和导出行为与主地图保持一致。
- 首期只允许修改已有斑马线、停止线和信号灯的语义位置或参数,不允许创建或删除设施。
- 自交、越界和几何不可解为 `blocking`;设施缺失或间距不足等非致命问题可为 `warning`,UI 依赖稳定诊断 code/severity。
## Acceptance Criteria
- [ ] 设施联动 preview 包含斑马线、停止线和信号灯派生对象。
- [ ] 非法设施位置不会替换最后有效预览。
- [ ] 保存后导出包契约不变,完整回归测试通过。
@@ -0,0 +1,26 @@
{
"id": "junction-facilities-validation",
"name": "junction-facilities-validation",
"title": "路口设施与验证闭环",
"description": "",
"status": "in_progress",
"dev_type": null,
"scope": null,
"package": null,
"priority": "P2",
"creator": "dingkang",
"assignee": "dingkang",
"createdAt": "2026-09-02",
"completedAt": null,
"branch": null,
"base_branch": "main",
"worktree_path": null,
"commit": null,
"pr_url": null,
"subtasks": [],
"children": [],
"parent": "08-26-direct-edit-junction-tools",
"relatedFiles": [],
"notes": "",
"meta": {}
}