@rt-tools/agent-kit 0.37.1 → 0.39.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 (371) hide show
  1. package/README.md +5 -5
  2. package/assets/checks/action-of.mjs +154 -0
  3. package/assets/checks/board-runs.github.mjs +40 -5
  4. package/assets/checks/check-board.github.mjs +38 -7
  5. package/assets/checks/check-state-next.mjs +22 -10
  6. package/assets/checks/check-turn-map.mjs +26 -6
  7. package/assets/checks/check-work-steps.mjs +4 -173
  8. package/assets/checks/decide.mjs +285 -0
  9. package/assets/checks/decision-table.json +21432 -0
  10. package/assets/checks/decision-table.mjs +495 -0
  11. package/assets/checks/epic-window.mjs +98 -0
  12. package/assets/checks/flow-condition.mjs +64 -0
  13. package/assets/checks/flow-data.mjs +135 -0
  14. package/assets/checks/flow-forecast.mjs +334 -0
  15. package/assets/checks/flow-guard-run.mjs +90 -0
  16. package/assets/checks/flow-guard.mjs +496 -0
  17. package/assets/checks/flow-model.mjs +271 -0
  18. package/assets/checks/flow-override.mjs +130 -0
  19. package/assets/checks/flow-plan.mjs +206 -0
  20. package/assets/checks/flow-scaffold.mjs +224 -0
  21. package/assets/checks/flow-step.mjs +495 -0
  22. package/assets/checks/flow-sync.mjs +296 -0
  23. package/assets/checks/flow-syntax.mjs +292 -0
  24. package/assets/checks/flow-verdict.mjs +227 -0
  25. package/assets/checks/merge-read.mjs +239 -0
  26. package/assets/checks/owner-nudges.mjs +389 -0
  27. package/assets/checks/push-inputs.mjs +59 -16
  28. package/assets/checks/record-count.mjs +437 -0
  29. package/assets/checks/record-recount.mjs +187 -0
  30. package/assets/checks/record-turn.mjs +155 -0
  31. package/assets/checks/task-flow-script.mjs +318 -0
  32. package/assets/checks/tree-assignment.mjs +26 -7
  33. package/assets/checks/work-result.mjs +362 -0
  34. package/assets/checks/work-steps-lib.mjs +205 -0
  35. package/assets/commands/night.md +6 -6
  36. package/assets/defaults/gate-map.sh +39 -12
  37. package/assets/defaults/merges.sh +48 -0
  38. package/assets/defaults/project.sh +6 -5
  39. package/assets/defaults/turn-map.md +23 -22
  40. package/assets/docs/GLOSSARY.md +5 -1
  41. package/assets/hooks/ask-judge.md +67 -0
  42. package/assets/hooks/browser-guard-device-id.sh +11 -9
  43. package/assets/hooks/browser-guard-no-asking.sh +12 -6
  44. package/assets/hooks/browser-guard-no-listing.sh +13 -7
  45. package/assets/hooks/browser-guard-no-other-drivers.sh +25 -17
  46. package/assets/hooks/browser-guard-require-select.sh +15 -15
  47. package/assets/hooks/commit-msg.sh +13 -3
  48. package/assets/hooks/conscience-guard.sh +9 -25
  49. package/assets/hooks/decide.sh +141 -0
  50. package/assets/hooks/deny-tail.sh +16 -11
  51. package/assets/hooks/dev-server-guard.sh +27 -20
  52. package/assets/hooks/dispatch.sh +47 -4
  53. package/assets/hooks/docs-guard.sh +31 -200
  54. package/assets/hooks/end-conversation-guard.sh +12 -21
  55. package/assets/hooks/epic-stop-guard.sh +54 -152
  56. package/assets/hooks/exam-guard.sh +32 -65
  57. package/assets/hooks/facts-docs.sh +221 -0
  58. package/assets/hooks/facts-flow.sh +173 -0
  59. package/assets/hooks/facts.sh +374 -0
  60. package/assets/hooks/flow-step-guard.sh +93 -0
  61. package/assets/hooks/git-guard-delivery-body.sh +4 -4
  62. package/assets/hooks/git-guard-delivery-conflict.sh +16 -10
  63. package/assets/hooks/git-guard-delivery-draft.sh +3 -3
  64. package/assets/hooks/git-guard-delivery-epic.sh +18 -9
  65. package/assets/hooks/git-guard-delivery-folder.sh +32 -7
  66. package/assets/hooks/git-guard-delivery-merge.sh +2 -2
  67. package/assets/hooks/git-guard-delivery-merged.sh +12 -1
  68. package/assets/hooks/git-guard-delivery-pipeline.sh +1 -1
  69. package/assets/hooks/git-guard-delivery-rerun.sh +44 -0
  70. package/assets/hooks/git-guard-delivery-signature.sh +82 -45
  71. package/assets/hooks/git-guard-delivery-task.sh +47 -0
  72. package/assets/hooks/git-guard-delivery.sh +112 -101
  73. package/assets/hooks/git-guard-discard.sh +8 -18
  74. package/assets/hooks/git-guard-main.sh +13 -19
  75. package/assets/hooks/git-guard-no-verify.sh +56 -16
  76. package/assets/hooks/git-guard-push-ahead.sh +39 -6
  77. package/assets/hooks/git-guard-push-marks.sh +262 -13
  78. package/assets/hooks/git-guard-push-tests.sh +58 -52
  79. package/assets/hooks/git-guard-tree-assignment.sh +7 -4
  80. package/assets/hooks/guard-note.sh +8 -6
  81. package/assets/hooks/handoff-entry-guard.sh +19 -38
  82. package/assets/hooks/handoff-write.sh +3 -1
  83. package/assets/hooks/hook-input.sh +0 -41
  84. package/assets/hooks/metric-marks.sh +19 -7
  85. package/assets/hooks/observe.sh +1 -1
  86. package/assets/hooks/override-write-guard.sh +27 -9
  87. package/assets/hooks/pre-push.sh +40 -12
  88. package/assets/hooks/prose-style-guard.sh +6 -19
  89. package/assets/hooks/pull-merges.sh +76 -0
  90. package/assets/hooks/push-ahead-call-guard.sh +447 -0
  91. package/assets/hooks/push-set.sh +38 -8
  92. package/assets/hooks/qa-dataid-guard.sh +7 -17
  93. package/assets/hooks/record-turn.sh +52 -0
  94. package/assets/hooks/rerun-guard.sh +11 -16
  95. package/assets/hooks/reuse-first-guard.sh +7 -21
  96. package/assets/hooks/role-calls.sh +25 -3
  97. package/assets/hooks/rule-source-guard.sh +54 -21
  98. package/assets/hooks/skill-gate-rearm.sh +18 -5
  99. package/assets/hooks/skill-gate.sh +156 -20
  100. package/assets/hooks/skill-loaded.sh +18 -3
  101. package/assets/hooks/sql-guard-target.sh +2 -2
  102. package/assets/hooks/sql-guard-write.sh +12 -12
  103. package/assets/hooks/sql-guard.sh +58 -16
  104. package/assets/hooks/task-context-load.sh +3 -1
  105. package/assets/hooks/task-flow-context.sh +5 -18
  106. package/assets/hooks/task-flow-draft-guard.sh +25 -74
  107. package/assets/hooks/task-flow-guard.sh +28 -130
  108. package/assets/hooks/tree-assignment-guard.sh +25 -14
  109. package/assets/hooks/turn-entry-load.sh +3 -1
  110. package/assets/hooks/turn-exit-guard.sh +92 -452
  111. package/assets/hooks/turn-exit-role.sh +3 -1
  112. package/assets/hooks/turn-judge.md +113 -0
  113. package/assets/hooks/window-fill-guard.sh +22 -41
  114. package/assets/patterns/doc-style-human.md +36 -76
  115. package/assets/patterns/git-workflow-commit.azure.md +9 -155
  116. package/assets/patterns/git-workflow-commit.github.md +11 -269
  117. package/assets/patterns/git-workflow-commit.gitlab.md +9 -161
  118. package/assets/patterns/git-workflow-docker.md +8 -231
  119. package/assets/patterns/git-workflow-freshness.md +8 -56
  120. package/assets/patterns/git-workflow-merge.md +6 -176
  121. package/assets/patterns/git-workflow-migration.md +5 -75
  122. package/assets/patterns/git-workflow-pr-body.github.md +6 -159
  123. package/assets/patterns/git-workflow-pr-ready.md +9 -70
  124. package/assets/patterns/git-workflow-pr.azure.md +13 -285
  125. package/assets/patterns/git-workflow-pr.github.md +13 -251
  126. package/assets/patterns/git-workflow-pr.gitlab.md +13 -286
  127. package/assets/patterns/git-workflow-restart.md +5 -42
  128. package/assets/patterns/git-workflow-secrets.md +10 -76
  129. package/assets/patterns/git-workflow-stack.md +7 -207
  130. package/assets/patterns/status-report-table.github.md +1 -1
  131. package/assets/patterns/task-flow-archive.md +12 -233
  132. package/assets/patterns/task-flow-close.md +16 -292
  133. package/assets/patterns/task-flow-cycle.md +13 -39
  134. package/assets/patterns/task-flow-graph.needs-graph.md +8 -62
  135. package/assets/patterns/task-flow-handoff.md +13 -161
  136. package/assets/patterns/task-flow-resume.md +18 -218
  137. package/assets/patterns/task-flow-start.md +9 -247
  138. package/assets/patterns/turn-entry-map.md +2 -2
  139. package/assets/pitfalls/agent-kit-extend.md +200 -0
  140. package/assets/pitfalls/agent-kit.2.md +323 -0
  141. package/assets/pitfalls/angular-patterns.md +98 -0
  142. package/assets/pitfalls/browser-verification.md +265 -0
  143. package/assets/pitfalls/component-structure.md +98 -0
  144. package/assets/pitfalls/dependencies.md +92 -0
  145. package/assets/pitfalls/deploy-flow.azure.md +171 -0
  146. package/assets/pitfalls/deploy-flow.github.md +211 -0
  147. package/assets/pitfalls/deploy-flow.gitlab.md +173 -0
  148. package/assets/pitfalls/doc-style-human.md +112 -0
  149. package/assets/pitfalls/doc-style.2.md +286 -0
  150. package/assets/pitfalls/entity-conventions.needs-admin.md +96 -0
  151. package/assets/pitfalls/entity-models.md +89 -0
  152. package/assets/pitfalls/epic-flow.md +92 -0
  153. package/assets/pitfalls/git-workflow-commit.azure.md +190 -0
  154. package/assets/pitfalls/git-workflow-commit.github.md +307 -0
  155. package/assets/pitfalls/git-workflow-commit.gitlab.md +196 -0
  156. package/assets/pitfalls/git-workflow-docker.md +275 -0
  157. package/assets/pitfalls/git-workflow-freshness.md +88 -0
  158. package/assets/pitfalls/git-workflow-hosting.azure.md +31 -0
  159. package/assets/pitfalls/git-workflow-hosting.github.md +32 -0
  160. package/assets/pitfalls/git-workflow-hosting.gitlab.md +31 -0
  161. package/assets/pitfalls/git-workflow-merge.md +220 -0
  162. package/assets/pitfalls/git-workflow-migration.md +103 -0
  163. package/assets/pitfalls/git-workflow-pr-body.github.md +185 -0
  164. package/assets/pitfalls/git-workflow-pr-ready.md +104 -0
  165. package/assets/pitfalls/git-workflow-pr.2.azure.md +172 -0
  166. package/assets/pitfalls/git-workflow-pr.2.github.md +184 -0
  167. package/assets/pitfalls/git-workflow-pr.2.gitlab.md +180 -0
  168. package/assets/pitfalls/git-workflow-pr.azure.md +159 -0
  169. package/assets/pitfalls/git-workflow-pr.github.md +107 -0
  170. package/assets/pitfalls/git-workflow-pr.gitlab.md +151 -0
  171. package/assets/pitfalls/git-workflow-push.azure.md +30 -0
  172. package/assets/pitfalls/git-workflow-push.github.md +30 -0
  173. package/assets/pitfalls/git-workflow-push.gitlab.md +30 -0
  174. package/assets/pitfalls/git-workflow-queue.azure.md +30 -0
  175. package/assets/pitfalls/git-workflow-queue.github.md +30 -0
  176. package/assets/pitfalls/git-workflow-queue.gitlab.md +30 -0
  177. package/assets/pitfalls/git-workflow-restart.md +72 -0
  178. package/assets/pitfalls/git-workflow-secrets.md +114 -0
  179. package/assets/pitfalls/git-workflow-stack.md +254 -0
  180. package/assets/pitfalls/git-workflow.2.azure.md +291 -0
  181. package/assets/pitfalls/git-workflow.2.github.md +294 -0
  182. package/assets/pitfalls/git-workflow.2.gitlab.md +278 -0
  183. package/assets/pitfalls/lib-layers.md +114 -0
  184. package/assets/pitfalls/lists.md +117 -0
  185. package/assets/pitfalls/mockups.needs-mockups.md +87 -0
  186. package/assets/pitfalls/navigation.md +94 -0
  187. package/assets/pitfalls/observability.needs-app.md +186 -0
  188. package/assets/pitfalls/platform-access.md +94 -0
  189. package/assets/pitfalls/queue-audit.github.md +78 -0
  190. package/assets/pitfalls/reuse-first.md +201 -0
  191. package/assets/pitfalls/spec-driven.2.md +318 -0
  192. package/assets/pitfalls/styling-bem.2.md +125 -0
  193. package/assets/pitfalls/task-flow-archive.md +265 -0
  194. package/assets/pitfalls/task-flow-close.2.md +166 -0
  195. package/assets/pitfalls/task-flow-close.md +167 -0
  196. package/assets/pitfalls/task-flow-cycle.md +73 -0
  197. package/assets/pitfalls/task-flow-graph.needs-graph.md +98 -0
  198. package/assets/pitfalls/task-flow-handoff.md +200 -0
  199. package/assets/pitfalls/task-flow-handover.md +30 -0
  200. package/assets/pitfalls/task-flow-owner.md +58 -0
  201. package/assets/pitfalls/task-flow-plan.md +29 -0
  202. package/assets/pitfalls/task-flow-resume.md +257 -0
  203. package/assets/pitfalls/task-flow-start.md +287 -0
  204. package/assets/pitfalls/task-flow.2.md +303 -0
  205. package/assets/pitfalls/task-flow.md +4 -4
  206. package/assets/pitfalls/testing.2.md +279 -0
  207. package/assets/pitfalls/turn-conduct.md +16 -17
  208. package/assets/pitfalls/typescript-conventions.md +161 -0
  209. package/assets/pitfalls/write-a-skill.md +128 -0
  210. package/assets/rules/angular-patterns.md +21 -86
  211. package/assets/rules/autonomous-work.md +2 -2
  212. package/assets/rules/browser-verification.md +28 -256
  213. package/assets/rules/component-structure.md +25 -87
  214. package/assets/rules/dependencies.md +20 -78
  215. package/assets/rules/deploy-flow.azure.md +26 -156
  216. package/assets/rules/deploy-flow.github.md +34 -200
  217. package/assets/rules/deploy-flow.gitlab.md +27 -159
  218. package/assets/rules/doc-style.md +32 -286
  219. package/assets/rules/entity-conventions.needs-admin.md +26 -82
  220. package/assets/rules/entity-models.md +14 -63
  221. package/assets/rules/epic-flow.md +24 -63
  222. package/assets/rules/git-workflow-hosting.azure.md +26 -0
  223. package/assets/rules/git-workflow-hosting.github.md +38 -0
  224. package/assets/rules/git-workflow-hosting.gitlab.md +27 -0
  225. package/assets/rules/git-workflow-push.azure.md +28 -0
  226. package/assets/rules/git-workflow-push.github.md +28 -0
  227. package/assets/rules/git-workflow-push.gitlab.md +28 -0
  228. package/assets/rules/git-workflow-queue.azure.md +23 -0
  229. package/assets/rules/git-workflow-queue.github.md +30 -0
  230. package/assets/rules/git-workflow-queue.gitlab.md +23 -0
  231. package/assets/rules/git-workflow.azure.md +21 -282
  232. package/assets/rules/git-workflow.github.md +24 -284
  233. package/assets/rules/git-workflow.gitlab.md +21 -269
  234. package/assets/rules/lib-layers.md +30 -103
  235. package/assets/rules/lists.md +21 -105
  236. package/assets/rules/mockups.needs-mockups.md +25 -64
  237. package/assets/rules/navigation.md +10 -69
  238. package/assets/rules/observability.needs-app.md +43 -172
  239. package/assets/rules/platform-access.md +28 -75
  240. package/assets/rules/queue-audit.github.md +25 -52
  241. package/assets/rules/reuse-first.md +20 -195
  242. package/assets/rules/spec-driven.md +35 -308
  243. package/assets/rules/styling-bem.md +20 -117
  244. package/assets/rules/task-flow-handover.md +24 -0
  245. package/assets/rules/task-flow-owner.md +34 -0
  246. package/assets/rules/task-flow-plan.md +38 -0
  247. package/assets/rules/task-flow.md +22 -300
  248. package/assets/rules/testing.md +32 -273
  249. package/assets/rules/turn-conduct.md +105 -106
  250. package/assets/rules/turn-entry.md +2 -2
  251. package/assets/rules/typescript-conventions.md +41 -147
  252. package/assets/samples/tasks/_template/plan.md +30 -6
  253. package/assets/samples/tasks/_template/progress.md +0 -1
  254. package/assets/skills/agent-kit-extend.md +25 -168
  255. package/assets/skills/agent-kit.md +27 -299
  256. package/assets/skills/write-a-skill.md +20 -106
  257. package/assets/task-flow/flow.js +184 -0
  258. package/assets/task-flow/flow.md +101 -0
  259. package/assets/task-flow/measure/agreement.mjs +24 -0
  260. package/assets/task-flow/measure/ci.mjs +184 -0
  261. package/assets/task-flow/measure/copy.mjs +22 -0
  262. package/assets/task-flow/measure/epic-of.mjs +50 -0
  263. package/assets/task-flow/measure/epic-text.mjs +35 -0
  264. package/assets/task-flow/measure/epic.mjs +114 -0
  265. package/assets/task-flow/measure/folder.mjs +16 -0
  266. package/assets/task-flow/measure/footprint.mjs +28 -0
  267. package/assets/task-flow/measure/grill.mjs +21 -0
  268. package/assets/task-flow/measure/host.mjs +8 -0
  269. package/assets/task-flow/measure/owner.mjs +27 -0
  270. package/assets/task-flow/measure/plan.mjs +27 -0
  271. package/assets/task-flow/measure/pr.mjs +20 -0
  272. package/assets/task-flow/measure/progress.mjs +50 -0
  273. package/assets/task-flow/measure/session.mjs +252 -0
  274. package/assets/task-flow/measure/task.mjs +23 -0
  275. package/assets/task-flow/measure/text.mjs +77 -0
  276. package/assets/task-flow/source/git.mjs +254 -0
  277. package/assets/task-flow/source/host.mjs +277 -0
  278. package/assets/task-flow/source/marks.mjs +56 -0
  279. package/assets/task-flow/source/owner.mjs +94 -0
  280. package/assets/task-flow/source/records.mjs +116 -0
  281. package/assets/task-flow/source/session.mjs +269 -0
  282. package/assets/task-flow/source/steps.mjs +28 -0
  283. package/assets/task-flow/source/tree.mjs +42 -0
  284. package/bin/agent-kit.d.ts.map +1 -1
  285. package/bin/agent-kit.js +30 -0
  286. package/bin/agent-kit.js.map +1 -1
  287. package/lib/agent-checks.d.ts +55 -0
  288. package/lib/agent-checks.d.ts.map +1 -0
  289. package/lib/agent-checks.js +221 -0
  290. package/lib/agent-checks.js.map +1 -0
  291. package/lib/assets.d.ts.map +1 -1
  292. package/lib/assets.js +7 -2
  293. package/lib/assets.js.map +1 -1
  294. package/lib/cargo.d.ts +29 -0
  295. package/lib/cargo.d.ts.map +1 -1
  296. package/lib/cargo.js +27 -1
  297. package/lib/cargo.js.map +1 -1
  298. package/lib/cascade.d.ts.map +1 -1
  299. package/lib/cascade.js +3 -1
  300. package/lib/cascade.js.map +1 -1
  301. package/lib/commands.d.ts.map +1 -1
  302. package/lib/commands.js +78 -2
  303. package/lib/commands.js.map +1 -1
  304. package/lib/config.d.ts +18 -0
  305. package/lib/config.d.ts.map +1 -1
  306. package/lib/config.js +18 -1
  307. package/lib/config.js.map +1 -1
  308. package/lib/epic-window-send.d.ts +74 -0
  309. package/lib/epic-window-send.d.ts.map +1 -0
  310. package/lib/epic-window-send.js +166 -0
  311. package/lib/epic-window-send.js.map +1 -0
  312. package/lib/hooks-map.d.ts +4 -0
  313. package/lib/hooks-map.d.ts.map +1 -1
  314. package/lib/hooks-map.js +2 -2
  315. package/lib/hooks-map.js.map +1 -1
  316. package/lib/integrity.d.ts +3 -0
  317. package/lib/integrity.d.ts.map +1 -1
  318. package/lib/integrity.js +7 -0
  319. package/lib/integrity.js.map +1 -1
  320. package/lib/metric-lines.d.ts +2 -1
  321. package/lib/metric-lines.d.ts.map +1 -1
  322. package/lib/metric-lines.js +49 -1
  323. package/lib/metric-lines.js.map +1 -1
  324. package/lib/metric-send-mark.d.ts +6 -3
  325. package/lib/metric-send-mark.d.ts.map +1 -1
  326. package/lib/metric-send-mark.js +15 -5
  327. package/lib/metric-send-mark.js.map +1 -1
  328. package/lib/metric-send.d.ts +6 -2
  329. package/lib/metric-send.d.ts.map +1 -1
  330. package/lib/metric-send.js +47 -13
  331. package/lib/metric-send.js.map +1 -1
  332. package/lib/metrics.d.ts +17 -0
  333. package/lib/metrics.d.ts.map +1 -1
  334. package/lib/metrics.js +26 -15
  335. package/lib/metrics.js.map +1 -1
  336. package/lib/observations.js +3 -3
  337. package/lib/observations.js.map +1 -1
  338. package/lib/outcomes.d.ts +5 -2
  339. package/lib/outcomes.d.ts.map +1 -1
  340. package/lib/outcomes.js +5 -4
  341. package/lib/outcomes.js.map +1 -1
  342. package/lib/push-gate.d.ts +13 -0
  343. package/lib/push-gate.d.ts.map +1 -1
  344. package/lib/push-gate.js +11 -7
  345. package/lib/push-gate.js.map +1 -1
  346. package/lib/push-set-usefulness.d.ts +78 -0
  347. package/lib/push-set-usefulness.d.ts.map +1 -0
  348. package/lib/push-set-usefulness.js +225 -0
  349. package/lib/push-set-usefulness.js.map +1 -0
  350. package/lib/sync.d.ts +10 -0
  351. package/lib/sync.d.ts.map +1 -1
  352. package/lib/sync.js +14 -1
  353. package/lib/sync.js.map +1 -1
  354. package/lib/work-result.d.ts +43 -0
  355. package/lib/work-result.d.ts.map +1 -0
  356. package/lib/work-result.js +39 -0
  357. package/lib/work-result.js.map +1 -0
  358. package/package.json +1 -1
  359. package/assets/hooks/claim-guard.sh +0 -212
  360. package/assets/hooks/grill-gate-ask.sh +0 -26
  361. package/assets/hooks/grill-gate-bypass.sh +0 -61
  362. package/assets/hooks/grill-gate-options.sh +0 -50
  363. package/assets/hooks/grill-gate.sh +0 -482
  364. package/assets/hooks/postmortem-guard.sh +0 -124
  365. package/assets/hooks/proposal-guard.sh +0 -154
  366. package/assets/hooks/stand-login-guard.sh +0 -107
  367. package/assets/hooks/turn-exit-epic.sh +0 -173
  368. package/assets/hooks/turn-exit-patterns.sh +0 -123
  369. package/assets/hooks/turn-exit-verdict.sh +0 -149
  370. package/assets/hooks/waiting-turn-guard.sh +0 -320
  371. package/assets/hooks/work-start-guard.sh +0 -175
