@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,142 +2,145 @@
2
2
  name: task-flow-close
3
3
  kind: pattern
4
4
  rule: task-flow
5
- description: Паттерн правила task-flow. Брать при доведении работы до готовности: вливание договорённости в спек домена, приведение текстов домена к сделанному, открытие заявки черновиком и снятие черновика. Разбор папки задачи — паттерн task-flow-archive.
5
+ description: Pattern of rule task-flow. Load when bringing work to readiness — merging the product agreement into the domain spec, bringing the domain texts up to date with what was done, opening the PR as a draft and leaving draft. Taking the task folder apart — pattern task-flow-archive.
6
6
  ---
7
7
 
8
- # Закрытие работы
8
+ # Closing 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
- - `npm run check:specs` перечислил договорённость в разделе «Пора вливать».
17
- - Спек меряется длиной сразу после вливания: выросший делится тем же коммитом.
18
- - Тексты домена приводятся к тому, что работа сделала.
19
- - Набор гейта прогнан целиком — после вливания и приведения текстов, а не до них.
20
- - Папка задачи разобрана, и заявка открывается черновиком.
21
- - Прогон на вершине зелёный, и с заявки снимается черновик.
15
+ - The stages of the plan are closed.
16
+ - `npm run check:specs` listed the agreement in its "time to merge" section.
17
+ - The spec is measured for length right after the merge: one that has grown is split by the same
18
+ commit.
19
+ - The domain texts are brought up to what the work did.
20
+ - The gate suite is run whole — after the merge and the texts, not before them.
21
+ - The task folder is taken apart, and the PR opens as a draft.
22
+ - The run on the head is green, and the draft is lifted from the PR.
22
23
 
23
- Разбор самой папки сюда не относится — это паттерн `task-flow-archive`. Он стоит между
24
- прогоном набора и открытием заявки: заявка открывается уже за убранной работой.
24
+ Taking the folder itself apart is not here — that is pattern `task-flow-archive`. It stands between
25
+ the suite run and opening the PR: the PR opens behind work already cleaned up.
25
26
 
26
- **Прогон стоит после вливания договорённости и приведения текстов, а не перед ними.** Оба этих
27
- шага стоят минуты, а прогон — окно захода: заход, потративший его на прогон, упирался в порог
28
- заполнения на четырёх строках привязки, и дописать их было уже нечем. Второй довод сильнее
29
- первого — прогон, идущий после вливания, проверяет и само вливание; идущий до него, он смотрит
30
- то состояние дерева, которое в главную ветку не поедет.
27
+ **The run stands after merging the agreement and bringing the texts up to date, not before them.**
28
+ Both steps cost minutes, and the run costs the session window. A session that spent it on the run
29
+ hit the fill threshold on four binding lines, and there was nothing left to write them with. The
30
+ second argument is stronger than the first — a run that goes after the merge checks the merge
31
+ itself; going before it, it looks at a state of the tree that will not reach main.
31
32
 
32
- ## Состояние `этапы-кончились`: договорённость вливается в спек домена
33
+ ## State `этапы-кончились`: the agreement merges into the domain spec
33
34
 
34
- Одним из последних коммитов ветки, до открытия заявки. Код к этому моменту написан, поэтому
35
- привязки `файл:символ` известны — правило въезжает в спек домена сразу проверяемым.
35
+ By one of the last commits of the branch, before the PR opens. By then the code is written, so the
36
+ `file:symbol` bindings are known — the rule enters the domain spec checkable at once.
36
37
 
37
38
  ```bash
38
- npm run check:specs # раздел «Пора вливать» называет готовые директории
39
+ npm run check:specs # the "time to merge" section names the ready directories
39
40
  ```
40
41
 
