@rt-tools/agent-kit 0.23.0 → 0.26.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 (288) hide show
  1. package/README.md +8 -2
  2. package/assets/agents/business-analyst.md +51 -50
  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-epics.github.mjs +75 -41
  15. package/assets/checks/board-folders.mjs +61 -0
  16. package/assets/checks/board-gh.github.mjs +35 -26
  17. package/assets/checks/board-long-work.github.mjs +24 -24
  18. package/assets/checks/board-paths.github.mjs +21 -16
  19. package/assets/checks/board-runs.github.mjs +45 -43
  20. package/assets/checks/board-titles.github.mjs +19 -17
  21. package/assets/checks/board.github.mjs +150 -128
  22. package/assets/checks/check-archive-age.mjs +23 -19
  23. package/assets/checks/check-board.github.mjs +179 -157
  24. package/assets/checks/check-descriptions.mjs +30 -29
  25. package/assets/checks/check-doc-paths.mjs +104 -82
  26. package/assets/checks/check-dupes.mjs +84 -80
  27. package/assets/checks/check-file-size.mjs +79 -70
  28. package/assets/checks/check-glossary.mjs +47 -37
  29. package/assets/checks/check-hook-scope.mjs +30 -27
  30. package/assets/checks/check-lib-layers.mjs +22 -21
  31. package/assets/checks/check-profile-drift.mjs +48 -43
  32. package/assets/checks/check-prose-style.mjs +125 -33
  33. package/assets/checks/check-push-gate.mjs +53 -50
  34. package/assets/checks/check-reuse.mjs +50 -40
  35. package/assets/checks/check-schema-drift.mjs +87 -83
  36. package/assets/checks/check-specs.mjs +155 -134
  37. package/assets/checks/check-state-next.mjs +66 -52
  38. package/assets/checks/check-states.mjs +32 -30
  39. package/assets/checks/check-styles.mjs +52 -51
  40. package/assets/checks/check-turn-map.mjs +54 -46
  41. package/assets/checks/lib-boundaries.mjs +32 -30
  42. package/assets/checks/lib-common.mjs +30 -29
  43. package/assets/checks/lib-domains.mjs +34 -34
  44. package/assets/checks/lib-manifests.mjs +17 -15
  45. package/assets/checks/lib-reexports.mjs +18 -18
  46. package/assets/checks/rt-kit-checks.config.mjs +174 -142
  47. package/assets/checks/signals.mjs +43 -39
  48. package/assets/checks/spec-anchors.mjs +114 -87
  49. package/assets/checks/spec-common.mjs +128 -84
  50. package/assets/checks/spec-contract.mjs +30 -30
  51. package/assets/checks/spec-proposed.mjs +27 -24
  52. package/assets/checks/spec-scenarios.mjs +51 -28
  53. package/assets/checks/task-new.github.mjs +85 -56
  54. package/assets/commands/feedback.md +65 -59
  55. package/assets/commands/next-session.md +64 -57
  56. package/assets/commands/skill-curator.md +83 -79
  57. package/assets/defaults/gate-map.sh +115 -91
  58. package/assets/defaults/project.sh +228 -178
  59. package/assets/defaults/shell.sh +85 -65
  60. package/assets/defaults/turn-map.md +45 -44
  61. package/assets/docs/GLOSSARY.md +142 -65
  62. package/assets/hooks/browser-device-id.sh +12 -12
  63. package/assets/hooks/browser-guard-device-id.sh +46 -14
  64. package/assets/hooks/browser-guard-no-asking.sh +5 -4
  65. package/assets/hooks/browser-guard-no-listing.sh +12 -11
  66. package/assets/hooks/browser-guard-no-other-drivers.sh +48 -42
  67. package/assets/hooks/browser-guard-require-select.sh +34 -23
  68. package/assets/hooks/claim-guard.sh +62 -56
  69. package/assets/hooks/commit-msg.sh +11 -10
  70. package/assets/hooks/conscience-guard.sh +91 -45
  71. package/assets/hooks/constitution-index.sh +16 -16
  72. package/assets/hooks/deny-tail.sh +28 -26
  73. package/assets/hooks/dev-server-guard.sh +46 -43
  74. package/assets/hooks/dispatch.sh +84 -39
  75. package/assets/hooks/docs-guard.sh +105 -86
  76. package/assets/hooks/exam-guard.sh +146 -84
  77. package/assets/hooks/git-guard-delivery-conflict.sh +38 -36
  78. package/assets/hooks/git-guard-delivery-draft.sh +85 -0
  79. package/assets/hooks/git-guard-delivery-folder.sh +50 -43
  80. package/assets/hooks/git-guard-delivery-signature.sh +88 -52
  81. package/assets/hooks/git-guard-delivery.sh +207 -253
  82. package/assets/hooks/git-guard-main.sh +65 -26
  83. package/assets/hooks/git-guard-push-tests.sh +133 -75
  84. package/assets/hooks/glossary-load.sh +23 -22
  85. package/assets/hooks/grill-gate-ask.sh +12 -11
  86. package/assets/hooks/grill-gate.sh +94 -87
  87. package/assets/hooks/guard-note.sh +20 -19
  88. package/assets/hooks/handoff-entry-guard.sh +26 -24
  89. package/assets/hooks/handoff-write.sh +74 -67
  90. package/assets/hooks/hook-input.sh +70 -50
  91. package/assets/hooks/lint-after-edit.sh +95 -61
  92. package/assets/hooks/observe.sh +28 -26
  93. package/assets/hooks/override-write-guard.sh +23 -21
  94. package/assets/hooks/postmortem-guard.sh +42 -39
  95. package/assets/hooks/profile-check.sh +22 -20
  96. package/assets/hooks/proposal-guard.sh +57 -49
  97. package/assets/hooks/prose-style-guard.sh +19 -17
  98. package/assets/hooks/qa-dataid-guard.sh +52 -49
  99. package/assets/hooks/rerun-guard.sh +31 -30
  100. package/assets/hooks/reuse-first-guard.sh +108 -87
  101. package/assets/hooks/roles.sh +14 -14
  102. package/assets/hooks/rule-article.sh +36 -34
  103. package/assets/hooks/rule-source-guard.sh +52 -36
  104. package/assets/hooks/skill-gate-layers.sh +59 -57
  105. package/assets/hooks/skill-gate-rearm.sh +15 -8
  106. package/assets/hooks/skill-gate.sh +89 -81
  107. package/assets/hooks/skill-loaded.sh +6 -6
  108. package/assets/hooks/sql-guard-parse.sh +68 -66
  109. package/assets/hooks/sql-guard-request.sh +48 -46
  110. package/assets/hooks/sql-guard-target.sh +57 -51
  111. package/assets/hooks/sql-guard-write.sh +84 -79
  112. package/assets/hooks/sql-guard.sh +52 -47
  113. package/assets/hooks/stand-login-guard.sh +104 -0
  114. package/assets/hooks/task-context-load.sh +60 -55
  115. package/assets/hooks/task-flow-context.sh +87 -69
  116. package/assets/hooks/task-flow-draft-guard.sh +55 -48
  117. package/assets/hooks/task-flow-guard.sh +67 -64
  118. package/assets/hooks/turn-entry-load.sh +39 -32
  119. package/assets/hooks/turn-exit-guard.sh +256 -204
  120. package/assets/hooks/turn-exit-patterns.sh +53 -0
  121. package/assets/hooks/utf8.sh +11 -11
  122. package/assets/hooks/waiting-turn-guard.sh +94 -94
  123. package/assets/hooks/window-fill-guard.sh +70 -62
  124. package/assets/hooks/work-start-guard.sh +52 -49
  125. package/assets/hooks/write-targets.sh +115 -30
  126. package/assets/laws/autonomous-work.md +29 -27
  127. package/assets/laws/code-structure.md +31 -30
  128. package/assets/laws/delivery.md +148 -137
  129. package/assets/laws/entity-editing.md +52 -50
  130. package/assets/laws/entity-models.md +14 -13
  131. package/assets/laws/frontend-application.md +39 -38
  132. package/assets/laws/lib-imports.md +27 -27
  133. package/assets/laws/lists.md +31 -29
  134. package/assets/laws/navigation.md +37 -37
  135. package/assets/laws/observability.md +41 -40
  136. package/assets/laws/project-documentation.md +106 -99
  137. package/assets/laws/reuse-first.md +31 -29
  138. package/assets/laws/shared-code.md +27 -27
  139. package/assets/laws/verifiability.md +131 -114
  140. package/assets/laws/work-conduct.md +250 -250
  141. package/assets/patterns/admin-lists-screen.md +72 -69
  142. package/assets/patterns/admin-nav-item.md +51 -46
  143. package/assets/patterns/angular-patterns-state.md +32 -31
  144. package/assets/patterns/api-layer-pair.md +33 -31
  145. package/assets/patterns/autonomous-work-run.md +50 -49
  146. package/assets/patterns/browser-verification-measure.md +143 -67
  147. package/assets/patterns/browser-verification-stand.md +181 -128
  148. package/assets/patterns/component-structure-new.md +51 -42
  149. package/assets/patterns/dependencies-upgrade.md +55 -39
  150. package/assets/patterns/doc-style-human.md +93 -0
  151. package/assets/patterns/doc-style-sweep.md +82 -79
  152. package/assets/patterns/doc-style-trace.md +87 -81
  153. package/assets/patterns/doc-style-write.md +130 -122
  154. package/assets/patterns/entity-aside.md +77 -63
  155. package/assets/patterns/entity-models-new.md +37 -37
  156. package/assets/patterns/entity-store.md +33 -33
  157. package/assets/patterns/git-workflow-commit.azure.md +94 -75
  158. package/assets/patterns/git-workflow-commit.github.md +153 -129
  159. package/assets/patterns/git-workflow-commit.gitlab.md +96 -78
  160. package/assets/patterns/git-workflow-docker.md +165 -147
  161. package/assets/patterns/git-workflow-freshness.md +45 -45
  162. package/assets/patterns/git-workflow-merge.md +99 -86
  163. package/assets/patterns/git-workflow-migration.md +54 -52
  164. package/assets/patterns/git-workflow-pr-ready.md +57 -56
  165. package/assets/patterns/git-workflow-pr.azure.md +126 -121
  166. package/assets/patterns/git-workflow-pr.github.md +179 -175
  167. package/assets/patterns/git-workflow-pr.gitlab.md +138 -131
  168. package/assets/patterns/git-workflow-restart.md +35 -31
  169. package/assets/patterns/git-workflow-secrets.md +80 -73
  170. package/assets/patterns/git-workflow-stack.md +131 -106
  171. package/assets/patterns/lib-layers-move.md +62 -53
  172. package/assets/patterns/lib-layers-new.md +59 -45
  173. package/assets/patterns/observability-record.md +72 -67
  174. package/assets/patterns/platform-access-di.md +31 -29
  175. package/assets/patterns/reuse-first-extend.md +66 -61
  176. package/assets/patterns/shared-code-new.md +39 -38
  177. package/assets/patterns/spec-driven-domain.md +161 -151
  178. package/assets/patterns/spec-driven-rule.md +179 -168
  179. package/assets/patterns/spec-driven-sweep.md +41 -39
  180. package/assets/patterns/status-report-table.github.md +37 -36
  181. package/assets/patterns/styling-bem-component.md +42 -42
  182. package/assets/patterns/styling-bem-layout.md +39 -34
  183. package/assets/patterns/styling-bem-sheet.md +59 -58
  184. package/assets/patterns/task-flow-archive.md +222 -215
  185. package/assets/patterns/task-flow-close.md +215 -203
  186. package/assets/patterns/task-flow-handoff.md +154 -145
  187. package/assets/patterns/task-flow-resume.md +138 -133
  188. package/assets/patterns/task-flow-start.md +204 -192
  189. package/assets/patterns/testing-e2e.md +103 -92
  190. package/assets/patterns/testing-unit.md +77 -70
  191. package/assets/patterns/ts-procedure.md +32 -29
  192. package/assets/patterns/turn-entry-map.md +50 -48
  193. package/assets/pitfalls/agent-kit.md +152 -141
  194. package/assets/pitfalls/doc-style.md +96 -91
  195. package/assets/pitfalls/git-workflow.azure.md +49 -46
  196. package/assets/pitfalls/git-workflow.github.md +264 -234
  197. package/assets/pitfalls/git-workflow.gitlab.md +49 -45
  198. package/assets/pitfalls/spec-driven.md +73 -71
  199. package/assets/pitfalls/styling-bem.md +46 -40
  200. package/assets/pitfalls/task-flow.md +262 -246
  201. package/assets/pitfalls/testing.md +99 -92
  202. package/assets/pitfalls/turn-conduct.md +96 -81
  203. package/assets/rules/angular-patterns.md +81 -80
  204. package/assets/rules/api-layer.md +77 -74
  205. package/assets/rules/autonomous-work.md +75 -74
  206. package/assets/rules/browser-verification.md +223 -188
  207. package/assets/rules/component-structure.md +72 -69
  208. package/assets/rules/dependencies.md +74 -67
  209. package/assets/rules/deploy-flow.azure.md +118 -108
  210. package/assets/rules/deploy-flow.github.md +145 -135
  211. package/assets/rules/deploy-flow.gitlab.md +120 -110
  212. package/assets/rules/doc-style.md +209 -148
  213. package/assets/rules/entity-conventions.needs-admin.md +81 -79
  214. package/assets/rules/entity-models.md +73 -70
  215. package/assets/rules/git-workflow.azure.md +224 -228
  216. package/assets/rules/git-workflow.github.md +250 -242
  217. package/assets/rules/git-workflow.gitlab.md +218 -217
  218. package/assets/rules/lib-layers.md +85 -86
  219. package/assets/rules/lists.md +101 -97
  220. package/assets/rules/navigation.md +78 -78
  221. package/assets/rules/observability.needs-app.md +165 -153
  222. package/assets/rules/platform-access.md +76 -75
  223. package/assets/rules/reuse-first.md +153 -137
  224. package/assets/rules/shared-code.md +82 -79
  225. package/assets/rules/spec-driven.md +272 -260
  226. package/assets/rules/status-report.md +55 -58
  227. package/assets/rules/styling-bem.md +83 -72
  228. package/assets/rules/task-flow.md +282 -270
  229. package/assets/rules/testing.md +224 -188
  230. package/assets/rules/turn-conduct.md +255 -258
  231. package/assets/rules/turn-entry.md +92 -87
  232. package/assets/rules/typescript-conventions.md +94 -88
  233. package/assets/samples/specs/_template/spec.md +47 -47
  234. package/assets/samples/tasks/_template/grill.md +20 -20
  235. package/assets/samples/tasks/_template/plan.md +32 -30
  236. package/assets/samples/tasks/_template/progress.md +16 -16
  237. package/assets/skills/agent-kit-extend.md +129 -113
  238. package/assets/skills/agent-kit.md +236 -222
  239. package/assets/skills/write-a-skill.md +76 -71
  240. package/assets/templates/findings.md +19 -19
  241. package/assets/templates/gate-map.sh +16 -14
  242. package/assets/templates/implementation.md +28 -27
  243. package/assets/templates/pattern.md +17 -17
  244. package/assets/templates/pitfalls.md +6 -6
  245. package/assets/templates/postmortem.md +24 -23
  246. package/assets/templates/project.sh +24 -24
  247. package/assets/templates/proposal.md +62 -60
  248. package/assets/templates/rule.md +38 -38
  249. package/assets/workflows/feature.js +46 -46
  250. package/assets/workflows/plan.js +54 -54
  251. package/lib/catalog.d.ts +2 -0
  252. package/lib/catalog.d.ts.map +1 -1
  253. package/lib/catalog.js +4 -3
  254. package/lib/catalog.js.map +1 -1
  255. package/lib/commands.d.ts.map +1 -1
  256. package/lib/commands.js +68 -4
  257. package/lib/commands.js.map +1 -1
  258. package/lib/companion.js +3 -2
  259. package/lib/companion.js.map +1 -1
  260. package/lib/enroll.d.ts +7 -1
  261. package/lib/enroll.d.ts.map +1 -1
  262. package/lib/enroll.js +13 -4
  263. package/lib/enroll.js.map +1 -1
  264. package/lib/observations.d.ts +10 -1
  265. package/lib/observations.d.ts.map +1 -1
  266. package/lib/observations.js +1 -0
  267. package/lib/observations.js.map +1 -1
  268. package/lib/override-marks.d.ts +24 -0
  269. package/lib/override-marks.d.ts.map +1 -0
  270. package/lib/override-marks.js +98 -0
  271. package/lib/override-marks.js.map +1 -0
  272. package/lib/plan.d.ts +11 -0
  273. package/lib/plan.d.ts.map +1 -1
  274. package/lib/plan.js +10 -1
  275. package/lib/plan.js.map +1 -1
  276. package/lib/ship.d.ts +0 -7
  277. package/lib/ship.d.ts.map +1 -1
  278. package/lib/ship.js +10 -2
  279. package/lib/ship.js.map +1 -1
  280. package/lib/shipment.d.ts.map +1 -1
  281. package/lib/shipment.js +7 -3
  282. package/lib/shipment.js.map +1 -1
  283. package/lib/sync.d.ts.map +1 -1
  284. package/lib/sync.js +45 -11
  285. package/lib/sync.js.map +1 -1
  286. package/package.json +1 -1
  287. package/rt-tools-agent-kit-0.26.0.tgz +0 -0
  288. package/rt-tools-agent-kit-0.23.0.tgz +0 -0
