@rt-tools/agent-kit 0.23.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/README.md +8 -2
  2. package/assets/agents/business-analyst.md +51 -50
  3. package/assets/agents/conscience.md +37 -35
  4. package/assets/agents/project-manager.md +49 -48
  5. package/assets/agents/prose-editor.md +31 -29
  6. package/assets/agents/qa-engineer.md +50 -48
  7. package/assets/agents/rules-reviewer.md +63 -58
  8. package/assets/agents/skill-curator.md +83 -78
  9. package/assets/agents/spec-critic.md +34 -29
  10. package/assets/agents/spec-writer.md +35 -32
  11. package/assets/agents/strict-teacher.md +39 -37
  12. package/assets/checks/archive-age.mjs +48 -28
  13. package/assets/checks/archive-prune.mjs +16 -14
  14. package/assets/checks/board-epics.github.mjs +75 -41
  15. package/assets/checks/board-folders.mjs +61 -0
  16. package/assets/checks/board-gh.github.mjs +35 -26
  17. package/assets/checks/board-long-work.github.mjs +24 -24
  18. package/assets/checks/board-paths.github.mjs +21 -16
  19. package/assets/checks/board-runs.github.mjs +45 -43
  20. package/assets/checks/board-titles.github.mjs +19 -17
  21. package/assets/checks/board.github.mjs +150 -128
  22. package/assets/checks/check-archive-age.mjs +23 -19
  23. package/assets/checks/check-board.github.mjs +179 -157
  24. package/assets/checks/check-descriptions.mjs +30 -29
  25. package/assets/checks/check-doc-paths.mjs +104 -82
  26. package/assets/checks/check-dupes.mjs +84 -80
  27. package/assets/checks/check-file-size.mjs +79 -70
  28. package/assets/checks/check-glossary.mjs +47 -37
  29. package/assets/checks/check-hook-scope.mjs +30 -27
  30. package/assets/checks/check-lib-layers.mjs +22 -21
  31. package/assets/checks/check-profile-drift.mjs +48 -43
  32. package/assets/checks/check-prose-style.mjs +125 -33
  33. package/assets/checks/check-push-gate.mjs +53 -50
  34. package/assets/checks/check-reuse.mjs +50 -40
  35. package/assets/checks/check-schema-drift.mjs +87 -83
  36. package/assets/checks/check-specs.mjs +155 -134
  37. package/assets/checks/check-state-next.mjs +66 -52
  38. package/assets/checks/check-states.mjs +32 -30
  39. package/assets/checks/check-styles.mjs +52 -51
  40. package/assets/checks/check-turn-map.mjs +54 -46
  41. package/assets/checks/lib-boundaries.mjs +32 -30
  42. package/assets/checks/lib-common.mjs +30 -29
  43. package/assets/checks/lib-domains.mjs +34 -34
  44. package/assets/checks/lib-manifests.mjs +17 -15
  45. package/assets/checks/lib-reexports.mjs +18 -18
  46. package/assets/checks/rt-kit-checks.config.mjs +174 -142
  47. package/assets/checks/signals.mjs +43 -39
  48. package/assets/checks/spec-anchors.mjs +114 -87
  49. package/assets/checks/spec-common.mjs +128 -84
  50. package/assets/checks/spec-contract.mjs +30 -30
  51. package/assets/checks/spec-proposed.mjs +27 -24
  52. package/assets/checks/spec-scenarios.mjs +51 -28
  53. package/assets/checks/task-new.github.mjs +85 -56
  54. package/assets/commands/feedback.md +65 -59
  55. package/assets/commands/next-session.md +64 -57
  56. package/assets/commands/skill-curator.md +83 -79
  57. package/assets/defaults/gate-map.sh +115 -91
  58. package/assets/defaults/project.sh +228 -178
  59. package/assets/defaults/shell.sh +85 -65
  60. package/assets/defaults/turn-map.md +45 -44
  61. package/assets/docs/GLOSSARY.md +142 -65
  62. package/assets/hooks/browser-device-id.sh +12 -12
  63. package/assets/hooks/browser-guard-device-id.sh +46 -14
  64. package/assets/hooks/browser-guard-no-asking.sh +5 -4
  65. package/assets/hooks/browser-guard-no-listing.sh +12 -11
  66. package/assets/hooks/browser-guard-no-other-drivers.sh +48 -42
  67. package/assets/hooks/browser-guard-require-select.sh +34 -23
  68. package/assets/hooks/claim-guard.sh +62 -56
  69. package/assets/hooks/commit-msg.sh +11 -10
  70. package/assets/hooks/conscience-guard.sh +91 -45
  71. package/assets/hooks/constitution-index.sh +16 -16
  72. package/assets/hooks/deny-tail.sh +28 -26
  73. package/assets/hooks/dev-server-guard.sh +46 -43
  74. package/assets/hooks/dispatch.sh +84 -39
  75. package/assets/hooks/docs-guard.sh +105 -86
  76. package/assets/hooks/exam-guard.sh +146 -84
  77. package/assets/hooks/git-guard-delivery-conflict.sh +38 -36
  78. package/assets/hooks/git-guard-delivery-draft.sh +85 -0
  79. package/assets/hooks/git-guard-delivery-folder.sh +50 -43
  80. package/assets/hooks/git-guard-delivery-signature.sh +88 -52
  81. package/assets/hooks/git-guard-delivery.sh +207 -253
  82. package/assets/hooks/git-guard-main.sh +65 -26
  83. package/assets/hooks/git-guard-push-tests.sh +133 -75
  84. package/assets/hooks/glossary-load.sh +23 -22
  85. package/assets/hooks/grill-gate-ask.sh +12 -11
  86. package/assets/hooks/grill-gate.sh +94 -87
  87. package/assets/hooks/guard-note.sh +20 -19
  88. package/assets/hooks/handoff-entry-guard.sh +26 -24
  89. package/assets/hooks/handoff-write.sh +74 -67
  90. package/assets/hooks/hook-input.sh +70 -50
  91. package/assets/hooks/lint-after-edit.sh +95 -61
  92. package/assets/hooks/observe.sh +28 -26
  93. package/assets/hooks/override-write-guard.sh +23 -21
  94. package/assets/hooks/postmortem-guard.sh +42 -39
  95. package/assets/hooks/profile-check.sh +22 -20
  96. package/assets/hooks/proposal-guard.sh +57 -49
  97. package/assets/hooks/prose-style-guard.sh +19 -17
  98. package/assets/hooks/qa-dataid-guard.sh +52 -49
  99. package/assets/hooks/rerun-guard.sh +31 -30
  100. package/assets/hooks/reuse-first-guard.sh +108 -87
  101. package/assets/hooks/roles.sh +14 -14
  102. package/assets/hooks/rule-article.sh +36 -34
  103. package/assets/hooks/rule-source-guard.sh +52 -36
  104. package/assets/hooks/skill-gate-layers.sh +59 -57
  105. package/assets/hooks/skill-gate-rearm.sh +15 -8
  106. package/assets/hooks/skill-gate.sh +89 -81
  107. package/assets/hooks/skill-loaded.sh +6 -6
  108. package/assets/hooks/sql-guard-parse.sh +68 -66
  109. package/assets/hooks/sql-guard-request.sh +48 -46
  110. package/assets/hooks/sql-guard-target.sh +57 -51
  111. package/assets/hooks/sql-guard-write.sh +84 -79
  112. package/assets/hooks/sql-guard.sh +52 -47
  113. package/assets/hooks/stand-login-guard.sh +104 -0
  114. package/assets/hooks/task-context-load.sh +60 -55
  115. package/assets/hooks/task-flow-context.sh +87 -69
  116. package/assets/hooks/task-flow-draft-guard.sh +55 -48
  117. package/assets/hooks/task-flow-guard.sh +67 -64
  118. package/assets/hooks/turn-entry-load.sh +39 -32
  119. package/assets/hooks/turn-exit-guard.sh +256 -204
  120. package/assets/hooks/turn-exit-patterns.sh +53 -0
  121. package/assets/hooks/utf8.sh +11 -11
  122. package/assets/hooks/waiting-turn-guard.sh +94 -94
  123. package/assets/hooks/window-fill-guard.sh +70 -62
  124. package/assets/hooks/work-start-guard.sh +52 -49
  125. package/assets/hooks/write-targets.sh +115 -30
  126. package/assets/laws/autonomous-work.md +29 -27
  127. package/assets/laws/code-structure.md +31 -30
  128. package/assets/laws/delivery.md +148 -137
  129. package/assets/laws/entity-editing.md +52 -50
  130. package/assets/laws/entity-models.md +14 -13
  131. package/assets/laws/frontend-application.md +39 -38
  132. package/assets/laws/lib-imports.md +27 -27
  133. package/assets/laws/lists.md +31 -29
  134. package/assets/laws/navigation.md +37 -37
  135. package/assets/laws/observability.md +41 -40
  136. package/assets/laws/project-documentation.md +106 -99
  137. package/assets/laws/reuse-first.md +31 -29
  138. package/assets/laws/shared-code.md +27 -27
  139. package/assets/laws/verifiability.md +131 -114
  140. package/assets/laws/work-conduct.md +250 -250
  141. package/assets/patterns/admin-lists-screen.md +72 -69
  142. package/assets/patterns/admin-nav-item.md +51 -46
  143. package/assets/patterns/angular-patterns-state.md +32 -31
  144. package/assets/patterns/api-layer-pair.md +33 -31
  145. package/assets/patterns/autonomous-work-run.md +50 -49
  146. package/assets/patterns/browser-verification-measure.md +143 -67
  147. package/assets/patterns/browser-verification-stand.md +181 -128
  148. package/assets/patterns/component-structure-new.md +51 -42
  149. package/assets/patterns/dependencies-upgrade.md +55 -39
  150. package/assets/patterns/doc-style-human.md +93 -0
  151. package/assets/patterns/doc-style-sweep.md +82 -79
  152. package/assets/patterns/doc-style-trace.md +87 -81
  153. package/assets/patterns/doc-style-write.md +130 -122
  154. package/assets/patterns/entity-aside.md +77 -63
  155. package/assets/patterns/entity-models-new.md +37 -37
  156. package/assets/patterns/entity-store.md +33 -33
  157. package/assets/patterns/git-workflow-commit.azure.md +94 -75
  158. package/assets/patterns/git-workflow-commit.github.md +153 -129
  159. package/assets/patterns/git-workflow-commit.gitlab.md +96 -78
  160. package/assets/patterns/git-workflow-docker.md +165 -147
  161. package/assets/patterns/git-workflow-freshness.md +45 -45
  162. package/assets/patterns/git-workflow-merge.md +99 -86
  163. package/assets/patterns/git-workflow-migration.md +54 -52
  164. package/assets/patterns/git-workflow-pr-ready.md +57 -56
  165. package/assets/patterns/git-workflow-pr.azure.md +126 -121
  166. package/assets/patterns/git-workflow-pr.github.md +179 -175
  167. package/assets/patterns/git-workflow-pr.gitlab.md +138 -131
  168. package/assets/patterns/git-workflow-restart.md +35 -31
  169. package/assets/patterns/git-workflow-secrets.md +80 -73
  170. package/assets/patterns/git-workflow-stack.md +131 -106
  171. package/assets/patterns/lib-layers-move.md +62 -53
  172. package/assets/patterns/lib-layers-new.md +59 -45
  173. package/assets/patterns/observability-record.md +72 -67
  174. package/assets/patterns/platform-access-di.md +31 -29
  175. package/assets/patterns/reuse-first-extend.md +66 -61
  176. package/assets/patterns/shared-code-new.md +39 -38
  177. package/assets/patterns/spec-driven-domain.md +161 -151
  178. package/assets/patterns/spec-driven-rule.md +179 -168
  179. package/assets/patterns/spec-driven-sweep.md +41 -39
  180. package/assets/patterns/status-report-table.github.md +37 -36
  181. package/assets/patterns/styling-bem-component.md +42 -42
  182. package/assets/patterns/styling-bem-layout.md +39 -34
  183. package/assets/patterns/styling-bem-sheet.md +59 -58
  184. package/assets/patterns/task-flow-archive.md +222 -215
  185. package/assets/patterns/task-flow-close.md +215 -203
  186. package/assets/patterns/task-flow-handoff.md +154 -145
  187. package/assets/patterns/task-flow-resume.md +138 -133
  188. package/assets/patterns/task-flow-start.md +204 -192
  189. package/assets/patterns/testing-e2e.md +103 -92
  190. package/assets/patterns/testing-unit.md +77 -70
  191. package/assets/patterns/ts-procedure.md +32 -29
  192. package/assets/patterns/turn-entry-map.md +50 -48
  193. package/assets/pitfalls/agent-kit.md +152 -141
  194. package/assets/pitfalls/doc-style.md +96 -91
  195. package/assets/pitfalls/git-workflow.azure.md +49 -46
  196. package/assets/pitfalls/git-workflow.github.md +264 -234
  197. package/assets/pitfalls/git-workflow.gitlab.md +49 -45
  198. package/assets/pitfalls/spec-driven.md +73 -71
  199. package/assets/pitfalls/styling-bem.md +46 -40
  200. package/assets/pitfalls/task-flow.md +262 -246
  201. package/assets/pitfalls/testing.md +99 -92
  202. package/assets/pitfalls/turn-conduct.md +96 -81
  203. package/assets/rules/angular-patterns.md +81 -80
  204. package/assets/rules/api-layer.md +77 -74
  205. package/assets/rules/autonomous-work.md +75 -74
  206. package/assets/rules/browser-verification.md +223 -188
  207. package/assets/rules/component-structure.md +72 -69
  208. package/assets/rules/dependencies.md +74 -67
  209. package/assets/rules/deploy-flow.azure.md +118 -108
  210. package/assets/rules/deploy-flow.github.md +145 -135
  211. package/assets/rules/deploy-flow.gitlab.md +120 -110
  212. package/assets/rules/doc-style.md +209 -148
  213. package/assets/rules/entity-conventions.needs-admin.md +81 -79
  214. package/assets/rules/entity-models.md +73 -70
  215. package/assets/rules/git-workflow.azure.md +224 -228
  216. package/assets/rules/git-workflow.github.md +250 -242
  217. package/assets/rules/git-workflow.gitlab.md +218 -217
  218. package/assets/rules/lib-layers.md +85 -86
  219. package/assets/rules/lists.md +101 -97
  220. package/assets/rules/navigation.md +78 -78
  221. package/assets/rules/observability.needs-app.md +165 -153
  222. package/assets/rules/platform-access.md +76 -75
  223. package/assets/rules/reuse-first.md +153 -137
  224. package/assets/rules/shared-code.md +82 -79
  225. package/assets/rules/spec-driven.md +272 -260
  226. package/assets/rules/status-report.md +55 -58
  227. package/assets/rules/styling-bem.md +83 -72
  228. package/assets/rules/task-flow.md +282 -270
  229. package/assets/rules/testing.md +224 -188
  230. package/assets/rules/turn-conduct.md +255 -258
  231. package/assets/rules/turn-entry.md +92 -87
  232. package/assets/rules/typescript-conventions.md +94 -88
  233. package/assets/samples/specs/_template/spec.md +47 -47
  234. package/assets/samples/tasks/_template/grill.md +20 -20
  235. package/assets/samples/tasks/_template/plan.md +32 -30
  236. package/assets/samples/tasks/_template/progress.md +16 -16
  237. package/assets/skills/agent-kit-extend.md +129 -113
  238. package/assets/skills/agent-kit.md +236 -222
  239. package/assets/skills/write-a-skill.md +76 -71
  240. package/assets/templates/findings.md +19 -19
  241. package/assets/templates/gate-map.sh +16 -14
  242. package/assets/templates/implementation.md +28 -27
  243. package/assets/templates/pattern.md +17 -17
  244. package/assets/templates/pitfalls.md +6 -6
  245. package/assets/templates/postmortem.md +24 -23
  246. package/assets/templates/project.sh +24 -24
  247. package/assets/templates/proposal.md +62 -60
  248. package/assets/templates/rule.md +38 -38
  249. package/assets/workflows/feature.js +46 -46
  250. package/assets/workflows/plan.js +54 -54
  251. package/lib/catalog.d.ts +2 -0
  252. package/lib/catalog.d.ts.map +1 -1
  253. package/lib/catalog.js +4 -3
  254. package/lib/catalog.js.map +1 -1
  255. package/lib/commands.d.ts.map +1 -1
  256. package/lib/commands.js +68 -4
  257. package/lib/commands.js.map +1 -1
  258. package/lib/companion.js +3 -2
  259. package/lib/companion.js.map +1 -1
  260. package/lib/enroll.d.ts +7 -1
  261. package/lib/enroll.d.ts.map +1 -1
  262. package/lib/enroll.js +13 -4
  263. package/lib/enroll.js.map +1 -1
  264. package/lib/observations.d.ts +10 -1
  265. package/lib/observations.d.ts.map +1 -1
  266. package/lib/observations.js +1 -0
  267. package/lib/observations.js.map +1 -1
  268. package/lib/override-marks.d.ts +24 -0
  269. package/lib/override-marks.d.ts.map +1 -0
  270. package/lib/override-marks.js +98 -0
  271. package/lib/override-marks.js.map +1 -0
  272. package/lib/plan.d.ts +11 -0
  273. package/lib/plan.d.ts.map +1 -1
  274. package/lib/plan.js +10 -1
  275. package/lib/plan.js.map +1 -1
  276. package/lib/ship.d.ts +0 -7
  277. package/lib/ship.d.ts.map +1 -1
  278. package/lib/ship.js +10 -2
  279. package/lib/ship.js.map +1 -1
  280. package/lib/shipment.d.ts.map +1 -1
  281. package/lib/shipment.js +7 -3
  282. package/lib/shipment.js.map +1 -1
  283. package/lib/sync.d.ts.map +1 -1
  284. package/lib/sync.js +45 -11
  285. package/lib/sync.js.map +1 -1
  286. package/package.json +1 -1
  287. package/rt-tools-agent-kit-0.26.0.tgz +0 -0
  288. package/rt-tools-agent-kit-0.23.0.tgz +0 -0