41
- **Спек меряется длиной тем же ходом.** Вливание — известное движение, растящее спек: одно
42
- довело его до 572 строк при пределе 500, и узнал об этом исполнитель отказом гарда пуша, то
43
- есть после коммита. Выросший делится на поддомены здесь же, а не на пуше.
44
-
45
- Порядок переезда:
46
-
47
- - правила из `proposed/<фича>/spec.md` дописываются в `spec.md` домена, в его разделы;
48
- - сценарии переезжают в `scenarios.md` домена **с прежними номерами**: на них ссылаются
49
- заголовки тестов, и пересчёт рвёт сверку;
50
- - сценарии, у которых работа переписала обещание, правятся на месте: номер прежний, текст
51
- новый, заголовок теста правится тем же коммитом. Работа, снимающая приём, переписывает уже
52
- записанное обещание чаще, чем заводит новое, а список, перечисляющий одну допись, эту правку
53
- не называет вовсе;
54
- - привязки из `proposed/<фича>/implementation.md` дописываются в `implementation.md` домена
55
- и проставляются на код, который теперь есть;
56
- - законы, объявленные фичей в шапке, дописываются в шапку спека домена;
57
- - директория `proposed/<фича>/` удаляется, строка о фиче снимается из раздела «Что
58
- предложено, но ещё не выкачено» в `docs/specs/README.md`;
59
- - домена ещё не было — `proposed/` заменяется полноценным спеком, и домен получает строку в
60
- таблице `docs/specs/README.md`.
61
-
62
- Работа шла несколькими задачами — вливание идёт в последней из них. Какая последняя, видно в
63
- замысле эпика; закрытый эпик уезжает в описание прошлого или удаляется.
42
+ **The spec is measured for length in the same turn.** Merging is a known move that grows a spec. One
43
+ merge took it to 572 lines against a limit of 500, and the executor learned of it from the push
44
+ guard's refusal — after the commit. One that has grown is split into subdomains right here, not on
45
+ the push.
46
+
47
+ The order of the move:
48
+
49
+ - the rules from `proposed/<фича>/spec.md` are appended to the domain's `spec.md`, into its
50
+ sections;
51
+ - the scenarios move to the domain's `scenarios.md` **with their old numbers**: test titles refer to
52
+ them, and renumbering breaks the audit;
53
+ - scenarios whose promise the work rewrote are edited in place: the number stays, the text is new,
54
+ the test title is edited by the same commit. Work that removes a technique rewrites a written
55
+ promise more often than it adds a new one, and a list naming one append does not name this edit at
56
+ all;
57
+ - the bindings from `proposed/<фича>/implementation.md` are appended to the domain's
58
+ `implementation.md` and set on the code that now exists;
59
+ - the laws the feature declared in its header are appended to the header of the domain spec;
60
+ - the `proposed/<фича>/` directory is deleted, and the line about the feature is removed from the
61
+ "proposed, not yet rolled out" section of `docs/specs/README.md`;
62
+ - the domain did not exist yet — `proposed/` is replaced by a full spec, and the domain gets a row
63
+ in the table of `docs/specs/README.md`.
64
+
65
+ The work went in several tasks — the merge goes in the last of them. Which one is last is seen in
66
+ the epic plan; a closed epic leaves for the archive or is deleted.
64
67
 
65
68
  ```bash
66
- npm run check:specs # после вливания: привязки на месте, сценарии не потерялись
69
+ npm run check:specs # after the merge: the bindings are in place, no scenario is lost
67
70
  ```
68
71
 
69
- **Следующее движение:** за влитой договорённостью тем же ходом идут тексты домена — правила,
70
- паттерны и разделы, которые работа задела.
72
+ **Next move:** after the merged agreement, in the same turn, come the domain texts — the rules,
73
+ patterns and sections the work touched.
71
74
 
72
- ## Состояние `этапы-кончились`: тексты домена приводятся к сделанному
75
+ ## State `этапы-кончились`: the domain texts are brought up to what was done
73
76
 
74
- В спек уезжает только то, что записали до кода. Остальные тексты — правила, паттерны, законы
75
- приложения — после правки никто не перечитывает, и они продолжают описывать старое дерево.
76
- Следующий читатель принимает их за верные.
77
+ Only what was written before the code goes into the spec. The other texts — rules, patterns,
78
+ application laws — nobody re-reads after the edit, and they go on describing the old tree. The next
79
+ reader takes them for true.
77
80
 
78
- Что перечитывать, берётся из раздела замысла, где названо, что работа задевает: там стоят
79
- спеки, законы и правила по её следу. К ним добавляется то, что всплыло по ходу. Всю
80
- конституцию и все правила читать не надо.
81
+ What to re-read is taken from the plan section that names what the work touches: the specs, laws and
82
+ rules along its footprint stand there. What surfaced along the way is added. The whole constitution
83
+ and all the rules need not be read.
81
84
 
