@rt-tools/agent-kit 0.23.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/README.md +8 -2
  2. package/assets/agents/business-analyst.md +51 -50
  3. package/assets/agents/conscience.md +37 -35
  4. package/assets/agents/project-manager.md +49 -48
  5. package/assets/agents/prose-editor.md +31 -29
  6. package/assets/agents/qa-engineer.md +50 -48
  7. package/assets/agents/rules-reviewer.md +63 -58
  8. package/assets/agents/skill-curator.md +83 -78
  9. package/assets/agents/spec-critic.md +34 -29
  10. package/assets/agents/spec-writer.md +35 -32
  11. package/assets/agents/strict-teacher.md +39 -37
  12. package/assets/checks/archive-age.mjs +48 -28
  13. package/assets/checks/archive-prune.mjs +16 -14
  14. package/assets/checks/board-epics.github.mjs +75 -41
  15. package/assets/checks/board-folders.mjs +61 -0
  16. package/assets/checks/board-gh.github.mjs +35 -26
  17. package/assets/checks/board-long-work.github.mjs +24 -24
  18. package/assets/checks/board-paths.github.mjs +21 -16
  19. package/assets/checks/board-runs.github.mjs +45 -43
  20. package/assets/checks/board-titles.github.mjs +19 -17
  21. package/assets/checks/board.github.mjs +150 -128
  22. package/assets/checks/check-archive-age.mjs +23 -19
  23. package/assets/checks/check-board.github.mjs +179 -157
  24. package/assets/checks/check-descriptions.mjs +30 -29
  25. package/assets/checks/check-doc-paths.mjs +104 -82
  26. package/assets/checks/check-dupes.mjs +84 -80
  27. package/assets/checks/check-file-size.mjs +79 -70
  28. package/assets/checks/check-glossary.mjs +47 -37
  29. package/assets/checks/check-hook-scope.mjs +30 -27
  30. package/assets/checks/check-lib-layers.mjs +22 -21
  31. package/assets/checks/check-profile-drift.mjs +48 -43
  32. package/assets/checks/check-prose-style.mjs +125 -33
  33. package/assets/checks/check-push-gate.mjs +53 -50
  34. package/assets/checks/check-reuse.mjs +50 -40
  35. package/assets/checks/check-schema-drift.mjs +87 -83
  36. package/assets/checks/check-specs.mjs +155 -134
  37. package/assets/checks/check-state-next.mjs +66 -52
  38. package/assets/checks/check-states.mjs +32 -30
  39. package/assets/checks/check-styles.mjs +52 -51
  40. package/assets/checks/check-turn-map.mjs +54 -46
  41. package/assets/checks/lib-boundaries.mjs +32 -30
  42. package/assets/checks/lib-common.mjs +30 -29
  43. package/assets/checks/lib-domains.mjs +34 -34
  44. package/assets/checks/lib-manifests.mjs +17 -15
  45. package/assets/checks/lib-reexports.mjs +18 -18
  46. package/assets/checks/rt-kit-checks.config.mjs +174 -142
  47. package/assets/checks/signals.mjs +43 -39
  48. package/assets/checks/spec-anchors.mjs +114 -87
  49. package/assets/checks/spec-common.mjs +128 -84
  50. package/assets/checks/spec-contract.mjs +30 -30
  51. package/assets/checks/spec-proposed.mjs +27 -24
  52. package/assets/checks/spec-scenarios.mjs +51 -28
  53. package/assets/checks/task-new.github.mjs +85 -56
  54. package/assets/commands/feedback.md +65 -59
  55. package/assets/commands/next-session.md +64 -57
  56. package/assets/commands/skill-curator.md +83 -79
  57. package/assets/defaults/gate-map.sh +115 -91
  58. package/assets/defaults/project.sh +228 -178
  59. package/assets/defaults/shell.sh +85 -65
  60. package/assets/defaults/turn-map.md +45 -44
  61. package/assets/docs/GLOSSARY.md +142 -65
  62. package/assets/hooks/browser-device-id.sh +12 -12
  63. package/assets/hooks/browser-guard-device-id.sh +46 -14
  64. package/assets/hooks/browser-guard-no-asking.sh +5 -4
  65. package/assets/hooks/browser-guard-no-listing.sh +12 -11
  66. package/assets/hooks/browser-guard-no-other-drivers.sh +48 -42
  67. package/assets/hooks/browser-guard-require-select.sh +34 -23
  68. package/assets/hooks/claim-guard.sh +62 -56
  69. package/assets/hooks/commit-msg.sh +11 -10
  70. package/assets/hooks/conscience-guard.sh +91 -45
  71. package/assets/hooks/constitution-index.sh +16 -16
  72. package/assets/hooks/deny-tail.sh +28 -26
  73. package/assets/hooks/dev-server-guard.sh +46 -43
  74. package/assets/hooks/dispatch.sh +84 -39
  75. package/assets/hooks/docs-guard.sh +105 -86
  76. package/assets/hooks/exam-guard.sh +146 -84
  77. package/assets/hooks/git-guard-delivery-conflict.sh +38 -36
  78. package/assets/hooks/git-guard-delivery-draft.sh +85 -0
  79. package/assets/hooks/git-guard-delivery-folder.sh +50 -43
  80. package/assets/hooks/git-guard-delivery-signature.sh +88 -52
  81. package/assets/hooks/git-guard-delivery.sh +207 -253
  82. package/assets/hooks/git-guard-main.sh +65 -26
  83. package/assets/hooks/git-guard-push-tests.sh +133 -75
  84. package/assets/hooks/glossary-load.sh +23 -22
  85. package/assets/hooks/grill-gate-ask.sh +12 -11
  86. package/assets/hooks/grill-gate.sh +94 -87
  87. package/assets/hooks/guard-note.sh +20 -19
  88. package/assets/hooks/handoff-entry-guard.sh +26 -24
  89. package/assets/hooks/handoff-write.sh +74 -67
  90. package/assets/hooks/hook-input.sh +70 -50
  91. package/assets/hooks/lint-after-edit.sh +95 -61
  92. package/assets/hooks/observe.sh +28 -26
  93. package/assets/hooks/override-write-guard.sh +23 -21
  94. package/assets/hooks/postmortem-guard.sh +42 -39
  95. package/assets/hooks/profile-check.sh +22 -20
  96. package/assets/hooks/proposal-guard.sh +57 -49
  97. package/assets/hooks/prose-style-guard.sh +19 -17
  98. package/assets/hooks/qa-dataid-guard.sh +52 -49
  99. package/assets/hooks/rerun-guard.sh +31 -30
  100. package/assets/hooks/reuse-first-guard.sh +108 -87
  101. package/assets/hooks/roles.sh +14 -14
  102. package/assets/hooks/rule-article.sh +36 -34
  103. package/assets/hooks/rule-source-guard.sh +52 -36
  104. package/assets/hooks/skill-gate-layers.sh +59 -57
  105. package/assets/hooks/skill-gate-rearm.sh +15 -8
  106. package/assets/hooks/skill-gate.sh +89 -81
  107. package/assets/hooks/skill-loaded.sh +6 -6
  108. package/assets/hooks/sql-guard-parse.sh +68 -66
  109. package/assets/hooks/sql-guard-request.sh +48 -46
  110. package/assets/hooks/sql-guard-target.sh +57 -51
  111. package/assets/hooks/sql-guard-write.sh +84 -79
  112. package/assets/hooks/sql-guard.sh +52 -47
  113. package/assets/hooks/stand-login-guard.sh +104 -0
  114. package/assets/hooks/task-context-load.sh +60 -55
  115. package/assets/hooks/task-flow-context.sh +87 -69
  116. package/assets/hooks/task-flow-draft-guard.sh +55 -48
  117. package/assets/hooks/task-flow-guard.sh +67 -64
  118. package/assets/hooks/turn-entry-load.sh +39 -32
  119. package/assets/hooks/turn-exit-guard.sh +256 -204
  120. package/assets/hooks/turn-exit-patterns.sh +53 -0
  121. package/assets/hooks/utf8.sh +11 -11
  122. package/assets/hooks/waiting-turn-guard.sh +94 -94
  123. package/assets/hooks/window-fill-guard.sh +70 -62
  124. package/assets/hooks/work-start-guard.sh +52 -49
  125. package/assets/hooks/write-targets.sh +115 -30
  126. package/assets/laws/autonomous-work.md +29 -27
  127. package/assets/laws/code-structure.md +31 -30
  128. package/assets/laws/delivery.md +148 -137
  129. package/assets/laws/entity-editing.md +52 -50
  130. package/assets/laws/entity-models.md +14 -13
  131. package/assets/laws/frontend-application.md +39 -38
  132. package/assets/laws/lib-imports.md +27 -27
  133. package/assets/laws/lists.md +31 -29
  134. package/assets/laws/navigation.md +37 -37
  135. package/assets/laws/observability.md +41 -40
  136. package/assets/laws/project-documentation.md +106 -99
  137. package/assets/laws/reuse-first.md +31 -29
  138. package/assets/laws/shared-code.md +27 -27
  139. package/assets/laws/verifiability.md +131 -114
  140. package/assets/laws/work-conduct.md +250 -250
  141. package/assets/patterns/admin-lists-screen.md +72 -69
  142. package/assets/patterns/admin-nav-item.md +51 -46
  143. package/assets/patterns/angular-patterns-state.md +32 -31
  144. package/assets/patterns/api-layer-pair.md +33 -31
  145. package/assets/patterns/autonomous-work-run.md +50 -49
  146. package/assets/patterns/browser-verification-measure.md +143 -67
  147. package/assets/patterns/browser-verification-stand.md +181 -128
  148. package/assets/patterns/component-structure-new.md +51 -42
  149. package/assets/patterns/dependencies-upgrade.md +55 -39
  150. package/assets/patterns/doc-style-human.md +93 -0
  151. package/assets/patterns/doc-style-sweep.md +82 -79
  152. package/assets/patterns/doc-style-trace.md +87 -81
  153. package/assets/patterns/doc-style-write.md +130 -122
  154. package/assets/patterns/entity-aside.md +77 -63
  155. package/assets/patterns/entity-models-new.md +37 -37
  156. package/assets/patterns/entity-store.md +33 -33
  157. package/assets/patterns/git-workflow-commit.azure.md +94 -75
  158. package/assets/patterns/git-workflow-commit.github.md +153 -129
  159. package/assets/patterns/git-workflow-commit.gitlab.md +96 -78
  160. package/assets/patterns/git-workflow-docker.md +165 -147
  161. package/assets/patterns/git-workflow-freshness.md +45 -45
  162. package/assets/patterns/git-workflow-merge.md +99 -86
  163. package/assets/patterns/git-workflow-migration.md +54 -52
  164. package/assets/patterns/git-workflow-pr-ready.md +57 -56
  165. package/assets/patterns/git-workflow-pr.azure.md +126 -121
  166. package/assets/patterns/git-workflow-pr.github.md +179 -175
  167. package/assets/patterns/git-workflow-pr.gitlab.md +138 -131
  168. package/assets/patterns/git-workflow-restart.md +35 -31
  169. package/assets/patterns/git-workflow-secrets.md +80 -73
  170. package/assets/patterns/git-workflow-stack.md +131 -106
  171. package/assets/patterns/lib-layers-move.md +62 -53
  172. package/assets/patterns/lib-layers-new.md +59 -45
  173. package/assets/patterns/observability-record.md +72 -67
  174. package/assets/patterns/platform-access-di.md +31 -29
  175. package/assets/patterns/reuse-first-extend.md +66 -61
  176. package/assets/patterns/shared-code-new.md +39 -38
  177. package/assets/patterns/spec-driven-domain.md +161 -151
  178. package/assets/patterns/spec-driven-rule.md +179 -168
  179. package/assets/patterns/spec-driven-sweep.md +41 -39
  180. package/assets/patterns/status-report-table.github.md +37 -36
  181. package/assets/patterns/styling-bem-component.md +42 -42
  182. package/assets/patterns/styling-bem-layout.md +39 -34
  183. package/assets/patterns/styling-bem-sheet.md +59 -58
  184. package/assets/patterns/task-flow-archive.md +222 -215
  185. package/assets/patterns/task-flow-close.md +215 -203
  186. package/assets/patterns/task-flow-handoff.md +154 -145
  187. package/assets/patterns/task-flow-resume.md +138 -133
  188. package/assets/patterns/task-flow-start.md +204 -192
  189. package/assets/patterns/testing-e2e.md +103 -92
  190. package/assets/patterns/testing-unit.md +77 -70
  191. package/assets/patterns/ts-procedure.md +32 -29
  192. package/assets/patterns/turn-entry-map.md +50 -48
  193. package/assets/pitfalls/agent-kit.md +152 -141
  194. package/assets/pitfalls/doc-style.md +96 -91
  195. package/assets/pitfalls/git-workflow.azure.md +49 -46
  196. package/assets/pitfalls/git-workflow.github.md +264 -234
  197. package/assets/pitfalls/git-workflow.gitlab.md +49 -45
  198. package/assets/pitfalls/spec-driven.md +73 -71
  199. package/assets/pitfalls/styling-bem.md +46 -40
  200. package/assets/pitfalls/task-flow.md +262 -246
  201. package/assets/pitfalls/testing.md +99 -92
  202. package/assets/pitfalls/turn-conduct.md +96 -81
  203. package/assets/rules/angular-patterns.md +81 -80
  204. package/assets/rules/api-layer.md +77 -74
  205. package/assets/rules/autonomous-work.md +75 -74
  206. package/assets/rules/browser-verification.md +223 -188
  207. package/assets/rules/component-structure.md +72 -69
  208. package/assets/rules/dependencies.md +74 -67
  209. package/assets/rules/deploy-flow.azure.md +118 -108
  210. package/assets/rules/deploy-flow.github.md +145 -135
  211. package/assets/rules/deploy-flow.gitlab.md +120 -110
  212. package/assets/rules/doc-style.md +209 -148
  213. package/assets/rules/entity-conventions.needs-admin.md +81 -79
  214. package/assets/rules/entity-models.md +73 -70
  215. package/assets/rules/git-workflow.azure.md +224 -228
  216. package/assets/rules/git-workflow.github.md +250 -242
  217. package/assets/rules/git-workflow.gitlab.md +218 -217
  218. package/assets/rules/lib-layers.md +85 -86
  219. package/assets/rules/lists.md +101 -97
  220. package/assets/rules/navigation.md +78 -78
  221. package/assets/rules/observability.needs-app.md +165 -153
  222. package/assets/rules/platform-access.md +76 -75
  223. package/assets/rules/reuse-first.md +153 -137
  224. package/assets/rules/shared-code.md +82 -79
  225. package/assets/rules/spec-driven.md +272 -260
  226. package/assets/rules/status-report.md +55 -58
  227. package/assets/rules/styling-bem.md +83 -72
  228. package/assets/rules/task-flow.md +282 -270
  229. package/assets/rules/testing.md +224 -188
  230. package/assets/rules/turn-conduct.md +255 -258
  231. package/assets/rules/turn-entry.md +92 -87
  232. package/assets/rules/typescript-conventions.md +94 -88
  233. package/assets/samples/specs/_template/spec.md +47 -47
  234. package/assets/samples/tasks/_template/grill.md +20 -20
  235. package/assets/samples/tasks/_template/plan.md +32 -30
  236. package/assets/samples/tasks/_template/progress.md +16 -16
  237. package/assets/skills/agent-kit-extend.md +129 -113
  238. package/assets/skills/agent-kit.md +236 -222
  239. package/assets/skills/write-a-skill.md +76 -71
  240. package/assets/templates/findings.md +19 -19
  241. package/assets/templates/gate-map.sh +16 -14
  242. package/assets/templates/implementation.md +28 -27
  243. package/assets/templates/pattern.md +17 -17
  244. package/assets/templates/pitfalls.md +6 -6
  245. package/assets/templates/postmortem.md +24 -23
  246. package/assets/templates/project.sh +24 -24
  247. package/assets/templates/proposal.md +62 -60
  248. package/assets/templates/rule.md +38 -38
  249. package/assets/workflows/feature.js +46 -46
  250. package/assets/workflows/plan.js +54 -54
  251. package/lib/catalog.d.ts +2 -0
  252. package/lib/catalog.d.ts.map +1 -1
  253. package/lib/catalog.js +4 -3
  254. package/lib/catalog.js.map +1 -1
  255. package/lib/commands.d.ts.map +1 -1
  256. package/lib/commands.js +68 -4
  257. package/lib/commands.js.map +1 -1
  258. package/lib/companion.js +3 -2
  259. package/lib/companion.js.map +1 -1
  260. package/lib/enroll.d.ts +7 -1
  261. package/lib/enroll.d.ts.map +1 -1
  262. package/lib/enroll.js +13 -4
  263. package/lib/enroll.js.map +1 -1
  264. package/lib/observations.d.ts +10 -1
  265. package/lib/observations.d.ts.map +1 -1
  266. package/lib/observations.js +1 -0
  267. package/lib/observations.js.map +1 -1
  268. package/lib/override-marks.d.ts +24 -0
  269. package/lib/override-marks.d.ts.map +1 -0
  270. package/lib/override-marks.js +98 -0
  271. package/lib/override-marks.js.map +1 -0
  272. package/lib/plan.d.ts +11 -0
  273. package/lib/plan.d.ts.map +1 -1
  274. package/lib/plan.js +10 -1
  275. package/lib/plan.js.map +1 -1
  276. package/lib/ship.d.ts +0 -7
  277. package/lib/ship.d.ts.map +1 -1
  278. package/lib/ship.js +10 -2
  279. package/lib/ship.js.map +1 -1
  280. package/lib/shipment.d.ts.map +1 -1
  281. package/lib/shipment.js +7 -3
  282. package/lib/shipment.js.map +1 -1
  283. package/lib/sync.d.ts.map +1 -1
  284. package/lib/sync.js +45 -11
  285. package/lib/sync.js.map +1 -1
  286. package/package.json +1 -1
  287. package/rt-tools-agent-kit-0.26.0.tgz +0 -0
  288. package/rt-tools-agent-kit-0.23.0.tgz +0 -0
