teamsmith 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
  3. package/skills/teamsmith/CHANGELOG.md +28 -0
  4. package/skills/teamsmith/SKILL.md +14 -7
  5. package/skills/teamsmith/extension/team-notify.ts +37 -6
  6. package/skills/teamsmith/extension/team.ts +438 -0
  7. package/skills/teamsmith/references/config.md +39 -6
  8. package/skills/teamsmith/references/migration.md +197 -47
  9. package/skills/teamsmith/references/protocol.md +176 -19
  10. package/skills/teamsmith/references/troubleshooting.md +124 -7
  11. package/skills/teamsmith/references/workflows.md +36 -2
  12. package/skills/teamsmith/scripts/lib/cmd-agents.sh +318 -23
  13. package/skills/teamsmith/scripts/lib/cmd-bootstrap.sh +2 -2
  14. package/skills/teamsmith/scripts/lib/cmd-config.sh +349 -67
  15. package/skills/teamsmith/scripts/lib/cmd-draft.sh +4 -4
  16. package/skills/teamsmith/scripts/lib/cmd-help.sh +677 -0
  17. package/skills/teamsmith/scripts/lib/cmd-init.sh +157 -5
  18. package/skills/teamsmith/scripts/lib/cmd-interrupt.sh +461 -0
  19. package/skills/teamsmith/scripts/lib/cmd-meeting.sh +2 -25
  20. package/skills/teamsmith/scripts/lib/cmd-project.sh +30 -103
  21. package/skills/teamsmith/scripts/lib/cmd-reap.sh +277 -0
  22. package/skills/teamsmith/scripts/lib/cmd-reply.sh +3 -3
  23. package/skills/teamsmith/scripts/lib/cmd-review.sh +175 -30
  24. package/skills/teamsmith/scripts/lib/cmd-status.sh +226 -17
  25. package/skills/teamsmith/scripts/lib/cmd-update.sh +36 -7
  26. package/skills/teamsmith/scripts/lib/cmd-watch.sh +564 -46
  27. package/skills/teamsmith/scripts/lib/common.sh +773 -48
  28. package/skills/teamsmith/scripts/lib/gate-lock.sh +544 -0
  29. package/skills/teamsmith/scripts/panel/draft-send.sh +11 -1
  30. package/skills/teamsmith/scripts/panel/panel.js +207 -207
  31. package/skills/teamsmith/scripts/panel/src/App.tsx +58 -21
  32. package/skills/teamsmith/scripts/panel/src/clipboard.ts +11 -5
  33. package/skills/teamsmith/scripts/panel/src/compose.ts +6 -3
  34. package/skills/teamsmith/scripts/panel/src/data.ts +11 -3
  35. package/skills/teamsmith/scripts/panel/src/layout.ts +209 -69
  36. package/skills/teamsmith/scripts/panel/src/main.tsx +33 -8
  37. package/skills/teamsmith/scripts/panel/src/strings/en.ts +39 -29
  38. package/skills/teamsmith/scripts/panel/src/strings/zh.ts +41 -31
  39. package/skills/teamsmith/scripts/panel/src/types.ts +28 -3
  40. package/skills/teamsmith/scripts/replies.mjs +4 -1
  41. package/skills/teamsmith/scripts/shim/tmux +18 -0
  42. package/skills/teamsmith/scripts/strings/commands.tsv +86 -0
  43. package/skills/teamsmith/scripts/strings/help.en.tsv +503 -0
  44. package/skills/teamsmith/scripts/strings/help.zh.tsv +489 -0
  45. package/skills/teamsmith/scripts/team +19 -6
  46. package/skills/teamsmith/templates/AGENTS.section.md.tmpl +8 -1
  47. package/skills/teamsmith/templates/config.sh.tmpl +20 -1
  48. package/skills/teamsmith/templates/pm-prompt.md.tmpl +21 -0
  49. package/skills/teamsmith/tests/bg-ledger-harness.mjs +464 -40
  50. package/skills/teamsmith/tests/bg-ledger.sh +168 -10
  51. package/skills/teamsmith/tests/checkout-shape-probe.sh +3 -1
  52. package/skills/teamsmith/tests/config-cli.sh +160 -14
  53. package/skills/teamsmith/tests/fixtures/delivery-truth-real/scenario.sh +7 -1
  54. package/skills/teamsmith/tests/fixtures/p287/lint-good.sh.in +3 -0
  55. package/skills/teamsmith/tests/fixtures/p287/lint-hardcoded.sh.in +3 -0
  56. package/skills/teamsmith/tests/fixtures/p287/lint-no-ns.sh.in +3 -0
  57. package/skills/teamsmith/tests/fixtures/p55/flip-p49.sh +18 -6
  58. package/skills/teamsmith/tests/flip-m33.sh +5 -3
  59. package/skills/teamsmith/tests/flip-m37.sh +4 -1
  60. package/skills/teamsmith/tests/flip-m4.3.sh +4 -1
  61. package/skills/teamsmith/tests/flip-m6.3.sh +4 -1
  62. package/skills/teamsmith/tests/flip-m6.5.sh +4 -1
  63. package/skills/teamsmith/tests/flip-m7.2.sh +4 -1
  64. package/skills/teamsmith/tests/flip-p158.sh +2 -1
  65. package/skills/teamsmith/tests/flip-p210.sh +4 -1
  66. package/skills/teamsmith/tests/flip-p217.sh +4 -1
  67. package/skills/teamsmith/tests/flip-p287-lock.sh +342 -0
  68. package/skills/teamsmith/tests/flip-p287-name.sh +279 -0
  69. package/skills/teamsmith/tests/flip-p304-read-side.sh +98 -0
  70. package/skills/teamsmith/tests/flip-p308-skip-not-pass.sh +151 -0
  71. package/skills/teamsmith/tests/flip-p309-p162-deep.sh +122 -0
  72. package/skills/teamsmith/tests/flip-p310-lock.sh +216 -0
  73. package/skills/teamsmith/tests/flip-p310-socket.sh +125 -0
  74. package/skills/teamsmith/tests/help-surface.sh +1664 -0
  75. package/skills/teamsmith/tests/install-shape.sh +279 -20
  76. package/skills/teamsmith/tests/key-replies-pty.sh +9 -10
  77. package/skills/teamsmith/tests/key-replies-ui.sh +0 -7
  78. package/skills/teamsmith/tests/key-replies.sh +240 -1
  79. package/skills/teamsmith/tests/ledger-ban.sh +5 -4
  80. package/skills/teamsmith/tests/ledger-claim.sh +2 -1
  81. package/skills/teamsmith/tests/lib/bounded-spin.sh +90 -0
  82. package/skills/teamsmith/tests/lib/model-policy.sh +4 -0
  83. package/skills/teamsmith/tests/lib/model-routing-flips.py +51 -0
  84. package/skills/teamsmith/tests/lib/reply-fixture.sh +4 -9
  85. package/skills/teamsmith/tests/lib/section-guard.sh +258 -13
  86. package/skills/teamsmith/tests/lib/tmp-root.sh +139 -27
  87. package/skills/teamsmith/tests/lib/tmux-cap.sh +10 -1
  88. package/skills/teamsmith/tests/lib/tmux-iso.sh +31 -13
  89. package/skills/teamsmith/tests/loop-inventory.tsv +59 -47
  90. package/skills/teamsmith/tests/panel-b2.sh +106 -3
  91. package/skills/teamsmith/tests/panel-b3-stub.sh +112 -4
  92. package/skills/teamsmith/tests/panel-b3.sh +175 -19
  93. package/skills/teamsmith/tests/panel-choices.sh +11 -6
  94. package/skills/teamsmith/tests/panel-cpu.sh +2 -1
  95. package/skills/teamsmith/tests/panel-knobs.sh +7 -1
  96. package/skills/teamsmith/tests/panel-p21.sh +156 -73
  97. package/skills/teamsmith/tests/panel-snapshots.sh +41 -225
  98. package/skills/teamsmith/tests/panel-strings.mjs +33 -18
  99. package/skills/teamsmith/tests/perf.sh +121 -30
  100. package/skills/teamsmith/tests/routes.sh +327 -93
  101. package/skills/teamsmith/tests/seat-interrupt.sh +1002 -0
  102. package/skills/teamsmith/tests/seat-visibility.sh +675 -0
  103. package/skills/teamsmith/tests/section-budgets.tsv +20 -10
  104. package/skills/teamsmith/tests/section-guard.sh +6 -1
  105. package/skills/teamsmith/tests/section-needs-audit.sh +24 -7
  106. package/skills/teamsmith/tests/section-paths.tsv +19 -13
  107. package/skills/teamsmith/tests/section-select.sh +8 -1
  108. package/skills/teamsmith/tests/slash-team-e2e.sh +323 -0
  109. package/skills/teamsmith/tests/slash-team.sh +617 -0
  110. package/skills/teamsmith/tests/smoke.sh +2972 -440
  111. package/skills/teamsmith/tests/task-model-routing.sh +507 -10
  112. package/skills/teamsmith/tests/tmp-hygiene.sh +782 -45
  113. package/skills/teamsmith/tests/tmux-identity-leak.sh +773 -0
  114. package/skills/teamsmith/tests/tmux-lint-legacy.txt +12 -18
  115. package/skills/teamsmith/tests/upgrade-recipe.sh +537 -0
  116. package/skills/teamsmith-init/SKILL.md +12 -12
  117. package/skills/teamsmith-init/references/bootstrap.md +3 -3
@@ -23,6 +23,10 @@
23
23
  # ✓3580 ✗1(只剩 0d 挂载形状)→ §51 的 container 列取这一轮。
24
24
  # 最终验收(补行后):FAST ✓2931 ✗0(11:55:31–12:07:37Z,load 7.3→4.9);全量 ✓3596 ✗0(12:07:37–12:32:17Z,load 4.9→4.8;
25
25
  # §51 用时 121s → host 列取 121s;band 仍由 container 的 127s 决定)。
26
+ # P311 追测(2026-10-17 · §32 ⑨ 接上 tests/tmux-identity-leak.sh 之后,tip aa2572f0):
27
+ # host:`bash skills/teamsmith/tests/smoke.sh --select 32` 跑两次,§32 = 35s / 35s(loadavg1 14.7 → 15.0 / 32 核),两次 ✓73 ✗0;
28
+ # container:localhost/teamsmith-gate:local(1d723525ee58,tmux 3.7b 在 /usr/local/bin),§32 = 27s(loadavg1 17.0 / 32 核),✓73 ✗0;
29
+ # ci 列留空(local 模式不 push)。接线前该段的带是 9.00s(P70 的八块、不含夹具);夹具本体单独 `--all` 实测 23s。
26
30
  0 · 临时仓库 0.02 60 0.02 10.6/?/14.0/10.5 0.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
27
31
  0b · skill 可被 pi 解析器加载 0.19 60 0.19 10.6/?/14.0/10.5 0.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
28
32
  0c · 静态检查(函数结尾的 set -e 陷阱) 0.04 60 0.04 10.6/?/14.0/10.5 0.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
@@ -31,7 +35,7 @@
31
35
  0f · 超时段落:点名 + 停跑 + 现场(P70) 5.00 60 5.00 10.6/?/14.0/10.5 5.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
32
36
  0g · 等待有界:到顶归因 + ticks(P70) 1.00 60 0.00 10.6/?/14.0/10.5 1.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
33
37
  0h · tmux 隔离前置:三条件 + 硬停 + 影子(P162) 1.00 60 - - 1.00 - - P162 实测:容器 gate 镜像 FAST 全量 run 两轮 0h=1s(2026-10-02);host 列留空(P162 期间门禁进容器,host 未测)· ×4 · floor 60
