@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
@@ -1,288 +1,314 @@
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
- как JSON, пакет не трогает — печатает готовый кусок для записи рукой.
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.
61
64
 
62
- **Держит это гард места правки, а не память.** Правку файла с шапкой раскладки он отбивает в
63
- минуту правки и называет адрес: источник, если дерево его держит, иначе надстройку. Правит копию
64
- не только рука: форматтер дерева переписывает разложенный файл по-своему, и раскладка читает это
65
- ровно как правку руками. Снятие копии гард пропускает — снятый файл раскладка кладёт заново.
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.
66
70
 
67
- **Надстройка правится по разделу, а не кладётся целиком.** Разделы в неё дописывают разные ветки
68
- и разные заходы, и положенная целиком она уносит все, которых эта правка не касалась. Держит это
69
- второй гард — он отбивает запись поверх непустой надстройки и называет размер того, что затрут.
70
- Дописывание в конец и правка по месту проходят.
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.
71
75
 
72
- ## Команды
76
+ ## Commands
73
77
 
74
78
  ```bash
75
- npx agent-kit doctor # что разложено, что отстало, что лежит от отказанного
76
- npx agent-kit sync # разложить
77
- npx agent-kit sync --check # ничего не писать, отказать при расхождении
78
- npx agent-kit stats # чем пользовались, чем ни разу, обо что спотыкались
79
- npx agent-kit enroll --code <код> # завести дерево в приёме и положить его токен
80
- npx agent-kit propose # отправить груз в приём: сводку, предложения и разборы
81
- 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 fate # the fate of one's own records and the overrides that are due to be lifted
86
+ npx agent-kit adopt [files] # hand the package your own file lying on its path
82
87
  ```
83
88
 
84
- Отдача откладывает прежнее содержимое рядом, с пометкой `.before-rt-kit`, и освобождает путь под
85
- раскладку; без имён отдаются все чужие файлы разом.
89
+ Adoption sets the former content aside next to it, marked `.before-rt-kit`, and frees the path
90
+ for the layout; without names all foreign files are handed over at once.
86
91
 
87
- Часть команд слоя исполняет агент, а не программа: `/feedback` кладёт слово о правилах блоком в
88
- файл предложений, `/skill-curator` разбирает закрытую задачу, `/next-session` закрывает заход.
92
+ Some commands of the layer are run by the agent, not by the program: `/feedback` puts a remark
93
+ about the rules as a block into the proposals file, `/skill-curator` reviews a closed task,
94
+ `/next-session` closes the session.
89
95
 
90
- Команд правки самого пакета здесь нет: они зовутся там, где лежат его ресурсы.
96
+ There are no commands for editing the package itself here: they are called where its resources
97
+ lie.
91
98
 
92
- ## Подъём версии
99
+ ## Version bump
93
100
 
94
- Совпавший заголовок замещает раздел пакета целиком, и всё, что пакет дописал в такой раздел новой
95
- версией, пропадает молча: раскладка сходится, заголовки совпадают, а утверждений нет. Сверка
96
- заголовков ловит переименование раздела, а не пополнение, — других свидетелей у потери не бывает.
101
+ A matching heading replaces the package section in full, and everything the package added to such
102
+ a section in a new version vanishes silently: the layout matches, the headings match, and the
103
+ statements are gone. The heading audit catches a renamed section, not an extended one — the loss
104
+ has no other witnesses.
97
105
 
98
- Порядок подъёма поэтому из трёх шагов, и первый идёт до установки.
106
+ So the bump takes three steps, and the first goes before the installation.
99
107
 
100
- 1. **Снимок прежней редакции ресурсов.** Установка стирает её без следа, и сравнить потом не с
101
- чем.
108
+ 1. **A snapshot of the former edition of the resources.** The installation wipes it without a
109
+ trace, and there is nothing to compare with afterwards.
102
110
 
103
111
  ```bash
104
- cp -r node_modules/@rt-tools/agent-kit/assets /tmp/agent-kit-assets-<прежняя версия>
112
+ cp -r node_modules/@rt-tools/agent-kit/assets /tmp/agent-kit-assets-<former version>
105
113
  ```
