@rt-tools/agent-kit 0.24.0 → 0.27.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 (312) hide show
  1. package/assets/agents/business-analyst.md +51 -50
  2. package/assets/agents/cargo-writer.md +54 -0
  3. package/assets/agents/conscience.md +37 -35
  4. package/assets/agents/project-manager.md +49 -48
  5. package/assets/agents/prose-editor.md +31 -29
  6. package/assets/agents/qa-engineer.md +50 -48
  7. package/assets/agents/rules-reviewer.md +63 -58
  8. package/assets/agents/skill-curator.md +83 -78
  9. package/assets/agents/spec-critic.md +34 -29
  10. package/assets/agents/spec-writer.md +35 -32
  11. package/assets/agents/strict-teacher.md +39 -37
  12. package/assets/checks/archive-age.mjs +48 -28
  13. package/assets/checks/archive-prune.mjs +16 -14
  14. package/assets/checks/board-epic-link.github.mjs +29 -0
  15. package/assets/checks/board-epics.github.mjs +286 -49
  16. package/assets/checks/board-folders.mjs +61 -0
  17. package/assets/checks/board-gh.github.mjs +35 -26
  18. package/assets/checks/board-long-work.github.mjs +29 -25
  19. package/assets/checks/board-paths.github.mjs +21 -16
  20. package/assets/checks/board-pull-state.github.mjs +168 -0
  21. package/assets/checks/board-runs.github.mjs +45 -43
  22. package/assets/checks/board-task-dirs.github.mjs +98 -0
  23. package/assets/checks/board-titles.github.mjs +19 -17
  24. package/assets/checks/board.github.mjs +133 -194
  25. package/assets/checks/check-archive-age.mjs +23 -19
  26. package/assets/checks/check-board.github.mjs +131 -263
  27. package/assets/checks/check-descriptions.mjs +30 -29
  28. package/assets/checks/check-doc-paths.mjs +91 -88
  29. package/assets/checks/check-dupes.mjs +84 -80
  30. package/assets/checks/check-file-size.mjs +74 -71
  31. package/assets/checks/check-glossary.mjs +47 -37
  32. package/assets/checks/check-hook-scope.mjs +30 -27
  33. package/assets/checks/check-lib-layers.mjs +22 -21
  34. package/assets/checks/check-profile-drift.mjs +48 -43
  35. package/assets/checks/check-prose-style.mjs +138 -39
  36. package/assets/checks/check-push-gate.mjs +53 -50
  37. package/assets/checks/check-reuse.mjs +50 -40
  38. package/assets/checks/check-schema-drift.mjs +104 -84
  39. package/assets/checks/check-specs.mjs +155 -134
  40. package/assets/checks/check-state-next.mjs +66 -52
  41. package/assets/checks/check-states.mjs +32 -30
  42. package/assets/checks/check-styles.mjs +52 -51
  43. package/assets/checks/check-turn-map.mjs +54 -46
  44. package/assets/checks/epic-table.github.mjs +268 -0
  45. package/assets/checks/lib-boundaries.mjs +32 -30
  46. package/assets/checks/lib-common.mjs +30 -29
  47. package/assets/checks/lib-domains.mjs +34 -34
  48. package/assets/checks/lib-manifests.mjs +17 -15
  49. package/assets/checks/lib-reexports.mjs +18 -18
  50. package/assets/checks/rt-kit-checks.config.mjs +187 -142
  51. package/assets/checks/signals.mjs +43 -39
  52. package/assets/checks/spec-anchors.mjs +114 -87
  53. package/assets/checks/spec-common.mjs +128 -84
  54. package/assets/checks/spec-contract.mjs +30 -30
  55. package/assets/checks/spec-proposed.mjs +27 -24
  56. package/assets/checks/spec-scenarios.mjs +51 -28
  57. package/assets/checks/specs-for.mjs +214 -0
  58. package/assets/checks/task-new.github.mjs +315 -61
  59. package/assets/commands/feedback.md +65 -59
  60. package/assets/commands/next-session.md +64 -57
  61. package/assets/commands/night.md +115 -0
  62. package/assets/commands/skill-curator.md +83 -79
  63. package/assets/defaults/gate-map.sh +108 -97
  64. package/assets/defaults/project.sh +232 -185
  65. package/assets/defaults/shell.sh +73 -68
  66. package/assets/defaults/turn-map.md +47 -44
  67. package/assets/docs/GLOSSARY.md +142 -65
  68. package/assets/hooks/browser-device-id.sh +16 -12
  69. package/assets/hooks/browser-guard-device-id.sh +34 -28
  70. package/assets/hooks/browser-guard-no-asking.sh +5 -4
  71. package/assets/hooks/browser-guard-no-listing.sh +12 -11
  72. package/assets/hooks/browser-guard-no-other-drivers.sh +48 -42
  73. package/assets/hooks/browser-guard-require-select.sh +34 -23
  74. package/assets/hooks/claim-guard.sh +62 -56
  75. package/assets/hooks/commit-msg.sh +14 -10
  76. package/assets/hooks/conscience-guard.sh +91 -45
  77. package/assets/hooks/constitution-index.sh +16 -16
  78. package/assets/hooks/deny-tail.sh +28 -26
  79. package/assets/hooks/dev-server-guard.sh +50 -43
  80. package/assets/hooks/dispatch.sh +60 -46
  81. package/assets/hooks/docs-guard.sh +100 -91
  82. package/assets/hooks/epic-over.sh +49 -0
  83. package/assets/hooks/epic-stop-guard.sh +108 -0
  84. package/assets/hooks/exam-guard.sh +105 -93
  85. package/assets/hooks/git-guard-delivery-conflict.sh +41 -36
  86. package/assets/hooks/git-guard-delivery-draft.sh +48 -38
  87. package/assets/hooks/git-guard-delivery-epic.sh +167 -0
  88. package/assets/hooks/git-guard-delivery-folder.sh +50 -43
  89. package/assets/hooks/git-guard-delivery-signature.sh +119 -53
  90. package/assets/hooks/git-guard-delivery.sh +223 -183
  91. package/assets/hooks/git-guard-main.sh +38 -34
  92. package/assets/hooks/git-guard-push-tests.sh +99 -87
  93. package/assets/hooks/glossary-load.sh +23 -22
  94. package/assets/hooks/grill-gate-ask.sh +12 -11
  95. package/assets/hooks/grill-gate.sh +94 -87
  96. package/assets/hooks/guard-note.sh +20 -19
  97. package/assets/hooks/handoff-entry-guard.sh +45 -25
  98. package/assets/hooks/handoff-write.sh +74 -67
  99. package/assets/hooks/hook-input.sh +67 -58
  100. package/assets/hooks/lint-after-edit.sh +95 -61
  101. package/assets/hooks/observe.sh +28 -26
  102. package/assets/hooks/override-write-guard.sh +23 -21
  103. package/assets/hooks/postmortem-guard.sh +42 -39
  104. package/assets/hooks/profile-check.sh +22 -20
  105. package/assets/hooks/proposal-guard.sh +57 -49
  106. package/assets/hooks/prose-style-guard.sh +49 -24
  107. package/assets/hooks/qa-dataid-guard.sh +83 -58
  108. package/assets/hooks/rerun-guard.sh +31 -30
  109. package/assets/hooks/reuse-first-guard.sh +108 -87
  110. package/assets/hooks/roles.sh +14 -14
  111. package/assets/hooks/rule-article.sh +39 -34
  112. package/assets/hooks/rule-source-guard.sh +47 -42
  113. package/assets/hooks/skill-gate-layers.sh +63 -57
  114. package/assets/hooks/skill-gate-rearm.sh +15 -8
  115. package/assets/hooks/skill-gate.sh +89 -81
  116. package/assets/hooks/skill-loaded.sh +10 -6
  117. package/assets/hooks/sql-guard-parse.sh +71 -66
  118. package/assets/hooks/sql-guard-request.sh +51 -46
  119. package/assets/hooks/sql-guard-target.sh +60 -51
  120. package/assets/hooks/sql-guard-write.sh +87 -79
  121. package/assets/hooks/sql-guard.sh +52 -47
  122. package/assets/hooks/stand-login-guard.sh +43 -37
  123. package/assets/hooks/task-context-load.sh +60 -55
  124. package/assets/hooks/task-flow-context.sh +87 -69
  125. package/assets/hooks/task-flow-draft-guard.sh +55 -48
  126. package/assets/hooks/task-flow-guard.sh +67 -64
  127. package/assets/hooks/turn-entry-load.sh +39 -32
  128. package/assets/hooks/turn-exit-guard.sh +260 -204
  129. package/assets/hooks/turn-exit-patterns.sh +63 -0
  130. package/assets/hooks/utf8.sh +14 -11
  131. package/assets/hooks/waiting-turn-guard.sh +104 -94
  132. package/assets/hooks/window-fill-guard.sh +70 -62
  133. package/assets/hooks/work-start-guard.sh +52 -49
  134. package/assets/hooks/write-targets.sh +99 -44
  135. package/assets/laws/autonomous-work.md +29 -27
  136. package/assets/laws/code-structure.md +31 -30
  137. package/assets/laws/delivery.md +170 -137
  138. package/assets/laws/entity-editing.md +52 -50
  139. package/assets/laws/entity-models.md +14 -13
  140. package/assets/laws/frontend-application.md +39 -38
  141. package/assets/laws/lib-imports.md +27 -27
  142. package/assets/laws/lists.md +31 -29
  143. package/assets/laws/navigation.md +37 -37
  144. package/assets/laws/observability.md +41 -40
  145. package/assets/laws/project-documentation.md +106 -99
  146. package/assets/laws/reuse-first.md +31 -29
  147. package/assets/laws/shared-code.md +27 -27
  148. package/assets/laws/verifiability.md +131 -124
  149. package/assets/laws/work-conduct.md +250 -244
  150. package/assets/patterns/admin-lists-screen.md +72 -69
  151. package/assets/patterns/admin-nav-item.md +51 -46
  152. package/assets/patterns/angular-patterns-state.md +32 -31
  153. package/assets/patterns/api-layer-pair.md +33 -31
  154. package/assets/patterns/autonomous-work-run.md +50 -49
  155. package/assets/patterns/browser-verification-measure.md +124 -88
  156. package/assets/patterns/browser-verification-stand.md +169 -157
  157. package/assets/patterns/component-structure-new.md +51 -42
  158. package/assets/patterns/dependencies-upgrade.md +55 -39
  159. package/assets/patterns/doc-style-human.md +55 -37
  160. package/assets/patterns/doc-style-sweep.md +82 -79
  161. package/assets/patterns/doc-style-trace.md +87 -81
  162. package/assets/patterns/doc-style-write.md +130 -122
  163. package/assets/patterns/entity-aside.md +77 -63
  164. package/assets/patterns/entity-models-new.md +37 -37
  165. package/assets/patterns/entity-store.md +33 -33
  166. package/assets/patterns/git-workflow-commit.azure.md +94 -87
  167. package/assets/patterns/git-workflow-commit.github.md +160 -142
  168. package/assets/patterns/git-workflow-commit.gitlab.md +96 -90
  169. package/assets/patterns/git-workflow-docker.md +165 -147
  170. package/assets/patterns/git-workflow-freshness.md +45 -45
  171. package/assets/patterns/git-workflow-merge.md +102 -94
  172. package/assets/patterns/git-workflow-migration.md +54 -52
  173. package/assets/patterns/git-workflow-pr-ready.md +57 -56
  174. package/assets/patterns/git-workflow-pr.azure.md +127 -122
  175. package/assets/patterns/git-workflow-pr.github.md +186 -177
  176. package/assets/patterns/git-workflow-pr.gitlab.md +139 -132
  177. package/assets/patterns/git-workflow-restart.md +35 -31
  178. package/assets/patterns/git-workflow-secrets.md +80 -73
  179. package/assets/patterns/git-workflow-stack.md +136 -107
  180. package/assets/patterns/lib-layers-move.md +62 -53
  181. package/assets/patterns/lib-layers-new.md +59 -45
  182. package/assets/patterns/observability-record.md +72 -67
  183. package/assets/patterns/platform-access-di.md +31 -29
  184. package/assets/patterns/reuse-first-extend.md +66 -61
  185. package/assets/patterns/shared-code-new.md +39 -38
  186. package/assets/patterns/spec-driven-domain.md +161 -151
  187. package/assets/patterns/spec-driven-rule.md +179 -168
  188. package/assets/patterns/spec-driven-sweep.md +41 -39
  189. package/assets/patterns/status-report-table.github.md +48 -36
  190. package/assets/patterns/styling-bem-component.md +42 -42
  191. package/assets/patterns/styling-bem-layout.md +39 -34
  192. package/assets/patterns/styling-bem-sheet.md +59 -58
  193. package/assets/patterns/task-flow-archive.md +222 -215
  194. package/assets/patterns/task-flow-close.md +234 -203
  195. package/assets/patterns/task-flow-handoff.md +154 -145
  196. package/assets/patterns/task-flow-resume.md +138 -133
  197. package/assets/patterns/task-flow-start.md +228 -202
  198. package/assets/patterns/testing-e2e.md +102 -101
  199. package/assets/patterns/testing-unit.md +77 -70
  200. package/assets/patterns/ts-procedure.md +32 -29
  201. package/assets/patterns/turn-entry-map.md +50 -48
  202. package/assets/pitfalls/agent-kit.md +172 -142
  203. package/assets/pitfalls/doc-style.md +96 -91
  204. package/assets/pitfalls/git-workflow.azure.md +49 -46
  205. package/assets/pitfalls/git-workflow.github.md +270 -234
  206. package/assets/pitfalls/git-workflow.gitlab.md +49 -45
  207. package/assets/pitfalls/spec-driven.md +73 -71
  208. package/assets/pitfalls/styling-bem.md +46 -40
  209. package/assets/pitfalls/task-flow.md +262 -246
  210. package/assets/pitfalls/testing.md +99 -92
  211. package/assets/pitfalls/turn-conduct.md +96 -81
  212. package/assets/rules/angular-patterns.md +81 -80
  213. package/assets/rules/api-layer.md +77 -74
  214. package/assets/rules/autonomous-work.md +87 -74
  215. package/assets/rules/browser-verification.md +223 -214
  216. package/assets/rules/component-structure.md +72 -69
  217. package/assets/rules/dependencies.md +74 -67
  218. package/assets/rules/deploy-flow.azure.md +118 -108
  219. package/assets/rules/deploy-flow.github.md +145 -135
  220. package/assets/rules/deploy-flow.gitlab.md +120 -110
  221. package/assets/rules/doc-style.md +201 -173
  222. package/assets/rules/entity-conventions.needs-admin.md +81 -79
  223. package/assets/rules/entity-models.md +73 -70
  224. package/assets/rules/git-workflow.azure.md +224 -228
  225. package/assets/rules/git-workflow.github.md +268 -239
  226. package/assets/rules/git-workflow.gitlab.md +218 -217
  227. package/assets/rules/lib-layers.md +85 -86
  228. package/assets/rules/lists.md +101 -97
  229. package/assets/rules/navigation.md +78 -78
  230. package/assets/rules/observability.needs-app.md +165 -153
  231. package/assets/rules/platform-access.md +76 -75
  232. package/assets/rules/reuse-first.md +153 -143
  233. package/assets/rules/shared-code.md +82 -79
  234. package/assets/rules/spec-driven.md +279 -260
  235. package/assets/rules/status-report.md +62 -58
  236. package/assets/rules/styling-bem.md +81 -77
  237. package/assets/rules/task-flow.md +303 -270
  238. package/assets/rules/testing.md +224 -209
  239. package/assets/rules/turn-conduct.md +262 -258
  240. package/assets/rules/turn-entry.md +92 -87
  241. package/assets/rules/typescript-conventions.md +94 -88
  242. package/assets/samples/specs/_template/spec.md +47 -47
  243. package/assets/samples/tasks/_template/grill.md +20 -20
  244. package/assets/samples/tasks/_template/plan.md +32 -30
  245. package/assets/samples/tasks/_template/progress.md +16 -16
  246. package/assets/skills/agent-kit-extend.md +129 -113
  247. package/assets/skills/agent-kit.md +259 -233
  248. package/assets/skills/write-a-skill.md +76 -71
  249. package/assets/templates/findings.md +19 -19
  250. package/assets/templates/gate-map.sh +16 -14
  251. package/assets/templates/implementation.md +28 -27
  252. package/assets/templates/pattern.md +17 -17
  253. package/assets/templates/pitfalls.md +6 -6
  254. package/assets/templates/postmortem.md +24 -23
  255. package/assets/templates/project.sh +24 -24
  256. package/assets/templates/proposal.md +62 -60
  257. package/assets/templates/rule.md +38 -38
  258. package/assets/workflows/feature.js +46 -46
  259. package/assets/workflows/plan.js +54 -54
  260. package/bin/agent-kit.d.ts.map +1 -1
  261. package/bin/agent-kit.js +8 -1
  262. package/bin/agent-kit.js.map +1 -1
  263. package/lib/cargo-prose.d.ts +41 -0
  264. package/lib/cargo-prose.d.ts.map +1 -0
  265. package/lib/cargo-prose.js +88 -0
  266. package/lib/cargo-prose.js.map +1 -0
  267. package/lib/cargo.d.ts +12 -1
  268. package/lib/cargo.d.ts.map +1 -1
  269. package/lib/cargo.js +8 -2
  270. package/lib/cargo.js.map +1 -1
  271. package/lib/catalog.d.ts +2 -0
  272. package/lib/catalog.d.ts.map +1 -1
  273. package/lib/catalog.js +4 -3
  274. package/lib/catalog.js.map +1 -1
  275. package/lib/commands.d.ts.map +1 -1
  276. package/lib/commands.js +5 -2
  277. package/lib/commands.js.map +1 -1
  278. package/lib/companion.js +3 -2
  279. package/lib/companion.js.map +1 -1
  280. package/lib/enroll.d.ts +7 -1
  281. package/lib/enroll.d.ts.map +1 -1
  282. package/lib/enroll.js +12 -3
  283. package/lib/enroll.js.map +1 -1
  284. package/lib/fate.d.ts +29 -0
  285. package/lib/fate.d.ts.map +1 -0
  286. package/lib/fate.js +147 -0
  287. package/lib/fate.js.map +1 -0
  288. package/lib/override-marks.d.ts +7 -0
  289. package/lib/override-marks.d.ts.map +1 -1
  290. package/lib/override-marks.js +14 -0
  291. package/lib/override-marks.js.map +1 -1
  292. package/lib/plan.d.ts +11 -0
  293. package/lib/plan.d.ts.map +1 -1
  294. package/lib/plan.js +10 -1
  295. package/lib/plan.js.map +1 -1
  296. package/lib/ship.d.ts +29 -9
  297. package/lib/ship.d.ts.map +1 -1
  298. package/lib/ship.js +44 -2
  299. package/lib/ship.js.map +1 -1
  300. package/lib/shipment.d.ts.map +1 -1
  301. package/lib/shipment.fixture.d.ts +8 -1
  302. package/lib/shipment.fixture.d.ts.map +1 -1
  303. package/lib/shipment.fixture.js +9 -0
  304. package/lib/shipment.fixture.js.map +1 -1
  305. package/lib/shipment.js +38 -5
  306. package/lib/shipment.js.map +1 -1
  307. package/lib/sync.d.ts.map +1 -1
  308. package/lib/sync.js +45 -11
  309. package/lib/sync.js.map +1 -1
  310. package/package.json +1 -1
  311. package/rt-tools-agent-kit-0.27.0.tgz +0 -0
  312. package/rt-tools-agent-kit-0.24.0.tgz +0 -0
