@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,56 +2,58 @@
2
2
  name: spec-driven-sweep
3
3
  kind: pattern
4
4
  rule: spec-driven
5
- description: Паттерн правила spec-driven. Брать при сплошном разборе привязки домена — пять проходов, три из которых делает машина, разбор срабатываний чтением и доля ложных по слоям. Не брать для заведения спека домена — это паттерн spec-driven-domain.
5
+ description: Pattern of rule spec-driven. Load for a full sweep of a domain's binding — five passes, three of them done by the machine, reading through the hits and the share of false ones per layer. Not for creating a domain spec — that is pattern spec-driven-domain.
6
6
  ---
7
7
 
8
- # Сплошной разбор привязки домена
8
+ # A full review of a domain's binding
9
9
 
10
- Паттерн правила `spec-driven`. Что при этом должно быть верно — закон о документации проекта.
10
+ Pattern of the rule `spec-driven`. What must be true — the project-documentation law.
11
11
 
12
- ## Когда брать
12
+ ## When to use
13
13
 
14
- - Привязка домена разбирается целиком: каждое утверждение против кода, на который оно указывает.
15
- - Тексты дерева сверяются с деревом задачей, а не по ходу другой работы.
14
+ - A domain's binding is reviewed whole: every statement against the code it points to.
15
+ - The tree's texts are checked against the tree as a task, not along the way of other work.
16
16
 
17
- ## Проходов пять, и порядок у них один
17
+ ## There are five passes, and their order is one
18
18
 
19
- Три первых делает машина по всему домену разом, два последних — чтение. Порядок не
20
- переставляется: чтение идёт по строкам, которые машина уже отобрала, иначе читается весь домен.
19
+ The first three the machine does over the whole domain at once, the last two are reading. The
20
+ order is not rearranged: reading goes over the lines the machine has already selected, otherwise
21
+ the whole domain gets read.
21
22
 
22
- 1. **Мёртвый адрес.** Названного файла нет в дереве, или символа нет нигде. Даёт ноль на домене,
23
- который уже разбирали, и целую пачку на том, откуда недавно уезжал код.
24
- 2. **Якорь, живущий только в пояснении.** Символ встречается в дереве лишь в комментариях.
25
- Проверка привязки комментарий засчитывает наравне с кодом, поэтому такому якорю она зелёная, а
26
- места исполнения за ним нет.
27
- 3. **Символ не объявлен в названном файле.** Файл его импортирует и зовёт, а объявление лежит в
28
- другом месте. Самый урожайный проход и самый шумный.
29
- 4. **Обещание против кода.** Читается код по адресу: делает ли он то, что утверждает правило.
30
- Машине этот проход не даётся вовсе — расхождение здесь обычно в условии и в порядке шагов.
31
- 5. **Число, код отказа и ключ словаря — поимённо.** Каждое число из текста ищется в дереве,
32
- каждый названный код отказа — в месте, где он бросается, каждый ключ словаря — во всех
33
- локалях. Расхождение тут выглядит опечаткой и живёт годами.
23
+ 1. **A dead address.** The named file is not in the tree, or the symbol is nowhere. Gives zero on
24
+ a domain already reviewed, and a whole batch on one that code recently moved out of.
25
+ 2. **An anchor living only in an explanation.** The symbol occurs in the tree only in comments.
26
+ The binding check counts a comment the same as code, so it is green for such an anchor, and
27
+ there is no place carrying it out behind it.
28
+ 3. **The symbol is not declared in the named file.** The file imports and calls it, and the
29
+ declaration lies elsewhere. The most fruitful pass and the noisiest.
30
+ 4. **The promise against the code.** The code at the address is read: does it do what the rule
31
+ states. The machine cannot do this pass at all — the divergence here is usually in a condition
32
+ and in the order of steps.
33
+ 5. **A number, a refusal code and a glossary key — by name.** Every number from the text is looked
34
+ for in the tree, every named refusal code in the place where it is thrown, every glossary key
35
+ in all locales. A divergence here looks like a typo and lives for years.
34
36
 
