@rt-tools/agent-kit 0.37.1 → 0.38.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 (357) hide show
  1. package/README.md +5 -5
  2. package/assets/checks/action-of.mjs +154 -0
  3. package/assets/checks/board-runs.github.mjs +40 -5
  4. package/assets/checks/check-board.github.mjs +38 -7
  5. package/assets/checks/check-state-next.mjs +22 -10
  6. package/assets/checks/check-turn-map.mjs +26 -6
  7. package/assets/checks/check-work-steps.mjs +4 -173
  8. package/assets/checks/decide.mjs +285 -0
  9. package/assets/checks/decision-table.json +21365 -0
  10. package/assets/checks/decision-table.mjs +495 -0
  11. package/assets/checks/epic-window.mjs +98 -0
  12. package/assets/checks/flow-condition.mjs +64 -0
  13. package/assets/checks/flow-data.mjs +136 -0
  14. package/assets/checks/flow-forecast.mjs +330 -0
  15. package/assets/checks/flow-guard-run.mjs +90 -0
  16. package/assets/checks/flow-guard.mjs +294 -0
  17. package/assets/checks/flow-model.mjs +271 -0
  18. package/assets/checks/flow-override.mjs +130 -0
  19. package/assets/checks/flow-plan.mjs +206 -0
  20. package/assets/checks/flow-scaffold.mjs +224 -0
  21. package/assets/checks/flow-step.mjs +365 -0
  22. package/assets/checks/flow-sync.mjs +296 -0
  23. package/assets/checks/flow-syntax.mjs +292 -0
  24. package/assets/checks/flow-verdict.mjs +112 -0
  25. package/assets/checks/merge-read.mjs +239 -0
  26. package/assets/checks/owner-nudges.mjs +389 -0
  27. package/assets/checks/push-inputs.mjs +59 -16
  28. package/assets/checks/record-count.mjs +410 -0
  29. package/assets/checks/record-recount.mjs +187 -0
  30. package/assets/checks/record-turn.mjs +155 -0
  31. package/assets/checks/task-flow-script.mjs +292 -0
  32. package/assets/checks/tree-assignment.mjs +26 -7
  33. package/assets/checks/work-result.mjs +281 -0
  34. package/assets/checks/work-steps-lib.mjs +205 -0
  35. package/assets/commands/night.md +6 -6
  36. package/assets/defaults/gate-map.sh +39 -12
  37. package/assets/defaults/merges.sh +48 -0
  38. package/assets/defaults/project.sh +6 -5
  39. package/assets/defaults/turn-map.md +21 -22
  40. package/assets/docs/GLOSSARY.md +5 -1
  41. package/assets/hooks/ask-judge.md +65 -0
  42. package/assets/hooks/browser-guard-device-id.sh +11 -9
  43. package/assets/hooks/browser-guard-no-asking.sh +12 -6
  44. package/assets/hooks/browser-guard-no-listing.sh +13 -7
  45. package/assets/hooks/browser-guard-no-other-drivers.sh +25 -17
  46. package/assets/hooks/browser-guard-require-select.sh +15 -15
  47. package/assets/hooks/commit-msg.sh +13 -3
  48. package/assets/hooks/conscience-guard.sh +9 -25
  49. package/assets/hooks/decide.sh +141 -0
  50. package/assets/hooks/deny-tail.sh +16 -11
  51. package/assets/hooks/dev-server-guard.sh +27 -20
  52. package/assets/hooks/dispatch.sh +47 -4
  53. package/assets/hooks/docs-guard.sh +31 -200
  54. package/assets/hooks/end-conversation-guard.sh +12 -21
  55. package/assets/hooks/epic-stop-guard.sh +54 -152
  56. package/assets/hooks/exam-guard.sh +32 -65
  57. package/assets/hooks/facts-docs.sh +221 -0
  58. package/assets/hooks/facts-flow.sh +173 -0
  59. package/assets/hooks/facts.sh +308 -0
  60. package/assets/hooks/flow-step-guard.sh +93 -0
  61. package/assets/hooks/git-guard-delivery-body.sh +4 -4
  62. package/assets/hooks/git-guard-delivery-conflict.sh +16 -10
  63. package/assets/hooks/git-guard-delivery-draft.sh +3 -3
  64. package/assets/hooks/git-guard-delivery-epic.sh +18 -9
  65. package/assets/hooks/git-guard-delivery-folder.sh +32 -7
  66. package/assets/hooks/git-guard-delivery-merge.sh +2 -2
  67. package/assets/hooks/git-guard-delivery-merged.sh +12 -1
  68. package/assets/hooks/git-guard-delivery-pipeline.sh +1 -1
  69. package/assets/hooks/git-guard-delivery-rerun.sh +32 -0
  70. package/assets/hooks/git-guard-delivery-signature.sh +82 -45
  71. package/assets/hooks/git-guard-delivery-task.sh +47 -0
  72. package/assets/hooks/git-guard-delivery.sh +112 -101
  73. package/assets/hooks/git-guard-discard.sh +8 -18
  74. package/assets/hooks/git-guard-main.sh +13 -19
  75. package/assets/hooks/git-guard-no-verify.sh +56 -16
  76. package/assets/hooks/git-guard-push-ahead.sh +15 -4
  77. package/assets/hooks/git-guard-push-marks.sh +53 -1
  78. package/assets/hooks/git-guard-push-tests.sh +30 -51
  79. package/assets/hooks/git-guard-tree-assignment.sh +7 -4
  80. package/assets/hooks/guard-note.sh +8 -6
  81. package/assets/hooks/handoff-entry-guard.sh +19 -38
  82. package/assets/hooks/handoff-write.sh +3 -1
  83. package/assets/hooks/hook-input.sh +0 -41
  84. package/assets/hooks/metric-marks.sh +19 -7
  85. package/assets/hooks/observe.sh +1 -1
  86. package/assets/hooks/override-write-guard.sh +27 -9
  87. package/assets/hooks/pre-push.sh +14 -10
  88. package/assets/hooks/prose-style-guard.sh +6 -19
  89. package/assets/hooks/pull-merges.sh +76 -0
  90. package/assets/hooks/push-set.sh +11 -4
  91. package/assets/hooks/qa-dataid-guard.sh +7 -17
  92. package/assets/hooks/record-turn.sh +52 -0
  93. package/assets/hooks/rerun-guard.sh +11 -16
  94. package/assets/hooks/reuse-first-guard.sh +7 -21
  95. package/assets/hooks/role-calls.sh +25 -3
  96. package/assets/hooks/rule-source-guard.sh +54 -21
  97. package/assets/hooks/skill-gate-rearm.sh +18 -5
  98. package/assets/hooks/skill-gate.sh +156 -20
  99. package/assets/hooks/skill-loaded.sh +18 -3
  100. package/assets/hooks/sql-guard-target.sh +2 -2
  101. package/assets/hooks/sql-guard-write.sh +12 -12
  102. package/assets/hooks/sql-guard.sh +58 -16
  103. package/assets/hooks/task-context-load.sh +3 -1
  104. package/assets/hooks/task-flow-context.sh +5 -18
  105. package/assets/hooks/task-flow-draft-guard.sh +25 -74
  106. package/assets/hooks/task-flow-guard.sh +28 -130
  107. package/assets/hooks/tree-assignment-guard.sh +25 -14
  108. package/assets/hooks/turn-entry-load.sh +3 -1
  109. package/assets/hooks/turn-exit-guard.sh +92 -452
  110. package/assets/hooks/turn-exit-role.sh +3 -1
  111. package/assets/hooks/turn-judge.md +103 -0
  112. package/assets/hooks/window-fill-guard.sh +22 -41
  113. package/assets/patterns/git-workflow-commit.azure.md +9 -155
  114. package/assets/patterns/git-workflow-commit.github.md +11 -269
  115. package/assets/patterns/git-workflow-commit.gitlab.md +9 -161
  116. package/assets/patterns/git-workflow-docker.md +8 -231
  117. package/assets/patterns/git-workflow-freshness.md +8 -56
  118. package/assets/patterns/git-workflow-merge.md +6 -176
  119. package/assets/patterns/git-workflow-migration.md +5 -75
  120. package/assets/patterns/git-workflow-pr-body.github.md +6 -159
  121. package/assets/patterns/git-workflow-pr-ready.md +9 -70
  122. package/assets/patterns/git-workflow-pr.azure.md +13 -285
  123. package/assets/patterns/git-workflow-pr.github.md +13 -251
  124. package/assets/patterns/git-workflow-pr.gitlab.md +13 -286
  125. package/assets/patterns/git-workflow-restart.md +5 -42
  126. package/assets/patterns/git-workflow-secrets.md +10 -76
  127. package/assets/patterns/git-workflow-stack.md +7 -207
  128. package/assets/patterns/status-report-table.github.md +1 -1
  129. package/assets/patterns/task-flow-archive.md +12 -233
  130. package/assets/patterns/task-flow-close.md +16 -292
  131. package/assets/patterns/task-flow-cycle.md +13 -39
  132. package/assets/patterns/task-flow-graph.needs-graph.md +8 -62
  133. package/assets/patterns/task-flow-handoff.md +13 -161
  134. package/assets/patterns/task-flow-resume.md +18 -218
  135. package/assets/patterns/task-flow-start.md +9 -247
  136. package/assets/patterns/turn-entry-map.md +2 -2
  137. package/assets/pitfalls/agent-kit-extend.md +200 -0
  138. package/assets/pitfalls/agent-kit.2.md +323 -0
  139. package/assets/pitfalls/angular-patterns.md +98 -0
  140. package/assets/pitfalls/browser-verification.md +265 -0
  141. package/assets/pitfalls/component-structure.md +98 -0
  142. package/assets/pitfalls/dependencies.md +92 -0
  143. package/assets/pitfalls/deploy-flow.azure.md +171 -0
  144. package/assets/pitfalls/deploy-flow.github.md +211 -0
  145. package/assets/pitfalls/deploy-flow.gitlab.md +173 -0
  146. package/assets/pitfalls/doc-style.2.md +286 -0
  147. package/assets/pitfalls/entity-conventions.needs-admin.md +96 -0
  148. package/assets/pitfalls/entity-models.md +89 -0
  149. package/assets/pitfalls/git-workflow-commit.azure.md +190 -0
  150. package/assets/pitfalls/git-workflow-commit.github.md +307 -0
  151. package/assets/pitfalls/git-workflow-commit.gitlab.md +196 -0
  152. package/assets/pitfalls/git-workflow-docker.md +275 -0
  153. package/assets/pitfalls/git-workflow-freshness.md +88 -0
  154. package/assets/pitfalls/git-workflow-hosting.azure.md +31 -0
  155. package/assets/pitfalls/git-workflow-hosting.github.md +32 -0
  156. package/assets/pitfalls/git-workflow-hosting.gitlab.md +31 -0
  157. package/assets/pitfalls/git-workflow-merge.md +220 -0
  158. package/assets/pitfalls/git-workflow-migration.md +103 -0
  159. package/assets/pitfalls/git-workflow-pr-body.github.md +185 -0
  160. package/assets/pitfalls/git-workflow-pr-ready.md +104 -0
  161. package/assets/pitfalls/git-workflow-pr.2.azure.md +172 -0
  162. package/assets/pitfalls/git-workflow-pr.2.github.md +184 -0
  163. package/assets/pitfalls/git-workflow-pr.2.gitlab.md +180 -0
  164. package/assets/pitfalls/git-workflow-pr.azure.md +159 -0
  165. package/assets/pitfalls/git-workflow-pr.github.md +107 -0
  166. package/assets/pitfalls/git-workflow-pr.gitlab.md +151 -0
  167. package/assets/pitfalls/git-workflow-push.azure.md +30 -0
  168. package/assets/pitfalls/git-workflow-push.github.md +30 -0
  169. package/assets/pitfalls/git-workflow-push.gitlab.md +30 -0
  170. package/assets/pitfalls/git-workflow-queue.azure.md +30 -0
  171. package/assets/pitfalls/git-workflow-queue.github.md +30 -0
  172. package/assets/pitfalls/git-workflow-queue.gitlab.md +30 -0
  173. package/assets/pitfalls/git-workflow-restart.md +72 -0
  174. package/assets/pitfalls/git-workflow-secrets.md +114 -0
  175. package/assets/pitfalls/git-workflow-stack.md +254 -0
  176. package/assets/pitfalls/git-workflow.2.azure.md +291 -0
  177. package/assets/pitfalls/git-workflow.2.github.md +294 -0
  178. package/assets/pitfalls/git-workflow.2.gitlab.md +278 -0
  179. package/assets/pitfalls/lib-layers.md +114 -0
  180. package/assets/pitfalls/lists.md +117 -0
  181. package/assets/pitfalls/navigation.md +94 -0
  182. package/assets/pitfalls/reuse-first.md +201 -0
  183. package/assets/pitfalls/spec-driven.2.md +318 -0
  184. package/assets/pitfalls/styling-bem.2.md +125 -0
  185. package/assets/pitfalls/task-flow-archive.md +264 -0
  186. package/assets/pitfalls/task-flow-close.2.md +165 -0
  187. package/assets/pitfalls/task-flow-close.md +167 -0
  188. package/assets/pitfalls/task-flow-cycle.md +73 -0
  189. package/assets/pitfalls/task-flow-graph.needs-graph.md +98 -0
  190. package/assets/pitfalls/task-flow-handoff.md +200 -0
  191. package/assets/pitfalls/task-flow-handover.md +30 -0
  192. package/assets/pitfalls/task-flow-owner.md +29 -0
  193. package/assets/pitfalls/task-flow-plan.md +29 -0
  194. package/assets/pitfalls/task-flow-resume.md +257 -0
  195. package/assets/pitfalls/task-flow-start.md +287 -0
  196. package/assets/pitfalls/task-flow.2.md +303 -0
  197. package/assets/pitfalls/task-flow.md +4 -4
  198. package/assets/pitfalls/testing.2.md +279 -0
  199. package/assets/pitfalls/turn-conduct.md +16 -17
  200. package/assets/pitfalls/typescript-conventions.md +161 -0
  201. package/assets/pitfalls/write-a-skill.md +128 -0
  202. package/assets/rules/angular-patterns.md +21 -86
  203. package/assets/rules/autonomous-work.md +2 -2
  204. package/assets/rules/browser-verification.md +28 -256
  205. package/assets/rules/component-structure.md +25 -87
  206. package/assets/rules/dependencies.md +20 -78
  207. package/assets/rules/deploy-flow.azure.md +26 -156
  208. package/assets/rules/deploy-flow.github.md +34 -200
  209. package/assets/rules/deploy-flow.gitlab.md +27 -159
  210. package/assets/rules/doc-style.md +32 -286
  211. package/assets/rules/entity-conventions.needs-admin.md +26 -82
  212. package/assets/rules/entity-models.md +14 -63
  213. package/assets/rules/git-workflow-hosting.azure.md +26 -0
  214. package/assets/rules/git-workflow-hosting.github.md +38 -0
  215. package/assets/rules/git-workflow-hosting.gitlab.md +27 -0
  216. package/assets/rules/git-workflow-push.azure.md +28 -0
  217. package/assets/rules/git-workflow-push.github.md +28 -0
  218. package/assets/rules/git-workflow-push.gitlab.md +28 -0
  219. package/assets/rules/git-workflow-queue.azure.md +23 -0
  220. package/assets/rules/git-workflow-queue.github.md +30 -0
  221. package/assets/rules/git-workflow-queue.gitlab.md +23 -0
  222. package/assets/rules/git-workflow.azure.md +21 -282
  223. package/assets/rules/git-workflow.github.md +24 -284
  224. package/assets/rules/git-workflow.gitlab.md +21 -269
  225. package/assets/rules/lib-layers.md +30 -103
  226. package/assets/rules/lists.md +21 -105
  227. package/assets/rules/navigation.md +10 -69
  228. package/assets/rules/reuse-first.md +20 -195
  229. package/assets/rules/spec-driven.md +35 -308
  230. package/assets/rules/styling-bem.md +20 -117
  231. package/assets/rules/task-flow-handover.md +24 -0
  232. package/assets/rules/task-flow-owner.md +34 -0
  233. package/assets/rules/task-flow-plan.md +38 -0
  234. package/assets/rules/task-flow.md +22 -300
  235. package/assets/rules/testing.md +32 -273
  236. package/assets/rules/turn-conduct.md +100 -104
  237. package/assets/rules/turn-entry.md +2 -2
  238. package/assets/rules/typescript-conventions.md +41 -147
  239. package/assets/samples/tasks/_template/plan.md +30 -6
  240. package/assets/samples/tasks/_template/progress.md +0 -1
  241. package/assets/skills/agent-kit-extend.md +25 -168
  242. package/assets/skills/agent-kit.md +27 -299
  243. package/assets/skills/write-a-skill.md +20 -106
  244. package/assets/task-flow/flow.js +188 -0
  245. package/assets/task-flow/flow.md +102 -0
  246. package/assets/task-flow/measure/agreement.mjs +24 -0
  247. package/assets/task-flow/measure/copy.mjs +22 -0
  248. package/assets/task-flow/measure/epic-of.mjs +50 -0
  249. package/assets/task-flow/measure/epic-text.mjs +35 -0
  250. package/assets/task-flow/measure/epic.mjs +114 -0
  251. package/assets/task-flow/measure/folder.mjs +16 -0
  252. package/assets/task-flow/measure/footprint.mjs +28 -0
  253. package/assets/task-flow/measure/grill.mjs +21 -0
  254. package/assets/task-flow/measure/host.mjs +8 -0
  255. package/assets/task-flow/measure/owner.mjs +20 -0
  256. package/assets/task-flow/measure/plan.mjs +27 -0
  257. package/assets/task-flow/measure/pr.mjs +20 -0
  258. package/assets/task-flow/measure/progress.mjs +50 -0
  259. package/assets/task-flow/measure/session.mjs +175 -0
  260. package/assets/task-flow/measure/task.mjs +23 -0
  261. package/assets/task-flow/measure/text.mjs +77 -0
  262. package/assets/task-flow/source/git.mjs +86 -0
  263. package/assets/task-flow/source/host.mjs +172 -0
  264. package/assets/task-flow/source/marks.mjs +56 -0
  265. package/assets/task-flow/source/owner.mjs +74 -0
  266. package/assets/task-flow/source/records.mjs +116 -0
  267. package/assets/task-flow/source/session.mjs +232 -0
  268. package/assets/task-flow/source/steps.mjs +28 -0
  269. package/assets/task-flow/source/tree.mjs +42 -0
  270. package/bin/agent-kit.d.ts.map +1 -1
  271. package/bin/agent-kit.js +30 -0
  272. package/bin/agent-kit.js.map +1 -1
  273. package/lib/agent-checks.d.ts +55 -0
  274. package/lib/agent-checks.d.ts.map +1 -0
  275. package/lib/agent-checks.js +209 -0
  276. package/lib/agent-checks.js.map +1 -0
  277. package/lib/assets.d.ts.map +1 -1
  278. package/lib/assets.js +7 -2
  279. package/lib/assets.js.map +1 -1
  280. package/lib/cargo.d.ts +29 -0
  281. package/lib/cargo.d.ts.map +1 -1
  282. package/lib/cargo.js +27 -1
  283. package/lib/cargo.js.map +1 -1
  284. package/lib/cascade.d.ts.map +1 -1
  285. package/lib/cascade.js +3 -1
  286. package/lib/cascade.js.map +1 -1
  287. package/lib/commands.d.ts.map +1 -1
  288. package/lib/commands.js +78 -2
  289. package/lib/commands.js.map +1 -1
  290. package/lib/config.d.ts +18 -0
  291. package/lib/config.d.ts.map +1 -1
  292. package/lib/config.js +18 -1
  293. package/lib/config.js.map +1 -1
  294. package/lib/epic-window-send.d.ts +74 -0
  295. package/lib/epic-window-send.d.ts.map +1 -0
  296. package/lib/epic-window-send.js +166 -0
  297. package/lib/epic-window-send.js.map +1 -0
  298. package/lib/hooks-map.d.ts +4 -0
  299. package/lib/hooks-map.d.ts.map +1 -1
  300. package/lib/hooks-map.js +2 -2
  301. package/lib/hooks-map.js.map +1 -1
  302. package/lib/integrity.d.ts +3 -0
  303. package/lib/integrity.d.ts.map +1 -1
  304. package/lib/integrity.js +7 -0
  305. package/lib/integrity.js.map +1 -1
  306. package/lib/metric-lines.d.ts +2 -1
  307. package/lib/metric-lines.d.ts.map +1 -1
  308. package/lib/metric-lines.js +49 -1
  309. package/lib/metric-lines.js.map +1 -1
  310. package/lib/metric-send-mark.d.ts +6 -3
  311. package/lib/metric-send-mark.d.ts.map +1 -1
  312. package/lib/metric-send-mark.js +15 -5
  313. package/lib/metric-send-mark.js.map +1 -1
  314. package/lib/metric-send.d.ts +6 -2
  315. package/lib/metric-send.d.ts.map +1 -1
  316. package/lib/metric-send.js +47 -13
  317. package/lib/metric-send.js.map +1 -1
  318. package/lib/metrics.d.ts +17 -0
  319. package/lib/metrics.d.ts.map +1 -1
  320. package/lib/metrics.js +26 -15
  321. package/lib/metrics.js.map +1 -1
  322. package/lib/observations.js +3 -3
  323. package/lib/observations.js.map +1 -1
  324. package/lib/outcomes.d.ts +5 -2
  325. package/lib/outcomes.d.ts.map +1 -1
  326. package/lib/outcomes.js +5 -4
  327. package/lib/outcomes.js.map +1 -1
  328. package/lib/push-gate.d.ts +13 -0
  329. package/lib/push-gate.d.ts.map +1 -1
  330. package/lib/push-gate.js +11 -7
  331. package/lib/push-gate.js.map +1 -1
  332. package/lib/push-set-usefulness.d.ts +78 -0
  333. package/lib/push-set-usefulness.d.ts.map +1 -0
  334. package/lib/push-set-usefulness.js +225 -0
  335. package/lib/push-set-usefulness.js.map +1 -0
  336. package/lib/sync.d.ts +10 -0
  337. package/lib/sync.d.ts.map +1 -1
  338. package/lib/sync.js +14 -1
  339. package/lib/sync.js.map +1 -1
  340. package/lib/work-result.d.ts +43 -0
  341. package/lib/work-result.d.ts.map +1 -0
  342. package/lib/work-result.js +39 -0
  343. package/lib/work-result.js.map +1 -0
  344. package/package.json +1 -1
  345. package/assets/hooks/claim-guard.sh +0 -212
  346. package/assets/hooks/grill-gate-ask.sh +0 -26
  347. package/assets/hooks/grill-gate-bypass.sh +0 -61
  348. package/assets/hooks/grill-gate-options.sh +0 -50
  349. package/assets/hooks/grill-gate.sh +0 -482
  350. package/assets/hooks/postmortem-guard.sh +0 -124
  351. package/assets/hooks/proposal-guard.sh +0 -154
  352. package/assets/hooks/stand-login-guard.sh +0 -107
  353. package/assets/hooks/turn-exit-epic.sh +0 -173
  354. package/assets/hooks/turn-exit-patterns.sh +0 -123
  355. package/assets/hooks/turn-exit-verdict.sh +0 -149
  356. package/assets/hooks/waiting-turn-guard.sh +0 -320
  357. package/assets/hooks/work-start-guard.sh +0 -175
