@rt-tools/agent-kit 0.27.0 → 0.29.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 (112) hide show
  1. package/assets/checks/board-epic-link.github.mjs +13 -1
  2. package/assets/checks/board-epic-plan.github.mjs +86 -0
  3. package/assets/checks/board-epics.github.mjs +12 -67
  4. package/assets/checks/board-pull-state.github.mjs +6 -11
  5. package/assets/checks/board-runs.github.mjs +102 -2
  6. package/assets/checks/check-board.github.mjs +63 -3
  7. package/assets/checks/check-glossary.mjs +10 -2
  8. package/assets/checks/check-lib-layers.mjs +24 -1
  9. package/assets/checks/check-reuse.mjs +26 -2
  10. package/assets/checks/check-specs.mjs +8 -1
  11. package/assets/checks/lib-boundaries.mjs +2 -2
  12. package/assets/checks/lib-common.mjs +46 -0
  13. package/assets/checks/lib-manifests.mjs +18 -13
  14. package/assets/checks/main-run.github.mjs +69 -0
  15. package/assets/checks/rt-kit-checks.config.mjs +21 -0
  16. package/assets/checks/signals.mjs +39 -5
  17. package/assets/checks/spec-anchors.mjs +48 -4
  18. package/assets/checks/spec-common.mjs +40 -6
  19. package/assets/checks/spec-contract.mjs +33 -7
  20. package/assets/checks/spec-scenarios.mjs +24 -1
  21. package/assets/checks/task-new.github.mjs +9 -3
  22. package/assets/checks/tree-assignment.mjs +169 -0
  23. package/assets/defaults/gate-map.sh +20 -5
  24. package/assets/defaults/project.sh +6 -0
  25. package/assets/hooks/dev-server-guard.sh +61 -32
  26. package/assets/hooks/end-conversation-guard.sh +59 -0
  27. package/assets/hooks/epic-over.sh +11 -2
  28. package/assets/hooks/exam-guard.sh +10 -10
  29. package/assets/hooks/git-guard-delivery-conflict.sh +53 -1
  30. package/assets/hooks/git-guard-delivery-draft.sh +7 -6
  31. package/assets/hooks/git-guard-delivery-epic.sh +7 -0
  32. package/assets/hooks/git-guard-delivery-tree.sh +50 -0
  33. package/assets/hooks/git-guard-delivery.sh +45 -24
  34. package/assets/hooks/git-guard-discard.sh +144 -0
  35. package/assets/hooks/git-guard-push-tests.sh +36 -16
  36. package/assets/hooks/git-guard-tree-assignment.sh +77 -0
  37. package/assets/hooks/hook-input.sh +8 -1
  38. package/assets/hooks/main-run-context.sh +45 -0
  39. package/assets/hooks/reuse-first-guard.sh +29 -4
  40. package/assets/hooks/rule-source-guard.sh +17 -2
  41. package/assets/hooks/skill-gate.sh +7 -0
  42. package/assets/hooks/sql-guard-write.sh +18 -2
  43. package/assets/hooks/tree-assignment-guard.sh +101 -0
  44. package/assets/hooks/turn-exit-epic.sh +110 -0
  45. package/assets/hooks/turn-exit-guard.sh +80 -82
  46. package/assets/hooks/turn-exit-patterns.sh +18 -10
  47. package/assets/hooks/turn-exit-verdict.sh +96 -0
  48. package/assets/laws/delivery.md +20 -6
  49. package/assets/laws/verifiability.md +22 -4
  50. package/assets/laws/work-conduct.md +4 -0
  51. package/assets/patterns/git-workflow-merge.md +13 -0
  52. package/assets/patterns/git-workflow-pr-body.github.md +156 -0
  53. package/assets/patterns/git-workflow-pr.github.md +42 -119
  54. package/assets/patterns/git-workflow-stack.md +38 -2
  55. package/assets/patterns/task-flow-close.md +66 -79
  56. package/assets/patterns/task-flow-resume.md +8 -0
  57. package/assets/patterns/ts-procedure.md +6 -0
  58. package/assets/pitfalls/git-workflow.github.md +44 -0
  59. package/assets/pitfalls/task-flow.md +25 -23
  60. package/assets/pitfalls/turn-conduct.md +18 -0
  61. package/assets/rules/browser-verification.md +8 -0
  62. package/assets/rules/deploy-flow.github.md +6 -0
  63. package/assets/rules/doc-style.md +9 -2
  64. package/assets/rules/git-workflow.azure.md +10 -0
  65. package/assets/rules/git-workflow.github.md +128 -130
  66. package/assets/rules/git-workflow.gitlab.md +10 -0
  67. package/assets/rules/lib-layers.md +11 -0
  68. package/assets/rules/spec-driven.md +10 -1
  69. package/assets/rules/task-flow.md +82 -79
  70. package/assets/rules/testing.md +7 -0
  71. package/assets/rules/turn-conduct.md +47 -28
  72. package/assets/samples/tasks/_template/plan.md +4 -1
  73. package/assets/samples/tasks/_template/progress.md +1 -1
  74. package/assets/skills/agent-kit.md +17 -4
  75. package/bin/agent-kit.d.ts.map +1 -1
  76. package/bin/agent-kit.js +3 -2
  77. package/bin/agent-kit.js.map +1 -1
  78. package/lib/cargo.d.ts +49 -1
  79. package/lib/cargo.d.ts.map +1 -1
  80. package/lib/cargo.js +9 -2
  81. package/lib/cargo.js.map +1 -1
  82. package/lib/commands.d.ts +1 -1
  83. package/lib/commands.d.ts.map +1 -1
  84. package/lib/commands.js +59 -2
  85. package/lib/commands.js.map +1 -1
  86. package/lib/hooks-map.d.ts +5 -0
  87. package/lib/hooks-map.d.ts.map +1 -1
  88. package/lib/hooks-map.js +9 -3
  89. package/lib/hooks-map.js.map +1 -1
  90. package/lib/observations-cargo.d.ts +20 -0
  91. package/lib/observations-cargo.d.ts.map +1 -0
  92. package/lib/observations-cargo.js +88 -0
  93. package/lib/observations-cargo.js.map +1 -0
  94. package/lib/plan.d.ts +2 -0
  95. package/lib/plan.d.ts.map +1 -1
  96. package/lib/plan.js +8 -0
  97. package/lib/plan.js.map +1 -1
  98. package/lib/proposals.d.ts +25 -0
  99. package/lib/proposals.d.ts.map +1 -1
  100. package/lib/proposals.js +43 -1
  101. package/lib/proposals.js.map +1 -1
  102. package/lib/shipment.d.ts +8 -20
  103. package/lib/shipment.d.ts.map +1 -1
  104. package/lib/shipment.js +30 -50
  105. package/lib/shipment.js.map +1 -1
  106. package/lib/tree-mark.d.ts +17 -0
  107. package/lib/tree-mark.d.ts.map +1 -0
  108. package/lib/tree-mark.js +41 -0
  109. package/lib/tree-mark.js.map +1 -0
  110. package/package.json +1 -1
  111. package/rt-tools-agent-kit-0.29.0.tgz +0 -0
  112. package/rt-tools-agent-kit-0.27.0.tgz +0 -0