35
- ## Срабатывание — очередь на чтение, а не список дефектов
37
+ ## A hit is a queue for reading, not a list of defects
36
38
 
37
- Проход выдаёт строки, находкой становится подтверждённая чтением. Разница не словесная: строки
38
- третьего прохода на треть законны у любого домена, и записанные находками они превращают разбор в
39
- правку верного кода. В ход работы идут оба числа — сколько строк дал проход и сколько из них
40
- оказались расхождениями.
39
+ A pass yields lines; a finding is one confirmed by reading. The difference is not verbal: a third
40
+ of the third pass's lines are legitimate in any domain, and written down as findings they turn
41
+ the review into editing correct code. Both numbers go into the progress — how many lines the pass
42
+ gave and how many of them turned out to be divergences.
41
43
 
42
- ## Доля ложных зависит от слоя
44
+ ## The share of false hits depends on the layer
43
45
 
44
- Там, где правило живёт в процедуре, место исполнения одно и оно публично: срабатывание третьего
45
- прохода чаще оказывается расхождением — из четырнадцати строк шесть. Там, где правило живёт в
46
- компоненте или службе, местом исполнения законно бывает приватное поле или приватный метод: из
47
- тридцати шести строк расхождений не оказалось ни одной. Поэтому число находок прошлого домена на
48
- следующий не переносится — переносится только сам порядок проходов.
46
+ Where the rule lives in a procedure, the place carrying it out is one and public: a hit of the
47
+ third pass is more often a divergence — six lines out of fourteen. Where the rule lives in a
48
+ component or a service, the place carrying it out is legitimately a private field or a private
49
+ method: out of thirty-six lines, not one turned out to be a divergence. So the number of findings
50
+ of the previous domain does not carry over to the next — only the order of passes carries over.
49
51
 
50
- ## Частые промахи
52
+ ## Common misses
51
53
 
52
- - **Урожайность прохода обещана фактом.** «Проход даст столько-то» — оценка, и по чужому слою она
53
- промахивается целиком. Разбор просьбы называет проходы, а не число находок.
54
- - **Проход, давший ноль, не записан.** Следующий заход гоняет его заново по тому же домену. Ноль
55
- — такой же результат, и он пишется вместе с остальными.
56
- - **Счёт сторон принят за разбор.** Зелёная проверка привязки говорит, что у каждого утверждения
57
- есть строка, а куда эта строка ведёт — не говорит ничего.
54
+ - **A pass's yield promised as fact.** "The pass will give so many" is an estimate, and on a
55
+ different layer it misses entirely. The grill names the passes, not the number of findings.
56
+ - **A pass that gave zero was not written down.** The next session runs it again over the same
57
+ domain. Zero is a result like any other, and it is written along with the rest.
58
+ - **Counting sides was taken for a review.** A green binding check says every statement has a
59
+ line, and says nothing about where the line leads.
@@ -2,79 +2,91 @@
2
2
  name: status-report-table
3
3
  kind: pattern
4
4
  rule: status-report
5
- description: Паттерн правила status-report. Брать, когда владельцу отвечают, где работа стоит, — готовые вызовы для каждой клетки: ветка и её коммиты, состояние заявки, прогон конвейера и сверка его с вершиной, задача на борде, порядок задач из замысла эпика. Образец заполненной таблицы прилагается.
5
+ description: Pattern of rule status-report. Load when answering the owner where the work stands. Ready-made calls for every cell: the branch and its commits, the PR state, the pipeline run checked against the head, the task on the board, the task order from the epic plan. A filled-in sample table is attached.
6
6
  ---
7
7
 
8
- # Чем спрашивается состояние и как оно ложится в таблицу
8
+ # What the state is asked with and how it lands in the table
9
9
 
10
- Паттерн правила `status-report`. Что при этом должно быть верно — закон о ведении работы.
10
+ Pattern of the rule `status-report`. What must be true — the work-conduct law.
11
11
 
12
- ## Когда брать
12
+ ## When to use
13
13
 