@@ -74,11 +74,10 @@ The rule is `turn-conduct`; the articles that hold the law stand there.
74
74
  simple — a lawful question is about what the executor does not know, and this one is about
75
75
  what they do not feel like.
76
76
 
77
- - **The exit guard judges a change to the tree and the plan steps, not what the stage holds beyond
78
- them.** It asks whether anything at all was done in the turn — and a turn in which half of a stage
79
- is closed and the other half dropped on a refused command is indistinguishable to it from full
80
- work: there are commits, the tree changed. It counts the plan steps not done, not what the stage
81
- still holds outside them. Whether the state still holds an action not depending on what the turn
77
+ - **The exit guard measures the plan steps, not what the stage holds beyond them.** A turn in which
78
+ half of a stage is closed and the other half dropped on a refused command looks to it like any
79
+ turn of a running stage. It counts the steps by their marks, not what the stage still holds
80
+ outside them. Whether the state still holds an action not depending on what the turn
82
81
  waits for is checked by the attention of whoever leads the turn.
83
82
  - **A refused permission is never someone else's step, and it does not stop the work.** The
84
83
  article about someone else's step is written about what runs by itself and ends without the
@@ -88,9 +87,8 @@ The rule is `turn-conduct`; the articles that hold the law stand there.
88
87
  what was not done is named in the PR body, in the section about the remaining step: that is