@@ -2,29 +2,29 @@
2
2
  name: task-flow-start
3
3
  kind: pattern
4
4
  rule: task-flow
5
- description: Паттерн правила task-flow. Брать в начале работы от владельца: разведка до первого вопроса, шесть обязательных вопросов, договорённость о продукте, заведение задачи, ветки и папки. Возвращение к работе — паттерн task-flow-resume.
5
+ description: Pattern of rule task-flow. Load at the start of work from the owner — exploration before the first question, the six mandatory questions, the product agreement, creating the task, the branch and the folder. Returning to work — pattern task-flow-resume.
6
6
  ---
7
7
 
8
- # Начало работы
8
+ # Starting the work
9
9
 
10
- Паттерн правила `task-flow`. Что при этом должно быть верно — закон
10
+ Pattern of the rule `task-flow`. 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
+ - The owner asks for something to be done; the size of the request does not matter — a folder is
16
+ created for any work.
17
+ - A defect noticed along the way becomes a task.
18
18
 
19
- ## Порядок
19
+ ## Order
20
20
 
21
- Шаги ниже — начало сплошного счёта: номер шага один на весь путь работы и в следующем паттерне
22
- не начинается заново. Весь список — в правиле `task-flow`; он же показывается владельцу в начале
23
- работы, чтобы после шести вопросов было видно, что впереди.
21
+ The steps below open one continuous count: a step number is one for the whole course of the work and
22
+ does not start over in the next pattern. The whole list is in the rule `task-flow`; it is also shown
23
+ to the owner at the start of work, so that after six questions what lies ahead is visible.
24
24
 