14
- - Владелец спросил, где стоит работа: «какой статус», «что за эпик», «что сейчас делаешь».
15
- - Ход кончается отчётом о сделанном, и в нём называется состояние заявки или прогона.
16
- - Работа идёт под эпиком, и в ответе перечисляются все его задачи.
14
+ - The owner asked where the work stands: "what is the status", "which epic", "what are you doing
15
+ now".
16
+ - The turn ends with an account of what was done, and it names the state of a PR or a run.
17
+ - The work runs under an epic, and the reply lists all its tasks.
17
18
 
18
- ## Вызовы
19
+ ## Calls
19
20
 
20
- Ветка, её коммиты сверх главной, незакоммиченное и вершина:
21
+ The whole table at once — the command of the checks layer: it takes the order of the tasks from the
22
+ epic plan, the state of each of them from the hosting, and prints the paragraph and the table ready
23
+ to be carried to the owner. The tree names the call in the companion of the rule.
24
+
25
+ ```bash
26
+ <the command of the tree> [<the number of the epic>]
27
+ ```
28
+
29
+ Everything below is what the command is assembled from: it is asked by hand where the answer is not
30
+ about an epic — one task, one branch, one run.
31
+
32
+ The branch, its commits beyond main, what is uncommitted and the tip:
21
33
 
22
34
  ```bash
23
35
  git branch --show-current
24
- git log --oneline <главная>..HEAD
36
+ git log --oneline <main>..HEAD
25
37
  git status --short
26
38
  git rev-parse --short HEAD
27
39
  ```
28
40
 
29
- Порядок задач эпика берётся из его замысла, а не из борды: назначен он там, и номера задач на
30
- борде идут не подряд.
41
+ The order of the epic's tasks is taken from its plan, not from the board: it is assigned there,
42
+ and the task numbers on the board do not run in sequence.
31
43
 
32
44
  ```bash
33
- sed -n '/## Порядок задач/,/^## /p' <замысел эпика>
45
+ sed -n '/## Порядок задач/,/^## /p' <epic plan>
34
46
  ```
35
47
 
36
- Состояние заявки — черновик ли она, сходится ли с главной, сколько файлов:
48
+ The state of the PR — whether it is a draft, whether it merges with main, how many files:
37
49
 
38
50
  ```bash
39
- gh api repos/:owner/:repo/pulls/<номер> \
51
+ gh api repos/:owner/:repo/pulls/<number> \
40
52
  --jq '{n:.number,draft:.draft,state:.state,mergeable:.mergeable,changed:.changed_files}'
41
53
  ```
42
54
 
43
- Прогон конвейера по ветке и разбор одного прогона:
55
+ The pipeline run on the branch and the breakdown of one run:
44
56
 
45
57
  ```bash
46
- gh run list --branch <ветка> --limit 5
47
- gh run view <идентификатор>
58
+ gh run list --branch <branch> --limit 5
59
+ gh run view <id>
48
60
  ```
49
61
 
50
- Задача на борде — заголовок, состояние, метки:
62
+ The task on the board — title, state, labels:
51
63
 
52
64
  ```bash
53
- gh api repos/:owner/:repo/issues/<номер> --jq '{t:.title,s:.state,labels:[.labels[].name]}'
65
+ gh api repos/:owner/:repo/issues/<number> --jq '{t:.title,s:.state,labels:[.labels[].name]}'
54
66
  ```
55
67
 
56
- Чем зовётся исполняемый файл хостинга и где лежат замыслы эпиков, говорит компаньон правила:
57
- имя команды в оболочке бывает занято чужим псевдонимом, и тогда вызов уходит в интерактивный
58
- вход вместо ответа.
68
+ What the host's executable is called and where the epic plans lie is said by the rule's companion.
69
+ The command name in the shell is sometimes taken by someone else's alias, and then the call goes
70
+ into an interactive sign-in instead of an answer.
59
71
 
60
- ## Частые промахи
72
+ ## Common misses
61
73
 
