@rt-tools/agent-kit 0.24.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (279) hide show
  1. package/assets/agents/business-analyst.md +51 -50
  2. package/assets/agents/conscience.md +37 -35
  3. package/assets/agents/project-manager.md +49 -48
  4. package/assets/agents/prose-editor.md +31 -29
  5. package/assets/agents/qa-engineer.md +50 -48
  6. package/assets/agents/rules-reviewer.md +63 -58
  7. package/assets/agents/skill-curator.md +83 -78
  8. package/assets/agents/spec-critic.md +34 -29
  9. package/assets/agents/spec-writer.md +35 -32
  10. package/assets/agents/strict-teacher.md +39 -37
  11. package/assets/checks/archive-age.mjs +48 -28
  12. package/assets/checks/archive-prune.mjs +16 -14
  13. package/assets/checks/board-epics.github.mjs +75 -41
  14. package/assets/checks/board-folders.mjs +61 -0
  15. package/assets/checks/board-gh.github.mjs +35 -26
  16. package/assets/checks/board-long-work.github.mjs +24 -24
  17. package/assets/checks/board-paths.github.mjs +21 -16
  18. package/assets/checks/board-runs.github.mjs +45 -43
  19. package/assets/checks/board-titles.github.mjs +19 -17
  20. package/assets/checks/board.github.mjs +149 -127
  21. package/assets/checks/check-archive-age.mjs +23 -19
  22. package/assets/checks/check-board.github.mjs +172 -164
  23. package/assets/checks/check-descriptions.mjs +30 -29
  24. package/assets/checks/check-doc-paths.mjs +91 -88
  25. package/assets/checks/check-dupes.mjs +84 -80
  26. package/assets/checks/check-file-size.mjs +74 -71
  27. package/assets/checks/check-glossary.mjs +47 -37
  28. package/assets/checks/check-hook-scope.mjs +30 -27
  29. package/assets/checks/check-lib-layers.mjs +22 -21
  30. package/assets/checks/check-profile-drift.mjs +48 -43
  31. package/assets/checks/check-prose-style.mjs +120 -37
  32. package/assets/checks/check-push-gate.mjs +53 -50
  33. package/assets/checks/check-reuse.mjs +50 -40
  34. package/assets/checks/check-schema-drift.mjs +87 -83
  35. package/assets/checks/check-specs.mjs +155 -134
  36. package/assets/checks/check-state-next.mjs +66 -52
  37. package/assets/checks/check-states.mjs +32 -30
  38. package/assets/checks/check-styles.mjs +52 -51
  39. package/assets/checks/check-turn-map.mjs +54 -46
  40. package/assets/checks/lib-boundaries.mjs +32 -30
  41. package/assets/checks/lib-common.mjs +30 -29
  42. package/assets/checks/lib-domains.mjs +34 -34
  43. package/assets/checks/lib-manifests.mjs +17 -15
  44. package/assets/checks/lib-reexports.mjs +18 -18
  45. package/assets/checks/rt-kit-checks.config.mjs +174 -142
  46. package/assets/checks/signals.mjs +43 -39
  47. package/assets/checks/spec-anchors.mjs +114 -87
  48. package/assets/checks/spec-common.mjs +128 -84
  49. package/assets/checks/spec-contract.mjs +30 -30
  50. package/assets/checks/spec-proposed.mjs +27 -24
  51. package/assets/checks/spec-scenarios.mjs +51 -28
  52. package/assets/checks/task-new.github.mjs +85 -56
  53. package/assets/commands/feedback.md +65 -59
  54. package/assets/commands/next-session.md +64 -57
  55. package/assets/commands/skill-curator.md +83 -79
  56. package/assets/defaults/gate-map.sh +108 -97
  57. package/assets/defaults/project.sh +225 -185
  58. package/assets/defaults/shell.sh +73 -68
  59. package/assets/defaults/turn-map.md +45 -44
  60. package/assets/docs/GLOSSARY.md +142 -65
  61. package/assets/hooks/browser-device-id.sh +12 -12
  62. package/assets/hooks/browser-guard-device-id.sh +30 -28
  63. package/assets/hooks/browser-guard-no-asking.sh +5 -4
  64. package/assets/hooks/browser-guard-no-listing.sh +12 -11
  65. package/assets/hooks/browser-guard-no-other-drivers.sh +48 -42
  66. package/assets/hooks/browser-guard-require-select.sh +34 -23
  67. package/assets/hooks/claim-guard.sh +62 -56
  68. package/assets/hooks/commit-msg.sh +11 -10
  69. package/assets/hooks/conscience-guard.sh +91 -45
  70. package/assets/hooks/constitution-index.sh +16 -16
  71. package/assets/hooks/deny-tail.sh +28 -26
  72. package/assets/hooks/dev-server-guard.sh +46 -43
  73. package/assets/hooks/dispatch.sh +60 -46
  74. package/assets/hooks/docs-guard.sh +100 -91
  75. package/assets/hooks/exam-guard.sh +105 -93
  76. package/assets/hooks/git-guard-delivery-conflict.sh +38 -36
  77. package/assets/hooks/git-guard-delivery-draft.sh +45 -38
  78. package/assets/hooks/git-guard-delivery-folder.sh +50 -43
  79. package/assets/hooks/git-guard-delivery-signature.sh +88 -52
  80. package/assets/hooks/git-guard-delivery.sh +196 -180
  81. package/assets/hooks/git-guard-main.sh +38 -34
  82. package/assets/hooks/git-guard-push-tests.sh +99 -87
  83. package/assets/hooks/glossary-load.sh +23 -22
  84. package/assets/hooks/grill-gate-ask.sh +12 -11
  85. package/assets/hooks/grill-gate.sh +94 -87
  86. package/assets/hooks/guard-note.sh +20 -19
  87. package/assets/hooks/handoff-entry-guard.sh +26 -24
  88. package/assets/hooks/handoff-write.sh +74 -67
  89. package/assets/hooks/hook-input.sh +67 -58
  90. package/assets/hooks/lint-after-edit.sh +95 -61
  91. package/assets/hooks/observe.sh +28 -26
  92. package/assets/hooks/override-write-guard.sh +23 -21
  93. package/assets/hooks/postmortem-guard.sh +42 -39
  94. package/assets/hooks/profile-check.sh +22 -20
  95. package/assets/hooks/proposal-guard.sh +57 -49
  96. package/assets/hooks/prose-style-guard.sh +19 -17
  97. package/assets/hooks/qa-dataid-guard.sh +52 -49
  98. package/assets/hooks/rerun-guard.sh +31 -30
  99. package/assets/hooks/reuse-first-guard.sh +108 -87
  100. package/assets/hooks/roles.sh +14 -14
  101. package/assets/hooks/rule-article.sh +36 -34
  102. package/assets/hooks/rule-source-guard.sh +47 -42
  103. package/assets/hooks/skill-gate-layers.sh +59 -57
  104. package/assets/hooks/skill-gate-rearm.sh +15 -8
  105. package/assets/hooks/skill-gate.sh +89 -81
  106. package/assets/hooks/skill-loaded.sh +6 -6
  107. package/assets/hooks/sql-guard-parse.sh +68 -66
  108. package/assets/hooks/sql-guard-request.sh +48 -46
  109. package/assets/hooks/sql-guard-target.sh +57 -51
  110. package/assets/hooks/sql-guard-write.sh +84 -79
  111. package/assets/hooks/sql-guard.sh +52 -47
  112. package/assets/hooks/stand-login-guard.sh +40 -37
  113. package/assets/hooks/task-context-load.sh +60 -55
  114. package/assets/hooks/task-flow-context.sh +87 -69
  115. package/assets/hooks/task-flow-draft-guard.sh +55 -48
  116. package/assets/hooks/task-flow-guard.sh +67 -64
  117. package/assets/hooks/turn-entry-load.sh +39 -32
  118. package/assets/hooks/turn-exit-guard.sh +256 -204
  119. package/assets/hooks/turn-exit-patterns.sh +53 -0
  120. package/assets/hooks/utf8.sh +11 -11
  121. package/assets/hooks/waiting-turn-guard.sh +94 -94
  122. package/assets/hooks/window-fill-guard.sh +70 -62
  123. package/assets/hooks/work-start-guard.sh +52 -49
  124. package/assets/hooks/write-targets.sh +96 -44
  125. package/assets/laws/autonomous-work.md +29 -27
  126. package/assets/laws/code-structure.md +31 -30
  127. package/assets/laws/delivery.md +148 -137
  128. package/assets/laws/entity-editing.md +52 -50
  129. package/assets/laws/entity-models.md +14 -13
  130. package/assets/laws/frontend-application.md +39 -38
  131. package/assets/laws/lib-imports.md +27 -27
  132. package/assets/laws/lists.md +31 -29
  133. package/assets/laws/navigation.md +37 -37
  134. package/assets/laws/observability.md +41 -40
  135. package/assets/laws/project-documentation.md +106 -99
  136. package/assets/laws/reuse-first.md +31 -29
  137. package/assets/laws/shared-code.md +27 -27
  138. package/assets/laws/verifiability.md +131 -124
  139. package/assets/laws/work-conduct.md +250 -244
  140. package/assets/patterns/admin-lists-screen.md +72 -69
  141. package/assets/patterns/admin-nav-item.md +51 -46
  142. package/assets/patterns/angular-patterns-state.md +32 -31
  143. package/assets/patterns/api-layer-pair.md +33 -31
  144. package/assets/patterns/autonomous-work-run.md +50 -49
  145. package/assets/patterns/browser-verification-measure.md +124 -88
  146. package/assets/patterns/browser-verification-stand.md +169 -157
  147. package/assets/patterns/component-structure-new.md +51 -42
  148. package/assets/patterns/dependencies-upgrade.md +55 -39
  149. package/assets/patterns/doc-style-human.md +55 -37
  150. package/assets/patterns/doc-style-sweep.md +82 -79
  151. package/assets/patterns/doc-style-trace.md +87 -81
  152. package/assets/patterns/doc-style-write.md +130 -122
  153. package/assets/patterns/entity-aside.md +77 -63
  154. package/assets/patterns/entity-models-new.md +37 -37
  155. package/assets/patterns/entity-store.md +33 -33
  156. package/assets/patterns/git-workflow-commit.azure.md +93 -86
  157. package/assets/patterns/git-workflow-commit.github.md +152 -141
  158. package/assets/patterns/git-workflow-commit.gitlab.md +95 -89
  159. package/assets/patterns/git-workflow-docker.md +165 -147
  160. package/assets/patterns/git-workflow-freshness.md +45 -45
  161. package/assets/patterns/git-workflow-merge.md +98 -93
  162. package/assets/patterns/git-workflow-migration.md +54 -52
  163. package/assets/patterns/git-workflow-pr-ready.md +57 -56
  164. package/assets/patterns/git-workflow-pr.azure.md +126 -121
  165. package/assets/patterns/git-workflow-pr.github.md +179 -175
  166. package/assets/patterns/git-workflow-pr.gitlab.md +138 -131
  167. package/assets/patterns/git-workflow-restart.md +35 -31
  168. package/assets/patterns/git-workflow-secrets.md +80 -73
  169. package/assets/patterns/git-workflow-stack.md +131 -106
  170. package/assets/patterns/lib-layers-move.md +62 -53
  171. package/assets/patterns/lib-layers-new.md +59 -45
  172. package/assets/patterns/observability-record.md +72 -67
  173. package/assets/patterns/platform-access-di.md +31 -29
  174. package/assets/patterns/reuse-first-extend.md +66 -61
  175. package/assets/patterns/shared-code-new.md +39 -38
  176. package/assets/patterns/spec-driven-domain.md +161 -151
  177. package/assets/patterns/spec-driven-rule.md +179 -168
  178. package/assets/patterns/spec-driven-sweep.md +41 -39
  179. package/assets/patterns/status-report-table.github.md +37 -36
  180. package/assets/patterns/styling-bem-component.md +42 -42
  181. package/assets/patterns/styling-bem-layout.md +39 -34
  182. package/assets/patterns/styling-bem-sheet.md +59 -58
  183. package/assets/patterns/task-flow-archive.md +222 -215
  184. package/assets/patterns/task-flow-close.md +215 -203
  185. package/assets/patterns/task-flow-handoff.md +154 -145
  186. package/assets/patterns/task-flow-resume.md +138 -133
  187. package/assets/patterns/task-flow-start.md +204 -192
  188. package/assets/patterns/testing-e2e.md +102 -101
  189. package/assets/patterns/testing-unit.md +77 -70
  190. package/assets/patterns/ts-procedure.md +32 -29
  191. package/assets/patterns/turn-entry-map.md +50 -48
  192. package/assets/pitfalls/agent-kit.md +152 -141
  193. package/assets/pitfalls/doc-style.md +96 -91
  194. package/assets/pitfalls/git-workflow.azure.md +49 -46
  195. package/assets/pitfalls/git-workflow.github.md +264 -234
  196. package/assets/pitfalls/git-workflow.gitlab.md +49 -45
  197. package/assets/pitfalls/spec-driven.md +73 -71
  198. package/assets/pitfalls/styling-bem.md +46 -40
  199. package/assets/pitfalls/task-flow.md +262 -246
  200. package/assets/pitfalls/testing.md +99 -92
  201. package/assets/pitfalls/turn-conduct.md +96 -81
  202. package/assets/rules/angular-patterns.md +81 -80
  203. package/assets/rules/api-layer.md +77 -74
  204. package/assets/rules/autonomous-work.md +75 -74
  205. package/assets/rules/browser-verification.md +223 -214
  206. package/assets/rules/component-structure.md +72 -69
  207. package/assets/rules/dependencies.md +74 -67
  208. package/assets/rules/deploy-flow.azure.md +118 -108
  209. package/assets/rules/deploy-flow.github.md +145 -135
  210. package/assets/rules/deploy-flow.gitlab.md +120 -110
  211. package/assets/rules/doc-style.md +198 -173
  212. package/assets/rules/entity-conventions.needs-admin.md +81 -79
  213. package/assets/rules/entity-models.md +73 -70
  214. package/assets/rules/git-workflow.azure.md +224 -228
  215. package/assets/rules/git-workflow.github.md +250 -239
  216. package/assets/rules/git-workflow.gitlab.md +218 -217
  217. package/assets/rules/lib-layers.md +85 -86
  218. package/assets/rules/lists.md +101 -97
  219. package/assets/rules/navigation.md +78 -78
  220. package/assets/rules/observability.needs-app.md +165 -153
  221. package/assets/rules/platform-access.md +76 -75
  222. package/assets/rules/reuse-first.md +153 -143
  223. package/assets/rules/shared-code.md +82 -79
  224. package/assets/rules/spec-driven.md +272 -260
  225. package/assets/rules/status-report.md +55 -58
  226. package/assets/rules/styling-bem.md +81 -77
  227. package/assets/rules/task-flow.md +282 -270
  228. package/assets/rules/testing.md +224 -209
  229. package/assets/rules/turn-conduct.md +255 -258
  230. package/assets/rules/turn-entry.md +92 -87
  231. package/assets/rules/typescript-conventions.md +94 -88
  232. package/assets/samples/specs/_template/spec.md +47 -47
  233. package/assets/samples/tasks/_template/grill.md +20 -20
  234. package/assets/samples/tasks/_template/plan.md +32 -30
  235. package/assets/samples/tasks/_template/progress.md +16 -16
  236. package/assets/skills/agent-kit-extend.md +129 -113
  237. package/assets/skills/agent-kit.md +235 -211
  238. package/assets/skills/write-a-skill.md +76 -71
  239. package/assets/templates/findings.md +19 -19
  240. package/assets/templates/gate-map.sh +16 -14
  241. package/assets/templates/implementation.md +28 -27
  242. package/assets/templates/pattern.md +17 -17
  243. package/assets/templates/pitfalls.md +6 -6
  244. package/assets/templates/postmortem.md +24 -23
  245. package/assets/templates/project.sh +24 -24
  246. package/assets/templates/proposal.md +62 -60
  247. package/assets/templates/rule.md +38 -38
  248. package/assets/workflows/feature.js +46 -46
  249. package/assets/workflows/plan.js +54 -54
  250. package/lib/catalog.d.ts +2 -0
  251. package/lib/catalog.d.ts.map +1 -1
  252. package/lib/catalog.js +4 -3
  253. package/lib/catalog.js.map +1 -1
  254. package/lib/commands.d.ts.map +1 -1
  255. package/lib/commands.js +5 -2
  256. package/lib/commands.js.map +1 -1
  257. package/lib/companion.js +3 -2
  258. package/lib/companion.js.map +1 -1
  259. package/lib/enroll.d.ts +7 -1
  260. package/lib/enroll.d.ts.map +1 -1
  261. package/lib/enroll.js +12 -3
  262. package/lib/enroll.js.map +1 -1
  263. package/lib/plan.d.ts +11 -0
  264. package/lib/plan.d.ts.map +1 -1
  265. package/lib/plan.js +10 -1
  266. package/lib/plan.js.map +1 -1
  267. package/lib/ship.d.ts +0 -7
  268. package/lib/ship.d.ts.map +1 -1
  269. package/lib/ship.js +10 -2
  270. package/lib/ship.js.map +1 -1
  271. package/lib/shipment.d.ts.map +1 -1
  272. package/lib/shipment.js +6 -2
  273. package/lib/shipment.js.map +1 -1
  274. package/lib/sync.d.ts.map +1 -1
  275. package/lib/sync.js +45 -11
  276. package/lib/sync.js.map +1 -1
  277. package/package.json +1 -1
  278. package/rt-tools-agent-kit-0.26.0.tgz +0 -0
  279. package/rt-tools-agent-kit-0.24.0.tgz +0 -0