106
114
 
107
- 2. **Установка и раскладка.** Обычным порядком. Раскладка кладёт ту редакцию, которая
108
- **установлена**, а не ту, что объявило дерево: установленная остаётся от соседней ветки и
109
- ложится целиком, молча, с тем же успешным выходом. Расхождение точного номера раскладка
110
- отбивает сама; починка — поставить зависимости и повторить вызов.
111
- 3. **Сверка замещённых разделов по снимку.** Какие разделы замещены, называет `doctor` — строкой
112
- «замещено надстройками разделов» и перечнем «ресурс · заголовок». Каждый из них читается в
113
- снимке и в новой редакции: что пакет дописал, дописывается в надстройку руками.
115
+ 2. **Installation and layout.** The usual way. The layout puts the edition that is
116
+ **installed**, not the one the tree declared: the installed one is left over from a
117
+ neighbouring branch and lands in full, silently, with the same successful exit. A mismatch of
118
+ the exact number the layout refuses by itself; the fix is to install dependencies and repeat
119
+ the call.
120
+ 3. **An audit of the replaced sections against the snapshot.** Which sections are replaced is
121
+ named by `doctor` — with the line "замещено надстройками разделов" and a list of
122
+ "resource · heading". Each is read in the snapshot and in the new edition: what the package
123
+ added is added to the override by hand.
114
124
 
115
- Ни `doctor`, ни `sync --check` сами этого не сверяют: прежней редакции у них нет.
125
+ Neither `doctor` nor `sync --check` audits this itself: they have no former edition.
116
126
 
117
- По каждому названному разделу сверяются статьи, а не заголовки: заголовок как раз и совпал,
118
- этим раздел замещён. Готовая пара команд — в холодной части рядом.
127
+ For every named section the articles are compared, not the headings: the heading is exactly
128
+ what matched, that is what replaced the section. A ready-made pair of commands is in the cold
129
+ part next to it.
119
130
 
120
- Дальше решение обычное: раздел, ради которого надстройка заводилась, остаётся замещённым, а
121
- раздел, чья причина ушла с исправленной редакцией, снимается.
131
+ Then the decision is the usual one: the section the override was started for stays replaced,
132
+ and the section whose reason left with the fixed edition is lifted.
122
133
 
123
- ## Что пакет везёт, а что остаётся дереву
134
+ ## What the package ships and what stays with the tree
124
135
 
125
- Пакет ставят чужие деревья, и везёт он им только то, что они исполняют. Ресурс, у которого в
126
- чужом дереве нет предмета или некому его позвать, ресурсом пакета не бывает — он живёт своим
127
- ресурсом того дерева, где предмет есть.
136
+ The package is installed by foreign trees, and it ships them only what they carry out. A
137
+ resource that has no subject in a foreign tree, or nobody there to call it, is never a package
138
+ resource — it lives as the tree's own resource where the subject exists.
139
+
140
+ The sign is not an appraisal but two questions to the resource:
141
+
142
+ | Question | "No" means |
143
+ | ------------------------------------------------- | ------------------------------------------------ |
144
+ | Does the consumer have what the resource speaks of? | no subject: nothing to fill the companion with |
145
+ | Does the consumer have someone to call it? | no executor: the command does not run there |
146
+
147
+ "No" to even one — the resource stays with the tree that writes the package.
128
148
 
129
- Признак — не оценка, а два вопроса к ресурсу:
149
+ **The list of dropped resources does not close the boundary.** A line in `skip` says "I do not
150
+ need this" and lifts the layout at home; the resource stays in the package and keeps going to
151
+ everyone else. It is removed from the package itself, not from your own layout.
130
152
 
131
- | Вопрос | «Нет» означает |
132
- | ----------------------------------------------- | ---------------------------------------------- |
133
- | Есть ли у потребителя то, о чём ресурс говорит? | предмета нет: заполнить компаньон нечем |
134
- | Есть ли у потребителя кому его позвать? | исполнителя нет: команда у него не запускается |
153
+ **The tree's own rule is declared on a par with the package one:** the same shape, the same law
154
+ above, a companion next to it and its own branch in the gate map. The reader must not see that
155
+ it is younger.
135
156
 