62
- - **Задача на борде читается запросом, а не подкомандой просмотра.** Подкоманда тянет за собой
63
- доски старого образца, хостинг отвечает отказом о них, и вызов краснеет целиком, ничего не
64
- показав. Берётся прямой запрос.
74
+ - **The task on the board is read by a request, not by the view subcommand.** The subcommand
75
+ drags in boards of the old kind, the host answers with a refusal about them, and the call turns
76
+ red whole, showing nothing. A direct request is taken.
65
77
 
66
- - **Прогон старше вершины.** Список прогонов показывает последний прогон ветки, а не прогон
67
- нынешнего коммита. Сверяется с вершиной прежде, чем число встанет в ответ.
78
+ - **The run is older than the tip.** The run list shows the last run of the branch, not the run of
79
+ the current commit. It is checked against the tip before the number goes into the reply.
68
80
 
69
- - **Папка задачи из шаблона.** Скопированные, но незаполненные разбор и замысел держат угловые
70
- скобки шаблона. Это «заведена, не начата», и в клетке «Состояние» пишется так.
81
+ - **The task folder is from the template.** A copied but unfilled grill and plan keep the
82
+ template's angle brackets. That is "created, not started", and the "State" cell says so.
71
83
 
72
- - **Заявка зелёная, но черновик.** Прогон успешен, а слияние заблокировано хостингом; в клетке
73
- «Осталось» стоит снятие черновика либо названное вслух ожидание.
84
+ - **The PR is green but a draft.** The run succeeded, while the merge is locked by the host; the
85
+ "Remaining" cell holds lifting the draft or a wait named aloud.
74
86
 
75
- ## Образец
87
+ ## Sample
76
88
 
77
- Эпик над таблицей — абзацем, а не строкой:
89
+ The epic above the table — as a paragraph, not as a row:
78
90
 
79
91
  > **Эпик «<название>» (<ключ>)** — <зачем он, одной фразой>. Задач <сколько>, идёт <номер по
80
92
  > порядку>.
@@ -85,4 +97,4 @@ gh api repos/:owner/:repo/issues/<номер> --jq '{t:.title,s:.state,labels:[.
85
97
  | 2 | <название задачи из замысла> | — | <одной фразой> | не заведена |
86
98
  | — | <заведённая вне эпика> | <ключ> | <одной фразой> | заведена, папка — пустой шаблон, ветки нет |
87
99
 
88
- Под таблицей — строка о том, чего ждём от владельца, и вызов, которым это снимается.
100
+ Under the table — a line about what we wait for from the owner, and the call that lifts it.
@@ -2,87 +2,87 @@
2
2
  name: styling-bem-component
3
3
  kind: pattern
4
4
  rule: styling-bem
5
- description: Паттерн правила styling-bem. Брать при правке стилей компонента кита — готовый :host, модификаторы, токены оформления, язык оформления публичного сайта, обход умолчаний кита. Не брать для раскладки экрана — это паттерн styling-bem-layout.
5
+ description: Pattern of rule styling-bem. Load when editing the styles of a kit component — the ready-made :host, modifiers, styling tokens, the styling language of the public site, overriding kit defaults. Not for screen layout — that is pattern styling-bem-layout.
6
6
  ---
7
7
 
8
- # Стили компонента
8
+ # Component styles
9
9
 
10
- Паттерн правила `styling-bem`. Что при этом должно быть верно — закон
10
+ Pattern of the rule `styling-bem`. What must be true — the law
11
11
  `docs/constitution/frontend-application.md`.
12
12
 
13
- ## Когда брать
13
+ ## When to use
14
14
 
15
- - Правится компонент кита — он живёт в пакете `@rt-tools/ui-kit-v2`, а не в этом дереве.
16
- - Правится оформление публичного сайта.
17
- - Нужно перебить умолчание кита в своём компоненте.
15
+ - A kit component is edited — it lives in the package `@rt-tools/ui-kit-v2`, not in this tree.
16
+ - The styling of the public site is edited.
17
+ - A kit default has to be overridden in a component of your own.
18
18
 
19
- ## `:host` — сам блок
19
+ ## `:host` — the block itself
20
20
 