89
88
  exactly what it is written for.
90
89
  - **An answer to a line from the owner that came in the middle of a turn does not end the turn.**
91
- The exit "a question to the owner" is about a question FROM the executor; the reverse case does
92
- not fit under it at all, and read so, it turns every line from the owner into the end of the
93
- session. In one session this cost three stops in a row: the owner asked, the executor answered
90
+ The former exit "a question to the owner" was about a question FROM the executor; read the other
91
+ way, it turned every line from the owner into the end of the session. In one session this cost three stops in a row: the owner asked, the executor answered
94
92
  and stalled.
95
93
  - **Work is not gated on a confirmation the owner never promised.** "Say the word and I will do
96
94
  it" moves the turn to the owner without their consent: they did not ask to be asked, and nobody
@@ -101,11 +99,11 @@ The rule is `turn-conduct`; the articles that hold the law stand there.
101
99
  no line from the owner at all; read alone, without the neighbouring "an instruction holds until
102
100
  cancelled", it forbids continuing. In a consumer tree three turns in a row ended with this
103
101
  phrase: the guard's general refusal returned the turn, the executor made one step and ended
104
- the turn with the same phrase. Now the guard names it by name; the lawful exit when a decision
105
- is needed is a question through the tool.
102
+ the turn with the same phrase. Now the guard names it by name; a decision that is the owner's
103
+ goes to them as a menu, and the turn waits for the answer inside itself.
106
104
  - **"Turn exits": the price of a question that holds independent work.** A session stood a night