25
- ### Состояние `просьба-не-разобрана`: разведка — до первого вопроса
25
+ ### State `просьба-не-разобрана`: exploration — before the first question
26
26
 
27
- Вопрос, ответ на который лежит в коде, владельцу не задаётся: он обесценивает и остальные.
27
+ A question whose answer lies in the code is not put to the owner: it devalues the rest.
28
28
 
29
29
  ```
30
30
  Agent(subagent_type: "Explore", prompt: "<тема просьбы>: что по ней уже есть в дереве —
@@ -32,134 +32,142 @@ Agent(subagent_type: "Explore", prompt: "<тема просьбы>: что по
32
32
  есть ли готовый образец рядом. Верни находки, а не пересказ файлов.")
33
33
  ```
34
34
 
35
- Находки складываются в раздел «Что уже есть в дереве» разбора.
36
-
37
- Дерево — не единственное место, где лежит ответ. Решение прошлого захода, никуда не записанное,
38
- живёт только в записи того захода: поиск по ним словом темы стоит одной команды. Найденное тем же
39
- ходом переписывается в дерево — в замысел эпика, если связывает задачи, и в ход работы, если
40
- касается одной.
41
-
42
- Разведка, не нашедшая ничего, разрешением спрашивать не становится: сначала называется, где
43
- искали, потом добираются места, которых в списке не было — замысел эпика, описание прошлого,
44
- записи прошлых заходов. «В таком-то месте не нашёл» говорит о месте, а не о дереве, и вопрос
45
- называет оба способа, которыми искали.
46
-
47
- Разведка кончается не ощущением, а выводом команд. До первого вопроса владельцу исполнитель знает:
48
- как устроен репозиторий (корневая памятка), что лежит в каталоге, о котором пойдёт речь (`ls`), и
49
- есть ли уже написанное по теме (поиск по документации и правилам). Без списка того, что считается
50
- сделанным, разведка исполняется как настроение: прочитанный переданный текст сходит за неё, и по
51
- дереву не запускается ни одной команды.
52
-
53
- Разведка по заведённой задаче кончается воспроизведённым симптомом, а не найденным файлом. Тело
54
- задачи описывает дерево на день заведения, и разведка по именам из тела подтверждает лишь то, что
55
- файлы на месте: отпавшая задача от живой этим не отличается. Прежде первой правки разведка
56
- повторяет то, на что задача жалуется, — зовёт процедуру, читает ответ, гоняет молчавшую
57
- проверку; симптом не воспроизвёлся — задача закрывается отпавшей, и это законный исход.
58
-
59
- Дерево, названное образцом, читается раскладкой целиком — обходом каталогов на два уровня, — и
60
- только потом идут вопросы о приёмах. Ответ на «как здесь делают вот это» даёт одну папку, а
61
- обобщённая до карты дерева она врёт: соседняя семья каталогов в неё не попадает, и пропажу
62
- находит владелец.
63
-
64
- Выведенное помечается прямо в списке, вместе с тем, чем его подтвердить. Догадка по соседнему
65
- случаю стоит в одном списке с проверенным, и владелец читает список целиком как проверенный.
66
-
67
- Шесть вопросов задаются за вычетом тех, на которые ответила разведка: вместо вопроса с готовым
68
- ответом в разбор идёт строка «беру такой-то ответ, вот откуда». Признак один — есть ли ответ в
69
- дереве; «задача кажется понятной» им не является ни в ту, ни в другую сторону.
70
-
71
- **Следующее движение:** находки ложатся в разбор, и тем же ходом владельцу уходит первый из
72
- шести вопросов. Разведка кончилась — состояние осталось прежним, ход тоже.
73
-
74
- ### Состояние `просьба-не-разобрана`: разбор с владельцем
75
-
76
- Ведёт главный агент: субагент до владельца не достучится. Команда — `/grill-me`, один вопрос
77
- за раз, к каждому — свой рекомендуемый ответ с доводом.
78
-
79
- Шесть вопросов задаются всегда, даже когда задача кажется понятной:
80
-
81
- | Вопрос | Зачем |
82
- | -------------------------------------------- | -------------------------------------------------------- |
83
- | Меняет ли задача поведение приложения | от этого зависит договорённость о продукте |
84
- | Требует ли правки закона или правила | закон без ведома владельца не правится |
85
- | Одна задача или несколько | делится то, что откатывается порознь, и делится ДО ветки |
86
- | Что в задачу не входит | не названная вслух граница не существует |
87
- | Чем будет видно, что задача закрыта | «работает» признаком не является |
88
- | Есть ли образец, с которого снимается подход | разведка найдёт похожее, а не то |
89
-
90
- Список шести — набор того, что закрыто к началу работы, а не набор реплик, которые надо
91
- произнести. Вопрос, ответ на который владелец уже дал, отмечается закрытым вместе с тем, чем он
92
- закрыт: ответ ищется в документации и в сказанном этим же заходом, включая исходную просьбу.
93
- Закрыть его можно и допущением, когда ответ очевиден, — строкой «вопрос закрыт допущением:
94
- <что принято>»: неверное допущение стоит правки, вопрос ради очевидного — захода.
95
-
96
- Объём работы основанием для вопроса о границах не бывает: «это большая работа» решает
97
- исполнитель, «делать ли её целиком» — владелец, и решает раньше, чем работа началась.
98
-
99
- Форму вопроса задают настройки владельца: где требуют меню, спрашивается меню, и к каждому
100
- вопросу добавляется свободный вариант — у закрытого набора нет строки «вопрос не тот».
101
-
102
- **Рамка переданного текста на текущее дерево не переносится.** Передача захода, файл предложений
103
- и спек описывают то дерево, в котором писались; про текущее знает только текущее, и утверждение о
104
- раскладке проверяется командой здесь. Подтверждение находится само — признаки дерева, только
105
- ставящего пакет, стоят и у того, которое пакет пишет и ставит.
106
-
107
- Сообщение, которым исполнитель останавливается, начинается с того, чего он ждёт:
35
+ The findings go into the grill section "What is already in the tree".
36
+
37
+ The tree is not the only place where the answer lies. A decision of a past session, written nowhere,
38
+ lives only in that session's record: a search over them by the theme's word costs one command. What
39
+ is found is written into the tree in the same turn — into the epic plan if it links tasks, into the
40
+ progress if it concerns one.
41
+
42
+ Exploration that found nothing is no permission to ask. First, where the search went is named; then
43
+ the places missing from the list are reached — the epic plan, the archive, the records of past
44
+ sessions. "Not found in such a place" speaks of the place, not of the tree, and the question names
45
+ both ways in which the search went.
46
+
47
+ Exploration ends with command output, not with a feeling. Before the first question to the owner the
48
+ executor knows three things. How the repository is arranged (the root memo), what lies in the
49
+ directory at hand (`ls`), and whether something is already written on the theme (a search over the
50
+ documentation and the rules). Without a list of what counts as done, exploration runs as a mood: a
51
+ read handover passes for it, and not one command runs over the tree.
52
+
53
+ Exploration over a created task ends with a reproduced symptom, not a found file. The task body
54
+ describes the tree on the day of creation, and exploration by the names from the body confirms only
55
+ that the files are in place: a task that has lapsed cannot be told from a live one. Before the first
56
+ edit the exploration repeats what the task complains about — calls the procedure, reads the reply,
57
+ runs the check that stayed silent. The symptom did not reproduce — the task is closed as lapsed, and
58
+ that is a lawful outcome.
59
+
60
+ A tree named as a sample is read as a layout whole — by walking the directories two levels deep —
61
+ and only then come the questions about techniques. The answer to "how is this done here" gives one
62
+ folder, and generalised into a map of the tree it lies: the neighbouring family of directories is
63
+ left out, and the owner finds the loss.
64
+
65
+ What was inferred is marked right in the list, together with what confirms it. A guess by a
66
+ neighbouring case stands in one list with what was checked, and the owner reads the whole list as
67
+ checked.
68
+
69
+ The six questions are asked minus those the exploration answered: instead of a question with a ready
70
+ answer, the grill gets the line "taking such-and-such answer, here is where from". The sign is one —
71
+ whether the answer is in the tree; "the task seems clear" is no sign in either direction.
72
+
73
+ **Next move:** the findings land in the grill, and in the same turn the first of the six questions
74
+ goes to the owner. The exploration ended — the state stayed the same, so did the turn.
75
+
76
+ ### State `просьба-не-разобрана`: the grill with the owner
77
+
78
+ Led by the main agent: a subagent cannot reach the owner. The command is `/grill-me`, one question
79
+ at a time, each with its recommended answer and the reason.
80
+
81
+ All six questions are closed, and those the exploration did not answer are asked:
82
+
83
+ | Question | Why |
84
+ | --- | --- |
85
+ | Does the task change the application's behaviour | the product agreement depends on it |
86
+ | Does it need an edit of a law or a rule | a law is not edited without the owner's knowledge |
87
+ | One task or several | what rolls back apart is split, and split BEFORE the branch |
88
+ | What is not part of the task | a boundary not named aloud does not exist |
89
+ | What will show that the task is closed | "it works" is no sign |
90
+ | Is there a sample the approach is taken from | exploration finds something similar, not the thing itself |
91
+
92
+ The list of six is the set of what is closed by the start of work, not a set of lines to be said. A
93
+ question the owner has already answered is marked closed together with what closed it: the answer is
94
+ sought in the documentation and in what was said in this same session, the original request
95
+ included. It can be closed by an assumption too, when the answer is obvious — by the line "question
96
+ closed by assumption: <what is taken>": a wrong assumption costs an edit, a question about the
97
+ obvious costs a session.
98
+
99
+ The size of the work is never a ground for a question about boundaries: "this is big work" is the
100
+ executor's judgement, "whether to do it whole" is the owner's, and they decided before the work
101
+ began.
102
+
103
+ The form of a question is set by the owner's settings: where a menu is required, a menu is asked,
104
+ and a free option is added to every question — a closed set has no line "wrong question".
105
+
106
+ **The framing of a handed-over text is not carried onto the current tree.** A session handover, a
107
+ proposals file and a spec describe the tree they were written in. Only the current tree knows about
108
+ the current one, and a statement about the layout is checked by a command here. Confirmation finds
109
+ itself — the signs of a tree that only installs the package stand on the one that writes and
110
+ installs it too.
111
+
112
+ The message with which the executor stops begins with what they wait for:
108
113
 
