@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
@@ -1,239 +1,269 @@
1
- # Поставка — холодная часть
2
-
3
- Ловушки: грабли, на которые уже наступали в дереве на GitHub. Грузится не вместе с
4
- правилом, а по требованию — при обычном решении она не нужна.
5
-
6
- Правило — `git-workflow`; статьи, которыми держится закон, стоят там.
7
-
8
- ## Ловушки
9
-
10
- - **Непосчитанная сливаемость конфликтом не бывает.** Хостинг считает её заново после каждой
11
- правки главной ветки и до конца счёта отвечает неопределённостью. Прочитанная как конфликт,
12
- она отбивает работу на каждой свежей вершине — то есть ровно там, где отбивать нечего.
13
- Поэтому и гард, и сверка судят только прямое «конфликтует», а молчание опроса пропускают.
14
- - **Силовая отправка ветки, стоящей под другой в стопке, закрывает её заявку как слитую.**
15
- Хостинг считает заявку слитой, когда вершина её ветки достижима из базы; состояние лживое — в
16
- главной ветке правки нет, а задача остаётся открытой. Требование, из которого это следует, —
17
- статья правила о том, что нижняя ветка череды историю не переписывает.
18
- - **Ветка, догнанная в рабочем дереве и не отправленная, работой не считается.** Человек видит
19
- прежнее состояние и читает его как «не сделано ничего», а сделанное лежит там, где его не
20
- видит никто. Про неотправленный разрешённый конфликт статья правила это говорит, но догнанная
21
- ветка без единого спора под неё не подпадает вовсе.
22
- - **`UNKNOWN` в поле сливаемости означает «ещё не посчитано», а не «конфликтов нет».** Хостинг
23
- считает её после каждого чужого слияния, и заявка, прочитанная в эту секунду, выглядит
24
- здоровой.
25
- - **Одна работа — одна задача, сколько бы файлов она ни задела.** Числа, за которым правка
26
- становится второй задачей, здесь нет: делится то, что придётся откатывать порознь. Сплошная
27
- правка текстов дерева была заведена тремя задачами «по объёму» — пришлось стирать две,
28
- закрывать два PR и переносить коммиты по одному с двумя конфликтами. Одна из трёх не дала
29
- коммита вовсе: правка тел уже заведённых задач веткой не бывает и задачей под ветку тоже.
30
- - **Задача заводится командой, а не четырьмя вызовами подряд.** Борда к репозиторию не
31
- привязана, и задача попадает на неё только явным добавлением: две задачи так и простояли вне
32
- очереди работ, потому что шаг переписывали руками. Команда заведения делает все четыре — issue,
33
- номер в его заголовке, добавление на борду, начальную колонку, — и печатает готовую строку
34
- заведения ветки. Замеченный по ходу дефект проходит тот же путь.
35
- - **Ветка заводится вторым вызовом, а не тем же.** Гард главной ветки отклоняет составную
36
- «создать ветку и сразу коммитить» целиком: ветки в момент разбора ещё нет.
37
- - **Сторона конфликта бывает удалением, и «сохранить обе стороны» заводит второе объявление.**
38
- Главная ветка снимает объявление, потому что символ переехал, — в конфликте это выглядит как
39
- сторона, которая ничего не дописала. Разбирается чтением версии главной ветки целиком, а не по
40
- хунку, и сверяется проверкой повторов: обе копии сами по себе исправны, сборка и линт зелёные.
41
- - **Учётная запись для пуша и автор PR выбираются отдельно.** Если пушить пришлось из-под другой
42
- записи, на следующий вызов это не переносится: PR открывают токеном учётной записи машинной
43
- работы, и от того, чьей записью он открыт, зависит, кого можно назначить ревьювером. Однажды
44
- смена записи ради пуша утекла в публикацию — PR вышел от владельца. Разница между читающим и
45
- пишущим вызовом в самом тексте команды не видна: личность приходит окружением, поэтому у
46
- вызова на запись токен называется явно, а открытая заявка проверяется ответом хостинга о её
47
- авторе — напечатанная ссылка говорит, что заявка создана, и молчит о том, кем. Чинится это
48
- только переоткрытием: автора у заявки не сменить.
49
- - **Невалидный файл конвейера виден прогоном нулевой длительности сразу после пуша.** GitHub
50
- заводит такой прогон и на ветке, на которую ни один триггер не подписан: в списке он стоит
51
- отказом, а внутри у него нет ни задания, ни лога — читается только длительность. Поэтому
52
- список прогонов ветки смотрится тем же движением, что и пуш — `gh run list --branch <ветка>`.
53
- Один такой отказ простоял в списке до мержа, и на него никто не посмотрел: выкатка после
54
- мержа отказала ровно тем же.
55
- - **Прогон, не вставший на пуш, возвращается повтором события, а не разбором ветки.** Замером
56
- проверены обе законные дороги: и открытие PR, и пуш в уже открытый PR прогон заводят —
57
- текстовый коммит и учётная запись, которой пушат, тут ни при чём. Пропавшие события пришлись
58
- на час, когда хостинг отвечал `429` на загрузке действия и `503` на API, а списком прогонов
59
- «не завёлся» от «не создан» не отличить. Поэтому вершину без прогона называет сверка очереди
60
- работ, а событие возвращается новым коммитом либо перезакрытием PR.
61
- - **Красное на шаге подготовки задания — отказ хостинга, а не дефект ветки.** Раннер не смог
62
- скачать действие чекаута и получил `429 Too Many Requests`; до кода прогон при этом не дошёл
63
- вовсе. Лечится перезапуском прогона, и от красного по существу отличается тем, на каком шаге
64
- оно встало: три прогона одного дня упали именно так.
65
- - **Контекст `runner` в `env` задания отбивает весь файл конвейера.** Там доступны только
66
- `github`, `needs`, `strategy`, `matrix`, `vars`, `secrets` и `inputs`; `runner` появляется на
67
- уровне шага, где то же значение приходит переменной окружения. Такой файл не принимается
68
- вовсе: прогон кончается за ноль секунд, не начав ни одного задания. Разбор YAML этого не
69
- ловит — синтаксис верный, а доступность контекстов синтаксисом не является.
70
- - **`online` у раннера на своей машине означает запущенный процесс, а не работающий
71
- конвейер.** Две стороны сходятся отдельно: `runs-on` у заданий и метки самого раннера. Пока
72
- пересечения нет, раннер стоит `online` и не берёт ничего, а задания уходят в облако — по
73
- состоянию это выглядит настроенным. Владельцу называют выполненное задание с его номером, а
74
- не строку состояния.
75
- - **Раннер на своей машине делает прогон общим ресурсом, и стенд у прогонов один.** Порт,
76
- имя базы и каталог сборки зашиты в дереве одним значением на всех: два прогона разом
77
- поднимают два стенда на один порт, и второй падает целиком. Дороже всего не падение, а его
78
- вид — в отчёте оно выглядит десятком красных спек про экраны, то есть дефектом правки,
79
- которого нет; три прогона подряд так и упали на трёх ветках, не тронувших кода. Лечится с
80
- двух сторон сразу: конвейеру объявляется группа очереди на всё дерево, а имена стенда
81
- читаются из окружения с нынешними значениями в умолчании — иначе прогон и гейт пуша, зовущий
82
- ту же команду, столкнутся и при очереди. Одной очереди мало, одних имён — тоже: прогоны делят
83
- ещё диск, кэш сборщика и демон образов.
84
- - **Вход в реестр образов из раннера, запущенного службой, отказывает молча.** Служба идёт без
85
- сеанса пользователя, а клиент реестра уходит в системный помощник хранения ключей и получает
86
- отказ во взаимодействии — задание падает до сборки. Свой каталог настроек с пустым помощником
87
- не спасает: клиент переписывает пустое значение обратно сам. Готовые команды — паттерн
88
- `git-workflow-docker`.
89
- - **Новое рабочее дерево получает только то, что лежит в индексе.** `git worktree add`
90
- разворачивает коммит, а настройки, ключи, локальные разрешения и зависимости в коммит не
91
- входят: свежее дерево выглядит готовым и упирается в нехватку не сразу, а на первом гарде,
92
- которому нужен ключ. Что именно переносится руками, названо списком в компаньоне правила, и
93
- список пополняется тем же движением, которым заводится новый файл вне индекса.
94
- - **Вытесненный из очереди прогон и упавший в списке неразличимы.** Оба отвечают красным, и
95
- слово отмены у них одно. Ветка за вытесненным не проверялась ни строчкой: заданий у него
96
- ноль, потому что он не начинался. Перезапуск такого прогона отбивает гард, пока за тот же ход
97
- не читался журнал задания, — поэтому строка сверки называет чтение прогона первым.
98
- - **Одно и то же вливание главной ветки, сделанное третий раз за заход, останавливает работу.**
99
- Ветки, дописывающие строку в один и тот же список, роняют друг друга в конфликт при каждом
100
- слиянии, и вливание главной по кругу — это починка проявления. На третьем круге называется
101
- причина и спрашивается владелец, а не делается четвёртый круг.
102
- - **Пустой файл, отправленный телом заявки, стирает описание работы целиком.** Так уехала правка
103
- тела, собранная связкой: переход в каталог временных файлов увёл вызов из дерева, выгрузка
104
- тела отказала, а следующее звено отправило оставшийся пустым файл. Описание, собранное за три
105
- захода, стало пустой строкой; восстановлено историей правок хостинга — и то пока она есть.
106
- - **`gh project` с `--owner` отвечает `unknown owner type`.** Так бывает, когда владелец борды —
107
- не та учётная запись, под которой идёт вызов. Идентификатор берётся у самой борды, а не
108
- собирается из имени владельца.
109
-
110
- ## Что стояло в статьях
111
-
112
- Сюда уехали случаи, числа и отвергнутые лекарства, стоявшие прежде при статьях правила. Ни одно
113
- решение по правке на них не стоит: они нужны тому, кто разбирает промах или спорит с гардом.
114
-
115
- - **Отказ на слиянии остаётся вторым рубежом.** Человек вливает, как только видит зелёное, и до
116
- второго рубежа дело просто не доходит.
117
-
118
- - **Список, в котором всё серое, читается как «работа не сделана».** Черновик и недоделанное
119
- выглядят одинаково; находит такие заявки сверка — ночью, в чужой сессии, после закрытого
120
- разговора.
121
- - **Логин рядом со служебным числом не сверяет никто.** Промах в почте изнутри не виден вовсе:
122
- коммит выглядит своим, а подписан посторонним.
123
-
124
- - **Ключ задач, разошедшийся с формой ветки в профиле.** Они не отказывают, а перестают узнавать
125
- номер: проверка, искавшая работу без задачи, пропускает всё подряд.
126
- - **Сложение у указателя зовут не ради спора, а ради тишины.** Без объявления человека зовут при
127
- каждом слиянии — по строке, которая нужна целиком с обеих сторон.
128
-
129
- - **Гейт — обещание, что пуш не приедет красным.** Набор без сборки и снимков обещает то, чего не
130
- проверяет.
131
- - **Борда показывает, что сделано и что осталось.** Заявка отвечает на другой вопрос и
132
- связывается с карточкой сама — отдельной карточки ей не нужно.
133
-
134
- - **Сливаемость выводили из локального вливания.** Между ним и взглядом владельца главная уходит
135
- вперёд, и «у меня слилось» о кнопке не говорит ничего. Дерево, чей помощник очереди о поле
136
- `mergeable` не говорит вовсе, работает как прежде: поля нет — требования нет.
137
- - **Личность вызова, открывающего заявку.** Дерево, не назвавшее машинной записи, требования
138
- подстановки токена не получает: сверять ответ хостинга не с чем.
139
-
140
- - **Ветки, заведённые от главной подряд, роняют друг друга.** Замер по ста шести накопленным
141
- веткам одного основания: вливание одной делает расходящимися до двадцати трёх, в среднем семь с
142
- половиной; не расходятся ни с кем двенадцать. Считался он `git merge-tree` в памяти — рабочего
143
- дерева замер не трогает и веток не двигает.
1
+ # Delivery — cold part
2
+
3
+ Pitfalls: traps already stepped on in a tree on GitHub. Loaded not with the rule but on demand —
4
+ an ordinary decision does not need it.
5
+
6
+ The rule is `git-workflow`; the articles that hold the law stand there.
7
+
8
+ ## Pitfalls
9
+
10
+ - **Uncomputed mergeability is never a conflict.** The hosting recomputes it after every edit of
11
+ the main branch and answers with uncertainty until the count is done. Read as a conflict, it
12
+ refuses work on every fresh tip — that is, exactly where there is nothing to refuse. So both the
13
+ guard and the audit judge only an explicit "conflicting" and let a silent poll through.
14
+ - **A force push of a branch that stands under another in a stack closes its PR as merged.** The
15
+ hosting counts a PR merged once the tip of its branch is reachable from the base; the state
16
+ lies — the main branch has no such edit, and the task stays open. The requirement this follows
17
+ from is the rule's article that the lower branch of a chain does not rewrite history.
18
+ - **A branch caught up in the working tree and not pushed does not count as work.** A person sees
19
+ the previous state and reads it as "nothing done", while what was done lies where nobody sees
20
+ it. The rule's article says this about an unpushed resolved conflict, but a caught-up branch
21
+ without a single dispute does not fall under it at all.
22
+ - **`UNKNOWN` in the mergeability field means "not computed yet", not "no conflicts".** The
23
+ hosting recomputes it after every merge by someone else, and a PR read in that second looks
24
+ healthy.
25
+ - **One piece of work — one task, however many files it touches.** There is no number past which
26
+ an edit becomes a second task: what is split is what would have to be rolled back separately.
27
+ A blanket edit of the tree's texts was filed as three tasks "by volume" — two had to be
28
+ deleted, two PRs closed, and commits moved one by one with two conflicts. One of the three
29
+ yielded no commit at all: editing the bodies of already filed tasks is never a branch, nor a
30
+ task for a branch.
31
+ - **A task is created by the command, not by four calls in a row.** The board is not bound to the
32
+ repository, and a task lands on it only by explicit addition: two tasks stood outside the work
33
+ queue exactly because the step was retyped by hand. The creation command does all four — the
34
+ issue on the hosting, the number in its title, the addition to the board, the starting column —
35
+ and prints the ready-made branch creation line. A defect noticed along the way goes the same
36
+ route.
37
+ - **The branch is created by a second call, not the same one.** The main-branch guard rejects the
38
+ compound "create a branch and commit at once" whole: at the moment of parsing the branch does
39
+ not exist yet.
40
+ - **A side of a conflict can be a deletion, and "keep both sides" creates a second declaration.**
41
+ The main branch removes the declaration because the symbol moved — in the conflict this looks
42
+ like a side that added nothing. It is sorted out by reading the main branch's version whole,
43
+ not by hunk, and verified by the duplicates check: each copy alone is sound, build and lint
44
+ green.
45
+ - **The account for the push and the author of the PR are chosen separately.** If the push had to
46
+ go from another account, that does not carry over to the next call: the PR is opened with the
47
+ machine account's token, and which account opens it decides who can be assigned as reviewer.
48
+ Once a switch of account for the push leaked into publication — the PR came out from the
49
+ owner. The difference between a reading and a writing call is invisible in the command text
50
+ itself: identity arrives from the environment. So a writing call names the token explicitly,
51
+ and the opened PR is checked by the hosting's answer about its author — the printed link says
52
+ the PR was created and is silent about by whom. This is fixed only by reopening: a PR's author
53
+ cannot be changed.
54
+ - **An invalid pipeline file shows as a zero-length run right after the push.** GitHub creates
55
+ such a run even on a branch no trigger is subscribed to: in the list it stands as a failure,
56
+ and inside it has neither a step nor output — only the duration is readable. So the branch's
57
+ run list is looked at with the same motion as the push — `gh run list --branch <branch>`. One
58
+ such failure stood in the list until the merge and nobody looked at it: the rollout after the
59
+ merge failed with exactly the same thing.
60
+ - **A run that did not start on a push is brought back by repeating the event, not by
61
+ investigating the branch.** Measurement checked both lawful roads: opening a PR and pushing
62
+ into an already open PR both start a run — a text-only commit and the account that pushes have
63
+ nothing to do with it. The lost events fell on the hour when the hosting answered `429` on
64
+ downloading an action and `503` on the API, and the run list cannot tell "did not start" from
65
+ "was not created". So a tip without a run is named by the work queue audit, and the event is
66
+ brought back by a new commit or by closing and reopening the PR.
67
+ - **Red on the setup step is a hosting failure, not a branch defect.** The runner could not
68
+ download the checkout action and got `429 Too Many Requests`; the run never reached the code at
69
+ all. It is cured by restarting the run, and it differs from a substantive red by the step it
70
+ stopped on: three runs in one day failed exactly this way.
71
+ - **The `runner` context in a pipeline step's `env` refuses the whole pipeline file.** Only
72
+ `github`, `needs`, `strategy`, `matrix`, `vars`, `secrets` and `inputs` are available there;
73
+ `runner` appears at the level of a single command inside the step, where the same value arrives
74
+ as an environment variable. Such a file is not accepted at all: the run ends in zero seconds
75
+ without starting a single step. YAML parsing does not catch this — the syntax is valid, and
76
+ context availability is not syntax.
77
+ - **`online` on a self-hosted runner means a running process, not a working pipeline.** Two sides
78
+ match separately: `runs-on` of the pipeline steps and the labels of the runner itself. Until
79
+ they intersect, the runner stands `online` and takes nothing, while the steps go to the cloud —
80
+ by its state this looks configured. The owner is told the executed step with its number, not
81
+ the state line.
82
+ - **A self-hosted runner makes the run a shared resource, and the runs have one stand.** The port,
83
+ the database name and the build directory are hard-wired in the tree as one value for all: two
84
+ runs at once raise two stands on one port, and the second falls over whole. The costliest part
85
+ is not the fall but its look — in the summary it appears as a dozen red screen tests, that is,
86
+ as a defect of the edit that does not exist; three runs in a row fell this way on three
87
+ branches that touched no code. It is cured from both sides at once: the pipeline declares a
88
+ queue group for the whole tree, and the stand names are read from the environment with today's
89
+ values as the default — otherwise the run and the push gate, which calls the same command,
90
+ collide even with the queue. One queue is not enough, names alone are not either: runs also
91
+ share the disk, the builder cache and the image daemon.
92
+ - **Registry login from a runner started as a service fails silently.** The service runs without
93
+ a user session, and the registry client goes to the system keychain helper and gets an
94
+ interaction refusal — the step fails before the build. Its own settings directory with an empty
95
+ helper does not save it: the client writes the empty value back itself. Ready-made commands —
96
+ pattern `git-workflow-docker`.
97
+ - **A new working tree gets only what lies in the index.** `git worktree add` unpacks a commit,
98
+ and settings, keys, local permissions and dependencies are not part of a commit: the fresh tree
99
+ looks ready and hits the shortage not at once but on the first guard that needs a key. What
100
+ exactly is carried over by hand is named as a list in the rule's companion, and the list grows
101
+ with the same motion that creates a new file outside the index.
102
+ - **A run pushed out of the queue and a failed one are indistinguishable in the list.** Both
103
+ answer red, and the word for cancellation is the same for both. The branch behind the pushed-out
104
+ one was not checked by a single line: it has zero steps because it never started. Restarting
105
+ such a run is refused by the guard until the step's output has been read in the same turn —
106
+ which is why the audit line names reading the run first.
107
+ - **The same merge of the main branch done a third time in one session stops the work.**
108
+ Branches that append a line to the same list drop each other into a conflict at every merge,
109
+ and merging main round after round is a fix of the symptom. On the third round the cause is
110
+ named and the owner is asked, instead of a fourth round.
111
+ - **An empty file sent as the PR body wipes the description of the work whole.** That is how an
112
+ edit of the body assembled by a chain went: a change into the temporary files directory took
113
+ the call out of the tree, the body download failed, and the next link sent the file left empty.
114
+ A description assembled over three sessions became an empty line; it was restored from the
115
+ hosting's edit history — and only while that exists.
116
+ - **`gh project` with `--owner` answers `unknown owner type`.** That happens when the owner of the
117
+ board is not the account the call runs under. The identifier is taken from the board itself,
118
+ not assembled from the owner's name.
119
+ - **"The account is active anyway, nothing to substitute" is an argument turned against an
120
+ article already read.** The machine account's token was placed into the hosting client by a
121
+ login call, and the client itself announced the switch of the active account; from inside the
122
+ tree everything matched — calls answered, PRs opened from the right account. From that minute a
123
+ neighbouring session in another tree went to the hosting from an account with rights to one
124
+ repository: the delivery guard read its task as nonexistent and did not let it create a branch.
125
+ The owner noticed, from the neighbour's complaint, several turns later. The client's active
126
+ account stays with the owner; it is asked by the client's state output, not from memory.
127
+
128
+ ## What stood in the articles
129
+
130
+ Here moved the cases, numbers and rejected remedies that used to stand next to the rule's
131
+ articles. No edit decision rests on them: they are for whoever investigates a miss or argues with
132
+ a guard.
133
+
134
+ - **A refusal at the merge remains the second line.** A person merges as soon as they see green,
135
+ and the second line is simply never reached.
136
+
137
+ - **A list where everything is grey reads as "work not done".** A draft and unfinished work look
138
+ the same; such PRs are found by the audit — at night, in someone else's session, after the
139
+ conversation is closed.
140
+ - **Nobody checks the login next to the service number.** A miss in the email is invisible from
141
+ inside: the commit looks one's own and is signed by a stranger.
142
+
143
+ - **A task key that diverged from the branch form in the profile.** They do not refuse; they stop
144
+ recognising the number: the check that looked for work without a task lets everything through.
145
+ - **The union merge on the index file is declared not for the dispute but for silence.** Without
146
+ the declaration a person is called at every merge — over a line that is needed whole from both
147
+ sides.
148
+
149
+ - **The gate is a promise that the push will not arrive red.** A set without the build and the
150
+ snapshots promises what it does not check.
151
+ - **The board shows what is done and what remains.** A PR answers a different question and links
152
+ itself to the card — it needs no separate card.
153
+
154
+ - **Mergeability used to be inferred from a local merge.** Between it and the owner's look main
155
+ moves ahead, and "it merged for me" says nothing about the button. A tree whose queue helper
156
+ says nothing about the `mergeable` field works as before: no field — no requirement.
157
+ - **The identity of the call that opens the PR.** A tree that named no machine account gets no
158
+ token substitution requirement: there is nothing to check the hosting's answer against.
159
+
160
+ - **Branches created from main one after another drop each other.** A measurement over one
161
+ hundred and six accumulated branches of one base: merging one makes up to twenty-three diverge,
162
+ seven and a half on average; twelve diverge with nobody. It was counted with `git merge-tree` in
163
+ memory — the measurement touches no working tree and moves no branch.
144
164
 