107
105
  and a morning naming the owner one and the same step while three independent tasks lay untaken.
108
- - **"A guard's refusal ends the turn": why a bypass costs more than a refusal.** A guard refuses one
106
+ - **"A guard's refusal closes every other road": why a bypass costs more than a refusal.** A guard refuses one
109
107
  file; a bypassed guard lifts the requirement from the whole tree and says nothing. Not memory
110
108
  alone holds this — the guards also judge the shell command that writes the file.
111
109
  - **"The owner's answer is sought in their own messages": what the conversation guard does not
@@ -124,17 +122,18 @@ The rule is `turn-conduct`; the articles that hold the law stand there.
124
122
  - **A next step named and not begun.** Four stops of one shape: a stage closed and committed, a
125
123
  full report, the next stage named in the progress and untouched. The last, on 17 September, came
126
124
  after an epic with seven tasks, an agreement and a whole first stage — the more was done, the more
127
- the report read as the end. The guard now reads the order of actions after the last edit of the
128
- progress, and a turn that opened the PR passes that sign by itself.
125
+ the report read as the end. The exit guard now names the current step and its command in the
126
+ refusal.
129
127
  - **A launch in the background as the last action.** A grill of five menus ended with the review
130
128
  roles sent to the background and the line "the roles are working"; the owner read it as a stop.