@@ -1,298 +1,312 @@
1
1
  ---
2
2
  name: agent-kit
3
- description: Переносимый слой правил агента — законы, правила, хуки и проверки, которые везёт пакет, а дерево настраивает надстройками. Брать, когда правится файл с шапкой rt-kit, обновляется пакет или отказывает сверка раскладки. Форма нового скила — write-a-skill.
3
+ description: The portable rules layer of the agent — laws, rules, hooks and checks shipped by the package and adjusted by the tree through overrides. Load when a file with the rt-kit header is edited, the package is upgraded or the layout audit refuses. The shape of a new skill — write-a-skill.
4
4
  ---
5
5
 
6
- # Переносимый слой правил
6
+ # The portable rules layer
7
7
 
8
- Законы, правила, паттерны, хуки, проверки и роли везёт пакет; дерево берёт их раскладкой и
9
- настраивает надстройками. Разложенный файл несёт шапку и правке не подлежит — правится либо
10
- пакет, либо надстройка.
8
+ Laws, rules, patterns, hooks, checks and roles are shipped by the package; the tree takes them
9
+ by layout and adjusts them with overrides. A laid-out file carries a header and is not edited —
10
+ either the package or the override is edited.
11
11
 
12
- **Холодная часть:** `pitfalls.md` рядом — ловушки, грабли, на которые уже наступали. Грузится по
13
- требованию, а не вместе со скилом.
12
+ **Cold part:** `pitfalls.md` next to it — pitfalls, traps already stepped on. Loaded on demand,
13
+ not together with the skill.
14
14
 