@@ -2,184 +2,192 @@
2
2
  name: doc-style-write
3
3
  kind: pattern
4
4
  rule: doc-style
5
- description: Паттерн правила doc-style. Брать при написании любой прозы проекта — правил, спеков, README, комментариев в коде, тел коммитов, описаний PR. Примеры «так» и «не так» на каждую договорённость о формулировке. Не брать для устройства спека — это правило spec-driven.
5
+ description: Pattern of rule doc-style. Load when writing any project prose — rules, specs, README, code comments, commit bodies, PR descriptions. Samples of "so" and "not so" for each wording convention. Not for the structure of a spec — that is rule spec-driven.
6
6
  ---
7
7
 
8
- # Как формулировать
8
+ # How to word
9
9
 
10
- Паттерн правила `doc-style`. Что при этом должно быть верно — закон
10
+ Pattern of the rule `doc-style`. What must be true — the law
11
11
  `docs/constitution/project-documentation.md`.
12
12
 
13
- ## Когда брать
13
+ ## When to use
14
14
 
15
- - Пишется правило, статья закона, пункт спека или README.
16
- - Пишется комментарий в коде, тело коммита, описание PR.
15
+ - A rule, an article of a law, a spec item or a README is being written.
16
+ - A code comment, a commit body, a PR description is being written.
17
17
 