34
- 0i · 运行指纹:树在跑动中被改 → 本次运行无效(P158) 15.00 60 - - 15.00 - - P158 实测:容器 gate 镜像 FAST 单段 `--select 0i` = 15s(2026-10-03,loadavg1 1.4/32 核;段内跑夹具两次:四条用例 + 牙齿)· ×4 · floor 60
38
+ 0i · 运行指纹:树在跑动中被改 → 本次运行无效(P158) 26.00 104 26.00 9.7/-/-/- 15.00 - - P158 实测:容器 gate 镜像 FAST 单段 `--select 0i` = 15s(2026-10-03,loadavg1 1.4/32 核)· P310 apply 实测(2026-10-17,本 worktree,FAST `--select 0i`,loadavg1 9.7/32 核):host=[26s] 取最差(新增 tests/flip-p310-socket.sh 两条腿 ~7s)· ×4=104 · floor 60
35
39
  1 · doctor(未初始化应失败) 4.00 60 4.00 10.6/?/14.0/10.5 4.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
36
40
  1b · bootstrap(一条命令初始化) 1.00 60 1.00 10.6/?/14.0/10.5 1.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
37
41
  1c · bootstrap 的 PM 窗口名:约定不是现场(M11) 16.00 64 9.00 10.6/?/14.0/10.5 16.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
@@ -57,7 +61,7 @@
57
61
  7b · digest 警告未入账的复验/报告记录(M31) 5.00 60 5.00 10.6/?/14.0/10.5 5.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
58
62
  8 · 从 agent worktree 调用 CLI 1.00 60 0.23 10.6/?/14.0/10.5 1.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
59
63
  9 · agent 提交 + 报告 0.02 60 0.02 10.6/?/14.0/10.5 0.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
60
- 10 · review(独立 worktree + 门禁) 1.00 60 1.00 10.6/?/14.0/10.5 1.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
64
+ 10 · review(独立 worktree + 门禁) 15.00 60 15.00 10.6/?/14.0/10.5/9.7 1.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · P310 apply 实测(2026-10-17,本 worktree,FAST `--select 10`,loadavg1 9.7/32 核):host=[15s](新增 tests/flip-p310-lock.sh 三条腿)取最差 · ×4 · floor 60
61
65
  10b · 复验证据完整性(记录必须描述真的验过什么) 12.00 60 10.00 10.6/?/14.0/10.5 12.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
62
66
  10c · M25 复验基建:门禁不继承 TEAM_REVIEW_* + 后台进程组里读 tty 的病 2.00 60 2.00 10.6/?/14.0/10.5 1.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
63
67
  11 · 收尾(merge 已移除,close 保留) 3.00 60 3.00 10.6/?/14.0/10.5 3.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
@@ -109,8 +113,8 @@
109
113
  30 · 代号必须带名字(M16) 2.00 60 2.00 10.6/?/14.0/10.5 2.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
110
114
  31 · tmux 接触面:隔离 lint + 容器跑法(M28) 15.00 60 15.00 10.6/?/14.0/10.5 5.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
111
115
  31c · tmux 运行时闸门:按目标判定 + argv token + 注入(M36/M67) 5.00 60 5.00 10.6/?/14.0/10.5 4.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
112
- 32 · 身份 = 运行时目录(M40:继承的 TEAM_* 不许静默赢过 cwd) 9.00 60 9.00 10.6/?/14.0/10.5 8.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
113
- 33 · 项目契约的读写面(P22/B1:team config 单一写入口 + schema) 41.00 164 38.00 10.6/?/14.0/10.5 41.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
116
+ 32 · 身份 = 运行时目录(M40:继承的 TEAM_* 不许静默赢过 cwd) 35.00 140 35.00 14.7/15.0/? 27.00 17.0 - P311 实测(§32 ⑨ 接上 tests/tmux-identity-leak.sh 之后):host 两次 = 35s/35s(aa2572f0,loadavg1 14.7→15.0,`smoke.sh --select 32`,✓73 ✗0),container = 27s(teamsmith-gate:local 1d723525ee58,✓73 ✗0);band = max(35,27) = 35 → ×4 = 140 · 旧值 9.00/60 是 P70 接线前(八块、无夹具)的读数
117
+ 33 · 项目契约的读写面(P22/B1:team config 单一写入口 + schema) 300.00 1200 300.00 10.6/?/14.0/10.5 41.00 12.9 - P316 前抬带到 300s:真实用时未量准(多次被他人负载打断),只为让时间不再阻塞发布;机制本身由 P316 退役(届时整表删除)
114
118
  12e · change 视图(P24/B1:严格头部读取 + 就绪判据) 9.00 60 9.00 10.6/?/14.0/10.5/3.6/2.4 4.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60;P244(2026-10-13):§12e 追加 squash 合并夹具(真 git 造四条形状)后 host FAST=7s(loadavg1 3.6/32 核;容器列保留历史值、未重测)→ host 3.00→7.00、band 4.00→7.00、budget 60 不变;返修轮次 1 再加奇特路径夹具(4 类名字 + 换行、真 git 分支)后 host FAST=9s(loadavg1 2.4/32 核)→ host 7.00→9.00、band 7.00→9.00、budget 60 不变
115
119
  12f · change 归组(P45/B2:digest 的 [6] 段 + 面板 token) 10.00 60 9.00 10.6/?/14.0/10.5 10.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
116
120
  12g · 派单锚点(P24/B3:一个 change id + change-less 的锚) 6.00 60 6.00 10.6/?/14.0/10.5 6.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
@@ -118,13 +122,15 @@
118
122
  12i · 按 change 判独立性(P24/B5) 8.00 60 7.00 10.6/?/14.0/10.5 8.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
119
123
  12j · 归档前提(P24/B6) 8.00 60 7.00 10.6/?/14.0/10.5/5.9/4.0 8.00 12.9/3.4 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · P209 追加清单夹具后重测(band 3.00→8.00,budget 60 不变):host FAST=7s×2(12:09/12:10Z · loadavg1≈5.9/4.0)、容器 FAST=8s(12:13Z · loadavg1≈3.4)· ×4 · floor 60
120
124
  12k · 模板与文档(P24/B7) 1.00 60 1.00 10.6/?/14.0/10.5 1.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