82
- | Род текста | Что с ним делается |
83
- | --------------------------------- | -------------------------------------------------------------------------------------------------------- |
84
- | спек домена и его поддомены | у новой фичи появляется правило, сценарий и привязка; из «Что не входит» убирается то, что теперь входит |
85
- | правило и его `implementation.md` | новое утверждение с привязкой `файл:символ`; снятое убирается вместе со строкой привязки |
86
- | паттерн | код, разошедшийся с деревом, правится; новый приём дописывается разделом |
87
- | закон приложения и общий закон | **файл не правится**: владельцу приносится текст статьи, работа идёт дальше без неё |
88
- | обзорный документ продукта | новая фича дописывается строкой; строка о снятом правится |
85
+ | Kind of text | What is done with it |
86
+ | --- | --- |
87
+ | the domain spec and its subdomains | a new feature gets a rule, a scenario and a binding; what is now included leaves "What is not included" |
88
+ | a rule and its `implementation.md` | a new statement with a `file:symbol` binding; a lifted one leaves together with its binding line |
89
+ | a pattern | code that diverged from the tree is fixed; a new technique is appended as a section |
90
+ | an application law and a general law | **the file is not edited**: the owner gets the text of the article, the work goes on without it |
91
+ | the product overview document | a new feature is appended as a line; the line about a lifted one is edited |
89
92
 
90
- Устаревшее чаще всего лежит в трёх местах, и все три читаются целиком:
93
+ What is stale lies most often in three places, and all three are read whole:
91
94
 
92
- - **«Чего из закона здесь нет» в правиле.** Сверка спеков этот раздел не читает, поэтому
93
- неправда живёт в нём сколько угодно: правило три задачи подряд писало, что нужного механизма
94
- в дереве нет, — а он был;
95
- - **«Что не входит» в спеке домена.** Туда писали границу задачи, а задача давно закрыта;
96
- - **«Где это лежит» в правиле.** Файлы переезжают, пути в таблице остаются.
95
+ - **"What of the law is not here" in a rule.** The spec audit does not read this section, so an
96
+ untruth lives there as long as it likes. For three tasks in a row a rule wrote that the tree
97
+ lacked the needed mechanism — and it was there;
98
+ - **"What is not included" in a domain spec.** A task boundary was written there, and the task is
99
+ long closed;
100
+ - **"Where it lives" in a rule.** Files move, the paths in the table stay.
97
101
 
98
102
  ```bash
99
- # где правило и спеки говорят о том, что задевала работа
103
+ # where the rule and the specs speak of what the work touched
100
104
  grep -rn -i "<слово работы>" <каталог правил>/*/SKILL.md docs/specs/*/spec.md
101
- # раздел, который не сверяется ничем, — читается глазами целиком
102
- grep -rn -A3 "Чего из закона здесь нет" <каталог правил>/<правило>/SKILL.md
105
+ # the section nothing audits — read whole by eye
106
+ grep -rn -A3 "What of the law is not here" <каталог правил>/<правило>/SKILL.md
103
107
  ```
104
108
 
105
- **Закон в ветке не правится.** Статья закона — договорённость с владельцем, и меняет её он.
106
- Работа с ней разошлась — пишется готовый текст статьи: в ход работы и в тело PR. Файл
107
- закона правится после ответа. С законами приложения так же: деньги, локали и доступ — та же
108
- договорённость, только про это приложение.
109
+ **A law is not edited in the branch.** An article of a law is an agreement with the owner, and the
110
+ owner changes it. The work diverged from it — the ready-made text of the article is written: into
111
+ the progress and into the PR body. The law file is edited after the answer. The same with
112
+ application laws: payments, locales and access are the same agreement, only about this application.
109
113
 
110
- Что сделали на этом шаге, пишется в тело PR: что перечитали, что изменили, а если ничего
111
- не изменили — почему. Форма раздела — паттерн `git-workflow-pr`.
114
+ What was done at this step is written into the PR body: what was re-read, what was changed, and if
115
+ nothing was changed — why. The form of the section — pattern `git-workflow-pr`.
112
116
 
113
- **Следующее движение:** приведённые тексты коммитятся, и тем же ходом разбирается папка
114
- задачи — последним коммитом ветки, паттерн `task-flow-archive`.
117
+ **Next move:** the updated texts are committed, and in the same turn the task folder is taken apart
118
+ — by the last commit of the branch, pattern `task-flow-archive`.
115
119
 
116
- ## Состояние `папка-разобрана`: работа отдаётся заявкой
120
+ ## State `папка-разобрана`: the work is handed in by a PR
117
121
 