109
114
  ```
110
115
  Стою на выборе <что решается>. Без ответа <что будет: пойду допущением таким-то / работа стоит>.
111
116
  <Вопрос>
112
117
  ```
113
118
 
114
- Под вопросом идёт таблица положения эпика — та же, что в передаче. Под, а не над: остановка
115
- называется первой строкой, а положение эпика — то, из чего владелец решает. Работа вне эпика
116
- таблицы не несёт.
119
+ Under the question goes the table of the epic's position — the same as in the handover. Under, not
120
+ above: the stop is named by the first line, and the epic's position is what the owner decides from.
121
+ Work outside an epic carries no table.
117
122
 
118
- Замеры, находки ролей и список решений к этому моменту записаны в ход работы, и в сообщении
119
- владельцу они лишние: отчёт, в конце которого стоит вопрос, выглядит добросовестно ровно
120
- настолько, насколько надёжно вопрос в нём тонет.
123
+ Measurements, role findings and the list of decisions are by then written in the progress, and in
124
+ the message to the owner they are superfluous. A report with a question at its end looks diligent
125
+ exactly as reliably as the question drowns in it.
121
126
 
122
- Ответы пишутся в `docs/tasks/_draft-<slug>/grill.md` — папка ещё черновик, номера нет.
127
+ The answers are written into `docs/tasks/_draft-<slug>/grill.md` — the folder is still a draft,
128
+ there is no number.
123
129
 