15
- ## Когда брать
15
+ ## When to use
16
16
 
17
- - В файле, который собираешься править, стоит шапка
18
- `rt-kit v<версия> · <ресурс> · <сумма> · правится надстройкой, не здесь`.
19
- - Обновился пакет, или `sync --check` отказал в гейте пуша.
20
- - Своё поведение надо дописать поверх пакетного: гард, карта гейта, набор проверок.
21
- - Пакет ставится в дерево, где хуки и проверки уже свои.
17
+ - The file you are about to edit carries the header
18
+ `rt-kit v<version> · <resource> · <checksum> · правится надстройкой, не здесь`.
19
+ - The package was updated, or `sync --check` refused in the push gate.
20
+ - Your own behaviour has to be added on top of the package one: a guard, the gate map, the
21
+ set of checks.
22
+ - The package is installed into a tree whose hooks and checks are already its own.
22
23
 
23
- ## Где что настраивается
24
+ ## Where what is set up
24
25
 
25
- | Что меняешь | Куда правка |
26
- | ---------------------------------------------- | ------------------------------------------------------ |
27
- | какое правило гейт требует под какой файл | `.claude/rt-kit/gate-map.sh` — своя `skill_for` |
28
- | порты, адреса, линтеры, форма ветки, инвентарь | `.claude/rt-kit/project.sh` — свои `rt_*` |
29
- | пути и идентификаторы, которыми живут проверки | `.claude/rt-kit/checks.json` |
30
- | какие признаки единообразия дерево берёт | `checks.json`, ключи `reuse.bundles` и `reuse.signals` |
31
- | раздел разложенного текста | `.claude/rt-kit/overrides/<идентификатор ресурса>` |
32
- | что брать, а от чего отказаться | `.claude/rt-kit.json`, ключи `only` и `skip` |
33
- | какие роли зовутся не обязательно, а руками | `.claude/rt-kit.json`, ключ `rolesOff` |
34
- | что у дерева есть: хранилище, админка, пакеты | `.claude/rt-kit.json`, ключ `has` |
35
- | сам механизм — гард, проверка, текст правила | ресурс в пакете |
26
+ | What you change | Where the edit goes |
27
+ | ------------------------------------------------- | ------------------------------------------------------- |
28
+ | which rule the gate demands for which file | `.claude/rt-kit/gate-map.sh` — your own `skill_for` |
29
+ | ports, addresses, linters, branch form, inventory | `.claude/rt-kit/project.sh` — your own `rt_*` |
30
+ | paths and identifiers the checks live by | `.claude/rt-kit/checks.json` |
31
+ | which uniformity signs the tree takes | `checks.json`, keys `reuse.bundles` and `reuse.signals` |
32
+ | a section of a laid-out text | `.claude/rt-kit/overrides/<resource identifier>` |
33
+ | what to take and what to drop | `.claude/rt-kit.json`, keys `only` and `skip` |
34
+ | which roles are called by hand, not mandatorily | `.claude/rt-kit.json`, key `rolesOff` |
35
+ | what the tree has: storage, admin, packages | `.claude/rt-kit.json`, key `has` |
36
+ | the mechanism itself — guard, check, rule text | the resource in the package |
36
37
 