136
- Ответ «нет» хотя бы на один — ресурс остаётся дереву, которое пакет пишет.
157
+ What must be true at that is written as an agreement in the tree that writes the package: the
158
+ check that holds the boundary lives there too. A foreign tree has no business judging the
159
+ package resources, so the check does not go here.
137
160
 
138
- **Перечень отменяемого границу не закрывает.** Строка в `skip` говорит «мне этого не надо» и
139
- снимает раскладку у себя; ресурс при этом остаётся в пакете и продолжает ехать всем остальным.
140
- Убирается он из самого пакета, а не из своей раскладки.
141
-
142
- **Своё правило дерева объявляется наравне с пакетным:** та же форма, тот же закон сверху,
143
- компаньон рядом и своя ветка в карте гейта. Читателю не должно быть видно, чем оно младше.
144
-
145
- Что при этом должно быть верно, записано договорённостью в том дереве, которое пакет пишет:
146
- там же живёт и проверка, которая границу держит. Чужому дереву судить ресурсы пакета нечего,
147
- поэтому проверка сюда не едет.
148
-
149
- ## Обратная связь наверх
150
-
151
- Слой правил правится не по памяти, а по тому, как им пользовались. Держится это тремя вещами.
152
-
153
- **Наблюдения** пишут сами гарды — в `.claude/rt-kit/observations/`, файлом на день. В строке имя
154
- ресурса пакета, род события, род правки, версия и признак сессии; путей дерева и его имени там
155
- нет. Выключаются ключом `"observe": false` в конфиге.
156
-
157
- **Сводка** — `agent-kit stats`. Самая ценная её строка не «чем пользовались», а **что разложено
158
- и не загружено ни разу**: правило, которого никто не открыл, ничем себя не выдаёт.
159
-
160
- **Цена** — `agent-kit cost`. Сводка говорит, чем пользовались; цена — сколько это стоило: вес
161
- входа в работу, вес одного правила и вес всего слоя. Считается не файл, а то, что заход получает.
162
- Число сравнимо только со снятым той же командой.
163
-
164
- **Предложения** приходят двумя путями: разбор закрытой задачи — командой `/skill-curator` —
165
- приносит их пачкой, а слово, сказанное посреди работы, кладёт командой `/feedback` сам агент. Оба
166
- пишут в один файл дня и в одной форме; в сеть не ходит ни один — увозит их отправка.
167
-
168
- Каждая запись несёт четыре строки: **место** — куда правка встаёт в ресурсе, **повод** — что
169
- пошло не так без неё, **ближайшее** — точная цитата строки ресурса, к которой это ближе всего, и
170
- **чем закрывается** — какие надстройки дерева снимаются, когда правка приедет редакцией пакета.
171
-
172
- Третья строка — единственная, которую проверяет машина: цитата ищется в ресурсе, и ненайденная
173
- отбивает блок. Ближайшего нет вовсе — так и пишется: «нет». Отбитый блок остаётся лежать с
174
- отметкой «отбито» и причиной: видно, что разбор был и почему он не стал правкой.
175
-
176
- Четвёртая пишется затем, что предложение уезжает наружу, а надстройка остаётся лежать здесь:
177
- без неё она замещает уже исправленный раздел навсегда. Снимать нечего — так и пишется; пустой
178
- четвёртая строка не бывает.
179
-
180
- Та же связь ставится и на саму надстройку — комментарием разметки в её разделе:
181
-
182
- <!-- rt-proposed: rules/task-flow.md · «статья целиком, как в предложении» · 2026-09-03 -->
183
-
184
- Записи предложений в день обновления никто не открывает: на них ничто не указывает. Пометка не
185
- видна в собранном тексте, переживает слияние по заголовкам и читается машиной: раскладка
186
- перечисляет разделы, чья статья в новой редакции уже есть. Снимает их человек — в раздел могли
187
- дописать и другое. Раздел без пометки считается постоянным.
188
-
189
- Каждому предложению ставится адрес: «пакет», «компаньон» или «дерево». Выгружаются они файлом в
190
- `.claude/rt-kit/proposals/` (форма — шаблон `proposal.md`), а `agent-kit propose` увозит в приём
191
- те, что адресованы пакету, вместе со сводкой и разборами происшествий. Адрес дерева в сводке или
192
- в тексте предложения отбивает отправку целиком.
193
-
194
- Приём — закрытая служба: сводка говорит о рабочих привычках команды, и в открытой очереди работ
195
- это выложено всему свету. Адрес приёма объявляется ключом `intake` в конфиге дерева, токен —
196
- ключом `token`, и лежит он вне дерева.
197
-
198
- Оба значения приходят от владельца приёма, а не придумываются потребителем: адрес он называет, а
199
- токен выдаёт одноразовым кодом приглашения — код заводит дерево в приёме и кладёт токен в файл
200
- ключа `token`. До приглашения отправка отказывает по устройству, а не по недонастройке.
201
-
202
- **Признак дерева считает отправитель, а не человек.** Он выводится из адреса репозитория, и
203
- запись в приёме заводится именно им: дерево, заведённое своим словом, приёмник не узнаёт. Что
204
- уедет и под каким признаком, печатает прогон вхолостую.
205
-
206
- **Отметка об отправке — след для человека, а не хранилище состояния.** Чистое дерево после
207
- отправки значит, что весь груз в приёме уже лежал, а не что отправка не сработала.
208
-
209
- Разбирают их там, где лежат правимые ресурсы и видно всех потребителей сразу, — а сюда
210
- приезжает ответ приёма о том, сколько записей легло.
211
-
212
- **Имя файла предложения в текстах дерева не называется.** Читателю чужого дерева оно не даёт
213
- ничего, а ссылка на каталог с машины автора ведёт в пустоту и красит проверку путей. Текст
214
- репозитория говорит, кому предложение отправлено и о чём оно; ресурс пакета называть можно.
215
-
216
- Предложение работу не выправляет. Оно лежит текстом, читается глазами и в контекст сам собой не
217
- приходит. Закрытым оно считается, только войдя в ресурс пакета: до этого на него не ссылаются как
218
- на действующее требование и не считают дырку закрытой.
219
-
220
- **Слово владельца о предложении — «отправь», «заведи», «напиши пропозал» и любая другая форма
221
- того же — исполняется отправкой в тот же ход.** Сухой прогон отправкой не считается: он
222
- показывает, что было бы отправлено, и следа наружу не оставляет. Отметки, которые отправка
223
- оставляет в дереве, ложатся вторым коммитом в ту же ветку. Это проверяет гард предложения на
224
- завершении хода.
225
-
226
- ## Установка туда, где уже всё своё
227
-
228
- 1. `init`, затем `skip` на всё, что дерево держит само; пустая раскладка — законное начало.
229
- 2. Снимок того, что говорят проверки дерева, до единой правки: он и есть мерило.
230
- 3. Ресурс за ресурсом: пакетную редакцию довести до здешней, предметность вынести в
231
- надстройку, снять отказ, разложить, прогнать сценарии и сверить снимок.
232
- 4. Разложенное поверх своего пакет не пишет: файл без шапки для него чужой. Отдаётся он
233
- командой `adopt` — прежнее содержимое ложится рядом с пометкой `.before-rt-kit`.
234
- 5. Ресурс, у которого здешняя редакция богаче пакетной по существу, в раскладку не берётся.
235
- Признак — статья, которой в пакетной редакции нет и не может быть: она выводится из предмета
236
- дерева. Он уходит в `skip`, а наверх едет предложение снять его из пакета.
237
- 6. Свои сценарии отданного файла переписываются под пакетное поведение либо снимаются: чинить
238
- пакетную редакцию на месте нельзя, её адрес — источник пакета или надстройка.
239
-
240
- ## Свойства дерева
241
-
242
- Часть правил пакета верна только там, где есть хранилище, админка или приложение. Дерево
243
- перечисляет, что у него есть, ключом `has`; ресурс называет нужное ему свойство приставкой в
244
- имени — `observability.needs-app.md`, — и дереву, которое такого свойства не назвало, не
245
- кладётся вовсе: ни он сам, ни черновик его компаньона.
161
+ ## Feedback upwards
162
+
163
+ The rules layer is edited not from memory but by how it was used. This is held by three things.
164
+
165
+ **Observations** are written by the guards themselves — into `.claude/rt-kit/observations/`, a
166
+ file per day. A line holds the package resource name, the kind of event, the kind of edit, the
167
+ version and a session sign; no tree paths and no tree name are there. Switched off by the key
168
+ `"observe": false` in the config.
169
+
170
+ **The digest** is `agent-kit stats`. Its most valuable line is not "what was used" but **what is
171
+ laid out and never loaded**: a rule nobody opened gives itself away by nothing.
172
+
173
+ **The cost** is `agent-kit cost`. The digest says what was used; the cost — what it cost: the
174
+ weight of entering work, the weight of one rule and the weight of the whole layer. Counted is
175
+ not the file but what the session receives. The number is comparable only with one taken by the
176
+ same command.
177
+
178
+ **Proposals** come by two roads: the review of a closed task — by the `/skill-curator` command —
179
+ brings them in a batch, and a remark made in the middle of work is put by the agent itself with
180
+ the `/feedback` command. Both write into one file of the day and in one form; neither goes to
181
+ the network — the send carries them away.
182
+
183
+ **The wording of a record is judged by the send, not only by the guard on an edit.** The guard
184
+ stands on a `.md` of the tree, and a record leaves by a command — that is, past it. The send calls
185
+ the wording check laid out in the tree on the text of every record: one with findings does not
186
+ leave and is named by its file, its line and the first finding, while the rest of the batch goes.
187
+ A refused record stays lying on the disk with the mark «отбито» and leaves after the fix. A tree
188
+ that laid out no such check sends as before and says so by a line: silence about it would read as
189
+ a check that found nothing.
190
+
191
+ **The text of a record is written by the role `cargo-writer`, and it writes no files.** The
192
+ record is read by a person who knows neither this task nor this tree, while it is written by a
193
+ session thinking in the words of the rules layer. The role writes into the ready-made shape —
194
+ its own shape gets the block refused by the quote — and hands the text back: putting it on the
195
+ disk belongs to whoever answers for the send.
196
+
197
+ Every record carries four lines: **place** — where the edit goes in the resource, **reason** —
198
+ what went wrong without it, **closest** — the exact quote of the resource line this is closest
199
+ to, and **what it closes** — which overrides of the tree are lifted when the edit arrives as a
200
+ package edition.
201
+
202
+ The third line is the only one the machine checks: the quote is searched for in the resource,
203
+ and one not found refuses the block. There is nothing close at all — write exactly that: «нет».
204
+ A refused block stays lying with the mark «отбито» and the reason: it is visible that the review
205
+ took place and why it did not become an edit.
206
+
207
+ The fourth is written because the proposal goes outside while the override stays lying here:
208
+ without it, it replaces an already fixed section forever. There is nothing to lift — write
209
+ exactly that; the fourth line is never empty.
210
+
211
+ The same link is put on the override itself — as a markup comment in its section:
212
+
213
+ <!-- rt-proposed: rules/task-flow.md · «the article in full, as in the proposal» · 2026-09-03 -->
214
+
215
+ Nobody opens the proposal records on the day of the update: nothing points to them. The mark is
216
+ invisible in the assembled text, survives the merge by headings and is read by the machine: the
217
+ layout lists the sections whose article already exists in the new edition. A person lifts them —
218
+ something else may have been added to the section. A section without a mark counts as permanent.
219
+
220
+ Every proposal gets an address: «пакет», «компаньон» or «дерево». They are dumped into a file in
221
+ `.claude/rt-kit/proposals/` (the form is the template `proposal.md`), and `agent-kit propose`
222
+ carries to the intake those addressed to the package, together with the digest and the incident
223
+ analyses. A tree address in the digest or in the proposal text refuses the send in full.
224
+
225
+ The intake is a closed service: the digest speaks of the team's working habits, and in an open
226
+ work queue that is laid out for all to see. The intake address is declared by the key `intake`
227
+ in the tree config, the token by the key `token`, and it lies outside the tree.
228
+
229
+ Both values come from the intake owner and are not invented by the consumer: the address they
230
+ name, the token they issue as a one-off invitation code — the code enrols the tree in the intake
231
+ and puts the token into the file of the key `token`. Before the invitation the send refuses by
232
+ design, not by misconfiguration.
233
+
234
+ **The fate of its own records the tree asks by `agent-kit fate`.** The command reads the intake by
235
+ the token — the same one the cargo goes under — and prints every record with its state, what it was
236
+ fixed by and the version of the release. Under a record stands the override the mark of its section
237
+ ties to it: it is lifted now when the article already lies in the laid-out edition, and it waits for
238
+ an installation when the fix came out and has not reached this tree. A mark the intake gave no
239
+ record for is named apart. The command lifts nothing itself: the mark holds one article, and the
240
+ section may have been written into since.
241
+
242
+ **The tree sign is computed by the sender, not by a person.** It is derived from the repository
243
+ address, and the intake record is created by exactly it: a tree enrolled under its own word the
244
+ intake does not recognise. What would go and under which sign is printed by the dry run.
245
+
246
+ **The mark of a send is a trace for a person, not a store of state.** A clean tree after a send
247
+ means the whole cargo already lay in the intake, not that the send did not work.
248
+
249
+ They are reviewed where the editable resources lie and all consumers are visible at once — and
250
+ what arrives here is the intake's reply about how many records landed.
251
+
252
+ **The proposal file name is not named in tree texts.** It gives a reader of a foreign tree
253
+ nothing, and a link to a directory on the author's machine leads nowhere and turns the path check
254
+ red. Repository text says whom the proposal was sent to and what it is about; the package
255
+ resource may be named.
256
+
257
+ A proposal does not straighten the work. It lies as text, is read by eye and does not come into
258
+ the context by itself. It counts as closed only once it has entered a package resource: until
259
+ then it is not referred to as a current requirement and the hole is not counted closed.
260
+
261
+ **The owner's word about a proposal — "send it", "file it", "write a proposal" and any other form
262
+ of the same — is carried out by a send in the same turn.** A dry run does not count as a send: it
263
+ shows what would be sent and leaves no trace outside. The marks the send leaves in the tree land
264
+ as a second commit in the same branch. This is checked by the proposal guard at the end of the
265
+ turn.
266
+
267
+ ## Installation where everything is already your own
268
+
269
+ 1. `init`, then `skip` on everything the tree holds itself; an empty layout is a lawful start.
270
+ 2. A snapshot of what the tree's checks say, before a single edit: it is the measure.
271
+ 3. Resource by resource: bring the package edition up to the local one, move the subject matter
272
+ into an override, lift the drop, lay out, run the scenarios and compare with the snapshot.
273
+ 4. The package does not write a layout over your own: a file without a header is foreign to
274
+ it. It is handed over with the `adopt` command — the former content lands next to it, marked
275
+ `.before-rt-kit`.
276
+ 5. A resource whose local edition is richer than the package one in substance is not taken into
277
+ the layout. The sign is an article that the package edition lacks and cannot have: it follows
278
+ from the tree's subject. It goes into `skip`, and a proposal to remove it from the package
279
+ goes upwards.
280
+ 6. Your own scenarios of a handed-over file are rewritten for the package behaviour or removed:
281
+ fixing the package edition in place is not allowed, its address is the package source or the
282
+ override.
283
+
284
+ ## Tree traits
285
+
286
+ Some package rules are true only where there is a storage, an admin or an application. The tree
287
+ lists what it has by the key `has`; a resource names the trait it needs by a prefix in its name —
288
+ `observability.needs-app.md` — and to a tree that did not name such a trait it is not put at
289
+ all: neither itself nor the draft of its companion.
246
290
 