124
130
  ```bash
125
131
  mkdir -p docs/tasks/_draft-<slug>
126
132
  cp docs/tasks/_template/grill.md docs/tasks/_draft-<slug>/grill.md
127
133
  ```
128
134
 
129
- **Следующее движение:** ответ владельца дописывается в разбор, и следом уходит следующий
130
- вопрос. Ответы кончились — тем же ходом работа идёт в конвейер ролей.
135
+ **Next move:** the owner's answer is appended to the grill, and the next question follows. The
136
+ answers are over — in the same turn the work goes into the roles pipeline.
131
137
 
132
- ### Состояние `разбор-закрыт`: конвейер после разбора
138
+ ### State `разбор-закрыт`: the pipeline after the grill
133
139
 
134
- Вопросов больше не будет — дальше роли:
140
+ There will be no more questions — from here on, the roles:
135
141
 
136
142
  ```
137
143
  Workflow(name: "plan", args: "docs/tasks/_draft-<slug>")
138
144
  ```
139
145
 
140
- Нужность → договорённость о продукте (`spec-writer`) → её состязательный разбор
141
- (`spec-critic`) → замысел и разбивка (`project-manager`). Пробелы, которые роли не смогли
142
- закрыть, возвращаются владельцу — их относит главный агент.
146
+ Need → the product agreement (`spec-writer`) → its adversarial review (`spec-critic`) → the plan and
147
+ the breakdown (`project-manager`). Gaps the roles could not close return to the owner — the main
148
+ agent carries them.
143
149
 