18
- ## Правило — одна фраза
18
+ ## A rule is one sentence
19
19
 
20
- Само правило укладывается в одно предложение. Следом — не больше двух предложений о том, что
21
- сломается иначе, и только если из самой фразы это не видно. Обоснование, у которого была
22
- альтернатива, идёт в ловушки — холодную часть правила, — а не в сам закон: разросшийся буллет читают по
23
- диагонали, а закон говорит, что верно, — не почему когда-то выбрали так.
20
+ The rule itself fits in one sentence. After it — at most two sentences about what breaks
21
+ otherwise, and only if the sentence itself does not show it. A justification that had an
22
+ alternative goes into the pitfalls — the cold part of the rule — not into the law itself: a
23
+ bloated bullet is skimmed, and a law says what is true — not why it was once chosen so.
24
24
 
25
25
  ```
26
- ✗ **Взрослых в брони хотя бы один — на любом пути записи, без исключений.** Нижнюю
27
- границу держит база: путей записи три, и проверка в одном из них закрывает не все.
28
- Верхнюю (вместимость объекта) ограничением базы не выразить — она лежит в строке
29
- объекта и меняется владельцем.
26
+ ✗ **A booking has at least one adult — on every write path, no exceptions.** The lower
27
+ bound is held by the database: there are three write paths, and a check in one of them
28
+ does not cover all. The upper bound (the property's capacity) cannot be expressed as a
29
+ database constraint — it lives in the property row and is changed by the owner.
30
30
 
31
- ✓ **Взрослых в брони хотя бы один.** Исключений нет: заезда без взрослых не бывает.
32
- ✓ **Взрослые и дети не превышают вместимость объекта.**
31
+ ✓ **A booking has at least one adult.** No exceptions: there is no check-in without adults.
32
+ ✓ **Adults and children do not exceed the property's capacity.**
33
33
  ```
