@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,92 +2,95 @@
2
2
  name: task-flow-archive
3
3
  kind: pattern
4
4
  rule: task-flow
5
- description: Паттерн правила task-flow. Брать, когда тексты приведены и папка задачи разбирается последним коммитом до открытия заявки: переезд в описание прошлого, сверка очереди работ, разбор закрытой работы правилами и что делать с находками.
5
+ description: Pattern of rule task-flow. Load when the texts are up to date and the task folder is taken apart by the last commit before the PR opens. The move to the archive, the work queue audit, the rules review of the closed work and what to do with the findings.
6
6
  ---
7
7
 
8
- # Разбор папки задачи и разбор работы правилами
8
+ # Taking the task folder apart and the rules review of the work
9
9
 
10
- Паттерн правила `task-flow`. Что при этом должно быть верно — закон
11
- `docs/constitution/work-conduct.md`. Что делается до этого — снятие черновика, вливание
12
- договорённости и приведение текстов — паттерн `task-flow-close`.
10
+ Pattern of the rule `task-flow`. What must be true meanwhile — the law
11
+ `docs/constitution/work-conduct.md`. What comes before it — lifting the draft, merging the agreement
12
+ and bringing the texts up to date — pattern `task-flow-close`.
13
13
 
14
- ## Когда брать
14
+ ## When to use
15
15
 
16
- - Договорённость влита, тексты домена приведены, и папка задачи разбирается последним
17
- коммитом ветки — до открытия заявки, а не после одобрения.
18
- - Работа слита человеком, и её разбирают правилами.
19
- - Разбор вернул находки, и их надо куда-то положить.
16
+ - The agreement is merged, the domain texts are up to date, and the task folder is taken apart by
17
+ the last commit of the branch — before the PR opens, not after approval.
18
+ - The work is merged by a person, and it is reviewed by the rules.
19
+ - The review returned findings, and they need a place.
20
20
 
21
- ## Состояние `разбор-кончился`: папка задачи разбирается
21
+ ## State `разбор-кончился`: the task folder is taken apart
22
22
 
23
- Разбор здесь свой, а не чужой: имя состояния говорит о папке задачи, которую разбирают
24
- следующим шагом, — не о заявке, которую читает ревьювер, и не о просьбе владельца, с разбора
25
- которой работа начиналась. Слово одно на три дела, и на беглом чтении имя выглядит чужим шагом:
26
- исполнитель говорил владельцу, что ждёт разбора, и брался за следующую задачу, а готовая работа
27
- стояла лишний ход и возвращалась в работу рукой владельца.
23
+ The taking-apart here is one's own step, not someone else's. The state name speaks of the task
24
+ folder taken apart in the next step — not of the PR a reviewer reads, nor of the owner's request
25
+ whose grill began the work. In the state's language one word covers all three, and on a skim the
26
+ name looks like someone else's step. The executor told the owner they were waiting for review and
27
+ took the next task, while finished work stood one turn too many and came back to work by the owner's
28
+ hand.
28
29
 
29
- Ждать при этом состоянии нечего. Вход в него — два признака, оба читаются в дереве: набор
30
- зелёный и тексты приведены. Одобрение владельца входом не является, и работа, ждущая его при
31
- сошедшихся признаках, стоит зря.
30
+ There is nothing to wait for in this state. Its entry is two signs, both read in the tree: the suite
31
+ is green and the texts are up to date. The owner's approval is no entry, and work waiting for it
32
+ with both signs met stands idle.
32
33
 
33
- Разбор идёт по трём исходам, а не по двум.
34
+ The taking-apart goes by three outcomes, not two.
34
35
 
35
- **Первым отбирается действующее требование.** Всё, что останется верным и завтра, становится
36
- статьёй закона, пунктом правила или разделом паттерна — по тому, о чём оно говорит. Признак
37
- отбора один и записан здесь заранее: перестанет ли текст быть верным, если завтра всё
38
- переделать. Перестанет — это рассказ о состоявшемся; не перестанет — требование, и место ему в
39
- слое правил. Закон при этом в ветке не правится — его статья приносится владельцу текстом.
36
+ **First, the standing requirement is picked out.** Everything that stays true tomorrow becomes an
37
+ article of a law, a point of a rule or a section of a pattern — by what it speaks of. The sign is
38
+ one and written here in advance: would the text stop being true if everything were redone tomorrow.
39
+ It would — that is a story about what happened; it would not — that is a requirement, and its place
40
+ is the rules layer. The law is not edited in the branch: its article goes to the owner as text.
40
41
 
