@rt-tools/agent-kit 0.24.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/assets/agents/business-analyst.md +51 -50
  2. package/assets/agents/cargo-writer.md +54 -0
  3. package/assets/agents/conscience.md +37 -35
  4. package/assets/agents/project-manager.md +49 -48
  5. package/assets/agents/prose-editor.md +31 -29
  6. package/assets/agents/qa-engineer.md +50 -48
  7. package/assets/agents/rules-reviewer.md +63 -58
  8. package/assets/agents/skill-curator.md +83 -78
  9. package/assets/agents/spec-critic.md +34 -29
  10. package/assets/agents/spec-writer.md +35 -32
  11. package/assets/agents/strict-teacher.md +39 -37
  12. package/assets/checks/archive-age.mjs +48 -28
  13. package/assets/checks/archive-prune.mjs +16 -14
  14. package/assets/checks/board-epic-link.github.mjs +29 -0
  15. package/assets/checks/board-epics.github.mjs +286 -49
  16. package/assets/checks/board-folders.mjs +61 -0
  17. package/assets/checks/board-gh.github.mjs +35 -26
  18. package/assets/checks/board-long-work.github.mjs +29 -25
  19. package/assets/checks/board-paths.github.mjs +21 -16
  20. package/assets/checks/board-pull-state.github.mjs +168 -0
  21. package/assets/checks/board-runs.github.mjs +45 -43
  22. package/assets/checks/board-task-dirs.github.mjs +98 -0
  23. package/assets/checks/board-titles.github.mjs +19 -17
  24. package/assets/checks/board.github.mjs +133 -194
  25. package/assets/checks/check-archive-age.mjs +23 -19
  26. package/assets/checks/check-board.github.mjs +131 -263
  27. package/assets/checks/check-descriptions.mjs +30 -29
  28. package/assets/checks/check-doc-paths.mjs +91 -88
  29. package/assets/checks/check-dupes.mjs +84 -80
  30. package/assets/checks/check-file-size.mjs +74 -71
  31. package/assets/checks/check-glossary.mjs +47 -37
  32. package/assets/checks/check-hook-scope.mjs +30 -27
  33. package/assets/checks/check-lib-layers.mjs +22 -21
  34. package/assets/checks/check-profile-drift.mjs +48 -43
  35. package/assets/checks/check-prose-style.mjs +138 -39
  36. package/assets/checks/check-push-gate.mjs +53 -50
  37. package/assets/checks/check-reuse.mjs +50 -40
  38. package/assets/checks/check-schema-drift.mjs +104 -84
  39. package/assets/checks/check-specs.mjs +155 -134
  40. package/assets/checks/check-state-next.mjs +66 -52
  41. package/assets/checks/check-states.mjs +32 -30
  42. package/assets/checks/check-styles.mjs +52 -51
  43. package/assets/checks/check-turn-map.mjs +54 -46
  44. package/assets/checks/epic-table.github.mjs +268 -0
  45. package/assets/checks/lib-boundaries.mjs +32 -30
  46. package/assets/checks/lib-common.mjs +30 -29
  47. package/assets/checks/lib-domains.mjs +34 -34
  48. package/assets/checks/lib-manifests.mjs +17 -15
  49. package/assets/checks/lib-reexports.mjs +18 -18
  50. package/assets/checks/rt-kit-checks.config.mjs +187 -142
  51. package/assets/checks/signals.mjs +43 -39
  52. package/assets/checks/spec-anchors.mjs +114 -87
  53. package/assets/checks/spec-common.mjs +128 -84
  54. package/assets/checks/spec-contract.mjs +30 -30
  55. package/assets/checks/spec-proposed.mjs +27 -24
  56. package/assets/checks/spec-scenarios.mjs +51 -28
  57. package/assets/checks/specs-for.mjs +214 -0
  58. package/assets/checks/task-new.github.mjs +315 -61
  59. package/assets/commands/feedback.md +65 -59
  60. package/assets/commands/next-session.md +64 -57
  61. package/assets/commands/night.md +115 -0
  62. package/assets/commands/skill-curator.md +83 -79
  63. package/assets/defaults/gate-map.sh +108 -97
  64. package/assets/defaults/project.sh +232 -185
  65. package/assets/defaults/shell.sh +73 -68
  66. package/assets/defaults/turn-map.md +47 -44
  67. package/assets/docs/GLOSSARY.md +142 -65
  68. package/assets/hooks/browser-device-id.sh +16 -12
  69. package/assets/hooks/browser-guard-device-id.sh +34 -28
  70. package/assets/hooks/browser-guard-no-asking.sh +5 -4
  71. package/assets/hooks/browser-guard-no-listing.sh +12 -11
  72. package/assets/hooks/browser-guard-no-other-drivers.sh +48 -42
  73. package/assets/hooks/browser-guard-require-select.sh +34 -23
  74. package/assets/hooks/claim-guard.sh +62 -56
  75. package/assets/hooks/commit-msg.sh +14 -10
  76. package/assets/hooks/conscience-guard.sh +91 -45
  77. package/assets/hooks/constitution-index.sh +16 -16
  78. package/assets/hooks/deny-tail.sh +28 -26
  79. package/assets/hooks/dev-server-guard.sh +50 -43
  80. package/assets/hooks/dispatch.sh +60 -46
  81. package/assets/hooks/docs-guard.sh +100 -91
  82. package/assets/hooks/epic-over.sh +49 -0
  83. package/assets/hooks/epic-stop-guard.sh +108 -0
  84. package/assets/hooks/exam-guard.sh +105 -93
  85. package/assets/hooks/git-guard-delivery-conflict.sh +41 -36
  86. package/assets/hooks/git-guard-delivery-draft.sh +48 -38
  87. package/assets/hooks/git-guard-delivery-epic.sh +167 -0
  88. package/assets/hooks/git-guard-delivery-folder.sh +50 -43
  89. package/assets/hooks/git-guard-delivery-signature.sh +119 -53
  90. package/assets/hooks/git-guard-delivery.sh +223 -183
  91. package/assets/hooks/git-guard-main.sh +38 -34
  92. package/assets/hooks/git-guard-push-tests.sh +99 -87
  93. package/assets/hooks/glossary-load.sh +23 -22
  94. package/assets/hooks/grill-gate-ask.sh +12 -11
  95. package/assets/hooks/grill-gate.sh +94 -87
  96. package/assets/hooks/guard-note.sh +20 -19
  97. package/assets/hooks/handoff-entry-guard.sh +45 -25
  98. package/assets/hooks/handoff-write.sh +74 -67
  99. package/assets/hooks/hook-input.sh +67 -58
  100. package/assets/hooks/lint-after-edit.sh +95 -61
  101. package/assets/hooks/observe.sh +28 -26
  102. package/assets/hooks/override-write-guard.sh +23 -21
  103. package/assets/hooks/postmortem-guard.sh +42 -39
  104. package/assets/hooks/profile-check.sh +22 -20
  105. package/assets/hooks/proposal-guard.sh +57 -49
  106. package/assets/hooks/prose-style-guard.sh +49 -24
  107. package/assets/hooks/qa-dataid-guard.sh +83 -58
  108. package/assets/hooks/rerun-guard.sh +31 -30
  109. package/assets/hooks/reuse-first-guard.sh +108 -87
  110. package/assets/hooks/roles.sh +14 -14
  111. package/assets/hooks/rule-article.sh +39 -34
  112. package/assets/hooks/rule-source-guard.sh +47 -42
  113. package/assets/hooks/skill-gate-layers.sh +63 -57
  114. package/assets/hooks/skill-gate-rearm.sh +15 -8
  115. package/assets/hooks/skill-gate.sh +89 -81
  116. package/assets/hooks/skill-loaded.sh +10 -6
  117. package/assets/hooks/sql-guard-parse.sh +71 -66
  118. package/assets/hooks/sql-guard-request.sh +51 -46
  119. package/assets/hooks/sql-guard-target.sh +60 -51
  120. package/assets/hooks/sql-guard-write.sh +87 -79
  121. package/assets/hooks/sql-guard.sh +52 -47
  122. package/assets/hooks/stand-login-guard.sh +43 -37
  123. package/assets/hooks/task-context-load.sh +60 -55
  124. package/assets/hooks/task-flow-context.sh +87 -69
  125. package/assets/hooks/task-flow-draft-guard.sh +55 -48
  126. package/assets/hooks/task-flow-guard.sh +67 -64
  127. package/assets/hooks/turn-entry-load.sh +39 -32
  128. package/assets/hooks/turn-exit-guard.sh +260 -204
  129. package/assets/hooks/turn-exit-patterns.sh +63 -0
  130. package/assets/hooks/utf8.sh +14 -11
  131. package/assets/hooks/waiting-turn-guard.sh +104 -94
  132. package/assets/hooks/window-fill-guard.sh +70 -62
  133. package/assets/hooks/work-start-guard.sh +52 -49
  134. package/assets/hooks/write-targets.sh +99 -44
  135. package/assets/laws/autonomous-work.md +29 -27
  136. package/assets/laws/code-structure.md +31 -30
  137. package/assets/laws/delivery.md +170 -137
  138. package/assets/laws/entity-editing.md +52 -50
  139. package/assets/laws/entity-models.md +14 -13
  140. package/assets/laws/frontend-application.md +39 -38
  141. package/assets/laws/lib-imports.md +27 -27
  142. package/assets/laws/lists.md +31 -29
  143. package/assets/laws/navigation.md +37 -37
  144. package/assets/laws/observability.md +41 -40
  145. package/assets/laws/project-documentation.md +106 -99
  146. package/assets/laws/reuse-first.md +31 -29
  147. package/assets/laws/shared-code.md +27 -27
  148. package/assets/laws/verifiability.md +131 -124
  149. package/assets/laws/work-conduct.md +250 -244
  150. package/assets/patterns/admin-lists-screen.md +72 -69
  151. package/assets/patterns/admin-nav-item.md +51 -46
  152. package/assets/patterns/angular-patterns-state.md +32 -31
  153. package/assets/patterns/api-layer-pair.md +33 -31
  154. package/assets/patterns/autonomous-work-run.md +50 -49
  155. package/assets/patterns/browser-verification-measure.md +124 -88
  156. package/assets/patterns/browser-verification-stand.md +169 -157
  157. package/assets/patterns/component-structure-new.md +51 -42
  158. package/assets/patterns/dependencies-upgrade.md +55 -39
  159. package/assets/patterns/doc-style-human.md +55 -37
  160. package/assets/patterns/doc-style-sweep.md +82 -79
  161. package/assets/patterns/doc-style-trace.md +87 -81
  162. package/assets/patterns/doc-style-write.md +130 -122
  163. package/assets/patterns/entity-aside.md +77 -63
  164. package/assets/patterns/entity-models-new.md +37 -37
  165. package/assets/patterns/entity-store.md +33 -33
  166. package/assets/patterns/git-workflow-commit.azure.md +94 -87
  167. package/assets/patterns/git-workflow-commit.github.md +160 -142
  168. package/assets/patterns/git-workflow-commit.gitlab.md +96 -90
  169. package/assets/patterns/git-workflow-docker.md +165 -147
  170. package/assets/patterns/git-workflow-freshness.md +45 -45
  171. package/assets/patterns/git-workflow-merge.md +102 -94
  172. package/assets/patterns/git-workflow-migration.md +54 -52
  173. package/assets/patterns/git-workflow-pr-ready.md +57 -56
  174. package/assets/patterns/git-workflow-pr.azure.md +127 -122
  175. package/assets/patterns/git-workflow-pr.github.md +186 -177
  176. package/assets/patterns/git-workflow-pr.gitlab.md +139 -132
  177. package/assets/patterns/git-workflow-restart.md +35 -31
  178. package/assets/patterns/git-workflow-secrets.md +80 -73
  179. package/assets/patterns/git-workflow-stack.md +136 -107
  180. package/assets/patterns/lib-layers-move.md +62 -53
  181. package/assets/patterns/lib-layers-new.md +59 -45
  182. package/assets/patterns/observability-record.md +72 -67
  183. package/assets/patterns/platform-access-di.md +31 -29
  184. package/assets/patterns/reuse-first-extend.md +66 -61
  185. package/assets/patterns/shared-code-new.md +39 -38
  186. package/assets/patterns/spec-driven-domain.md +161 -151
  187. package/assets/patterns/spec-driven-rule.md +179 -168
  188. package/assets/patterns/spec-driven-sweep.md +41 -39
  189. package/assets/patterns/status-report-table.github.md +48 -36
  190. package/assets/patterns/styling-bem-component.md +42 -42
  191. package/assets/patterns/styling-bem-layout.md +39 -34
  192. package/assets/patterns/styling-bem-sheet.md +59 -58
  193. package/assets/patterns/task-flow-archive.md +222 -215
  194. package/assets/patterns/task-flow-close.md +234 -203
  195. package/assets/patterns/task-flow-handoff.md +154 -145
  196. package/assets/patterns/task-flow-resume.md +138 -133
  197. package/assets/patterns/task-flow-start.md +228 -202
  198. package/assets/patterns/testing-e2e.md +102 -101
  199. package/assets/patterns/testing-unit.md +77 -70
  200. package/assets/patterns/ts-procedure.md +32 -29
  201. package/assets/patterns/turn-entry-map.md +50 -48
  202. package/assets/pitfalls/agent-kit.md +172 -142
  203. package/assets/pitfalls/doc-style.md +96 -91
  204. package/assets/pitfalls/git-workflow.azure.md +49 -46
  205. package/assets/pitfalls/git-workflow.github.md +270 -234
  206. package/assets/pitfalls/git-workflow.gitlab.md +49 -45
  207. package/assets/pitfalls/spec-driven.md +73 -71
  208. package/assets/pitfalls/styling-bem.md +46 -40
  209. package/assets/pitfalls/task-flow.md +262 -246
  210. package/assets/pitfalls/testing.md +99 -92
  211. package/assets/pitfalls/turn-conduct.md +96 -81
  212. package/assets/rules/angular-patterns.md +81 -80
  213. package/assets/rules/api-layer.md +77 -74
  214. package/assets/rules/autonomous-work.md +87 -74
  215. package/assets/rules/browser-verification.md +223 -214
  216. package/assets/rules/component-structure.md +72 -69
  217. package/assets/rules/dependencies.md +74 -67
  218. package/assets/rules/deploy-flow.azure.md +118 -108
  219. package/assets/rules/deploy-flow.github.md +145 -135
  220. package/assets/rules/deploy-flow.gitlab.md +120 -110
  221. package/assets/rules/doc-style.md +201 -173
  222. package/assets/rules/entity-conventions.needs-admin.md +81 -79
  223. package/assets/rules/entity-models.md +73 -70
  224. package/assets/rules/git-workflow.azure.md +224 -228
  225. package/assets/rules/git-workflow.github.md +268 -239
  226. package/assets/rules/git-workflow.gitlab.md +218 -217
  227. package/assets/rules/lib-layers.md +85 -86
  228. package/assets/rules/lists.md +101 -97
  229. package/assets/rules/navigation.md +78 -78
  230. package/assets/rules/observability.needs-app.md +165 -153
  231. package/assets/rules/platform-access.md +76 -75
  232. package/assets/rules/reuse-first.md +153 -143
  233. package/assets/rules/shared-code.md +82 -79
  234. package/assets/rules/spec-driven.md +279 -260
  235. package/assets/rules/status-report.md +62 -58
  236. package/assets/rules/styling-bem.md +81 -77
  237. package/assets/rules/task-flow.md +303 -270
  238. package/assets/rules/testing.md +224 -209
  239. package/assets/rules/turn-conduct.md +262 -258
  240. package/assets/rules/turn-entry.md +92 -87
  241. package/assets/rules/typescript-conventions.md +94 -88
  242. package/assets/samples/specs/_template/spec.md +47 -47
  243. package/assets/samples/tasks/_template/grill.md +20 -20
  244. package/assets/samples/tasks/_template/plan.md +32 -30
  245. package/assets/samples/tasks/_template/progress.md +16 -16
  246. package/assets/skills/agent-kit-extend.md +129 -113
  247. package/assets/skills/agent-kit.md +259 -233
  248. package/assets/skills/write-a-skill.md +76 -71
  249. package/assets/templates/findings.md +19 -19
  250. package/assets/templates/gate-map.sh +16 -14
  251. package/assets/templates/implementation.md +28 -27
  252. package/assets/templates/pattern.md +17 -17
  253. package/assets/templates/pitfalls.md +6 -6
  254. package/assets/templates/postmortem.md +24 -23
  255. package/assets/templates/project.sh +24 -24
  256. package/assets/templates/proposal.md +62 -60
  257. package/assets/templates/rule.md +38 -38
  258. package/assets/workflows/feature.js +46 -46
  259. package/assets/workflows/plan.js +54 -54
  260. package/bin/agent-kit.d.ts.map +1 -1
  261. package/bin/agent-kit.js +8 -1
  262. package/bin/agent-kit.js.map +1 -1
  263. package/lib/cargo-prose.d.ts +41 -0
  264. package/lib/cargo-prose.d.ts.map +1 -0
  265. package/lib/cargo-prose.js +88 -0
  266. package/lib/cargo-prose.js.map +1 -0
  267. package/lib/cargo.d.ts +12 -1
  268. package/lib/cargo.d.ts.map +1 -1
  269. package/lib/cargo.js +8 -2
  270. package/lib/cargo.js.map +1 -1
  271. package/lib/catalog.d.ts +2 -0
  272. package/lib/catalog.d.ts.map +1 -1
  273. package/lib/catalog.js +4 -3
  274. package/lib/catalog.js.map +1 -1
  275. package/lib/commands.d.ts.map +1 -1
  276. package/lib/commands.js +5 -2
  277. package/lib/commands.js.map +1 -1
  278. package/lib/companion.js +3 -2
  279. package/lib/companion.js.map +1 -1
  280. package/lib/enroll.d.ts +7 -1
  281. package/lib/enroll.d.ts.map +1 -1
  282. package/lib/enroll.js +12 -3
  283. package/lib/enroll.js.map +1 -1
  284. package/lib/fate.d.ts +29 -0
  285. package/lib/fate.d.ts.map +1 -0
  286. package/lib/fate.js +147 -0
  287. package/lib/fate.js.map +1 -0
  288. package/lib/override-marks.d.ts +7 -0
  289. package/lib/override-marks.d.ts.map +1 -1
  290. package/lib/override-marks.js +14 -0
  291. package/lib/override-marks.js.map +1 -1
  292. package/lib/plan.d.ts +11 -0
  293. package/lib/plan.d.ts.map +1 -1
  294. package/lib/plan.js +10 -1
  295. package/lib/plan.js.map +1 -1
  296. package/lib/ship.d.ts +29 -9
  297. package/lib/ship.d.ts.map +1 -1
  298. package/lib/ship.js +44 -2
  299. package/lib/ship.js.map +1 -1
  300. package/lib/shipment.d.ts.map +1 -1
  301. package/lib/shipment.fixture.d.ts +8 -1
  302. package/lib/shipment.fixture.d.ts.map +1 -1
  303. package/lib/shipment.fixture.js +9 -0
  304. package/lib/shipment.fixture.js.map +1 -1
  305. package/lib/shipment.js +38 -5
  306. package/lib/shipment.js.map +1 -1
  307. package/lib/sync.d.ts.map +1 -1
  308. package/lib/sync.js +45 -11
  309. package/lib/sync.js.map +1 -1
  310. package/package.json +1 -1
  311. package/rt-tools-agent-kit-0.27.0.tgz +0 -0
  312. package/rt-tools-agent-kit-0.24.0.tgz +0 -0