144
- Договорённость, вышедшая из конвейера, сверяется с `grill.md` построчно до работы по ней: роль
145
- пишет текст, не видя владельца, и способна развернуть его ответ в противоположный — очередь
146
- этапов оказывалась перевёрнутой, а входящие пункты переезжали в «не входит». Находка критика,
147
- расходящаяся с ответом владельца, относится владельцу, а не исполняется молча.
150
+ The agreement that came out of the pipeline is checked against `grill.md` line by line before work
151
+ by it. The role writes the text without seeing the owner and can turn their answer into its
152
+ opposite: the order of stages came out reversed, and included items moved to "not included". A
153
+ critic's finding that diverges from the owner's answer is carried to the owner, not carried out in
154
+ silence.
148
155
 
149
- Ход на этой границе не кончается: закрытый разбор выглядит законченным куском — ответы на диске,
150
- файл закоммичен, отчитаться есть чем, — и отчёт встаёт на место договорённости. Пишется она тем
151
- же ходом, конвейером ролей или рукой исполнителя.
156
+ The turn does not end on this boundary. A closed grill looks like a finished piece — the answers are
157
+ on disk, the file is committed, there is something to report — and the report takes the place of the
158
+ agreement. It is written in the same turn, by the roles pipeline or by the executor's hand.
152
159
 
153
- **Следующее движение:** сверенная с разбором договорённость коммитится, и тем же ходом
154
- заводятся задача, ветка и папка — а вышла из разбора серия, сперва объявляется эпик.
160
+ **Next move:** the agreement checked against the grill is committed, and in the same turn the task,
161
+ the branch and the folder are created — and if the grill produced a series, the epic is declared
162
+ first.
155
163
 
156
- ### Состояние `договорённость-записана`: серия задач объявляется эпиком
164
+ ### State `договорённость-записана`: a series of tasks is declared an epic
157
165
 
158
- Разбор кончился одной задачей — шаг пропускается. Вышло несколько, и порядок между ними значим —
159
- эпик объявляется здесь, до первой из них, и дважды: карточкой в очереди работ с меткой эпика и
160
- замыслом рядом с ней.
166
+ The grill ended with one task — the step is skipped. Several came out, and the order between them
167
+ matters — the epic is declared here, before the first of them, and twice. As a card in the work
168
+ queue with the epic label, and as a plan next to it.
161
169
 
162
- Замысел эпика называет три вещи, и ни одна не выводится из остальных:
170
+ The epic plan names three things, and none is derived from the others:
163
171
 
164
172
  ```markdown
165
173
  # <Возможность, которая разрабатывается>
@@ -172,26 +180,27 @@ Workflow(name: "plan", args: "docs/tasks/_draft-<slug>")
172
180
  | 2 | <что делает> | <что из первой ей нужно> |
173
181
  ```
174
182
 
175
- Состав без порядка порядком не является: две задачи, у которых он держался пониманием, ушли в
176
- работу наоборот, и вторая переделывалась под первую. Назначенный порядок держится до конца эпика;
177
- пересмотр — решение владельца, и пишется он в ход работы той задачи, которая его вызвала.
183
+ A set without an order is no order: two tasks whose order rested on understanding went into work the
184
+ other way round, and the second was redone under the first. The assigned order holds to the end of
185
+ the epic; a revision is the owner's decision, and it is written into the progress of the task that
186
+ caused it.
178
187
 
179
- Лежит замысел вне папки задачи: та умирает с мержем первой же. Каталог для него называет компаньон
180
- правила — у пакета своего пути нет.
188
+ The plan lies outside the task folder: that one dies with the very first merge. The directory for it
189
+ is named by the rule's companion — the package has no path of its own.
181
190
 