247
291
  ```json
248
292
  { "has": ["packages", "app"] }
249
293
  ```
250
294
 
251
- - **Молчание требованию не отвечает.** Дерево с пустым `has` не получает ни одного помеченного
252
- ресурса: положенный наугад, он вернётся пустым компаньоном, заполнить который нечем.
253
- - **Требование — не вид.** Вид выбирается один; свойств у дерева сразу несколько.
295
+ - **Silence does not answer a requirement.** A tree with an empty `has` gets not one marked
296
+ resource: put at a guess, it comes back as an empty companion with nothing to fill it.
297
+ - **A requirement is not a kind.** A kind is chosen once; a tree has several traits at once.
254
298
 
255
- ## Выключенная роль
299
+ ## Disabled role
256
300
 
257
- Роль, при которой стоит гард, зовётся не по усмотрению исполнителя: гард держит работу, пока роль
258
- не сказала своё. Дерево, которому она мешает, называет её ключом `rolesOff` — именем файла роли.
301
+ A role with a guard next to it is not called at the executor's discretion: the guard holds the
302
+ work until the role has had its say. A tree it gets in the way of names it by the key `rolesOff`
303
+ — by the role file name.
259
304
 
260
305
  ```json
261
306
  { "rolesOff": ["strict-teacher"] }
262
307
  ```