121
- 34 · 门禁锁:排队/运行分开记账(P26/G1:verification#The hard timeout covers the gate run, not the queue) 48.00 192 48.00 10.6/?/14.0/10.5 47.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
122
- 34b · 门禁锁排队守卫:超上限要大声失败并点名持有者(P66) 5.00 60 5.00 10.6/?/14.0/10.5 5.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
125
+ 34 · 门禁锁:排队/运行分开记账(P26/G1:verification#The hard timeout covers the gate run, not the queue) 52.00 208 52.00 10.6/?/14.0/10.5/16.6 47.00 12.9 - P281 apply 实测(2026-10-15,本 worktree,私有外层锁,loadavg1 16.6/32 核):host=[P281a=52s,P281b=52s] 取最差;旧值 48.00 保留在 container 列(47.00)· ×4 · floor 60
126
+ 34b · 门禁锁排队守卫:超上限要大声失败并点名持有者(P66) 59.00 236 59.00 10.6/?/14.0/10.5/16.6 5.00 12.9 - P281 apply + 返修轮次 1 实测(2026-10-15,本 worktree,私有锁):host=[apply P281a=30s,P281b=39s,P281c=41s;返修 iter1=59s,iter2=58s] 取最差 59.00(返修新增红侧 ⑫/⑬ 与 ⑧ 的三向对齐);旧值 5.00 保留在 container 列 · ×4=236 · floor 60
127
+ 34c · 命名面:运行条目点开头或带 ns,平铺家族够不着(P287 · verification#A fixture's temp root…) 30.00 120 30.00 10.6/?/14.0/10.5/16.6 - - - P288 apply 实测(2026-10-16,本 worktree,私有外层锁):host=[34c=25s] 取最差;· ×4 · floor 60(预算只判 liveness)
128
+ 34d · 身份面:锁被删/被换 → 一行点名 + 证据 + 停跑;入场检查;等待者(P287 · verification#The gate's lock…) 240.00 960 240.00 10.6/?/14.0/10.5/16.6 - - - P288 apply 实测(2026-10-16,本 worktree,私有外层锁):host=[34d=156s] 取最差;· ×4 · floor 60(预算只判 liveness)
123
129
  35 · 门禁只判正确性:性能判定守卫 + 旋钮完整性(M58 · perf-suite-split) 1.00 60 1.00 10.6/?/14.0/10.5 1.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
124
130
  37 · 读路径性能:根一次解析 + 单进程扫描(M50) 17.00 68 17.00 10.6/?/14.0/10.5 17.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
125
131
  38 · 设置选项(M55:choices 读 / 一致性走查 / 选择器夹具) 312.00 1248 312.00 10.6/?/14.0/10.5 309.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
126
132
  39 · npm CLI 与项目 skill 安装(P40:包装器 / 冲突表 / doctor 行) 39.00 156 39.00 10.6/?/14.0/10.5 35.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
127
- 40 · 临时根纪律(P53:TMPDIR / owned 家族 / 泄漏断言 / lint) 20.00 80 13.00 3.3 20.00 3.6 - P223 追测:§40 加两个嵌套探针(真机器锁 re-exec 的 --keep 守卫)→ host 选段(FAST)=13s(loadavg1 3.3) / 容器全量=20s(loadavg1 3.6),band 取最差;旧的 2.00 来自 P70 实测(host=[P56fast,P56full,FAST2,full1] container=[ctr1])· ×4 · floor 60
133
+ 40 · 临时根纪律(P53:TMPDIR / owned 家族 / 泄漏断言 / lint) 51.00 204 42.00 10.0/13.7/11.5/10.0 51.00 - - P314 重测(2026-10-18,本 worktree):改动前树 cd2738a3 = 31s(loadavg1 9.7/32 核)/ 本分支 = 37s·42s·41s·42s(loadavg1 12.2→13.7、14.1→11.5、10.4→10.0,`--select 40`,✓37 ✗0)/ 容器 gate 镜像 1d723525ee58 = 51s(同一命令,✓37 ✗0;同机 loadavg1 ~10.4)—— band 取最差 51s · ×4 = 204 · floor 60;旧 20.00/80 是 P223 的读数(host 13s / 容器 20s,不含 P314 加的三个夹具:doctor 只读、docs-check、开跑行来源+红侧)
128
134
  41 · pane 留存:死 pane 是座位状况,不是活座位(P55 / agent-pane-survivability) 47.00 188 46.00 10.6/?/14.0/10.5 47.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
129
135
  42 · P67 输入框判据:0.87.0 的边框邻行按内容读(光标锚定 + 状态行形状才排除) 6.00 60 6.00 10.6/?/14.0/10.5 5.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
130
136
  43 · P75 status 尾部现场:尾空行裁剪(P65 的 F1) 2.00 60 2.00 10.6/?/14.0/10.5 2.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
@@ -135,11 +141,13 @@
135
141
  48 · P91 合并后的「分支又动了」核对(D49 的另一半) 2.00 60 2.00 10.6/?/14.0/10.5 2.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
136
142
  49 · P94 现场行数为 0:按配置不打印画面(P88 的 F1) 2.00 60 2.00 10.6/?/14.0/10.5 1.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
137
143
  50 · P95 合并基准 = 该任务的 squash 提交(解冲突不再假红) 2 60 2 5.9/9.8 2 9.4/8.1 - P70 F1 实测(merge main 后):host=[full1m] container=[ctr1m] 取最差 · ×4 · floor 60
138
- 51 · 用法诚实性:help 的每条承诺与名册的每条路线都有夹具兑现(P99) 231 924 231 6.7/32 127 9.4/8.1 - P150 合并 main 后去重(两条并存 → band==max 一条):host=[P140 select 51:routes.sh 全量 224.5s + config-cli.sh = 231s;P70 F1:full1m 118→最终 121] 取最差 231;container=[ctr1m 123, ctr2m 127] 取 127 · ×4 · floor 60
144
+ 51 · 用法诚实性:help 的每条承诺与名册的每条路线都有夹具兑现(P99) 1300 5200 1300 6.6/32 - - - P260(cli-help)按新面重估:help-surface.sh --all(465 条断言,53 页渲染 + 44 条探针)≈350s + routes.sh(Walk A 扩面到菜单/组页/命令页 53 页 + 7 条红侧)≈900s + config-cli.sh ≈10s;旧值 231s/924s 是 P99 只有单一平铺帮助面、且 §51 不含新夹具时的实测。container 未测 → -。整段实测由 P260 的门禁运行确认后收紧
139
145
  54 · 派单摩擦:一次拒绝列全 + 覆盖审计 + 席位预提示(P140) 12 60 12 8.1/32 - - - P140 实测(select 54 两次,loadavg1 6.7/32):host=5s;P151 追加 F1–F5/W3 腿后重测(select 54 两次,loadavg1 8.1/32):host=[12s, 12s](带内 ✓91 ✗0);容器/CI 未测 · ×4 · floor 60
140
146
  57 · delivery-truth:真帧几何 / 队列阻碍 / notify 三处同名(P147) 26 110 26 - - - - P147 实测(FAST §57 = 26s 上取整 26,host loadavg1 1-2;×4 取 104 → floor… 见预算公式取 110);P163 追加 foreign 段(一两秒级)后仍远低于 110
141
147
  58 · 信号纪律:闸门 / 作业 pid / lint(P159) 7 60 - - 7 -/-/-/- - P159 实测(container=teamsmith-gate:local 跑 smoke --select 58,段用时 7s;纯逻辑段:perl lint + 两只夹具 + harness S13)· ×4 · floor 60
142
148
  14d · P70 本套自述对账(段落账目 + 无误判) 0.00 60 0.00 10.6/?/14.0/10.5 0.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
149
+ 51b · 孤儿席位进程普查(P276 · change: orphan-visibility) 33 132 33 2.1/32 - - - P276(orphan-visibility)实测(2026-10-15,loadavg1 2.1/32 核):FAST 档 12.1s(纯逻辑组,不启真进程)+ 完整档 25.1s(含 reap 组真进程)与逐条红侧 7.7s ≈ 33s;旧值 TBD 由本次 apply 的门禁运行回填。container 未测 → -
150
+ 51c · 席位长回合的打断(P292 · change: seat-interrupt-entry) 40 160 40 10/32 - - - P292(seat-interrupt-entry)实测(2026-10-16,loadavg1 10/32 核,含新增 hygiene 组):完整档 20.8s(含 live 组真 tmux server)+ 逐条红侧 17.3s ≈ 38s → band 40;FAST 档 21s(桩 tmux + 真进程,不启真 server、不建变异树);container/CI 未测 → -
143
151
  52 · 席位死因:闭集分类 + 当前一次死亡 + 恰好一次通报(P113) 1 60 1 - 1 - - P113 实测(占位,测量后填):host=[FAST §52] container=[未测] ci=[未测] · ×4 · floor 60
144
152
  53 · 等待引擎长帧:命中/缺失不被管道缓冲吃掉(P127) 9 60 9 5.3/32 - - - P127 实测(FAST §113 = 9s;loadavg1 5.3/32 核,2026-09-29);×4 · floor 60
145
153
  15 · 完成 0.00 60 0.00 10.6/?/14.0/10.5 0.00 12.9 - P70 实测:host=[P56fast,P56full,FAST2,full1] container=[ctr1] 取最差 · ×4 · floor 60
@@ -148,7 +156,9 @@
148
156
  56 · meeting-liveness 真 tmux:敲门 / 排水 / 每方窗口(P139) 60 240 60 -/-/-/- - - - P139 实测(占位,出数后改):host=[P139 full §55] container=[未测] ci=[未测] · ×4 · floor 60
149
157
  59 · pulse-nudge-key:叫醒键按类别集合(P174) 8 60 - - 8 -/-/-/- - P174 实测(container=teamsmith-gate:local 跑 smoke --select 59,段用时 7–8s;纯逻辑四档 + observers 私有仓库真 CLI)· ×4 · floor 60
150
158
  60 · 账本禁令:家目录 / 私有网段 / 用户名 / 他项目名(P212 · D94) 10 60 10 13.6/12.7/13.2 1 - - P212 实测(2026-10-04,teamsmith-gate:local):host=[全量 FAST §60 = 1s(17:02,tip 98eb798b)+ --select 60 = 1s(16:16)] container=[全量 FAST §60 = 0s(16:40,6165708c)与 1s(17:1x,98eb798b)取最差] ci=[未测] · P239 实测(2026-10-13,host,loadavg1 13.6/32 核):host=[--select 60 = 10s = 新增 P239 归属与红侧夹具 8s(两次 --check + 三次 --paths)+ P212 自检/影子/真实扫描 2s] · ×4 · floor 60
151
- 61 · 任务类别模型路由:分组前门(P228 · task-model-routing) 513 2052 513 13.2/13.4/15.6 - - - P238 实测(2026-10-13,tip a3b3f71 之前一笔,选段 61,61b):全量档 13 组,段内 ✓ 用时 513s(FAST 档 12 组 164s,只作参考);取全量档 · ×4 · floor 60
152
- 61b · 任务类别模型路由:翻转变异自检(P228 · task-model-routing) 5000 20000 4900 16.3/?/? 5000 3.4/4.9/6.2 - P238 实测(2026-10-13):`task-model-routing.sh --flip` 独立跑 4883s(loadavg1 16.3,同机另有别的席位在跑)+ 段内包装 ≈ 4900s;V28 独立复验(2026-10-13,容器 localhost/teamsmith-gate:local,`--select 61b --keep`,同机 loadavg 3.4→4.9)实测 4946s(✓1 ✗0)—— 已越过 4900 的实测带,故按 V28 的建议抬到 ≥5000s(P242 顺手抬,本表在本任务写集合内);22 条臂各跑一遍分组,所以比分组的全量还长;取本轮 · ×4 · floor 60
159
+ 61 · 任务类别模型路由:分组前门(P228 · task-model-routing) 525 2100 525 13.2/13.4/15.6 - - - P238 实测(2026-10-13,tip a3b3f71 之前一笔,选段 61,61b):全量档 13 组,段内 ✓ 用时 513s(FAST 档 12 组 164s,只作参考);P261(2026-10-14):全量档加 heal/adopt/updatecheck 三组(真 tmux + 假 PM),三组实测 9.5s(RESULT pass=141 fail=0)→ 513+9.5≈523,取整 525;取全量档 · ×4 · floor 60;P261 返修轮次 1(V35 F1/F2/O1):init 组新增 20 条断言 + 1 条粘贴现场(独立实测整组 5s,RESULT pass=68 fail=0)→ band 不动
160
+ 61b · 任务类别模型路由:翻转变异自检(P228 · task-model-routing) 5000 20000 4900 16.3/?/? 5000 3.4/4.9/6.2 - P238 实测(2026-10-13):`task-model-routing.sh --flip` 独立跑 4883s(loadavg1 16.3,同机另有别的席位在跑)+ 段内包装 ≈ 4900s;V28 独立复验(2026-10-13,容器 localhost/teamsmith-gate:local,`--select 61b --keep`,同机 loadavg 3.4→4.9)实测 4946s(✓1 ✗0)—— 已越过 4900 的实测带,故按 V28 的建议抬到 ≥5000s(P242 顺手抬,本表在本任务写集合内);22 条臂各跑一遍分组,所以比分组的全量还长;取本轮 · ×4 · floor 60;P261 返修轮次 1:新增第 23 条臂 legacy-route-placeholder(组 init;独立实测臂成本 ≈ 5s:整棵 skill 副本 + init 组)→ band 5000 不动
153
161
  62 · 关键回复存储与 CLI(change: pulse-key-replies · P234) 129 516 129 -/19/14.0/12.0 - - - P234 apply 实测(2026-10-13):host=[段 61 在 smoke --select 61,62 里 129s(load 14,168 条断言)] band=200(实测上取整)· ×4 = 800 · floor 60 · PM 修正(2026-10-14):band_s 必须等于 max(host/container/ci)(守卫规则),作者原写 200(实测上取整)被判不符;按实测 host 129 记,budget=max(129×4,60)=516
154
162
  63 · 关键回复面板第 5 页(change: pulse-key-replies · P234) 324 1296 324 - - - - P234 apply 实测(2026-10-13):段内只跑读数面快组 + 真 pty 全套;host=[段 62 = 324s(2026-10-13 10:07 的选段运行,快组 + pty 全套;负载高时全套四组曾到 900s 超时,故 62 只跑快组)] band=420(324s 上取整含余量)· ×4 = 1680 上取整 1700 · floor 60 · PM 修正(2026-10-14):三个实测列全「-」会被守卫判「没有实测基础」;按作者报告 §10:07 那次 324s 记 host_s=324 → band=324、budget=max(324×4,60)=1296(PM 自己的容器合并跑测到 194s,取保守的 324)
163
+ 64 · 升级配方:§6 每一步都可证伪(P255 · upgrade-recipe) 120 480 120 11.0/32 - - - P255 apply 实测(2026-10-15,host):全量档(doc+walk+identity+rollback+selftest,86 条断言)8.1s(loadavg1 11.0/32 核)、identity 组(连带 walk,71 条)6.4s、FAST 档(doc+selftest,11 条)0.1s;同一条命令在本机 loadavg1 14–22 时也在 400s 内跑完(未单独计时),故 host_s 取 120 作为重活上界(不是均值)→ budget = max(120×4, 60) = 480 · ×4 · floor 60
164
+ 65 · /team 斜杠命令(change: slash-team · P270) 44 176 31 46.1 44 23.6 - P270 apply 交付轮实测(2026-10-16):段内 = tests/slash-team.sh --all --flip(151 断言 + 8 条翻转臂)+ tests/slash-team-e2e.sh --flip(真 pi RPC ×3 + 记录桩,34 断言)。band=44=max(host 31s,load1 46.1;container 44s,load1 23.6,固定镜像同镜三次 40/42/44s)—— e2e 段起真 pi/node 子进程,对负载敏感;旧值 15 与它带出的 budget 60 一并作废 · ×4=176 · floor 60
@@ -13,6 +13,8 @@
13
13
  # --loop-check:`*/​*.sh` + `lib/*.sh` 里的每个 `while`+`sleep` 循环,按**文件内出现顺序**
14
14
  # 与 `loop-inventory.tsv` 的行一一对应(锚点必须是 while 原文的子串;`cap=` 行还要求
15
15
  # 循环体里能找到那个上限字面量)。新循环、丢上限、顺序变化都会点名 file:line 变红。
16
+ # 清单里的文件不在扫描面(`--tree` 给的是一份缺文件的副本 / 文件被删 / 已经没有循环)也算
17
+ # 红 —— 否则「副本里看不见那个文件」就会静默地让清单与真树的不同步永远看不见(P313 · V58)。
16
18
  set -uo pipefail
17
19
 
18
20
  here="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
@@ -206,7 +208,10 @@ loop_check() {
206
208
  total_det++
207
209
  }
208
210
  for (i = 1; i <= nf; i++) { curfile = order[i]; flush_file() }
209
- for (ff in inv_files) if (!(ff in det_files)) printf "note: 清单里的 %s 不在扫描面(过期行?)\n", ff
211
+ for (ff in inv_files) if (!(ff in det_files)) {
212
+ printf "bad: 清单里的 %s 不在扫描面(文件被删 / 没被拷进 --tree / 已经没有 while+sleep 循环)—— 过期行,或者这是一份看不见它的副本\n", ff
213
+ problems++
214
+ }
210
215
  printf "ok: 扫描 %d 行清单 / %d 个 while+sleep 循环,配平 %d 个\n", total_inv, total_det, total_matched
211
216
  exit(problems > 0 ? 1 : 0)
212
217
  }
@@ -7,10 +7,13 @@
7
7
  # 为什么要逐键:`--paths` 的结论是若干键的并集,一个键缺前提会被别的键的绿遮住;
8
8
  # 逐键跑才能把「这条 needs 够不够」钉在数据上(P112 §5.2:3b 缺 5、6 缺 5、10 缺 4b/5/9、28 缺 26)。
9
9
  #
10
- # 用法:section-needs-audit.sh [--keys <k1,k2,…>] [--root <树>] [--keep]
10
+ # 用法:section-needs-audit.sh [--keys <k1,k2,…>] [--root <树>] [--keep] [--live]
11
11
  # --keys 只审计这几个键(默认:表里的全部键)
12
12
  # --root 在另一棵树上跑(默认本脚本所在的仓库;夹具/复验用)
13
13
  # --keep 保留日志与临时根(打印路径),便于诊断
14
+ # --live 这遍不设 TEAM_SMOKE_FAST(真进程半段照跑)。默认的 FAST 会把 `fast_skip` 的真 pane
15
+ # 半段整段跳过,于是「选段缺席 → 真 pane 前提不在 → 级联假红」这类 needs 缺口**看不见**
16
+ # (P297 实测:--select 42 在 FAST 下绿、在真跑下 ✓150 ✗9)。慢;验真进程前提时用它。
14
17
  # 退出码:0 = 被判定的键全部绿;1 = 有键红 / 没跑;2 = 用法或环境错误。
15
18
  #
16
19
  # 纪律:**顺序执行**。夹具会在树内注入→还原;并发跑同一棵树会互相掀桌子
@@ -21,8 +24,9 @@ here="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
21
24
  ROOT="${TEAM_NEEDS_AUDIT_ROOT:-$(cd -P "$here/../../.." && pwd)}"
22
25
  KEYS=""
23
26
  KEEP=0
27
+ LIVE=0
24
28
 
25
- usage() { sed -n '2,21p' "$0"; }
29
+ usage() { sed -n '2,20p' "$0"; }
26
30
  while [ $# -gt 0 ]; do
27
31
  case "$1" in
28
32
  --keys) shift; [ $# -gt 0 ] || { printf 'section-needs-audit: --keys 需要值\n' >&2; exit 2; }; KEYS="$1"; shift ;;
@@ -30,11 +34,18 @@ while [ $# -gt 0 ]; do
30
34
  --root) shift; [ $# -gt 0 ] || { printf 'section-needs-audit: --root 需要目录\n' >&2; exit 2; }; ROOT="$1"; shift ;;
31
35
  --root=*) ROOT="${1#*=}"; shift ;;
32
36
  --keep) KEEP=1; shift ;;
37
+ --live) LIVE=1; shift ;;
33
38
  -h|--help) usage; exit 0 ;;
34
39
  *) printf 'section-needs-audit: 未知参数 %s(用法见 --help)\n' "$1" >&2; exit 2 ;;
