@rt-tools/agent-kit 0.24.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/assets/agents/business-analyst.md +51 -50
  2. package/assets/agents/cargo-writer.md +54 -0
  3. package/assets/agents/conscience.md +37 -35
  4. package/assets/agents/project-manager.md +49 -48
  5. package/assets/agents/prose-editor.md +31 -29
  6. package/assets/agents/qa-engineer.md +50 -48
  7. package/assets/agents/rules-reviewer.md +63 -58
  8. package/assets/agents/skill-curator.md +83 -78
  9. package/assets/agents/spec-critic.md +34 -29
  10. package/assets/agents/spec-writer.md +35 -32
  11. package/assets/agents/strict-teacher.md +39 -37
  12. package/assets/checks/archive-age.mjs +48 -28
  13. package/assets/checks/archive-prune.mjs +16 -14
  14. package/assets/checks/board-epic-link.github.mjs +29 -0
  15. package/assets/checks/board-epics.github.mjs +286 -49
  16. package/assets/checks/board-folders.mjs +61 -0
  17. package/assets/checks/board-gh.github.mjs +35 -26
  18. package/assets/checks/board-long-work.github.mjs +29 -25
  19. package/assets/checks/board-paths.github.mjs +21 -16
  20. package/assets/checks/board-pull-state.github.mjs +168 -0
  21. package/assets/checks/board-runs.github.mjs +45 -43
  22. package/assets/checks/board-task-dirs.github.mjs +98 -0
  23. package/assets/checks/board-titles.github.mjs +19 -17
  24. package/assets/checks/board.github.mjs +133 -194
  25. package/assets/checks/check-archive-age.mjs +23 -19
  26. package/assets/checks/check-board.github.mjs +131 -263
  27. package/assets/checks/check-descriptions.mjs +30 -29
  28. package/assets/checks/check-doc-paths.mjs +91 -88
  29. package/assets/checks/check-dupes.mjs +84 -80
  30. package/assets/checks/check-file-size.mjs +74 -71
  31. package/assets/checks/check-glossary.mjs +47 -37
  32. package/assets/checks/check-hook-scope.mjs +30 -27
  33. package/assets/checks/check-lib-layers.mjs +22 -21
  34. package/assets/checks/check-profile-drift.mjs +48 -43
  35. package/assets/checks/check-prose-style.mjs +138 -39
  36. package/assets/checks/check-push-gate.mjs +53 -50
  37. package/assets/checks/check-reuse.mjs +50 -40
  38. package/assets/checks/check-schema-drift.mjs +104 -84
  39. package/assets/checks/check-specs.mjs +155 -134
  40. package/assets/checks/check-state-next.mjs +66 -52
  41. package/assets/checks/check-states.mjs +32 -30
  42. package/assets/checks/check-styles.mjs +52 -51
  43. package/assets/checks/check-turn-map.mjs +54 -46
  44. package/assets/checks/epic-table.github.mjs +268 -0
  45. package/assets/checks/lib-boundaries.mjs +32 -30
  46. package/assets/checks/lib-common.mjs +30 -29
  47. package/assets/checks/lib-domains.mjs +34 -34
  48. package/assets/checks/lib-manifests.mjs +17 -15
  49. package/assets/checks/lib-reexports.mjs +18 -18
  50. package/assets/checks/rt-kit-checks.config.mjs +187 -142
  51. package/assets/checks/signals.mjs +43 -39
  52. package/assets/checks/spec-anchors.mjs +114 -87
  53. package/assets/checks/spec-common.mjs +128 -84
  54. package/assets/checks/spec-contract.mjs +30 -30
  55. package/assets/checks/spec-proposed.mjs +27 -24
  56. package/assets/checks/spec-scenarios.mjs +51 -28
  57. package/assets/checks/specs-for.mjs +214 -0
  58. package/assets/checks/task-new.github.mjs +315 -61
  59. package/assets/commands/feedback.md +65 -59
  60. package/assets/commands/next-session.md +64 -57
  61. package/assets/commands/night.md +115 -0
  62. package/assets/commands/skill-curator.md +83 -79
  63. package/assets/defaults/gate-map.sh +108 -97
  64. package/assets/defaults/project.sh +232 -185
  65. package/assets/defaults/shell.sh +73 -68
  66. package/assets/defaults/turn-map.md +47 -44
  67. package/assets/docs/GLOSSARY.md +142 -65
  68. package/assets/hooks/browser-device-id.sh +16 -12
  69. package/assets/hooks/browser-guard-device-id.sh +34 -28
  70. package/assets/hooks/browser-guard-no-asking.sh +5 -4
  71. package/assets/hooks/browser-guard-no-listing.sh +12 -11
  72. package/assets/hooks/browser-guard-no-other-drivers.sh +48 -42
  73. package/assets/hooks/browser-guard-require-select.sh +34 -23
  74. package/assets/hooks/claim-guard.sh +62 -56
  75. package/assets/hooks/commit-msg.sh +14 -10
  76. package/assets/hooks/conscience-guard.sh +91 -45
  77. package/assets/hooks/constitution-index.sh +16 -16
  78. package/assets/hooks/deny-tail.sh +28 -26
  79. package/assets/hooks/dev-server-guard.sh +50 -43
  80. package/assets/hooks/dispatch.sh +60 -46
  81. package/assets/hooks/docs-guard.sh +100 -91
  82. package/assets/hooks/epic-over.sh +49 -0
  83. package/assets/hooks/epic-stop-guard.sh +108 -0
  84. package/assets/hooks/exam-guard.sh +105 -93
  85. package/assets/hooks/git-guard-delivery-conflict.sh +41 -36
  86. package/assets/hooks/git-guard-delivery-draft.sh +48 -38
  87. package/assets/hooks/git-guard-delivery-epic.sh +167 -0
  88. package/assets/hooks/git-guard-delivery-folder.sh +50 -43
  89. package/assets/hooks/git-guard-delivery-signature.sh +119 -53
  90. package/assets/hooks/git-guard-delivery.sh +223 -183
  91. package/assets/hooks/git-guard-main.sh +38 -34
  92. package/assets/hooks/git-guard-push-tests.sh +99 -87
  93. package/assets/hooks/glossary-load.sh +23 -22
  94. package/assets/hooks/grill-gate-ask.sh +12 -11
  95. package/assets/hooks/grill-gate.sh +94 -87
  96. package/assets/hooks/guard-note.sh +20 -19
  97. package/assets/hooks/handoff-entry-guard.sh +45 -25
  98. package/assets/hooks/handoff-write.sh +74 -67
  99. package/assets/hooks/hook-input.sh +67 -58
  100. package/assets/hooks/lint-after-edit.sh +95 -61
  101. package/assets/hooks/observe.sh +28 -26
  102. package/assets/hooks/override-write-guard.sh +23 -21
  103. package/assets/hooks/postmortem-guard.sh +42 -39
  104. package/assets/hooks/profile-check.sh +22 -20
  105. package/assets/hooks/proposal-guard.sh +57 -49
  106. package/assets/hooks/prose-style-guard.sh +49 -24
  107. package/assets/hooks/qa-dataid-guard.sh +83 -58
  108. package/assets/hooks/rerun-guard.sh +31 -30
  109. package/assets/hooks/reuse-first-guard.sh +108 -87
  110. package/assets/hooks/roles.sh +14 -14
  111. package/assets/hooks/rule-article.sh +39 -34
  112. package/assets/hooks/rule-source-guard.sh +47 -42
  113. package/assets/hooks/skill-gate-layers.sh +63 -57
  114. package/assets/hooks/skill-gate-rearm.sh +15 -8
  115. package/assets/hooks/skill-gate.sh +89 -81
  116. package/assets/hooks/skill-loaded.sh +10 -6
  117. package/assets/hooks/sql-guard-parse.sh +71 -66
  118. package/assets/hooks/sql-guard-request.sh +51 -46
  119. package/assets/hooks/sql-guard-target.sh +60 -51
  120. package/assets/hooks/sql-guard-write.sh +87 -79
  121. package/assets/hooks/sql-guard.sh +52 -47
  122. package/assets/hooks/stand-login-guard.sh +43 -37
  123. package/assets/hooks/task-context-load.sh +60 -55
  124. package/assets/hooks/task-flow-context.sh +87 -69
  125. package/assets/hooks/task-flow-draft-guard.sh +55 -48
  126. package/assets/hooks/task-flow-guard.sh +67 -64
  127. package/assets/hooks/turn-entry-load.sh +39 -32
  128. package/assets/hooks/turn-exit-guard.sh +260 -204
  129. package/assets/hooks/turn-exit-patterns.sh +63 -0
  130. package/assets/hooks/utf8.sh +14 -11
  131. package/assets/hooks/waiting-turn-guard.sh +104 -94
  132. package/assets/hooks/window-fill-guard.sh +70 -62
  133. package/assets/hooks/work-start-guard.sh +52 -49
  134. package/assets/hooks/write-targets.sh +99 -44
  135. package/assets/laws/autonomous-work.md +29 -27
  136. package/assets/laws/code-structure.md +31 -30
  137. package/assets/laws/delivery.md +170 -137
  138. package/assets/laws/entity-editing.md +52 -50
  139. package/assets/laws/entity-models.md +14 -13
  140. package/assets/laws/frontend-application.md +39 -38
  141. package/assets/laws/lib-imports.md +27 -27
  142. package/assets/laws/lists.md +31 -29
  143. package/assets/laws/navigation.md +37 -37
  144. package/assets/laws/observability.md +41 -40
  145. package/assets/laws/project-documentation.md +106 -99
  146. package/assets/laws/reuse-first.md +31 -29
  147. package/assets/laws/shared-code.md +27 -27
  148. package/assets/laws/verifiability.md +131 -124
  149. package/assets/laws/work-conduct.md +250 -244
  150. package/assets/patterns/admin-lists-screen.md +72 -69
  151. package/assets/patterns/admin-nav-item.md +51 -46
  152. package/assets/patterns/angular-patterns-state.md +32 -31
  153. package/assets/patterns/api-layer-pair.md +33 -31
  154. package/assets/patterns/autonomous-work-run.md +50 -49
  155. package/assets/patterns/browser-verification-measure.md +124 -88
  156. package/assets/patterns/browser-verification-stand.md +169 -157
  157. package/assets/patterns/component-structure-new.md +51 -42
  158. package/assets/patterns/dependencies-upgrade.md +55 -39
  159. package/assets/patterns/doc-style-human.md +55 -37
  160. package/assets/patterns/doc-style-sweep.md +82 -79
  161. package/assets/patterns/doc-style-trace.md +87 -81
  162. package/assets/patterns/doc-style-write.md +130 -122
  163. package/assets/patterns/entity-aside.md +77 -63
  164. package/assets/patterns/entity-models-new.md +37 -37
  165. package/assets/patterns/entity-store.md +33 -33
  166. package/assets/patterns/git-workflow-commit.azure.md +94 -87
  167. package/assets/patterns/git-workflow-commit.github.md +160 -142
  168. package/assets/patterns/git-workflow-commit.gitlab.md +96 -90
  169. package/assets/patterns/git-workflow-docker.md +165 -147
  170. package/assets/patterns/git-workflow-freshness.md +45 -45
  171. package/assets/patterns/git-workflow-merge.md +102 -94
  172. package/assets/patterns/git-workflow-migration.md +54 -52
  173. package/assets/patterns/git-workflow-pr-ready.md +57 -56
  174. package/assets/patterns/git-workflow-pr.azure.md +127 -122
  175. package/assets/patterns/git-workflow-pr.github.md +186 -177
  176. package/assets/patterns/git-workflow-pr.gitlab.md +139 -132
  177. package/assets/patterns/git-workflow-restart.md +35 -31
  178. package/assets/patterns/git-workflow-secrets.md +80 -73
  179. package/assets/patterns/git-workflow-stack.md +136 -107
  180. package/assets/patterns/lib-layers-move.md +62 -53
  181. package/assets/patterns/lib-layers-new.md +59 -45
  182. package/assets/patterns/observability-record.md +72 -67
  183. package/assets/patterns/platform-access-di.md +31 -29
  184. package/assets/patterns/reuse-first-extend.md +66 -61
  185. package/assets/patterns/shared-code-new.md +39 -38
  186. package/assets/patterns/spec-driven-domain.md +161 -151
  187. package/assets/patterns/spec-driven-rule.md +179 -168
  188. package/assets/patterns/spec-driven-sweep.md +41 -39
  189. package/assets/patterns/status-report-table.github.md +48 -36
  190. package/assets/patterns/styling-bem-component.md +42 -42
  191. package/assets/patterns/styling-bem-layout.md +39 -34
  192. package/assets/patterns/styling-bem-sheet.md +59 -58
  193. package/assets/patterns/task-flow-archive.md +222 -215
  194. package/assets/patterns/task-flow-close.md +234 -203
  195. package/assets/patterns/task-flow-handoff.md +154 -145
  196. package/assets/patterns/task-flow-resume.md +138 -133
  197. package/assets/patterns/task-flow-start.md +228 -202
  198. package/assets/patterns/testing-e2e.md +102 -101
  199. package/assets/patterns/testing-unit.md +77 -70
  200. package/assets/patterns/ts-procedure.md +32 -29
  201. package/assets/patterns/turn-entry-map.md +50 -48
  202. package/assets/pitfalls/agent-kit.md +172 -142
  203. package/assets/pitfalls/doc-style.md +96 -91
  204. package/assets/pitfalls/git-workflow.azure.md +49 -46
  205. package/assets/pitfalls/git-workflow.github.md +270 -234
  206. package/assets/pitfalls/git-workflow.gitlab.md +49 -45
  207. package/assets/pitfalls/spec-driven.md +73 -71
  208. package/assets/pitfalls/styling-bem.md +46 -40
  209. package/assets/pitfalls/task-flow.md +262 -246
  210. package/assets/pitfalls/testing.md +99 -92
  211. package/assets/pitfalls/turn-conduct.md +96 -81
  212. package/assets/rules/angular-patterns.md +81 -80
  213. package/assets/rules/api-layer.md +77 -74
  214. package/assets/rules/autonomous-work.md +87 -74
  215. package/assets/rules/browser-verification.md +223 -214
  216. package/assets/rules/component-structure.md +72 -69
  217. package/assets/rules/dependencies.md +74 -67
  218. package/assets/rules/deploy-flow.azure.md +118 -108
  219. package/assets/rules/deploy-flow.github.md +145 -135
  220. package/assets/rules/deploy-flow.gitlab.md +120 -110
  221. package/assets/rules/doc-style.md +201 -173
  222. package/assets/rules/entity-conventions.needs-admin.md +81 -79
  223. package/assets/rules/entity-models.md +73 -70
  224. package/assets/rules/git-workflow.azure.md +224 -228
  225. package/assets/rules/git-workflow.github.md +268 -239
  226. package/assets/rules/git-workflow.gitlab.md +218 -217
  227. package/assets/rules/lib-layers.md +85 -86
  228. package/assets/rules/lists.md +101 -97
  229. package/assets/rules/navigation.md +78 -78
  230. package/assets/rules/observability.needs-app.md +165 -153
  231. package/assets/rules/platform-access.md +76 -75
  232. package/assets/rules/reuse-first.md +153 -143
  233. package/assets/rules/shared-code.md +82 -79
  234. package/assets/rules/spec-driven.md +279 -260
  235. package/assets/rules/status-report.md +62 -58
  236. package/assets/rules/styling-bem.md +81 -77
  237. package/assets/rules/task-flow.md +303 -270
  238. package/assets/rules/testing.md +224 -209
  239. package/assets/rules/turn-conduct.md +262 -258
  240. package/assets/rules/turn-entry.md +92 -87
  241. package/assets/rules/typescript-conventions.md +94 -88
  242. package/assets/samples/specs/_template/spec.md +47 -47
  243. package/assets/samples/tasks/_template/grill.md +20 -20
  244. package/assets/samples/tasks/_template/plan.md +32 -30
  245. package/assets/samples/tasks/_template/progress.md +16 -16
  246. package/assets/skills/agent-kit-extend.md +129 -113
  247. package/assets/skills/agent-kit.md +259 -233
  248. package/assets/skills/write-a-skill.md +76 -71
  249. package/assets/templates/findings.md +19 -19
  250. package/assets/templates/gate-map.sh +16 -14
  251. package/assets/templates/implementation.md +28 -27
  252. package/assets/templates/pattern.md +17 -17
  253. package/assets/templates/pitfalls.md +6 -6
  254. package/assets/templates/postmortem.md +24 -23
  255. package/assets/templates/project.sh +24 -24
  256. package/assets/templates/proposal.md +62 -60
  257. package/assets/templates/rule.md +38 -38
  258. package/assets/workflows/feature.js +46 -46
  259. package/assets/workflows/plan.js +54 -54
  260. package/bin/agent-kit.d.ts.map +1 -1
  261. package/bin/agent-kit.js +8 -1
  262. package/bin/agent-kit.js.map +1 -1
  263. package/lib/cargo-prose.d.ts +41 -0
  264. package/lib/cargo-prose.d.ts.map +1 -0
  265. package/lib/cargo-prose.js +88 -0
  266. package/lib/cargo-prose.js.map +1 -0
  267. package/lib/cargo.d.ts +12 -1
  268. package/lib/cargo.d.ts.map +1 -1
  269. package/lib/cargo.js +8 -2
  270. package/lib/cargo.js.map +1 -1
  271. package/lib/catalog.d.ts +2 -0
  272. package/lib/catalog.d.ts.map +1 -1
  273. package/lib/catalog.js +4 -3
  274. package/lib/catalog.js.map +1 -1
  275. package/lib/commands.d.ts.map +1 -1
  276. package/lib/commands.js +5 -2
  277. package/lib/commands.js.map +1 -1
  278. package/lib/companion.js +3 -2
  279. package/lib/companion.js.map +1 -1
  280. package/lib/enroll.d.ts +7 -1
  281. package/lib/enroll.d.ts.map +1 -1
  282. package/lib/enroll.js +12 -3
  283. package/lib/enroll.js.map +1 -1
  284. package/lib/fate.d.ts +29 -0
  285. package/lib/fate.d.ts.map +1 -0
  286. package/lib/fate.js +147 -0
  287. package/lib/fate.js.map +1 -0
  288. package/lib/override-marks.d.ts +7 -0
  289. package/lib/override-marks.d.ts.map +1 -1
  290. package/lib/override-marks.js +14 -0
  291. package/lib/override-marks.js.map +1 -1
  292. package/lib/plan.d.ts +11 -0
  293. package/lib/plan.d.ts.map +1 -1
  294. package/lib/plan.js +10 -1
  295. package/lib/plan.js.map +1 -1
  296. package/lib/ship.d.ts +29 -9
  297. package/lib/ship.d.ts.map +1 -1
  298. package/lib/ship.js +44 -2
  299. package/lib/ship.js.map +1 -1
  300. package/lib/shipment.d.ts.map +1 -1
  301. package/lib/shipment.fixture.d.ts +8 -1
  302. package/lib/shipment.fixture.d.ts.map +1 -1
  303. package/lib/shipment.fixture.js +9 -0
  304. package/lib/shipment.fixture.js.map +1 -1
  305. package/lib/shipment.js +38 -5
  306. package/lib/shipment.js.map +1 -1
  307. package/lib/sync.d.ts.map +1 -1
  308. package/lib/sync.js +45 -11
  309. package/lib/sync.js.map +1 -1
  310. package/package.json +1 -1
  311. package/rt-tools-agent-kit-0.27.0.tgz +0 -0
  312. package/rt-tools-agent-kit-0.24.0.tgz +0 -0
