@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,237 +2,238 @@
2
2
  name: git-workflow
3
3
  kind: rule
4
4
  law: delivery
5
- description: Правило под «Закон о поставке» для дерева на GitLab. Брать на заведение задачи, ветки, коммит, пуш, открытие MR и слияние. Называет соответствие задачи и ветки один к одному, имена, машинную учётную запись и гарды поставки. Паттерны: git-workflow-commit, -pr, -merge. Выкатка — правило deploy-flow.
5
+ description: Rule under the delivery law for a tree on GitLab. Load for creating a task and a branch, commit, push, opening an MR and merging. Names the one-to-one match of task and branch, the machine account and the delivery guards. Patterns git-workflow-commit, -pr, -merge. Rollout — rule deploy-flow.
6
6
  ---
7
7
 
8
- # Поставка — как это устроено здесь
8
+ # Delivery — how it works here
9
9
 
10
- Правило под закон `docs/constitution/delivery.md`. Закон говорит, что должно быть верно;
11
- здесь — каким приёмом это держится в дереве, лежащем на GitLab. Ключ задач, адрес борды,
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 GitLab. 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
- | отдельная ветка | `<КЛЮЧ>-<номер задачи>-<короткий-slug>`. Имя без номера (`feat/…`, `fix/…`) законно, пока ветка живёт локально: MR с неё не откроется |
24
- | ключ задач | короткое слово, которым дерево зовёт свои задачи; задаётся ключом `board.taskKey` в `.claude/rt-kit/checks.json`, а в `implementation.md` называется для читателя |
25
- | задача | issue проекта, заголовок `[<КЛЮЧ>-<номер>] <Что не так>`, исполнитель — учётная запись машинной работы; MR прикрепляется к нему строкой `Closes #<номер>` в описании |
26
- | очередь работ | доска задач проекта — Issue Board. Задача попадает на неё меткой списка, а не самим фактом заведения: доска показывает те issue, чью метку знает |
27
- | состояние задачи в очереди работ | список доски, за которым стоит метка: заведённая, взятая в работу, ждущая разбора. Имена меток — в `implementation.md`; закрытая задача уходит из очереди слиянием, а не переносом в последний список |
28
- | PR о задаче | заголовок MR `[<КЛЮЧ>-<номер>] <Что сделано>` — тот же номер, что у задачи, и её название, переведённое в сделанное; тип и область коммита сюда не идут |
29
- | обсуждение правки | разбор MR: ревьювер — владелец проекта, исполнитель — учётная запись машинной работы, метки — те же, что у задачи |
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
+ | separate branch | `<КЛЮЧ>-<номер задачи>-<короткий-slug>`. A name without a number (`feat/…`, `fix/…`) is legitimate locally: no MR opens from it |
24
+ | task key | the tree's word for its tasks: `board.taskKey` in `.claude/rt-kit/checks.json`, named in `implementation.md` for the reader |
25
+ | task | a project issue `[<КЛЮЧ>-<номер>] <Что не так>`, assignee the machine account; attached MR: `Closes #<номер>` in its description |
26
+ | work queue | the project's Issue Board. A task lands on it by a list label, not by being created: the board shows what carries a label it knows |
27
+ | task state in the work queue | a board list backed by a label: created, in progress, in review. Label names in `implementation.md`; a closed task leaves by merge, not by the last list |
28
+ | PR about a task | MR title `[<КЛЮЧ>-<номер>] <Что сделано>` — the task's number and title turned into the done; commit type and scope stay out |
29
+ | discussion of an edit | MR review: reviewer — the project owner, assignee — the machine account, labels — the same as on the task |
30
+ | record of an edit | `type(scope): description`, types `feat`, `fix`, `refactor`, `docs`, `style`, `test`, `chore`, `perf`; scopes: `implementation.md` |
31
+ | author of machine work | a separate account; its name and the token's place — in `implementation.md`. The token lies outside the repository |
32
32
 
33
- ## Где это лежит
33
+ ## Where it lives
34
34
 