@@ -2,190 +2,199 @@
2
2
  name: task-flow-handoff
3
3
  kind: pattern
4
4
  rule: turn-conduct
5
- description: Паттерн правила turn-conduct. Брать, когда заход упирается в заполнение окна — выбор точки остановки, запись хода работы, форма передачи и что владелец с ней делает. Не брать для возвращения к работе новым заходом — это паттерн task-flow-resume.
5
+ description: Pattern of rule turn-conduct. Load when the session runs into window fill — choosing the stopping point, writing the progress, the shape of the handover and what the owner does with it. Not for returning to work in a new session — that is pattern task-flow-resume.
6
6
  ---
7
7
 
8
- # Закрытие захода по заполнению окна
8
+ # Closing a session on window fill
9
9
 
10
- Паттерн правила `turn-conduct`. Что при этом должно быть верно — закон
10
+ Pattern of the rule `turn-conduct`. What must be true meanwhile — the law
11
11
  `docs/constitution/work-conduct.md`.
12
12
 
13
- ## Когда брать
13
+ ## When to use
14
14
 
15
- - Пришло напоминание о заполнении окна.
16
- - Работа не влезает в заход, и это стало видно заранее.
17
- - Заход прерывается по любой другой причине: владелец уходит, машина занята.
15
+ - A reminder about window fill has come.
16
+ - The work does not fit into the session, and this became visible in advance.
17
+ - The session is interrupted for any other reason: the owner leaves, the machine is busy.
18
18
 