37
- Надстройка объявляет функцию заново и вправе позвать умолчание тем же именем с суффиксом
38
- `_default`. Слияние текста идёт по разделам `## `: совпавший заголовок замещает, новый
39
- дописывается, пустой снимает раздел пакета.
38
+ An override redeclares the function and may call the default by the same name with the
39
+ `_default` suffix. Text merges by `## ` sections: a matching heading replaces, a new one is
40
+ appended, an empty one lifts the package section.
40
41
 
41
- Готовый пример на каждую строку этой таблицы — скил `agent-kit-extend`: как выглядит сама
42
- правка, чем она проверяется и чем кончается, если положить её не туда.
42
+ A ready-made sample for every row of this table is the skill `agent-kit-extend`: how the edit
43
+ itself looks, what checks it and how it ends if put in the wrong place.
43
44
 
44
- ## Порядок
45
+ ## Order
45
46
 
46
- Раскладка кладёт всё или ничего: отказ хотя бы по одному файлу не пишет ничего — половина
47
- разложенного хуже целого. Правится либо надстройка здесь, либо сам ресурс — а это работа того
48
- дерева, где пакет живёт исходниками, и здесь о ней не сказано ничего.
47
+ The layout puts everything or nothing: a refusal on even one file writes nothing — half a
48
+ layout is worse than a whole one. Either the override here or the resource itself is edited —
49
+ and that is the work of the tree where the package lives as sources; nothing is said about it
50
+ here.
49
51
 
50
- **Раскладка — правка дерева, а не служебный вызов:** она переписывает сотни ведомых файлов
51
- разом, и работа поэтому оформляется до `sync`, по тем же правилам, что и любая другая.
52
+ **A layout is an edit of the tree, not a service call:** it rewrites hundreds of tracked files at
53
+ once, so the work is set up before `sync`, by the same rules as any other.
52
54
 
53
- **Подъём версии пакета и раскладка едут одним изменением.** Сверка раскладки стоит в гейте
54
- пуша: редакция, поднятая без раскладки, красит главную ветку и запирает дерево целиком.
55
+ **The package version bump and the layout go in one change.** The layout audit stands in the
56
+ push gate: an edition bumped without a layout turns the main branch red and locks the whole tree.
55
57
 
56
- **Объявление хука раскладка кладёт вместе с самим хуком.** Гард зовёт не файл, а запись в
57
- настройке агента, и разложенный без неё он снаружи неотличим от работающего: файл лежит,
58
- коммитится, сверка зелёная — а вызова, ради которого написано его тело, он не видит. Раскладка
59
- дописывает в настройку запись на каждое событие, которого там нет, и говорит, что дописала.
60
- Правка только прибавляет: ни одна стоящая запись не переписывается и не снимается, снятое
61
- деревом не возвращается, а настройку, которую не разобрать как JSON, пакет не трогает вовсе —
62
- там печатается готовый кусок и запись идёт рукой, как прежде.
58
+ **The layout puts the hook declaration together with the hook itself.** A hook is called by an
59
+ entry in the agent settings, and one laid out without it is indistinguishable from the outside
60
+ from a working one. The layout appends an entry for every event missing from the settings and
61
+ reports it. The edit only adds: entries are neither rewritten nor removed, what the tree removed
62
+ does not come back, and settings that cannot be parsed as JSON the package does not touch — it
63
+ prints a ready-made piece to enter by hand.
63
64
 
64
- **Держит это гард места правки, а не память.** Правку файла с шапкой раскладки он отбивает в
65
- минуту правки и называет адрес: источник, если дерево его держит, иначе надстройку. Правит копию
66
- не только рука: форматтер дерева, дошедший до разложенного файла, переписывает его по-своему, и
67
- раскладка читает это ровно как правку руками. Снятие копии гард пропускает: снятый файл
68
- раскладка кладёт заново, и так эту поломку и чинят.
65
+ **This is held by the edit-location guard, not by memory.** It refuses an edit of a file with the
66
+ layout header at the minute of the edit and names the address: the source, if the tree holds
67
+ it, otherwise the override. The copy is edited not only by hand: the tree formatter rewrites a
68
+ laid-out file its own way, and the layout reads that exactly as a hand edit. Removing the copy
69
+ the guard lets through — a removed file the layout puts anew.
69
70
 
70
- **Надстройка правится по разделу, а не кладётся целиком.** Разделы в неё дописывают разные ветки
71
- и разные заходы, и положенная целиком она уносит все, которых эта правка не касалась: на их
72
- место молча возвращается пакетный текст. Держит это второй гард — он отбивает запись поверх непустой надстройки и называет
73
- размер того, что затрут: строки и число разделов. Дописывание в конец и правка по месту проходят.
71
+ **An override is edited by section, not put in full.** Sections are added to it by different
72
+ branches and different sessions, and put in full it carries away all that this edit did not
73
+ touch. This is held by the second guard — it refuses a write over a non-empty override and names
74
+ the size of what would be wiped. Appending at the end and editing in place pass.
74
75
 