@@ -2,269 +2,298 @@
2
2
  name: git-workflow
3
3
  kind: rule
4
4
  law: delivery
5
- description: Правило под «Закон о поставке» для дерева на GitHub. Брать на заведение задачи, ветки, коммит, пуш, открытие PR и мерж. Называет пару «задача и ветка» один к одному, имена, машинную запись и гарды поставки. Паттерны: git-workflow-commit, -pr, -merge, -stack. Выкатка — правило deploy-flow.
5
+ description: Rule under the delivery law for a tree on GitHub. Load for creating a task and a branch, commit, push, opening a PR and merging. Names the one-to-one pair of task and branch, the machine account and the delivery guards. Patterns git-workflow-commit, -pr, -merge, -stack. Rollout — rule deploy-flow.
6
6
  ---
7
7
 
8
- # Поставка — как это устроено здесь
8
+ # Delivery — how it works here
9
9
 
10
- Правило под закон `docs/constitution/delivery.md`. Закон говорит, что должно быть верно;
11
- здесь — каким приёмом это держится в дереве, лежащем на GitHub. Ключ задач, адрес борды,
12
- учётная запись машинной работы и области коммита — при этом дереве, в `implementation.md`
13
- рядом: их не угадать, и общими они не бывают.
10
+ Rule under the law `docs/constitution/delivery.md`. The law says what must be true; here — by which
11
+ technique it is held in a tree that lives on GitHub. The task key, the board address, the machine
12
+ account and the commit scopes are this tree's, in `implementation.md` next to it: they cannot be
13
+ guessed and are never shared.
14
14
 