35
- В этом дереве — таблица в `implementation.md` рядом. Пути живут там, а не здесь: правило
36
- переносится между репозиториями, раскладка — нет, и путь, названный в правиле, врёт в первом
37
- же дереве, которое держит код иначе.
35
+ In this tree — the table in `implementation.md` next to it. Paths live there, not here: the rule
36
+ travels between repositories, the layout does not, and a path named in the rule lies in the first
37
+ tree that keeps its code differently.
38
38
 
39
- ## Ход
39
+ ## Flow
40
40
 
41
- Ход работы от задачи до слияния: где стоит гард, что двигает колонку очереди работ и чем
42
- работа кончается.
41
+ The flow from task to merge: where the guard stands, what moves the work queue column and how the
42
+ work ends.
43
43
 
44
44
  ```mermaid
45
45
  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[Чинится в той же ветке]
46
+ A[Work begins] --> B[A command creates the task and it enters the work queue]
47
+ B --> C[The branch is named by the task number; the column moves in the same motion]
48
+ C --> D{The edit is ready}
49
+ D -->|No| C
50
+ D -->|Yes| E[Main is merged in, the gate set is run whole]
51
+ E --> F{The branch carries a task number}
52
+ F -->|No| G[The delivery guard refuses the opening: nothing in the queue stands behind the edit]
53
+ F -->|Yes| H[The PR opens; what is not ready to merge goes as a draft]
54
+ H --> I[The task column moves to review, the executor takes the next task]
55
+ I --> J{The run and the review are over}
56
+ J -->|Run red| K[Fixed in the same branch]
57
57
  K --> J
58
- J -->|Зелено| L[Папка задачи разбирается последним коммитом, черновик снимается]
59
- L --> M[Слияние нажимает человек: исполнитель просит и называет номер]
58
+ J -->|Green| L[The last commit takes the task folder apart, the draft is lifted]
59
+ L --> M[A person presses the merge: the executor asks and names the number]
60
60
  G --> B
61
61
  ```
62
62
 