34
34
 
35
- ## Что верно, а не где это держится
35
+ ## What is true, not where it is held
36
36
 
37
- «Держит база, а не сервис», «проверяется в транзакции», «умолчание колонки», «на трёх путях
38
- записи из четырёх», имена функций и колонок внутри фразы — это устройство кода. Читателю нужно
39
- знать, **что** верно.
37
+ "The database holds it, not the service", "checked inside the transaction", "column default",
38
+ "on three write paths out of four", function and column names inside the sentence — that is the
39
+ structure of the code. The reader needs to know **what** is true.
40
40
 
41
- Место исполнения меняется при первом же рефакторинге, и документ, который его называет,
42
- устаревает молча. Для него заведён отдельный файл — `implementation.md` рядом.
41
+ The place of enforcement changes at the first refactoring, and a document naming it goes stale
42
+ silently. It has a separate file — `implementation.md` next to it.
43
43
 
44
- Исключение — ловушки в холодной части правила: там устройство кода называется прямо, потому
45
- что ловушка и есть место, где на него наступают.
44
+ The exception is the pitfalls in the rule's cold part: there the structure of the code is named
45
+ directly, because the pitfall is the very place where people step on it.
46
46
 
47
- ## Без утверждений о будущем
47
+ ## No claims about the future
48
48
 
49
- «Не планируется», «не будет», «отдельная фича по запросу» — это намерение владельца, а не
50
- свойство системы. Что не сделано — да, почему не сделано — да, что не будет сделано никогда —
51
- нет. Вместо приговора — открытый вопрос `Q-<буква закона>-<номер>` с тем, что решение изменит.
49
+ "Not planned", "will not be", "a separate feature on request" — that is the owner's intention,
50
+ not a property of the system. What is not done — yes; why not — yes; what will never be done —
51
+ no. Instead of a verdict — an open question `Q-<law letter>-<number>` with what the decision would
52
+ change.
52
53
 
53
- Ошибка беззвучная: сверять утверждение о будущем не с чем, оно проходит любую проверку. Так в
54
- первый живой спек попало «онлайн-оплаты нет и не планируется», хотя оплата в планах.
54
+ The error is silent: a claim about the future has nothing to be checked against, it passes any
55
+ check. That is how "there is no online payment and none is planned" got into the first live spec,
56
+ while payment was in the plans.
55
57
 
56
- Отсюда же: того, чего нет в `docs/PRD.md`, документ о продукте не утверждает. Домысел при
57
- пересказе звучит убедительнее исходника — он короче и категоричнее.
58
+ Hence also: what is not in `docs/PRD.md`, the product document does not claim. A guess made while
59
+ retelling sounds more convincing than the source — it is shorter and more categorical.
58
60
 
59
- ## Простыми словами
61
+ ## In plain words
60
62
 
61
- Афоризмы, метафоры и инверсии затрудняют чтение и ничего не добавляют.
63
+ Aphorisms, metaphors and inversions make reading harder and add nothing.
62
64
 
63
65
  ```
64
- ✗ запись о прошлом не должна упираться в правило, появившееся позже
65
- ✗ свою запись владельца стирать по молчанию площадки нельзя
66
- ✗ пустой список без текста и отказ без кнопки выглядят одинаково — как сломанная страница
66
+ ✗ a record of the past must not run into a rule that appeared later
67
+ ✗ the owner's own record must not be erased on the platform's silence
68
+ ✗ an empty list without text and a failure without a button look the same — like a broken page
67
69
 
68
- ✓ бронь, которую владелец внёс сам, пропажа события из фида не снимает
69
- ✓ у пустого списка должен быть текст, у отказа — кнопка повтора
70
+ ✓ a booking the owner entered by hand is not removed when the event disappears from the feed
71
+ ✓ an empty list must have a text, a failure must have a retry button
70
72
  ```
71
73
 