@@ -2,80 +2,82 @@
2
2
  name: turn-entry-map
3
3
  kind: pattern
4
4
  rule: turn-entry
5
- description: Паттерн правила turn-entry. Брать при правке карты хода и хука, который её подаёт, — что в карту входит, чем она отличается от правила, как хук молчит о недостающем и как это проверяется. Не брать для формы самой передачи — это паттерн task-flow-handoff.
5
+ description: Pattern of rule turn-entry. Load when editing the turn map and the hook that serves it — what goes into the map, how it differs from a rule, how the hook stays silent about what is missing and how that is checked. Not for the shape of the handover itself — that is pattern task-flow-handoff.
6
6
  ---
7
7
 
8
- # Карта хода и её подача — готовый код
8
+ # The turn map and its serving — ready-made code
9
9
 
10
- Паттерн правила `turn-entry`. Что при этом должно быть верно — закон
10
+ Pattern of the rule `turn-entry`. What must be true — the law
11
11
  `docs/constitution/work-conduct.md`.
12
12
 
13
- ## Когда брать
13
+ ## When to use
14
14
 
15
- - В правило ведения работы добавили состояние — карта отстала.
16
- - Правится хук входа или порядок, в котором части входа кладутся в контекст.
17
- - Проверка карты покраснела.
15
+ - A state was added to the rule on the course of work — the map fell behind.
16
+ - The entry hook is being edited, or the order in which the parts of the entry are put into the
17
+ context.
18
+ - The map check turned red.
18
19
 