182
- Карточки заводятся на все задачи разом, здесь же: по вызову заведения задачи на каждую строку
183
- таблицы, с меткой эпика. Выданные номера возвращаются в ту же таблицу — колонкой или приставкой
184
- к названию, — и с этой минуты «взять следующую» отвечает номером, а не названием.
191
+ The cards are created for all the tasks at once, right here: by the task creation call for every row
192
+ of the table, with the epic label. The issued numbers return to the same table — as a column or a
193
+ prefix to the name — and from this minute "take the next" answers with a number, not a name.
185
194
 
186
- Задача под эпиком называет его в своём теле — номер карточки и путь к замыслу одной строкой, — а
187
- замысел называет задачу со своей стороны. Односторонняя привязка выглядит целой так же, как
188
- двусторонняя: читатель приходит то от линии работ, то от карточки, и вторая сторона есть только
189
- для одного из них.
195
+ A task under an epic names it in its body — the card number and the path to the plan in one line —
196
+ and the plan names the task from its side. A one-sided binding looks as whole as a two-sided one:
197
+ the reader comes now from the epic, now from the card, and the second side exists for only one of
198
+ them.
190
199
 
191
- **Следующее движение:** объявленный эпик коммитится вместе с номерами задач, и тем же ходом
192
- берётся первая его задача — заведением ветки и папки.
200
+ **Next move:** the declared epic is committed together with the task numbers, and in the same turn
201
+ its first task is taken — by creating the branch and the folder.
193
202
 
194
- ### Состояние `договорённость-записана`: задача, ветка, папка
203
+ ### State `договорённость-записана`: the task, the branch, the folder
195
204
 
196
205
  ```bash
197
206
  npm run task:new -- --title '<Что не так>' --slug <slug> --label documentation --label area:tooling < тело.md
@@ -199,100 +208,103 @@ git checkout -b <КЛЮЧ>-<номер>-<slug>
199
208
  npm run task:move -- <номер> in-progress
200
209
  ```
201
210
 
202
- Тело приходит файлом и пустым не бывает: пустая задача не говорит ничего ни исполнителю, ни
203
- владельцу, а дописать её потом можно только со слова владельца.
211
+ The body comes as a file and is never empty: an empty task tells nothing to the executor or the
212
+ owner, and it can be filled in later only on the owner's word.
204
213
 
205
- `task:new` переименовывает `_draft-<slug>` в `<КЛЮЧ>-<номер>-<slug>` и проставляет шапку замысла.
206
- Ветка заводится вторым вызовом: составную «завести и сразу коммитить» гард главной ветки
207
- отклоняет целиком.
214
+ `task:new` renames `_draft-<slug>` to `<КЛЮЧ>-<номер>-<slug>` and fills in the plan header. The
215
+ branch is created by a second call: a compound "create and commit at once" is refused by the
216
+ main-branch guard whole.
208
217
 
209
- Номер уже выдан — черновика нет и не заводится: папка открывается сразу под именем ветки. Так
210
- начинается половина работ: номер приходит прошлым заходом, замеченным дефектом или соседней
211
- задачей, и переименовывать нечего. Ловушка «номер не бывает первым» сюда не относится — она про
212
- то, что задачу не заводят до разбора.
218
+ The number is already issued — there is no draft and none is created: the folder opens straight
219
+ under the branch name. Half of all work starts this way: the number comes from a past session, a
220
+ noticed defect or a neighbouring task, and there is nothing to rename. The pitfall "the number never
221
+ comes first" does not apply here — it is about not creating the task before the grill.
213
222
 
214
- Остальные два файла пишутся, а не кладутся образцом впрок: пустой `plan.md` неотличим от
215
- замысла без этапов, а следующий заход доверяет папке задачи. Образец открывается тем же
216
- движением, которым заполняется, и шапку раскладки с копии снимают тут же — иначе правку отобьёт
217
- гард, а ловушка при правиле объясняет почему:
223
+ The other two files are written, not laid down as templates for later: an empty `plan.md` cannot be
224
+ told from a plan without stages, and the next session trusts the task folder. The template is opened
225
+ by the same move that fills it, and the layout header is stripped from the copy right there —
226
+ otherwise the guard refuses the edit, and the pitfall next to the rule explains why:
218
227
 
219
228
  ```bash
220
- cp docs/tasks/_template/plan.md docs/tasks/<КЛЮЧ>-<номер>-<slug>/plan.md # и сразу пишется
229
+ cp docs/tasks/_template/plan.md docs/tasks/<КЛЮЧ>-<номер>-<slug>/plan.md # and written at once
221
230
  cp docs/tasks/_template/progress.md docs/tasks/<КЛЮЧ>-<номер>-<slug>/progress.md
222
231
  ```
223
232
 
224
- В ходе работы первой строкой объявляется состояние — с этой минуты его читает гард:
233
+ In the progress the first line declares the state — from this minute the guard reads it:
225
234
 
226
235
  ```markdown
227
- - **Состояние:** `задача-взята`
236
+ - **State:** `задача-взята`
228
237
  ```
229
238
 
230
- Пока не объявлено состояние, в котором код правится, гард отбивает правку и называет
231
- обязательное действие того состояния, которое стоит в строке.
239
+ Until a state in which code is edited is declared, the guard refuses the edit and names the
240
+ mandatory action of the state that stands in the line.
232
241
 
233
- **Следующее движение:** объявив состояние, тот же ход берётся за замысел с его шапки. Заведённая
234
- папка ходом не кончается: написанного файла в ней ещё нет ни одного.
242
+ **Next move:** having declared the state, the same turn takes up the plan starting with its header.
243
+ A created folder does not end the turn: not one written file is in it yet.
235
244
 
236
- ### Состояние `задача-взята`: шапка замысла
245
+ ### State `задача-взята`: the plan header
237
246
 
238
- Её читает гард:
247
+ The guard reads it:
239
248
 
240
249
  ```markdown
241
- **Задача:** <КЛЮЧ>-282 · **Ветка:** <КЛЮЧ>-282-task-flow
242
- **Драфт:** `docs/specs/bookings/proposed/aside-header/`
243
- **Поведение:** меняется
250
+ **Task:** <КЛЮЧ>-282 · **Branch:** <КЛЮЧ>-282-task-flow
251
+ **Draft:** `docs/specs/bookings/proposed/aside-header/`
252
+ **Behaviour:** changes
244
253
  ```