131
129
  The guard counted the launch as work — there were edits in the turn, and the last action was not
132
- a wait. Now the last tool of the turn is judged: the agent tool or a command sent to the
133
- background standing last gives the turn back, and work after the launch releases it.
130
+ a wait. Now the last call is not read at all. A turn is released on a wait only by the record: a
131
+ background task of the session with a start and no end, younger than twenty minutes, and once
132
+ per task. A turn that only says it waits is held.
134
133
 
135
134
  - **"A promise to do the work in the next turn": an offer to object is part of it.** An offer to the
136
- owner to object to the announced intent is not a question: a turn ends with a question when the
137
- work does not go without the answer, and here it went.
135
+ owner to object to the announced intent is not a question: a menu is put when the work does not go
136
+ without the answer, and here it went.
138
137
  - **"A plan stage is declared closed only after its check command": why from memory is not enough.**
139
138
  A session later, a stage marked from memory cannot be told from one checked.
140
139
  - **"A statement about the tree's state": why the previous turn does not count.** Yesterday's output
@@ -0,0 +1,161 @@
1
+ # Code structure — how it works here — cold part
2
+
3
+ What the rule `typescript-conventions` handed over when cut to its statements, every article whole.
4
+
5
+ Rule under the law `docs/constitution/code-structure.md`. The law says what must be true about
6
+ declarations; here — how that is written in this tree.
7
+
8
+ ## What it is called here
9
+
10
+ | In the law | Here |
11
+ | ----------------------------- | -------------------------------------------------------------------- |
12
+ | the kind sign in the name | a prefix: `I` on an interface, `E` on an enum, `T` on a type |
13
+ | a watched source | the `$` suffix on an observable and `Source` on a subject |
14
+ | a private field | `#field`, not `private field` |
15
+ | a backend procedure | a class with the `@ConnectProcedure()` decorator, one per procedure |
16
+
17
+ ## Where it lives
18
+
19
+ In this tree — the table in `implementation.md` next to it. Paths live there, not here: the rule
20
+ travels between repositories, the layout does not, and a path named in the rule lies in the
21
+ first tree that keeps its code differently.
22
+
23
+ ## Flow
24
+
25
+ The flow of declaring a symbol: what sets the name, where the type comes from and what is done
26
+ with a removed declaration.
27
+
28
+ ```mermaid
29
+ flowchart TD
30
+ A[A symbol is declared] --> B[The kind shows in the name prefix, and the file suffix promises what lies inside]
31
+ B --> C{The type is already declared somewhere}
32
+ C -->|Yes| D[Taken from the package where it is declared: an own copy diverges from the original silently]
33
+ C -->|No| E[Declared here]
34
+ D --> F{The value arrives in the wrong shape}
35
+ E --> F
36
+ F -->|Yes| G[The cast goes by the named way; a two-step one is forbidden]
37
+ F -->|No| H{The declaration is removed}
38
+ G --> H
39
+ H -->|Yes| I[The deprecation mark is set together with a walk over all consumers]
40
+ H -->|No| J[The file stays within the length limit, complexity is asked from the plugin, not recalled]
41
+ I --> J
42
+ ```
43
+
44
+ ## How the law applies here
45
+
46
+ - **The kind of a declaration shows in the name prefix, and three linter rules hold that.** The
47
+ interface, the type and the enum each have their own; all three are raised for all `.ts`.
48
+ <!-- rt-when: *.ts -->
49
+
50
+ - **A watched source is named by a suffix.** The subject and the observable raised from it differ
51
+ at the place of use, not by jumping to the declaration.
52
+ <!-- rt-when: *.ts -->
53
+
54
+ - **The file name suffix finds the promised declaration inside.** The list of suffixes is closed:
55
+ a word not in it does not count as a suffix, and the rule does not judge such a file.
56
+ <!-- rt-when: *.ts -->
57
+
58
+ - **A file is no longer than 500 lines, and all lines count — blank ones and comments too.** A
59
+ file that does not fit on one screen whole is read in parts, and an edit in it is made without
60
+ seeing the rest. For `.ts` a linter rule holds this; harness files — scenarios and scripts — do
61
+ not reach it and are judged by a separate check of the tree. What had accumulated by the day of
62
+ enabling is listed by name, and a line leaves that list together with the split of its file.
63
+ <!-- rt-when: *.ts -->
64
+
65
+ - **A value from a closed set arrives as an enum `E<Name>`, not as a string or a number at the
66
+ place of use.** The key of a translatable field, a tab name, a cover slot, a record kind — all
67
+ these are sets: the form, the store, the markup and the draft comparison name them, and a value
68
+ written in place is neither found across the tree nor edited in one go. The enum lives in the
69
+ `util` layer of the domain that owns the set, and what is shared by several applications — in
70
+ the shared lib. A single address, a separator and a signature sign do not become an enum: they
71
+ have no closed set, and they are declared as a file constant with a telling name.
72
+ <!-- rt-when: *.ts -->
73
+
74
+ - **A set that must be complete is declared as a full record over the key type, not a partial
75
+ one.** A partial declaration makes a missing key lawful, and the shortage shows on the screen
76
+ rather than at the build. The set that must answer for every key of another one is declared by
77
+ that key type whole, and an unfilled key stops compiling. The type is silent about the value —
78
+ an empty string and a copy of the key pass it — so the completeness of values is held by a test
79
+ that walks the whole set, written by the same change as the declaration.
80
+ <!-- rt-when: *.ts -->
81
+
82
+ - **A type is taken from the package where it is declared.** An own copy of a foreign type
83
+ diverges from the original silently, and only one of them compiles.
84
+ <!-- rt-when: *.ts -->
85
+
86
+ - **A value declared by one side of an exchange is not recomputed by the other side but taken
87
+ from the first.** Two computations of one value diverge silently: the tree trait was computed by
88
+ both the send and the mark — each with its own copy — the copies diverged, and the mark never
89
+ once found a single record of its own. Both sides answered as usual all the while, and the miss
90
+ was found only from a third side: by reading what actually landed.
91
+ <!-- rt-when: *.ts -->
92
+
93
+ - **The two-step cast `as unknown as` is forbidden by a linter rule.** Instead — an honest type,
94
+ narrowing by a check or reading the field by shape (`Reflect.get`); a place where nothing else
95
+ works is marked with a spot disable and the reason on the same line.
96
+ <!-- rt-when: *.ts -->
97
+
98
+ - **A deprecation mark is set together with a walk over the consumers.** All rules of
99
+ `eslint-plugin-sonarjs` are raised to refusal at once, and a mark on a type paints every place
100
+ that still calls it: one `@deprecated` per file gave seventeen findings in foreign domains.
101
+ <!-- rt-when: *.ts -->
102
+
103
+ ## What of the law is not here
104
+
105
+ A one-step cast stays unchecked — that is `Q-CS-4` in the law: of seventy-six casts eight are
106
+ mandatory, and a blanket ban would refuse them.
107
+
108
+ Tests are taken out from under the ban entirely: a hand-written database double is an accepted
109
+ technique here, and the ban would have to be bypassed in each of the thirty-five.
110
+
111
+ The file-name rule judges a promise, not its absence: `menu.items.ts` and `sign-in.ts` do not
112
+ fall under it at all — that is `Q-CS-3` in the law. Of the two mapper forms accepted here — a
113
+ class on the front end and pure functions on the backend — the rule accepts both: it judges the
114
+ name, not the structure, and that there are two forms remains the question `Q-S-1` in the
115
+ shared-code law.
116
+
117
+ On `libs/api/**` and `apps/api/**` the rule applies whole, but the signal API and `inject` do
118
+ not belong there: that is NestJS with constructor DI.
119
+
120
+ ## Patterns
121
+
122
+ - `ts-procedure` — create a Connect procedure on the backend: class, decorator, right,
123
+ registration.
124
+
125
+ ## Pitfalls
126
+
127
+ - **Function complexity limits are asked from the plugin, not recalled.** Where the tree raised
128
+ the `sonarjs` rules at once, to refusal, the branching and nesting numbers come as plugin
129
+ defaults and are not written by a line of their own in the config: they change with its
130
+ version while looking like a tree agreement. Over one task they were asked three times, each
131
+ time anew, and twice named from memory — both times wrong.
132
+
133
+ ```bash
134
+ node -e 'const s = require("eslint-plugin-sonarjs");
135
+ for (const n of ["cyclomatic-complexity", "cognitive-complexity", "nested-control-flow"])
136
+ console.log(n, JSON.stringify(s.rules[n].meta.defaultOptions));'
137
+ ```
138
+
139
+ - **A decision is moved into a pure function of the util layer before the handler is written.** A
140
+ choice over a closed set becomes a table keyed by the enumeration, and a chain of field checks
141
+ becomes a list of checks. The handler calls them and keeps its branchings for its own flow: the
142
+ complexity linter refused one file twice because both lay right in the handler and spent its limit.
143
+ - **A file an edit pushed past the 500-line limit is split, not squeezed.** Joining comments or
144
+ dropping blank lines lowers the count and leaves the file just as long to read, and the next
145
+ edit hits the limit again. What the file does on its own moves out next to it: a mapping, a set of
146
+ derived values.
147
+
148
+ - A cast through `as Type` in a mapper is forbidden but watched by nothing: it accepts any value
149
+ and compiles. Instead — `this.typeCast`.
150
+ - An unused parameter is removed, not renamed: an underscore before the name hides the finding,
151
+ but the parameter stays in the signature.
152
+ - A Prisma aggregate is not annotated with its own type: its generated type is wider than the
153
+ query result, and the annotation lies.
154
+ - A linter rule of one's own is enabled together with converting everyone it catches: enabled on
155
+ top of what has accumulated, it gives a red run on files the edit did not touch.
156
+ - `#field` is visible only inside the class and is not accepted by `viewChild` — there the field
157
+ is declared `protected`.
158
+ - The linter does not count a logical assignment as a read of a private field: where `??=` is the
159
+ only access to the field, the unused-private-members rule answers "is defined but never used".
160
+ The field is live, and the message says the opposite, and whoever read the refusal goes to
161
+ remove the declaration. The replacement — an explicit early return and an assignment after it.
@@ -0,0 +1,128 @@
1
+ # How a skill is created — cold part
2
+
3
+ What the skill `write-a-skill` handed over when cut to its statements, every article whole.
4
+
5
+ A skill is what the agent loads before work and reads in full. Everything else follows: it is
6
+ short, it declares when to load it, and it does not retell what is already written in the
7
+ neighbouring one.
8
+
9
+ ## When to use
10
+
11
+ - A skill with no law above it is being created: a showcase, a generator, work with a
12
+ third-party service, a technique adopted in this tree.
13
+ - A skill has grown, and it is time to split it.
14
+ - The skill exists, but nobody loads it — the declaration needs fixing.
15
+
16
+ **A rule and a pattern do not go here.** A rule stands under a law, a pattern next to a rule,
17
+ and the shape of both is held by the pattern `spec-driven-rule`. A skill without a law is the
18
+ third case, and only it is here.
19
+
20
+ ## Order
21
+
22
+ 1. **Ask what is missing.** What work the skill covers, where people stumbled without it,
23
+ whether ready-made commands are needed or an order of actions is enough. A skill written
24
+ without this retells the tool's documentation — and the agent knows that anyway.
25
+ 2. **Write a draft.** One file. Additional ones — only when the first stops being readable in
26
+ full.
27
+ 3. **Show the owner.** A skill acts on all future sessions, and creating it silently is not
28
+ allowed.
29
+
30
+ ## When the owner hands over the text
31
+
32
+ A text the owner wrote is carried, not rewritten. Before the first split it lands whole in the
33
+ task folder: a request cut with `[…]` leaves nothing to compare against. Headings keep their case
34
+ and wording, sentences their words, code samples stay whole. What the shape of a skill forces —
35
+ the declaration, "When to use", a link in place of "above" — goes into a list of deviations, one
36
+ line each. Before the first commit a script compares every heading and paragraph of the source
37
+ with the skill files and prints what is missing or changed. A size limit the text does not fit
38
+ splits the text into files, never shortens it.
39
+
40
+ ## What is in the file
41
+
42
+ ```
43
+ <skill-name>/
44
+ ├── SKILL.md # mandatory, and usually the only one
45
+ ├── <SOMETHING>.md # a separate file — when SKILL.md stopped being readable in full
46
+ └── scripts/ # ready-made scripts, if the operation is deterministic
47
+ ```
48
+
49
+ The preamble between `---` is `name` and `description`, then the title and the sections. The
50
+ first section is "When to use": the agent decides by it, not by the title.
51
+
52
+ ## The declaration decides everything
53
+
54
+ `description` is **the only thing the agent sees** when it decides whether to load the skill or
55
+ not. It stands in the system prompt next to the descriptions of all the others, and the choice
56
+ goes by them.
57
+
58
+ It answers two questions: what the skill gives and when to load it. Write in the third person,
59
+ up to three hundred characters: the first sentence — what it does, the second — "Load when…", the
60
+ third — what is not in it and where to look for that. Where the tree has the descriptions check
61
+ laid out, it refuses a longer declaration.
62
+
63
+ ```
64
+ ✓ Creating a new skill — one with no law above it. Load when asked to create, write or
65
+ rewrite a skill. The shape of a rule and a pattern is not here — that is pattern
66
+ spec-driven-rule.
67
+
68
+ ✗ Helps with skills.
69
+ ```
70
+
71
+ The second declaration gives the agent no way to tell this skill from the neighbouring one —
72
+ and it loads neither.
73
+
74
+ The line "what is not here" is not decoration: there are dozens of skills in the tree, and half
75
+ of the wrong choices are the neighbour taken instead. Name it by name.
76
+
77
+ ## Ready-made commands instead of a description
78
+
79
+ A script is put next to the skill when the operation is deterministic — a check, bringing to a
80
+ form, parsing output. Such a thing is cheaper to call than to generate anew, and an error in it
81
+ is seen once, not in every generation.
82
+
83
+ An order of actions that depends on what was found does not become a script: it stays text.
84
+
85
+ ## When to split
86
+
87
+ Split when:
88
+
89
+ - the file stopped being readable in full — by experience, that is around a hundred lines;
90
+ - it holds two different subjects, and the second is needed once a month;
91
+ - ready-made code took more room than the explanation of what it is for.
92
+
93
+ Do not split for beauty: two files instead of one cost one extra hop at every reading, and a
94
+ link deeper than one level is not followed at all.
95
+
96
+ ## How a skill does harm
97
+
98
+ - **Retelling the tool's documentation.** The agent reads the skill at every piece of work; a
99
+ line it knows anyway pushes out the one it does not.
100
+ - **Duplicating a neighbour.** Two skills about one thing start to contradict each other, and
101
+ the first to notice is whoever has carried out both.
102
+ - **What goes stale together with the code.** A skill naming a version, a number or a file name
103
+ that is edited more often than once a quarter lies silently.
104
+ - **Length.** A skill of three screens stops being read in full and is read up to the first
105
+ familiar section.
106
+
107
+ ## Before handing it over
108
+
109
+ - [ ] the declaration has "Load when…" and names the neighbour not to load;
110
+ - [ ] the first section is "When to use";
111
+ - [ ] the file is readable in full in one sitting;
112
+ - [ ] not one line repeats the neighbouring skill;
113
+ - [ ] nothing that goes stale by itself: versions, numbers, dates;
114
+ - [ ] at least one ready-made sample, not only an explanation;
115
+ - [ ] links go one level deep, no deeper;
116
+ - [ ] where the tree has the descriptions check laid out, it is green before the first commit,
117
+ not only before the push.
118
+
119
+ ## So that the skill gets loaded
120
+
121
+ Writing it is not enough: a skill nobody opens does not act. A new skill is either named in the
122
+ gate map of this tree, or called by name by another skill or a role. A skill named nowhere stays
123
+ a decoration.
124
+
125
+ ## Pitfalls
126
+
127
+ The traps of this resource stand in its articles above. Each of them says what went wrong without
128
+ it.
@@ -7,97 +7,32 @@ description: Rule under the frontend-application law. Load when editing any Angu
7
7
 