15
- **Холодная часть:** `pitfalls.md` рядом — ловушки, грабли, на которые уже наступали.
16
- Грузится по требованию, а не вместе с правилом.
15
+ **Cold part:** `pitfalls.md` next to it — traps already stepped on. Loaded on demand, not together
16
+ with the rule.
17
17
 
18
- ## Как это называется здесь
18
+ ## What it is called here
19
19
 
20
- | В законе | Здесь |
21
- | -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
22
- | главная ветка | `main` |
23
- | ключ задач | короткое слово, которым дерево зовёт свои задачи; задаётся ключом `board.taskKey` в `.claude/rt-kit/checks.json`, а в `implementation.md` называется для читателя |
24
- | отдельная ветка | `<КЛЮЧ>-<номер задачи>-<короткий-slug>`. Имя без номера (`feat/…`, `fix/…`) законно, пока ветка живёт локально: PR с неё не откроется |
25
- | задача | issue репозитория, заголовок `[<КЛЮЧ>-<номер>] <Что не так>`, исполнитель — учётная запись машинной работы; PR прикрепляется к нему строкой `Closes #<номер>` в теле |
26
- | очередь работ | борда GitHub Projects. К репозиторию она не привязана: `projectsV2` у него пуст, и задача попадает на борду только явным добавлением |
27
- | состояние задачи в очереди работ | колонка борды — поле «Status»: заведённая, взятая в работу, ждущая разбора. Имена колонок — в `implementation.md`; закрытая задача уходит из очереди мержем, а не переводом в последнюю колонку |
28
- | PR о задаче | заголовок PR `[<КЛЮЧ>-<номер>] <Что сделано>` — тот же номер, что у задачи, и её название, переведённое в сделанное; тип и область коммита сюда не идут |
29
- | обсуждение правки | разбор PR: ревьювер — владелец репозитория, исполнитель — учётная запись машинной работы, метки — те же, что у задачи |
30
- | запись о правке | коммит формата `type(scope): description` — типы `feat`, `fix`, `refactor`, `docs`, `style`, `test`, `chore`, `perf`; области — в `implementation.md` |
31
- | автор машинной работы | отдельная учётная запись; её имя и место токена — в `implementation.md`. Токен лежит вне репозитория |
20
+ | In the law | Here |
21
+ | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
22
+ | main branch | `main` |
23
+ | task key | the tree's word for its tasks: `board.taskKey` in `.claude/rt-kit/checks.json`, named in `implementation.md` for the reader |
24
+ | epic | a repository issue with the epic label, `[<КЛЮЧ>-<номер>] <Возможность>`, and a plan next to it: the order of tasks and how the branches stand |
25
+ | epic branch | `<КЛЮЧ>-<номер эпика>-<короткий-slug>`, taken from `main`. Task branches are taken from it, and their PRs go into it |
26
+ | PR of an epic | PR into `main` from the epic branch; opens after all its tasks are merged and their folders taken apart |
27
+ | separate branch | `<КЛЮЧ>-<номер задачи>-<короткий-slug>`, taken from the epic branch. A name without a number (`feat/…`, `fix/…`) is legitimate locally: no PR opens from it |
28
+ | task | a repository issue `[<КЛЮЧ>-<номер>] <Что не так>`, assignee the machine account; attached PR: `Closes #<номер>` in its body |
29
+ | work queue | a GitHub Projects board, not bound to the repository: its `projectsV2` is empty, and a task lands on it only when added |
30
+ | task state in the work queue | a board column ("Status"): created, in progress, in review; names in `implementation.md`. A closed task leaves by merge, not by column |
31
+ | PR about a task | PR title `[<КЛЮЧ>-<номер>] <Что сделано>` — the task's number and title turned into the done; commit type and scope stay out |
32
+ | discussion of an edit | PR review: reviewer — the repository owner, assignee — the machine account, labels — the same as on the task |
33
+ | record of an edit | `type(scope): description`, types `feat`, `fix`, `refactor`, `docs`, `style`, `test`, `chore`, `perf`; scopes: `implementation.md` |
34
+ | author of machine work | a separate account; its name and the token's place — in `implementation.md`. The token lies outside the repository |
32
35
 