19
- ## Что входит в карту, а что нет
20
+ ## What goes into the map and what does not
20
21
 
21
- Карта отвечает на вопрос «что делать», правило — на вопрос «почему». Признак отбора один: строка,
22
- которую заход прочитает и после которой сделает следующий шаг, — в карту; строка, которая
23
- объясняет, откуда требование взялось, — в правило.
22
+ The map answers the question "what to do", the rule — the question "why". There is one selection
23
+ sign: a line the session reads and then takes the next step — into the map; a line that explains
24
+ where the requirement came from — into the rule.
24
25
 
25
- | В карту | В правило |
26
- | ---------------------------------------------- | -------------------------------------------------- |
27
- | имя состояния и его обязательное действие | почему это действие обязательно |
28
- | паттерн, который состояние ведёт | разбор происшествия, из которого оно выросло |
29
- | четыре выхода хода и чем каждый подтверждается | что бывает, когда ход кончают иначе |
30
- | строка о том, что остальное — продолжение хода | перечень того, чем ход кончать нельзя, с примерами |
26
+ | Into the map | Into the rule |
27
+ | --------------------------------------------------- | -------------------------------------------------------- |
28
+ | the state name and its mandatory action | why this action is mandatory |
29
+ | the pattern the state leads to | the incident analysis it grew out of |
30
+ | the four turn exits and what backs each of them | what happens when a turn is ended otherwise |
31
+ | a line that the rest is a continuation of the turn | the list of what a turn must not end with, with examples |
31
32
 