263
308
 
264
- - **Выключается обязательность вызова, а не роль.** Файл роли остаётся разложенным, и позвать её
265
- руками можно в любую минуту. Список читают сами гарды — помощником, лежащим рядом с ними.
266
- - **От отказа ключом `skip` это отличается тем, что ничего не убирает.** Отказ не кладёт файл
267
- роли вовсе: звать становится некого, а гард при ней остаётся лежать и продолжает отбивать.
268
- Здесь наоборот — роль на месте, молчит гард.
269
-
270
- ## Ловушки раскладки
271
-
272
- - **Словарь — такой же разложенный ресурс, как правило.** Хук запуска кладёт его в контекст
273
- целиком, до первой реплики, и оттого он выглядит обычным документом дерева; шапка у него есть,
274
- но читается служебной строкой. Новое слово идёт в надстройку словаря, своим разделом.
275
-
276
- - **Запись файла командой оболочки проверяется по всем путям, названным в её теле.** Гейт
277
- вынимает пути из текста команды и читает тело документа целиком, если в команде есть имя
278
- интерпретатора; строка импорта разложенного модуля тогда требует второе правило, а требуется
279
- за раз одно — два отказа подряд, и каждый теряет написанное тело. Инструмент правки
280
- проверяется одним своим путём; перенаправление оболочки — для того, что файлом дерева не станет.
281
- - **Своё, стоящее рядом с разложенным, повторяет его механику молча.** Разбор списка известного,
282
- корни исходников и снимок долга даёт модуль настройки проверок; второй такой же разбор в своей
283
- проверке не видит ни сверка раскладки, ни проверка повторов. Перед тем как завести своё, смотрят,
284
- что экспортирует модуль настройки проверок.
285
- - **Правило, загруженное инструментом, бывает показано не целиком, и обрыв ничем не помечен.**
286
- Длинный файл приходит в контекст обрезанным по строке, а обрыв приходится на хвост — туда, где
287
- разделы надстройки дописаны в конец. Показанные строки сверяются с длиной файла одной командой;
288
- расходятся — файл дочитывается чтением.
309
+ - **What is switched off is the mandatory call, not the role.** The role file stays laid out, and
310
+ it can be called by hand at any minute. The list is read by the guards themselves — through a
311
+ helper lying next to them.
312
+ - **It differs from dropping by the `skip` key in that it removes nothing.** A drop does not put
313
+ the role file at all: there is nobody left to call, and the guard next to it stays and keeps
314
+ refusing. Here it is the other way round — the role is in place, the guard is silent.