Guard task-start against merged branch names; harden sync evidence scan #211

Merged
weichen merged 14 commits from feature/task-start-merged-guard into main 2026-10-05 12:39:32 +00:00
14 Commits
Author SHA1 Message Date
weichen 151185d35f Record final-HEAD make test evidence and result summary
ci / test (pull_request) Successful in 2m4s
2026-10-05 12:34:51 +00:00
weichen de75f1ede9 Record the sync-fix verification evidence 2026-10-05 12:33:17 +00:00
weichen 0bad425a7d Record the sync checkpoint 2026-10-05 12:33:16 +00:00
weichen 9a3ebe6539 Record the sync checkpoint 2026-10-05 12:33:06 +00:00
weichen 1e0508e8a7 Skip non-hex cells in the sync evidence scan
Why: 证据命令含 || 时 evidence.sh 把表格单元格里的管道转义为 \|\|,cmd_sync 按裸 |
切行把碎片当 HEAD 传给 git diff,fatal 128 在 set -e 下杀死 sync(本卡功能负例行实测触发,
task-sync 门禁被卡死)。
Evidence: bash -n 通过;含转义管道行的本卡上 bash scripts/task.sh sync 正常完成(WARN 照发、
exit 0);修复后 make test 全链重跑。
Impact: 仅 cmd_sync 证据扫描加十六进制过滤;WARN 语义不变。
Refs: 本卡 12:30-12:32 五次 sync 中毒复现记录。
2026-10-05 12:33:06 +00:00
weichen 278bff9a31 Record the sync checkpoint 2026-10-05 12:32:00 +00:00
weichen 2fec8b4e82 Record the sync checkpoint 2026-10-05 12:31:59 +00:00
weichen b3a5a31d10 Record the sync checkpoint 2026-10-05 12:31:17 +00:00
weichen 9e30c5f656 Record the sync checkpoint 2026-10-05 12:31:08 +00:00
weichen 09aa6e59b0 Record the sync checkpoint 2026-10-05 12:30:49 +00:00
weichen 879bf64b94 Record the clean-tree task-sync checkpoint 2026-10-05 12:30:36 +00:00
weichen 6d82dfaabd Record the sync checkpoint 2026-10-05 12:30:36 +00:00
weichen e58035a8e4 Guard task-start against reusing a merged branch name
Why: 合入后再 task-start 同名分支会从新 main 长出第二段历史并覆盖已合入任务卡
(2026-10-05 EXT-1 复核轮实测,两轮证据差点丢失);原校验只看本地分支能否创建。
Evidence: bash -n 通过;功能负例——start feature/ext-1-inproc-handler 被拒且无
worktree 副作用;make test 全链 exit 0;task-sync 基线 43d33aa。
Impact: 仅 scripts/task.sh cmd_start 增加已合入同名分支检查,其余子命令行为不变。
Refs: EXT-1 任务卡复核轮记录(.task/archive/feature-ext-1-inproc-handler.md)。
2026-10-05 12:30:25 +00:00
weichen 94f8d4760b Record the task card for feature-task-start-merged-guard 2026-10-05 12:28:26 +00:00