72
- Проверка: прочитать фразу вслух. Если так не говорят — переписать. Слухом это ловится в той
73
- фразе, которую читают, и не ловится в файле на восемьсот строк: оборот всплывает по всему
74
- тексту, и глазами он не считается.
74
+ The test: read the sentence aloud. If people do not talk like that — rewrite. The ear catches it
75
+ in the sentence being read and does not catch it in an eight-hundred-line file: the turn of
76
+ phrase surfaces throughout the text, and eyes do not count it.
75
77
 
76
- Берётся чужой оборот оттуда, что писавший только что читал, и сильнее всего это бьёт при письме
77
- в том же роде: ни одного слова вне словаря в такой фразе нет, каждое проходит вычитку по
78
- отдельности, а непонятной оказывается фраза целиком. Вводный абзац поэтому пишется последним —
79
- когда источник уже выветрился.
78
+ A borrowed turn of phrase comes from what the writer has just read, and it hits hardest when
79
+ writing in the same genre: not a single word in such a sentence is outside the glossary, each
80
+ passes proofreading on its own, and it is the sentence as a whole that turns out to be
81
+ unintelligible. So the introductory paragraph is written last — once the source has faded.
80
82
 
81
- Вторая половина проверки — счёт, и там, где дерево разложило проверку слога
82
- `checks/check-prose-style.mjs`, набор оборотов накоплен в ней самой: каждый признак назван
83
- вместе с заменой, а находка печатается файлом и строкой. Оборот, найденный вычиткой,
84
- дописывается в набор тем же ходом — иначе следующий пишущий начинает с пустого места и
85
- собирает его заново из своей памяти.
83
+ The second half of the test is counting, and where the tree has laid out the prose check
84
+ `checks/check-prose-style.mjs`, the set of turns of phrase is accumulated in it: every marker is
85
+ named together with its replacement, and a find is printed with file and line. A turn of phrase
86
+ found by proofreading is added to the set in the same turn — otherwise the next writer starts
87
+ from scratch and rebuilds it from their own memory.
86
88
 
87
- Читается не только слово, но и то, одно ли у фразы прочтение. Три причины нечитаемости приходят
88
- по очереди, и правка одной заводит следующую — статью закона переписывали трижды, и каждый раз
89
- владелец не понимал её по новой причине:
89
+ Not only the word is read, but also whether the sentence has one reading. Three causes of
90
+ unreadability come in turn, and fixing one starts the next — an article of a law was rewritten
91
+ three times, and each time the owner failed to understand it for a new reason:
90
92
 
91
93
  ```text
92
- ✗ не различать их нельзя — двойное отрицание читается наоборот сказанному
93
- ✗ у каждого видно, откуда он взялся — местоимение без хозяина, а «взялся» не называет действия
94
- ✗ либо снимается ролью, либо остаётся навсегда — два исхода через «или» без правила, по которому наступает тот или другой
94
+ ✗ not telling them apart is not allowed — a double negative reads as the opposite of what was said
95
+ ✗ each one shows where it came from — a pronoun without an owner, and "came from" names no action
96
+ ✗ either lifted by the role, or kept forever — two outcomes joined by "or" with no rule for which one occurs
95
97
 
96
- ✓ выданное лично снимается только лично: роль этого не трогает
98
+ ✓ what was granted personally is revoked only personally: the role does not touch it
97
99
  ```
98
100
 
99
- Довод «без такого устройства было бы так» в текст не идёт вовсе: он спорит с тем, чего нет, и
100
- читается как «это к чему?».
101
+ The argument "without this arrangement it would be so" does not go into the text at all: it
102
+ argues with what does not exist and reads as "what is this about?".
101
103
 
102
- Чего не видит ни слух, ни она: повтора законного оборота. Каждое его появление законно
103
- поодиночке, а стоящий в тексте десятками он уже не приём, а тик — читатель перестаёт замечать
104
- его вместе со смыслом. Считается это грепом по тексту, и число само по себе отказом не бывает:
105
- судит его тот, кто правит следующим.
104
+ What neither the ear nor the check sees: repetition of a legitimate turn of phrase. Each
105
+ occurrence is legitimate on its own, but standing in the text by the dozen it is no longer a
106
+ device but a tic — the reader stops noticing it along with the meaning. This is counted by grep
107
+ over the text, and the number by itself is never a rejection: it is judged by whoever edits next.
106
108
 
107
- ## Новое слово в словаре
109
+ ## A new word in the glossary
108
110
 
109
- Слово, значащее в дереве что-то определённое, живёт в словаре. Порядок — четыре шага, и первый
110
- из них не пропускается: словарь читается до того, как текст написан, а не сверяется после.
111
+ A word that means something specific in the tree lives in the glossary. The order is four steps,
112
+ and the first is not skipped: the glossary is read before the text is written, not checked
113
+ afterwards.
111
114
 
112
- 1. **Поиск по собранному словарю целиком**, включая раздел отвергнутых слов. Слово, от которого
113
- дерево отказалось, стоит там же — и вводить его заново значит отменять чужое решение молча.
114
- 2. **Выбор своего раздела.** Раздел надстройки замещает одноимённый раздел набора целиком:
115
- название берётся такое, какого в наборе нет.
116
- 3. **Строка парой — слово и что это.** Без второй половины слово не введено: оно названо.
117
- 4. **Раскладка тем же изменением**, и сверка при этом зелёная. Слово, введённое в надстройку и не
118
- разложенное, у читателя ещё не появилось.
115
+ 1. **A search over the whole assembled glossary**, including the section of rejected words. A
116
+ word the tree has dropped stands right there — and introducing it anew means silently
117
+ overturning someone else's decision.
118
+ 2. **Choosing your own section.** An override section replaces the package section of the same
119
+ name entirely: pick a name the set does not have.
120
+ 3. **A line as a pair — the word and what it is.** Without the second half the word is not
121
+ introduced: it is merely named.
122
+ 4. **Layout by the same change**, with the check green. A word entered into the override and not
123
+ laid out has not yet appeared for the reader.
119
124
 
120
- Слово, от которого дерево отказывается, заводится там же и с заменой в той же строке: отказ без
121
- замены исполнить нечем — пишущий видит запрет и не видит, чем его закрыть.
125
+ A word the tree drops is filed in the same place with its replacement on the same line: a
126
+ rejection without a replacement cannot be acted on — the writer sees the ban and does not see
127
+ what closes it.
122
128
 