33
- ## Где это лежит
36
+ ## Where it lives
34
37
 
35
- В этом дереве — таблица в `implementation.md` рядом. Пути живут там, а не здесь: правило
36
- переносится между репозиториями, раскладка — нет, и путь, названный в правиле, врёт в первом
37
- же дереве, которое держит код иначе.
38
+ In this tree — the table in `implementation.md` next to it. Paths live there, not here: the rule
39
+ travels between repositories, the layout does not, and a path named in the rule lies in the first
40
+ tree that keeps its code differently.
38
41
 
39
- ## Ход
42
+ ## Flow
40
43
 
41
- Ход работы от задачи до слияния: где стоит гард, что двигает колонку очереди работ и чем
42
- работа кончается.
44
+ The flow from task to merge: where the guard stands, what moves the work queue column and how the
45
+ work ends.
43
46
 
44
47
  ```mermaid
45
48
  flowchart TD
46
- A[Работа начинается] --> B[Задача заводится командой и встаёт в очередь работ]
47
- B --> C[Ветка называется номером задачи; колонка двигается тем же движением]
48
- C --> D{Правка готова}
49
- D -->|Нет| C
50
- D -->|Да| E[Главная ветка влита, набор гейта прогнан целиком]
51
- E --> F{Ветка несёт номер задачи}
52
- F -->|Нет| G[Гард поставки отбивает открытие: за правкой ничего не стоит в очереди]
53
- F -->|Да| H[PR открывается; не готовое к слиянию идёт черновиком]
54
- H --> I[Колонка задачи переходит в разбор, исполнитель берёт следующую задачу]
55
- I --> J{Прогон и разбор кончились}
56
- J -->|Прогон красный| K[Чинится в той же ветке]
49
+ A[Work begins] --> Z{The epic of this work is named}
50
+ Z -->|No| Y[The epic is created together with its tasks, and its branch is taken from main]
51
+ Z -->|Yes| B[A command creates the task and it enters the work queue]
52
+ Y --> B
53
+ B --> C[The branch is named by the task number and taken from the epic branch; the column moves in the same motion]
54
+ C --> D{The edit is ready}
55
+ D -->|No| C
56
+ D -->|Yes| E[Main is merged in, the gate set is run whole]
57
+ E --> F{The branch carries a task number}
58
+ F -->|No| G[The delivery guard refuses the opening: nothing in the queue stands behind the edit]
59
+ F -->|Yes| H[The PR opens; what is not ready to merge goes as a draft]
60
+ H --> I[The task column moves to review, the executor takes the next task]
61
+ I --> J{The run and the review are over}
62
+ J -->|Run red| K[Fixed in the same branch]
57
63
  K --> J
58
- J -->|Зелено| L[Папка задачи разбирается последним коммитом, черновик снимается]
59
- L --> M[Слияние нажимает человек: исполнитель просит и называет номер]
64
+ J -->|Green| L[The last commit takes the task folder apart, the draft is lifted]
65
+ L --> M[A person presses the merge into the epic branch: the executor asks and names the number]
66
+ M --> N{Tasks of the epic are left}
67
+ N -->|Yes| B
68
+ N -->|No| O[The PR of the epic into main opens: all the folders are taken apart, and the main branch takes the epic whole]
60
69
  G --> B
61
70
  ```
62
71
 
63
- ## Как закон применяется здесь
72
+ ## How the law applies here
64
73
 