41
- **Вторым отбирается рассказ о состоявшемся переезде.** Он уезжает в описание прошлого и
42
- называет для каждого перенесённого решения, куда оно ушло: иначе решение, ставшее правилом, и
43
- решение, потерянное при переносе, выглядят одинаково — записью, на которую никто не ссылается.
42
+ **Second, the story of the move that happened is picked out.** It goes to the archive and names, for
43
+ every decision moved out, where it went. Otherwise a decision that became a rule and a decision lost
44
+ in the move look the same — a record nobody refers to.
44
45
 
45
- **Третьим удаляется остальное.**
46
+ **Third, the rest is deleted.**
46
47
 
47
- Порядок именно такой: начав с переезда, исполнитель увозит вместе с ним и действующее — под
48
- конец работы это дешевле, чем разбирать.
48
+ The order is exactly this: starting with the move, the executor carries the standing part away with
49
+ it — at the end of the work that is cheaper than sorting.
49
50
 
50
- Целиком в архив не переносится: `docs/archive/` — место для записей о состоявшемся, которые
51
- кто-то читает, а не свалка ходов работы. Таблица ниже говорит о том, что осталось после
52
- первого отбора.
51
+ Nothing moves to the archive whole: `docs/archive/` is a place for records of what happened that
52
+ somebody reads, not a dump of progress files. The table below speaks of what is left after the first
53
+ pick.
53
54
 
54
- | Файл | Куда |
55
- | --------------- | ------------------------------------------------------------------------------------------------------------------ |
56
- | `grill.md` | в `docs/archive/` — ответы владельца невосстановимы, и это единственная запись о том, почему задача поставлена так |
57
- | `progress.md` | в `docs/archive/`, если в нём есть решения по ходу с причинами; иначе удаляется |
58
- | `plan.md` | удаляется — после выкатки на его вопрос отвечает код, а на «как работает» отвечает спек домена |
59
- | находки разбора | пишутся сразу рядом с замыслом эпика — не переезжают отсюда; работа вне эпика показывает их владельцу тем же ходом |
55
+ | File | Where |
56
+ | --- | --- |
57
+ | `grill.md` | to `docs/archive/` — the owner's answers cannot be recovered, and this is the only record of why the task was set this way |
58
+ | `progress.md` | to `docs/archive/` if it holds decisions along the way with reasons; otherwise deleted |
59
+ | `plan.md` | deleted — after the rollout its question is answered by the code, and "how it works" by the domain spec |
60
+ | review findings | written straight next to the epic plan — they do not move from here; work outside an epic shows them to the owner in the same turn |
60
61
 
61
- Находки в папке задачи не живут вовсе. Разбор идёт фоном, и когда он кончится, не знает никто:
62
- папка к этой минуте разобрана, а ветка бывает уже влита и снята. Оба срока назначает не
63
- исполнитель, поэтому переезд «из папки к замыслу эпика» держался бы на совпадении, которого может
64
- и не случиться. Тем же местом пользуется находка, замеченная не разбором, а по ходу работы.
62
+ Findings do not live in the task folder at all. The review runs in the background, and nobody knows
63
+ when it ends: by that minute the folder is taken apart, and the branch may already be merged and
64
+ removed. Neither date is set by the executor, so a move "from the folder to the epic plan" would
65
+ rest on a coincidence that may never come. A finding noticed not by the review but along the way
66
+ uses the same place.
65
67
 
66
- Находки, вернувшиеся после того, как ветка ушла, едут веткой следующей задачи: пуш в снятую ветку
67
- её не обновляет, а заводит заново, и коммит остаётся вне главной. Следующая задача к этой минуте
68
- уже взята — её веткой уборка за предыдущей и едет, тем же порядком, каким разбирают чужую папку
69
- задачи. Эпик кончился и следующей задачи нет — находки уезжают своей задачей.
68
+ Findings that came back after the branch left travel by the branch of the next task: a push into a
69
+ removed branch does not update it but creates it anew, and the commit stays outside main. By that
70
+ minute the next task is already taken — its branch carries the cleanup after the previous one, in
71
+ the same order in which someone else's task folder is taken apart. The epic is over and there is no
72
+ next task — the findings leave as a task of their own.
70
73
 