19
- ## Что происходит на порогах
19
+ ## What happens at the thresholds
20
20
 
21
- | Заполнение | Что делает гард | Что делает заход |
22
- | ------------------- | ------------------------------------------------------------ | ----------------------------------------------------- |
23
- | до первого порога | молчит | работает |
24
- | первый порог и выше | напоминание на каждой следующей ступени в пять процентов | выбирает точку остановки и доводит до неё текущий шаг |
25
- | второй порог и выше | отбивает всё, кроме папки задачи, передачи и команд поставки | закрывается |
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
26
 
27
- Пороги сторожит гард заполнения окна; размер окна он берёт из настройки дерева — из записи
28
- захода тот не выводится. Место между порогами и есть то, на что заход закрывается: дописать ход
29
- работы, написать передачу, закоммитить и открыть PR, если работа кончена.
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.
30
31
 
31
- ## Точка остановки
32
+ ## The stopping point
32
33
 
33
- Логическая точка — не «где застало напоминание», а состояние, с которого следующий заход
34
- продолжит, ничего не переделывая:
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:
35
36
 
36
- - этап замысла закрыт целиком, а не наполовину;
37
- - то, что сделано, проверено — прогон прошёл, сборка собрана, замер снят;
38
- - проверенное закоммичено: незакоммиченное не переживёт перерыв;
39
- - начатое и брошенное названо в ходе работы прямо, вместе с причиной.
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.
40
41
 