@@ -2,91 +2,92 @@
2
2
  name: autonomous-work
3
3
  kind: rule
4
4
  law: autonomous-work
5
- description: Правило под «Закон об автономном заходе». Брать, когда владелец ушёл и просил работать самостоятельно: череда веток, умолчание вместо вопроса, местная работа без отдачи наружу, список сделанного к утру. Паттерн autonomous-work-run. Ход одной работы — правило task-flow.
5
+ description: Rule under the autonomous-work law. Load when the owner has left and asked for unattended work — a chain of branches, a default instead of a question, local work with nothing pushed outside, a list of what was done by morning. Pattern autonomous-work-run. One piece of work — rule task-flow.
6
6
  ---
7
7
 
8
- # Автономный заход — как это устроено здесь
8
+ # Autonomous work — how it works here
9
9
 
10
- Правило под закон `docs/constitution/autonomous-work.md`. Закон говорит, что должно быть верно,
11
- когда владельца нет рядом; здесь — чем это названо в дереве и что меняется в обычном ходе
12
- работы. Сам ход работы — правило `task-flow`, конец хода — `turn-conduct`, поставка —
13
- `git-workflow`: автономный заход их не отменяет, а сужает.
10
+ Rule under the law `docs/constitution/autonomous-work.md`. The law says what must be true when the
11
+ owner is not around; here — what it is called in the tree and what changes in the ordinary course of
12
+ work. The course of work itself — rule `task-flow`, the end of a turn — `turn-conduct`, delivery —
13
+ `git-workflow`: an autonomous session does not cancel them, it narrows them.
14
14
 