75
- ## Команды
76
+ ## Commands
76
77
 
77
78
  ```bash
78
- npx agent-kit doctor # что разложено, что отстало, что лежит от отказанного
79
- npx agent-kit sync # разложить
80
- npx agent-kit sync --check # ничего не писать, отказать при расхождении
81
- npx agent-kit stats # чем пользовались, чем ни разу, обо что спотыкались
82
- npx agent-kit enroll --code <код> # завести дерево в приёме и положить его токен
83
- npx agent-kit propose # отправить груз в приём: сводку, предложения и разборы
84
- npx agent-kit adopt [файлы] # отдать пакету свой файл, лежащий на его пути
79
+ npx agent-kit doctor # what is laid out, what lags, what lies from a dropped resource
80
+ npx agent-kit sync # lay out
81
+ npx agent-kit sync --check # write nothing, refuse on a divergence
82
+ npx agent-kit stats # what was used, what never, what people stumbled on
83
+ npx agent-kit enroll --code <code> # enrol the tree in the intake and put its token
84
+ npx agent-kit propose # send the cargo to the intake: the digest, proposals and analyses
85
+ npx agent-kit adopt [files] # hand the package your own file lying on its path
85
86
  ```
86
87
 
87
- Отдача откладывает прежнее содержимое рядом, с пометкой `.before-rt-kit`, и освобождает путь под
88
- раскладку; без имён отдаются все чужие файлы разом. Названа она здесь потому, что иначе её
89
- находят по тексту отказа раскладки — то есть в ту минуту, когда работа уже встала.
88
+ Adoption sets the former content aside next to it, marked `.before-rt-kit`, and frees the path
89
+ for the layout; without names all foreign files are handed over at once.
90
90
 
91
- Часть команд слоя исполняет агент, а не программа: `/feedback` кладёт слово о правилах блоком в
92
- файл предложений, `/skill-curator` разбирает закрытую задачу, `/next-session` закрывает заход.
91
+ Some commands of the layer are run by the agent, not by the program: `/feedback` puts a remark
92
+ about the rules as a block into the proposals file, `/skill-curator` reviews a closed task,
93
+ `/next-session` closes the session.
93
94
 
94
- Команд правки самого пакета здесь нет: они зовутся там, где лежат его ресурсы.
95
+ There are no commands for editing the package itself here: they are called where its resources
96
+ lie.
95
97
 
96
- ## Подъём версии
98
+ ## Version bump
97
99
 
98
- Совпавший заголовок замещает раздел пакета целиком, и всё, что пакет дописал в такой раздел новой
99
- версией, пропадает молча: раскладка сходится, заголовки совпадают, а утверждений нет. Сверка
100
- заголовков ловит переименование раздела, а не пополнение, — других свидетелей у потери не бывает.
100
+ A matching heading replaces the package section in full, and everything the package added to such
101
+ a section in a new version vanishes silently: the layout matches, the headings match, and the
102
+ statements are gone. The heading audit catches a renamed section, not an extended one — the loss
103
+ has no other witnesses.
101
104
 
102
- Порядок подъёма поэтому из трёх шагов, и первый идёт до установки.
105
+ So the bump takes three steps, and the first goes before the installation.
103
106
 
104
- 1. **Снимок прежней редакции ресурсов.** Установка стирает её без следа, и сравнить потом не с
105
- чем.
107
+ 1. **A snapshot of the former edition of the resources.** The installation wipes it without a
108
+ trace, and there is nothing to compare with afterwards.
106
109
 
107
110
  ```bash
108
- cp -r node_modules/@rt-tools/agent-kit/assets /tmp/agent-kit-assets-<прежняя версия>
111
+ cp -r node_modules/@rt-tools/agent-kit/assets /tmp/agent-kit-assets-<former version>
109
112
  ```
110
113
 
111
- 2. **Установка и раскладка.** Обычным порядком. Раскладка кладёт ту редакцию, которая **установлена**,
112
- а не ту, что объявило дерево: перепутать их легко — установленная остаётся от соседней ветки,
113
- где её как раз поднимали, и ложится целиком, молча, с тем же успешным выходом. Расхождение
114
- точного номера раскладка отбивает сама и называет обе редакции; починка — поставить
115
- зависимости и повторить вызов.
116
- 3. **Сверка замещённых разделов по снимку.** Какие разделы замещены, называет `doctor` — строкой
117
- «замещено надстройками разделов» и перечнем «ресурс · заголовок». Каждый из них читается в
118
- снимке и в новой редакции: что пакет дописал, дописывается в надстройку руками.
114
+ 2. **Installation and layout.** The usual way. The layout puts the edition that is
115
+ **installed**, not the one the tree declared: the installed one is left over from a
116
+ neighbouring branch and lands in full, silently, with the same successful exit. A mismatch of
117
+ the exact number the layout refuses by itself; the fix is to install dependencies and repeat
118
+ the call.
119
+ 3. **An audit of the replaced sections against the snapshot.** Which sections are replaced is
120
+ named by `doctor` — with the line "замещено надстройками разделов" and a list of
121
+ "resource · heading". Each is read in the snapshot and in the new edition: what the package
122
+ added is added to the override by hand.
119
123
 
120
- Ни `doctor`, ни `sync --check` сами этого не сверяют: прежней редакции у них нет.
124
+ Neither `doctor` nor `sync --check` audits this itself: they have no former edition.
121
125
 
122
- По каждому названному разделу сверяются статьи, а не заголовки: заголовок как раз и совпал,
123
- этим раздел замещён. Готовая пара команд — в холодной части рядом.
126
+ For every named section the articles are compared, not the headings: the heading is exactly
127
+ what matched, that is what replaced the section. A ready-made pair of commands is in the cold
128
+ part next to it.
124
129
 
125
- Дальше решение обычное: раздел, ради которого надстройка заводилась, остаётся замещённым, а
126
- раздел, чья причина ушла с исправленной редакцией, снимается — о том и говорит четвёртая строка
127
- предложения.
130
+ Then the decision is the usual one: the section the override was started for stays replaced,
131
+ and the section whose reason left with the fixed edition is lifted.
128
132
 
129
- ## Что пакет везёт, а что остаётся дереву
133
+ ## What the package ships and what stays with the tree
130
134
 
131
- Пакет ставят чужие деревья, и везёт он им только то, что они исполняют. Ресурс, у которого в
132
- чужом дереве нет предмета или некому его позвать, ресурсом пакета не бывает — он живёт своим
133
- ресурсом того дерева, где предмет есть.
135
+ The package is installed by foreign trees, and it ships them only what they carry out. A
136
+ resource that has no subject in a foreign tree, or nobody there to call it, is never a package
137
+ resource — it lives as the tree's own resource where the subject exists.
134
138
 
135
- Признак — не оценка, а два вопроса к ресурсу:
139
+ The sign is not an appraisal but two questions to the resource:
136
140
 