123
- ## Факт проверяется, а не вспоминается
129
+ ## A fact is checked, not recalled
124
130
 
125
- Перед тем как написать, что код делает X, — открыть код и посмотреть. Пересказ по памяти
126
- выглядит так же уверенно, как проверенное утверждение, и отличить их потом нечем.
131
+ Before writing that the code does X — open the code and look. A retelling from memory looks as
132
+ confident as a verified statement, and afterwards there is no way to tell them apart.
127
133
 
128
- Особенно это касается отказов: «вернётся `value out of range`» продержалось в двух документах,
129
- хотя такой отказ недостижим — в контракте и в колонке одна ширина.
134
+ This applies to failures above all: "it will return `value out of range`" held on in two
135
+ documents although such a failure is unreachable — the contract and the column have the same
136
+ width.
130
137
 
131
- **Утверждение о состоянии другой ветки читается из неё, а не из своей копии.** Копия, снятая при
132
- отведении, отвечает на любой вопрос о содержимом файла и ни одним признаком не показывает,
133
- насколько она отстала. Трижды за один заход состояние общей ветки вывели из файла на своей,
134
- отставшей на семь коммитов; все три вывода неверны, один доехал до документа задачи и был назван
135
- владельцу как факт. Поймано ребейзом, то есть случайно.
138
+ **A statement about the state of another branch is read from it, not from your own copy.** The
139
+ copy taken at branching answers any question about a file's contents and shows by no sign how
140
+ far behind it is. Three times in one session the state of the shared branch was inferred from a
141
+ file on one's own branch, seven commits behind; all three inferences were wrong, one reached the
142
+ task document and was reported to the owner as fact. Caught by a rebase, that is, by accident.
136
143
 
137
144
  ```bash
138
145
  git fetch origin
139
- git show origin/main:<путь к файлу>
146
+ git show origin/main:<path to file>
140
147
  ```
141
148
 
142
- **Утверждение «все N таких-то» пишется после перечисления маршрутов, которыми значение попадает в
143
- место, а не после скана по одному образцу.** Скан подтверждает ровно тот маршрут, который в него
144
- заложен, и молчит обо всех прочих — тем увереннее, чем точнее образец. Посчитали места по образцу
145
- самого вызова, получили 22 и записали в план и в описание заявки, что порядок держится
146
- устройством; мимо прошли десять вызовов обёртки, которая берёт значение аргументом. Мест
147
- оказалось 32, и у десяти значение стояло числом.
149
+ **A statement "all N such-and-such" is written after listing the routes by which a value reaches
150
+ a place, not after a scan by one sample.** A scan confirms exactly the route built into it and
151
+ is silent about all others — the more confidently, the more precise the sample. Places were
152
+ counted by the pattern of the call itself, 22 were found and written into the plan and the PR
153
+ description as "the order is held by the structure"; ten calls of a wrapper that takes the value
154
+ as an argument were missed. There were 32 places, and in ten the value stood as a literal.
148
155
 
149
- **Команда, которой получено число, проверяется на том, что она мерит спрошенное.** Вывод команды
150
- — не подтверждение сам по себе: инструмент отвечает на тот вопрос, который понял, и о непонятой
151
- части образца молчит. Три числа подряд за один заход: граница слова, не реализованная в этой
152
- сборке инструмента и не объявленная отказом, дала 278 вхождений вместо 79; счёт вызовов
153
- регулярным выражением дал 32 и 42 на одном и том же, а по синтаксическому дереву их 27.
156
+ **The command a number was obtained with is checked for measuring what was asked.** Command
157
+ output is no confirmation by itself: the tool answers the question it understood and is silent
158
+ about the part of the pattern it did not. Three numbers in a row in one session: a word boundary
159
+ not implemented in this build of the tool and not declared a failure gave 278 occurrences instead
160
+ of 79; counting calls by regular expression gave 32 and 42 on the same input, while by the syntax
161
+ tree there are 27.
154
162
 
155
- **Число, пришедшее из прошлой сессии, замером не считается.** Оно неотличимо от замеренного и в
156
- документе выглядит так же уверенно; пересчитывается заново тем же ходом, которым пишется.
163
+ **A number that came from a previous session does not count as a measurement.** It is
164
+ indistinguishable from a measured one and looks just as confident in a document; it is recomputed
165
+ in the same turn the text is written.
157
166
 
158
- ## Не пересказывать то, у чего есть источник
167
+ ## Do not retell what has a source
159
168
 
160
- - типы и поля контракта — `libs/common/proto/proto/<область>/v1/`, ссылкой;
161
- - колонки и индексы — `prisma/schema.prisma`;
162
- - числа, которые правит владелец (базовая цена, min-nights, вместимость) — только как они
163
- применяются;
164
- - слои и имена классов — правило `lib-layers` и сам код.
169
+ - contract types and fields — `libs/common/proto/proto/<area>/v1/`, by link;
170
+ - columns and indexes — `prisma/schema.prisma`;
171
+ - numbers the owner edits (base price, min-nights, capacity) — only how they are applied;
172
+ - layers and class names — the rule `lib-layers` and the code itself.
165
173
 
166
- ## Комментарии в коде
174
+ ## Code comments
167
175
 
168
- Те же правила. Комментарий отвечает на вопрос «почему так, а не иначе» — если ответ
169
- неочевиден. Что делает строка, видно из строки.
176
+ The same rules. A comment answers "why so and not otherwise" — if the answer is not obvious.
177
+ What a line does is visible from the line.
170
178
 
171
- Многострочный комментарий над каждой функцией — признак того, что объяснение подменило имя.
172
- Сначала переименовать, потом писать комментарий.
179
+ A multi-line comment above every function is a sign that explanation has replaced naming. Rename
180
+ first, then write the comment.
173
181
 
174
- Комментарий, оправдывающий отклонение от правила, держит это отклонение на себе: пока
175
- объяснение выглядит убедительно, отклонение не трогают. Факт в нём проверяется, когда
176
- комментарий пишут, и перепроверяется, когда отклонение снимают.
182
+ A comment justifying a deviation from a rule holds that deviation up: as long as the explanation
183
+ looks convincing, the deviation is left alone. The fact in it is checked when the comment is
184
+ written and rechecked when the deviation is lifted.
177
185
 
178
- ## Частые промахи
186
+ ## Common misses
179
187
 