32
- Разбор происшествия в карту не переезжает никогда: он объясняет, а объяснение — это правило.
33
+ An incident analysis never moves into the map: it explains, and an explanation is the rule.
33
34
 
34
- ## Подача: сперва передача, потом карта
35
+ ## Serving: first the handover, then the map
35
36
 
36
- Порядок не безразличен. Передача говорит, где именно стоит эта работа, карта — что делают в
37
- таком месте вообще. Прочитанная первой, карта отвечает на вопрос, которого заход ещё не задал.
37
+ The order is not indifferent. The handover says where exactly this work stands, the map — what is
38
+ done in such a place in general. Read first, the map answers a question the session has not asked
39
+ yet.
38
40
 
39
41
  ```bash
40
- # передача — по имени текущей ветки, не выбором из каталога
42
+ # the handover — by the name of the current branch, not by picking from the directory
41
43
  handoff="$ROOT/${RT_HANDOFF_DIR:-.claude/handoff}/$(git branch --show-current).md"
42
- [ -r "$handoff" ] && { printf 'ПЕРЕДАЧА ПРОШЛОГО ЗАХОДА\n\n'; cat "$handoff"; }
44
+ [ -r "$handoff" ] && { printf 'HANDOVER OF THE PAST SESSION\n\n'; cat "$handoff"; }
43
45
 
44
- # карта — своим файлом, а не разбором правила
45
- [ -r "$map" ] && { printf 'КАРТА ХОДА\n\n'; cat "$map"; }
46
+ # the map — as its own file, not parsed out of the rule
47
+ [ -r "$map" ] && { printf 'TURN MAP\n\n'; cat "$map"; }
46
48
 
47
49
  exit 0
48
50
  ```
49
51
 
50
- Три вещи в этом куске обязательны и легко теряются:
52
+ Three things in this piece are mandatory and easily lost:
51
53
 
52
- - **`-r`, а не `-f`.** Файл может существовать и не читаться; `-f` тогда пропускает `cat`
53
- дальше, и хук печатает заголовок над пустотой.
54
- - **`exit 0` в конце и никаких других выходов.** Хук входа ничего не отбивает: заход без части
55
- контекста лучше, чем отбитый запуск.
56
- - **Имя файла собирается из ветки.** Выбор «первого попавшегося» в каталоге подаёт чужую
57
- передачу, и выглядит она как своя.
54
+ - **`-r`, not `-f`.** The file may exist and not be readable; `-f` then lets `cat` through, and
55
+ the hook prints a heading over emptiness.
56
+ - **`exit 0` at the end and no other exits.** The entry hook refuses nothing: a session without
57
+ part of the context is better than a refused launch.
58
+ - **The file name is built from the branch.** Picking "the first one found" in the directory
59
+ serves someone else's handover, and it looks like one's own.
58
60
 
59
- ## Чем это проверяется
61
+ ## What it is checked with
60
62
 
61
63
  ```bash
62
- node tools/check-turn-map.mjs # размер, полнота состояний в обе стороны, четыре выхода
64
+ node tools/check-turn-map.mjs # size, completeness of states both ways, four exits
63
65
  ```