145
165
  ```bash
146
- # проба слияния без единой правки в дереве: коммит-слияние заводится в объектной базе
147
- tree="$(git merge-tree --write-tree origin/main <ветка> | head -1)"
148
- probe="$(git commit-tree "$tree" -p origin/main -p <ветка> -m проба)"
149
- git merge-tree --write-tree "$probe" <другая ветка> >/dev/null; echo $? # 1 — разойдутся
166
+ # a merge probe without a single edit in the tree: the merge commit is created in the object database
167
+ tree="$(git merge-tree --write-tree origin/main <branch> | head -1)"
168
+ probe="$(git commit-tree "$tree" -p origin/main -p <branch> -m probe)"
169
+ git merge-tree --write-tree "$probe" <other branch> >/dev/null; echo $? # 1 — they will diverge
150
170
  ```
151
171
 
152
- Дерево аргументом сюда не годится: истории у него нет, общее основание не считается, и любая
153
- проба отвечает «сойдётся».
154
-
155
- - **Расходится не правка, а строка, куда дописали обе стороны.** В том же замере исходник
156
- ресурса сливался чисто, а его разложенная копия расходилась первой строкой — той, где стоит
157
- контрольная сумма ресурса. Две работы правили разные разделы разных файлов, и всё равно
158
- требовали разбора. Отсюда и правило ветвиться чередой: снимать пришлось бы не расхождение, а
159
- сам способ хранить копию рядом с исходником.
160
-
161
- - **Сборка входит в набор гейта.** Четыре мержа подряд уехали в главную ветку, ломая выкатку:
162
- ошибка типов в непокрытом коде пережила линт и юниты и всплыла на сборке образа.
163
- - **Набор, переписанный строками, выглядит полным.** В одном дереве шесть проверок лежали рядом
164
- с гоняемыми и не гонялись ни гейтом, ни конвейером: восемь строк из четырнадцати читались как
165
- весь набор, и разница была видна только сличением с умолчанием пакета.
166
- - **Набор гейта не бывает уже набора конвейера.** Дважды подряд правка, прошедшая гейт целиком,
167
- была отбита конвейером — и оба раза зелёный гейт был прочитан как «локально всё зелено». Отсюда
168
- и требование отбивать пуш на шаге без строки в наборе, а не печатать предупреждение рядом.
169
- - **Черновик не снимается с ветки, которая не сливается.** За один заход так было снято три
170
- черновика подряд, и все три заявки владелец увидел конфликтующими. Статья про сливаемость
171
- стояла в правиле и до того — промах повторился в тот же день, поэтому требование держится
172
- гардом, а не памятью.
173
- - **Сложение сторон у общего указателя.** До объявления одна и та же строка разрешалась шесть раз
174
- в шести ветках за один заход. Обещать по объявлению «конфликтов больше не будет» нельзя: не
175
- будет ручной работы, а вливать главную в открытые ветки после каждого слияния придётся
176
- по-прежнему.
177
- - **Заведённое видно только заводящему.** Шестнадцать задач так были заведены дважды, а заявка
178
- названа владельцу номером, которого для него не существовало: ограниченная запись видела своё,
179
- а хостинг отвечал остальным «не найдено».
180
- - **Обойдённый отказ унёс признак ограничения.** Предел запросов у ограниченной записи стоял на
181
- нуле — не исчерпан, а не положен вовсе. Отказ обошли вызовом другого рода, обход сработал, и
182
- расхождение всплыло через двадцать минут и четыре следа, которые пришлось переписывать.
183
- - **Личность вызова, открывающего заявку.** Прежде обе стороны — подстановка токена и ответ
184
- хостинга об авторе — держались статьёй и разбором происшествия, и промах повторился на третий
185
- день.
186
- - **Незаданный ключ задач.** Собранный из пустого значения заголовок `[-317]` не совпадает ни с
187
- чем, и сверка помечает неправильно названной каждую задачу: настоящее расхождение тонет среди
188
- этих строк.
189
- - **Ветка, не тронувшая ни строки показа, прогоняет снимки витрин** с того момента, как вливание
190
- главной принесло чужую правку оформления. Это и есть тот случай, ради которого набор проверок
191
- пересматривается после вливания.
192
- - **Возврат PR в черновик — `gh pr ready --undo` — требования разбора не получает:** он делает то
193
- же, чего гард и добивается.
194
- - **Свои черновики судятся все разом.** Уход в соседнюю ветку выключал гард целиком: за один
195
- заход так разошлись с главной четыре заявки подряд, и заметил это владелец, а не проверка.
196
- Разбор — запись «2026-08-25-run-left-unwatched» в приёме.
197
- - **Подпись машинной записи на каждом коммите вклада.** Пять коммитов одной стопки уехали
198
- подписанными владельцем, который правки не делал: гард судит только коммит, назвавшийся
199
- машинной записью, и ищет расхождение в числе служебного адреса.
200
- - **Состояние заявки перечитывается у хостинга.** Клиент отвечает от той записи, чей токен ему
201
- дали, а запрос разбора на автора хостинг принимает молча и не создаёт.
202
- - **Ревьюверы спрашиваются вызовом REST.** Под токеном машинной записи выборка клиента падает
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
- до неё называется от корня, и звать её оттуда.
172
+ A tree as the argument is no good here: it has no history, no common base is counted, and
173
+ every probe answers "will merge".
174
+
175
+ - **What diverges is not the edit but the line both sides appended to.** In the same measurement
176
+ the resource's source merged cleanly while its laid-out copy diverged on the first line — the
177
+ one holding the resource's checksum. Two pieces of work edited different sections of different
178
+ files and still demanded resolution. Hence the rule to branch in a chain: what would have to be
179
+ removed is not the divergence but the very way of keeping a copy next to the source.
180
+
181
+ - **The build is part of the gate set.** Four merges in a row went into the main branch breaking
182
+ the rollout: a type error in uncovered code survived lint and unit tests and surfaced on the
183
+ image build.
184
+ - **A set rewritten as lines looks complete.** In one tree six checks lay next to the ones being
185
+ run and were run by neither the gate nor the pipeline: eight lines out of fourteen read as the
186
+ whole set, and the difference showed only by comparison with the package default.
187
+ - **The gate set is never narrower than the pipeline set.** Twice in a row an edit that passed the
188
+ gate whole was refused by the pipeline — and both times a green gate was read as "everything is
189
+ green locally". Hence the requirement to refuse the push on a step missing from the set, rather
190
+ than print a warning next to it.
191
+ - **Draft is not lifted from a branch that does not merge.** In one session three drafts were
192
+ lifted in a row, and the owner saw all three PRs conflicting. The mergeability article stood in
193
+ the rule before that — the miss repeated the same day, so the requirement is held by a guard,
194
+ not by memory.
195
+ - **Union of the sides on the shared index file.** Before the declaration the same line was
196
+ resolved six times in six branches in one session. One cannot promise "no more conflicts" by
197
+ the declaration: there will be no manual work, but merging main into open branches after every
198
+ merge will still be needed.
199
+ - **What was created is visible only to its creator.** Sixteen tasks were created twice this way,
200
+ and a PR was named to the owner by a number that did not exist for him: the restricted account
201
+ saw its own, and the hosting answered "not found" to everyone else.
202
+ - **A bypassed refusal carried away the sign of the restriction.** The request limit of the
203
+ restricted account stood at zero — not exhausted, simply not granted at all. The refusal was
204
+ bypassed by a call of another kind, the bypass worked, and the discrepancy surfaced twenty
205
+ minutes and four traces later, which had to be rewritten.
206
+ - **The identity of the call that opens the PR.** Before, both sides — the token substitution and
207
+ the hosting's answer about the author — were held by an article and an incident analysis, and
208
+ the miss repeated on the third day.
209
+ - **An unset task key.** A title `[-317]` assembled from an empty value matches nothing, and the
210
+ audit marks every task as misnamed: the real discrepancy drowns among these lines.
211
+ - **A branch that touched no line of the display runs the showcase snapshots** from the moment a
212
+ merge of main brought in someone else's styling edit. That is exactly the case for which the
213
+ check set is revised after a merge.
214
+ - **Returning a PR to draft — `gh pr ready --undo` — gets no review requirement:** it does what
215
+ the guard is after.
216
+ - **One's own drafts are judged all at once.** Leaving for a neighbouring branch switched the
217
+ guard off entirely: in one session four PRs in a row diverged from main this way, and the owner
218
+ noticed, not a check. The analysis is the record "2026-08-25-run-left-unwatched" in the intake.
219
+ - **The machine account's signature on every commit of the contribution.** Five commits of one
220
+ stack went signed by the owner, who made no edit: the guard judges only a commit that called
221
+ itself the machine account and looks for a mismatch in the number of the service address.
222
+ - **The PR state is reread from the hosting.** The client answers from the account whose token it
223
+ was given, and a review request to the author the hosting accepts silently and does not create.
224
+ - **Reviewers are asked through a REST call.** Under the machine account's token the client's
225
+ query fails whole, without the token it passes green — there is no way to tell "matched" from
226
+ "there was nothing to ask with".
227
+
228
+ - **The completeness of the gate set is judged by the names of the pipeline steps.** A check that
229
+ is not in the pipeline either is not there too: a set rewritten as lines instead of calling the
230
+ package default loses exactly the checks the package will add in its next edition. One's own
231
+ line instead of the default is lawful where it covers the same thing more strictly or calls the
232
+ named script.
233
+ - **A draft whose branch carries the task folder means work in progress, not abandoned work.**
234
+ Both signs are needed together: a green run on the tip without the folder taken apart says the
235
+ work is not handed over yet. A tree that named no machine account does not get this audit at
236
+ all.
237
+ - **The mergeability mark is not cleared even by a declared union of both sides.** The hosting
238
+ counts the union as its own device and reads no merge settings: until the branch has absorbed
239
+ main and that has reached the hosting, the PR stands conflicting with the divergence resolved
240
+ locally.
241
+ - **The layout audit is not in the pipeline, so neither is the step it would close.** An edit past
242
+ the source breaks nothing on the day it is made.
243
+ - **The working tree is not emptied for a tool run.** The question "was this debt there before my
244
+ edits or from them" is settled by a second copy of the tree, not by stashing the work: what is
245
+ stashed is seen by neither status nor audit, and a command that ran between the stash and the
246
+ pop writes to the same files — and the pop comes up as a conflict. Eight uncommitted files went
247
+ into the stash this way with a live ban on that command: the ban was read at the start of the
248
+ session, and the command was typed forty turns later.
249
+ - **The output of a command that needs the repository is collected in the repository directory.**
250
+ Redirection creates the file before the command manages to fail: the hosting client called from
251
+ the temporary files directory falls with a line saying this is not a repository, and by that
252
+ minute the empty file is already written. Travelling further — into the PR body, into the plan,
253
+ into the rule — it wipes what was written, and that is recovered only from the edit history on
254
+ the hosting's side. So the output file is placed in the tree, and what was written is checked
255
+ before it is sent anywhere.
256
+
257
+ - **A pipeline queue declared for the whole tree cancels the waiting run with someone else's
258
+ push.** A concurrency group that cancels the run in progress saves the machine exactly until the
259
+ first neighbour: their push cancels another branch's run, and that branch is left with a tip
260
+ without a single run — the PR then looks unchecked, and nobody is there to rerun it. So the
261
+ group is declared per branch, and stays shared only for the steps that need the stand: those
262
+ really cannot be run two at a time on one machine.
263
+
264
+ - **The tree's commands are called from its root, not from the package directory.** In a
265
+ subdirectory with its own manifest the launcher takes that one, not the root one, and answers
266
+ "no such command" — even though the tree has it and it is written correctly. This reads as a
267
+ broken command and is cured by the directory: the path to it is named from the root, and it is
268
+ called from there.
239
269