118
- Папка разобрана и запушена, за работой убрано — заявка открывается черновиком. С этой минуты
119
- работа ждёт владельца, а не машину, и заход на этом не кончается: следующая задача берётся тем
120
- же движением, паттерн `task-flow-resume`.
122
+ The folder is taken apart and pushed, the work is cleaned up behind — the PR opens as a draft. From
123
+ this minute the work waits for the owner, not for the machine, and the session does not end on it:
124
+ the next task is taken by the same move, pattern `task-flow-resume`.
121
125
 
122
- **Готовность меряется рассказанностью, а не пройденностью.** Перечень того, что сделано к
123
- открытию, читается как список обязательных проверок, и границы у него не видно. Она есть:
124
- проверка, которую исполнитель не может пройти по причине вне работы — отбитое разрешение,
125
- недоступная среда, ключ у человека, — готовность не отменяет. Она попадает в «Не гонялось» и в
126
- «Оставшийся шаг», названная вместе с причиной; умолчание о ней читается как пройденная.
126
+ **Readiness is measured by what is told, not by what has passed.** A check the executor cannot pass
127
+ for a reason outside the work — a refused permission, an unreachable environment, a key held by a
128
+ person — does not cancel readiness: it goes into "Not run" and into "Remaining step" with the
129
+ reason. Silence about it reads as passed.
127
130
 
128
- Состояния на диске уже нет — ход работы уехал вместе с папкой. Это цена того, что уборка стоит
129
- до заявки: хвост из четырёх шагов — открыть заявку, дождаться прогона, снять черновик, попросить
130
- влить — держится этим паттерном, а не строкой в файле. Гард признаёт работу отданной по истории
131
- ветки: папка, снятая её коммитом, и есть признак.
131
+ There is no state on disk any more — the progress left with the folder. This is the price of the
132
+ cleanup standing before the PR. The tail of four steps — open the PR, wait for the run, lift the
133
+ draft, ask to merge — is held by this pattern, not by a line in a file. The guard counts the work
134
+ handed in by the branch history: a folder removed by its commit is the sign.
132
135
 
133
- ### Раздел об оставшемся шаге пишется в теле заявки, а не дописывается потом
136
+ ### The section on the remaining step is written in the PR body, not appended later
134
137
 
135
- Он стоит там с минуты открытия. Сказанного вслух мало, и одним этим требование не держится:
136
- реплика живёт до следующей реплики, а решение о слиянии принимается на странице заявки — там
137
- переписки нет вовсе. Владелец вливает, как только видит зелёное, и заявка, открытая без раздела,
138
- уезжает в главную ветку раньше, чем раздел успевают дописать: так папка задачи однажды и уехала
139
- неразобранной, пока шёл прогон. Раздел стоит последним и говорит ровно одно: осталось ли что-то
140
- до слияния.
138
+ It stands there from the minute of opening. Saying it aloud is not enough, and the requirement does
139
+ not hold on that alone. A message lives until the next message, and the merge decision is taken on
140
+ the PR page — there is no conversation there at all. The owner merges as soon as they see green, and
141
+ a PR opened without the section goes into main before the section is appended. That is how a task
142
+ folder once went unsorted while the run was going. The section stands last and says exactly one
143
+ thing: is anything left before the merge.
141
144
 
142
145
  ```markdown
143
146
  ## Оставшийся шаг
@@ -146,7 +149,7 @@ grep -rn -A3 "Чего из закона здесь нет" <каталог пр
146
149
  черновик; до этого кнопка слияния заблокирована хостингом.
147
150
  ```
148
151
 
149
- Черновик снят — раздел переписывается тем же вызовом, которым правится тело:
152
+ The draft is lifted — the section is rewritten by the same call that edits the body:
150
153
 
151
154
  ```markdown
152
155
  ## Оставшийся шаг
@@ -154,31 +157,33 @@ grep -rn -A3 "Чего из закона здесь нет" <каталог пр
154
157
  Не осталось: прогон зелёный, черновик снят. Можно вливать.
155
158
  ```
156
159
 
157
- Заголовок раздела и слова обоих образцов пишутся языком заявки, а не языком паттерна. Образцы
158
- набраны тем языком, которым написан сам паттерн, и переносятся целиком — порядок мыслей,
159
- формулировки и заголовок, заголовок последним: он выглядит частью формы, а не частью текста.
160
- То же верно и для двух сообщений владельцу ниже: они образцы того, **что** сказано, а не того,
161
- какими словами.
160
+ The section heading and the words of both samples are written in the language of the PR, not the
161
+ language of the pattern. The samples are set in the language of this tree's PRs and are carried over
162
+ whole — the order of thoughts, the wording and the heading, the heading last. It looks like part of
163
+ the form, not part of the text. The same holds for the two messages to the owner below: they are
164
+ samples of **what** is said, not of which words.
162
165
 