8
8
  # Screen reactivity — how it works here
9
9
 
10
- Rule under the law `docs/constitution/frontend-application.md`. The law says what must be true; here
11
- — what it stands on in this tree. The layout of the component file — `component-structure`, styles —
12
- `styling-bem`, the browser environment — `platform-access`, the layer that talks to the server —
13
- `api-layer`. All five under one law.
14
-
15
- The rule is about the frontend: `libs/api/**` and `apps/api/**` are NestJS, with an environment of
16
- their own, and nothing listed applies there.
17
-
18
- ## What it is called here
19
-
20
- | In the law | Here |
21
- | ---------------------------- | ------------------------------------------------------------------------------------------------- |
22
- | state that recomputes itself | `signal()` and `computed()`; Angular without Zone.js (`provideZonelessChangeDetection()`) |
23
- | component input and output | `input()`, `input.required()`, `output()`; `viewChild()`, `contentChild()` and their plural pairs |
24
- | redraw on demand | `ChangeDetectionStrategy.OnPush` — on every component |
25
- | owner of a subscription | `takeUntilDestroyed(this.#destroyRef)` |
26
- | action source | a `Subject` with the suffix `Source` in the field name |
27
-
28
- ## Where it lives
29
-
30
- In this tree — the table in `implementation.md` next to it. Paths live there, not here: the rule
31
- travels between repositories, the layout does not, and a path named in the rule lies in the first
32
- tree that keeps its code differently.
33
-
34
- ## Flow
35
-
36
- The flow of editing an application class: where the executor starts, where the fork is between a
37
- derived value and an action, and how each branch ends.
38
-
39
- ```mermaid
40
- flowchart TD
41
- A[An application class is edited] --> B{What is declared}
42
- B -->|A value derived from another| C[computed: watches signals instead of calling a service]
43
- B -->|A user action| D[An action source with the suffix Source]
44
- B -->|List state| E[The shared list-store base is inherited]
45
- D --> F[The subscription is declared once at setup, not in a method]
46
- F --> G{The previous request is still running}
47
- G -->|The last response is needed| H[The stream switches]
48
- G -->|All are needed| I[The stream concatenates in order]
49
- H --> J[The subscription dies with its owner]
50
- I --> J
51
- C --> K[Done]
52
- E --> K
53
- J --> K
54
- ```
10
+ Rule under the law `docs/constitution/frontend-application.md`. Cold part: `pitfalls.md` — the whole
11
+ text, every section and article with its reasons.
55
12
 