137
- | Вопрос | «Нет» означает |
138
- | ----------------------------------------------- | ---------------------------------------------- |
139
- | Есть ли у потребителя то, о чём ресурс говорит? | предмета нет: заполнить компаньон нечем |
140
- | Есть ли у потребителя кому его позвать? | исполнителя нет: команда у него не запускается |
141
-
142
- Ответ «нет» хотя бы на один — ресурс остаётся дереву, которое пакет пишет.
141
+ | Question | "No" means |
142
+ | ------------------------------------------------- | ------------------------------------------------ |
143
+ | Does the consumer have what the resource speaks of? | no subject: nothing to fill the companion with |
144
+ | Does the consumer have someone to call it? | no executor: the command does not run there |
143
145
 
144
- **Перечень отменяемого границу не закрывает.** Строка в `skip` говорит «мне этого не надо» и
145
- снимает раскладку у себя; ресурс при этом остаётся в пакете и продолжает ехать всем остальным.
146
- Убирается он из самого пакета, а не из своей раскладки.
146
+ "No" to even one — the resource stays with the tree that writes the package.
147
147
 
148
- **Своё правило дерева объявляется наравне с пакетным:** та же форма, тот же закон сверху,
149
- компаньон рядом и своя ветка в карте гейта. Читателю не должно быть видно, чем оно младше.
148
+ **The list of dropped resources does not close the boundary.** A line in `skip` says "I do not
149
+ need this" and lifts the layout at home; the resource stays in the package and keeps going to
150
+ everyone else. It is removed from the package itself, not from your own layout.
150
151
 
151
- Что при этом должно быть верно, записано договорённостью в том дереве, которое пакет пишет:
152
- там же живёт и проверка, которая границу держит. Чужому дереву судить ресурсы пакета нечего,
153
- поэтому проверка сюда не едет.
152
+ **The tree's own rule is declared on a par with the package one:** the same shape, the same law
153
+ above, a companion next to it and its own branch in the gate map. The reader must not see that
154
+ it is younger.
154
155
 
155
- ## Обратная связь наверх
156
+ What must be true at that is written as an agreement in the tree that writes the package: the
157
+ check that holds the boundary lives there too. A foreign tree has no business judging the
158
+ package resources, so the check does not go here.
159
+
160
+ ## Feedback upwards
161
+
162
+ The rules layer is edited not from memory but by how it was used. This is held by three things.
156
163
 
157
- Слой правил правится не по памяти, а по тому, как им пользовались. Держится это тремя вещами.
164
+ **Observations** are written by the guards themselves — into `.claude/rt-kit/observations/`, a
165
+ file per day. A line holds the package resource name, the kind of event, the kind of edit, the
166
+ version and a session sign; no tree paths and no tree name are there. Switched off by the key
167
+ `"observe": false` in the config.
158
168
 
159
- **Наблюдения** пишут сами гарды — в `.claude/rt-kit/observations/`, файлом на день. В строке имя
160
- ресурса пакета, род события, род правки, версия и признак сессии; путей дерева и его имени там
161
- нет. Выключаются ключом `"observe": false` в конфиге.
169
+ **The digest** is `agent-kit stats`. Its most valuable line is not "what was used" but **what is
170
+ laid out and never loaded**: a rule nobody opened gives itself away by nothing.
162
171
 
163
- **Сводка** — `agent-kit stats`. Самая ценная её строка не «чем пользовались», а **что разложено
164
- и не загружено ни разу**: правило, которого никто не открыл, ничем себя не выдаёт.
172
+ **The cost** is `agent-kit cost`. The digest says what was used; the cost — what it cost: the
173
+ weight of entering work, the weight of one rule and the weight of the whole layer. Counted is
174
+ not the file but what the session receives. The number is comparable only with one taken by the
175
+ same command.
165
176
 
166
- **Цена** — `agent-kit cost`. Сводка говорит, чем пользовались; цена — сколько это стоило: вес
167
- входа в работу, вес одного правила и вес всего слоя. Считается не файл, а то, что заход получает:
168
- описание приходит полем, словарь и карта хода — выводом хуков. Число сравнимо только со снятым
169
- той же командой.
177
+ **Proposals** come by two roads: the review of a closed task — by the `/skill-curator` command —
178
+ brings them in a batch, and a remark made in the middle of work is put by the agent itself with
179
+ the `/feedback` command. Both write into one file of the day and in one form; neither goes to
180
+ the network — the send carries them away.
170
181
 
171
- **Предложения** приходят двумя путями: разбор закрытой задачи — командой `/skill-curator` —
172
- приносит их пачкой, а слово, сказанное посреди работы, кладёт командой `/feedback` сам агент. Оба
173
- пишут в один файл дня и в одной форме; в сеть не ходит ни один — увозит их отправка.
182
+ Every record carries four lines: **place** — where the edit goes in the resource, **reason** —
183
+ what went wrong without it, **closest** — the exact quote of the resource line this is closest
184
+ to, and **what it closes** — which overrides of the tree are lifted when the edit arrives as a
185
+ package edition.
174
186
 
175
- Каждая запись несёт четыре строки: **место** — куда правка встаёт в ресурсе, **повод** — что
176
- пошло не так без неё, **ближайшее** — точная цитата той строки ресурса, к которой это ближе
177
- всего, и чего она не покрывает, и **чем закрывается** — какие надстройки и добавки этого дерева
178
- снимаются, когда правка приедет редакцией пакета.
187
+ The third line is the only one the machine checks: the quote is searched for in the resource,
188
+ and one not found refuses the block. There is nothing close at all — write exactly that: «нет».
189
+ A refused block stays lying with the mark «отбито» and the reason: it is visible that the review
190
+ took place and why it did not become an edit.
179
191
 
180
- Третья строка — единственная, которую проверяет машина: цитата ищется в ресурсе, и ненайденная
181
- отбивает блок. Ближайшего нет вовсе — так и пишется: «нет». Отбитый блок остаётся лежать с
182
- отметкой «отбито» и причиной: видно, что разбор был и почему он не стал правкой.
192
+ The fourth is written because the proposal goes outside while the override stays lying here:
193
+ without it, it replaces an already fixed section forever. There is nothing to lift — write
194
+ exactly that; the fourth line is never empty.
183
195
 
184
- Четвёртая пишется затем, что предложение уезжает наружу, а надстройка остаётся лежать здесь:
185
- без неё она замещает уже исправленный раздел навсегда. Снимать нечего — так и пишется; пустой
186
- четвёртая строка не бывает.
196
+ The same link is put on the override itself — as a markup comment in its section:
187
197
 
188
- Каждому предложению ставится адрес: «пакет», «компаньон» или «дерево». Выгружаются они файлом в `.claude/rt-kit/proposals/`
189
- (форма — шаблон `proposal.md`), а `agent-kit propose` увозит в приём те, что адресованы
190
- пакету, вместе со сводкой и разборами происшествий. Адрес дерева в сводке или в тексте
191
- предложения отбивает отправку целиком.
198
+ <!-- rt-proposed: rules/task-flow.md · «the article in full, as in the proposal» · 2026-09-03 -->
192
199
 