64
66
 
65
- Проверка сверяет имена состояний карты с таблицей правила в обе стороны: состояние, заведённое
66
- правилом и забытое в карте, и состояние, оставшееся в карте после переименования, — оба
67
- расхождения.
67
+ The check compares the state names of the map with the rule's table both ways: a state declared
68
+ by the rule and forgotten in the map, and a state left in the map after a rename — both are
69
+ divergences.
68
70
 
69
- Живая проба хука делается на дереве, где обе части лежат, и повторяется четырежды: обе части,
70
- без передачи, без карты, без обеих. Последний случай обязан дать пустой вывод и нулевой код —
71
- хук, промолчавший с ненулевым кодом, читается как отбитый запуск.
71
+ A live trial of the hook is done on a tree where both parts lie, and is repeated four times: both
72
+ parts, without the handover, without the map, without both. The last case must give empty output
73
+ and a zero code — a hook that stayed silent with a non-zero code reads as a refused launch.
72
74
 
73
- ## Частые промахи
75
+ ## Common misses
74
76
 
75
- - **Предел размера назначается замером, а не на глаз.** Первое число выбрали «вдвое больше
76
- нынешней карты» — и проверка покраснела на собственном тексте в первом же прогоне: карта в
77
- кириллице весит вдвое больше, чем кажется по числу строк.
78
- - **Выход за предел означает деление карты, а не подъём предела.** Поднятый однажды, он
79
- поднимается и во второй раз, и карта тихо становится вторым экземпляром правила.
80
- - **Карта, разобранная из правила на месте, ломается молча.** Правку разметки таблицы не видит
81
- ни одна проверка, а карта после неё приходит пустой — и заход об этом не узнает.
77
+ - **The size limit is assigned by measurement, not by eye.** The first number was chosen as
78
+ "twice the current map" — and the check turned red on its own text in the very first run: a map
79
+ in Cyrillic weighs twice what the line count suggests.
80
+ - **Going past the limit means splitting the map, not raising the limit.** Raised once, it is
81
+ raised a second time too, and the map quietly becomes a second copy of the rule.
82
+ - **A map parsed out of the rule on the spot breaks silently.** No check sees an edit of the
83
+ table markup, and the map after it arrives empty — and the session never learns of it.
@@ -1,148 +1,178 @@
1
- # Переносимый слой правил — холодная часть
2
-
3
- Ловушки и грабли, на которые уже наступали. Грузится не вместе со скилом, а по требованию: при
4
- обычной раскладке она не нужна — она нужна тому, кто разбирает отказ сверки или спорит с
5
- раскладкой.
6
-
7
- Скил — `agent-kit`; порядок правки, команды и устройство слоёв стоят там.
8
-
9
- ## Ловушки
10
-
11
- - **Набор, проверяющий гард, читает настройку того дерева, из которого его запустили.** Помощник
12
- берёт настройку по каталогу проекта, а его агент выставляет своим — и `cd` в прогонщике этого
13
- не перебивает. Набор, не заведший своего одноразового дерева, зеленеет от строки в чужой
14
- настройке: шесть сценариев гарда экзамена прошли ровно так, потому что роль была выключена в
15
- дереве, где их гоняли. Своё дерево объявляется на каждый сценарий, а не один раз на файл.
16
-
17
- - **Надстройка замещает раздел целиком, и пакетные пункты в нём приходится держать копией.**
18
- Дописать в раздел одну статью нечем: слияние идёт по заголовку `## `. Дерево, которому нужен
19
- один свой пункт, копирует к нему все пакетные — и с этого дня правка любого из них,
20
- приехавшая с новой версией, до этого дерева не доходит. Сверка разложенного молчит: она
21
- считает расхождением правку на месте, а не замещённый раздел. Признак виден по самим
22
- надстройкам — три из трёх прочитанных кончались абзацем о том, что перенос придётся делать
23
- руками. Поэтому надстройкой берут раздел, у которого пакетных пунктов немного, а разросшийся
24
- замещённый раздел — повод внести своё в пакет, а не держать его копией. Предложение, которым
25
- своё вносят, называет эту надстройку строкой «чем закрывается»: иначе приехавшая редакция и
26
- надстройка, которую она закрыла, не сопоставляются ничем, и надстройка остаётся замещать уже
27
- исправленный раздел.
28
-
29
- Скопированная пакетная строка правится в источнике пакета, а не в копии: правка внутри
30
- надстройки расходится с исходником молча, и видно её только там, где сам текст служит ключом
31
- связи — в статье, у которой есть привязка. Перед правкой строки в надстройке она ищется в
32
- источнике; не нашлась — строка своя, и правится на месте.
33
- - **Готовый код пакета не называет имён одного дерева.** Префикс директив кита, ключи подписей
34
- и имена сущностей принадлежат тому дереву, где паттерн писали; разложенные в соседнем, они
35
- учат звать то, чего там нет вовсе. Имя директивы при этом отличается от имени в примере: по
36
- примеру видно, что он пример, а `<префикс>TableRow` из чужого дерева выглядит рабочим кодом
37
- и правится только после того, как продовая сборка упадёт. Тринадцать таких имён простояли в
38
- четырёх ресурсах пакета, пока их не нашёл потребитель — и не своей сборкой, а надстройкой,
39
- которой перекрыл раздел.
40
-
41
- - **Правила и паттерны при отвергнутом законе в отказе не перечисляются.** Их снимает каскад, а
42
- строка на них становится выводимой: раскладка называет её лишней вместе с законом, из-за
43
- которого она перестала снимать. Отказ мерит слой законов, а не число файлов в пакете.
44
-
45
- - **Линтер по следам правки судит файл целиком, а не внесённую правку.** Импорт, добавленный
46
- отдельным шагом, отбивается как неиспользуемый ещё до того, как появится строка, которая его
47
- зовёт, и работа встаёт на половине. Правка делается одним вызовом либо в порядке «сначала
48
- использование, потом импорт».
49
- - **Прогонять сценарии гардов можно, ничего не раскладывая, — там, где эти сценарии есть.**
50
- Обвязка набора принимает каталог гардов переменной, и пакетную редакцию гоняют до установки.
51
- Живёт она в репозитории самого пакета: в поставку едут ресурсы, строка запуска и библиотека, а
52
- каталога сценариев в ней нет вовсе. Дереву-потребителю остаются свои сценарии на свои гарды —
53
- искать у себя пакетные значит потратить заход на диагноз по последствиям, ровно тот, от
54
- которого совет обещал избавить.
55
- - **Отбитая правка не всегда про текст гарда.** Гард зовут по пути, и файл без права на
56
- запуск отвечает отказом доступа — ненулевым кодом, который читается как «правка отбита».
57
- Набор при этом отбивает подряд всё, включая сборку и тесты, и причины не называет.
58
- - **Правка shell-скрипта заменой по шаблону сверяется `bash -n` сразу.** Замена границ
59
- конструкции не видит: `case` теряет свою `esac`, файл остаётся синтаксически неверным, а
60
- гард с ошибкой синтаксиса отвечает ненулевым кодом — то есть «правка отбита». Два раза за
61
- заход, и оба раза это выглядело дефектом самого гарда.
62
- - **Гард, подписанный не на то, что объявляет, выглядит работающим.** Событие и образец вызова
63
- гард несёт сам, строкой `# rt-hook:`, а зовёт его образец в настройке агента — и эти двое
64
- расходятся молча: путь гарда в настройке назван, файл разложен, набор сценариев зелёный.
65
- Набор тут ничего не ловит намеренно — он зовёт гард напрямую с подставленным вводом и
66
- объявления не читает вовсе. Так гейт правил и разбирал вызовы браузера веткой, которая не
67
- исполнялась ни разу. Расхождение находит сверка раскладки: она сравнивает объявленный образец
68
- с тем, под которым гард стоит, называет обе стороны и идёт в счёт расхождений. Правится
69
- настройка, а верное значение лежит в гарде — тело его разбирает то, что объявлено.
70
- - **Разложенный файл узнаётся по шапке, а не по каталогу.** Раскладка ложится в те же
71
- `tools/`, `.claude/hooks/` и `.claude/skills/`, где лежит своё, поэтому карта гейта,
72
- написанная по путям, требует под него доменное правило — а оно уводит править файл на месте.
73
- Правка на месте теряется на следующей раскладке, и до тех пор выглядит применённой. Ветка по
74
- шапке ставится в карте первой и решает раньше путей.
75
- - **Настройки проверок сливаются по ключам, а списки — замещаются.** Объект `checks.json`
76
- ложится поверх умолчания ключ за ключом на любой глубине: назвав один ключ борды, дерево не
77
- теряет соседних. Список приходит целиком — назвав корни исходников, дерево получает ровно
78
- названное, а не умолчание вместе со своим: «дописать в список» и «убрать из списка» в этой
79
- записи неразличимы.
80
- - **Утверждение правила переезжает вместе с кодом.** Вынесенное в надстройку перестаёт
81
- находиться по прежнему символу, и привязка в спутнике правила врёт молча — сверка спеков
82
- ловит это, но только если её позвать.
83
- - **Признак по подстроке пути судит и то, что лежит вне дерева.** Гарды отдают в профиль
84
- абсолютный путь целиком, и образец вида `*/projects/*` совпадает с домашним каталогом агента
85
- ровно так же, как с кодом дерева: запись в файл вне репозитория была отбита гардом хода
86
- работы с требованием замысла, к ней не относящегося. Путь в профиле сначала приводится к
87
- корню дерева, и всё, что вне корня, признака не получает.
88
- - **Похожесть текстов ближайшую статью не находит.** Замер показал, что законное соседство двух
89
- статей одного правила и законный перенос удачной статьи на соседнее место дают одно и то же
90
- число: цитата поэтому ищется точным совпадением, а не мерой похожести.
91
- - **Отметка об отправке живёт в рабочем дереве, а дерево у каждой ветки своё.** Поставленная в
92
- одной ветке, в соседней она не видна, и тот же текст уезжает вторым разом; второй записью он
93
- при этом не становится — приём отбирает уже приехавшее по признаку предложения, и его ответ
94
- говорит, сколько записей легло и сколько уже лежало. Строка «принято 0, уже лежало 3» означает,
95
- что нового не уехало ничего.
96
- - **Отметка, поставленная только на принятое, объявила бы неотправленным то, что дошло раньше.**
97
- Файл остался бы без неё навсегда: принятым он больше не станет никогда, а гард предложений
98
- отбивал бы ход у каждого следующего захода. Отправителю разница между принятым и уже лежавшим
99
- ничего не меняет — оба исхода значат одно: груз доехал.
100
- - **Отказ отправки, называющий один лишь ключ конфига, уводит читателя не туда.** Ни адреса, ни
101
- токена в конфиге нет и не будет: оба приходят от владельца приёма — адрес словом, токен
102
- одноразовым кодом приглашения. Отказ поэтому называет приглашение, а не ключ: ушедший править
103
- конфиг ответа там не находит и второй раз спрашивает уже владельца.
104
- - **Редакция пакета, поднятая без раскладки, запирает дерево целиком.** Красит она не свою
105
- ветку, а главную: сверка раскладки стоит в гейте пуша, и на ней отбивается чужая работа, пакета
106
- не касающаяся вовсе. Своей веткой такой автор починить это не может — правка лежит в чужой.
107
- - **Правка разложенного файла без гарда на месте всплывает в чужой ветке.** Знал о ней один
108
- `sync --check`, а говорил он на следующей раскладке: отказ приходил тому, кто в этот день
109
- правил соседний ресурс, и выглядел поломкой его работы.
110
-
111
- ## Подъём версии: чем сверять замещённые разделы
112
-
113
- Замерено на двух подъёмах подряд: в одном шесть замещённых разделов недосчитались новых
114
- утверждений, в другом два раздела — одиннадцати статей, и ни одна команда об этом не сказала.
115
- Прежняя редакция при этом нашлась случайной копией в чужом рабочем дереве: установка стирает её
116
- без следа, поэтому снимок и стоит первым шагом подъёма.
117
-
118
- Сверяются статьи, а не заголовки — заголовок как раз и совпал, этим раздел замещён:
1
+ # The portable rules layer — cold part
2
+
3
+ Pitfalls and traps already stepped on. Loaded not with the skill but on demand: an ordinary
4
+ layout does not need it — it is for whoever investigates an audit refusal or argues with the
5
+ layout.
6
+
7
+ The skill is `agent-kit`; the editing order, the commands and the structure of the layers stand
8
+ there.
9
+
10
+ ## Pitfalls
11
+
12
+ - **A set that tests a guard reads the settings of the tree it was launched from.** The helper
13
+ takes the settings by the project directory, and its agent sets that itself — a `cd` in the
14
+ runner does not override it. A set that created no throwaway tree of its own turns green from a
15
+ line in someone else's settings: six scenarios of the exam guard passed exactly so, because the
16
+ role was disabled in the tree where they were run. One's own tree is declared for every
17
+ scenario, not once per file.
18
+
19
+ - **An override replaces a section whole, and the package items in it have to be kept as a
20
+ copy.** There is no way to append one article to a section: the merge goes by the `## `
21
+ heading. A tree that needs one item of its own copies all the package ones next to it — and
22
+ from that day an edit of any of them, arriving with a new version, does not reach this tree.
23
+ The laid-out audit is silent: it counts an in-place edit as a discrepancy, not a replaced
24
+ section. The sign shows in the overrides themselves — three out of three read ended with a
25
+ paragraph saying the carry-over would have to be done by hand. So an override takes a section
26
+ with few package items, and a replaced section that has grown is a reason to bring one's own
27
+ into the package, not to keep it as a copy. The proposal by which it is brought in names this
28
+ override in the line "closed by": otherwise the arrived edition and the override it closed are
29
+ matched by nothing, and the override goes on replacing an already fixed section.
30
+
31
+ A copied package line is edited in the package source, not in the copy: an edit inside the
32
+ override diverges from the source silently, and it shows only where the text itself serves as
33
+ the link key — in an article that has a binding. Before a line in the override is edited, it is
34
+ looked up in the source; not found — the line is the tree's own, and it is edited in place.
35
+ - **The package's ready-made code names no names of a single tree.** The kit's directive prefix,
36
+ label keys and entity names belong to the tree where the pattern was written; laid out in a
37
+ neighbouring one, they teach to call what is not there at all. A directive name differs from a
38
+ name in an example: an example is seen to be an example, while `<prefix>TableRow` from another
39
+ tree looks like working code and is fixed only after the production build falls. Thirteen such
40
+ names stood in four package resources until a consumer found them — not by its build, but by
41
+ the override with which it covered the section.
42
+
43
+ - **Rules and patterns under a rejected law are not listed in the refusal.** The cascade removes
44
+ them, and the line about them becomes derivable: the layout names it redundant together with
45
+ the law because of which it stopped removing. The refusal measures the layer of laws, not the
46
+ number of files in the package.
47
+
48
+ - **The linter that follows an edit judges the whole file, not the edit made.** An import added
49
+ as a separate step is refused as unused before the line that calls it appears, and the work
50
+ stalls halfway. The edit is made in one call or in the order "usage first, then import".
51
+ - **Guard scenarios can be run without laying anything out — where those scenarios exist.** The
52
+ set's harness takes the guards directory as a variable, and the package edition is run before
53
+ installation. It lives in the package's own repository: resources, the launch line and the
54
+ library go into the shipment, and the scenarios directory is not in it at all. A consumer tree
55
+ is left with its own scenarios for its own guards — looking for the package ones at home means
56
+ spending a session on a diagnosis by consequences, exactly the one the advice promised to
57
+ spare.
58
+ - **A refused edit is not always about the guard's text.** The guard is called by path, and a
59
+ file without the execute bit answers with access denied — a non-zero code that reads as "edit
60
+ refused". The set then refuses everything in a row, build and tests included, and names no
61
+ reason.
62
+ - **An edit of a shell script by pattern replacement is checked with `bash -n` at once.** The
63
+ replacement does not see construct boundaries: a `case` loses its `esac`, the file stays
64
+ syntactically wrong, and a guard with a syntax error answers with a non-zero code — that is,
65
+ "edit refused". Twice in one session, and both times it looked like a defect of the guard
66
+ itself.
67
+ - **A guard subscribed to something other than what it declares looks working.** The guard
68
+ carries its event and call pattern itself, in the `# rt-hook:` line, and it is called by the
69
+ pattern in the agent settings — and the two diverge silently: the guard's path is named in the
70
+ settings, the file is laid out, the scenario set is green. The set catches nothing here on
71
+ purpose — it calls the guard directly with substituted input and reads no declaration at all.
72
+ That is how the rules gate parsed browser calls with a branch that never ran once. The
73
+ discrepancy is found by the layout audit: it compares the declared pattern with the one the
74
+ guard stands under, names both sides and counts it among the discrepancies. The settings are
75
+ fixed, and the correct value lies in the guard — its body parses what is declared.
76
+ - **A laid-out file is recognised by its header, not by its directory.** The layout lands in the
77
+ same `tools/`, `.claude/hooks/` and `.claude/skills/` where the tree's own files lie, so a gate
78
+ map written by paths demands a domain rule for it — and that leads to editing the file in
79
+ place. An in-place edit is lost on the next layout, and until then looks applied. The branch by
80
+ header is placed first in the map and decides before the paths.
81
+ - **Check settings merge by keys, and lists are replaced.** The `checks.json` object lands over
82
+ the default key by key at any depth: naming one board key, the tree does not lose the
83
+ neighbouring ones. A list arrives whole — naming the source roots, the tree gets exactly what
84
+ it named, not the default together with its own: "append to the list" and "remove from the
85
+ list" are indistinguishable in this notation.
86
+ - **A rule's statement moves together with the code.** What is moved into an override stops being
87
+ found by the former symbol, and the binding in the rule's companion lies silently — the spec
88
+ audit catches this, but only when called.
89
+ - **A sign by a path substring also judges what lies outside the tree.** Guards hand the profile
90
+ the full absolute path, and a pattern like `*/projects/*` matches the agent's home directory
91
+ just as it matches the tree's code: a write to a file outside the repository was refused by the
92
+ progress guard with a demand for a plan that had nothing to do with it. The path in the profile
93
+ is first reduced to the tree root, and everything outside the root gets no sign.
94
+ - **Text similarity does not find the nearest article.** A measurement showed that the lawful
95
+ adjacency of two articles of one rule and the lawful move of a good article to a neighbouring
96
+ place give the same number: so a quote is looked up by exact match, not by a similarity
97
+ measure.
98
+ - **The sent mark lives in the working tree, and every branch has a tree of its own.** Set in one
99
+ branch, it is invisible in a neighbouring one, and the same text leaves a second time; it does
100
+ not become a second record though — the intake filters what already arrived by the proposal's
101
+ sign, and its answer says how many records landed and how many already lay there. The line
102
+ "accepted 0, already there 3" means nothing new left.
103
+ - **A mark set only on what was accepted would declare unsent what arrived earlier.** The file
104
+ would stay without it forever: it will never become accepted again, and the proposals guard
105
+ would refuse the turn to every following session. For the sender the difference between
106
+ accepted and already there changes nothing — both outcomes mean one thing: the cargo arrived.
107
+ - **A send refusal that names only a config key leads the reader astray.** Neither the address
108
+ nor the token is in the config, nor will be: both come from the intake's owner — the address by
109
+ word, the token as a one-time invitation code. So the refusal names the invitation, not the
110
+ key: whoever went to edit the config finds no answer there and asks the owner the second time.
111
+ - **A package edition bumped without a layout locks the whole tree.** It turns red not its own
112
+ branch but main: the layout audit stands in the push gate, and it refuses other people's work
113
+ that has nothing to do with the package. The author cannot fix this from their own branch — the
114
+ edit lies in someone else's.
115
+ - **An edit of a laid-out file without an in-place guard surfaces in someone else's branch.** Only
116
+ `sync --check` knew about it, and it spoke on the next layout: the refusal came to whoever
117
+ edited a neighbouring resource that day, and looked like a breakage of their work.
118
+
119
+ ## Version bump: how to check replaced sections
120
+
121
+ Measured on two bumps in a row: in one, six replaced sections were short of new statements; in
122
+ the other, two sections were short of eleven articles, and no command said a word about it. The
123
+ previous edition was found by chance as a copy in someone else's working tree: installation wipes
124
+ it without a trace, so the snapshot stands as the first step of the bump.
125
+
126
+ Articles are compared, not headings — the heading is exactly what matched, and that is how the
127
+ section got replaced:
119
128
 