@@ -8,7 +8,7 @@ description: Pattern of rule turn-conduct. Load when the session runs into windo
8
8
  # Closing a session on window fill
9
9
 
10
10
  Pattern of the rule `turn-conduct`. What must be true meanwhile — the law
11
- `docs/constitution/work-conduct.md`.
11
+ `docs/constitution/work-conduct.md`. Cold part: `pitfalls.md` — every section below whole, with its code and reasons.
12
12
 
13
13
  ## When to use
14
14
 
@@ -18,183 +18,35 @@ Pattern of the rule `turn-conduct`. What must be true meanwhile — the law
18
18
 
19
19
  ## What happens at the thresholds
20
20
 
21
- | Fill | What the guard does | What the session does |
22
- | --- | --- | --- |
23
- | below the first threshold | stays silent | works |
24
- | the first threshold and above | a reminder at every next step of five percent | picks a stopping point and brings the current step to it |
25
- | the second threshold and above | refuses everything but the task folder, the handover and the delivery commands | closes |
26
-
27
- The thresholds are watched by the window-fill guard; it takes the window size from the tree's
28
- setting — it cannot be derived from the session record. The room between the thresholds is what the
29
- session closes on: write up the progress, write the handover, commit and open the PR if the work is
30
- finished.
21
+ The thresholds are watched by the window-fill guard; it takes the window size from the tree's setting — it cannot be derived from the session record.
31
22
 