65
- - **Коммит в главную ветку отбивается гардом.** Гард ищет вызов коммита в любом месте команды и
66
- смотрит текущую ветку на момент запуска: составная «создать ветку и сразу коммитить»
67
- отклоняется целиком — ветки в момент разбора ещё нет.
68
- - **Ветка без номера задачи PR не открывает.** Локально она законна, но правка из неё — выкатка,
69
- за которой в очереди работ ничего не стоит. Заводится задача, и работа переносится в ветку с
70
- её номером.
71
- - **Главная ветка влита в ветку задачи до открытия PR.** Гард отбивает открытие, пока вершина
72
- главной не стала предком текущей: иначе ревьювер видит свою правку вперемешку с чужой, а
73
- проверено всё было от основания, которого уже нет.
74
- - **Волна веток от одной главной проверяется пробным слиянием, а не по одной:** каждая зелена
75
- сама по себе, а сталкиваются тем, чего на отдельной ветке не видно.
76
- - **Ветка следующей работы отводится от предыдущей, пока череда не прервалась.** `git checkout -b
77
- <КЛЮЧ>-<номер>-<slug> <предыдущая ветка>` вместо `origin/main`; от главной — первая работа
78
- череды. Иначе первое слияние разводит все остальные разом.
79
- - **У заявки в череде основанием стоит предыдущая ветка, а не главная.** `gh pr create --base
80
- <предыдущая ветка>` — иначе разбор показывает правку вперемешку со всем, что под ней. Базу
81
- влитой нижней хостинг переносит сам.
82
- - **Череда вливается снизу вверх, и порядок стоит в теле каждой заявки.** Родство веток по
83
- списку не видно: строка «стоит на #<номер>» — единственное место, где владелец это прочтёт.
84
- - **Нижняя ветка череды историю не переписывает — ни `rebase`, ни силовой отправкой.** Хостинг
85
- закрывает заявку верхней как слитую при пустой главной. Отставшая чинится вливанием главной.
86
- - **Расхождение внутри череды разбирается тем, кто ветвится.** У него обе правки свои; у
87
- владельца, разбирающего то же при слиянии, нет ни одной.
88
- - **Несошедшиеся условия поставки называются одним отказом.** Гард копит их и печатает разом: всё
89
- несошедшееся известно на первом вызове.
90
- - **Условие, известное в начале работы, спрашивается в начале.** Заведение ветки отбивает
91
- основание без вершины главной и чужую почту в подписи; на пуше то же чинится вливанием с
92
- конфликтом и переписыванием ветки.
93
- - **Судится то основание, которое названо командой, а не вершина рабочей копии.** Ветку заводят и
94
- от `origin/main` прямо — этой командой основание как раз и берут свежим. Основание, о котором
95
- дерево ничего не знает, не судится вовсе.
96
- - **Ветка без номера задачи условий поставки не получает.** Локальная ветка под пробу законна, а
97
- требовать от неё свежего основания значило бы отбивать работу, которая в главную не поедет.
98
- - **Ключ задач задаётся один раз, и все три формы имени выводятся из него.** По нему собирается
99
- заголовок задачи, из него достаётся номер ветки, по нему же сверка читает заголовок PR. Форма
100
- ветки в профиле дерева пишется той же парой `<КЛЮЧ>-<номер>`.
101
- - **Незаданный ключ отбивает работу с очередью на месте.** Модуль борды отказывает при первом же
102
- вызове и называет, где ключ задаётся. Умолчания нет намеренно: заголовок из пустого значения
103
- не совпадает ни с чем, и настоящее расхождение тонет среди ложных строк.
104
- - **Заведённая задача подтверждается ответом очереди работ, а не выводом команды заведения.**
105
- Напечатанный номер значит «вызов прошёл»: задачу можно завести и не довести до борды.
106
- - **Видимость заведённого проверяется той стороной, которой оно предназначено.** Заявку читает
107
- человек, задачу — очередь работ, и оба читают не тем токеном, которым заводили: ограниченная
108
- запись отвечает им «не найдено», а заводившей — успехом.
109
- - **Отказ читается прежде, чем его обходят вторым способом.** Он бывает ранним признаком
110
- ограничения записи, и обход другим вызовом уносит признак с собой: расхождение всплывает у
111
- владельца. Ограничение от исчерпания отличает ответ о пределах — там ноль.
112
- - **Номер ветки и номер в заголовке PR сверяются на месте, а состояние задачи — по борде.**
113
- Формат читается из текста команды и работает без сети; задача, колонка, исполнитель и разбор —
114
- только когда есть чем спросить. Нет сети или токена — второй ярус молча пропускается.
115
- - **Колонка задачи двигается тем же движением, что и работа.** Ветка заведена — задача во взятых
116
- в работу, PR открыт — в ждущих разбора; делает это команда перевода, а не вызовы GraphQL по
117
- памяти. Перевод идёт сразу за шагом: очередь читают между шагами, а не после них.
118
- - **Задача, оставшаяся в первой колонке, PR не открывает.** По очереди работ она читается как
119
- невзятая, хотя работа сделана и выложена. На заведении ветки колонка не спрашивается — там её
120
- ещё не двигали. Имя первой колонки дерево называет само; не названо — колонка не судится.
121
- - **На борде стоят задачи, а не PR о них.** Карточка PR колонки не имеет, из очереди не уходит и
122
- остаётся навсегда. Находит такие карточки сверка очереди — строкой на каждую.
123
- - **Отставшая колонка находится сверкой очереди, а не глазами.** Она судит колонку по PR в обе
124
- стороны: открытый PR при задаче не в разборе и разбор без открытого PR. Момента, когда задачу
125
- берут в работу, ей не видно: ветки на борде нет.
126
- - **Ветка с открытой заявкой отстаёт от главной молча.** Основание гард судит раз, в минуту
127
- открытия, а влитого после не видит и прогон. Отставание считает сверка очереди работ.
128
- - **Связь задачи с эпиком сверка читает в обе стороны.** Односторонняя привязка выглядит целой
129
- так же, как двусторонняя: читатель приходит то от замысла эпика, то от карточки.
130
- - **Задачи, чинящиеся одной правкой, сливаются до мержа.** Вторая стирается вместе с номером, а
131
- недостающее дописывается в первую: после мержа ветка въехала целиком.
132
- - **Работа, которую одним заходом не закрыть, помечена в двух местах, и они сверяются.** Метка на
133
- борде и строка о заходах в замысле эпика говорят одно и то же двум читателям. Помечается только
134
- то, что законно не делится.
135
- - **Вершина открытого PR без прогона видна сверкой очереди работ.** Страница без прогона выглядит
136
- так же, как с зелёным: цвета нет ни там, ни там. Сверка спрашивает вершину, считает сам факт
137
- прогона, а не цвет, и свежей вершине даёт время.
138
- - **Заявка, чья база — не главная ветка, проверяется тем же набором, что и заявка в главную.**
139
- Условие запуска конвейера читает базу, и заявка в соседнюю ветку не поднимает его вовсе: пустое
140
- поле проверок читается как ожидание очереди. Спрашивается это до открытия первой заявки стопки,
141
- и заявка без прогона на вершине не сливается — приём в паттерне `git-workflow-stack`.
142
- - **Прогон, вытесненный из очереди конвейера, сверка называет отдельной строкой.** Он выглядит
143
- упавшим, хотя ветку не проверял; отличает их число заданий — у него ноль.
144
- - **Черновик при зелёном прогоне на вершине — расхождение сверки.** Зелёная страница ничего не
145
- разрешает: кнопка заблокирована хостингом. В ходе это закрывает гард, между ходами — сверка.
146
- - **Свои черновики судятся все разом, а не тот один, чья ветка взята.** Признака два — зелёный
147
- прогон на вершине и разобранная папка задачи в ветке; лежащая папка означает идущую работу.
148
- - **Открытие PR отбивается, пока ветка везёт папку своей задачи.** Кнопку слияния нажимает
149
- человек там, где гардов нет: открытие — последняя точка, где отказ ещё виден исполнителю.
150
- - **Свои открытые заявки перечитываются в трёх местах: перед пушем, при взятии задачи и после
151
- каждого известного слияния.** Заявка устаревает без действия автора: влита соседняя работа —
152
- остальные в ту же секунду отстали. Приём — `git-workflow-freshness`.
153
- - **Конфликтующая своя заявка чинится первым действием хода, а новая работа до этого не
154
- берётся.** Пока отданное конфликтует, влить его человек не может. Работой здесь считается
155
- заведение задачи, заведение ветки, перевод колонки в работу и открытие заявки; всё, чем
156
- конфликт чинится, идёт как прежде.
157
- - **Конфликтующий открытый PR — расхождение сверки очереди работ.** Конфликт приезжает чужим
158
- слиянием и по списку не виден: метку хостинг показывает только внутри самого PR.
159
- - **Документ едет в том же коммите, что и правка.** Обход — строка `Docs-skip: <причина>` в теле
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
- теперь.** Проверять по тому, что правил автор, — значит проверять половину: отвечает ветка
187
- целиком.
188
- - **Главная ветка берётся удалённой ссылкой — и в словах, и в действиях.** Локальная — снимок
189
- вчерашнего дня, и молчит она об этом. От `origin/main` идут и сравнение, и основание новой
190
- ветки, и счёт влитого: при локальной влитая ветка числится невлитой, а уборка кончается
191
- списком невлитого, которого нет.
192
- - **Правка кода отдаётся человеку открытым PR, а не запушенной веткой.** Ветка во входящие не
193
- приходит и обсуждения не имеет: до открытия PR правки для человека нет. Открывается он тем же
194
- ходом, которым исполнитель говорит, что работу отдаёт.
195
- - **Не готовое к слиянию открывается черновиком — `gh pr create --draft`.** Кнопка слияния у
196
- черновика заблокирована хостингом, поэтому «выложено на обозрение» и «можно вливать» перестают
197
- выглядеть одинаково. Черновиком идёт всё, что ждёт прогона, доработки или ответа на вопрос.
198
- - **Черновик снимается отдельным вызовом — `gh pr ready <номер>`.** Им исполнитель отвечает за
199
- готовность: проверки пройдены, доработок не осталось, работа сходится с задачей. Снятие
200
- черновика и просьба влить — один ход, а не два разных дня.
201
- - **Черновик не снимается с ветки, которая не сливается.** Зелёный прогон говорит «не сломано»,
202
- сливаемость — «кнопку можно нажать», и владельцу нужно второе. Спрашивается у хостинга полем
203
- `mergeable`; из локального вливания она не выводится.
204
- - **Указателю, в который ветки только дописывают строки, объявляется сложение обеих сторон.**
205
- Конфликт там не спор: обе допись нужны целиком. Метку сливаемости объявление **не гасит** — она
206
- гаснет, когда ветка вобрала главную и это уехало на хостинг.
207
- - **Правка, доведённая до коммита, доводится до хостинга тем же ходом.** Владелец видит прежнее
208
- состояние и читает его как «не сделано ничего», а сделанное лежит там, где его не видит никто.
209
- Оставшееся в дереве называется причиной — словом владельца, а не списком остатков.
210
- - **Черновик не снимается, пока у PR нет разбора.** Гард смотрит запрошенного ревьювера и
211
- оставленный отзыв: снятый черновик читается как «можно вливать», а вливать некому. Судится и
212
- вызов без номера — без него клиент берёт PR текущей ветки.
213
- - **Мерж PR нажимает человек, а не исполнитель работы.** Кнопка и вызов слияния равны: запрет на
214
- них один. Исполнитель сливает свой PR только тогда, когда человек сказал это прямо и про этот
215
- PR; сказанное об одном на следующий не переносится, а молчание разрешением не бывает.
216
- - **Личность вызова, открывающего заявку, стережёт гард поставки, а не память исполнителя.** Она
217
- приходит окружением, и в тексте команды её видно только явной подстановкой токена. Ответ
218
- хостинга об авторе гард спрашивает на снятии черновика: влитую заявку не переоткрыть.
74
+ - **A commit into the main branch is refused by the guard.** The guard looks for a commit call
75
+ anywhere in the command and reads the current branch at launch: a compound "create a branch and
76
+ commit at once" is rejected whole — the branch does not exist yet at review.
77
+ - **A branch without a task number opens no PR.** Locally it is legitimate, but an edit from it is a
78
+ rollout with nothing behind it in the queue. A task is created, and the work moves to a branch
79
+ with its number.
80
+ - **Work begins with the epic, and the branch of a task is taken from the epic branch.** `git
81
+ checkout -b <КЛЮЧ>-<номер задачи>-<slug> <ветка эпика>`; from `main` only the epic branch itself
82
+ is taken — a task branched from `main` carries into it what the epic has not finished.
83
+ - **The PR of a task has the epic branch as its base — `gh pr create --base <ветка эпика>`.**
84
+ Opened into `main`, it leaves the epic branch a copy nobody merges: half the epic is rolled out
85
+ while the rest is being written.
86
+ - **The PR of an epic into the main branch opens after all its tasks are merged and their folders
87
+ are taken apart.** The merge button on the epic branch means the whole epic, and there is nothing
88
+ to press it for while a task of it is still being written.
89
+ - **The epic branch carries the plan of the epic and the merges of its tasks, and no edits of its
90
+ own.** An edit made in it directly goes into `main` unreviewed: nobody opens a PR about the epic
91
+ branch to the epic branch.
92
+ - **The main branch is merged into the epic branch, and the epic branch into the branches of its
93
+ tasks — while the work runs, not before the hand-over.** Otherwise the reviewer sees the edit
94
+ mixed with someone else's, and everything was checked from a base that is gone.
95
+ - **A wave of branches off one epic branch is checked by a trial merge, not one by one:** each is
96
+ green on its own, and they collide on what one branch cannot show.
97
+ - **The next work's branch is taken from the previous one while the chain is unbroken.** `git
98
+ checkout -b <КЛЮЧ>-<номер>-<slug> <предыдущая ветка>`; from the epic branch — only the chain's
99
+ first work, otherwise the first merge diverges the rest at once. A chain is set up inside one
100
+ epic and only where the next task edits what the previous one wrote.
101
+ - **A PR in a chain has the previous branch as its base, not main.** `gh pr create --base
102
+ <предыдущая ветка>` — otherwise the review shows the edit mixed with all under it. The host
103
+ retargets the base of a merged lower one itself.
104
+ - **A chain is merged bottom-up, and the order stands in every PR body.** Branch kinship is
105
+ invisible in the list: the line "stands on #<number>" is the only place the owner reads it.
106
+ - **The lower branch of a chain does not rewrite history — neither `rebase` nor a force push.** The
107
+ host closes the upper PR as merged once its diff goes empty. A lagging branch is fixed by merging
108
+ main in.
109
+ - **A divergence inside a chain is resolved by the one who branches.** Both edits are theirs; the
110
+ owner resolving the same at merge time owns neither.
111
+ - **Unmet delivery conditions are named in one refusal.** The guard collects and prints them at
112
+ once: everything unmet is known on the first call.
113
+ - **A condition known at the start of work is asked at the start.** Creating a branch — also with a
114
+ flag between the verb and `-b` — refuses a base without main's tip and a foreign email in the
115
+ signature: at push time the fix costs more.
116
+ - **The base judged is the one named by the command, not the tip of the working copy.** A branch is
117
+ also created straight from `origin/main` — that very command takes the base fresh. A base the tree
118
+ knows nothing of is not judged at all.
119
+ - **A branch without a task number gets no delivery conditions.** A local trial branch is
120
+ legitimate, and it will not go to main.
121
+ - **The task key is set once, and all three name forms derive from it.** The task title is assembled
122
+ from it, the branch number is read by it, and so is the PR title by the audit. The tree profile
123
+ writes the branch form with the same pair `<КЛЮЧ>-<номер>`.
124
+ - **An unset key refuses work with the queue on the spot.** No default on purpose: a title from an
125
+ empty value matches nothing, and a real discrepancy drowns among false lines.
126
+ - **A created task is confirmed by the work queue's answer, not by the creation command's output.**
127
+ A printed number means "the call went through": a task can be created and never reach the board.
128
+ - **The visibility of what was created is checked by the side it is meant for.** A PR is read by a
129
+ person, a task by the work queue, and both read with a token other than the creating one. Whose
130
+ eyes took the answer, its `viewer` field says.
131
+ - **A refusal is read before it is bypassed by a second way.** It can be an early sign of a write
132
+ limit, and a bypass by another call carries the sign away: the discrepancy surfaces at the owner.
133
+ A limit is told from exhaustion by the limits answer — there it is zero.
134
+ - **The branch number and the PR title number are checked on the spot, the task state — by the
135
+ board.** The format is read from the command text and works offline; task, column, assignee and
136
+ review — only with something to ask with. No network or token — the second tier is skipped
137
+ silently.
138
+ - **The task column moves in the same motion as the work.** Branch created — the task is in
139
+ progress, PR opened — awaiting review; the move command does it, not GraphQL calls from memory.
140
+ The move follows the step at once: the queue is read between steps, not after.
141
+ - **A task left in the first column opens no PR.** By the work queue it reads as not taken, though
142
+ the work is done and published. At branch creation the column is not asked — nothing has moved it
143
+ yet. The tree names the first column itself; unnamed — not judged.
144
+ - **The board holds tasks, not PRs about them.** A PR card has no column and never leaves the queue.
145
+ The queue audit finds such cards, a line each.
146
+ - **A lagging column is found by the queue audit, not by eye.** It judges the column by the PR both
147
+ ways: an open PR with the task not in review, and review with no open PR.
148
+ - **A branch with an open PR lags behind its base silently.** The guard judges the base once, at
149
+ opening, and the run does not see what merged after either. The work queue audit counts the lag.
150
+ - **The link between a task and an epic is read by the audit both ways.** A one-sided binding looks
151
+ as whole as a two-sided one: the reader comes now from the epic plan, now from the card.
152
+ - **Tasks fixed by one edit are merged before the merge.** The second is erased with its number, and
153
+ the missing is added to the first: after the merge the branch went in whole.
154
+ - **Work that one session cannot close is marked in two places, and they are audited.** The label on
155
+ the board and the sessions line in the epic plan say the same to two readers. Only what
156
+ legitimately does not split is marked.
157
+ - **The tip of an open PR without a run is seen by the work queue audit.** A page without a run
158
+ looks the same as with a green one: no colour in either. The audit asks the tip, counts the fact
159
+ of a run, not the colour, and gives a fresh tip time.
160
+ - **A PR whose base is not the main branch is checked by the same set as a PR into main.** The
161
+ pipeline trigger reads the base, and an empty checks field reads as waiting in the queue. Asked
162
+ before the first PR of an epic opens — pattern `git-workflow-stack`.
163
+ - **A run pushed out of the pipeline queue gets a separate audit line.** It looks failed though it
164
+ never checked the branch; the step count tells them apart — it has zero.
165
+ - **A draft with a green run on its tip is an audit discrepancy.** A green page permits nothing: the
166
+ host locks the button. Within a turn the guard closes this, between turns — the audit.
167
+ - **One's own drafts are judged all at once, not only the checked-out branch's.** Two signs — a
168
+ green run on the tip and a task folder taken apart in the branch; a folder still there means
169
+ ongoing work.
170
+ - **Opening a PR is refused while the branch carries its task folder.** Opening is the last point
171
+ where the executor still sees the refusal.
172
+ - **One's own open PRs are reread in three places: before a push, on taking a task and after every
173
+ known merge.** A PR goes stale with no action by its author: a neighbouring work merged — the rest
174
+ lagged that second. Technique — `git-workflow-freshness`.
175
+ - **One's own conflicting PR is fixed by the turn's first action, and no new work is taken before
176
+ that.** While the handed-over conflicts, a person cannot merge it. Work here means creating a task
177
+ or a branch, moving the column to in progress and opening a PR; what fixes the conflict goes as
178
+ before.
179
+ - **A conflicting open PR is a work queue audit discrepancy.** The conflict arrives with someone
180
+ else's merge and is invisible in the list: the host shows the mark only inside the PR.
181
+ - **A document goes in the same commit as the edit.** The bypass is the line `Docs-skip: <reason>`
182
+ in the commit body; an empty reason is not accepted.
183
+ - **The commit subject is checked against the format on the spot.** A subject parsed by type and
184
+ scope is read as a list, free text — only whole.
185
+ - **Before a push all linters are run, not one.** The code linter usually does not read style files
186
+ at all; without a second run nothing checks the styling rules.
187
+ - **The build is in the set on a par with lint and unit tests.** The linter does not read types, and
188
+ unit tests read only what a test imports: a type error in uncovered code lives until the image
189
+ build — that is, the merge.
190
+ - **On a machine with several runners, any path from the home directory is shared.** A neighbouring
191
+ run rewrites a ready-made step's default to its own version. Install directory, container name and
192
+ builder name are per project and fixed; a temporary directory will not do — the package store
193
+ lives there.
194
+ - **The push gate set is never narrower than the pipeline set.** A pipeline step with neither a line
195
+ in the set nor a declared exclusion with a reason refuses the push instead of printing next to it:
196
+ a warning reads as permission.
197
+ - **The gate set calls the package default instead of listing it line by line.** Rewritten as lines,
198
+ it leaves tomorrow's hole: a check the package adds never reaches the tree. Sifting out of the
199
+ default is legitimate, by name and with a reason.
200
+ - **The final set before a push is read from the state review, not assembled in the head.** The "set
201
+ before push" section prints it whole and names next to it what the default printed and the set did
202
+ not take.
203
+ - **An exclusion reason naming a task is judged on whether that task is alive.** A dead number
204
+ silently makes the exclusion perpetual. Asked by the same tier as the task state at the guard.
205
+ - **The layout audit stands in the push gate set on a par with lint and the build.** An edit past
206
+ the source piles up silently, and the audit is not in the pipeline.
207
+ - **After merging the base in, the check set is revised by what the branch now carries.** Checking by
208
+ what the author edited means checking half: the branch answers whole.
209
+ - **The main branch is taken by the remote ref — in words and in actions.** The local one is
210
+ yesterday's snapshot and silent about it: by it a merged branch counts as unmerged, and cleanup
211
+ ends with a list of unmerged that does not exist.
212
+ - **A code edit is handed to a person by an open PR, not by a pushed branch.** A branch reaches no
213
+ inbox and has no discussion: before the PR opens there is no edit for a person. It opens in the
214
+ turn in which the executor says the work is handed over.
215
+ - **What is not ready to merge opens as a draft — `gh pr create --draft`.** The host locks a draft's
216
+ merge button, so "put up for viewing" and "may be merged" stop looking alike. Everything waiting
217
+ for a run, a rework or an answer goes as a draft.
218
+ - **The PR body is written in the turn the PR opens, and next to the sample.** A blank from the day
219
+ before diverged from it by two sections and the link line: nobody reads a ready-looking text
220
+ twice, and the guards judge the title, the branch number and the task folder.
221
+ - **The draft is lifted by a separate call — `gh pr ready <номер>`.** With it the executor answers
222
+ for readiness: checks passed, no rework left, the work matches the task. Lifting the draft and
223
+ asking to merge are one turn, not two days.
224
+ - **The draft is not lifted from a branch that does not merge.** A green run says "not broken",
225
+ mergeability says "the button can be pressed", and the owner needs the second. Asked from the
226
+ host's `mergeable` field; a local merge does not derive it.
227
+ - **An index that branches only append lines to is declared a union of both sides.** A conflict
228
+ there is no dispute: both additions are needed whole. The declaration does **not** clear the
229
+ mergeability mark — it clears when the branch has absorbed main and that reached the host.
230
+ - **An edit brought to a commit is brought to the host in the same turn.** The owner sees the old
231
+ state and reads it as "nothing done", while the done lies where nobody sees it. What stays in the
232
+ tree is named with a reason — in the owner's words, not a list of leftovers.
233
+ - **The draft is not lifted while the PR has no review.** The guard reads the requested reviewer and
234
+ the review left: a lifted draft reads as "may be merged", and there is nobody to merge. A call
235
+ without a number is judged too — the client then takes the PR of the current branch.
236
+ - **The PR merge is pressed by a person, not by the work's executor.** Button and merge call are
237
+ equal: one ban covers both. The executor merges their own PR only when a person said so directly
238
+ and about this PR; said about one, it does not carry to the next, and silence is never permission.
239
+ - **The identity of the call opening a PR is guarded by the delivery guard, not by the executor's
240
+ memory.** It comes from the environment and shows in the command text only by an explicit token
241
+ substitution. The guard asks the host about the author at draft lifting: a merged PR cannot be
242
+ reopened.
243
+ - **The host client's active account is chosen per machine, not per tree; the machine account is
244
+ substituted per call, never made active.** A login as the machine account hijacks every
245
+ neighbouring session on the machine. Substitution is mandatory even with an active account.
219
246
 
220
- - **Автор PR не может быть его ревьювером.** Запрос разбора на себя GitHub принимает и молча не
221
- создаёт. Считаются только запрос и отзыв не от автора.
222
- - **Вызов клиента хостинга идёт из дерева, а связка команд исхода не проверяет.** Вне дерева
223
- клиент отказывает, а следующее звено увозит на хостинг остаток отказавшего.
224
- - **Метки, исполнитель и ревьювер PR ставятся вызовами `gh api`, а не `gh pr edit`:** тот
225
- отвечает отказом про Projects.
226
- - **Борда правится запросом GraphQL по идентификатору борды, а не по имени владельца.**
227
- - **Почта машинного коммита копируется из компаньона, а не набирается по памяти.** Адрес
228
- `<число>+<логин>@users.noreply.github.com` сходится по числу: с чужим коммит уезжает подписанным
229
- посторонним. Ту же строку держит профиль дерева, и гард отбивает пуш.
230
- - **Личность машинной записи подтверждается ответом хостинга, а не узнаванием строки:** её
231
- спрашивают токеном, и логин с числом приходят вместе.
232
- - **Сценарии гардов задают настройки git сами, а не берут их с машины.** Подпись с машины уводит
233
- git в агент ключей, а заблокированный агент роняет набор: автор, почта и подпись идут флагами
234
- `-c` в команде.
247
+ - **The PR author cannot be its reviewer.** GitHub accepts a self review request and silently does
248
+ not create it. Only a request and a review not from the author count.
249
+ - **The host client call goes from the tree, and a command chain does not check the outcome.**
250
+ Outside the tree the client refuses, and the next link carries the rest to the host.
251
+ - **PR labels, assignee and reviewer are set by `gh api` calls, not by `gh pr edit`:** that one
252
+ refuses about Projects.
253
+ - **The board is edited by a GraphQL query by the board id, not by the owner's name.**
254
+ - **The machine commit's email is copied from the companion, not typed from memory.** The address
255
+ `<число>+<логин>@users.noreply.github.com` matches by the number: with a foreign one the commit
256
+ leaves signed by a stranger. The tree profile holds the same line, and the guard refuses the push.
257
+ - **The identity of the machine account is confirmed by the host's answer, not by recognising a
258
+ string:** asked with the token, login and number come together.
259
+ - **Guard scenarios set the git settings themselves, not take them from the machine.** A machine
260
+ signature sends git to the key agent, and a locked agent brings the set down; author, email and
261
+ signature go as `-c` flags.
235
262
 
236
- - **Каждый коммит вклада ветки подписан машинной записью, и это проверяется набором пуша.** Гард
237
- судит коммит, назвавшийся ею; подписанный человеком проходит мимо.
238
- - **Состояние заявки перечитывается у хостинга сразу после публикации.** Открытие и постановка
239
- ревьювера отвечают нулём и тогда, когда не сделали ничего.
240
- - **Автор открытой заявки и наличие у неё ревьювера сверяются очередью работ.** До слияния оба
241
- промаха не видны: открытая человеком заявка ревьювера не получит никогда.
242
- - **Ревьюверы спрашиваются вызовом REST, а не выборкой клиента.** Её поля собирает GraphQL, прав
243
- на который у записи нет: «сошлось» неотличимо от «спросить было нечем».
263
+ - **Every commit of the branch's contribution is signed by the machine account, and the push set
264
+ checks it.** The guard judges a commit that named itself as it; one signed by a person passes by.
265
+ - **The PR state is reread from the host right after publishing.** Opening and setting a reviewer
266
+ answer zero even having done nothing.
267
+ - **The author of an open PR and whether it has a reviewer are audited by the work queue.** Before
268
+ the merge neither miss shows: a PR opened by a person never gets a reviewer.
269
+ - **Reviewers are asked by a REST call, not by the client's selection.** Its fields come from
270
+ GraphQL, which the account has no rights to: "matched" cannot be told from "nothing to ask with".
244
271
 
245
- - **Рабочее дерево не опустошается ради прогона инструмента.** Сравнение идёт на второй копии:
246
- прятанье уводит незакоммиченную работу туда, где её не видит ни состояние дерева, ни сверка.
272
+ - **The working tree is not emptied for a tool run.** The comparison goes on a second copy: stashing
273
+ takes uncommitted work where neither the tree state nor the audit sees it.
247
274
 
248
- ## Чего из закона здесь нет
275
+ ## What of the law is not here
249
276
 
250
- Гард поставки стоит на командах агента, поэтому ветку, заведённую руками в редакторе, он не
251
- видит: имя такой ветки держится памятью. Отдельной проверки под него не заводится — работа
252
- опознаётся заголовком задачи и PR. Сверка очереди имя ветки не судит вовсе.
277
+ The delivery guard stands on the agent's commands, so it does not see a branch created by hand in
278
+ the editor: its name is held by memory. No separate check is made for it — work is recognised by the
279
+ task title and the PR. The queue audit never judges the branch name.
253
280
 
254
- Задачу в работу гард не переводит: борду он не правит — правка борды в разборе команды падала бы
255
- вместе со связью. Перевод держится памятью и подсказкой команды заведения задачи; задачу,
256
- оставшуюся в первой колонке, гард называет на открытии PR, прочие расхождения колонки находит
257
- сверка очереди.
281
+ The guard does not move a task to in progress: it does not edit the board — a board edit during
282
+ command review would fall with the connection. The move is held by memory and the task creation
283
+ command's hint; a task left in the first column the guard names at PR opening, other column
284
+ discrepancies the queue audit finds.
258
285
 
259
- Свежесть вершины главной ветки гард спрашивает вторым ярусом — тем же приёмом, что и состояние
260
- задачи. Первый ярус работает без сети: локальная ссылка отвечает, отстала ли ветка от лежащего
261
- в дереве, удалённая — не протухла ли сама ссылка.
286
+ The freshness of main's tip the guard asks by the second tier — the same technique as the task
287
+ state. The first tier works offline: the local ref answers whether the branch lags what lies in the
288
+ tree, the remote one — whether the ref itself went stale.
262
289
 
263
- ## Паттерны
290
+ ## Patterns
264
291
 
265
- - `git-workflow-commit` — задача, ветка, коммит и пуш от учётной записи машинной работы.
266
- - `git-workflow-pr` — открытие PR, черновик и его снятие, тело, ревьювер, метки, состояние.
267
- - `git-workflow-merge` — главная ветка влита в ветку задачи, конфликт разобран.
268
- - `git-workflow-stack` — череда веток: ветвление от предыдущей, основание заявки, порядок отдачи.
269
- - `git-workflow-freshness` — свои открытые заявки: чтение всех разом, отставание против спора.
270
- - `git-workflow-pr-ready` — доведение отданного: снятый черновик, разбор красного, волна по череде.
292
+ - `git-workflow-commit` — task, branch, commit and push as the machine account.
293
+ - `git-workflow-pr` — opening a PR, the draft and lifting it, the body, reviewer, labels, state.
294
+ - `git-workflow-merge` — the base merged into the branch standing on it, the conflict resolved.
295
+ - `git-workflow-stack` — a chain of branches: branching from the previous, the PR base, the handover
296
+ order.
297
+ - `git-workflow-freshness` — one's own open PRs: reading all at once, lag against a dispute.
298
+ - `git-workflow-pr-ready` — finishing the handed-over: the lifted draft, the red run's analysis, a
299
+ wave over the chain.