193
- Приём — закрытая служба: сводка говорит о рабочих привычках команды, и в открытой очереди работ
194
- это выложено всему свету. Адрес приёма объявляется ключом `intake` в конфиге дерева, токен —
195
- ключом `token`, и лежит он вне дерева.
200
+ Nobody opens the proposal records on the day of the update: nothing points to them. The mark is
201
+ invisible in the assembled text, survives the merge by headings and is read by the machine: the
202
+ layout lists the sections whose article already exists in the new edition. A person lifts them —
203
+ something else may have been added to the section. A section without a mark counts as permanent.
196
204
 
197
- Оба значения приходят от владельца приёма, а не придумываются потребителем: адрес он называет, а токен выдаёт
198
- одноразовым кодом приглашения — код заводит дерево в приёме и кладёт токен в файл ключа `token`; выданный в админке
199
- кладётся тем же входом и в сеть не идёт. До приглашения отправка отказывает по устройству, а не по недонастройке.
205
+ Every proposal gets an address: «пакет», «компаньон» or «дерево». They are dumped into a file in
206
+ `.claude/rt-kit/proposals/` (the form is the template `proposal.md`), and `agent-kit propose`
207
+ carries to the intake those addressed to the package, together with the digest and the incident
208
+ analyses. A tree address in the digest or in the proposal text refuses the send in full.
200
209
 
201
- **Признак дерева считает отправитель, а не человек.** Он выводится из адреса репозитория, и
202
- запись в приёме заводится именно им: дерево, заведённое своим словом, приёмник не узнаёт и
203
- отвечает отказом на каждой отправке. Что уедет и под каким признаком, печатает прогон вхолостую —
204
- единственный способ узнать признак до заведения записи.
210
+ The intake is a closed service: the digest speaks of the team's working habits, and in an open
211
+ work queue that is laid out for all to see. The intake address is declared by the key `intake`
212
+ in the tree config, the token by the key `token`, and it lies outside the tree.
205
213
 
206
- **Отметка об отправке — след для человека, а не хранилище состояния: она говорит, что запись в
207
- приёме есть, а не что её положил этот вызов.** Чистое дерево после отправки значит, что весь
208
- груз в приёме уже лежал, а не что отправка не сработала.
214
+ Both values come from the intake owner and are not invented by the consumer: the address they
215
+ name, the token they issue as a one-off invitation code — the code enrols the tree in the intake
216
+ and puts the token into the file of the key `token`. Before the invitation the send refuses by
217
+ design, not by misconfiguration.
209
218
 
210
- Разбирают их там, где лежат правимые ресурсы и видно всех потребителей сразу, — а сюда
211
- приезжает ответ приёма о том, сколько записей легло.
219
+ **The tree sign is computed by the sender, not by a person.** It is derived from the repository
220
+ address, and the intake record is created by exactly it: a tree enrolled under its own word the
221
+ intake does not recognise. What would go and under which sign is printed by the dry run.
212
222
 
213
- **Имя файла предложения в текстах дерева не называется.** Читателю чужого дерева оно не даёт
214
- ничего, а там, где каталог остаётся на машине автора, ссылка ведёт в пустоту и проверка путей
215
- краснеет. Текст репозитория говорит, кому предложение отправлено и о чём оно; ресурс пакета
216
- при этом называть можно — он в истории есть.
223
+ **The mark of a send is a trace for a person, not a store of state.** A clean tree after a send
224
+ means the whole cargo already lay in the intake, not that the send did not work.
217
225
 
218
- Предложение работу не выправляет. Оно лежит текстом, читается глазами и в контекст сам собой не
219
- приходит; цитата не становится правилом от того, что её произнесли. Закрытым предложение
220
- считается, только войдя в ресурс пакета: до этого на него не ссылаются как на действующее
221
- требование и не считают дырку закрытой.
226
+ They are reviewed where the editable resources lie and all consumers are visible at once — and
227
+ what arrives here is the intake's reply about how many records landed.
222
228
 
223
- **Слово владельца о предложении — «отправь», «заведи», «напиши пропозал» и любая другая форма
224
- того же — исполняется отправкой в тот же ход.** Сухой прогон отправкой не является: он
225
- показывает, что уехало бы, ничего не заводит и следа наружу не оставляет. Отметки, которыми
226
- отправка пачкает дерево, ложатся вторым коммитом в ту же ветку — это их место, а не повод
227
- отложить. Стережёт это гард предложения на завершении хода.
229
+ **The proposal file name is not named in tree texts.** It gives a reader of a foreign tree
230
+ nothing, and a link to a directory on the author's machine leads nowhere and turns the path check
231
+ red. Repository text says whom the proposal was sent to and what it is about; the package
232
+ resource may be named.
228
233
 
229
- ## Установка туда, где уже всё своё
234
+ A proposal does not straighten the work. It lies as text, is read by eye and does not come into
235
+ the context by itself. It counts as closed only once it has entered a package resource: until
236
+ then it is not referred to as a current requirement and the hole is not counted closed.
230
237
 
231
- 1. `init`, затем `skip` на всё, что дерево держит само; пустая раскладка — законное начало.
232
- 2. Снимок того, что говорят проверки дерева, до единой правки: он и есть мерило.
233
- 3. Ресурс за ресурсом: пакетную редакцию довести до здешней, предметность вынести в
234
- надстройку, снять отказ, разложить, прогнать сценарии и сверить снимок.
235
- 4. Разложенное поверх своего пакет не пишет: файл без шапки для него чужой. Отдаётся он
236
- командой `adopt` — прежнее содержимое ложится рядом с пометкой `.before-rt-kit`.
237
- 5. Ресурс, у которого здешняя редакция богаче пакетной по существу, в раскладку не берётся.
238
- Признак — статья, которой в пакетной редакции нет и не может быть: она выводится из предмета
239
- дерева. Он уходит в `skip`, а наверх едет предложение снять его из пакета.
240
- 6. Свои сценарии отданного файла переписываются под пакетное поведение либо снимаются: чинить
241
- пакетную редакцию на месте нельзя, её адрес — источник пакета или надстройка.
242
-
243
- ## Свойства дерева
244
-
245
- Часть правил пакета верна только там, где есть хранилище, админка или приложение. Дерево
246
- перечисляет, что у него есть, ключом `has`; ресурс называет нужное ему свойство приставкой в
247
- имени — `observability.needs-app.md`, — и дереву, которое такого свойства не назвало, не
248
- кладётся вовсе: ни он сам, ни черновик его компаньона.
238
+ **The owner's word about a proposal — "send it", "file it", "write a proposal" and any other form
239
+ of the same — is carried out by a send in the same turn.** A dry run does not count as a send: it
240
+ shows what would be sent and leaves no trace outside. The marks the send leaves in the tree land
241
+ as a second commit in the same branch. This is checked by the proposal guard at the end of the
242
+ turn.
243
+
244
+ ## Installation where everything is already your own
245
+
246
+ 1. `init`, then `skip` on everything the tree holds itself; an empty layout is a lawful start.
247
+ 2. A snapshot of what the tree's checks say, before a single edit: it is the measure.
248
+ 3. Resource by resource: bring the package edition up to the local one, move the subject matter
249
+ into an override, lift the drop, lay out, run the scenarios and compare with the snapshot.
250
+ 4. The package does not write a layout over your own: a file without a header is foreign to
251
+ it. It is handed over with the `adopt` command — the former content lands next to it, marked
252
+ `.before-rt-kit`.
253
+ 5. A resource whose local edition is richer than the package one in substance is not taken into
254
+ the layout. The sign is an article that the package edition lacks and cannot have: it follows
255
+ from the tree's subject. It goes into `skip`, and a proposal to remove it from the package
256
+ goes upwards.
257
+ 6. Your own scenarios of a handed-over file are rewritten for the package behaviour or removed:
258
+ fixing the package edition in place is not allowed, its address is the package source or the
259
+ override.
260
+
261
+ ## Tree traits
262
+
263
+ Some package rules are true only where there is a storage, an admin or an application. The tree
264
+ lists what it has by the key `has`; a resource names the trait it needs by a prefix in its name —
265
+ `observability.needs-app.md` — and to a tree that did not name such a trait it is not put at
266
+ all: neither itself nor the draft of its companion.
249
267
 