32
23
  ## The stopping point
33
24
 
34
- The logical point is not "where the reminder caught us" but a state from which the next session goes
35
- on without redoing anything:
36
-
37
- - a stage of the plan is closed whole, not by half;
38
- - what was done is checked — the run passed, the build built, the measurement taken;
39
- - what was checked is committed: uncommitted work does not survive the break;
40
- - what was begun and dropped is named in the progress outright, with the reason.
41
-
42
- An unclosed stage is a lawful point too, if the progress records exactly what of it is done and what
43
- confirms it. There is one unlawful point: an edit about which nothing is recorded.
44
-
45
25
  ## The session closes with a handover, and the work state does not change
46
26
 
47
- The cleanup of this step — main, the merged branches and the record of the handover itself — is done
48
- by the `next-session` command: it walks the step whole and names the path to the handover in its
49
- last line. Below is what must come out of it; the order is the same whether it is called by the
50
- command or by hand.
27
+ The cleanup of this step — main, the merged branches and the record of the handover itself — is done by the `next-session` command: it walks the step whole and names the path to the handover in its last line.
51
28
 
52
29
  ### The progress
53
30
 
54
- The "Where we stand" section is rewritten, the decisions along the way and the session entry are
55
- appended. The form — pattern `task-flow-resume`.
31
+ The "Where we stand" section is rewritten, the decisions along the way and the session entry are appended. The form — pattern `task-flow-resume`.
56
32
 