35
40
  esac
36
41
  done
37
42
 
43
+ # P287:临时根名字里的项目命名空间(ns)的唯一实现在 scripts/lib/common.sh —— 独立跑时补一次。
44
+ if ! declare -F team_project_ns >/dev/null 2>&1; then
45
+ [ -f "$here/../scripts/lib/common.sh" ] && . "$here/../scripts/lib/common.sh"
46
+ fi
47
+ section_needs_ns() { team_project_ns 2>/dev/null || printf 'nosig-00000000\n'; }
48
+
38
49
  ROOT="$(cd -P "$ROOT" 2>/dev/null && pwd)" || { printf 'section-needs-audit: --root 目录不存在\n' >&2; exit 2; }
39
50
  SUITE="$ROOT/skills/teamsmith/tests/smoke.sh"
40
51
  SEL="$ROOT/skills/teamsmith/tests/section-select.sh"
@@ -45,7 +56,7 @@ SEL="$ROOT/skills/teamsmith/tests/section-select.sh"
45
56
 
46
57
  # owned 家族口径(section 40 的 lint):根建在 ${TMPDIR:-/tmp}/teamsmith-<kind>.XXXXXX 下;
47
58
  # 长度仍然够短 —— 嵌套 run 的私有 tmux socket = len($TMP)+22,本例约 90 < 107(AF_UNIX 上限)。
48
- TMPROOT="$(mktemp -d "${TMPDIR:-/tmp}/teamsmith-needs-audit.XXXXXX")" || { printf 'section-needs-audit: 建不了临时根\n' >&2; exit 2; }
59
+ TMPROOT="$(mktemp -d "$(team_tmp_root)/teamsmith-needs-audit-$(section_needs_ns).XXXXXX")" || { printf 'section-needs-audit: 建不了临时根\n' >&2; exit 2; }
49
60
  if [ "$KEEP" = 1 ]; then
50
61
  printf 'section-needs-audit: 日志留在 %s\n' "$TMPROOT"
51
62
  else
@@ -62,18 +73,24 @@ own_fail() {
62
73
  }
63
74
 
64
75
  N=0; NPASS=0; NBAD=0
65
- printf '== needs 逐键审计 ==\n'
76
+ printf '== needs 逐键审计(%s) ==\n' "$([ "$LIVE" = 1 ] && printf '真跑' || printf 'FAST')"
66
77
  printf '树:%s\n' "$ROOT"
67
78
  for k in $(printf '%s' "$KEYS" | tr ',' ' '); do
68
79
  [ -n "$k" ] || continue
69
80
  N=$((N + 1))
70
- d="$TMPROOT/$k"; log="$TMPROOT/$k.log"
71
- mkdir -p "$d"
81
+ log="$TMPROOT/$k.log"
82
+ # 每个键的日志留在 $TMPROOT(按 key 命名);**子门禁的 TMPDIR 交回调用者**,不再套一层 $TMPROOT/<key>:
83
+ # 本项目的 ns 较长,套一层后门禁自己的私有 socket(${TMPDIR}/teamsmith-smoke-<ns>.XXXXXX/tmux/
84
+ # tmux-<uid>/default)会到 120 字节 > AF_UNIX 上限 107 → §0c 前置硬停 exit 2,**每个键都报
85
+ # 「没有收口行」**(P297 实测:修前 --keys 0d/42 全 bad,而门禁本身是绿的)。子门禁自己会在
86
+ # <解析出的临时根>/teamsmith-smoke-<ns>.XXXXXX 建根并在收尾收干净,不需要借用审计的根。
87
+ d="$(team_tmp_root)"
88
+ team_tmp_root_prepare >/dev/null 2>&1 || true
72
89
  ( cd "$ROOT" && env -u TEAM_ROOT -u TEAM_MAIN_ROOT -u TEAM_PROJECT -u TEAM_SESSION -u TEAM_AGENT_MODEL \
73
90
  -u TEAM_SKILL_DIR -u TEAM_DOCS_DIR -u TEAM_AGENT -u SMOKE_TMP_RUN_ID -u SMOKE_TMP_LEDGER \
74
91
  -u TEAM_SMOKE_KEEP -u TEAM_TMP_KEEP -u SMOKE_SEL_CHILD -u SMOKE_SEL_SKILL_DIR \
75
92
  -u SMOKE_SEL_DECISION -u SMOKE_SEL_COPY -u TEAM_SMOKE_LOCK_WAIT \
76
- TMPDIR="$d" TEAM_SMOKE_FAST=1 TEAM_SMOKE_NO_LOCK=1 \
93
+ TMPDIR="$d" TEAM_SMOKE_FAST="$([ "$LIVE" = 1 ] && printf 0 || printf 1)" TEAM_SMOKE_NO_LOCK=1 \
77
94
  bash "$SUITE" --select "$k" ) >"$log" 2>&1
78
95
  rc=$?
79
96
  line="$(own_line "$log" "$k")"; f="$(own_fail "$line")"
@@ -25,11 +25,11 @@
25
25
  0b 0b · skill 可被 pi 解析器加载 skills/teamsmith/tests/skill-load.mjs - 段内点名 1 条真实路径 token
26
26
  0c 0c · 静态检查(函数结尾的 set -e 陷阱) skills/teamsmith/tests/smoke.sh skills/teamsmith/scripts/team - 段内点名 5 条真实路径 token
27
27
  0d 0d · 冲突标记守卫(受版本控制的文件里不许有冲突标记) - - 前导段(扫全树的冲突标记守卫)
28
- 0e 0e · 段落自述:看门狗 / 预算表 / 循环清单(P70) skills/teamsmith/tests/smoke.sh skills/teamsmith/tests/section-guard.sh skills/teamsmith/tests/lib/section-guard.sh skills/teamsmith/tests/section-budgets.tsv skills/teamsmith/tests/loop-inventory.tsv skills/teamsmith/tests/lib/loop-scan.awk skills/teamsmith/tests/gate-guard.sh skills/teamsmith/tests/panel-knobs.sh skills/teamsmith/tests/perf.sh skills/teamsmith/tests - P70(gate-section-accounting)报文里的行(当时不在本表);P98 F2 合并 main 后按已有判据补齐——段内点名 13 条真实路径 token;改守卫/预算表/循环清单/第四向守卫都要重跑这段模块自检
28
+ 0e 0e · 段落自述:看门狗 / 预算表 / 循环清单(P70) skills/teamsmith/tests/smoke.sh skills/teamsmith/tests/section-guard.sh skills/teamsmith/tests/lib/section-guard.sh skills/teamsmith/tests/section-budgets.tsv skills/teamsmith/tests/loop-inventory.tsv skills/teamsmith/tests/lib/loop-scan.awk skills/teamsmith/tests/gate-guard.sh skills/teamsmith/tests/panel-knobs.sh skills/teamsmith/tests/perf.sh skills/teamsmith/tests skills/teamsmith/tests/tmp-hygiene.sh - P70(gate-section-accounting)报文里的行(当时不在本表);P98 F2 合并 main 后按已有判据补齐——段内点名 13 条真实路径 token;改守卫/预算表/循环清单/第四向守卫都要重跑这段模块自检
29
29
  0f 0f · 超时段落:点名 + 停跑 + 现场(P70) skills/teamsmith/tests/smoke.sh skills/teamsmith/tests/lib/section-guard.sh - P70 报文里的行;P98 F2 补齐——嵌套跑真 smoke(私有 TMPDIR / 私有身份 / TEAM_SMOKE_FIXTURE),造超时要动的是守卫与门禁本体
30
30
  0g 0g · 等待有界:到顶归因 + ticks(P70) skills/teamsmith/tests/lib/section-guard.sh - P70 报文里的行;P98 F2 补齐——等待助手 section_guard_wait 定义在守卫模块里
31
31
  0h 0h · tmux 隔离前置:三条件 + 硬停 + 影子(P162) skills/teamsmith/tests/smoke.sh skills/teamsmith/tests/lib/tmux-iso.sh skills/teamsmith/tests/lib/tmux-iso-probe.sh skills/teamsmith/tests/lib/tmux-iso-call-probe.sh skills/teamsmith/scripts/shim/tmux skills/teamsmith/scripts/lib/tmux-argv.sh - P162(infra):前置库/探针/包装体都是这段的产物;P180:动词按 argv 解析 + 壳函数(tmux/command)住在 lib 里,调用形态探针也是这段的产物(改它们或 0c 的隔离前置都要重跑这段);P188:分类抽成共享文件(scripts/lib/tmux-argv.sh),本段与运行时闸门同源(链/别名/builtin command 的形态也在本段)