15
- ## Как это называется здесь
15
+ ## What it is called here
16
16
 
17
- | В законе | Здесь |
18
- | ----------------------------- | ---------------------------------------------------------------------------- |
19
- | автономный заход | просьба владельца работать без него, названная словами и границей по времени |
20
- | умолчание вместо вопроса | строка «Решения» в разборе просьбы: принятое, довод и цена ошибки |
21
- | работа, видная снаружи | пуш ветки, открытие заявки, слияние, публикация пакета, отправка груза |
22
- | череда | ветка каждой следующей работы заводится от ветки предыдущей |
23
- | список к утру | последняя реплика захода: работа, ветка, чем подтверждена, чего ждёт |
24
- | отложенная работа | задача, которой нужно слово владельца: состояние на борде не двигается |
17
+ | In the law | Here |
18
+ | --- | --- |
19
+ | an autonomous session | the owner's request to work without them, stated in words and with a time boundary |
20
+ | a default instead of a question | a "Decisions" line in the grill: what was taken, the reason and the cost of a mistake |
21
+ | work visible from outside | pushing a branch, opening a PR, merging, publishing the package, sending cargo |
22
+ | a chain | the branch of each next piece of work is created from the branch of the previous one |
23
+ | the morning list | the last message of the session: the work, the branch, what backs it, what it waits for |
24
+ | postponed work | a task that needs the owner's word: its state on the board does not move |
25
25
 