57
33
  ### The commit
58
34
 
59
- What was checked is committed at once, not stored up until the end of the task. The work is finished
60
- — a PR opens: pattern `git-workflow-pr`.
35
+ What was checked is committed at once, not stored up until the end of the task. The work is finished — a PR opens: pattern `git-workflow-pr`.
61
36
 
62
37
  ### The handover
63
38
 
64
- It is placed as the section `## Handover of the session` in the task's progress — the same file where "Where
65
- we stand" stands. It is committed and goes into the branch, so the handover survives a move to
66
- another machine: work broken off by window fill is picked up where it goes on. The executor commits
67
- and pushes the section, in the same turn as the rest of the work record.
68
-
69
- The section is one: a second compaction rewrites the previous one rather than adding a second — two
70
- truths about one piece of work in one file are worse than one stale truth. The headings inside it go
71
- at the third level, so as not to clash with the sections of the progress itself.
72
-
73
- Work without a task folder — a detached head, a branch without a created task — has nowhere to put
74
- the section, and the handover leaves as a file outside the tree; the directory is named by the
75
- profile:
76
-
77
- ```bash
78
- mkdir -p <каталог передачи>
79
- # the file — <каталог передачи>/<ветка>.md
80
- ```
81
-
82
- This is a fallback, not a second lawful place: a branch with a task folder gets no such file at all,
83
- and the reading side does not look at it once it has found the section.
84
-
85
- **The handover draft is written by a hook, not by hand.** Before context compaction it puts what is
86
- on disk at the same address: the branch, the work state, the next step, what is uncommitted, the
87
- commits above main. Compaction comes even when there is nobody to remind — at night or in the middle
88
- of a long turn — and without the hook the session lost the handover whole at that moment.
89
-
90
- **The handover is read by a hook too, not by a person.** At startup it puts it into the context
91
- whole, together with the turn map. Nobody has to paste it by hand — neither after compaction, nor
92
- after a break, nor after clearing. Written and not read, a handover equals an unwritten one: the
93
- next session knows nothing of it and starts from a blank — that is, from what it was written to
94
- prevent.
95
-
96
- Hence the requirement on the text: the handover is written for a machine that feeds it in without
97
- sorting, and for a session that reads it as its first line. Addressing the owner in it — "ask them
98
- how the trial ended" — is writing into a void: by the time it is read the owner is not yet in the
99
- conversation.
100
-
101
- What the hook writes is the lower bound, not a finished handover. An executor closing the session by
102
- the rule writes over it: they know what is not on disk — how the trial ended, why this path was
103
- chosen, what the owner said along the way. The file is one, the last entry wins.
104
-
105
- Inside — ready text for pasting into the new session, without asking the owner for details:
106
-
107
- ```markdown
108
- Work: <KEY>-<number> "<task name>". Working tree — <full path>, branch
109
- <KEY>-<number>-<slug> (created, in progress).
110
- PR: #<number>, open, waiting for the owner's review. The freshness of its base is left out on
111
- purpose — it goes stale; the new session asks the hosting about it first thing.
112
-
113
- The progress and the plan arrive at session start through the hook — no need to re-read them
114
- as files. The grill of the owner's request lies in the task folder and is read when the reason
115
- for a decision is unclear.
116
-
117
- Done: stages 1–3 of the plan are closed and committed.
118
- Next step: stage 4 — <what exactly>.
119
-
120
- What to keep in mind in this session:
121
-
122
- - the rules review of <KEY>-<number> was started in the background and has not returned —
123
- write the findings to `<plan name>-findings.md` next to the epic plan;
124
- - the stands are already up, raised by the owner; do not raise your own;
125
- - the dependencies of this tree lag behind the main branch — when the build fails on a
126
- foreign error, install dependencies first;
127
- - <anything else that is neither in the rules nor in the progress>.
128
- ```
129
-
130
- The third section is "Epic" — the position table. Work outside an epic does not carry this section:
131
- a table of one row repeats the "Work" section and reads as an epic of one task.
132
-
133
- ```markdown
134
- ### Epic <number> — <the capability named by the plan>
135
-
136
- | # | Task | State |
137
- | --- | --------------------------------- | ----------- |
138
- | 1 | <KEY>-<number> — <what it does> | closed |
139
- | 2 | **<KEY>-<number> — <what it does>** | in progress |
140
- | 3 | <KEY>-<number> — <what it does> | ahead |
141
- ```
142
-
143
- Three columns, a row per task. The heading names the epic number and the capability — the one
144
- written in the plan, not retold anew. `#` is the place in order: the actual one for closed tasks,
145
- the one assigned by the plan for future ones. `Task` — the number and what it does, in the same
146
- words as the plan. `State` — "closed", "in progress" or "ahead"; the row of the current task is
147
- highlighted whole.
148
-
149
- The set is taken from the epic plan, and the state from the work queue: the plan does not know what
150
- is closed, and the queue does not know the order. A task added to the epic after planning stands in
151
- the queue and in the table, but not in the plan — the discrepancy is named aloud, not smoothed over.
152
-
153
- The sections are fixed, and their order is the same:
154
-
155
- 1. **Work** — the task number, its name, the working tree by full path, the branch and its state;
156
- for handed-in work — the number of the open PR and what it waits for.
157
- 2. **Where to look** — what comes by the hook itself, and what is read as needed.
158
- 3. **Epic** — the position table; work outside an epic has no such section.
159
- 4. **Done and the next step** — one line each; the details are already in the progress.
160
- 5. **What to keep in mind** — the particulars of this session that are neither in the rules nor in
161
- the progress. Raised stands, lagging dependencies, other people's processes on ports, open
162
- questions to the owner, a review launched in the background and not returned.
163
-
164
- **A review launched in the background and not returned by the session's end is named by a line in
165
- "What to keep in mind".** The role answers into the conversation, gone by the next session. An
166
- answer that came after closing is read by nobody, and the findings are lost whole, together with
167
- what the review was launched for. There is no trace on disk either — the findings file is written by
168
- the executor from the answer, and there was no answer yet. The line names the task the review runs
169
- on and the file to write the returned findings to: without the second, the next session knows it
170
- waits for something and does not know where to put it. The review gets no section of its own — in a
171
- session that did not launch one, the section would stand empty.
39
+ - **Work**
40
+ - **Where to look**
41
+ - **Epic**
42
+ - **Done and the next step**
43
+ - **What to keep in mind**
172
44
 