180
- - Чужой проект назван в коммите, PR, комментарии или документе. Ни имени репозитория, ни
181
- «портировано из», ни ссылок на его файлы — нигде.
182
- - Число написано по памяти, а не пересчитано командой в том же коммите.
183
- - Пункт плана вычеркнут по памяти о работе, а не по дереву.
184
- - Формулировка звучит как заголовок, а не как правило: «работа со скидками» нарушить нельзя,
185
- «применяется одна максимальная скидка» — можно.
188
+ - Another project named in a commit, a PR, a comment or a document. Neither the repository
189
+ name, nor "ported from", nor links to its files — anywhere.
190
+ - A number written from memory rather than recomputed by a command in the same commit.
191
+ - A plan item struck out from memory of the work rather than from the tree.
192
+ - Wording that sounds like a heading rather than a rule: "discount handling" cannot be violated,
193
+ "one maximum discount is applied" can.
@@ -2,20 +2,20 @@
2
2
  name: entity-aside
3
3
  kind: pattern
4
4
  rule: entity-conventions
5
- description: Паттерн правила entity-conventions. Брать при сборке или правке панели создания и правки записи — готовый маршрут в аутлете ro, наследование общей основы, runMutation, гард несохранённых правок, шапка и футер, уход на связанную запись. Не брать для стора — это паттерн entity-store.
5
+ description: Pattern of rule entity-conventions. Load when assembling or editing the record create-and-edit panel — the ready-made route in the ro outlet, inheriting the shared base, runMutation, the unsaved edits guard, header and footer, leaving for a linked record. Not for the store — pattern entity-store.
6
6
  ---
7
7
 
8
- # Панель правки записи
8
+ # The record edit panel
9
9
 
10
- Паттерн правила `entity-conventions`. Что при этом должно быть верно — закон
10
+ Pattern of the rule `entity-conventions`. What must be true — the law
11
11
  `docs/constitution/entity-editing.md`.
12
12
 
13
- ## Когда брать
13
+ ## When to use
14
14
 
15
- - Заводится или правится панель создания и правки записи.
16
- - Появляется панель без записи — настройки таблицы, лента событий.
15
+ - A panel that creates and edits a record is created or edited.
16
+ - A panel without a record appears — table settings, an event feed.
17
17
 
18
- ## Панель объявляется маршрутом в аутлете `ro`
18
+ ## The panel is declared by a route in the `ro` outlet
19
19
 
20
20
  ```typescript
21
21
  {
@@ -25,24 +25,37 @@ description: Паттерн правила entity-conventions. Брать при
25
25
  }
26
26
  ```
27
27
 
28
- Так панель переживает перезагрузку, передаётся ссылкой и попадает в историю браузера.
29
- Программного открытия через сервис в админке нет.
28
+ This way the panel survives a reload, is passed by link and lands in the browser history. There
29
+ is no programmatic opening through a service in the admin.
30
30
 
31
- Панель, которую открывают из шапки, объявляется константой и подмешивается в `children` каждой
32
- доменной ветки — аутлет стоит в шаблоне хрома, а хром надевает `shell` каждого домена:
31
+ **The opening command goes from the current route, not from the root.** The outlet is declared
32
+ inside the domain's routes, so the screen calls the opening relative to itself:
33
+
34
+ ```typescript
35
+ void this.#router.navigate([{ outlets: { ro: [EDIT_PATH, id] } }], { relativeTo: this.#route });
36
+ ```
37
+
38
+ Without the current route the command goes to the application root: the panel does not open,
39
+ there is no exception, the browser output is clean — the miss is seen only by eye and only by
40
+ whoever opened this screen. Its second half is quieter: the panel base closes it against the
41
+ parent of the current route, and a panel opened from the root does not close at all.
42
+
43
+ A panel opened from the header is declared as a constant and mixed into the `children` of every
44
+ domain branch — the outlet stands in the chrome template, and the chrome is put on by the
45
+ `shell` of every domain:
33
46
 
34
47
  ```typescript
35
48
  export const ACTIVITY_ASIDE_ROUTES: Route[] = [{ path: 'activity', outlet: 'ro', component: ActivityFeedAsideComponent }];
36
49
  ```
37
50
 
38
- ## Экран наследует общую основу
51
+ ## The screen inherits the shared base
39
52
 
40
- `RtRouteAsideComponent<T>` держит `entity`, `entityId`, `isCreateMode`, `submitting`,
41
- `resolving`, `submitError`, открытие панели по маршруту, уход с адреса и всю механику записи.
42
- Имена из основы не переименовываются: `booking`, `feed`, `slug` вместо `entity` ломают то самое
43
- единообразие, ради которого основа заведена.
53
+ `RtRouteAsideComponent<T>` holds `entity`, `entityId`, `isCreateMode`, `submitting`,
54
+ `resolving`, `submitError`, opening the panel by route, leaving the address and the whole
55
+ mechanics of saving. Names from the base are not renamed: `booking`, `feed`, `slug` instead of
56
+ `entity` break the very uniformity the base was set up for.
44
57
 
45
- ## Запись идёт через `runMutation`
58
+ ## Saving goes through `runMutation`
46
59
 
47
60
  ```typescript
48
61
  protected save(): void {
@@ -58,14 +71,14 @@ protected save(): void {
58
71
  }
59
72
  ```
60
73
 
61
- Занятость, гашение прежней ошибки, тост об успехе и закрытие панели держит основа. `errorText`
62
- — функция: причина отказа известна только после него. Поток мутации обязан отдать значение или
63
- ошибку — пустой поток гасит панель навсегда.
74
+ The busy state, clearing the previous error, the success toast and closing the panel are held by
75
+ the base. `errorText` is a function: the reason of the refusal is known only after it. The
76
+ mutation stream must give a value or an error — an empty stream freezes the panel forever.
64
77
 
65
- ## Гард несохранённых правок
78
+ ## The unsaved-edits guard
66
79
 
67
- Ставит сама панель, и он встаёт на все четыре пути закрытия: кнопку в шапке, кнопку в футере,
68
- нажатие мимо панели и Esc.
80
+ Set by the panel itself, and it stands on all four closing paths: the button in the header, the
81
+ button in the footer, a press outside the panel and Esc.
69
82
 
70
83
  ```typescript
71
84
  protected readonly panelForm: Signal<NgForm | undefined> = viewChild(NgForm);
@@ -79,60 +92,61 @@ constructor() {
79
92
  }
80
93
  ```