32
- 0i 0i · 运行指纹:树在跑动中被改 → 本次运行无效(P158) skills/teamsmith/tests/smoke.sh skills/teamsmith/tests/flip-p158.sh - P158(infra):实现写在 smoke.sh 前导/收尾(开跑指纹 + 收尾复测),段内跑夹具本体 tests/flip-p158.sh(变体树里的真门禁运行:四条用例 + 牙齿)
32
+ 0i 0i · 运行指纹:树在跑动中被改 → 本次运行无效(P158) skills/teamsmith/tests/smoke.sh skills/teamsmith/tests/flip-p158.sh skills/teamsmith/tests/flip-p310-socket.sh - P158(infra):实现写在 smoke.sh 前导/收尾(开跑指纹 + 收尾复测),段内跑夹具本体 tests/flip-p158.sh(变体树里的真门禁运行:四条用例 + 牙齿);P310 ①:同一段跑 tests/flip-p310-socket.sh(深嵌套 TMPDIR 下 socket ≤107 / 放回临时根下必须点名 126 字节)
33
33
  1 1 · doctor(未初始化应失败) skills/teamsmith/scripts/lib/cmd-project.sh skills/teamsmith/scripts/team - 段内调用 team doctor
34
34
  1b 1b · bootstrap(一条命令初始化) README.md skills/teamsmith/scripts/lib/cmd-bootstrap.sh skills/teamsmith/scripts/team - 段内点名 1 条真实路径 token;段内调用 team bootstrap
35
35
  1c 1c · bootstrap 的 PM 窗口名:约定不是现场(M11) README.md skills/teamsmith/scripts/team skills/teamsmith/scripts/lib/cmd-bootstrap.sh skills/teamsmith/scripts/lib/cmd-project.sh - 段内点名 2 条真实路径 token;段内调用 team bootstrap/doctor