173
45
  ### The path to the owner
174
46
 
175
- The last line to the owner names where the handover lies. They paste nothing: the entry hook serves
176
- it to the next session on the same branch by itself. Retelling the content of the handover in the
177
- reply is not needed: the owner will read it anyway, and the room for it is already spent.
47
+ The last line to the owner names where the handover lies. They paste nothing: the entry hook serves it to the next session on the same branch by itself.
178
48
 
179
49
  ## Common misses
180
50
 
181
- - **The session closes at the second threshold instead of starting a new stage on it.** The reminder
182
- at the first one is already the signal to pick a point, not to work on until refused.
183
- - **The handover is written as a retelling of the conversation.** What goes into it is what is
184
- neither in the progress nor in the rules: the tree, the branch, the state of the stands.
185
- Everything else the next session reads by itself.
186
- - **A statement about the state of the work is taken in the same turn, not recalled.** The task's
187
- parent, its column, the open PR, the merged branch, the raised stands live outside the session and
188
- change without it. The handover is read first and not disputed: the session carries out its
189
- instruction rather than checking it. Plausibility is no confirmation — "the branch is not merged,
190
- so there is no parent either" is an inference, not a measurement. Nothing to ask with — then it is
191
- written as a question: "the parent is not checked, check before the PR".
192
- - **The work state does not move into the handover.** Done work is marked in the progress — by one
193
- entry; the handover retells it but does not replace it.
194
- - **The handover records a state that lives for hours.** Lag behind main, the course of the run and
195
- "checks green" the new session reads as true today. What goes into the handover is what does not
196
- change without the executor: the tree, the branch, the PR number, what is not committed.
197
- - **The uncommitted is not named.** Work lives in the tree for weeks, and the line "what lies
198
- unsaved and why" is the only thing that makes it visible.
199
- - **A session that ended in nothing writes a handover too.** "We tried this — it did not work,
200
- because" is its result; without the record the next session repeats the same path.
51
+ - **The session closes at the second threshold instead of starting a new stage on it.**
52
+ - **The handover is written as a retelling of the conversation.**
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: task-flow-resume
3
3
  kind: pattern