71
- Уезжающее складывается одним файлом с говорящим именем, а не папкой из трёх:
74
+ What leaves is filed as one file with a telling name, not a folder of three:
72
75
 
73
76
  ```bash
74
77
  cat docs/tasks/<КЛЮЧ>-<номер>-<slug>/grill.md > docs/archive/<ЧТО_РЕШАЛИ>.md
75
78
  rm -r docs/tasks/<КЛЮЧ>-<номер>-<slug>
76
79
  ```
77
80
 
78
- Разбор идёт последним коммитом ветки, до открытия заявки: открытие с лежащей папкой отбивает
79
- гард поставки. Прежде уборка стояла после одобрения — считалось, что замысел нужен на диске всё
80
- время разбора. Но кнопку слияния нажимает человек на хостинге, куда гард не достаёт, и вливает
81
- он, как только видит зелёное. Замысла после
82
- уборки на диске нет намеренно, и правку по замечаниям гард хода работы пропускает по признаку
83
- из истории ветки.
81
+ The taking-apart goes by the last commit of the branch, before the PR opens: opening with the folder
82
+ in place is refused by the delivery guard. Before, the cleanup stood after approval — the plan was
83
+ thought to be needed on disk for the whole review. But the merge button is pressed by a person on
84
+ the host, where the guard does not reach, and they merge as soon as they see green. After the
85
+ cleanup there is no plan on disk on purpose, and an edit after remarks is let through by the
86
+ progress guard on the sign from the branch history.
84
87
 
85
- ### Работа, разбирающая чужую папку, разбирает две
88
+ ### Work that takes apart someone else's folder takes apart two
86
89
 
87
- Своя папка у такой работы есть — она заводится наравне со всеми, исключения из этого нет. Обе
88
- снимаются последним коммитом, и порядок между ними один: сперва чужая, потом своя. Начав со
89
- своей, исполнитель теряет замысел на диске, а он ещё нужен — гард отбивает правку без него, а
90
- правка по замечаниям разбора идёт в ту же ветку.
90
+ Such work has a folder of its own — it is created like everyone else's, no exception. Both are
91
+ removed by the last commit, and the order between them is one: first someone else's, then one's own.
92
+ Starting with one's own, the executor loses the plan on disk while it is still needed — the guard
93
+ refuses an edit without it, and an edit after review remarks goes into the same branch.
91
94
 
92
95
  ```bash
93
96
  cat docs/tasks/<чужая>/grill.md > docs/archive/<ЧТО_РЕШАЛИ_ТАМ>.md
@@ -96,55 +99,56 @@ cat docs/tasks/<своя>/grill.md > docs/archive/<ЧТО_РЕШАЛИ_ЗДЕС
96
99
  rm -r docs/tasks/<своя>
97
100
  ```
98
101
 
99
- Две записи в архиве, а не одна: работы разные, и решения в них разные. Сверка очереди работ
100
- после этого не называет ни одной папки — этим и проверяется, что разобраны обе.
102
+ Two records in the archive, not one: the works differ, and so do the decisions in them. After this
103
+ the work queue audit names no folder at all — that is how it is checked that both are taken apart.
101
104
 
102
- **Следующее движение:** разобранная папка уезжает в ветку тем же коммитом, следом сверяется
103
- очередь работ, и тем же ходом открывается заявка — паттерн `task-flow-close`.
105
+ **Next move:** the taken-apart folder goes into the branch by the same commit, the work queue audit
106
+ follows, and the same turn opens the PR — pattern `task-flow-close`.
104
107
 
105
- ## Состояние `папка-разобрана`: сверка очереди работ
108
+ ## State `папка-разобрана`: the work queue audit
106
109
 
107
110
  ```bash
108
- npm run check:board # папка закрытой задачи среди текущих, брошенные черновики
109
- npm run check:specs # договорённость влита, привязки на месте
110
- npm run check:docs # пути, названные в текстах, существуют
111
+ npm run check:board # a closed task's folder among the current ones, abandoned drafts
112
+ npm run check:specs # the agreement is merged, the bindings are in place
113
+ npm run check:docs # the paths named in the texts exist
111
114
  ```
112
115
 
113
- **Следующее движение:** расхождения, названные сверками, чинятся тем же ходом; чинить нечего —
114
- тот же ход открывает заявку черновиком и называет владельцу номер, паттерн `task-flow-close`.
116
+ **Next move:** discrepancies named by the audits are fixed in the same turn; nothing to fix — the
117
+ same turn opens the PR as a draft and names the number to the owner, pattern `task-flow-close`.
115
118
 