41
- Незакрытый этап — тоже законная точка, если в ходе работы записано, что именно из него сделано и
42
- чем это подтверждено. Незаконная точка одна: правка, о которой не записано ничего.
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.
43
44
 
44
- ## Заход закрывается передачей, состояние работы при этом не меняется
45
+ ## The session closes with a handover, and the work state does not change
45
46
 
46
- Уборку этого шага — главную ветку, влитые ветки и запись самой передачи — делает команда
47
- `next-session`: она проходит его целиком и называет путь к передаче последней строкой. Ниже —
48
- что при этом должно получиться; порядок один и тот же, зовут его командой или руками.
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.
49
51
 
50
- ### Ход работы
52
+ ### The progress
51
53
 
52
- Раздел «Где стоим» перезаписывается, решения по ходу и запись захода дописываются. Форма —
53
- паттерн `task-flow-resume`.
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`.
54
56
 
55
- ### Коммит
57
+ ### The commit
56
58
 
57
- Проверенное коммитится сразу, а не копится до конца задачи. Работа кончена — открывается PR:
58
- паттерн `git-workflow-pr`.
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`.
59
61
 
60
- ### Передача
62
+ ### The handover
61
63
 
62
- Кладётся разделом `## Передача захода` в ход работы задачи — в тот же файл, где стоит «Где
63
- стоим». Он коммитится и едет в ветку, поэтому передача переживает переход на другую машину:
64
- работу, оборванную заполнением окна, подхватывают там, где её продолжают. Коммитит и пушит
65
- раздел исполнитель, тем же ходом, что и остальную запись работы.
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.
66
68
 