4
- rule: task-flow
5
- description: Pattern of rule task-flow. Load when returning to unfinished work in a new session. What is already in the context, what not to ask the owner, how to edit "Where we stand", how to record a decision along the way and a stage revision. Not for starting work — that is pattern task-flow-start.
4
+ rule: task-flow-plan
5
+ description: Pattern of rule task-flow-plan. Load when returning to unfinished work in a new session. What is already in the context, what not to ask the owner, how to edit "Where we stand", how to record a decision along the way and a stage revision. Not for starting work — that is pattern task-flow-start.
6
6
  ---
7
7
 
8
8
  # Returning to unfinished work
@@ -10,6 +10,8 @@ description: Pattern of rule task-flow. Load when returning to unfinished work i
10
10
  Pattern of the rule `task-flow`. What must be true meanwhile — the law
11
11
  `docs/constitution/work-conduct.md`.
12
12
 
13
+ Cold part: `pitfalls.md` — every section below whole, with its code and reasons.
14
+
13
15
  **Requires:** `hooks/task-context-load.sh`
14
16
 
15
17
  ## When to use
@@ -20,242 +22,40 @@ Pattern of the rule `task-flow`. What must be true meanwhile — the law
20
22
 
21
23
  ## What has already come into the context
22
24
 
23
- The hook `task-context-load.sh` gave the plan and the progress whole at session start, and the grill
24
- of the request — by path. They need not be re-read as files; `grill.md` is read when a decision
25
- whose reason is unclear surfaces in the progress.
26
-
27
- The warning `РАБОТА БЕЗ ПАПКИ ЗАДАЧИ` came — the work went past the folder. The folder is assembled
28
- from the template, and `progress.md` is filled by what is seen in the tree and in the branch
29
- history, not by questioning the owner.
30
-
31
- `РАБОТА ЗАКРЫВАЕТСЯ` came — the branch itself took the folder apart before the PR, and it is not
32
- assembled again: the work state is read at the PR and in the session handover. A code edit after
33
- review remarks became needed — the folder is restored for the time of the edit, and the taking-apart
34
- is repeated by the same commit.
25
+ The hook `task-context-load.sh` gave the plan and the progress whole at session start, and the grill of the request — by path.
35
26
 
36
27
  ## A stage sign is checked by a run, not by a list made by reading
37
28
 