163
- Пустым раздел не оставляется и не удаляется вовсе: отсутствие раздела и «шагов не осталось»
164
- читаются одинаково, а значат разное. Образец тела заявки целиком — в паттерне заведения коммита
165
- и заявки, если дерево его разложило.
166
+ The section is neither left empty nor removed altogether: a missing section and "no steps left" read
167
+ the same and mean different things. The full sample of a PR body — in the pattern for creating a
168
+ commit and a PR, if the tree laid it out.
166
169
 
167
- Держит это гард поставки, а не память пишущего: он читает тело прямо из команды открытия —
168
- доводом оно передано или файлом — и отбивает вызов вместе с остальным несошедшимся. Образец
169
- заголовка при этом называет дерево, потому что заголовок пишется языком заявки, а пакет чужих
170
- слов не знает; не названный, раздел не судится вовсе. Сверка очереди работ тела по-прежнему не
171
- читает: промах ловится в минуту открытия, то есть там, где он ещё исправим одним вызовом.
170
+ The delivery guard holds this, not the writer's memory: it reads the body straight from the opening
171
+ command — passed as an argument or as a file — and refuses the call together with everything else
172
+ that does not match. The heading sample is named by the tree, because the heading is written in the
173
+ PR's language, and the package knows no foreign words; unnamed, the section is not judged at all.
174
+ The work queue audit still does not read the body: the miss is caught at the minute of opening, that
175
+ is, where one call still fixes it.
172
176
 
173
- Разница между разделом и сказанным вслух одна, и она вся: реплику владелец прочитает, только
174
- если вернётся в переписку, а раздел он видит там, куда смотрит, нажимая кнопку.
177
+ The difference between the section and the spoken word is one, and it is all. The owner reads a
178
+ message only if they return to the conversation, and the section they see where they look when
179
+ pressing the button.
175
180
 
176
- ### Два сообщения владельцу, и между ними — прогон
181
+ ### Two messages to the owner, and the run between them
177
182
 
178
- Оба обязательны, и порядок между ними один. Ни одно не заменяется другим: первое говорит, что
179
- работа отдана и чего она ждёт, второе — что она готова.
183
+ Both are mandatory, and the order between them is one. Neither replaces the other: the first says
184
+ the work is handed in and what it waits for, the second — that it is ready.
180
185
 
181
- Сразу после открытия заявки:
186
+ Right after the PR opens:
182
187
 
183
188
  ```
184
189
  PR #<номер> открыт черновиком, папка задачи уже разобрана — за работой убрано. Жду прогона:
@@ -186,35 +191,36 @@ PR #<номер> открыт черновиком, папка задачи уж
186
191
  попрошу тебя влить. Следующая задача уже взята: #<номер>, ветка <имя ветки>.
187
192
  ```
188
193
 
189
- Последняя строка называет взятое, а не намерение взять, и это не оборот речи. Образец, который
190
- кончается обещанием, исполняется как обещание: заход произносит последнюю строку и на этом
191
- кончает ход — сообщение при этом выглядит полным, и пустоты за ним не видно ни владельцу, ни
192
- самому заходу. Образец, который кончается номером заведённой ветки, так исполнить нельзя: пока
193
- ветки нет, строку писать нечем. Разбор — `2026-08-16-next-task-said-not-taken.md`.
194
+ The last line names what is taken, not an intent to take, and that is no figure of speech. A sample
195
+ that ends with a promise is carried out as a promise: the session says the last line and ends the
196
+ turn on it. The message looks complete, and nobody sees the emptiness behind it, neither the owner
197
+ nor the session itself. A sample that ends with the number of a created branch cannot be carried out
198
+ so: while there is no branch, there is nothing to write the line with. The incident analysis —
199
+ `2026-08-16-next-task-said-not-taken.md`.
194
200
 
195
- Прогон зелёный, черновик снят:
201
+ The run is green, the draft is lifted:
196
202
 
197
203
  ```
198
204
  PR #<номер> готов к слиянию: прогон зелёный, черновик снят. Влей его, пожалуйста.
199
205
  ```
200
206
 