67
- Раздел один: второе сжатие переписывает прежний, а не дописывает второй — две правды об одной
68
- работе в одном файле хуже одной устаревшей. Заголовки внутри него идут третьим уровнем, чтобы
69
- не сталкиваться с разделами самого хода работы.
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.
70
72
 
71
- У работы без папки задачи — отсоединённая голова, ветка без заведённой задачи — разделу лечь
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:
73
76
 
74
77
  ```bash
75
78
  mkdir -p <каталог передачи>
76
- # файл — <каталог передачи>/<ветка>.md
79
+ # the file — <каталог передачи>/<ветка>.md
77
80
  ```
78
81
 
79
- Это запасной путь, а не второе законное место: у ветки с папкой задачи такой файл не заводится
80
- вовсе, и читающая сторона его не смотрит, найдя раздел.
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.
81
84
 
82
- **Черновик передачи пишет хук, а не рука.** Перед сжатием контекста он кладёт по тому же
83
- адресу то, что есть на диске: ветку, состояние работы, следующий шаг, незакоммиченное, коммиты
84
- сверх главной. Сжатие приходит и тогда, когда напомнить некому — ночью или посреди длинного
85
- хода, — и без хука заход в этот момент терял передачу целиком.
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.
86
89
 
87
- **Читает передачу тоже хук, а не человек.** На запуске он кладёт её в контекст целиком — вместе
88
- с картой хода, — и вставлять её руками не приходится ни после сжатия, ни после обрыва, ни после
89
- очистки. Написанная и не прочитанная, передача равна ненаписанной: следующий заход о ней не
90
- знает и начинает с пустого места, то есть с того же, ради чего её и писали.
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.
91
95
 