38
- What is counted by eye diverges from what is there. Reading the check, the executor counted four
39
- exits by skip, and there were five — the fifth lay behind a separate function inside the database
40
- client wrapper and did not get into the list. It was found by a run, and what saved the work was
41
- exactly the plan line that demanded checking every case by a command.
42
-
43
- Hence the form of the sign: it names a command and what in its output means "matches" — not a list
44
- gathered by reading. A list is good for knowing where to look; a stage is closed by command output.
29
+ What is counted by eye diverges from what is there.
45
30
 
46
31
  ## What not to do
47
32
 
48
- - **Do not ask the owner about what is recorded.** That is what all of this is for.
49
- - **Do not start over what is marked done.** The mark stands in the progress; doubt about it is
50
- checked by the tree — a build, tests, reading the file — not by a question.
51
- - **Do not re-derive the recorded from the code.** The ban on questions does not cover this: a
52
- decision derived from the code and served as a finding costs more than a spare question. The owner
53
- is offered to accept anew what they already accepted, and a list of options sounds more convincing
54
- than a record they do not see. Before deriving, the grill, the progress and the plan are searched.
55
- - **Do not edit the plan.** The result is checked against it; a revision goes as an entry in the
56
- progress.
33
+ - **Do not ask the owner about what is recorded.**
34
+ - **Do not start over what is marked done.**
35
+ - **Do not re-derive the recorded from the code.**
36
+ - **Do not edit the plan.**
57
37
 
58
38
  ## Entry from a session handover
59
39
 
60
- The handover was written by a past session, and no check reads it. It is read as an assignment —
61
- and the work is taken up past the rule: the state is not checked, the rule is not loaded, the
62
- numbers are taken on trust. The entry from a handover differs from an ordinary session in one thing:
63
- everything written in it is checked against the tree, because it was written yesterday.
64
-
65
- The order is short, four steps:
66
-
67
- 1. **The work-conduct rule and this pattern — as the first move**, before the first line to the
68
- owner.
69
- 2. **The branch and the work state are read in the tree**, not in the handover: `git branch
70
- --show-current` and the state line in the progress. Diverged from the handover — the tree is
71
- right.
72
- 3. **The numbers from the handover are recounted** on the current commit. The estimate "twice as
73
- much work" was never confirmed by a recount.
74
- 4. **The next step is taken from the progress**, not from the handover's section about it: the
75
- handover retells the progress as it stood at its minute, and the two diverge within one session.
76
-
77
- What is not in the handover and never will be: the owner's words — they are in the grill; decisions
78
- with reasons — they are in the progress; the plan — it is on disk. The handover retells, it does not
79
- replace.
40
+ - **The work-conduct rule and this pattern — as the first move**
41
+ - **The branch and the work state are read in the tree**
42
+ - **The numbers from the handover are recounted**
80
43
 
81
44
  ## Entering the session: the state line is checked against the tree
82
45
 
83
- Check "Where we stand" against the tree. The record describes the day it was made:
84
-
85
- ```bash
86
- git status --short
87
- git log --oneline origin/main..HEAD
88
- ```
89
-
90
- Diverged — "Where we stand" is fixed at once, before the work: the next session will trust the
91
- record, not the tree. The state line is fixed together with it: the guard reads it, and left over
92
- from the past session it either refuses a lawful edit or lets through work that has not yet reached
93
- the code edit.
46
+ Check "Where we stand" against the tree.
94
47
 
95
48
  ## State `этап-идёт`: the stage is done and marked in the progress
96
49
 
97
- A large edit that crosses several layers — the contract, the storage, the applications — may be led
98
- by the role pipeline:
99
-
100
- ```
101
- Workflow(name: "feature", args: { task: "<the plan stage>", grill: "docs/tasks/<ветка>/grill.md" })
102
- ```
103
-
104
- The pipeline makes a plan of its own, up to six steps: its points role reads the task and epic plans,
105
- but its own steps do not come from `plan.md`. So it is given one stage of the plan, not the task,
106
- and its steps are not new stages: the progress marks the steps of the plan as before, and the
107
- pipeline's acceptance is the readiness sign of that stage. Its goal phase compares the result with
108
- the whole request of the grill, so for one stage its verdict "goal not met" is expected and is not
109
- the readiness sign.
110
-
111
- The "Where we stand" section is **rewritten**, not appended — it is the first thing the next session
112
- reads, and the only thing that survives trimming by size:
113
-
114
- ```markdown
115
- ## Where we stand
116
-
117
- - **State:** `этап-идёт`
118
- - **Stage:** 3 of 6 — the guard and the startup hook
119
- - **Done:** the law is created, the task folder and the sample are written
120
- - **Next step:** the scenarios of both hooks, then wiring them into the settings
121
- - **Uncommitted:** everything, the branch has no commits yet
122
- - **Waiting for the owner:** nothing
123
- - **PR:** not opened yet
124
- ```
125
-
126
- The PR line is mandatory from the minute the stages are over and lives while the folder does. The
127
- folder leaves by the commit before the PR opens, so the line names what the closing still has to do;
128
- after the opening the PR state is read from the host by its number, and the number is asked of the
129
- host by the branch. A PR reopened for remarks after the folder left keeps its state in the PR itself:
130
-
131
- ```markdown
132
- - **PR:** не открыт · осталось: разбор папки, сверка очереди
133
- ```
134
-
135
- The waiting line carries the owner's standing word about a stop, quoted in « », when they gave
136
- one. The exit guard reads their word from this line, not a retelling; a line without a quote
137
- releases nothing. The quote holds until the owner cancels it, and the line is rewritten then.
138
-
139
- ```markdown
140
- - **Waiting for the owner:** «эпик чата пока откладываем» — сказано вчера, работа стоит до его слова.
141
- ```
142
-
143
- With the PR opened the state becomes `работа-отдана`, and its mandatory action is different — the
144
- next task, not waiting for review. By that minute there is nothing left to declare it with on disk:
145
- the progress left with the folder, and the tail of the work is led by pattern `task-flow-close`.
146
-
147
- A decision taken along the way — with the reason and with what the alternative was:
148
-
149
- ```markdown
150
- - **2026-08-07. Гард судит по путям правки, а не по замыслу задачи.** Оценку «меняет ли
151
- поведение» назначал бы тот, кому она мешает. Альтернатива — строка в замысле — отвергнута.
152
- ```
153
-
154
- A stage revision — to the same place, not by editing the plan:
155
-
156
- ```markdown
157
- - **2026-08-07. Этап 4 заменён: роли заводятся обе, а не одна.** Владелец решил при разборе;
158
- прежний этап в замысле оставлен видимым.
159
- ```
160
-
161
- A new request of the owner inside the same task goes into the grill, not only into the progress.
162
- The grill leaves for the archive, the progress only when it holds decisions. The request is quoted
163
- verbatim under "The owner request"; under "Decisions" goes the answer, or the line "closed by
164
- assumption: <what is taken>" when the question was not put. Otherwise the archive keeps the first
165
- answer while the code carries the second.
166
-
167
- The session entry marks what was done and what confirms it:
168
-
169
- ```markdown
170
- ### 2026-08-07
171
-
172
- - 28 сценариев в наборе, `bash .claude/hooks/tests/run.sh` — все наборы зелёные.
173
- - Доэтапное, не этой работы: сверка очереди перечисляет шесть закрытых задач вне борды.
174
- ```
175
-
176
- **Next move:** the marked stage gives way to the next in the same turn. The stages are over — the
177
- same turn runs the suite, merges the agreement, brings the texts up to date and takes the task
178
- folder apart; the PR opens behind work already cleaned up.
179
-
180
50
  ## State `работа-отдана`: the next task is taken by the same move