201
- Черновик снимается перед вторым сообщением, а не после него: владелец, прочитав просьбу
202
- влить, идёт нажимать кнопку — у черновика она заблокирована, и ход возвращается к исполнителю
203
- ни за чем.
207
+ The draft is lifted before the second message, not after it. The owner, having read the request to
208
+ merge, goes to press the button — on a draft it is locked, and the turn comes back to the executor
209
+ for nothing.
204
210
 
205
- Прогон красный — сообщение то же по форме, но говорит о красном и о том, что с ним делается;
206
- просьбы влить в нём нет. Просьба звучит один раз и только тогда, когда работа готова целиком:
207
- сказанная заранее, она перестаёт что-либо значить, и владелец возвращается к прежнему —
208
- вливать по зелёной странице.
211
+ The run is red — the message is the same in form, but speaks of the red and of what is being done
212
+ about it; there is no request to merge in it. The request sounds once and only when the work is
213
+ ready whole: said ahead of time, it stops meaning anything, and the owner returns to the old way —
214
+ merging by a green page.
209
215
 
210
- Между двумя сообщениями исполнитель не ждёт: работа отдана на разбор, и тем же движением
211
- берётся следующая задача. Возвращается он к заявке тем ходом, которым читает конец прогона.
216
+ Between the two messages the executor does not wait: the work is handed in for review, and the next
217
+ task is taken by the same move. They return to the PR by the turn that reads the end of the run.
212
218
 
213
- ### Состояние работы стоит разделом в теле заявки
219
+ ### The work state stands as a section in the PR body
214
220
 
215
- Сказанного вслух мало, и одним этим требование не держится. Реплика живёт до следующей реплики,
216
- а решение о слиянии принимается на странице заявки — там переписки нет вовсе. Раздел стоит
217
- последним и говорит ровно одно: осталось ли что-то до слияния.
221
+ Saying it aloud is not enough, and the requirement does not hold on that alone. A message lives
222
+ until the next message, and the merge decision is taken on the PR page — there is no conversation
223
+ there at all. The section stands last and says exactly one thing: is anything left before the merge.
218
224
 
219
225
  ```markdown
220
226
  ## Оставшийся шаг
@@ -223,7 +229,7 @@ PR #<номер> готов к слиянию: прогон зелёный, че
223
229
  черновик; до этого кнопка слияния заблокирована хостингом.
224
230
  ```
225
231
 
226
- Черновик снят — раздел переписывается тем же вызовом, которым правится тело:
232
+ The draft is lifted — the section is rewritten by the same call that edits the body:
227
233
 
228
234
  ```markdown
229
235
  ## Оставшийся шаг
@@ -231,67 +237,92 @@ PR #<номер> готов к слиянию: прогон зелёный, че
231
237
  Не осталось: прогон зелёный, черновик снят. Можно вливать.
232
238
  ```
233
239
 