@@ -55,7 +55,7 @@
55
55
  7b 7b · digest 警告未入账的复验/报告记录(M31) README.md skills/teamsmith/scripts skills/teamsmith/scripts/* skills/teamsmith/templates skills/teamsmith/templates/* skills/teamsmith/references skills/teamsmith/references/* skills/teamsmith/SKILL.md skills/teamsmith/scripts/lib/cmd-status.sh skills/teamsmith/scripts/lib/cmd-docs.sh skills/teamsmith/scripts/lib/cmd-project.sh skills/teamsmith/scripts/team - 段内点名 7 条真实路径 token;段内调用 team board/digest/init/paths
56
56
  8 8 · 从 agent worktree 调用 CLI skills/teamsmith/scripts/lib/cmd-status.sh skills/teamsmith/scripts/team 5 段内调用 team roster;P117/V2 逐键审计:补 {5} 后该键的选集 ✗0(缺时该键红;口径见 tests/section-needs-audit.sh)
57
57
  9 9 · agent 提交 + 报告 - 5 在 dev 工作树里手写报告并提交(不读模板);无独立路径声明;P117/V2 逐键审计:补 {5} 后该键的选集 ✗0(缺时该键红;口径见 tests/section-needs-audit.sh)
58
- 10 10 · review(独立 worktree + 门禁) skills/teamsmith/scripts/lib/cmd-review.sh skills/teamsmith/scripts/team 3b,4b,5,9 段内调用 team review;P117/V2 实测(P112 §5.2 的最短反例):缺 4b/5/9 时该键的选集在夹具前提上红(--select 10 ✗26;补 {4b,5,9} 后 ✗0)
58
+ 10 10 · review(独立 worktree + 门禁) skills/teamsmith/scripts/lib/cmd-review.sh skills/teamsmith/scripts/team skills/teamsmith/tests/flip-p310-lock.sh 3b,4b,5,9 段内调用 team review;P117/V2 实测(P112 §5.2 的最短反例):缺 4b/5/9 时该键的选集在夹具前提上红(--select 10 ✗26;补 {4b,5,9} 后 ✗0);P310 ②:段内跑 tests/flip-p310-lock.sh(真祖辈持锁不排队 / 判据回退看标记必须排队撞上限 / 非祖辈照常排队)
59
59
  10b 10b · 复验证据完整性(记录必须描述真的验过什么) skills/teamsmith/templates/report.md.tmpl README.md skills/teamsmith/scripts/team skills/teamsmith/scripts/lib/cmd-status.sh skills/teamsmith/scripts/lib/cmd-review.sh 10,3b,4b,5,9 段内点名 5 条真实路径 token;段内调用 team digest/review/status;P117/V2 实测(P112 §5.2 的最短反例):缺 4b/5/9 时该键的选集在夹具前提上红(--select 10 ✗26;补 {4b,5,9} 后 ✗0)
60
60
  10c 10c · M25 复验基建:门禁不继承 TEAM_REVIEW_* + 后台进程组里读 tty 的病 skills/teamsmith/scripts/lib/cmd-review.sh skills/teamsmith/scripts/lib/cmd-docs.sh skills/teamsmith/scripts/team 3b,10 段内调用 team review/task
61
61
  11 11 · 收尾(merge 已移除,close 保留) skills/teamsmith/scripts/lib/cmd-review.sh skills/teamsmith/references/workflows.md skills/teamsmith/scripts/lib/cmd-docs.sh skills/teamsmith/scripts/lib/cmd-agents.sh skills/teamsmith/scripts/team 3b,4,4b,5,9,10 段内点名 2 条真实路径 token;段内调用 team board/close/dispatch/merge;P117/V2 实测(P112 §5.2 的最短反例):缺 4b/5/9 时该键的选集在夹具前提上红(--select 10 ✗26;补 {4b,5,9} 后 ✗0);P117/V2 逐键审计:补 {10} 后该键的选集 ✗0(缺时该键红;口径见 tests/section-needs-audit.sh)
@@ -78,7 +78,7 @@
78
78
  12 12 · roster / status / ps skills/teamsmith/scripts/lib/cmd-status.sh skills/teamsmith/scripts/lib/cmd-watch.sh skills/teamsmith/scripts/team 4 段内调用 team digest/paths/ps/pulse/roster/up
79
79
  13 13 · notify 扩展(去重 + 只在 worktree 触发) skills/teamsmith/extension/team-notify.ts 2 段内点名 1 条真实路径 token;P117/V2 逐键审计:补 {2} 后该键的选集 ✗0(缺时该键红;口径见 tests/section-needs-audit.sh)
80
80
  13b 13b · 通知只代表「回合结束」(M4.3 E:内部生命周期不得被广播成交付) skills/teamsmith/extension/team-notify.ts 2 段内点名 1 条真实路径 token;P117/V2 逐键审计:补 {2} 后该键的选集 ✗0(缺时该键红;口径见 tests/section-needs-audit.sh)
81
- 13c 13c · 团队后台车道(M27/M30):拉起链注入 / 收割契约 / 账本 / worktree 侧 skills/teamsmith/scripts/lib/cmd-agents.sh skills/teamsmith/extension/team-bg.ts skills/teamsmith/tests/team-bg-harness.mjs skills/teamsmith/tests/bg-ledger.sh skills/teamsmith/templates/AGENTS.section.md.tmpl skills/teamsmith/templates/pm-prompt.md.tmpl skills/teamsmith/references/protocol.md skills/teamsmith/references/workflows.md 6i,6f P237 §4.3:本段折叠 A 刀的 wording/ledger 两组(bg-ledger 入口),并按 long-job-suspend 的 dispatch delta 四条场景钉住提示词 / AGENTS 模板 / protocol / workflows §E2 与 PM 模板的三态口径——改这些面都要重跑本段
81
+ 13c 13c · 团队后台车道(M27/M30):拉起链注入 / 收割契约 / 账本 / worktree 侧 skills/teamsmith/scripts/lib/cmd-agents.sh skills/teamsmith/extension/team-bg.ts skills/teamsmith/tests/team-bg-harness.mjs skills/teamsmith/tests/bg-ledger.sh skills/teamsmith/tests/bg-ledger-harness.mjs skills/teamsmith/templates/AGENTS.section.md.tmpl skills/teamsmith/templates/pm-prompt.md.tmpl skills/teamsmith/references/protocol.md skills/teamsmith/references/workflows.md 6i,6f P237 §4.3:本段折叠 A 刀的 wording/ledger 两组(bg-ledger 入口),并按 long-job-suspend 的 dispatch delta 四条场景钉住提示词 / AGENTS 模板 / protocol / workflows §E2 与 PM 模板的三态口径——改这些面都要重跑本段;P251:bg-ledger-harness.mjs 也是本段的夹具本体(turn-notice-merge 的 merge/detail/wake 三组与十一个写入面红侧)
82
82
  12b 12b · 延后投递与草稿入口(delivery-guard:守卫 / 队列 / 排水 / 草稿) skills/teamsmith/tests/guard-matrix.sh skills/teamsmith/scripts/lib/cmd-status.sh skills/teamsmith/scripts/lib/cmd-draft.sh skills/teamsmith/scripts/lib/cmd-agents.sh skills/teamsmith/scripts/lib/cmd-outbox.sh skills/teamsmith/scripts/lib/cmd-watch.sh skills/teamsmith/scripts/team skills/teamsmith/scripts/lib/outbox.sh 5 段内点名 1 条真实路径 token;段内调用 team digest/draft/notify/outbox/paths/say/status/watch;另声明:该段驱动/断言 outbox 投递路径|needs:5(say 要名册里有 dev,12b-c 实测)
83
83
  12b-h0 12b-h0 · M24 输入框判据:真实 pi 的两条折叠路径 skills/teamsmith/scripts/lib/outbox.sh - 另声明:该段驱动/断言 outbox 投递路径
84
84
  12b-h0b 12b-h0b · M45 输入框判据:pi 的更新横幅(整行 ─ 与框边框同形等宽) skills/teamsmith/tests/frames skills/teamsmith/tests/frames/* skills/teamsmith/scripts/lib/common.sh skills/teamsmith/scripts/lib/outbox.sh - 段内点名 3 条真实路径 token
@@ -109,7 +109,7 @@
109
109
  30 30 · 代号必须带名字(M16) README.md skills/teamsmith/scripts/lib/cmd-docs.sh skills/teamsmith/scripts/lib/cmd-status.sh skills/teamsmith/scripts/lib/cmd-project.sh skills/teamsmith/scripts/team - 段内点名 1 条真实路径 token;段内调用 team board/digest/init/paths/roster/status
110
110
  31 31 · tmux 接触面:隔离 lint + 容器跑法(M28) skills/teamsmith/tests/tmux-lint.pl skills/teamsmith/tests/container-tmux.sh skills/teamsmith/tests/pm-box-real.sh skills/teamsmith/tests/tmux-lint-legacy.txt - 段内点名 4 条真实路径 token
111
111
  31c 31c · tmux 运行时闸门:按目标判定 + argv token + 注入(M36/M67) skills/teamsmith/scripts/shim skills/teamsmith/scripts/shim/* skills/teamsmith/scripts/team skills/teamsmith/scripts/lib/cmd-agents.sh skills/teamsmith/scripts/lib/cmd-watch.sh skills/teamsmith/scripts/lib/tmux-argv.sh 11b,31,6i 段内点名 3 条真实路径 token;段内调用 team dispatch/paths/up;P188:分类抽到 scripts/lib/tmux-argv.sh,本段的 shim mutant 现在是一棵树(要拷共享分类器)
112
- 32 32 · 身份 = 运行时目录(M40:继承的 TEAM_* 不许静默赢过 cwd) skills/teamsmith/scripts/panel/panel.js skills/teamsmith/scripts/team skills/teamsmith/scripts/lib/cmd-docs.sh skills/teamsmith/scripts/lib/cmd-agents.sh skills/teamsmith/scripts/lib/cmd-watch.sh 2 段内点名 6 条真实路径 token;段内调用 team board/dispatch/paths/pulse;P117/V2 逐键审计:补 {2} 后该键的选集 ✗0(缺时该键红;口径见 tests/section-needs-audit.sh)
112
+ 32 32 · 身份 = 运行时目录(M40:继承的 TEAM_* 不许静默赢过 cwd) skills/teamsmith/scripts/panel/panel.js skills/teamsmith/scripts/team skills/teamsmith/scripts/lib/cmd-docs.sh skills/teamsmith/scripts/lib/cmd-agents.sh skills/teamsmith/scripts/lib/cmd-watch.sh skills/teamsmith/scripts/lib/common.sh skills/teamsmith/tests/tmux-identity-leak.sh 2 段内点名 7 条真实路径 token(含 P311 接上的身份作用域夹具);段内调用 team board/dispatch/paths/pulse;P117/V2 逐键审计:补 {2} 后该键的选集 ✗0(缺时该键红;口径见 tests/section-needs-audit.sh);P311:⑨ 块把 tmux-identity-leak.sh 接进 §32(裁定点 D),它读的产品面是 common.sh —— 改这两处都要重跑 §32
113
113
  33 33 · 项目契约的读写面(P22/B1:team config 单一写入口 + schema) skills/teamsmith/tests/config-cli.sh openspec/specs openspec/specs/* skills/teamsmith/scripts/lib/cmd-docs.sh skills/teamsmith/scripts/lib/cmd-agents.sh skills/teamsmith/scripts/lib/cmd-project.sh skills/teamsmith/scripts/team - 段内点名 3 条真实路径 token;段内调用 team board/dispatch/init;原 change-centric-discipline 的 tasks.md 已随 change 归档(2026-09-23)→ 该字面模式撤掉
114
114
  12e 12e · change 视图(P24/B1:严格头部读取 + 就绪判据) skills/teamsmith/tests/task-header-model.sh 33 段内点名 4 条真实路径 token;p24 夹具(helper/夹具由 33 定义)
115
115
  12f 12f · change 归组(P45/B2:digest 的 [6] 段 + 面板 token) skills/teamsmith/scripts/panel/panel.js skills/teamsmith/tests/panel-b3-stub.sh skills/teamsmith/scripts/lib/cmd-status.sh skills/teamsmith/scripts/team 33 段内点名 2 条真实路径 token;段内调用 team digest;p24 夹具(helper/夹具由 33 定义)
@@ -118,25 +118,29 @@
118
118
  12i 12i · 按 change 判独立性(P24/B5) skills/teamsmith/scripts/lib/cmd-agents.sh skills/teamsmith/scripts/lib/cmd-docs.sh 33 p24 夹具驱动 board/dispatch(helper 由 33 定义)
119
119
  12j 12j · 归档前提(P24/B6) skills/teamsmith/scripts/lib/cmd-docs.sh skills/teamsmith/scripts/team 33 段内调用 team board;p24 夹具(helper/夹具由 33 定义)
120
120
  12k 12k · 模板与文档(P24/B7) skills/teamsmith/references/openspec.md skills/teamsmith/SKILL.md skills/teamsmith/references/protocol.md AGENTS.md skills/teamsmith/templates/AGENTS.section.md.tmpl skills/teamsmith/templates/PROTOCOL.md.tmpl skills/teamsmith/scripts/team 33 段内点名 9 条真实路径 token;段内调用 team help;p24 夹具(helper/夹具由 33 定义)
121
- 34 34 · 门禁锁:排队/运行分开记账(P26/G1:verification#The hard timeout covers the gate run, not the queue) README.md skills/teamsmith/scripts/lib/common.sh skills/teamsmith/scripts/lib/cmd-project.sh skills/teamsmith/scripts/lib/cmd-review.sh skills/teamsmith/scripts/team - 段内点名 2 条真实路径 token;段内调用 team init/review
122
- 34b 34b · 门禁锁排队守卫:超上限要大声失败并点名持有者(P66) skills/teamsmith/tests/smoke.sh - 段内点名 1 条真实路径 token(嵌套跑真入口 smoke.sh 的排队守卫);私有锁 / 私有 TMPDIR,不碰机器锁
121
+ 34 34 · 门禁锁:排队/运行分开记账(P26/G1:verification#The hard timeout covers the gate run, not the queue) README.md skills/teamsmith/scripts/lib/common.sh skills/teamsmith/scripts/lib/cmd-project.sh skills/teamsmith/scripts/lib/cmd-review.sh skills/teamsmith/scripts/team skills/teamsmith/scripts/lib/gate-lock.sh - 段内点名 3 条真实路径 token(P281 起含共享锁记录的实现 gate-lock.sh);段内调用 team init/review
122
+ 34b 34b · 门禁锁排队守卫:超上限要大声失败并点名持有者(P66) skills/teamsmith/tests/smoke.sh skills/teamsmith/scripts/lib/gate-lock.sh skills/teamsmith/tests/section-budgets.tsv skills/teamsmith/tests/lib/tmp-root.sh skills/teamsmith/tests/lib/section-guard.sh skills/teamsmith/tests/lib/tmux-cap.sh skills/teamsmith/tests/lib/tmux-iso.sh skills/teamsmith/tests/lib/checkout-shape.sh skills/teamsmith/scripts/lib/tmux-argv.sh - 段内点名 9 条真实路径 token(嵌套跑真入口 smoke.sh 的排队守卫 + P281 的记录实现与它读的预算表 + 返修轮次 1 的伪造现场要把真入口所需的库拷成最小可跑树);私有锁 / 私有 TMPDIR,不碰机器锁
123
+ 34c 34c · 命名面:运行条目点开头或带 ns,平铺家族够不着(P287 · verification#A fixture's temp root…) README.md skills/teamsmith/tests/smoke.sh skills/teamsmith/tests/lib/tmp-root.sh skills/teamsmith/scripts skills/teamsmith/scripts/lib/common.sh skills/teamsmith/tests/tmp-hygiene.sh - P287(gate-lock-external-deletion)§1.5/§1.6:段内起一套**嵌套**运行(私有 TMPDIR + 默认锁路径)逐条判「点开头或带 ns」与契约点名的平铺形状 `teamsmith-smoke.*` 零命中;另建两个仓库 + 一个 worktree 验证 ns 关系与 --status 的外来归因;红侧用 tmp-root.sh 的 --break=flat-name
124
+ 34d 34d · 身份面:锁被删/被换 → 一行点名 + 证据 + 停跑;入场检查;等待者(P287 · verification#The gate's lock…) skills/teamsmith/tests/smoke.sh skills/teamsmith/scripts/lib/gate-lock.sh skills/teamsmith/tests/lib/tmp-root.sh skills/teamsmith/tests/lib/section-guard.sh skills/teamsmith/tests/lib/tmux-cap.sh skills/teamsmith/tests/lib/tmux-iso.sh skills/teamsmith/tests/lib/checkout-shape.sh README.md skills/teamsmith/scripts skills/teamsmith/scripts/lib/common.sh skills/teamsmith/scripts/team skills/teamsmith/tests/spec-refs.sh - P287 §3.3/3.4/4.1/4.2/3.5:四条嵌套运行的场景(删/换伴生锁、入场检查、正常两套、等待者)——每条都真起真入口 smoke.sh(私有 TMPDIR + 私有锁),红侧用 --break=no-lock-guard / no-entry-check
123
125
  35 35 · 门禁只判正确性:性能判定守卫 + 旋钮完整性(M58 · perf-suite-split) skills/teamsmith/tests/gate-guard.sh skills/teamsmith/tests/panel-knobs.sh - 段内点名 5 条真实路径 token
124
126
  36 36 · 选段与分段账本自检(P98 · gate-runtime-budget) skills/teamsmith/tests/smoke.sh skills/teamsmith/tests/section-select.sh skills/teamsmith/tests/section-paths.tsv skills/teamsmith/scripts/lib/outbox.sh skills/teamsmith/tests/checkout-shape-probe.sh skills/teamsmith/tests/coverage-inventory.sh skills/teamsmith/tests/lib/checkout-shape.sh - 段内点名真实路径 token(选择器/表/smoke.sh/outbox.sh 样例/P148 探针与覆盖清单器);驱动 section-select.sh --check(六个腐烂方向 + P148 前提跳过转发)与嵌套 smoke(--select/NONE/账本);P148 探针含形状边界、部分树红、旧断言压成跳过的覆盖比对。嵌套固定用 --select(用 --paths 会因自己命中 36 行而自递归)
125
127
  37 37 · 读路径性能:根一次解析 + 单进程扫描(M50) README.md skills/teamsmith/scripts/lib/cmd-docs.sh skills/teamsmith/scripts/lib/cmd-status.sh skills/teamsmith/scripts/lib/cmd-project.sh skills/teamsmith/scripts/team - 段内点名 1 条真实路径 token;段内调用 team board/digest/init/paths/status
126
128
  38 38 · 设置选项(M55:choices 读 / 一致性走查 / 选择器夹具) skills/teamsmith/tests/panel-choices.sh skills/teamsmith/tests/panel-p21.sh skills/teamsmith/tests/lib/pty-wait.sh skills/teamsmith/scripts/panel/src/App.tsx skills/teamsmith/scripts/panel/src skills/teamsmith/scripts/panel/src/* skills/teamsmith/scripts/lib/cmd-config.sh skills/teamsmith/tests/load-experiment.sh skills/teamsmith/tests/panel-strings.mjs skills/teamsmith 28 段内点名 23 条真实路径 token;P238 坑 3:删掉 `skills/teamsmith/*` 跨深通配(本段真读的是上面这些文件);P38E 腿还读 28 段的 `$P28_TESTS/panel-strings.mjs`,已登记
127
- 39 39 · npm CLI 与项目 skill 安装(P40:包装器 / 冲突表 / doctor 行) skills/teamsmith/tests/install-shape.sh - 段内点名 2 条真实路径 token
128
- 40 40 · 临时根纪律(P53:TMPDIR / owned 家族 / 泄漏断言 / lint) skills/teamsmith/tests skills/teamsmith/tests/* skills/teamsmith/tests/config-cli.sh skills/teamsmith/tests/tmp-hygiene.sh - 段内点名 4 条真实路径 token;P238 坑 3 复核:保留 `skills/teamsmith/tests/*` —— 段内跑 `tests/tmp-hygiene.sh --lint`,它 `find <dir> -type f -name '*.sh'` 扫整棵 tests 树,新增测试文件是该段的判定面
129
+ 39 39 · npm CLI 与项目 skill 安装(P40:包装器 / 冲突表 / doctor 行) skills/teamsmith/tests/install-shape.sh skills/teamsmith/scripts/lib/cmd-init.sh skills/teamsmith/scripts/lib/cmd-project.sh skills/teamsmith/scripts/lib/cmd-bootstrap.sh - 段内点名 2 条真实路径 token;P270:安装/doctor 的实现路径(cmd-init.sh 的扩展安装、cmd-project.sh 的 /team 行、cmd-bootstrap.sh 的 --print 计划行)由本段的 install-shape.sh 逐格钉住 → 三条产品路径补进本行 patterns(P243 的同一口径:产品路径归实际测它的那一段)
130
+ 40 40 · 临时根纪律(P53:TMPDIR / owned 家族 / 泄漏断言 / lint) skills/teamsmith/tests skills/teamsmith/tests/* skills/teamsmith/tests/config-cli.sh skills/teamsmith/tests/tmp-hygiene.sh skills/teamsmith/scripts/team skills/teamsmith/scripts/lib skills/teamsmith/scripts/lib/common.sh skills/teamsmith/scripts/lib/cmd-status.sh skills/teamsmith/references skills/teamsmith/references/* - 段内点名 4 条真实路径 token;P238 坑 3 复核:保留 `skills/teamsmith/tests/*` —— 段内跑 `tests/tmp-hygiene.sh --lint`,它 `find <dir> -type f -name '*.sh'` 扫整棵 tests 树,新增测试文件是该段的判定面;P314:段内还跑 `team doctor`(`scripts/team`,只读面夹具;红侧的变异副本从 `scripts/lib/common.sh` 生成)与 `tmp-hygiene.sh --docs-check`(读 `references/**` 的四个文件),两处都在这一行声明;P314 返工轮 1:`source=config` 腿的红侧把整棵 `scripts/lib` 复制进变异树(目录 token),只在副本里改 `cmd-status.sh`(被挡住的那一行就住在这个文件里)
129
131
  41 41 · pane 留存:死 pane 是座位状况,不是活座位(P55 / agent-pane-survivability) skills/teamsmith/scripts/team 2 段内点名 29 条真实路径 token
130
- 42 42 · P67 输入框判据:0.87.0 的边框邻行按内容读(光标锚定 + 状态行形状才排除) skills/teamsmith/tests/frames skills/teamsmith/tests/frames/* skills/teamsmith/scripts/lib/common.sh skills/teamsmith/scripts/lib/outbox.sh skills/teamsmith/tests/lib/box-judge.sh skills/teamsmith/tests/pm-box-real.sh skills/teamsmith/scripts/lib/cmd-draft.sh skills/teamsmith/scripts/lib/cmd-agents.sh skills/teamsmith/scripts/team 12b-h0d 段内点名 7 条真实路径 token;段内调用 team draft/say
132
+ 42 42 · P67 输入框判据:0.87.0 的边框邻行按内容读(光标锚定 + 状态行形状才排除) skills/teamsmith/tests/frames skills/teamsmith/tests/frames/* skills/teamsmith/scripts/lib/common.sh skills/teamsmith/scripts/lib/outbox.sh skills/teamsmith/tests/lib/box-judge.sh skills/teamsmith/tests/pm-box-real.sh skills/teamsmith/scripts/lib/cmd-draft.sh skills/teamsmith/scripts/lib/cmd-agents.sh skills/teamsmith/scripts/team 2,12b-h0d 段内点名 7 条真实路径 token;段内调用 team draft/say|needs:2(生产路径要 §2 建出的夹具项目 + 名册里才有 dev;P297 实测)
131
133
  43 43 · P75 status 尾部现场:尾空行裁剪(P65 的 F1) skills/teamsmith/scripts/team skills/teamsmith/scripts/lib/common.sh 42,2 段内点名 3 条真实路径 token;P117/V2 逐键审计:补 {2} 后该键的选集 ✗0(缺时该键红;口径见 tests/section-needs-audit.sh)
132
- 44 44 · P80 输入框判据:草稿自己的下边框框线(真 pane 就绪门 + 生产路径只排队) skills/teamsmith/tests/frames/p78-draft-rule-below-cursor.txt skills/teamsmith/tests/pm-box-real.sh skills/teamsmith/scripts/lib/cmd-draft.sh skills/teamsmith/scripts/lib/cmd-agents.sh skills/teamsmith/scripts/team skills/teamsmith/scripts/lib/outbox.sh - 段内点名 2 条真实路径 token;段内调用 team draft/say;另声明:该段驱动/断言 outbox 投递路径
134
+ 44 44 · P80 输入框判据:草稿自己的下边框框线(真 pane 就绪门 + 生产路径只排队) skills/teamsmith/tests/frames/p78-draft-rule-below-cursor.txt skills/teamsmith/tests/pm-box-real.sh skills/teamsmith/scripts/lib/cmd-draft.sh skills/teamsmith/scripts/lib/cmd-agents.sh skills/teamsmith/scripts/team skills/teamsmith/scripts/lib/outbox.sh 2 段内点名 2 条真实路径 token;段内调用 team draft/say;另声明:该段驱动/断言 outbox 投递路径|needs:2(生产路径要 §2 建出的夹具项目 + 名册里才有 dev;P297 实测)
133
135
  45 45 · P76 合并前的未入账记录检查(D45) README.md skills/teamsmith/scripts/lib/common.sh skills/teamsmith/scripts/lib/cmd-project.sh skills/teamsmith/scripts/lib/cmd-review.sh skills/teamsmith/scripts/team 43 段内点名 2 条真实路径 token;段内调用 team init/paths/review
134
136
  46 46 · P86 下边框判据:定位出的框必须包含光标行(P84 的 F1 安全回归) skills/teamsmith/tests/frames skills/teamsmith/tests/frames/* skills/teamsmith/scripts/lib/common.sh skills/teamsmith/scripts/lib/outbox.sh skills/teamsmith/tests/lib/box-judge.sh skills/teamsmith/tests/pm-box-real.sh 45 段内点名 7 条真实路径 token
135
137
  47 47 · P82 notify 发送者 = 运行时目录(notify-sender-identity) README.md skills/teamsmith/extension/team-notify.ts skills/teamsmith/scripts/lib/cmd-project.sh skills/teamsmith/scripts/lib/cmd-agents.sh skills/teamsmith/scripts/team skills/teamsmith/scripts/lib/outbox.sh skills/teamsmith/scripts/lib/common.sh - 段内点名 3 条真实路径 token;段内调用 team init/notify/paths;另声明:该段驱动/断言 outbox 投递路径;P201:同一段钉住主检出的席位线索(common.sh 的 team_sender_seat_clues / team_sender_resolve)
136
138
  48 48 · P91 合并后的「分支又动了」核对(D49 的另一半) README.md skills/teamsmith/scripts/lib/common.sh skills/teamsmith/scripts/lib/cmd-project.sh skills/teamsmith/scripts/lib/cmd-review.sh skills/teamsmith/scripts/team 46 段内点名 10 条真实路径 token;段内调用 team init/paths/review
137
139
  49 49 · P94 现场行数为 0:按配置不打印画面(P88 的 F1) skills/teamsmith/scripts/lib/cmd-status.sh skills/teamsmith/scripts/team skills/teamsmith/scripts/lib skills/teamsmith/references skills/teamsmith/templates skills/teamsmith/SKILL.md 2 段内点名 8 条真实路径 token(cmd-status.sh/team + 复制成突变树用的 scripts/lib、references、templates、SKILL.md);自造 $REPO 状态文件跑 team status 的 TEAM_AGENT_SCENE_LINES|needs:2(空段守卫实测:单独跑 49 时 $REPO 还没 init,team status rc=1、✓9 ✗13;--select 2,49 后 ✓22 ✗0 与全量一致)
138
140
  50 50 · P95 合并基准 = 该任务的 squash 提交(解冲突不再假红) skills/teamsmith/scripts/lib/common.sh skills/teamsmith/scripts/team - 段内点名 3 条真实路径 token;自造仓库驱动 team init/review --post-merge
139
- 51 51 · 用法诚实性:help 的每条承诺与名册的每条路线都有夹具兑现(P99) skills/teamsmith/tests/routes.sh skills/teamsmith/tests/config-cli.sh - 段内点名 4 条真实路径 token;跑 tests/routes.sh(用法走查)与 config-cli.sh 的名册半边
141
+ 51 51 · 用法诚实性:help 的每条承诺与名册的每条路线都有夹具兑现(P99) skills/teamsmith/tests/routes.sh skills/teamsmith/tests/config-cli.sh skills/teamsmith/scripts/lib/cmd-help.sh skills/teamsmith/scripts/strings/* skills/teamsmith/tests/help-surface.sh skills/teamsmith/scripts/lib/cmd-config.sh - P260(cli-help,D170 收窄):帮助面的**逻辑**面——命令清单与渲染器的结构、三级路由、未知 token exit 2、无项目可用、TEAM_LANG 的机制、effect/auth/undo 的探针与不变量;措辞、排版、页面深度、语言表齐全度由设计与评审把关,不在本段(也不在任何门禁段)
142
+ 51b 51b · 孤儿席位进程普查(P276 · change: orphan-visibility) skills/teamsmith/tests/seat-visibility.sh skills/teamsmith/scripts/lib/cmd-reap.sh skills/teamsmith/scripts/lib/common.sh skills/teamsmith/scripts/lib/cmd-status.sh skills/teamsmith/scripts/lib/cmd-watch.sh - P276(orphan-visibility,D180):段内点名 tests/seat-visibility.sh(夹具本体);普查实现落在 common.sh(team_orphan_*)、cmd-status.sh(ps/status 读数与 digest 提示)、cmd-watch.sh(up 的一行)、cmd-reap.sh(按 pid 的清理与复验)——共用同一份判据,改其中一处都要重跑这段
143
+ 51c 51c · 席位长回合的打断(P292 · change: seat-interrupt-entry) skills/teamsmith/tests/seat-interrupt.sh skills/teamsmith/scripts/lib/cmd-interrupt.sh skills/teamsmith/scripts/team skills/teamsmith/scripts/lib/common.sh skills/teamsmith/scripts/strings/* - P292(seat-interrupt-entry):段内点名 tests/seat-interrupt.sh(夹具本体:桩 tmux + 真进程 + 逐条红侧);入口落在 cmd-interrupt.sh(证明链 / 复验 / 信号 / 审计 / 理由投递),身份与普查判据复用 common.sh(team_orphan_*),命令面在 scripts/team 与 strings/*(命令表的参数面 + 中英双语词条)——共用同一份判据,改其中一处都要重跑这段
140
144
  52 52 · 席位死因:闭集分类 + 当前一次死亡 + 恰好一次通报(P113) skills/teamsmith/tests/death-cause.sh skills/teamsmith/scripts/lib/cmd-death.sh skills/teamsmith/scripts/lib/common.sh skills/teamsmith/scripts/lib/cmd-status.sh skills/teamsmith/scripts/lib/cmd-watch.sh skills/teamsmith/scripts/panel/src/types.ts skills/teamsmith/scripts/panel/src/layout.ts skills/teamsmith/scripts/panel/panel.js - 段内点名 1 条真实路径 token($SKILL_DIR/tests/death-cause.sh);夹具本体 tests/death-cause.sh 自己 source 这些 lib / 面板源码(--pure / --flip / --live 三档)
141
145
  53 53 · 等待引擎长帧:命中/缺失不被管道缓冲吃掉(P127) skills/teamsmith/tests/lib/pty-wait.sh - 段内点名 1 条真实路径 token($SKILL_DIR/tests/lib/pty-wait.sh);跑 pty-wait.sh 两次(--self-test 绿侧 17✓0✗ + --break=pipeshadow 影子红侧必须红在长帧命中那条)
142
146
  57 57 · delivery-truth:真帧几何 / 队列阻碍 / notify 三处同名(P147) skills/teamsmith/tests/delivery-truth.sh skills/teamsmith/tests/frames skills/teamsmith/tests/frames/* skills/teamsmith/tests/lib/box-judge.sh skills/teamsmith/scripts/lib/outbox.sh skills/teamsmith/scripts/lib/cmd-outbox.sh skills/teamsmith/scripts/lib/cmd-agents.sh skills/teamsmith/scripts/lib/cmd-watch.sh skills/teamsmith/scripts/panel/src skills/teamsmith/scripts/panel/src/* skills/teamsmith/scripts/panel/panel.js - 段内点名 1 条真实路径 token($SKILL_DIR/tests/delivery-truth.sh);夹具本体 delivery-truth.sh 自带私有临时根与假 tmux,八段覆盖真帧几何/草稿对抗/框内异物(P163)/队列阻碍/回执/notify/面板/判据单次运行戳(P197)
@@ -146,7 +150,9 @@
146
150
  56 56 · meeting-liveness 真 tmux:敲门 / 排水 / 每方窗口(P139) skills/teamsmith/scripts/lib/* skills/teamsmith/scripts/team skills/teamsmith/extension/* skills/teamsmith/tests/fake-tui.py 55 段内调用 team meeting/outbox/notify/watch/status;真 tmux 私有 session + tests/fake-tui.py;沿用 54 段的夹具仓库与会议共享区(needs:54);P238 坑 3:`skills/teamsmith/tests/*` 换成真用的 `tests/fake-tui.py`
147
151
  59 59 · pulse-nudge-key:叫醒键按类别集合(P174) skills/teamsmith/tests/pulse-nudge-key.sh skills/teamsmith/scripts/lib/* skills/teamsmith/scripts/team skills/teamsmith/tests/lib/tmp-root.sh - 段内点名 1 条真实路径 token($SKILL_DIR/tests/pulse-nudge-key.sh);夹具本体 pulse-nudge-key.sh 自己 source scripts/lib 与 tests/lib/tmp-root.sh,observers 档在私有夹具仓库里跑真 team CLI(monitor/__panel-data),tmux 走私有 shim(只读、不碰共享 server);P238 坑 3:`skills/teamsmith/tests/lib/*` 换成夹具真 source 的 `tests/lib/tmp-root.sh`
148
152
  60 60 · 账本禁令:家目录 / 私有网段 / 用户名 / 他项目名(P212 · D94) skills/teamsmith/tests/ledger-ban.sh skills/teamsmith/tests/ledger-claim.sh skills/teamsmith/tests/lib/tmp-root.sh - 段内点名 1 条真实路径 token($SKILL_DIR/tests/ledger-ban.sh);夹具本体 ledger-ban.sh 自建私有临时根(lib/tmp-root.sh)、自检含五形状 + 四条可证伪 + 影子;真实账本扫描只读**检出树**(被测分支的工作树),他项目名单从被忽略的 .pi/team/forbidden-names.txt 读;P239:`docs/team/**` 的归属由表头 `# ledger-scan:` 行声明(patterns 列不许声明豁免类)——账本文本(报告/复验/看板/线程)的改动只选中这一段,就地在自己的树上开火;行为面与三条红侧在 tests/ledger-claim.sh;P231:账本面 = docs/team 下**每一个会被提交的文件**(不再限定 .md,ledger/*.tsv 从前是盲区),归属头必须**唯一**且指向本段(指向别的段/两行表头在装载期报错点名),非 .md 植入与假绿对照也在 tests/ledger-claim.sh
149
- 61 61 · 任务类别模型路由:分组前门(P228 · task-model-routing) skills/teamsmith/scripts/lib/common.sh skills/teamsmith/scripts/lib/cmd-agents.sh skills/teamsmith/scripts/lib/cmd-config.sh skills/teamsmith/scripts/lib/cmd-watch.sh skills/teamsmith/tests/task-model-routing.sh skills/teamsmith/tests/lib/model-routing-boundary.sh skills/teamsmith/tests/lib/model-routing-expansion.sh skills/teamsmith/tests/lib/model-routing-roles.sh skills/teamsmith/tests/lib/model-policy.sh - 段内点名 1 条真实路径 token(前门夹具本体);P238 坑 2:整套前门以前没有任何门禁段承接(只能手工跑);坑 3:路由夹具按文件**精确登记**,不再靠别的段的目录通配把新增测试文件归到无关段;model-policy.sh 是这套夹具的记录写入器(routing_fixture_record);P243(V28 nit 3):产品侧路由路径以前只被别的行的目录通配覆盖(改 common.sh 的类别/模型解析、cmd-agents.sh 的选择与续跑复用、cmd-config.sh 的映射读写、cmd-watch.sh 的续跑入口时本段不被选中)→ 四条产品路径补进本行 patterns,`--paths` 前后对照见 docs/team/reports/P243-dev3.md;§61b 不随之绑定(变异锚点还落在 cmd-bootstrap.sh / monitor.mjs 等更多文件,只绑这四条并不构成完整保证,且它有 82 分成本、FAST 里本是可见 SKIP)
153
+ 61 61 · 任务类别模型路由:分组前门(P228 · task-model-routing) skills/teamsmith/scripts/lib/common.sh skills/teamsmith/scripts/lib/cmd-agents.sh skills/teamsmith/scripts/lib/cmd-config.sh skills/teamsmith/scripts/lib/cmd-project.sh skills/teamsmith/scripts/lib/cmd-bootstrap.sh skills/teamsmith/scripts/lib/cmd-watch.sh skills/teamsmith/templates/config.sh.tmpl skills/teamsmith/tests/task-model-routing.sh skills/teamsmith/tests/lib/model-routing-boundary.sh skills/teamsmith/tests/lib/model-routing-expansion.sh skills/teamsmith/tests/lib/model-routing-roles.sh skills/teamsmith/tests/lib/model-policy.sh - 段内点名 1 条真实路径 token(前门夹具本体);P238 坑 2:整套前门以前没有任何门禁段承接(只能手工跑);坑 3:路由夹具按文件**精确登记**,不再靠别的段的目录通配把新增测试文件归到无关段;model-policy.sh 是这套夹具的记录写入器(routing_fixture_record);P243(V28 nit 3):产品侧路由路径以前只被别的行的目录通配覆盖(改 common.sh 的类别/模型解析、cmd-agents.sh 的选择与续跑复用、cmd-config.sh 的映射读写、cmd-watch.sh 的续跑入口时本段不被选中)→ 四条产品路径补进本行 patterns,`--paths` 前后对照见 docs/team/reports/P243-dev3.md;§61b 不随之绑定(变异锚点还落在 cmd-bootstrap.sh / monitor.mjs 等更多文件,只绑这四条并不构成完整保证,且它有 82 分成本、FAST 里本是可见 SKIP);P261:新增 heal/adopt/updatecheck 三组(启动事务的迁移/身份自愈/版本提示),它们同时读 cmd-project.sh 的渲染结果与 templates/config.sh.tmpl 的新键 → 两条路径补进本行(否则改形状号渲染不会选中本段);P261 返修轮次 1(V35 F1):init/bootstrap 的旧配置拒绝建议面也在这条前门里(F1 的落点正是 cmd-bootstrap.sh)→ cmd-bootstrap.sh 补进本行 patterns
150
154
  61b 61b · 任务类别模型路由:翻转变异自检(P228 · task-model-routing) skills/teamsmith/tests/task-model-routing.sh skills/teamsmith/tests/lib/model-routing-flips.py - 段内点名 1 条真实路径 token(前门夹具本体);`--flip` 的变异器是 tests/lib/model-routing-flips.py(在 scratch 副本上把实现逐条改坏),改它必须重跑这一段
151
155
  62 62 · 关键回复存储与 CLI(change: pulse-key-replies · P234) skills/teamsmith/tests/key-replies.sh skills/teamsmith/tests/lib/proc-io.sh skills/teamsmith/scripts/replies.mjs skills/teamsmith/scripts/lib/cmd-reply.sh skills/teamsmith/tests/lib/tmp-root.sh - 段内点名 2 条真实路径 token(tests/key-replies.sh、scripts/replies.mjs);夹具本体 key-replies.sh 自建私有临时根、只对私有夹具仓库跑真 CLI(发布/列表/show),并以内核计数器(/proc/<pid>/io 的 rchar/syscr)与 fd/fdinfo 证据证明读量上界、O_PATH 锚点与 0111 金丝雀证明不枚举,九个具名 guard 用独立 scratch 源码做变异→红→还原→绿;无编译器依赖,观测器缺席时可见跳过并点名
152
156
  63 63 · 关键回复面板第 5 页(change: pulse-key-replies · P234) skills/teamsmith/tests/key-replies-pty.sh skills/teamsmith/tests/key-replies-ui.sh skills/teamsmith/tests/lib/reply-fixture.sh skills/teamsmith/tests/lib/proc-io.sh skills/teamsmith/scripts/panel/panel.js skills/teamsmith/scripts/panel/src skills/teamsmith/scripts/panel/src/* skills/teamsmith/scripts/panel/build.sh skills/teamsmith/scripts/panel/src/strings skills/teamsmith/scripts/panel/src/strings/* skills/teamsmith/tests/lib/pty-wait.sh skills/teamsmith/tests/lib/tmux-iso.sh skills/teamsmith/scripts/lib/cmd-watch.sh 28,38 段内点名 1 条真实路径 token(tests/key-replies-panel.sh);夹具本体 key-replies-panel.sh 在私有 tmux server(lib/tmux-iso.sh 前置)与私有临时根里跑真 bundle + 真 CLI(包一层记录 argv 的 shim),失败注入用真损坏槽位;快照矩阵走 panel.js --snapshot --page 5,故需 28(控制台表面)与 38(设置/选择器夹具的 pty 等待库)
157
+ 64 64 · 升级配方:§6 每一步都可证伪(P255 · upgrade-recipe) skills/teamsmith/references/migration.md skills/teamsmith/tests/upgrade-recipe.sh skills/teamsmith/tests/lib/tmp-root.sh skills/teamsmith/tests/lib/tmux-iso.sh skills/teamsmith/scripts/lib/cmd-watch.sh skills/teamsmith/scripts/lib/cmd-config.sh skills/teamsmith/scripts/lib/cmd-project.sh skills/teamsmith/scripts/lib/cmd-agents.sh skills/teamsmith/scripts/lib/common.sh - 段内点名 1 条真实路径 token($SKILL_DIR/tests/upgrade-recipe.sh);夹具本体 upgrade-recipe.sh 自建私有临时根(lib/tmp-root.sh)并在私有 tmux server(lib/tmux-iso.sh 前置)里跑真 CLI 的启动事务(真 up + 假 PM,绝不碰共享 server);产品侧路径按夹具真读到的登记:cmd-watch.sh(迁移预告 / 启动事务 / 身份记录)、cmd-config.sh(config list / upgrade-models / 受检写入器)、cmd-project.sh(doctor)、cmd-agents.sh(dispatch --print 的 category 解析)、common.sh(team_pm_continuity 与身份解析);改 references/migration.md 的任一步会被 --paths 选中本段
158
+ 65 65 · /team 斜杠命令(change: slash-team · P270) skills/teamsmith/extension/team.ts skills/teamsmith/tests/slash-team.sh skills/teamsmith/tests/slash-team-e2e.sh skills/teamsmith/scripts/lib/cmd-init.sh skills/teamsmith/scripts/lib/cmd-project.sh skills/teamsmith/scripts/lib/cmd-bootstrap.sh - 段内跑 tests/slash-team.sh(bun 假 pi 纯逻辑层 + 七条翻转臂)与 tests/slash-team-e2e.sh(真 pi RPC + 记录桩);端到端层是真进程段落(FAST 里显式 SKIP、全量档跑);表↔CLI 探针给表里每行路径喂 --teamsmith-slash-probe
@@ -31,6 +31,12 @@ set -uo pipefail
31
31
  here="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
32
32
  SEL_DIR="$here"
33
33
 
34
+ # P287:临时根名字里的项目命名空间(ns)的唯一实现在 scripts/lib/common.sh —— 独立跑本脚本时补一次。
35
+ if ! declare -F team_project_ns >/dev/null 2>&1; then
36
+ [ -f "$here/../scripts/lib/common.sh" ] && . "$here/../scripts/lib/common.sh"
37
+ fi
38
+ section_select_ns() { team_project_ns 2>/dev/null || printf 'nosig-00000000\n'; }
39
+
34
40
  ROOT=""
35
41
  MODE=""
36
42
  COPY_OUT=""
@@ -422,7 +428,8 @@ emit_copy() { # <out>
422
428
  do_verify_copies() {
423
429
  build_groups
424
430
  local d out k n=0 bad=0 i
425
- d="$(mktemp -d "${TMPDIR:-/tmp}/teamsmith-select-copies.XXXXXX")" || die "建不了临时目录(TMPDIR=${TMPDIR:-/tmp})"
431
+ team_tmp_root_prepare >/dev/null 2>&1 || true
432
+ d="$(mktemp -d "$(team_tmp_root)/teamsmith-select-copies-$(section_select_ns).XXXXXX")" || die "建不了临时目录(TMPDIR=$(team_tmp_root))"
426
433
  trap 'rm -rf "${d:-}"' EXIT
427
434
  printf '== 段副本 bash -n 全键扫描 ==\n'
428
435
  for ((i = 0; i < T_N; i++)); do