181
51
 
182
- The task is closed, the PR is open and waits for the owner — the session does not end on it. What is
183
- handed in for review waits for a person, not a machine: while the epic is not over, its next task is
184
- taken at once, by the same move with which the previous one went to review.
185
-
186
- Taken, not chosen: the order was assigned at planning and lies in the epic plan. A choice offered to
187
- the owner under an assigned order is a request to assign it anew.
188
-
189
- Work outside an epic has no plan with an order, and the next work after it is named by the owner:
190
- the turn asks them, it does not take a card. The queue is asked by a command, not by memory of what
191
- the executor created themselves, and what it holds goes into the question. An empty queue is a
192
- statement about the tree, and it is backed by command output.
193
-
194
- ```bash
195
- # what is assigned next — read in the epic plan, not asked
196
- # the state of the tasks — in the work queue: the plan does not know what is closed
197
- ```
198
-
199
- Two things stop the session. The window fill limit — then comes the handover, pattern
200
- `task-flow-handoff`. And the end of the epic: the turn shows the table of its tasks and waits for
201
- the owner's word, rule `turn-conduct`. A card of the work queue outside the epic is not an order.
202
- While the epic is assigned and open, no check refuses taking such a card — this article holds it;
203
- after the epic's end the epic-end guard refuses it until the owner names the work.
204
-
205
- **Next move:** an action is done on the next task — a task, a branch or a folder is created. The
206
- turn ends after it, not after words about it.
52
+ The task is closed, the PR is open and waits for the owner — the session does not end on it.
207
53
 
208
54
  ## State `влито`: the epic plan learns of the merge
209
55
 
210
- A person merged the PR, and the epic plan still names the task as in work. The row moves to merged
211
- in the branch of the next task, by its first commit: the epic branch carries no edits of its own. A
212
- lesson the task left for the following ones goes into the section of the plan about what was learned
213
- along the way, in the same commit. The last task of the epic has no next branch, and the epic branch
214
- takes no edit of its own: its row stays "handed over", and the body of the epic PR into the main
215
- branch names its merge.
216
-
217
- Work begun from cargo that arrived moves its records to "done" in the turn that learns of the merge,
218
- not at the folder's taking-apart: before the merge the edit is not in the tree, and the mark would
219
- claim what does not yet lie in main. The keys are taken from the archive and passed whole, as the
220
- intake read prints them:
221
-
222
- ```bash
223
- npm run cargo:mark -- --state fixed \
224
- --proposal <полный ключ> --proposal <полный ключ> \
225
- --fix '<чем исправлено: статья правила, гард, проверка, правка кода>'
226
- ```
227
-
228
- One fix per call, so the records go in batches by what closed them. The reply is read: "moved 0"
229
- means nothing moved.
230
-
231
- **Next move:** the work of the next task goes on — the merge needs no turn of its own.
56
+ A person merged the PR, and the epic plan still names the task as in work. The move: merge the PRs of the chain bottom-up, mark the merged tasks by the branch of the next one. The last task of the epic to merge has no next branch: its merged PR counts by itself. The upper branch of a chain marks the lower tasks of the chain ahead, before the chain is merged in one go: exit 12 holds while their PRs are open and counts the marks once they are merged. A task whose PR was closed unmerged is never marked.
232
57
 
233
58
  ## Common misses
234
59
 
235
- - **Confirmation is command output or a measurement, not a retelling.** "Checked, it works" a
236
- session later cannot be told from "it seemed to work".
237
- - **A number from the handover and from "Where we stand" is recounted before it gets into any new
238
- text.** Not only before splitting the work. Carried into the grill or the progress, it is read by
239
- the next sessions as a measurement and checked by nobody else. The handover describes the day it
240
- was written, and no check reads it. A count taken unrecounted diverged from
241
- the tree by eight and was found by a counting script, not by reading. The estimate "twice as much
242
- work as the previous" costs the same — on the current commit the volumes were almost equal. A
243
- recount costs one command, and the text gets its own number.
244
- - **Pre-existing red is kept apart from one's own.** Red found along the way and not made by this
245
- work is marked as such at once: otherwise the next session takes it for its own breakage.
246
- - **An analysis written by this session does not become a requirement for it.** The record explains
247
- the mechanism, and it is carried out by the same thing as the previous one — the attention of
248
- whoever leads the turn. One turn after the record the mechanism repeated in the same form. So an
249
- analysis ends not with text but with what came out of it: an edit of a resource, a guard or a
250
- proposal with an address. A session that appended an analysis and returned to work unchanged pays
251
- for it twice.
252
- - **A findings count written as a word goes stale by the next paragraph.** The count grows by
253
- sessions, and the word stays put. "Seven" stood over eight listed ones up to the summary itself
254
- and would have gone further — into the report and into the epic plan. Either a list without a
255
- number is written, or a number counted in the same turn as the summary.
256
- - **A red suite on a branch that touched not one line of code is asked of the neighbouring sessions
257
- before one's own edit.** The stand for the runs is one per machine. A neighbouring session that
258
- raised it for itself drops someone else's suite, and the failure looks like a broken environment.
259
- Read so, it sends a second session to the same place — to fix what never broke. The order is the
260
- reverse: first the neighbouring sessions and the busy ports are read, and only then one's own
261
- edit.
60
+ - **Confirmation is command output or a measurement, not a retelling.**
61
+ - **Pre-existing red is kept apart from one's own.**