26
- ## Где это лежит
26
+ ## Where it lives
27
27
 
28
- В этом дереве — таблица в `implementation.md` рядом: чем объявляется автономный заход, где
29
- ведётся список к утру и какой ключ у задач череды. Пути живут там, а не здесь: правило
30
- переносится между репозиториями, а раскладка у каждого дерева своя.
28
+ In this tree — the table in `implementation.md` next to it: how an autonomous session is declared,
29
+ where the morning list is kept and what key the chain's tasks have. Paths live there, not here: the
30
+ rule travels between repositories, and each tree has its own layout.
31
31
 
32
- ## Ход
32
+ ## Flow
33
33
 
34
34
  ```mermaid
35
35
  flowchart TD
36
- A[Владелец объявил автономный заход] --> B[Берётся задача из очереди работ]
37
- B --> C{Нужно слово владельца}
38
- C -->|Да| D[Задача откладывается целиком, довод пишется в список к утру]
39
- C -->|Нет| E[Ветка заводится от предыдущей работы, а не от главной]
40
- E --> F[Папка задачи, разбор просьбы с умолчаниями, замысел]
41
- F --> G[Работа этапами; каждый этап кончается коммитом]
42
- G --> H{Признак готовности проверяется командой}
43
- H -->|Нет команды| D
44
- H -->|Есть| I[Прогон; красное чинится в той же ветке]
45
- I --> J[Папка задачи разбирается в описание прошлого]
46
- J --> K{Ночь не кончилась}
47
- K -->|Да| B
48
- K -->|Нет| L[Список к утру: что сделано, где лежит, чем подтверждено, чего ждёт]
36
+ A[The owner declared an autonomous session] --> B[A task is taken from the work queue]
37
+ B --> C{The owner's word is needed}
38
+ C -->|Yes| D[The task is postponed whole, the reason goes into the morning list]
39
+ C -->|No| E[The branch is created from the previous work, not from main]
40
+ E --> F[Task folder, grill with defaults, plan]
41
+ F --> G[Work by stages; each stage ends with a commit]
42
+ G --> H{The readiness sign is checked by a command}
43
+ H -->|No command| D
44
+ H -->|There is one| I[Run; red is fixed in the same branch]
45
+ I --> J[The task folder is taken apart into the archive]
46
+ J --> K{The night is not over}
47
+ K -->|Yes| B
48
+ K -->|No| L[Morning list: what was done, where it lies, what backs it, what it waits for]
49
49
  D --> K
50
50
  ```