92
- Отсюда требование к тексту: передача пишется для машины, которая подаст её без разбора, и для
93
- захода, который прочтёт её первой строкой. Обращаться в ней к владельцу — «спроси у него, чем
94
- кончилась проба» — значит писать в пустоту: к моменту чтения владельца в разговоре ещё нет.
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.
95
100
 
96
- Написанное хуком — нижняя граница, а не готовая передача. Исполнитель, закрывающий заход по
97
- правилу, пишет поверх: он знает то, чего на диске нет, — чем кончилась проба, почему выбран
98
- этот путь, что владелец сказал по дороге. Файл один, последняя запись побеждает.
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.
99
104
 
100
- Внутри — готовый текст для вставки в новый заход, без обращения к владельцу за подробностями:
105
+ Inside — ready text for pasting into the new session, without asking the owner for details:
101
106
 
102
107
  ```markdown
103
- Работа: <КЛЮЧ>-<номер> «<название задачи>». Рабочее дерево — <полный путь>, ветка
104
- <КЛЮЧ>-<номер>-<slug> (заведена, в работе).
105
- Заявка: #<номер>, открыта, ждёт разбора владельцем. Свежесть её основания здесь не записана
106
- намеренно — она протухает; спрашивается она у хранилища первым делом нового захода.
107
-
108
- Ход работы и замысел придут на запуске сессии хуком — перечитывать их файлами не надо. Разбор
109
- просьбы владельца лежит в папке задачи и читается, когда непонятна причина решения.
110
-
111
- Сделано: этапы 1–3 замысла закрыты и закоммичены.
112
- Следующий шаг: этап 4 — <что именно>.
113
-
114
- Что учесть в этом заходе:
115
-
116
- - разбор работы правилами по <КЛЮЧ>-<номер> запущен фоном и не вернулся — находки писать в
117
- `<имя замысла>-findings.md` рядом с замыслом эпика;
118
- - стенды уже подняты владельцем, свой не поднимать;
119
- - зависимости этого дерева отстают от главной ветки — при падении сборки на чужой ошибке
120
- сперва установка зависимостей;
121
- - <прочее, чего нет ни в правилах, ни в ходе работы>.
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>.
122
128
  ```