250
268
  ```json
251
269
  { "has": ["packages", "app"] }
252
270
  ```
253
271
 
254
- - **Молчание требованию не отвечает.** Дерево с пустым `has` не получает ни одного помеченного
255
- ресурса: положенный наугад, он вернётся пустым компаньоном, заполнить который нечем.
256
- - **Требование — не вид.** Вид выбирается один; свойств у дерева сразу несколько.
272
+ - **Silence does not answer a requirement.** A tree with an empty `has` gets not one marked
273
+ resource: put at a guess, it comes back as an empty companion with nothing to fill it.
274
+ - **A requirement is not a kind.** A kind is chosen once; a tree has several traits at once.
257
275
 
258
- ## Выключенная роль
276
+ ## Disabled role
259
277
 
260
- Роль, при которой стоит гард, зовётся не по усмотрению исполнителя: гард держит работу, пока роль
261
- не сказала своё. Дерево, которому она мешает, называет её ключом `rolesOff` — именем файла роли.
278
+ A role with a guard next to it is not called at the executor's discretion: the guard holds the
279
+ work until the role has had its say. A tree it gets in the way of names it by the key `rolesOff`
280
+ — by the role file name.
262
281
 
263
282
  ```json
264
283
  { "rolesOff": ["strict-teacher"] }
265
284
  ```
266
285
 
267
- - **Выключается обязательность вызова, а не роль.** Файл роли остаётся разложенным, и позвать её
268
- руками можно в любую минуту. Список читают сами гарды — помощником, лежащим рядом с ними.
269
- - **От отказа ключом `skip` это отличается тем, что ничего не убирает.** Отказ не кладёт файл
270
- роли вовсе: звать становится некого, а гард при ней остаётся лежать и продолжает отбивать.
271
- Здесь наоборот — роль на месте, молчит гард.
272
-
273
- ## Ловушки раскладки
274
-
275
- - **Словарь — такой же разложенный ресурс, как правило.** Хук запуска кладёт его в контекст
276
- целиком, до первой реплики, и оттого он выглядит обычным документом дерева; шапка у него есть,
277
- но читается служебной строкой. Новое слово идёт в надстройку словаря, своим разделом.
278
-
279
- - **Запись файла командой оболочки судится по всем путям, названным в её теле.** Гейт вынимает
280
- пути из текста команды, а тело документа читает целиком, как только в команде встречается имя
281
- интерпретатора, — и строка запуска первой строкой записываемого файла возвращает его туда сама.
282
- Строка импорта разложенного модуля требует тогда правило пакетного слоя наравне с правилом
283
- самого файла, а требуется за раз одно: два отказа подряд, и каждый уносит уже написанное тело.
284
- Инструмент правки судится одним своим путём и переписывать тело не заставляет; перенаправление
285
- оболочки остаётся для того, что файлом дерева не станет.
286
- - **Своё, стоящее рядом с разложенным, повторяет его механику молча.** Проверка, гард и утилита
287
- дерева лежат в тех же каталогах, что и пакетные, а общий разбор списка известного, корни
288
- исходников и снимок долга приезжают модулем настройки проверок. Второе такое же заводится без
289
- сигнала: повтора не видит ни сверка раскладки — файл не разложен, — ни проверка повторов,
290
- которая ищет совпадение текста. Признак один, и он читается: до того как в своей проверке
291
- заводится разбор списка, чтение настройки или сравнение с накопленным, смотрят, что
292
- экспортирует модуль настройки проверок.
293
- - **Правило, загруженное инструментом, бывает показано не целиком, и обрыв ничем не помечен.**
294
- Длинный файл приезжает в контекст обрезанным по строке, а снаружи это выглядит концом: показанное
295
- кончается осмысленным пунктом. Бьёт обрыв ровно по хвосту, а хвост — то место, где дерево
296
- отменяет умолчания пакета: разделы надстройки сливаются по совпавшему заголовку и новыми уходят
297
- в конец. Отсюда порядок: решение о порядке работы принимается после того, как показанные строки
298
- сверены с длиной файла одной командой, а расходятся они — файл дочитывается чтением.
286
+ - **What is switched off is the mandatory call, not the role.** The role file stays laid out, and
287
+ it can be called by hand at any minute. The list is read by the guards themselves — through a
288
+ helper lying next to them.
289
+ - **It differs from dropping by the `skip` key in that it removes nothing.** A drop does not put
290
+ the role file at all: there is nobody left to call, and the guard next to it stays and keeps
291
+ refusing. Here it is the other way round — the role is in place, the guard is silent.
292
+
293
+ ## Layout pitfalls
294
+
295
+ - **The glossary is as much a laid-out resource as a rule.** The startup hook puts it into the
296
+ context in full, before the first reply, and so it looks like an ordinary tree document; it has
297
+ a header, but it reads as a service line. A new word goes into the glossary override, as a
298
+ section of its own.
299
+
300
+ - **A file write by a shell command is checked on all paths named in its body.** The gate takes
301
+ the paths out of the command text and reads the document body in full if the command holds an
302
+ interpreter name; an import line of a laid-out module then demands a second rule, and one is
303
+ demanded at a time — two refusals in a row, and each loses the written body. The edit tool is
304
+ checked by its one path; a shell redirect is for what does not become a tree file.
305
+ - **Your own thing standing next to the laid-out repeats its mechanics silently.** Parsing the
306
+ list of the known, the source roots and the debt snapshot is given by the checks config
307
+ module; a second such parser in your own check is seen by neither the layout audit nor the
308
+ duplicate check. Before starting your own, look at what the checks config module exports.
309
+ - **A rule loaded by a tool may be shown not in full, and the cut is marked by nothing.** A long
310
+ file comes into the context cut at a line, and the cut falls on the tail — where the override
311
+ sections are appended at the end. The shown lines are compared with the file length by one
312
+ command; if they differ, the file is read to the end.