21
- Хост несёт класс блока, раскладка на `:host`, элементы вложены внутрь:
21
+ The host carries the block class, the layout sits on `:host`, the elements are nested inside:
22
22
 
23
23
  ```scss
24
24
  :host {
25
25
  display: inline-flex;
26
26
 
27
- .<префикс > -tag {
27
+ .<prefix > -tag {
28
28
  display: inline-flex;
29
- gap: var(--<префикс>-space-1);
29
+ gap: var(--<prefix>-space-1);
30
30
  align-items: center;
31
31
 
32
32
  &--shape--pill {
33
- border-radius: var(--<префикс>-radius-full);
33
+ border-radius: var(--<prefix>-radius-full);
34
34
  }
35
35
  }
36
36
  }
37
37
  ```
38
38
 
39
- Отступ — четыре пробела. Модификатор — `&--<имя>` или привязка класса на хосте
40
- (`[class.<префикс>-component-name--active]="isActive()"`).
39
+ Indent — four spaces. A modifier — `&--<name>` or a class binding on the host
40
+ (`[class.<prefix>-component-name--active]="isActive()"`).
41
41
 
42
- У экрана вне кита такого раздела нет: `display: flex` с `gap` и `padding` на `:host` — это
43
- раскладка, и она в общем слое приложения.
42
+ A screen outside the kit has no such section: `display: flex` with `gap` and `padding` on
43
+ `:host` is layout, and it lives in the application's shared layer.
44
44
 
45
- ## Значения — только токенами
45
+ ## Values — only as tokens
46
46
 
47
47
  ```scss
48
48
  ✗ color: #fff;
49
49
  ✗ box-shadow: 0 1px 2px rgb(0 0 0 / 12%);
50
- ✓ color: var(--<префикс>-color-surface);
51
- ✓ box-shadow: var(--<префикс>-shadow-sm);
50
+ ✓ color: var(--<prefix>-color-surface);
51
+ ✓ box-shadow: var(--<prefix>-shadow-sm);
52
52
  ```
53
53
 
54
- Составное значение берётся готовым токеном целиком, а не собирается из частей. SCSS-переменные
55
- (`$primaryColor`) для значений оформления не используются вовсе.
54
+ A composite value is taken as a ready-made token whole, not assembled from parts. SCSS variables
55
+ (`$primaryColor`) are not used for styling values at all.
56
56
 
57
- ## Язык оформления публичного сайта
57
+ ## The styling language of the public site
58
58
 
59
- Тропический премиум, фото-first:
59
+ Tropical premium, photo first:
60
60
 
61
- - светлая тёплая палитра — песок, терракота, пальмовая зелень, только через `--<префикс>-color-*`;
62
- - акцентная антиква в заголовках (`--<префикс>-font-serif`), гуманистический гротеск в тексте
63
- (`--<префикс>-font-sans`);
64
- - большие полноэкранные фото, щедрые отступы, сдержанные анимации;
65
- - тёмные оверлеи поверх фото — переменными с прозрачностью.
61
+ - a light warm palette — sand, terracotta, palm green, only through `--<prefix>-color-*`;
62
+ - an accent serif in headings (`--<prefix>-font-serif`), a humanist sans in the text
63
+ (`--<prefix>-font-sans`);
64
+ - large full-screen photos, generous spacing, restrained animations;
65
+ - dark overlays over photos — by variables with transparency.
66
66
 
67
- ## Перебить умолчание кита
67
+ ## Overriding a kit default
68
68
 
69
- Стили компонента с `ViewEncapsulation.None` весят столько же, сколько умолчания кита: у
70
- `.<префикс>-block__item` и у `.<префикс>-kit-item` по одному классу, и исход решает порядок подключения.
71
- Переопределение пишется потомком блока:
69
+ Styles of a component with `ViewEncapsulation.None` weigh the same as the kit defaults:
70
+ `.<prefix>-block__item` and `.<prefix>-kit-item` have one class each, and the outcome is decided
71
+ by the order of inclusion. The override is written as a descendant of the block:
72
72
 