56
13
  ## How the law applies here
57
14
 
58
- - **A subscription is declared once, not in the action method.** The method pushes a value into the
59
- source, and the long-lived subscription with `switchMap`, `exhaustMap` or `concatMap` is declared
60
- in the constructor, in `ngOnInit` or in a field initializer.
61
- - **A subscription dies with its owner.** `takeUntilDestroyed` goes into the same stream where the
62
- subscription is declared.
63
- - **An action source carries the suffix `Source` in its name.** Otherwise the stream and the value
64
- cannot be told apart in code, and `next` goes to the wrong place.
65
- - **A service call inside `computed` does not become a dependency.** A derived value watches only
66
- the signals it read, and an ordinary method is not a signal: the value stays what it was at the
67
- first computation. The current language, the current property, the current environment sign are
68
- read from a service signal — then the derived value rebuilds with their change. Neither the build
69
- nor the linter sees this.
70
- - **A list store inherits the shared base.** Records, page, order, filter conditions, search string
71
- and query config are already there, and the heir is left with four lines.
72
-
73
- ## What of the law is not here
74
-
75
- Neither `OnPush`, nor the signal input API, nor the absence of getters in components is checked by
76
- anything: `@Input()` and a getter compile and work, and the divergence is seen only by reading.
77
- Access to the browser environment is not checked either — that is `Q-FA-1` in the law.
78
-
79
- ## Patterns
80
-
81
- - `angular-patterns-state` — signals, derived values, service state, subscription.
15
+ - **A subscription is declared once, not in the action method.**
16
+ - **A subscription dies with its owner.**
17
+ - **An action source carries the suffix `Source` in its name.**
18
+ - **A service call inside `computed` does not become a dependency.**
19
+ - **A list store inherits the shared base.**
82
20
 