120
129
  ```bash
121
130
  sec() { awk -v s="$2" '$0 ~ "^## "s {f=1;next} /^## /{f=0} f' "$1" \
122
131
  | grep '^- \*\*' | sed 's/^- \*\*//;s/\*\*.*//'; }
123
- comm -13 <(sec "$OLD/<ресурс>" '<заголовок>' | sort) <(sec "$NEW/<ресурс>" '<заголовок>' | sort)
132
+ comm -13 <(sec "$OLD/<resource>" '<heading>' | sort) <(sec "$NEW/<resource>" '<heading>' | sort)
124
133
  ```
125
134
 
126
- Строка в выводе — статья, которую надстройка проглотила: пакет её дописал, а дерево не увидело.
127
- Переносится она в надстройку руками.
128
-
129
- ## Выключенная роль: что бывает с настройкой
130
-
131
- - **Настройка, которую не прочитать, роль не выключает.** Не нашлось `jq`, нет настройки, в
132
- настройке сломан разбор — гард судит, как судил. Обратный выбор гасил бы слой правил молча, и
133
- заметить это было бы нечем.
134
- - **Ключ, написанный не списком, ловит раскладка, а не гард.** Гарду виден только список имён:
135
- строка вместо списка читается им как «роль включена», и роль работает, хотя дерево считает её
136
- выключенной. Отказывает на этом разбор настройки — первой же раскладкой, называя ключ.
137
- - **Выключение живёт в настройке дерева, а не в настройке агента.** Строка, вырезанная из
138
- настроек агента руками, теряется на первой же правке того файла, и вернуть роль будет нечем.
139
- Здесь оно объявлено в одном месте и видно всякому, кто читает настройку дерева.
140
-
141
- ## Свойства дерева: две границы
142
-
143
- - **`only` сильнее требования.** Ресурс, названный поимённо, ложится и при неотвеченном
144
- требовании; перечень раскладки называет это вслух, а отказ по его пустому компаньону зовёт
145
- снять ресурс, а не заполнять черновик.
146
- - **Свойство, которого пакет не объявлял, роняет раскладку** — что в `has` дерева, что в имени
147
- ресурса. Объявлены свойства перечнем при пакете, рядом с осями различия.
148
-
135
+ A line in the output is an article the override swallowed: the package added it, and the tree did
136
+ not see it. It is carried into the override by hand.
137
+
138
+ ## Disabled role: what happens with the settings
139
+
140
+ - **Settings that cannot be read do not disable a role.** No `jq` found, no settings, parsing
141
+ broken in the settings — the guard judges as it judged. The opposite choice would silence the
142
+ rules layer quietly, and there would be nothing to notice it with.
143
+ - **A key written not as a list is caught by the layout, not by the guard.** The guard sees only
144
+ a list of names: a string instead of a list reads to it as "role enabled", and the role works
145
+ although the tree counts it disabled. The settings parsing refuses on this — on the very first
146
+ layout, naming the key.
147
+ - **Disabling lives in the tree's settings, not in the agent's settings.** A line cut out of the
148
+ agent settings by hand is lost on the first edit of that file, and there will be nothing to
149
+ bring the role back with. Here it is declared in one place and visible to anyone who reads the
150
+ tree's settings.
151
+
152
+ ## Tree traits: two boundaries
153
+
154
+ - **`only` is stronger than a requirement.** A resource named by name is laid out even with an
155
+ unanswered requirement; the layout list says so aloud, and the refusal over its empty companion
156
+ calls to remove the resource, not to fill in the draft.
157
+ - **A trait the package did not declare fails the layout** — whether in the tree's `has` or in a
158
+ resource name. Traits are declared in a list with the package, next to the axes of difference.
159
+
160
+ ## Layout pitfalls
161
+ - **The glossary is as much a laid-out resource as a rule.** The startup hook puts it into the
162
+ context in full, before the first reply, and so it looks like an ordinary tree document; it has
163
+ a header, but it reads as a service line. A new word goes into the glossary override, as a
164
+ section of its own.
165
+
166
+ - **A file write by a shell command is checked on all paths named in its body.** The gate takes
167
+ the paths out of the command text and reads the document body in full if the command holds an
168
+ interpreter name; an import line of a laid-out module then demands a second rule, and one is
169
+ demanded at a time — two refusals in a row, and each loses the written body. The edit tool is
170
+ checked by its one path; a shell redirect is for what does not become a tree file.
171
+ - **Your own thing standing next to the laid-out repeats its mechanics silently.** Parsing the
172
+ list of the known, the source roots and the debt snapshot is given by the checks config
173
+ module; a second such parser in your own check is seen by neither the layout audit nor the
174
+ duplicate check. Before starting your own, look at what the checks config module exports.
175
+ - **A rule loaded by a tool may be shown not in full, and the cut is marked by nothing.** A long
176
+ file comes into the context cut at a line, and the cut falls on the tail — where the override
177
+ sections are appended at the end. The shown lines are compared with the file length by one
178
+ command; if they differ, the file is read to the end.