@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
@@ -1,100 +1,105 @@
1
- # Тексты проекта — холодная часть
1
+ # Project texts — cold part
2
2
 
3
- Ловушки: грабли, на которые уже наступали. Грузится не вместе с правилом, а по
4
- требованию — при обычном решении она не нужна.
3
+ Pitfalls: traps already stepped on. Loaded not with the rule but on demand — an ordinary
4
+ decision does not need it.
5
5
 
6
- Правило — `doc-style`; статьи, которыми держится закон, стоят там.
6
+ The rule is `doc-style`; the articles that hold the law stand there.
7
7
 
8
- ## Ловушки
8
+ ## Pitfalls
9
9
 
10
- - **Отступление от просьбы называется в том же докладе, где показан результат.** Сделанное не
11
- тем способом, о котором просили, отличается от сделанного просимым способом даже при совпавшем
12
- ответе, и разницу называет исполнитель — одной строкой «сделал не тем, чем сказано, вот чем и
13
- вот почему». Умолчание держится ровно до того, как просьбу приходится повторять, а платит за
14
- него доверие ко всему докладу.
15
- - **Оставшаяся работа не записывается в документ, а заводится задачей.** `docs/BACKLOG.md`
16
- держит только то, что задачей не бывает: договорённости и решения, которые решено не
17
- править. Признак — утверждение остаётся, если править его никто не собирается. «Сделать
18
- потом» в плане, README или спеке — второй список работ: он расходится с бордой молча, а
19
- разбирать его потом дороже, чем завести задачу сразу. Из 1411 строк документа действующими
20
- оказались 71, и на разбор остальных ушла отдельная задача. Как разбирать накопившееся —
21
- паттерн `doc-style-sweep`.
22
- - **Словарь действует и на разговор с владельцем, не только на файлы.** Он приходит в контекст
23
- на запуске сессии, поэтому «не читал» основанием не бывает. Слово из левой колонки «Так не
24
- пишем» всплывало именно в ответах: в дереве его уже вычистили, а в PR о сделанном оно
25
- оставалось, и владелец читал ровно то слово, от которого отказались.
26
- - **Термин берётся из `docs/GLOSSARY.md`, а не придумывается на месте.** Слова, которого там
27
- нет, у читателя нет тоже: «журнал приложения» простоял в спеке почты, пока владелец не
28
- спросил, что это, — оказалось, логи бэкенда, а слово «журнал» здесь уже занято журналом
29
- событий. Новое слово либо заводится в словаре вместе с правкой, либо заменяется тем, что
30
- уже есть.
31
- - **Проход по словарю глазами слово не находит.** «Формулировки приведены к словарю» означает
32
- ровно те строки, которые в тот момент читали: «спека» пережила такой проход и осталась в
33
- соседней строке того же файла. Слово из левой колонки таблицы «Так не пишем» вычищается
34
- грепом по всему дереву, а не вычиткой. Форма задаётся точно: «спек» — документ — склоняется
35
- в «спека» и «спеки» тоже, и совпадений по корню законных больше, чем нарушений; ищутся
36
- сочетания («спеки на … нет», «спека проверяет»), а не корень.
37
- - **Снятое имя вычищается одним грепом по всему дереву:** правила, их зеркала в скилах,
38
- документы и комментарии. Описание того, чего в коде уже нет, читается как действующее
39
- указание.
40
- - **У снятого слова второе значение возвращается после сплошной замены, а не обходится до
41
- неё.** Слово снимают ровно потому, что оно стояло над двумя вещами, и второе значение при
42
- этом остаётся законным. Отобрать его заранее нечем: какое из двух значений в строке, видно
43
- только по соседнему тексту, а строк бывают сотни. Порядок обратный — сплошная замена, затем
44
- сплошной просмотр самой правки, и найденное второе значение возвращается поимённо. Из 353
45
- замен так вернулись шесть, и две первые были поломкой: сверка печатала новое имя дважды
46
- подряд, а комментарий обещал «поломку вместо PR о том, что долгов нет». Просматривается
47
- правка, а не дерево после неё: в дереве обе стороны выглядят одинаково верными.
48
- - **Поиск по дереву не покрывает того, что уже уехало наружу.** Заголовок задачи и её тело,
49
- заголовок PR и его тело, заголовки коммитов лежат вне файлов, и проверки текстов их не
50
- читают вовсе. Вычистив слово в дереве, обходят те же места в очереди работ и в истории:
10
+ - **A deviation from the request is named in the same report that shows the result.** Something
11
+ done not the way it was asked differs from something done the asked way even when the answer
12
+ matches, and the executor names the difference — one line: "did it not the way you said, here
13
+ is how and why". Silence holds exactly until the request has to be repeated, and the price is
14
+ trust in the whole report.
15
+ - **Remaining work is not written into a document; it is filed as a task.** `docs/BACKLOG.md`
16
+ keeps only what never becomes a task: agreements and decisions that were decided not to change.
17
+ The test — the statement stays if nobody intends to change it. "Do later" in a plan, a README or
18
+ a spec is a second work list: it drifts from the board silently, and sorting it out later costs
19
+ more than filing a task right away. Of a 1411-line document, 71 lines turned out to be current,
20
+ and sorting the rest took a separate task. How to sort what has piled up — pattern
21
+ `doc-style-sweep`.
22
+ - **The glossary applies to the conversation with the owner too, not only to files.** It enters
23
+ the context at session start, so "did not read it" is never a ground. A word from the "we do
24
+ not write" left column surfaced precisely in replies: it had already been purged from the tree,
25
+ yet in the PR about the work it remained, and the owner read exactly the word that was dropped.
26
+ - **A term is taken from `docs/GLOSSARY.md`, not invented on the spot.** A word that is not there
27
+ does not exist for the reader either: "application journal" stood in the mail spec until the
28
+ owner asked what it was — it turned out to be backend logs, and "journal" here was already taken
29
+ by the event journal. A new word is either added to the glossary together with the change or
30
+ replaced with one that already exists.
31
+ - **A pass over the glossary by eye does not find the word.** "Wording aligned with the
32
+ glossary" means exactly the lines that were being read at that moment: "speca" survived such a
33
+ pass and stayed on the next line of the same file. A word from the left column of the "Not
34
+ written here" table is purged by grep over the whole tree, not by proofreading. The form is set precisely: "spec" — the
35
+ document — also inflects into the other forms, and legitimate matches by the stem outnumber the
36
+ violations; the search is for phrases ("no spec for …", "the spec checks"), not the stem.
37
+ - **A dropped name is purged by one grep over the whole tree:** rules, their mirrors in skills,
38
+ documents and comments. A description of what the code no longer has reads as a current
39
+ instruction.
40
+ - **A dropped word's second meaning is restored after the blanket replacement, not worked around
41
+ before it.** The word is dropped precisely because it stood over two things, and the second
42
+ meaning stays legitimate. There is no way to pick it out in advance: which of the two meanings a
43
+ line carries shows only from the text around it, and there may be hundreds of lines. The order
44
+ is reversed — blanket replacement, then a full review of the change itself, and each second
45
+ meaning found is restored by name. Of 353 replacements six came back this way, and the first two
46
+ were breakage: the check printed the new name twice in a row, and a comment promised "breakage
47
+ instead of a PR saying there is no debt". The change is reviewed, not the tree after it: in the
48
+ tree both sides look equally right.
49
+ - **A search over the tree does not cover what has already gone outside.** The task title and
50
+ body, the PR title and body, commit subjects live outside files, and text checks do not read
51
+ them at all. Having purged a word in the tree, one walks the same places in the work queue and
52
+ in history:
51
53
 