123
129
 
124
- Третьим разделом идёт «Эпик» — таблица положения. Работа вне эпика этого раздела не несёт:
125
- таблица из одной строки повторяет раздел «Работа» и читается как эпик из одной задачи.
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.
126
132
 
127
133
  ```markdown
128
- ### Эпик <номер> — <возможность, названная замыслом>
134
+ ### Epic <number> — <the capability named by the plan>
129
135
 
130
- | № | Задача | Состояние |
131
- | --- | --------------------------------- | --------- |
132
- | 1 | <КЛЮЧ>-<номер> — <что делает> | закрыта |
133
- | 2 | **<КЛЮЧ>-<номер> — <что делает>** | в работе |
134
- | 3 | <КЛЮЧ>-<номер> — <что делает> | впереди |
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 |
135
141
  ```
136
142
 
137
- Три колонки, строка на задачу. Заголовок называет номер эпика и возможность — ту, что записана в
138
- замысле, а не пересказанную заново. `№` — место по порядку: фактическое у закрытых, назначенное
139
- замыслом у будущих. `Задача` — номер и что она делает, теми же словами, что в замысле.
140
- `Состояние` — «закрыта», «в работе» или «впереди»; строка текущей задачи выделяется целиком.
141
-
142
- Состав берётся из замысла эпика, а состояние — из очереди работ: замысел о том, что закрыто, не
143
- знает, а очередь не знает порядка. Задача, дописанная в эпик после планирования, стоит в очереди
144
- и в таблице, а в замысле её нет — расхождение называется вслух, а не заглаживается.
145
-
146
- Разделы фиксированы, и порядок у них тот же:
147
-
148
- 1. **Работа** — номер задачи, её название, рабочее дерево полным путём, ветка и её состояние; у
149
- отданной работы — номер открытой заявки и то, чего она ждёт.
150
- 2. **Где искать** — что придёт хуком само, а что читается по надобности.
151
- 3. **Эпик** — таблица положения; у работы вне эпика раздела нет.
152
- 4. **Сделано и следующий шаг** — одной строкой каждое; подробности уже в ходе работы.
153
- 5. **Что учесть** — особенности этого захода, которых нет ни в правилах, ни в ходе работы:
154
- поднятые стенды, отставшие зависимости, чужие процессы на портах, незакрытые вопросы к
155
- владельцу, запущенный фоном и не вернувшийся разбор.
156
-
157
- **Разбор, запущенный фоном и не вернувшийся к концу захода, называется строкой в «Что учесть».**
158
- Отвечает роль в переписку, а переписки к следующему заходу уже нет: ответ, пришедший после
159
- закрытия, не читает никто, и находки пропадают целиком вместе с тем, ради чего разбор и
160
- запускали. На диске следа тоже нет — файл находок пишет исполнитель по ответу, а ответа ещё не
161
- было. Строка называет задачу, по которой разбор идёт, и файл, куда писать вернувшееся: без
162
- второго следующий заход знает, что чего-то ждёт, и не знает, куда это класть. Своего раздела
163
- разбору не заводится — в заходе, где его не запускали, раздел стоял бы пустым.
164
-
165
- ### Путь владельцу
166
-
167
- Последнее действие захода — назвать владельцу путь к передаче, чтобы он вставил текст в новый
168
- заход одной вставкой. Пересказывать содержание передачи в ответе не надо: владелец её и так
169
- прочитает, а место на неё уже потрачено.
170
-
171
- ## Частые промахи
172
-
173
- - **Заход закрывается на втором пороге, а не начинает на нём новый этап.** Напоминание на
174
- первом — это уже сигнал выбирать точку, а не работать дальше, пока не отобьют.
175
- - **Передача пишется как пересказ переписки.** В неё идёт то, чего нет ни в ходе работы, ни в
176
- правилах: дерево, ветка, состояние стендов. Всё остальное следующий заход прочитает сам.
177
- - **Утверждение о состоянии работы берётся в тот же ход, а не вспоминается.** Родитель задачи,
178
- её колонка, открытая заявка, влитая ветка, поднятые стенды живут вне захода и меняются без
179
- него, а передача читается первой и не оспаривается: заход исполняет её указание, а не проверяет
180
- его. Правдоподобие подтверждением не считается — «ветка не влита, значит и родителя нет» это
181
- вывод, а не замер. Спросить нечем — так и пишется вопросом: «родитель не проверен, проверить
182
- перед заявкой».
183
- - **Состояние работы в передачу не переезжает.** Сделанное отмечается в ходе работы — одной
184
- записью; передача его пересказывает, но не заменяет и в дерево не коммитится.
185
- - **В передачу записано состояние, которое живёт часами.** Отставание от главной ветки, ход
186
- прогона и «проверки зелёные» новый заход читает как верное сегодня. В передачу идёт то, что не
187
- меняется без участия исполнителя: дерево, ветка, номер заявки, что не закоммичено.
188
- - **Незакоммиченное не названо.** Работа живёт в дереве неделями, и строка «что лежит
189
- несохранённым и почему» — единственное, по чему это видно.
190
- - **Заход, кончившийся ничем, тоже пишет передачу.** «Пробовали так — не вышло, потому что» —
191
- это и есть его результат; без записи следующий заход повторит тот же путь.
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.
172
+
173
+ ### The path to the owner
174
+
175
+ The last action of the session is to name to the owner the path to the handover, so they can put the
176
+ text into a new session with one paste. Retelling the content of the handover in the reply is not
177
+ needed: the owner will read it anyway, and the room for it is already spent.
178
+
179
+ ## Common misses
180
+
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 and is not committed into the tree.
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.