245
254
 
246
- Дерево, у которого каталога «предложено» нет, называет договорённость самим спеком домена — там
247
- она пишется прямо в него, и переезжать при закрытии работы нечему:
255
+ A tree with no "proposed" directory names the agreement by the domain spec itself — there it is
256
+ written straight into it, and nothing has to move at the closing of the work:
248
257
 
249
258
  ```markdown
250
- **Спек:** `docs/specs/bookings/spec.md`
259
+ **Spec:** `docs/specs/bookings/spec.md`
251
260
  ```
252
261
 
253
- Работа, не задевающая `apps/**` и `libs/**`, договорённости не требует:
262
+ Work that does not touch `apps/**` and `libs/**` needs no agreement:
254
263
 
255
264
  ```markdown
256
- **Поведение:** не меняется — переезд слоя, снаружи не видно. Подтверждено владельцем.
265
+ **Behaviour:** unchanged — a move of the layer, invisible from outside. Подтверждено владельцем.
257
266
  ```
258
267
 
259
- Пустая причина не принимается.
268
+ An empty reason is not accepted.
260
269
 
261
- **Следующее движение:** под шапкой пишутся след задачи и этапы, замысел коммитится, и тем же
262
- ходом начинается первый этап.
270
+ **Next move:** under the header the task footprint and the stages are written, the plan is
271
+ committed, and in the same turn the first stage begins.
263
272
 
264
- ### Состояние `замысел-записан`: первый этап начинается тем же ходом
273
+ ### State `замысел-записан`: the first stage begins in the same turn
265
274
 
266
- Замысел закоммичен — работа переходит в первый этап сразу, не отдавая хода. Строка состояния
267
- перезаписывается на `этап-идёт`, и дальше работу ведёт паттерн возвращения.
275
+ The plan is committed — the work moves into the first stage at once, without giving up the turn. The
276
+ state line is rewritten to `этап-идёт`, and from there the work is led by the resume pattern.
268
277
 
269
278
  ```markdown
270
- - **Состояние:** `этап-идёт`
271
- - **Этап:** 1 из 3 — <название первого этапа из замысла>
279
+ - **State:** `этап-идёт`
280
+ - **Stage:** 1 из 3 — <название первого этапа из замысла>
272
281
  ```
273
282
 
274
- Ход на этой границе не кончается. Написанный замысел выглядит законченным куском: этапы разложены,
275
- файл закоммичен, отчитаться есть чем — и отчёт встаёт ровно на то место, которое должна была
276
- занять работа. Владелец читает его как сделанное, а сделано ничего: 21 августа заход кончился
277
- строкой «следующий шаг — такой-то» при заполнении окна около двух процентов.
278
-
279
- Кончают ход четыре вещи, и они те же, что у остальных состояний: предел заполнения окна, отказ
280
- гарда, вопрос владельцу и отданная работа, по которой начата следующая. Дочитанный до конца
281
- паттерн к ним не относится — текст кончился, работа нет.
282
-
283
- **Следующее движение:** первый этап делается тем же ходом, а закрытым он объявляется после
284
- того, как прошла его команда из строки «Чем проверяется».
285
-
286
- ## Частые промахи
287
-
288
- - **Номер не бывает первым.** До конца разбора неизвестно даже, сколько задач из него выйдет:
289
- заведённая заранее задача после разбивки закрывается и остаётся мусором в очереди работ.
290
- - **Разбор пишется на диск сразу, а не копится в переписке.** Сессия обрывается, и разбор,
291
- прожитый в разговоре, восстанавливается только пересказом владельца.
292
- - **Из одного разбора вышло несколько задач — общее уезжает в замысел эпика.** Папка задачи
293
- умирает с мержем, а порядок задач его переживает; каталог называет компаньон правила.
294
- - **Задача заводится командой, а не четырьмя вызовами подряд.** Борда к репозиторию не
295
- привязана, и задача попадает на неё только явным добавлением.
296
- - **Slug ветки берётся из терминологии договорённости, а не из слов просьбы.** Договорённость
297
- пишется раньше ветки и как раз там отказывается от слова владельца. Заголовок задачи и PR
298
- поправить можно, имя ветки после открытия PR — уже нет.
283
+ The turn does not end on this boundary. A written plan looks like a finished piece: the stages are
284
+ laid out, the file is committed, there is something to report — and the report takes exactly the
285
+ place the work should have taken. The owner reads it as done, and nothing is done: on 21 August a
286
+ session ended with the line "next step — such-and-such" at a window fill of about two percent.
287
+
288
+ Four things end a turn, and they are the same as for the other states: the window fill limit, a
289
+ guard's refusal, a question to the owner and handed-in work with the next begun. A pattern read to
290
+ the end is not among them — the text ended, the work did not.
291
+
292
+ **Next move:** the first stage is done in the same turn, and it is declared closed after its command
293
+ from the "Checked by" line has passed.
294
+
295
+ ## Common misses
296
+
297
+ - **The number never comes first.** Until the grill ends it is not even known how many tasks come
298
+ out of it: a task created in advance is closed after the breakdown and stays as litter in the work
299
+ queue.
300
+ - **The grill is written to disk at once, not stored up in the conversation.** The session breaks
301
+ off, and a grill lived through in conversation is recovered only by the owner's retelling.
302
+ - **One grill produced several tasks — the common part leaves for the epic plan.** The task folder
303
+ dies with the merge, and the task order outlives it; the directory is named by the rule's
304
+ companion.
305
+ - **The task is created by a command, not by four calls in a row.** The board is not bound to the
306
+ repository, and the task gets onto it only by an explicit addition.
307
+ - **The branch slug is taken from the terminology of the agreement, not from the words of the
308
+ request.** The agreement is written before the branch, and that is exactly where it drops the
309
+ owner's word. The task title and the PR title can be fixed; the branch name after the PR opens —
310
+ no longer.