116
- ## Состояние `влито`: работа разбирается правилами — фоном, следом за PR
119
+ ## State `влито`: the work is reviewed by the rules — in the background, right after the PR
117
120
 
118
- Шаг о слое правил, а не о продукте: что за эту работу грузилось, что помогло, чего не хватило и
119
- где текст правила разошёлся с деревом. Знает это только тот заход, который работу вёл, — через
120
- сутки не знает никто.
121
+ A step about the rules layer, not about the product: what was loaded for this work, what helped,
122
+ what was missing and where the text of a rule diverged from the tree. Only the session that led the
123
+ work knows this — a day later nobody does.
121
124
 
122
- Ведёт разбор роль разбора закрытой задачи, если дерево её разложило; не разложившее ведёт его
123
- само, теми же вопросами. Файлов роль не правит — приносит готовые формулировки, а вставлять их
124
- решает владелец.
125
+ The review is led by the closed-task review role, if the tree laid it out; a tree that did not leads
126
+ it itself, by the same questions. The role edits no files — it brings ready-made wording, and the
127
+ owner decides whether to put it in.
125
128
 
126
- **Запускается разбор в фоне, сразу за открытием PR, и ход на нём не кончается.** Роль ничего не
127
- спрашивает, пока работает, и быстрее от ожидания не идёт: следующая задача берётся тем же ходом,
128
- которым запущен разбор.
129
+ **The review is launched in the background, right after the PR opens, and the turn does not end on
130
+ it.** The role asks nothing while it works and goes no faster for being waited on. The next task is
131
+ taken in the same turn that launched the review.
129
132
 
130
- Порядок один и переставлять его нельзя:
133
+ The order is one and cannot be rearranged:
131
134
 
132
- 1. **Сводка собирается до запуска** — пока задача ещё в голове. Что делали, что пошло не так,
133
- что грузилось и что каждое правило дало, на какие грабли окружения наткнулись. Собранная
134
- через две задачи, она пересказывает историю ветки вместо того, что было на самом деле.
135
- 2. **Роль уходит в фон** — инструментом запуска роли, с путём к списку загруженного и сводкой
136
- целиком. Ход продолжается следующей задачей.
137
- 3. **Вернувшиеся находки принимают одним ходом** — записать и вернуться к прежнему. Разбор,
138
- отложенный «до удобного момента», не случается вовсе: заход кончается раньше.
135
+ 1. **The digest is gathered before the launch** — while the task is still in mind. What was done,
136
+ what went wrong, what was loaded and what each rule gave, which pitfalls of the environment were
137
+ hit. Gathered two tasks later, it retells the branch history instead of what happened.
138
+ 2. **The role goes to the background** — by the role launch tool, with the path to the list of what
139
+ was loaded and the digest whole. The turn goes on with the next task.
140
+ 3. **The returned findings are accepted in one turn** — write them down and go back to what was
141
+ before. A review put off "until a convenient moment" never happens at all: the session ends
142
+ first.
139
143
 
140
- ### Записи груза переводятся в «готово» тем же ходом
144
+ ### Cargo records are moved to "done" in the same turn
141
145
 
142
- Работа, начатая с приехавшего груза, кончается здесь, а не на разборе папки: до слияния правки в
143
- дереве нет, и отметка утверждала бы то, чего в главной ветке ещё не лежит. Это единственное
144
- состояние, где слияние уже случилось, а ход о задаче ещё идёт.
146
+ Work begun from cargo that arrived ends here, not at the folder's taking-apart: before the merge the
147
+ edit is not in the tree, and the mark would claim what does not yet lie in main. This is the only
148
+ state where the merge has already happened while the turn about the task still goes on.
145
149
 
146
- Ключи берутся из описания прошлого — папки задачи на диске к этой минуте нет, — и подставляются
147
- полными, как их печатает чтение приёма:
150
+ The keys are taken from the archive — the task folder is no longer on disk by this minute — and
151
+ passed whole, as the intake read prints them:
148
152
 
149
153
  ```bash
150
154
  npm run cargo:mark -- --state fixed \
@@ -152,124 +156,127 @@ npm run cargo:mark -- --state fixed \
152
156
  --fix '<чем исправлено: статья правила, гард, проверка, правка кода>'
153
157
  ```
154
158
 