73
73
  ```scss
74
74
  & &__item {
75
- color: var(--<префикс>-color-text-muted);
75
+ color: var(--<prefix>-color-text-muted);
76
76
  }
77
77
  ```
78
78
 
79
- ## Частые промахи
79
+ ## Common misses
80
80
 
81
- - Комментарий-выключатель stylelint: селекторы объединяются вложенностью, а не отключением
82
- правила.
83
- - `!important`: запрещён, и инлайновый `width: 100%` на боксе панели перебить им нельзя.
84
- - Новые объявления при переносе стилей: переносится существующее, новое появляется только
85
- тогда, когда задача — фича.
86
- - Замечание линтера, лежавшее в файле раньше, оставлено: правятся все, и новые, и старые.
87
- - Свой `font-family: inherit` в компоненте: наследование включено глобально в `styles.scss`
88
- обоих приложений.
81
+ - A stylelint switch-off comment: selectors are joined by nesting, not by disabling the rule.
82
+ - `!important`: forbidden, and an inline `width: 100%` on the panel box cannot be overridden
83
+ with it.
84
+ - New declarations while moving styles: what exists is moved, new appears only when the task is
85
+ a feature.
86
+ - A linter remark that lay in the file before is left alone: all are fixed, new and old alike.
87
+ - A `font-family: inherit` of your own in a component: inheritance is switched on globally in
88
+ the `styles.scss` of both applications.
@@ -2,40 +2,41 @@
2
2
  name: styling-bem-layout
3
3
  kind: pattern
4
4
  rule: styling-bem
5
- description: Паттерн правила styling-bem. Брать при сборке экрана раздела, формы, панели или окна — готовые блоки общего слоя, разметка через rtBlock и rtElem, свой элемент в чужом поддереве, признак того, что правка идёт не туда. Не брать для стилей компонента кита — это паттерн styling-bem-component.
5
+ description: Pattern of rule styling-bem. Load when assembling a section screen, a form, a panel or a dialog. Blocks of the shared layer, markup through rtBlock and rtElem, your own element in a foreign subtree, the sign that an edit goes to the wrong place. Kit component styles — pattern styling-bem-component.
6
6
  ---
7
7
 
8
- # Экран на общем слое раскладки
8
+ # A screen on the shared layout layer
9
9
 
10
- Паттерн правила `styling-bem`. Что при этом должно быть верно — закон
10
+ Pattern of the rule `styling-bem`. What must be true — the law
11
11
  `docs/constitution/frontend-application.md`.
12
12
 
13
- ## Когда брать
13
+ ## When to use
14
14
 
15
- - Собирается экран раздела, форма, содержимое панели или модального окна.
16
- - В файле стилей экрана появляется раскладка.
15
+ - A section screen, a form, the content of a panel or of a modal window is being assembled.
16
+ - Layout appears in the styles file of a screen.
17
17
 
18
- ## Файл стилей экрана по умолчанию пустой
18
+ ## The styles file of a screen is empty by default
19
19
 
20
- Раскладка объявлена один раз в общем слое приложения (`apps/<app>/src/styles/`), а экран её
21
- только применяет. Блоков в админке четыре, у сайта один:
20
+ The layout is declared once in the application's shared layer (`apps/<app>/src/styles/`), and
21
+ the screen only applies it. The admin has four blocks, the site has one:
22
22
 
23
- | Блок | Что раскладывает |
23
+ | Block | What it lays out |
24
24
  | --------------------- | --------------------------------------------------------------- |
25
- | `<префикс>-page` | экран раздела: заголовок, тулбар, прокрутка, таблица, пагинация |
26
- | `<префикс>-form` | форма с разделами-карточками и строками полей |
27
- | `<префикс>-panel` | содержимое панели правки |
28
- | `<префикс>-window` | содержимое модального окна |
29
- | `<префикс>-site-page` | колонка содержимого сайта: заголовок раздела и вводный абзац |
25
+ | `<prefix>-page` | a section screen: title, toolbar, scrolling, table, pagination |
26
+ | `<prefix>-form` | a form with card sections and rows of fields |
27
+ | `<prefix>-panel` | the content of the edit panel |
28
+ | `<prefix>-window` | the content of a modal window |
29
+ | `<prefix>-site-page` | the site's content column: section title and the intro paragraph |
30
30
 