234
- Заголовок раздела и слова обоих образцов пишутся языком заявки, а не языком паттерна. Образцы
235
- набраны тем языком, которым написан сам паттерн, и переносятся целиком — порядок мыслей,
236
- формулировки и заголовок, заголовок последним: он выглядит частью формы, а не частью текста. То же верно и для двух сообщений
237
- владельцу выше: они образцы того, **что** сказано, а не того, какими словами.
238
-
239
- Пустым раздел не оставляется и не удаляется вовсе: отсутствие раздела и «шагов не осталось»
240
- читаются одинаково, а значат разное. Образец тела заявки целиком — в паттерне заведения коммита
241
- и заявки, если дерево его разложило.
242
-
243
- Открытая заявка перечитывается той записью, которая будет её вливать, а не той, что её открыла.
244
- Ответ хостинга автору говорит лишь, что вызов прошёл: право на открытие и видимость открытого —
245
- разные вещи, и вторая проверяется только со стороны читателя. Невидимая заявка ничем себя не
246
- выдаёт — она есть в ответе своему автору, у неё стоят метки, а очередь разбора у владельца просто
247
- пуста.
248
-
249
- Проверить это машиной нечем, и проверки не будет: тело заявки не читает ни одна сверка, а
250
- хостинг не спрашивает ни о чём, кроме заголовка. Требование держится тем же, чем и слова
251
- вслух, — тем, кто пишет тело. Разница между ними одна, и она вся: реплику владелец прочитает,
252
- только если вернётся в переписку, а раздел он видит там, куда смотрит, нажимая кнопку.
253
-
254
- ### Правка по замечаниям идёт без замысла на диске
255
-
256
- Разбор вернул замечания или прогон покраснел — чинится это в той же ветке. Замысла там больше
257
- нет, и собирать папку заново не надо: гард хода работы пропускает правку по признаку из истории
258
- ветки. Что именно чинится, берётся из замечания, а не из замысла.
259
-
260
- Главная ветка, влитая ради того, чтобы что-то посмотреть, — такая же правка, как влитая ради
261
- работы, и уезжает тем же ходом. Слияние, оставшееся в рабочей копии, либо пушится тем же ходом,
262
- либо не делается — иначе владелец видит прежнее состояние и решает по нему.
263
-
264
- **Следующее движение:** прогон зелёный и замечаний нет — черновик снимается, и владельцу
265
- говорится, что работа готова.
266
-
267
- ## Частые промахи
268
-
269
- - **Тексты правятся до разбора папки:** список того, что перечитывать, лежит в замысле, а разбор
270
- папки его удаляет.
271
- - **Запись раздела решений, повторяющая статью правила слово в слово, доводом при ней не
272
- считается.** Правило приходит в контекст само, спек — только когда его открыли; пара расходится
273
- молча. Такая запись уезжает целиком, даже если раздел пустеет; довод, в статье не сказанный,
274
- дописывается в статью.
275
- - **Тело заявки остаётся старше разбора папки.** Разбор — последний коммит ветки, и он делает
276
- неправдой всё, что тело обещало сделать до слияния. Ревьювер читает список оставшегося как
277
- оставшееся, поэтому тело правится тем же ходом.
278
- - **Утверждение правила снимается вместе со строкой привязки.** Связь идёт по тексту: строка без
279
- утверждения и утверждение без строки одинаково краснят сверку спеков.
280
- - **Раздел «Чего из закона здесь нет» читается глазами, греп тут не помогает.** Искать
281
- приходится не то слово, которое ждёшь: правило ссылалось на статью, которой в законе нет, и по
282
- слову своей темы эта строка находилась — а неправда была в другом.
283
- - **Сказать «сверено», не открыв файл, нельзя.** Правило читается целиком: устаревшее утверждение
284
- стоит среди верных и ничем от них не отличается.
285
- - **Вливание после мержа не делается.** В главной ветке тогда лежит раздел «предложено, но не
286
- выкачено» с тем, что работает месяц: беззвучная ложь, тем убедительнее, чем старше.
287
- - **Номера сценариев при вливании не пересчитываются.** Идентификатор — ключ связи с тестами, и
288
- сдвиг рвёт сверку у соседей.
289
- - **«Что не входит» после вливания читается целиком, а не дописывается.** Границы фичи ложатся
290
- рядом с границами домена: половина повторяет стоявшее другими словами, а строка «этого раздела
291
- ещё нет» становится ложью той работой, которая её вливает. Сверка спеков туда не смотрит.
292
- - **Своя строка сверки очереди ищется по имени** — по номеру задачи и имени ветки: сверка
293
- отвечает про всё дерево, и на одном закрытии чужих папок было восемь при одной своей.
294
- - **Пара «метка объёма и строка в замысле эпика» рвётся с двух сторон:** задача по следу закрытой
295
- наследует метку без строки о заходах, а закрытый эпик уносит строку у всех, кто её несёт.
296
- - **Правило без привязки в спек домена не въезжает.** Кода, который его исполняет, нет — значит
297
- это намерение, и место ему в открытых вопросах домена.
240
+ The section heading and the words of both samples are written in the language of the PR, not the
241
+ language of the pattern. The samples are set in the language of this tree's PRs and are carried over
242
+ whole — the order of thoughts, the wording and the heading, the heading last. It looks like part of
243
+ the form, not part of the text. The same holds for the two messages to the owner above: they are
244
+ samples of **what** is said, not of which words.
245
+
246
+ The section is neither left empty nor removed altogether: a missing section and "no steps left" read
247
+ the same and mean different things. The full sample of a PR body — in the pattern for creating a
248
+ commit and a PR, if the tree laid it out.
249
+
250
+ An open PR is re-read by the account that will merge it, not by the one that opened it. The host's
251
+ answer to the author says only that the call went through: the right to open and the visibility of
252
+ what was opened are different things, and the second is checked only from the reader's side. An
253
+ invisible PR gives itself away by nothing — it is in the answer to its author, it carries labels,
254
+ and the owner's review queue is simply empty.
255
+
256
+ There is nothing to check this by machine: no audit reads the request body, and the host asks about
257
+ nothing but the title. The owner reads a message only if they return to the conversation, and the
258
+ section they see where they look when pressing the button.
259
+
260
+ ### An edit after remarks goes without a plan on disk
261
+
262
+ The review returned remarks, or the run went red — it is fixed in the same branch. The plan is no
263
+ longer there, and the folder is not assembled again: the progress guard lets the edit through on the
264
+ sign from the branch history. What exactly is fixed is taken from the remark, not from the plan.
265
+
266
+ A merge left in the working copy is either pushed in the same turn or not made — otherwise the owner
267
+ sees the old state and decides by it.
268
+
269
+ **Next move:** the run is green and there are no remarks — the draft is lifted, and the owner is
270
+ told the work is ready.
271
+
272
+ ## State `задачи-эпика-кончились`: the epic is handed in by a request into the main branch
273
+
274
+ Every task of the epic is merged into its branch and every folder is taken apart — only then does
275
+ the epic branch get a request of its own, and its base is the main branch. Until that minute the
276
+ branch is not offered to a person at all: the merge button on it means the whole epic, and there is
277
+ nothing to press it for while a task is still being written.
278
+
279
+ Before opening, three things are checked by a command rather than by memory:
280
+
281
+ ```bash
282
+ gh pr list --base <ветка эпика> --state open # no task of the epic is left unmerged
283
+ git ls-tree -r --name-only HEAD -- docs/tasks/ # no folder of a task of this epic is left
284
+ git fetch origin && git merge origin/main # the main branch is merged into the epic branch
285
+ ```
286
+
287
+ A folder left in the epic branch reaches the main branch with it: what one branch needed becomes the
288
+ tree's for good. A foreign folder, arrived with a merge of the main branch, is not touched.
289
+
290
+ The body is written the same way as a task's, and its "Что сделано" is the list of the tasks by
291
+ number: the reviewer opens one page instead of five. The plan of the epic stays in the tree — it
292
+ outlives the branch.
293
+
294
+ **Next move:** the request is open as a draft, the run is awaited, the draft is lifted, and the
295
+ owner is asked to merge — by the number, in one turn.
296
+
297
+ ## Common misses
298
+
299
+ - **The texts are edited before the folder is taken apart:** the list of what to re-read lies in the
300
+ plan, and the taking-apart deletes it.
301
+ - **A decisions entry repeating a rule's article word for word is no reason next to it.** Such an
302
+ entry leaves whole, even if the section goes empty; a reason the article does not state is
303
+ appended to the article.
304
+ - **The PR body stays older than the taking-apart.** The taking-apart is the last commit of the
305
+ branch, and it makes untrue everything the body promised to do before the merge. The reviewer
306
+ reads the list of what is left as what is left, so the body is edited in the same turn.
307
+ - **A rule statement is lifted together with its binding line.** The link goes by text: a line
308
+ without a statement and a statement without a line redden the spec audit alike.
309
+ - **The section "What of the law is not here" is read by eye, grep does not help here.** The word to
310
+ search for is not the one expected. A rule referred to an article the law does not have, and by
311
+ the word of its theme that line was found — while the untruth was elsewhere.
312
+ - **"Audited" cannot be said without opening the file.** The rule is read whole: a stale statement
313
+ stands among true ones and differs from them by nothing.
314
+ - **The merge is not done after the merge into main.** Main then holds a "proposed, not yet rolled
315
+ out" section with what has been working for a month.
316
+ - **Scenario numbers are not renumbered at the merge.** The id is the key of the link to the tests.
317
+ - **"What is not included" is read whole after the merge, not appended to.** The feature's
318
+ boundaries land next to the domain's, and the line "this section does not exist yet" becomes a lie
319
+ by the very work that merges it. The spec audit
320
+ does not look there.
321
+ - **One's own line of the work queue audit is found by name** — by the task number and the branch
322
+ name. The audit answers for the whole tree, and one closing had eight of someone else's folders
323
+ against one of its own.
324
+ - **The pair "size label — line in the epic plan" breaks from both sides.** A task on the trail of a
325
+ closed one inherits the label without the line about sessions. A closed epic takes the line away
326
+ from everyone who carries it.
327
+ - **A rule without a binding does not enter the domain spec.** There is no code carrying it out — so
328
+ it is an intent, and its place is the domain's open questions.