52
54
  ```bash
53
- <клиент хостинга> api "<путь к PR>" --jq '.title, .body' | grep -i '<слово>'
54
- <клиент хостинга> api "<путь к задаче>" --jq '.title, .body' | grep -i '<слово>'
55
- git log --format='%s%n%b' <база>..HEAD | grep -i '<слово>'
55
+ <host client> api "<PR path>" --jq '.title, .body' | grep -i '<word>'
56
+ <host client> api "<task path>" --jq '.title, .body' | grep -i '<word>'
57
+ git log --format='%s%n%b' <base>..HEAD | grep -i '<word>'
56
58
  ```
57
59
 
58
- Заголовок PR правится вызовом хостинга, заголовок коммита — только переписыванием ветки,
59
- поэтому его проверяют до пуша. Выдуманное слово было вычищено из трёх файлов и объявлено
60
- снятым, а в заголовке PR и в заголовке коммита осталось — владелец прочитал именно его.
60
+ A PR title is fixed by a host call, a commit subject only by rewriting the branch, so it is
61
+ checked before the push. An invented word was purged from three files and declared dropped,
62
+ yet stayed in the PR title and the commit subject — the owner read exactly that.
61
63
 
62
- - **Число в тексте пересчитывается командой в том же коммите, где пишется.** Оно стареет
63
- внутри одной ветки: «шестнадцать пар» стало неправдой через два коммита после того, как
64
- было написано, и нашёл это владелец, а не проверка. Число, которое придётся пересчитывать
65
- при каждой правке, лучше не писать вовсе. Число, полученное разбором текста, сверяется на
66
- выборке руками до того, как его называют: разбор, не знающий второй формы записи, ошибается
67
- молча — «51 пункт без задачи» оказался шестью, потому что номер стоял и отдельной строкой, и
68
- в заголовке подраздела.
69
- - **Названная в тексте проверка запускается, а не пересказывается.** «Проверка есть» и
70
- «проверка проходит» — разные утверждения, и второго в тексте обычно нет вовсе. Из четырёх
71
- проверок, названных правилом, три оказались не в том состоянии, в каком текст их описывает:
72
- одна отдавала полтора десятка замечаний, вторая переписывала файлы самим запуском, третья
73
- была красной и роняла общую сводку вместе с собой. Ни одна из трёх не входила в выкатку,
74
- поэтому молчание было полным. Проверку, которая переписывает файлы, запускают на чистом
75
- дереве: иначе её правки уедут чужим коммитом.
76
- - **Сделанность читается по дереву, а не по тексту, который о ней написан.** Это верно в обе
77
- стороны: строка про README обеих либ была вычеркнута как сделанная, а README остался с
78
- прежним числом импортёров; задача, названная владельцу несделанной, оказалась наполовину
79
- закрытой и покрытой сценариями хука. Пункт плана и тело задачи описывают день, когда их
80
- написали, и с тех пор не менялись.
81
- - **Комментарий в файле — такое же утверждение, как строка в документе.** Обоснование «строки
82
- идут во всю ширину панели, иначе подсветка обрывается» было выдумано, прожило три сессии и
83
- каждый раз читалось как основание вёрстку не трогать.
84
- - **Чужие проекты не упоминаются нигде** — ни имени репозитория, ни «портировано из», ни
85
- ссылок на его файлы. Описывается то, что код делает здесь, в терминах этого проекта.
86
- - **Замена по шаблону молчит, когда шаблон не тот.** Потоковый редактор бывает без поддержки
87
- чередования в образце: выражение не совпадает ни с чем, команда выходит нулём и не правит ни
88
- строки. Отличить это от применённой правки по коду возврата нечем — видно только по самому
89
- файлу, и обычно позже, по заголовкам собранного текста. Текст правится инструментом правки; а
90
- если замену всё же зовут, место, которое она обещала изменить, перечитывают сразу после неё.
91
- - **Число, полученное командой, замером ещё не является.** Требование пересчитывать число
92
- командой соблюдается буквально — команда была, — а мерила ли она предмет числа, не спрашивает
93
- никто. Вывод бывает ложным по-разному и молча: `grep -E` с границей слова `\b` на BSD часть
94
- образца игнорирует и об этом не сообщает («278 вхождений» оказались 79, и двенадцать из них о
95
- другом), регулярка не видит, где кончается блок, и приписывает найденное соседу, а память
96
- возвращает число, не помня его происхождения, — от замера оно неотличимо. Число пишется той
97
- командой, которая мерит его предмет, и тем же ходом, каким пишется текст.
98
- - **Границу слова спрашивают у той команды, которая её знает.** `grep -w`, `rg` и `python3` с
99
- `re` её реализуют, BSD `grep -E` — нет; проверка стоит одной команды и делается до того, как
100
- число уедет в текст.
64
+ - **A number in a text is recomputed by a command in the same commit that writes it.** It goes
65
+ stale inside one branch: "sixteen pairs" became false two commits after it was written, and the
66
+ owner found it, not a check. A number that will have to be recomputed on every edit is better
67
+ not written at all. A number obtained by parsing text is verified on a sample by hand before it
68
+ is stated: a parser that does not know a second notation fails silently — "51 items without a
69
+ task" turned out to be six, because the id stood both on its own line and in a subsection
70
+ heading.
71
+ - **A check named in a text is run, not retold.** "The check exists" and "the check passes" are
72
+ different statements, and the second is usually absent from the text altogether. Of four checks
73
+ named by a rule, three were not in the state the text described: one produced a dozen and a half
74
+ findings, the second rewrote files by merely running, the third was red and took the overall
75
+ summary down with it. None of the three was part of the release, so the silence was complete. A
76
+ check that rewrites files is run on a clean tree: otherwise its edits leave in someone else's
77
+ commit.
78
+ - **Doneness is read from the tree, not from the text written about it.** This holds both ways:
79
+ the line about both libs' READMEs was struck out as done, yet the README kept the old importer
80
+ count; a task reported to the owner as not done turned out to be half closed and covered by hook
81
+ scenarios. A plan item and a task body describe the day they were written and have not changed
82
+ since.
83
+ - **A comment in a file is a statement like a line in a document.** The justification "lines run
84
+ the full panel width, otherwise the highlight breaks" was invented, lived three sessions and
85
+ each time read as a ground not to touch the layout.
86
+ - **Other projects are not mentioned anywhere** — neither the repository name, nor "ported
87
+ from", nor links to its files. What the code does here is described in this project's own
88
+ terms.
89
+ - **A pattern replacement is silent when the pattern is wrong.** A stream editor may lack
90
+ alternation in its pattern syntax: the expression matches nothing, the command exits zero and
91
+ edits no line. Nothing in the exit code tells this from an applied edit — only the file itself
92
+ shows it, usually later, by the headings of the assembled text. Text is edited with the edit
93
+ tool; and if a replacement is called anyway, the place it promised to change is reread right
94
+ after.
95
+ - **A number obtained from a command is not yet a measurement.** The requirement to recompute a
96
+ number by a command is met literally — there was a command — and nobody asks whether it
97
+ measured the number's subject. Output is false in different ways and silently: `grep -E` with
98
+ the word boundary `\b` on BSD ignores part of the pattern and does not say so ("278
99
+ occurrences" turned out to be 79, and twelve of those were about something else), a regex does
100
+ not see where a block ends and attributes the find to a neighbour, and memory returns a number
101
+ without remembering its origin — indistinguishable from a measurement. A number is written by
102
+ the command that measures its subject, in the same turn the text is written.
103
+ - **The word boundary is asked from the command that knows it.** `grep -w`, `rg` and `python3`
104
+ with `re` implement it, BSD `grep -E` does not; the check costs one command and is done before
105
+ the number goes into the text.
@@ -1,50 +1,53 @@
1
- # Поставка — холодная часть
1
+ # Delivery — cold part
2
2
 
3
- Ловушки: грабли, на которые уже наступали в дереве на Azure DevOps. Грузится не вместе с
4
- правилом, а по требованию — при обычном решении она не нужна.
3
+ Pitfalls: traps already stepped on in a tree on Azure DevOps. Loaded not with the rule but on
4
+ demand — an ordinary decision does not need it.
5
5
 
6
- Правило — `git-workflow`; статьи, которыми держится закон, стоят там.
6
+ The rule is `git-workflow`; the articles that hold the law stand there.
7
7
 
8
- ## Ловушки
8
+ ## Pitfalls
9
9
 
10
- - **Одна работа — одна задача, сколько бы файлов она ни задела.** Числа, за которым правка
11
- становится вторым рабочим элементом, здесь нет: делится то, что придётся откатывать порознь.
12
- Сплошная правка текстов дерева была заведена тремя задачами «по объёму» — пришлось стирать
13
- два рабочих элемента, закрывать два PR и переносить коммиты по одному с двумя конфликтами.
14
- Одна из трёх не дала коммита вовсе: правка тел уже заведённых задач веткой не бывает и задачей
15
- под ветку тоже.
16
- - **Рабочий элемент заводится командой, а не вызовами подряд.** Доска показывает элементы своей
17
- области и итерации, и заведённый мимо них в очереди работ не виден: со стороны это выглядит
18
- так же, как незаведённый. Команда заведения ставит все поля разом — род, состояние,
19
- исполнителя, область и итерацию, — и печатает готовую строку заведения ветки. Замеченный по
20
- ходу дефект проходит тот же путь.
21
- - **Ветка заводится вторым вызовом, а не тем же.** Гард главной ветки отклоняет составную
22
- «создать ветку и сразу коммитить» целиком: ветки в момент разбора ещё нет.
23
- - **Сторона конфликта бывает удалением, и «сохранить обе стороны» заводит второе объявление.**
24
- Главная ветка снимает объявление, потому что символ переехал, — в конфликте это выглядит как
25
- сторона, которая ничего не дописала. Разбирается чтением версии главной ветки целиком, а не по
26
- хунку, и сверяется проверкой повторов: обе копии сами по себе исправны, сборка и линт зелёные.
27
- - **Учётная запись для пуша и автор PR выбираются отдельно.** Если пушить пришлось из-под другой
28
- записи, на следующий вызов это не переносится: PR открывают токеном учётной записи машинной
29
- работы, и от того, чьей записью он открыт, зависит, кого можно назначить ревьювером. Однажды
30
- смена записи ради пуша утекла в публикацию — PR вышел от владельца.
31
- - **Невалидный файл конвейера виден прогоном нулевой длительности сразу после пуша.** Прогон
32
- заводится и кончается на разборе файла, не начав ни одного задания: в списке он стоит
33
- отказом, а внутри нет ни задания, ни лога — читается только длительность. Поэтому список
34
- прогонов ветки смотрится тем же движением, что и пуш: `az pipelines runs list` по своей
35
- ветке.
36
- - **`online` у агента на своей машине означает запущенный процесс, а не работающий конвейер.**
37
- Две стороны сходятся отдельно: требования заданий и возможности самого агента в его пуле.
38
- Пока пересечения нет, агент стоит `online` и не берёт ничего, а задания ждут размещённого
39
- пула — по состоянию это выглядит настроенным. Владельцу называют выполненное задание с его
40
- номером, а не строку состояния.
41
- - **Вход в реестр образов из агента, запущенного службой, отказывает молча.** Служба идёт без
42
- сеанса пользователя, а клиент реестра уходит в системный помощник хранения ключей и получает
43
- отказ во взаимодействии — задание падает до сборки. Свой каталог настроек с пустым помощником
44
- не спасает: клиент переписывает пустое значение обратно сам. Готовые команды — паттерн
45
- `git-workflow-docker`.
46
- - **Новое рабочее дерево получает только то, что лежит в индексе.** `git worktree add`
47
- разворачивает коммит, а настройки, ключи, локальные разрешения и зависимости в коммит не
48
- входят: свежее дерево выглядит готовым и упирается в нехватку не сразу, а на первом гарде,
49
- которому нужен ключ. Что именно переносится руками, названо списком в компаньоне правила, и
50
- список пополняется тем же движением, которым заводится новый файл вне индекса.
10
+ - **One piece of work — one task, however many files it touches.** There is no number past which
11
+ an edit becomes a second work item: what is split is what would have to be rolled back
12
+ separately. A blanket edit of the tree's texts was filed as three tasks "by volume" — two work
13
+ items had to be deleted, two PRs closed, and commits moved one by one with two conflicts. One
14
+ of the three yielded no commit at all: editing the bodies of already filed tasks is never a
15
+ branch, nor a task for a branch.
16
+ - **A work item is created by the command, not by calls in a row.** The board shows the items of
17
+ its own area and iteration, and one created past them is not visible in the work queue: from
18
+ outside it looks the same as one not created. The creation command sets all the fields at
19
+ once — type, state, assignee, area and iteration — and prints the ready-made branch creation
20
+ line. A defect noticed along the way goes the same route.
21
+ - **The branch is created by a second call, not the same one.** The main-branch guard rejects the
22
+ compound "create a branch and commit at once" whole: at the moment of parsing the branch does
23
+ not exist yet.
24
+ - **A side of a conflict can be a deletion, and "keep both sides" creates a second declaration.**
25
+ The main branch removes the declaration because the symbol moved — in the conflict this looks
26
+ like a side that added nothing. It is sorted out by reading the main branch's version whole,
27
+ not by hunk, and verified by the duplicates check: each copy alone is sound, build and lint
28
+ green.
29
+ - **The account for the push and the author of the PR are chosen separately.** If the push had to
30
+ go from another account, that does not carry over to the next call: the PR is opened with the
31
+ machine account's token, and which account opens it decides who can be assigned as reviewer.
32
+ Once a switch of account for the push leaked into publication — the PR came out from the
33
+ owner.
34
+ - **An invalid pipeline file shows as a zero-length run right after the push.** The run is created
35
+ and ends on parsing the file, without starting a single step: in the list it stands as a
36
+ failure, and inside it has neither a step nor output — only the duration is readable. So the
37
+ branch's run list is looked at with the same motion as the push: `az pipelines runs list` for
38
+ one's own branch.
39
+ - **`online` on a self-hosted agent means a running process, not a working pipeline.** Two sides
40
+ match separately: the demands of the pipeline steps and the capabilities of the agent itself in
41
+ its pool. Until they intersect, the agent stands `online` and takes nothing, while the steps
42
+ wait for a hosted pool — by its state this looks configured. The owner is told the executed
43
+ step with its number, not the state line.
44
+ - **Registry login from an agent started as a service fails silently.** The service runs without
45
+ a user session, and the registry client goes to the system keychain helper and gets an
46
+ interaction refusal — the step fails before the build. Its own settings directory with an empty
47
+ helper does not save it: the client writes the empty value back itself. Ready-made commands —
48
+ pattern `git-workflow-docker`.
49
+ - **A new working tree gets only what lies in the index.** `git worktree add` unpacks a commit,
50
+ and settings, keys, local permissions and dependencies are not part of a commit: the fresh tree
51
+ looks ready and hits the shortage not at once but on the first guard that needs a key. What
52
+ exactly is carried over by hand is named as a list in the rule's companion, and the list grows
53
+ with the same motion that creates a new file outside the index.