31
- Блок вешается на хост, элементы получают классы от `rtBlock` в корне шаблона:
31
+ The block goes on the host, the elements get their classes from `rtBlock` at the root of the
32
+ template:
32
33
 
33
34
  ```typescript
34
- host: { class: '<префикс>-page' },
35
+ host: { class: '<prefix>-page' },
35
36
  ```
36
37
 
37
38
  ```html
38
- <ng-container rtBlock="<префикс>-page">
39
+ <ng-container rtBlock="<prefix>-page">
39
40
  <header rtElem="header">
40
41
  <div rtElem="header-main">
41
42
  <h1 rtElem="title">{{ 'bookingsTitle' | transloco }}</h1>
@@ -45,29 +46,33 @@ host: { class: '<префикс>-page' },
45
46
  </ng-container>
46
47
  ```
47
48
 
48
- `rtBlock` на `<ng-container>` класса не ставит — узел это комментарий. Второго носителя класса
49
- блока не нужно, и своей обёртки `<section>` тоже.
49
+ `rtBlock` on `<ng-container>` sets no class — the node is a comment. A second carrier of the
50
+ block class is not needed, nor a `<section>` wrapper of your own.
50
51
 
51
- ## Свой элемент в чужом поддереве
52
+ ## Your own element in a foreign subtree
52
53
 
53
- Пара директив на одном элементе; класс блока при этом не ставится, только класс элемента:
54
+ Both directives on one element; the block class is not set then, only the element class:
54
55
 
55
56
  ```html
56
- <div rtBlock="<префикс>-bookings-page" rtElem="confirm"></div>
57
+ <div rtBlock="<prefix>-bookings-page" rtElem="confirm"></div>
57
58
  ```
58
59
 
59
- Класс получается `<префикс>-bookings-page__confirm`, а потомки внутри считаются от того же блока.
60
+ The class comes out as `<prefix>-bookings-page__confirm`, and the descendants inside count from
61
+ the same block.
60
62
 
61
- ## Своё в файле экрана
63
+ ## What stays in the screen file
62
64
 
63
- Остаётся только то, что принадлежит одному этому экрану и в общий слой не просится — сетка
64
- календаря, карта на странице объекта, лента переписки. Рядом пишется, почему это не общее.
65
+ Only what belongs to this one screen and does not ask for the shared layer — the calendar grid,
66
+ the map on the property page, the conversation feed. Next to it, write why it is not shared.
65
67
 
66
- ## Частые промахи
68
+ ## Common misses
67
69
 
68
- - `display: flex` с `gap` и `padding` на `:host` в файле экрана — это раскладка. Одинаковые с
69
- виду экраны от неё расходятся: заголовок страницы объявлялся в одиннадцати компонентах тремя
70
- разными кеглями.
71
- - `rtElem` без предка с `rtBlock`: отрисовка падает в рантайме, сборка и линт молчат.
72
- - Класс, у которого правило сняли, а `rtElem` в шаблоне остался: ловит `npm run check:styles`.
73
- - Элемент чужого блока в чужом поддереве: имя блока приходит инъекцией, и подмешать его нечем.
70
+ - `display: flex` with `gap` and `padding` on `:host` in the screen file — that is layout.
71
+ Screens that look alike drift apart from it: the page title was declared in eleven components
72
+ in three different font sizes.
73
+ - `rtElem` without an ancestor with `rtBlock`: rendering fails at runtime, the build and the
74
+ lint are silent.
75
+ - A class whose rule was removed while `rtElem` stayed in the template: caught by
76
+ `npm run check:styles`.
77
+ - An element of a foreign block in a foreign subtree: the block name arrives by injection, and
78
+ there is nothing to mix it in with.