155
- Приём починки один на вызов, поэтому записи едут пачками по тому, чем закрыты, а не всей задачей
156
- разом. Ответ читается: «переведено 0» означает, что этот разбор не двинул ничего.
157
-
158
- **Следующее движение:** пока роль разбирает, тот же ход занят следующей задачей; записи груза
159
- переводятся в «готово» этим же ходом, вернувшиеся находки принимаются одним ходом — записать и
160
- продолжить прежнее, а владельцу о них говорится, когда кончился эпик.
161
-
162
- ## Находки разбора ложатся к замыслу эпика и ждут владельца
163
-
164
- Ответ роли живёт в переписке и умирает вместе с ней, поэтому он сразу ложится на диск. Пишет
165
- его исполнитель: роль файлов не пишет.
166
-
167
- **Пишутся находки сразу в файл рядом с замыслом эпика, а не в папку задачи.** Разбор идёт
168
- фоном, и когда он кончится, не знает никто; папка задачи к этому времени бывает уже разобрана,
169
- а ветка влита и снята. Оба срока назначает не исполнитель, поэтому переезд «из папки к замыслу
170
- эпика» держится на совпадении, которого может и не случиться. Тем же местом пользуется находка,
171
- замеченная не разбором, а по ходу работы. Работа вне эпика показывает находки владельцу тем же
172
- ходом.
173
-
174
- **Имя файла находок собирается из имени замысла, а не выдумывается заходом.** Файл — это
175
- `<имя замысла>-findings.md` рядом с самим замыслом: замысел `<тема>.md` копит находки в
176
- `<тема>-findings.md`. Имя, выбранное на месте, читается только тем заходом, который его дал:
177
- следующий ищет находки этого эпика перебором каталога замыслов и, не найдя, заводит второй
178
- файл о том же — а владелец читает один из двух. Постоянного места здесь мало: у каждого эпика
179
- свой файл, и находит его по имени тот, кто пришёл к замыслу, а не к каталогу. Форма файла —
180
- образец находок среди образцов пакета.
181
-
182
- **Находки, вернувшиеся после того, как ветка ушла, едут веткой следующей задачи.** Пуш в снятую
183
- ветку её не обновляет, а заводит заново: коммит остаётся вне главной ветки и пропадает вместе
184
- с ней. Следующая задача к этому времени уже взята — её веткой уборка за предыдущей и едет.
185
- Эпик кончился и следующей задачи нет — находки уезжают своей задачей.
186
-
187
- **Накопительный файл находок делится до дописи, а не после.** Длина смотрится одной командой
188
- перед первой написанной строкой: раздел задачи занимает десятки строк, и предел длины документа
189
- он переходит молча. Гейт пуша показывает превышение, когда допись уже закоммичена, — тогда
190
- деление идёт задним числом, вместе с правкой ссылок на файл. Не влезает — заводится следующая
191
- часть, и раздел пишется сразу в неё.
192
-
193
- **Часть называется задачей, которая её завела, а не своим порядковым номером.** Имя —
194
- `<имя замысла>-findings-<КЛЮЧ>-<номер>.md`. Один эпик ведут несколько рабочих деревьев разом, и
195
- «следующая часть» каждое из них видит своей: две ветки заводят файл с одним именем, а
196
- столкновение обнаруживается только при вливании главной ветки — конфликтом на весь файл, где обе
197
- стороны верны и сложением не разрешаются. Номер задачи занят ею одной, и достаться двум деревьям
198
- он не может. Первая часть номера не несёт и задним числом не переименовывается: переименование
199
- правит ссылки во всех текстах, которые на неё смотрят, ради ровного ряда имён. Порядок между
200
- частями не нужен — находки друг друга не продолжают, и владелец читает их разом.
201
-
202
- **Строка находки, закрытой другой работой, помечается номером той работы.** Починенная по
203
- частям находка со стороны списка неотличима от несделанной: оба её промаха были закрыты своими
204
- задачами и записаны предметно, каждый при своём поддомене, — а разбор ушёл на то, чтобы
205
- выяснить, что чинить нечего. Номер стоит в самой строке, и следующий читатель этого пути не
206
- проходит.
207
-
208
- **Пункт сборной находки проверяется на живость до того, как берётся в работу.** Мелочи,
209
- списанные в один пункт, не стареют вместе: из четырёх промахов живыми оказались два, один был
210
- закрыт другой работой, четвёртый не воспроизводился — и разведка этого заняла больше времени,
211
- чем сами правки. Сборная задача поэтому стоит ровно столько, сколько разведка её состава, и
212
- это говорится владельцу до того, как её берут.
213
-
214
- **Наружу без слова владельца уезжает только сводка наблюдений.** Она говорит, чем пользовались
215
- и чем не пользовались ни разу, — это факт, и мнением он не станет. Предложение — другое дело:
216
- это заготовка правки чужого дерева, и часть заготовок отпадает при первом же чтении. Уехавшая
217
- без разбора, она становится работой того, кто её не заказывал.
218
-
219
- Порядок такой: находки копятся у замысла эпика → эпик кончился → владелец читает их разом и
220
- говорит, что из них верно → названное им оформляется предложением и уезжает. Чем отправляют —
221
- скил слоя правил, если дерево его разложило.
222
-
223
- У каждой находки называется адрес, и адресов три:
224
-
225
- | Куда | Что туда идёт |
226
- | -------------------------- | ------------------------------------------------------------------------ |
227
- | слой правил — предложением | то, что верно любому дереву этого класса: статья, пункт правила, паттерн |
228
- | имена этого дерева | то, что верно здесь: компаньон правила, профиль, карта гейта |
229
- | надстройка над разложенным | то, что здесь звучит иначе, чем в пакете |
230
-
231
- Без адреса правка ложится туда, где её видит автор, — то есть в своё дерево, — и общее оседает
232
- в одном месте, оставаясь неизвестным всем остальным.
233
-
234
- **Разбор без правки закрытым не считается.** Из него выходит либо правка слоя правил, либо
235
- предложение наружу; не вышло ни того ни другого — это жалоба, и она повторится. Предложение, о
236
- котором владелец сказал вслух, уходит наружу в тот же ход: написанное и не отправленное лежит в
237
- дереве неотличимо от отправленного.
238
-
239
- ## Частые промахи
240
-
241
- - **Папку разбирают до открытия заявки — потом о ней уже никто не вспомнит.** Сверка очереди
242
- считает задачу закрытой по слиянию: после него за папку никто не отвечает — работа перешла к
243
- следующей задаче, и находка достанется чужому заходу. Держит это гард поставки:
244
- открытие заявки отбивается, пока папка лежит в ветке.
245
- - **Разбор папки идёт последним коммитом, после того как гейт пуша прошёл целиком.** Порядок
246
- один: мерж главной ветки, вливание договорённости, приведение текстов домена, все линтеры и
247
- проверки зелёные, разбор папки — и только потом заявка. Дешёвый шаг стоит раньше дорогого:
248
- заход, потративший окно на прогон, упирался в порог заполнения на четырёх строках привязки, и
249
- дописать их было уже нечем. Второй довод сильнее: прогон, стоящий после вливания, проверяет и
250
- само вливание — иначе он смотрит то состояние дерева, которое в главную ветку не поедет.
251
- - **После разбора замысла на диске нет, и собирать папку заново не надо.** Правку по замечаниям
252
- разбора и починку красного прогона гард хода работы пропускает по признаку из истории ветки:
253
- папка, снятая её коммитом, и есть признак отданной работы. Собранная заново папка вернула бы
254
- отказ гарда поставки на следующем же вызове.
255
- - **Если папку просто удалить, первым пропадёт `grill.md`.** Удалить проще, чем разобрать, а
256
- слова владельца записаны только там, и восстановить их неоткуда. Поэтому гард требует, чтобы
257
- ветка добавила запись в архив. Что именно перенесли, он не проверяет — это смотрит владелец
258
- на ревью.
259
- - **Шаги закрытия с владельцем не согласуются — они перечислены здесь.** Разбор работы
260
- правилами входит в закрытие так же, как вливание договорённости и разбор папки; владелец
261
- решает не то, запускать ли его, а что делать с находками. Ход, кончившийся таким вопросом,
262
- отбивает гард разговора: за ход правила не читались, а ответ стоит в них. Спрашивается только
263
- то, чего в правилах нет.
264
- - **Блок готового кода в паттерне стареет от чужой правки.** Он не привязан ни к чему: сверка
265
- спеков читает утверждения правила, а пример под ними не читает вовсе. Два поля, ставших
266
- обязательными в чужой работе, сделали пример в соседнем паттерне несобираемым — сам он при
267
- этом не изменился ни на знак и в след задачи не попал, потому что ни одного слова той работы
268
- в нём нет. Паттерн находится по имени правленого символа, а не по теме работы.
269
- - **Замысел эпика правят только там, где вписывают «чем кончился».** Границы эпика и
270
- порядок задач в нём при этом остаются прежними, а работа их уже нарушила: задача, решившая
271
- читать спеки, оставила над собой границу «спеки — вторая очередь», и следующий исполнитель
272
- прочитает её как действующую. Границы эпика перечитываются целиком тем же заходом, что и
273
- итог работы.
274
- - **Архив не обновляется после выкатки.** Уехавшее туда описывает день переезда, и правится
275
- оно только вместе с признанием, что описывало неверно.
159
+ One fix per call, so the records go in batches by what closed them, not by the whole task at once.
160
+ The reply is read: "moved 0" means this review moved nothing.
161
+
162
+ **Next move:** while the role reviews, the same turn is busy with the next task. The cargo records
163
+ are moved to "done" in this same turn, and the returned findings are accepted in one turn — write
164
+ them down and go on with what was before. The owner hears of them when the epic is over.
165
+
166
+ ## Review findings land next to the epic plan and wait for the owner
167
+
168
+ The role's reply lives in the conversation and dies with it, so it lands on disk at once. The
169
+ executor writes it: the role writes no files.
170
+
171
+ **Findings are written straight into a file next to the epic plan, not into the task folder.** The
172
+ review runs in the background, and nobody knows when it ends. By then the task folder may already be
173
+ taken apart, and the branch merged and removed. Neither date is set by the executor, so a move "from
174
+ the folder to the epic plan" rests on a coincidence that may never come. A finding noticed not by
175
+ the review but along the way uses the same place. Work outside an epic shows the findings to the
176
+ owner in the same turn.
177
+
178
+ **The findings file is named after the plan, not invented by the session.** The file is `<plan
179
+ name>-findings.md` next to the plan itself: the plan `<theme>.md` gathers findings in
180
+ `<theme>-findings.md`. A name chosen on the spot is read only by the session that gave it. The next
181
+ one looks for this epic's findings by walking the plans directory and, not finding them, starts a
182
+ second file on the same thing — and the owner reads one of two. A single fixed place is not enough
183
+ here: each epic has its own file, found by name by whoever came to the plan, not to the directory.
184
+ The form of the file — the findings template among the package templates.
185
+
186
+ **Findings that came back after the branch left travel by the branch of the next task.** A push into
187
+ a removed branch does not update it but creates it anew: the commit stays outside main and
188
+ disappears with it. By then the next task is already taken — its branch carries the cleanup after
189
+ the previous one. The epic is over and there is no next task — the findings leave as a task of their
190
+ own.
191
+
192
+ **The cumulative findings file is split before the append, not after.** The length is looked at with
193
+ one command before the first written line. A task's section takes tens of lines, and it crosses the
194
+ document length limit in silence. The push gate shows the excess when the append is already
195
+ committed — then the split goes after the fact, together with editing every reference to the file.
196
+ It does not fit — the next part is started, and the section is written straight into it.
197
+
198
+ **A part is named after the task that started it, not by its ordinal.** The name is `<plan
199
+ name>-findings-<КЛЮЧ>-<номер>.md`. One epic is led by several working trees at once, and each of
200
+ them sees "the next part" as its own. Two branches start a file under one name, and the clash shows
201
+ only when main is merged in: a conflict over the whole file, where both sides are right and adding
202
+ them up resolves nothing. A task number belongs to that task alone and cannot fall to two trees. The
203
+ first part carries no number and is not renamed after the fact: a rename edits the references in
204
+ every text that points at it, for the sake of an even row of names. No order between parts is needed
205
+ — findings do not continue one another, and the owner reads them all at once.
206
+
207
+ **The line of a finding closed by other work is marked with that work's number.** From the list's
208
+ side a finding fixed in parts cannot be told from one not done. Both of its misses were closed by
209
+ tasks of their own and recorded by subject, each under its own subdomain — and the review went into
210
+ finding out there was nothing to fix. The number stands in the line itself, and the next reader does
211
+ not walk this path.
212
+
213
+ **An item of a combined finding is checked for being alive before it is taken into work.** Small
214
+ things written off into one item do not age together. Of four misses two turned out alive, one was
215
+ closed by other work, the fourth did not reproduce — and finding this out took longer than the edits
216
+ themselves. A combined task therefore costs exactly as much as the exploration of its parts, and
217
+ this is said to the owner before it is taken.
218
+
219
+ **Without the owner's word only the digest of observations leaves outward.** It says what was used
220
+ and what was never used once — that is a fact, and it does not turn into an opinion. A proposal is
221
+ another matter: it is a draft of an edit to someone else's tree, and some drafts fall away at the
222
+ first reading. Sent unreviewed, it becomes the work of someone who did not order it.
223
+
224
+ The order is this. Findings gather at the epic plan → the epic is over → the owner reads them all at
225
+ once and says which are right → what they named is shaped as a proposal and leaves. What sends it —
226
+ the rules-layer skill, if the tree laid it out.
227
+
228
+ Every finding names its address, and there are three:
229
+
230
+ | Where | What goes there |
231
+ | --- | --- |
232
+ | the rules layer — as a proposal | what is true for any tree of this class: an article, a point of a rule, a pattern |
233
+ | the names of this tree | what is true here: the rule's companion, the profile, the gate map |
234
+ | an override over the laid-out file | what sounds different here than in the package |
235
+
236
+ Without an address the edit lands where its author sees it — in their own tree — and the common part
237
+ settles in one place, unknown to everyone else.
238
+
239
+ **A review without an edit does not count as closed.** Out of it comes either an edit of the rules
240
+ layer or a proposal outward; neither came — it is a complaint, and it will repeat. A proposal the
241
+ owner spoke aloud about leaves outward in the same turn: written and not sent, it lies in the tree
242
+ indistinguishable from a sent one.
243
+
244
+ ## Common misses
245
+
246
+ - **The folder is taken apart before the PR opens — later nobody remembers it.** The work queue
247
+ audit counts a task closed by the merge. After it nobody answers for the folder — the work has
248
+ moved to the next task, and the finding falls to someone else's session. The delivery guard holds
249
+ this: opening the PR is refused while the folder lies in the branch.
250
+ - **The folder is taken apart by the last commit, after the push gate has passed whole.** The order
251
+ is one. Merge of main, merging the agreement, bringing the domain texts up to date, all linters
252
+ and checks green, taking the folder apart — and only then the PR. The cheap step stands before the
253
+ costly one: a session that spent its window on the run hit the fill threshold on four binding
254
+ lines, and there was nothing left to write them with. The second argument is stronger: a run that
255
+ stands after the merge checks the merge itself — otherwise it looks at a state of the tree that
256
+ will not reach main.
257
+ - **No plan on disk after the taking-apart, and the folder is not assembled again.** An edit after
258
+ review remarks and a fix of a red run pass the progress guard on the sign from the branch history.
259
+ A folder removed by its commit is the sign of handed-in work. A folder assembled anew would bring
260
+ back the delivery guard's refusal on the very next call.
261
+ - **If the folder is simply deleted, `grill.md` is the first to go.** Deleting is easier than taking
262
+ apart, and the owner's words are written only there, with nowhere to recover them from. So the
263
+ guard demands that the branch add a record to the archive. What exactly was moved it does not
264
+ check — the owner looks at that in review.
265
+ - **The closing steps are not agreed with the owner — they are listed here.** The rules review of
266
+ the work is part of closing, as are merging the agreement and taking the folder apart. The owner
267
+ decides not whether to launch it but what to do with the findings. A turn that ended with such a
268
+ question is refused by the conversation guard: no rules were read in the turn, and the answer
269
+ stands in them. Only what the rules lack is asked.
270
+ - **A ready-made code block in a pattern goes stale from someone else's edit.** It is bound to
271
+ nothing: the spec audit reads the rule's statements and does not read the sample under them at
272
+ all. Two fields made mandatory in someone else's work made the sample in a neighbouring pattern
273
+ unbuildable. The sample itself changed by not a character and got into no task footprint, because
274
+ not one word of that work is in it. The pattern is found by the name of the edited symbol, not by
275
+ the theme of the work.
276
+ - **The epic plan is edited only where "how it ended" is written in.** The epic's boundaries and the
277
+ order of its tasks stay as they were, while the work has already broken them. A task that decided
278
+ to read the specs left above itself the boundary "specs — second turn", and the next executor
279
+ reads it as in force. The epic's boundaries are re-read whole by the same session as the outcome
280
+ of the work.
281
+ - **The archive is not updated after the rollout.** What went there describes the day of the move,
282
+ and it is edited only together with an admission that it described it wrongly.