@@ -52,8 +52,38 @@ gh pr create --base <предыдущая ветка> --title '[<КЛЮЧ>-<но
52
52
  ```
53
53
 
54
54
  Neither the main branch nor the epic branch is set as the base here: the review then shows the own
55
- edit mixed with all under it. The host retargets a merged lower one itself — the base of its heir
56
- becomes the base of the merged one, that is, the epic branch.
55
+ edit mixed with all under it.
56
+
57
+ **The base of the heir is retargeted by hand, by the same motion that merges the lower one.** The
58
+ host does it itself only when the merged branch is deleted; a branch is usually left after the
59
+ merge, and then the heir keeps standing on it — the upper PR merges into the neighbour and not into
60
+ the epic branch. A chain of nine went through this: the base moved by itself in none of the nine.
61
+
62
+ ```bash
63
+ # right after the lower PR is merged — the base of the heir moves to where the lower one stood
64
+ gh api repos/<владелец>/<дерево>/pulls/<номер наследника> -X PATCH -f base=<основание нижней>
65
+ ```
66
+
67
+ From the browser the same is done by editing the PR heading, where the base stands as a dropdown.
68
+ The miss turns red nowhere: the PR looks merged, and the work is not where it was meant to go.
69
+
70
+ **The `Closes` line of a chain PR is read by nobody at the host.** The host closes a task only
71
+ on a merge into the default branch; a chain PR merges into the neighbour, and the task stays
72
+ open with the column lagging the work. Which of the two the tree has — a pipeline of its own that
73
+ closes the task on such a merge, or the hand — stands in the PR body by the sample of the pattern
74
+ `git-workflow-pr-body`. The tasks of a chain are asked after every merge, not assumed closed:
75
+
76
+ ```bash
77
+ # right after a merge — the task of the merged PR, then the rest of the chain
78
+ gh issue view <номер> --json state --jq .state
79
+ # still open — closed by hand, with a comment naming the PR that merged
80
+ gh issue comment <номер> --body 'Влита в ветку <основание> — PR #<номер PR>.'
81
+ gh issue close <номер> --reason completed
82
+ ```
83
+
84
+ This is the cleanup step after the last merge of the chain: the branches are listed, the tasks
85
+ of the chain are asked, and what is still open is closed with the comment. A task closed in
86
+ silence, without the PR named, cannot be told from one closed by mistake.
57
87
 
58
88
  The merge order stands in every PR body as the line "stands on #<number>, merge after it": the
59
89
  owner merges by the list, and branch kinship is invisible in the list.
@@ -79,6 +109,12 @@ gh pr list --state open --json number,headRefName,baseRefName \
79
109
  upward.
80
110
  - **A chain is not merged from the middle.** One merged out of order drags along everything
81
111
  under it — and the review of that work never happens.
112
+ - **A branch whose base was merged past it is looked for by hand.** The host counts the lower
113
+ branch merged, closes its PR and offers nothing about the upper ones: their edits are in main,
114
+ their own commits on top are not, and nobody is told. Such a branch is alive only while
115
+ somebody remembers it — two pieces of work stayed in branches like that and were found by a
116
+ list of branches, not by a list of PRs. After a merge out of order the branches of the chain
117
+ are listed and each is either rebased onto main anew or closed by word.
82
118
  - **Ready branches are not hoarded.** A chain does not cancel that the unit of work is a merged
83
119
  PR: it only makes safe the length that has piled up anyway.
84
120
 
@@ -2,7 +2,7 @@
2
2
  name: task-flow-close
3
3
  kind: pattern
4
4
  rule: task-flow
5
- description: Pattern of rule task-flow. Load when bringing work to readiness — merging the product agreement into the domain spec, bringing the domain texts up to date with what was done, opening the PR as a draft and leaving draft. Taking the task folder apart — pattern task-flow-archive.
5
+ description: Pattern of rule task-flow. Load when bringing work to readiness — merging the product agreement into the domain spec, bringing the domain texts up to date with what was done, opening the PR as a draft or ready by its base and leaving draft.
6
6
  ---
7
7
 
8
8
  # Closing the work
@@ -18,7 +18,7 @@ Pattern of the rule `task-flow`. What must be true meanwhile — the law
18
18
  commit.
19
19
  - The domain texts are brought up to what the work did.
20
20
  - The gate suite is run whole — after the merge and the texts, not before them.
21
- - The task folder is taken apart, and the PR opens as a draft.
21
+ - The task folder is taken apart, and the PR opens — a draft or ready, by the base.
22
22
  - The run on the head is green, and the draft is lifted from the PR.
23
23
 
24
24
  Taking the folder itself apart is not here — that is pattern `task-flow-archive`. It stands between
@@ -90,20 +90,25 @@ and all the rules need not be read.
90
90
  | an application law and a general law | **the file is not edited**: the owner gets the text of the article, the work goes on without it |
91
91
  | the product overview document | a new feature is appended as a line; the line about a lifted one is edited |
92
92
 
93
- What is stale lies most often in three places, and all three are read whole:
93
+ What is stale lies most often in four places, and all four are read whole:
94
94
 
95
95
  - **"What of the law is not here" in a rule.** The spec audit does not read this section, so an
96
96
  untruth lives there as long as it likes. For three tasks in a row a rule wrote that the tree
97
97
  lacked the needed mechanism — and it was there;
98
98
  - **"What is not included" in a domain spec.** A task boundary was written there, and the task is
99
99
  long closed;
100
- - **"Where it lives" in a rule.** Files move, the paths in the table stay.
100
+ - **"Where it lives" in a rule.** Files move, the paths in the table stay;
101
+ - **A statement of a companion about what the tree does not have.** It is written when the subject
102
+ does not exist yet and lives on words about emptiness — no domain specs here, not a scenario
103
+ created, six records. One piece of work creates the subject, and nobody rereads the companion.
101
104
 
102
105
  ```bash