83
21
  ## Pitfalls
84
22
 
85
- - **A derived value is computed with `computed`, not with an effect.** An `effect` that puts a value
86
- into a signal is a manual recomputation, and sooner or later it lags behind the source.
87
- - **There are no getters in components.** A getter is recomputed on every redraw, and its cost is
88
- visible nowhere in the code.
23
+ - **A derived value is computed with `computed`, not with an effect.**
24
+ - **There are no getters in components.**
89
25
  - **A static attribute without a value sets the input to an empty string, not to the default.**
90
- `<ng-template someControl>` gives `''`, and an input with a meaningful default loses it silently.
91
- A signal input with an alias is no different from `@Input()` here. An input whose default means
92
- something coerces the empty string to it itself — a `transform` or a check in `computed`.
93
26
  - **A subscription on every method call gives no way to choose what to do with the previous
94
- request.** Fast presses give a race of responses, and the one that returned last wins, not the one
95
- pressed last.
96
- - The ban on a subscription in a method goes by the name `subscribe`, not by type: a call with that
97
- name on anything counts as a subscription, and `const fn = stream$.subscribe` without a call does
98
- not. Allowed are the constructor, `ngOnInit`, a field initializer and everything declared outside
99
- the class; forbidden are the other methods, including private ones with `#`, getters and
100
- `ngAfterViewInit`.
101
- - DOM initialization after the first render — `afterNextRender()`, not `ngAfterViewInit`: the site
102
- is served by the server, and the DOM appears there later.
103
- - Angular does not accept `viewChild` on a `#` field — the field is declared `protected`.
27
+ request.**
28
+
29
+ ## Names and techniques
30
+
31
+ - Every component is `OnPush`; inputs and outputs are `input()`, `output()`, `viewChild()`.
32
+ - Subscribe in the constructor, `ngOnInit` or a field initializer, with a `*Map` operator.
33
+ - End a subscription with `takeUntilDestroyed(this.#destroyRef)` in the same stream.
34
+ - Inside `computed`, read the service's signal, not its method.
35
+ - Not for `libs/api/**` and `apps/api/**`: NestJS.
36
+ - An input with a meaningful default coerces `''` back by `transform` or in `computed`.
37
+ - DOM setup after the first render is `afterNextRender()`, not `ngAfterViewInit`.
38
+ - `viewChild` cannot be a `#` field; declare it `protected`.
@@ -101,8 +101,8 @@ flowchart TD
101
101
 
102
102
  Nothing checks the session's time boundary: the command writes it into the head of the list, and
103
103
  the session ends at it or by the owner's word; a queue emptied earlier ends it with the list. A
104
- turn-exit guard that holds a working turn under an open epic does not know the boundary either:
105
- the command names the lawful last turn. The
104
+ turn-exit guard does not know the boundary either: it releases a working turn at the end of the
105
+ scenario or on the owner's stop word, and the command says so. The
106
106
  ban on what is visible from outside, the chain's base, a written default and a readiness command
107
107
  named before the stage are held the same way — by the rule, not by a guard: the push command is no
108
108
  different from the one made by day.