63
- ## Как закон применяется здесь
64
-
65
- - **Коммит в главную ветку отбивается гардом.** Гард ищет вызов коммита в любом месте команды
66
- и смотрит текущую ветку на момент запуска, поэтому составная «создать ветку и сразу
67
- коммитить» отклоняется целиком: ветки в момент разбора ещё нет.
68
- - **Ветка без номера задачи MR не открывает.** Гард поставки отбивает `glab mr create` с такой
69
- ветки: локально она законна, но правка из неё — это выкатка, за которой в очереди работ
70
- ничего не стоит. Заводится задача, и работа переносится в ветку с её номером.
71
- - **Главная ветка влита в ветку задачи до открытия MR.** Гард поставки отбивает открытие, пока
72
- вершина главной ветки не стала предком текущей, и называет расхождение числом коммитов. MR с
73
- разошедшейся ветки показывает ревьюверу свою правку вперемешку с чужой, а всё, что автор
74
- проверил до публикации, он проверил от основания, которого в главной ветке уже нет.
75
- - **Несошедшиеся условия поставки называются одним отказом, а не по одному.** Гард копит их все
76
- и печатает разом. Отбитый по первому промаху исполнитель правит основание, повторяет вызов,
77
- упирается в заголовок, правит заголовок, упирается в задачу — и каждый круг стоит ещё одного
78
- вызова, хотя всё несошедшееся было известно уже на первом.
79
- - **Условие, известное в начале работы, спрашивается в начале.** Заведение ветки отбивает
80
- основание, в котором нет вершины главной ветки, и рабочую копию, подписывающую коммиты не той
81
- почтой, что объявило дерево. На пуше и на открытии MR те же проверки остаются вторым рубежом,
82
- но там они стоят дороже: основание чинится вливанием с разбором конфликта, подпись —
83
- переписыванием всей ветки.
84
- - **Судится то основание, которое названо командой, а не вершина рабочей копии.** Ветку заводят
85
- и от вершины главной ветки прямо — этой командой основание как раз и берут свежим, — и гард,
86
- читающий только текущую вершину, отбивал бы её наравне с веткой от вчерашнего дерева.
87
- Основание, о котором дерево ничего не знает, не судится вовсе.
88
- - **Ветка без номера задачи условий поставки не получает.** Локальная ветка под пробу законна, и
89
- требовать от неё свежего основания значило бы отбивать работу, которая в главную не поедет:
90
- MR с такой ветки не откроется.
91
- - **Правка кода отдаётся человеку открытым MR, а не запушенной веткой.** Ветка в списке ветвей
92
- ему не показывается, в дела не приходит и обсуждения не имеет: до открытия MR правки для
93
- человека нет. Открывается он тем же ходом, которым исполнитель говорит, что работу отдаёт, и
94
- в ответе называется номером.
95
- - **Не готовое к слиянию открывается черновиком — `glab mr create --draft`.** Кнопка слияния у
96
- черновика заблокирована самим хостингом, поэтому состояние «выложено на обозрение» и
97
- состояние «можно вливать» перестают выглядеть одинаково. Черновиком идёт всё, что ждёт
98
- прогона конвейера, доработки или ответа на вопрос; вопрос задаётся в самом MR. Признак
99
- черновика здесь — приставка `Draft:` в заголовке, и правится он вместе с ним.
100
- - **Черновик снимается отдельным вызовом — `glab mr update <номер> --ready`.** Им исполнитель
101
- отвечает за готовность: проверки пройдены, доработок не осталось, работа сходится с задачей.
102
- Снятие черновика и просьба влить — один ход, а не два разных дня.
103
- - **Черновик не снимается, пока у MR нет разбора.** Гард поставки смотрит запрошенного ревьювера
104
- и оставленный отзыв: снятый черновик читается как «можно вливать», а вливать некому. Раньше
105
- этого хода спросить негде — до открытия MR ревьювера нет вовсе. В разборе считаются только
106
- запрос и отзыв не от автора: разбор на самого себя разбором не бывает. Судится и вызов без
107
- номера — без него клиент берёт MR текущей ветки, и требование снималось бы одним пробелом;
108
- возврат MR в черновик требования не получает.
109
- - **Заведённая задача подтверждается ответом очереди работ, а не выводом команды заведения.**
110
- Команда отвечает за свои вызовы: она может завести задачу и не довести её до доски, и её
111
- собственный разбор ошибок этот случай называет. Напечатанный номер значит «вызов прошёл», а не
112
- «задача видна тому, кто по ней работает». Спрашивается очередь — по номеру, одним вызовом, — и
113
- ответ читается присутствием задачи на доске, её списком и исполнителем.
114
- - **Номер ветки и номер в заголовке MR сверяются на месте, а состояние задачи — по доске.**
115
- Формат читается из текста команды и работает без сети; существование задачи, её метка
116
- списка, исполнитель, то, что она ещё открыта, и разбор у MR — только когда есть чем спросить.
117
- Нет сети или нет токена — второй ярус молча пропускается: проверка, падающая в самолёте,
118
- перестаёт что-либо значить.
119
- - **Список задачи двигается тем же движением, что и работа.** Ветка заведена — задача
120
- переставляется во взятые в работу, MR открыт — в ждущие разбора; делает это команда
121
- перевода, а не набор вызовов по памяти. Перевод идёт сразу за шагом, который его вызвал:
122
- очередь работ читают между шагами, а не после них.
123
- - **Задача, оставшаяся в первом списке, MR не открывает.** Гард поставки называет её список и
124
- команду перевода: по очереди работ такая задача читается как невзятая, хотя работа по ней
125
- сделана и выложена. На заведении ветки список не спрашивается — там его ещё не двигали, и
126
- требование отбивало бы первую же команду работы вместе с той, которая его и снимает. Имя
127
- первого списка дерево называет само; не названо — список не судится вовсе.
128
- - **На доске стоят задачи, а не MR о них.** Доска показывает, что сделано и что осталось; MR
129
- отвечает на другой вопрос — как именно сделано, — и открывается из задачи, где связь с ним
130
- стоит сама. Карточка MR живёт своей жизнью: метки списка у неё нет, из очереди она не уходит и
131
- остаётся в ней после слияния навсегда. Здесь она заводится проще, чем где-либо: доска
132
- собирается по меткам, и метка списка, поставленная на MR, тут же делает его карточкой.
133
- Находит такие сверка очереди — строкой на каждую.
134
- - **Отставший список находится сверкой очереди, а не глазами.** Сверка судит список по PR
135
- в обе стороны: открытый MR при задаче не в разборе и разбор без открытого MR — оба
136
- расхождения. Момента, когда задачу берут в работу, ей не видно: ветки на доске нет.
137
- - **Ветка с открытой заявкой отстаёт от главной молча.** Гард судит основание один раз — в
138
- минуту открытия; всё, что влилось в главную, пока шёл прогон, зелёный прогон не видит вовсе, и
139
- влитая оттуда заявка приносит в главную ветку сочетание, которое не проверял никто. Отставание
140
- находит сверка очереди работ: она спрашивает у хранилища, на сколько коммитов ветка каждой
141
- открытой заявки позади главной, и называет число.
142
- - **Задачи, чинящиеся одной правкой, сливаются до слияния ветки.** Вторая закрывается как
143
- дубликат со ссылкой на поглотившую, а недостающее из неё дописывается в первую. Закон велит
144
- вторую стереть — здесь это объявленное отступление: стереть задачу хостинг не даёт вовсе, а её
145
- номер остаётся в истории, и ссылка из чужого коммита ведёт в закрытую задачу, а не в пустоту.
146
- После слияния слить уже нельзя: ветка въехала, и откатывается она целиком.
147
- - **Работа, которую одним заходом не закрыть, помечена в двух местах, и они сверяются.** Метка
148
- на доске и строка о заходах с передачей в замысле эпика говорят одно и то же двум читателям:
149
- исполнитель открывает карточку раньше, чем замысел эпика, а планирует по замыслу. Одна пометка без
150
- другой лжёт молча, поэтому сверка очереди судит пару в обе стороны. Помечается только то, что
151
- законно не делится: пометка объёма правом делить не становится.
152
- - **Документ едет в том же коммите, что и правка.** Обход — строка `Docs-skip: <причина>` в
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
- кладёт ни одного другого, так что цену платит тот, кто правил соседний ресурс. Статьёй выше
187
- эта строка не покрывается: сверки нет в конвейере, а значит нет и шага, который она бы
188
- закрывала, — в набор она ставится прямо, а не выводится из его полноты.
189
- - **После вливания главной ветки набор проверок пересматривается по тому, что ветка везёт
190
- теперь.** Вливание меняет состав правки: проверять по тому, что правил автор, — значит
191
- проверять половину, а отвечает ветка целиком. Ветка, не тронувшая ни строки показа, прогоняет
192
- снимки витрин с того момента, как вливание принесло чужую правку оформления.
193
- - **Утверждение о главной ветке делается по удалённой ссылке, а не по локальной.** Локальная
194
- протухает в ту минуту, когда её подтянули в последний раз, и молчит об этом: она не пуста и не
195
- сломана, она описывает вчерашний день. Сравнение веток пишется от `origin/main` целиком —
196
- смешав в одной команде удалённую ссылку для одной стороны и локальную для другой, промах
197
- изнутри выглядит правильным.
198
- - **Удалённую ссылку берут не только слова, но и действия.** Основание новой ветки, счёт влитого
199
- и подтягивание главной судятся по ней же: локальная — снимок последнего подтягивания, и работа,
200
- начатая от неё, стартует от основания, которого в главной уже нет. Влитая ветка при ней числится
201
- невлитой, и уборка кончается списком невлитого, которого нет.
202
- - **Слияние по кнопке «Merge when pipeline succeeds» не заменяет проверок до пуша.** Конвейер
203
- видит только то, что уже отправлено, а отправленная красная ветка занимает очередь работ и
204
- выглядит готовой к разбору.
205
- - **Метки и исполнитель MR ставятся при создании, а не правкой после.** `glab mr create`
206
- принимает их флагами; правка открытого MR второй командой обходится молча, когда токен
207
- учётной записи машинной работы не видит проект целиком.
208
- - **Задача переводится по списку правкой её меток.** Списки доски — это метки: перевод, не
209
- снявший прежнюю метку, оставляет задачу в двух списках сразу, и очередь читается неверно.
210
- - **Сценарии гардов задают настройки git сами, а не берут их с машины.** Коммит во временном
211
- репозитории сценария наследует общий конфиг: если включена подпись, git идёт в агент ключей,
212
- а заблокированный агент роняет весь набор — со стороны это выглядит сломанным гардом. Автор,
213
- почта и подпись передаются флагами `-c` прямо в команду.
214
-
215
- ## Чего из закона здесь нет
216
-
217
- Гард поставки стоит на командах агента, поэтому ветку, заведённую руками в редакторе, он не
218
- видит: имя такой ветки держится памятью. Требование от этого не слабеет — просто отдельной
219
- проверки под него не заводится: работа опознаётся заголовком задачи и PR, а это сверяется
220
- у всех. Сверка очереди имя ветки не судит вовсе: у открытого MR его не переименовать.
221
-
222
- Задачу в работу гард не переводит: доску он не правит — правка доски в разборе команды падала бы
223
- вместе со связью и отбивала бы работу вместо промаха. Перевод держится памятью и подсказкой,
224
- которую печатает команда заведения задачи. Задачу, оставшуюся в первом списке, гард называет на
225
- открытии MR — то есть после того, как её должны были переставить; прочие расхождения списка
226
- находит сверка очереди.
227
-
228
- Свежесть самой вершины главной ветки гард спрашивает вторым ярусом — тем же приёмом, что и
229
- состояние задачи: есть чем спросить, спрашивает; нет сети или доступа — пропускает молча. Первый
230
- ярус при этом остаётся, и работает он без сети: локальная ссылка отвечает на вопрос «отстало ли
231
- основание от того, что уже лежит в дереве», удалённая — на вопрос «не протухла ли сама ссылка».
232
- Без второго яруса молчание гарда значило лишь первое, а читалось как второе.
233
-
234
- ## Паттерны
235
-
236
- - `git-workflow-commit` — задача, ветка, коммит и пуш от учётной записи машинной работы.
237
- - `git-workflow-pr` — открытие MR, черновик и его снятие, описание, ревьювер, метки, состояние.
238
- - `git-workflow-merge` — главная ветка влита в ветку задачи, конфликт разобран.
63
+ ## How the law applies here
64
+
65
+ - **A commit into the main branch is refused by the guard.** The guard looks for a commit call
66
+ anywhere in the command and reads the current branch at launch, so a compound "create a branch and
67
+ commit at once" is rejected whole: the branch does not exist yet at review.
68
+ - **A branch without a task number opens no MR.** The delivery guard refuses `glab mr create` from
69
+ such a branch: locally it is legitimate, but an edit from it is a rollout with nothing behind it
70
+ in the work queue. A task is created, and the work moves to a branch with its number.
71
+ - **The main branch is merged into the task branch before the MR opens.** The delivery guard refuses
72
+ the opening until main's tip is an ancestor of the current branch, and names the divergence as a
73
+ commit count. An MR from a diverged branch shows the reviewer the edit mixed with someone else's,
74
+ and everything the author checked before publishing was checked from a base that main no longer
75
+ has.
76
+ - **Unmet delivery conditions are named in one refusal, not one by one.** The guard collects them
77
+ all and prints them at once. An executor refused on the first miss fixes the base, repeats the
78
+ call, hits the title, fixes the title, hits the task — and every round costs one more call, though
79
+ everything unmet was known on the first.
80
+ - **A condition known at the start of work is asked at the start.** Creating a branch refuses a base
81
+ without main's tip, and a working copy that signs commits with an email other than the one the
82
+ tree declared. At push and at MR opening the same checks stay as a second line, but there they
83
+ cost more: the base is fixed by a merge with conflict resolution, the signature by rewriting the
84
+ whole branch.
85
+ - **The base judged is the one named by the command, not the tip of the working copy.** A branch is
86
+ also created straight from main's tip — that very command takes the base fresh — and a guard
87
+ reading only the current tip would refuse it like a branch off yesterday's tree. A base the tree
88
+ knows nothing of is not judged at all.
89
+ - **A branch without a task number gets no delivery conditions.** A local trial branch is
90
+ legitimate, and demanding a fresh base of it would refuse work that will not go to main: no MR
91
+ opens from such a branch.
92
+ - **A code edit is handed to a person by an open MR, not by a pushed branch.** A branch is not shown
93
+ to them in the branch list, reaches no to-do list and has no discussion: before the MR opens there
94
+ is no edit for a person. It opens in the turn in which the executor says the work is handed over,
95
+ and the reply names it by number.
96
+ - **What is not ready to merge opens as a draft — `glab mr create --draft`.** The host itself locks
97
+ a draft's merge button, so the state "put up for viewing" and the state "may be merged" stop
98
+ looking alike. Everything waiting for a pipeline run, a rework or an answer goes as a draft; the
99
+ question is asked in the MR itself. The draft sign here is the `Draft:` prefix in the title, and
100
+ it is edited together with it.
101
+ - **The draft is lifted by a separate call — `glab mr update <номер> --ready`.** With it the
102
+ executor answers for readiness: checks passed, no rework left, the work matches the task. Lifting
103
+ the draft and asking to merge are one turn, not two days.
104
+ - **The draft is not lifted while the MR has no review.** The delivery guard reads the requested
105
+ reviewer and the review left: a lifted draft reads as "may be merged", and there is nobody to
106
+ merge. Earlier than this turn there is nowhere to ask — before the MR opens there is no reviewer
107
+ at all. Only a request and a review not from the author count as review: a review of oneself is no
108
+ review. A call without a number is judged too — the client then takes the MR of the current
109
+ branch, and one space would lift the requirement; returning an MR to draft gets no requirement.
110
+ - **A created task is confirmed by the work queue's answer, not by the creation command's output.**
111
+ The command answers for its calls: it can create a task and not bring it to the board, and its own
112
+ error handling names that case. A printed number means "the call went through", not "the task is
113
+ visible to whoever works by it". The queue is asked — by number, in one call — and the answer is
114
+ read from the task's presence on the board, its list and its assignee.
115
+ - **The branch number and the MR title number are checked on the spot, the task state — by the
116
+ board.** The format is read from the command text and works offline; the task's existence, its
117
+ list label, assignee, that it is still open, and the MR review — only with something to ask with.
118
+ No network or no token — the second tier is skipped silently: a check that fails on a plane stops
119
+ meaning anything.
120
+ - **The task's list moves in the same motion as the work.** Branch created — the task is moved to in
121
+ progress, MR opened — to in review; the move command does it, not a set of calls from memory. The
122
+ move follows the step that caused it at once: the work queue is read between steps, not after.
123
+ - **A task left in the first list opens no MR.** The delivery guard names its list and the move
124
+ command: by the work queue such a task reads as not taken, though the work on it is done and
125
+ published. At branch creation the list is not asked — nothing has moved it yet, and the
126
+ requirement would refuse the first command of the work together with the one that lifts it. The
127
+ tree names the first list itself; unnamed — the list is not judged at all.
128
+ - **The board holds tasks, not MRs about them.** The board shows what is done and what is left; an
129
+ MR answers another question — how exactly it was done — and opens from the task, where the link to
130
+ it stands by itself. An MR card lives its own life: it has no list label, never leaves the queue
131
+ and stays in it after the merge forever. Here it is created more easily than anywhere: the board
132
+ is assembled by labels, and a list label put on an MR makes it a card at once. The queue audit
133
+ finds such cards, a line each.
134
+ - **A lagging list is found by the queue audit, not by eye.** The audit judges the list by the PR
135
+ both ways: an open MR with the task not in review, and review with no open MR — both
136
+ discrepancies. The moment a task is taken into work it cannot see: the branch is not on the board.
137
+ - **A branch with an open PR lags behind main silently.** The guard judges the base once — at
138
+ opening; what merged into main during the run a green run never sees, and a PR merged from there
139
+ brings main a combination nobody checked. The lag is found by the work queue audit: it asks the
140
+ repository how many commits each open PR's branch is behind main, and names the number.
141
+ - **Tasks fixed by one edit are merged before the branch merge.** The second is closed as a
142
+ duplicate with a link to the one that absorbed it, and the missing from it is added to the first.
143
+ The law orders the second erased — here that is a declared deviation: the host does not let a task
144
+ be erased at all, and its number stays in history, so a link from someone else's commit leads to a
145
+ closed task, not into a void. After the merge there is no merging them: the branch went in, and it
146
+ rolls back whole.
147
+ - **Work that one session cannot close is marked in two places, and they are audited.** The label on
148
+ the board and the line about sessions with a handover in the epic plan say the same to two
149
+ readers: the executor opens the card before the epic plan, and plans by the plan. One mark without
150
+ the other lies silently, so the queue audit judges the pair both ways. Only what legitimately does
151
+ not split is marked: a mark of volume grants no right to split.
152
+ - **A document goes in the same commit as the edit.** The bypass is the line `Docs-skip: <reason>`
153
+ in the commit body; an empty reason is not accepted.
154
+ - **The commit subject is checked against the format on the spot.** A subject parsed by type and
155
+ scope is read as a list, free text — only whole.
156
+ - **Before a push all linters are run, not one.** The code linter usually does not read style files
157
+ at all; without a second run nothing checks the styling rules.
158
+ - **The build is in the set on a par with lint and unit tests.** The linter does not read types, and
159
+ unit tests read only what a test imports: a type error in uncovered code lives until the image
160
+ build — that is, the merge. Four merges in a row went into main that way, breaking the rollout.
161
+ - **On a machine with several runners, any path from the home directory is shared.** A ready-made
162
+ step's default is dangerous precisely because it is shared: a neighbouring run rewrites it to its
163
+ own version while ours stands between steps. Install directory, container name and builder name
164
+ are therefore per project and fixed, and a temporary directory is never the answer — the package
165
+ store lives there.
166
+ - **The push gate set is never narrower than the pipeline set.** The gate is a promise that the push
167
+ will not arrive red; a set with the build and the snapshots thrown out promises what it does not
168
+ check. A pipeline step with neither a line in the gate set nor a declared exclusion with a reason
169
+ refuses the push instead of printing next to it: a printed warning the executor reads as
170
+ permission. Twice in a row an edit that passed the gate whole was refused by the pipeline — and
171
+ both times the green gate was read as "all green locally".
172
+ - **The final set before a push is read from the state review, not assembled in the head.** It is
173
+ assembled from the package default and the tree's override, and there was nothing to read the
174
+ assembly with: the "set before push" section prints it whole, one command per line, and names
175
+ beside it what the default printed and the set did not take. A tree writing its override blind
176
+ added a repeat to it.
177
+ - **An exclusion reason naming a task is judged on whether that task is alive.** A deferral with a
178
+ term and one without look the same until someone asks the number; a dead number in the reason
179
+ makes the exclusion perpetual without saying a line about it. Asked by the same tier as the task
180
+ state at the delivery guard: something to ask with — it asks, no network or access — it skips
181
+ silently.
182
+ - **The layout audit stands in the push gate set on a par with lint and the build.** An edit put
183
+ into the laid-out copy past the source breaks nothing on the day it is made: the tree works, the
184
+ checks are green, and the discrepancy is visible only to whoever calls the audit themselves. It
185
+ piles up silently and surfaces on someone else's work — the layout refuses the edited file whole
186
+ and lays out no other, so the price is paid by whoever edited a neighbouring resource. The article
187
+ above does not cover this line: the audit is not in the pipeline, so there is no step it would
188
+ close — it is put into the set directly, not derived from the set's completeness.
189
+ - **After merging main in, the check set is revised by what the branch now carries.** The merge
190
+ changes the makeup of the edit: checking by what the author edited means checking half, and the
191
+ branch answers whole. A branch that touched no line of the showcase runs showcase snapshots from
192
+ the moment the merge brought someone else's styling edit.
193
+ - **A statement about the main branch is made by the remote ref, not the local one.** The local one
194
+ goes stale the minute it was last pulled, and says nothing about it: it is not empty and not
195
+ broken, it describes yesterday. A branch comparison is written from `origin/main` whole — mixing
196
+ the remote ref for one side and the local one for the other in one command, the miss looks right
197
+ from inside.
198
+ - **The remote ref is taken not only by words but by actions.** A new branch's base, the count of
199
+ the merged and pulling main are judged by it too: the local one is a snapshot of the last pull,
200
+ and work started from it starts from a base main no longer has. A merged branch counts as unmerged
201
+ by it, and cleanup ends with a list of unmerged that is not there.
202
+ - **A merge by the "Merge when pipeline succeeds" button does not replace the checks before a
203
+ push.** The pipeline sees only what is already pushed, and a pushed red branch occupies the work
204
+ queue and looks ready for review.
205
+ - **MR labels and assignee are set at creation, not by an edit after.** `glab mr create` takes them
206
+ as flags; editing an open MR with a second command is bypassed silently when the machine account's
207
+ token does not see the project whole.
208
+ - **A task is moved across lists by editing its labels.** The board's lists are labels: a move that
209
+ did not remove the previous label leaves the task in two lists at once, and the queue reads wrong.
210
+ - **Guard scenarios set the git settings themselves, not take them from the machine.** A commit in
211
+ the scenario's temporary repository inherits the shared config: with signing on, git goes to the
212
+ key agent, and a locked agent brings the whole set down — from outside it looks like a broken
213
+ guard. Author, email and signature are passed as `-c` flags straight into the command.
214
+
215
+ ## What of the law is not here
216
+
217
+ The delivery guard stands on the agent's commands, so it does not see a branch created by hand in
218
+ the editor: its name is held by memory. The requirement is no weaker for that — only no separate
219
+ check is made for it: work is recognised by the task title and the PR, and that is audited for
220
+ everyone. The queue audit never judges the branch name: an open MR's branch cannot be renamed.
221
+
222
+ The guard does not move a task to in progress: it does not edit the board — a board edit during
223
+ command review would fall with the connection and refuse the work instead of the miss. The move is
224
+ held by memory and by the hint the task creation command prints. A task left in the first list the
225
+ guard names at MR opening — that is, after it should have been moved; other list discrepancies the
226
+ queue audit finds.
227
+
228
+ The freshness of main's tip itself the guard asks by the second tier — the same technique as the
229
+ task state: something to ask with — it asks; no network or access — it skips silently. The first
230
+ tier stays and works offline: the local ref answers the question "has the base lagged what already
231
+ lies in the tree", the remote one — "has the ref itself gone stale". Without the second tier the
232
+ guard's silence meant only the first and was read as the second.
233
+
234
+ ## Patterns
235
+
236
+ - `git-workflow-commit` — task, branch, commit and push as the machine account.
237
+ - `git-workflow-pr` — opening an MR, the draft and lifting it, the description, reviewer, labels,
238
+ state.
239
+ - `git-workflow-merge` — main merged into the task branch, the conflict resolved.