103
106
  # where the rule and the specs speak of what the work touched
104
107
  grep -rn -i "<слово работы>" <каталог правил>/*/SKILL.md docs/specs/*/spec.md
105
108
  # the section nothing audits — read whole by eye
106
109
  grep -rn -A3 "What of the law is not here" <каталог правил>/<правило>/SKILL.md
110
+ # the companions: statements about emptiness and counts, checked by nothing
111
+ grep -rn -iE "(нет|ни одного|пока|всего|записей) [0-9]*" <каталог правил>/*/implementation.md
107
112
  ```
108
113
 
109
114
  **A law is not edited in the branch.** An article of a law is an agreement with the owner, and the
@@ -112,16 +117,18 @@ the progress and into the PR body. The law file is edited after the answer. The
112
117
  application laws: payments, locales and access are the same agreement, only about this application.
113
118
 
114
119
  What was done at this step is written into the PR body: what was re-read, what was changed, and if
115
- nothing was changed — why. The form of the section — pattern `git-workflow-pr`.
120
+ nothing was changed — why. The form of the section — pattern `git-workflow-pr-body`.
116
121
 
117
122
  **Next move:** the updated texts are committed, and in the same turn the task folder is taken apart
118
123
  — by the last commit of the branch, pattern `task-flow-archive`.
119
124
 
120
125
  ## State `папка-разобрана`: the work is handed in by a PR
121
126
 
122
- The folder is taken apart and pushed, the work is cleaned up behind — the PR opens as a draft. From
123
- this minute the work waits for the owner, not for the machine, and the session does not end on it:
124
- the next task is taken by the same move, pattern `task-flow-resume`.
127
+ The folder is taken apart and pushed, the work is cleaned up behind — and the PR opens. Whether it
128
+ opens as a draft is decided by the bases the pipeline wakes for: where a run comes, a draft, and it
129
+ is lifted on the green; where none comes, the PR opens ready and the push gate is the check behind
130
+ it. From this minute the work waits for the owner, not for the machine, and the session does not end
131
+ on it: the next task is taken by the same move, pattern `task-flow-resume`.
125
132
 
126
133
  **Readiness is measured by what is told, not by what has passed.** A check the executor cannot pass
127
134
  for a reason outside the work — a refused permission, an unreachable environment, a key held by a
@@ -129,8 +136,9 @@ person — does not cancel readiness: it goes into "Not run" and into "Remaining
129
136
  reason. Silence about it reads as passed.
130
137
 
131
138
  There is no state on disk any more — the progress left with the folder. This is the price of the
132
- cleanup standing before the PR. The tail of four steps — open the PR, wait for the run, lift the
133
- draft, ask to merge — is held by this pattern, not by a line in a file. The guard counts the work
139
+ cleanup standing before the PR. The tail — open the PR, wait for the run, lift the draft, ask to
140
+ merge, and without a run the first and the last of those — is held by this pattern, not by a line in
141
+ a file. The guard counts the work
134
142
  handed in by the branch history: a folder removed by its commit is the sign.
135
143
 
136
144
  ### The section on the remaining step is written in the PR body, not appended later
@@ -157,10 +165,19 @@ The draft is lifted — the section is rewritten by the same call that edits the
157
165
  Не осталось: прогон зелёный, черновик снят. Можно вливать.
158
166
  ```
159
167
 
168
+ Where the pipeline does not wake for this base, the PR opens with the section already in this
169
+ second form: nothing is left to wait for, and the check standing behind it is the push gate.
170
+
171
+ ```markdown
172
+ ## Оставшийся шаг
173
+
174
+ Не осталось: набор проверок перед push зелёный, CI на эту базу не ходит. Можно вливать.
175
+ ```
176
+
160
177
  The section heading and the words of both samples are written in the language of the PR, not the
161
178
  language of the pattern. The samples are set in the language of this tree's PRs and are carried over
162
179
  whole — the order of thoughts, the wording and the heading, the heading last. It looks like part of
163
- the form, not part of the text. The same holds for the two messages to the owner below: they are
180
+ the form, not part of the text. The same holds for the messages to the owner below: they are
164
181
  samples of **what** is said, not of which words.
165
182
 
166
183
  The section is neither left empty nor removed altogether: a missing section and "no steps left" read
@@ -174,14 +191,21 @@ PR's language, and the package knows no foreign words; unnamed, the section is n
174
191
  The work queue audit still does not read the body: the miss is caught at the minute of opening, that
175
192
  is, where one call still fixes it.
176
193
 
194
+ An open PR is re-read by the account that will merge it, not by the one that opened it. The host's
195
+ answer to the author says only that the call went through: the right to open and the visibility of
196
+ what was opened are different things, and the second is checked only from the reader's side. An
197
+ invisible PR gives itself away by nothing — it is in the answer to its author, it carries labels,
198
+ and the owner's review queue is simply empty.
199
+
177
200
  The difference between the section and the spoken word is one, and it is all. The owner reads a
178
201
  message only if they return to the conversation, and the section they see where they look when
179
202
  pressing the button.
180
203
 
181
- ### Two messages to the owner, and the run between them
204
+ ### The messages to the owner, and the run between them
182
205
 
183
- Both are mandatory, and the order between them is one. Neither replaces the other: the first says
184
- the work is handed in and what it waits for, the second — that it is ready.
206
+ Where the pipeline wakes for this base both are mandatory, and the order between them is one.
207
+ Neither replaces the other: the first says the work is handed in and what it waits for, the second
208
+ — that it is ready. Where no run comes, there is nothing between them, and they are written as one.
185
209
 
186
210
  Right after the PR opens:
187
211
 
@@ -191,6 +215,15 @@ PR #<номер> открыт черновиком, папка задачи уж
191
215
  попрошу тебя влить. Следующая задача уже взята: #<номер>, ветка <имя ветки>.
192
216
  ```
193
217
 
218
+ Где CI на эту базу не просыпается, оба сообщения складываются в одно — его пишут тем же ходом,
219
+ каким открыли PR:
220
+
221
+ ```
222
+ PR #<номер> открыт и готов к слиянию: набор проверок перед push зелёный, папка задачи разобрана.
223
+ CI на PR в ветку эпика у нас не ходит — влей его, пожалуйста. Следующая задача уже взята:
224
+ #<номер>, ветка <имя ветки>.
225
+ ```
226
+
194
227
  The last line names what is taken, not an intent to take, and that is no figure of speech. A sample
195
228
  that ends with a promise is carried out as a promise: the session says the last line and ends the
196
229
  turn on it. The message looks complete, and nobody sees the emptiness behind it, neither the owner
@@ -216,47 +249,6 @@ merging by a green page.
216
249
  Between the two messages the executor does not wait: the work is handed in for review, and the next
217
250
  task is taken by the same move. They return to the PR by the turn that reads the end of the run.
218
251
 
219
- ### The work state stands as a section in the PR body
220
-
221
- Saying it aloud is not enough, and the requirement does not hold on that alone. A message lives
222
- until the next message, and the merge decision is taken on the PR page — there is no conversation
223
- there at all. The section stands last and says exactly one thing: is anything left before the merge.
224
-
225
- ```markdown
226
- ## Оставшийся шаг
227
-
228
- Папка задачи разобрана коммитом `<sha>` — за работой убрано. Осталось дождаться прогона и снять
229
- черновик; до этого кнопка слияния заблокирована хостингом.
230
- ```
231
-
232
- The draft is lifted — the section is rewritten by the same call that edits the body:
233
-
234
- ```markdown
235
- ## Оставшийся шаг
236
-
237
- Не осталось: прогон зелёный, черновик снят. Можно вливать.
238
- ```
239
-
240
- The section heading and the words of both samples are written in the language of the PR, not the
241
- language of the pattern. The samples are set in the language of this tree's PRs and are carried over
242
- whole — the order of thoughts, the wording and the heading, the heading last. It looks like part of
243
- the form, not part of the text. The same holds for the two messages to the owner above: they are
244
- samples of **what** is said, not of which words.
245
-
246
- The section is neither left empty nor removed altogether: a missing section and "no steps left" read
247
- the same and mean different things. The full sample of a PR body — in the pattern for creating a
248
- commit and a PR, if the tree laid it out.
249
-
250
- An open PR is re-read by the account that will merge it, not by the one that opened it. The host's
251
- answer to the author says only that the call went through: the right to open and the visibility of
252
- what was opened are different things, and the second is checked only from the reader's side. An
253
- invisible PR gives itself away by nothing — it is in the answer to its author, it carries labels,
254
- and the owner's review queue is simply empty.
255
-
256
- There is nothing to check this by machine: no audit reads the request body, and the host asks about
257
- nothing but the title. The owner reads a message only if they return to the conversation, and the
258
- section they see where they look when pressing the button.
259
-
260
252
  ### An edit after remarks goes without a plan on disk
261
253
 
262
254
  The review returned remarks, or the run went red — it is fixed in the same branch. The plan is no
@@ -267,7 +259,7 @@ A merge left in the working copy is either pushed in the same turn or not made
267
259
  sees the old state and decides by it.
268
260
 
269
261
  **Next move:** the run is green and there are no remarks — the draft is lifted, and the owner is
270
- told the work is ready.
262
+ told the work is ready. Where no run comes, the same move follows the fix itself.
271
263
 
272
264
  ## State `задачи-эпика-кончились`: the epic is handed in by a request into the main branch
273
265
 
@@ -296,33 +288,28 @@ owner is asked to merge — by the number, in one turn.
296
288
 
297
289
  ## Common misses
298
290
 
299
- - **The texts are edited before the folder is taken apart:** the list of what to re-read lies in the
300
- plan, and the taking-apart deletes it.
301
- - **A decisions entry repeating a rule's article word for word is no reason next to it.** Such an
302
- entry leaves whole, even if the section goes empty; a reason the article does not state is
303
- appended to the article.
291
+ - **The texts are edited before the folder is taken apart:** the list lies in the plan, which the
292
+ taking-apart deletes.
293
+ - **A decisions entry repeating a rule's article word for word is no reason next to it.** It leaves
294
+ whole even if the section empties; a reason the article lacks is appended to it.
304
295
  - **The PR body stays older than the taking-apart.** The taking-apart is the last commit of the
305
- branch, and it makes untrue everything the body promised to do before the merge. The reviewer
306
- reads the list of what is left as what is left, so the body is edited in the same turn.
307
- - **A rule statement is lifted together with its binding line.** The link goes by text: a line
308
- without a statement and a statement without a line redden the spec audit alike.
309
- - **The section "What of the law is not here" is read by eye, grep does not help here.** The word to
310
- search for is not the one expected. A rule referred to an article the law does not have, and by
311
- the word of its theme that line was found — while the untruth was elsewhere.
296
+ branch and makes untrue everything the body promised to do before the merge; it is edited in the
297
+ same turn.
298
+ - **A rule statement is lifted together with its binding line.** The link goes by text, and either
299
+ half alone reddens the spec audit.
300
+ - **The section "What of the law is not here" is read by eye, grep does not help here.** The word
301
+ to search for is not the one expected, and the untruth is not where the theme word leads.
312
302
  - **"Audited" cannot be said without opening the file.** The rule is read whole: a stale statement
313
- stands among true ones and differs from them by nothing.
314
- - **The merge is not done after the merge into main.** Main then holds a "proposed, not yet rolled
315
- out" section with what has been working for a month.
303
+ stands among true ones and differs by nothing.
304
+ - **The merge is not done after the merge into main:** main then holds a "proposed, not rolled out" section with what has worked for a month.
316
305
  - **Scenario numbers are not renumbered at the merge.** The id is the key of the link to the tests.
317
306
  - **"What is not included" is read whole after the merge, not appended to.** The feature's
318
307
  boundaries land next to the domain's, and the line "this section does not exist yet" becomes a lie
319
- by the very work that merges it. The spec audit
320
- does not look there.
308
+ by the very work that merges it. The spec audit does not look there.
321
309
  - **One's own line of the work queue audit is found by name** — by the task number and the branch
322
- name. The audit answers for the whole tree, and one closing had eight of someone else's folders
323
- against one of its own.
310
+ name: the audit answers for the whole tree.
324
311
  - **The pair "size label — line in the epic plan" breaks from both sides.** A task on the trail of a
325
- closed one inherits the label without the line about sessions. A closed epic takes the line away
326
- from everyone who carries it.
327
- - **A rule without a binding does not enter the domain spec.** There is no code carrying it out — so
328
- it is an intent, and its place is the domain's open questions.
312
+ closed one inherits the label without the line about sessions, and a closed epic takes the line
313
+ away from everyone who carries it.
314
+ - **A rule without a binding does not enter the domain spec.** Nothing carries it out, so it is an
315
+ intent, and its place is the domain's open questions.
@@ -118,6 +118,14 @@ owner — exactly the retelling all of this was set up to cancel:
118
118
  - **PR:** #1396, ждёт разбора · отвечено 3 замечания из 5 · не сделано: снятие черновика
119
119
  ```
120
120
 
121
+ The waiting line carries the owner's standing word about a stop, quoted in « », when they gave
122
+ one. The exit guard reads their word from this line, not a retelling; a line without a quote
123
+ releases nothing. The quote holds until the owner cancels it, and the line is rewritten then.
124
+
125
+ ```markdown
126
+ - **Waiting for the owner:** «эпик чата пока откладываем» — сказано вчера, работа стоит до его слова.
127
+ ```
128
+
121
129
  With the PR opened the state becomes `работа-отдана`, and its mandatory action is different — the
122
130
  next task, not waiting for review. By that minute there is nothing left to declare it with on disk:
123
131
  the progress left with the folder, and the tail of the work is led by pattern `task-flow-close`.
@@ -59,6 +59,12 @@ procedures in one by one through `router.rpc`.
59
59
 
60
60
  - A third suffix: `*.rpc.ts` and `*.connect.ts` are the previous names, they leave together with
61
61
  the last domain moved, and no new such files are created.
62
+ - A right written in the mark by a constant: the contract audit reads the mark as text and does not
63
+ find at all what was taken out into a name. Openness and the right are written as a string at the
64
+ place of the declaration — even where a constant with that very value is declared next to it.
65
+ - A sample call of the mark written as an explanation next to the real mark: the parser takes the
66
+ first match in the file, and the right from the comment goes into the audit. A sample belongs in
67
+ the pattern, not in the file of the procedure.
62
68
  - `inject()` in a procedure class: on the backend dependencies go through the constructor.
63
69
  - The body in a closure inside the router registration: a test cannot reach it.
64
70
  - A procedure without an access declaration: the application does not start.
@@ -131,6 +131,37 @@ Here moved the cases, numbers and rejected remedies that used to stand next to t
131
131
  articles. No edit decision rests on them: they are for whoever investigates a miss or argues with
132
132
  a guard.
133
133
 
134
+ - **A PR opened by another account is lawful while its reviewer is somebody else.** The clash the
135
+ guard judges is that of author and reviewer, not the account name: the machine account is named
136
+ aloud rather than demanded.
137
+
138
+ - **A chain branched from the epic branch twice diverges at the first merge.** The rest of the
139
+ branches then stand on a base that is gone.
140
+
141
+ - **While the handed-over conflicts, a person cannot merge it.** New work adds one more branch to
142
+ the same queue instead of fixing that.
143
+
144
+ - **A flag between the verb and `-b` is the same branch creation.** The guard used to judge only the
145
+ form without a flag.
146
+
147
+ - **A printed task number means only that the call went through.** The board is a separate service,
148
+ and a task lands on it only when added.
149
+
150
+ - **A temporary directory will not do for a runner's paths.** The package store lives there.
151
+
152
+ - **A pipeline step printed next to the push instead of refusing it is skipped.** A warning reads as
153
+ permission.
154
+
155
+ - **A write limit is told from exhaustion by the limits answer.** There it is zero.
156
+
157
+ - **At branch creation the column is not asked.** Nothing has moved it yet.
158
+
159
+ - **A fresh tip is given time before the audit counts it as running no checks.**
160
+
161
+ - **A machine signature sends git to the key agent.** A locked agent brings the whole suite down.
162
+
163
+ - **A run pushed out of the queue has zero steps.** That is what tells it from a failed one.
164
+
134
165
  - **A refusal at the merge remains the second line.** A person merges as soon as they see green,
135
166
  and the second line is simply never reached.
136
167
 
@@ -273,3 +304,16 @@ A client login as the machine account hijacks every neighbouring session on the
273
304
  neighbour with rights to one repository reads its task as nonexistent, and from inside the tree
274
305
  the miss is invisible — the answer is an ordinary "not found". That is why the account is
275
306
  substituted per call and never made active, even when the active one is already right.
307
+
308
+ - **What closes the card of an epic.** The merge of its request closes the card by the host's rule
309
+ on a closed item: nothing moves it to the closing column by hand. The two moves of the card that
310
+ the rule demands are the first one and the one at the opening of the request.
311
+ - **Why a neighbouring runner rewrites a ready-made step's default.** On a machine with several
312
+ runners any path from the home directory is shared, so the version a neighbouring run installs
313
+ lands under the same path and is picked up by the next run of any project.
314
+ - **By which tier the freshness of main's tip is asked.** By the second one — the same technique as
315
+ the task state. The first tier works offline: the local ref answers whether the branch lags what
316
+ lies in the tree, the remote one — whether the ref itself went stale.
317
+ - **What the second tier of the delivery guard cannot ask without a network.** Task, column,
318
+ assignee and review live at the hosting: with no network and no token that tier is skipped, and
319
+ the skip is silent.
@@ -50,11 +50,9 @@ The rule is `task-flow`; the articles that hold the law stand there.
50
50
  the node was moved to another place in the markup. The owner rejected both and named the needed
51
51
  way himself. Ask before the edit, do not show the measurement after.
52
52
  - **A path offered to a person is judged by the number of their steps and by what they must have to
53
- walk it.** From the code side an option looks cheap — "fewer paths", "the launch line is
54
- untouched" — while for a person it costs a visit to the server: issuing a token stood as
55
- recommended, and for it the owner would have had to go over ssh into a running container. The
56
- price is named from the side of the one who will walk it; a retelling of the order without it the
57
- owner reads as approval.
53
+ walk it.** From the code side an option looks cheap while for a person it costs a visit to the
54
+ server. The price is named from the side of the one who will walk it; a retelling of the order
55
+ without it the owner reads as approval.
58
56
  - **The epic on the theme is read before the layout is decided.** The epic plan holds decisions that
59
57
  survived a dozen tasks, and code exploration does not find them: a withdrawn decision leaves no
60
58
  trace in the tree. A domain created by the generator and torn down half an hour later stood in the
@@ -115,11 +113,9 @@ The rule is `task-flow`; the articles that hold the law stand there.
115
113
  moved nothing.
116
114
 
117
115
  - **One's own temporary files go outside the code tree — otherwise their removal is judged as an
118
- edit of the application.** The write sign counts a deletion as a write, and that is on purpose:
119
- something removed without a plan leaves no trace. The sign has nothing to tell one's own temporary
120
- directory from a domain directory — both paths sit under the same root — and the guard demands a
121
- plan for cleaning up a draft. The directory is named by the tree's profile, and it lies outside
122
- the code tree.
116
+ edit of the application.** The write sign counts a deletion as a write on purpose, and it has
117
+ nothing to tell one's own temporary directory from a domain directory. The directory is named by
118
+ the tree's profile, and it lies outside the code tree.
123
119
 
124
120
  - **A task body written ahead of the plan names the method, and the method goes stale before the
125
121
  defect.** A task of a series is created weeks before it is taken; by that day the proposed method
@@ -133,11 +129,10 @@ The rule is `task-flow`; the articles that hold the law stand there.
133
129
  passed is written into the PR body, where the reviewer reads it.
134
130
 
135
131
  - **The owner's word about how something is arranged is a framing, not a decision.** What they named
136
- usually already lives in the tree under that very word: it has a name on screen, a section in the
137
- spec and a field in the model, and checking costs one search. Interpreted by the nearest code, the
138
- word looks like a fulfilled request right up to acceptance: the edit is merged by then, and the
139
- owner got work in someone else's console instead of a field in the application. Did the reading
140
- diverge from the tree — the owner is asked, and asked before the edit.
132
+ usually already lives in the tree under that very word — a name on screen, a spec section, a model
133
+ field — and checking costs one search. Interpreted by the nearest code, the word looks like a
134
+ fulfilled request right up to acceptance. Did the reading diverge — the owner is asked before the
135
+ edit.
141
136
 
142
137
  - **An instruction to work by the flow is an instruction to do its steps, including those that
143
138
  change history.** Marking a stage, pushing the branch and opening the PR are prescribed by the
@@ -161,18 +156,16 @@ The rule is `task-flow`; the articles that hold the law stand there.
161
156
  not catch this loss: the work loses to neighbouring assignments within the hour, and the week
162
157
  passes afterwards.
163
158
  - **A stack of branches costs more, and its price is named.** A PR into a neighbouring branch does
164
- not start the pipeline declared for the main base; merging the base branch closes the next PR as
165
- merged although its edits are not in main; a conflict from someone else's merge is resolved anew
166
- in every branch of the stack. An arrangement chosen silently collects the whole price and shows
167
- none of its parts. Tasks that follow one another in code lawfully live as branches from main, as
168
- long as the next edit does not rest on the code of the previous one.
159
+ not start the pipeline declared for the main base; merging the base closes the next PR as merged
160
+ although its edits are not in main; a conflict is resolved anew in every branch of the stack.
161
+ Tasks that follow one another in code lawfully live as branches from main, as long as the next
162
+ edit does not rest on the code of the previous one.
169
163
 
170
164
  - **A find in the middle of a stage feels like part of the current work when the subject is
171
165
  adjacent.** It has no sign of its own: before the first edit the find is not in the tree, and
172
166
  after it the files of neighbouring work do not differ from one's own. So the plan's list of exit
173
- conditions is checked, not the feeling. Once such an edit was stopped by an unrelated refusal by
174
- file kind, not by a check against the plan: without it, it would have gone into someone else's
175
- branch, and the two pieces of work would have had no separate rollback.
167
+ conditions is checked, not the feeling — otherwise the two pieces of work lose their separate
168
+ rollback.
176
169
 
177
170
  ## Executor behaviour — from incident analyses
178
171
 
@@ -260,3 +253,12 @@ they are for whoever investigates a miss or argues with a guard.
260
253
  is two motions, and done by half it leaves the task in two sets at once: the epic looks unclosed
261
254
  with all its work done. The total is written where the set is edited: postponed, it is written
262
255
  from memory of how many tasks there were, not how many remain.
256
+ - **A run of the readiness command while writing the plan costs a minute** and shows the cause of
257
+ the line in the command's own output, where a guess shows nothing.
258
+ - **Without the sub-issue link the makeup of an epic is assembled by hand**, from the list of open
259
+ cards, one card at a time.
260
+ - **The task order says nothing about how the branches stand**, and the numbers of the created
261
+ tasks return to the order section by the same edit.
262
+ - **A finished epic is named to the owner by the same turn that takes work outside it.**
263
+ - **A retelling of a sample in the grill and in the epic plan is not the sample.**
264
+ - **The review of closed work ends with an edit of the rules layer or a proposal outward.**
@@ -103,3 +103,21 @@ The rule is `turn-conduct`; the articles that hold the law stand there.
103
103
  phrase: the guard's general refusal returned the turn, the executor made one step and ended
104
104
  the turn with the same phrase. Now the guard names it by name; the lawful exit when a decision
105
105
  is needed is a question through the tool.
106
+ - **"Turn exits": the price of a question that holds independent work.** A session stood a night
107
+ 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
109
+ file; a bypassed guard lifts the requirement from the whole tree and says nothing. Not memory
110
+ alone holds this — the guards also judge the shell command that writes the file.
111
+ - **"The owner's answer is sought in their own messages": what the conversation guard does not
112
+ see.** It counts loading a rule and searching it as reading, and a message leaves no trace. A
113
+ question that answers itself in the owner's words devalues those asked next to it.
114
+ - **"A taken task is not yet begun work": what the guard's tier covers.** A branch without a task
115
+ number is not under it; an assembled folder template lifts it.
116
+ - **"Exploration does not end a turn": why it passes for work.** It looks like work better than
117
+ anything else: commands, exact numbers, checkable answers.
118
+ - **"A reply to the owner is not an action": why the report takes the place of the work.** The
119
+ reverse order — work, report, end — stands behind every analysed stop: a report is a form of
120
+ completeness, and an appended summary reads as the turn's end the more convincingly the more was
121
+ done.
122
+ - **"A statement about the tree's state is watched by the statement guard": why a word has its own
123
+ kind of command.** A general sign "there was a command" would confirm one thing by another.
@@ -152,6 +152,14 @@ flowchart TD
152
152
  advance are checked against the implementation the same way: work done by retelling the reference
153
153
  in words diverges from it unnoticed.
154
154
 
155
+ - **Work that carries a look over from a sample is accepted by a frame of one's own screen next to
156
+ the sample's frame.** Names carried into the markup are the technique, not the result: a green
157
+ build, linters and tests say nothing about a field clipped mid-line. Every remade screen is
158
+ looked at by the executor and shown to the owner; a screen not opened since the edit counts as
159
+ unchecked. A measurement set assembled by the author under their own edit confirms nothing
160
+ either — it holds what was fixed in that hour; the set is taken from what the work is accepted
161
+ by and is written before the edit.
162
+
155
163
  A conclusion about layout is backed by a number: "looks fine" is never a check result. Nothing
156
164
  guards this — how to measure is covered in pattern `browser-verification-measure`.
157
165
 
@@ -115,6 +115,12 @@ flowchart TD
115
115
  - **A PR is checked before the merge by the same pipeline as the main branch.** Checks and image
116
116
  builds go on the `pull_request` event, the rollout does not: it is held by the main-branch
117
117
  condition on its step, and a PR image does not leave for the registry.
118
+ - **Which PRs the pipeline wakes for is named by the tree, and it sets the order of handing in.**
119
+ A base filter is not a detail of the settings: a PR the pipeline does not wake for has nothing
120
+ to wait for, and a draft on it costs a locked button and an extra turn. A tree with a single
121
+ runner pays a whole run for every PR into an epic branch, and pays it for checks the push gate
122
+ has already run on the same machine; a tree with runners to spare buys the earlier refusal. The
123
+ answer is written in the pipeline file next to the trigger, together with what is lost by it.
118
124
  - **A divergence of production from the main branch is visible by the work queue audit.** A task
119
125
  leaves the queue by a merge, but a merge is not yet production: a failed or unstarted rollout
120
126
  touches neither the task nor its column, and there is nowhere to notice it. The audit asks for
@@ -174,6 +174,12 @@ flowchart TD
174
174
  the run turned red for something other than the branch's change.
175
175
  <!-- rt-when: *.md -->
176
176
 
177
+ - **The removal by expiry is not carried by whichever branch pushed first.** The check stands in the
178
+ gate of every branch, so the cleanup lands in the first work to reach a push and travels to the
179
+ reviewer inside an edit that has nothing to do with it. Either the cleanup is work of its own with
180
+ a task of its own, or the check refuses the run and not the push.
181
+ <!-- rt-when: *.md -->
182
+
177
183
  - **A link to a record of the past in a live text lives exactly until the record's expiry.** The
178
184
  address check does not read the archive at all, so the dead link turns red not there but in the
179
185
  text that referenced it. A live text names the decision in words, not by the record's address.
@@ -222,8 +228,9 @@ written in.
222
228
  the tree's documents are written in English: a session reads them, and English text costs it a
223
229
  fifth less with the same articles. A task in the queue, a PR description, a commit body and a
224
230
  chat reply are written in the owner's language: the owner reads them, and the rules layer does
225
- not. A text written in the other side's language is a miss of the same kind as a layer word in
226
- a task: its addressee will not read it.
231
+ not. So are an incident analysis and a record of closed work: the owner reads them as the account
232
+ of what happened. A text written in the other side's language is a miss of the same kind as a
233
+ layer word in a task: its addressee will not read it.
227
234
  <!-- rt-when: любой текст -->
228
235
 
229
236
  ## What of the law is not here
@@ -99,6 +99,16 @@ flowchart TD
99
99
  draft; the question is asked in the PR itself. The check pipeline does not run on a draft by
100
100
  default — until the draft is lifted it stays silent, and that silence is not taken for a green
101
101
  run.
102
+ - **`--hard` is not taken to drop a commit — that is `--soft`.** `reset --hard`, `checkout --
103
+ <path>`, `restore <path>` and `clean -f` erase what is not committed. On a dirty tree the guard
104
+ refuses and names the files; the bypass is `# discard: <reason>` in the command.
105
+ - **The working tree is emptied before the PR opens, not after.** `git status --porcelain` is asked
106
+ in the same turn as the opening: what is uncommitted goes to the host by a commit before it, or
107
+ is named. A push after the opening moves the tip past the green run the body names, and for that
108
+ stretch the PR invites merging a tip nothing has checked.
109
+ - **A push into a branch that has an open PR is followed by rereading its body.** The statement
110
+ about a green run names the tip by its sha, and moving the tip makes it false in silence: no check
111
+ reads a PR body.
102
112
  - **The draft is lifted by a separate call — `az repos pr update --id <номер> --draft false`.** With
103
113
  it the executor answers for readiness: checks passed, no rework left, the work matches the work
104
114
  item. Lifting the draft and asking to merge are one turn, not two days.