81
94
 
82
- `viewChild` на поле с `#` Angular не принимает — поле объявляется `protected`.
95
+ Angular does not accept `viewChild` on a `#` field — the field is declared `protected`.
83
96
 
84
- ## Шапка и футер
97
+ ## Header and footer
85
98
 
86
99
  ```html
87
- <<префикс>-aside-header [title]="title()" [overline]="overline()" [loading]="resolving()" (dismiss)="onClose()">
100
+ <<prefix>-aside-header [title]="title()" [overline]="overline()" [loading]="resolving()" (dismiss)="onClose()">
88
101
  <ng-container asideActions>
89
- <!-- доменные действия иконками; больше двух — под одну кнопку меню -->
102
+ <!-- domain actions as icons; more than two — under one menu button -->
90
103
  </ng-container>
91
- </<префикс>-aside-header>
104
+ </<prefix>-aside-header>
92
105
  ```
93
106
 
94
- Заголовок называет действие, имя записи идёт надстрочником. В футере две зоны и не больше двух
95
- кнопок: `asideDismiss` — закрытие, `asidePrimary` — запись. Доменные глаголы в футер не
96
- ставятся: подтверждение, отказ, снятие с публикации — иконки в шапке.
107
+ The title names the action, the record name goes as the overline. The footer has two zones and no
108
+ more than two buttons: `asideDismiss` — closing, `asidePrimary` — saving. Domain verbs do not go
109
+ into the footer: confirming, rejecting, unpublishing — icons in the header.
97
110
 
98
- Подписи кнопок закреплены, панель их не выбирает:
111
+ The button captions are fixed, the panel does not choose them:
99
112
 
100
- | Кнопка | Подпись |
101
- | ------------------------------------ | ------------------------------------------------- |
102
- | запись при создании | «Создать» |
103
- | запись при правке | «Сохранить» |
104
- | закрытие панели, которая записывает | «Закрыть и не сохранять» (`uiCloseWithoutSaving`) |
105
- | закрытие панели только для просмотра | «Закрыть» |
113
+ | Button | Caption |
114
+ | ---------------------------------- | ------------------------------------------------- |
115
+ | saving on create | «Создать» |
116
+ | saving on edit | «Сохранить» |
117
+ | closing a panel that saves | «Закрыть и не сохранять» (`uiCloseWithoutSaving`) |
118
+ | closing a view-only panel | «Закрыть» |
106
119
 
107
- Кнопка записи стоит у противоположного края от кнопки закрытия, а пока идёт запрос —
108
- показывает спиннер и не нажимается: занятость берётся из `submitting()` основы, своего флага
109
- панель не заводит. Шапка и футер при прокрутке остаются на месте — прокручивается только зона
110
- содержимого.
120
+ The save button stands at the edge opposite the close button, and while the request runs it
121
+ shows a spinner and cannot be pressed: the busy state comes from the base's `submitting()`, the
122
+ panel keeps no flag of its own. The header and the footer stay in place on scroll — only the
123
+ content zone scrolls.
111
124
 
112
- ## Уход на связанную запись
125
+ ## Leaving for a related record
113
126
 
114
127
  ```html
115
128
  <a rtElem="related" qa-dataid="promo-code-property-link" [href]="propertyHref()" (click)="openProperty($event)">
116
- {{ 'propertyOpenLink' | transloco }} <<префикс>-icon name="arrow-right" size="sm" />
129
+ {{ 'propertyOpenLink' | transloco }} <<prefix>-icon name="arrow-right" size="sm" />
117
130
  </a>
118
131
  ```
119
132
 
120
- Адрес даёт `relatedUrl(commands)`, уход — `openRelated(commands)`. `routerLink` здесь не
121
- годится: директива навигирует сама, `preventDefault` её не останавливает, и вопрос о
122
- несохранённых правках она обходит.
123
-
124
- ## Частые промахи
125
-
126
- - Свой `router.navigate` в панели: абсолютные команды меняют только первичную ветку, аутлет
127
- остаётся в адресе, и роутер отклоняет навигацию молча.
128
- - Скелетоны по `busy()`, а не по `resolving()`: `busy` включает и запись, и на сохранении поля
129
- превратились бы в скелетоны.
130
- - Своё «не найдено» на панели: ненайденная запись уводит с адреса силами основы.
131
- - Свои отступы поверх общей основы: они дают разную ширину полей на разных панелях и срезают
132
- обводку фокуса у края прокрутки.
133
- - Панель, остающаяся открытой после успеха, не сбросила нетронутость (`markAsPristine`) —
134
- вопрос о правках задаётся сразу после записи.
135
- - Отключённые поля ввода вместо данных: запись, которую только смотрят, показывается готовым
136
- списком свойств кита — `<префикс>-detail-list`, `<префикс>-info-item`. Своя разметка на `<dl>`
137
- идёт последней и только как разовое отступление: она и есть отход от общего вида, а решает
138
- его владелец, — перечень, ставящий её первой, учит обходить готовое раньше, чем спросить.
133
+ The address is given by `relatedUrl(commands)`, the leaving — by `openRelated(commands)`.
134
+ `routerLink` is no good here: the directive navigates itself, `preventDefault` does not stop it,
135
+ and it bypasses the question about unsaved edits.
136
+
137
+ ## Common misses
138
+
139
+ - An own `router.navigate` in the panel: absolute commands change only the primary branch, the
140
+ outlet stays in the address, and the router rejects the navigation silently.
141
+ - Skeletons by `busy()`, not by `resolving()`: `busy` includes saving too, and on save the fields
142
+ would turn into skeletons.
143
+ - An own "not found" on the panel: a record that is not found leaves the address by the base's
144
+ own means.
145
+ - Own spacing on top of the shared base: it gives different field widths on different panels and
146
+ cuts off the focus outline at the edge of the scroll area.
147
+ - A panel that stays open after success did not reset pristineness (`markAsPristine`) — the
148
+ question about edits is asked right after saving.
149
+ - Disabled inputs instead of data: a record that is only viewed is shown by the kit's ready-made
150
+ property list — `<prefix>-detail-list`, `<prefix>-info-item`. Own markup on `<dl>` goes last
151
+ and only as a one-off deviation: it is the departure from the shared look, and the owner
152
+ decides it — a list that puts it first teaches to bypass the ready-made before asking.