51
51
 
52
- ## Как закон применяется здесь
53
-
54
- - **Ветка следующей работы заводится от предыдущей, а не от главной.** Первая — от главной,
55
- каждая следующая — от вершины прошлой: `git checkout -b <ключ>-<номер>-<slug> <прошлая ветка>`.
56
- Владелец вливает их по очереди снизу вверх, и заявка каждой стоит на предыдущей.
57
- - **Наружу за ночь не уходит ничего.** Ни пуша, ни заявки, ни слияния, ни публикации, ни
58
- отправки груза в приём: всё это видно другим, а отменяет их человек. Отметки груза,
59
- требующие слияния, тоже ждут — они утверждают то, чего в главной ветке ещё нет.
60
- - **Задача, которой нужно слово владельца, не берётся вовсе.** Её состояние на борде не
61
- двигается: взятая и отложенная задача выглядит начатой, а следующий заход её пропускает.
62
- - **Умолчание записывается там же, где записался бы ответ владельца.** Строкой в разборе
63
- просьбы: что принято, почему и что будет стоить ошибка. Молчаливое умолчание неотличимо от
64
- знания.
65
- - **Признак готовности называется командой до начала этапа.** Взгляд исполнителя в автономном
66
- заходе не подтверждает ничего: проверить его некому до утра.
67
- - **Красный прогон чинится в той же ветке, а не откладывается.** Отложенный, он достаётся
68
- владельцу вместе с веткой, которую нельзя влить.
69
- - **Отказ стража — шаг работы, а не конец захода.** Он называет пропущенное; пропущенное
70
- делается, и работа идёт дальше. Обход стража остаётся запрещённым и в автономном заходе.
71
- - **Список к утру пишется по ходу, а не вспоминается в конце.** Каждая закрытая работа
72
- дописывает свою строку: ночь длиннее окна, и вспомнить её целиком к утру нечем.
73
-
74
- ## Чего из закона здесь нет
75
-
76
- Границы захода по времени не проверяет ничто: заход кончается тогда, когда кончилась работа или
77
- владелец сказал слово. Соблюдение запрета на видимое снаружи держится тем же — правилом, а не
78
- стражем: команда пуша ничем не отличается от той, что делается днём.
79
-
80
- ## Паттерны
81
-
82
- - `autonomous-work-run` — готовый цикл ночи: череда веток, запись умолчания, список к утру,
83
- разбор отказа стража.
84
-
85
- ## Ловушки
86
-
87
- - **Ветка, заведённая от главной по привычке, ломает череду.** Заметно это только у владельца и
88
- только на втором вливании; чинится перезаведением ветки, пока работа не ушла далеко.
89
- - **Задача, отложенная без строки в списке, теряется.** Утром её не видно ни на борде, ни в
90
- ветках: она выглядит просто не взятой.
91
- - **Умолчание, записанное в теле коммита, до владельца не доходит.** Он читает список и папку
92
- задачи, а не историю ветки.
52
+ ## How the law applies here
53
+
54
+ - **The branch of the next work is created from the previous one, not from main.** The first — from
55
+ main, each next — from the tip of the previous: `git checkout -b <ключ>-<номер>-<slug> <прошлая
56
+ ветка>`. The owner merges them in turn from the bottom up, and each PR stands on the previous one.
57
+ - **Nothing goes outside during the night.** No push, no PR, no merge, no publishing, no sending
58
+ cargo to the intake: all of it is visible to others, and a person cancels it. Cargo marks that
59
+ need a merge wait too — they assert what is not yet in main.
60
+ - **A task that needs the owner's word is not taken at all.** Its state on the board does not move:
61
+ a task taken and postponed looks begun, and the next session skips it.
62
+ - **A default is written where the owner's answer would have been written.** As a line in the grill:
63
+ what was taken, why and what a mistake will cost. A silent default cannot be told from knowledge.
64
+ - **The readiness sign is named as a command before the stage begins.** The executor's look confirms
65
+ nothing in an autonomous session: there is nobody to check it until morning.
66
+ - **A red run is fixed in the same branch, not postponed.** Postponed, it reaches the owner together
67
+ with a branch that cannot be merged.
68
+ - **A guard's refusal is a work step, not the end of the session.** It names what was skipped; the
69
+ skipped is done, and the work goes on. Bypassing a guard stays forbidden in an autonomous session
70
+ too.
71
+ - **The morning list is written along the way, not recalled at the end.** Each closed piece of work
72
+ appends its line: the night is longer than the window, and there is nothing to recall it whole by
73
+ in the morning.
74
+
75
+ ## What of the law is not here
76
+
77
+ Nothing checks the session's time boundary: the session ends when the work is over or the owner said
78
+ a word. Keeping the ban on what is visible from outside is held the same way — by the rule, not by a
79
+ guard: the push command is no different from the one made by day.
80
+
81
+ ## Patterns
82
+
83
+ - `autonomous-work-run` — the ready-made night cycle: the chain of branches, writing a default, the
84
+ morning list, handling a guard's refusal.
85
+
86
+ ## Pitfalls
87
+
88
+ - **A branch created from main by habit breaks the chain.** This shows only to the owner and only at
89
+ the second merge; it is fixed by re-creating the branch while the work has not gone far.
90
+ - **A task postponed without a line in the list is lost.** In the morning it is seen neither on the
91
+ board nor in the branches: it looks simply not taken.
92
+ - **A default written in the commit body does not reach the owner.** They read the list and the task
93
+ folder, not the branch history.