@rt-tools/agent-kit 0.29.4 → 0.30.1

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 (81) hide show
  1. package/assets/checks/board-epics.github.mjs +17 -2
  2. package/assets/checks/board-folders.mjs +40 -1
  3. package/assets/checks/board-runs.github.mjs +7 -2
  4. package/assets/checks/board.github.mjs +23 -3
  5. package/assets/checks/check-board.github.mjs +2 -1
  6. package/assets/checks/check-prose-style.mjs +6 -2
  7. package/assets/checks/spec-anchors.mjs +5 -1
  8. package/assets/checks/task-new-queue.github.mjs +51 -0
  9. package/assets/checks/task-new.github.mjs +4 -41
  10. package/assets/defaults/gate-map.sh +4 -1
  11. package/assets/defaults/shell.sh +6 -2
  12. package/assets/hooks/claim-guard.sh +42 -13
  13. package/assets/hooks/epic-stop-guard.sh +31 -1
  14. package/assets/hooks/git-guard-delivery-epic.sh +11 -1
  15. package/assets/hooks/git-guard-delivery-tree.sh +29 -0
  16. package/assets/hooks/git-guard-delivery.sh +6 -6
  17. package/assets/hooks/git-guard-push-tests.sh +10 -1
  18. package/assets/hooks/grill-gate-bypass.sh +61 -0
  19. package/assets/hooks/grill-gate.sh +144 -4
  20. package/assets/hooks/proposal-guard.sh +3 -0
  21. package/assets/hooks/turn-exit-guard.sh +3 -3
  22. package/assets/hooks/turn-exit-verdict.sh +18 -1
  23. package/assets/hooks/write-targets.sh +69 -3
  24. package/assets/patterns/admin-nav-item.md +2 -1
  25. package/assets/patterns/browser-verification-stand.md +3 -0
  26. package/assets/patterns/doc-style-human.md +21 -0
  27. package/assets/patterns/git-workflow-commit.azure.md +4 -0
  28. package/assets/patterns/git-workflow-commit.github.md +15 -0
  29. package/assets/patterns/git-workflow-commit.gitlab.md +4 -0
  30. package/assets/patterns/git-workflow-docker.md +4 -2
  31. package/assets/patterns/git-workflow-merge.md +6 -0
  32. package/assets/patterns/git-workflow-pr-body.github.md +4 -0
  33. package/assets/patterns/queue-audit-read.github.md +47 -0
  34. package/assets/patterns/spec-driven-domain.md +12 -0
  35. package/assets/patterns/spec-driven-rule.md +8 -2
  36. package/assets/patterns/task-flow-close.md +11 -9
  37. package/assets/patterns/task-flow-start.md +21 -22
  38. package/assets/patterns/testing-e2e.md +16 -2
  39. package/assets/patterns/testing-unit.md +4 -0
  40. package/assets/pitfalls/doc-style.md +8 -0
  41. package/assets/pitfalls/styling-bem.md +11 -0
  42. package/assets/pitfalls/turn-conduct.md +14 -0
  43. package/assets/rules/browser-verification.md +7 -5
  44. package/assets/rules/component-structure.md +8 -0
  45. package/assets/rules/deploy-flow.github.md +28 -2
  46. package/assets/rules/doc-style.md +20 -3
  47. package/assets/rules/git-workflow.azure.md +4 -0
  48. package/assets/rules/git-workflow.github.md +8 -25
  49. package/assets/rules/git-workflow.gitlab.md +4 -0
  50. package/assets/rules/lib-layers.md +2 -2
  51. package/assets/rules/queue-audit.github.md +77 -0
  52. package/assets/rules/reuse-first.md +7 -0
  53. package/assets/rules/shared-code.md +3 -0
  54. package/assets/rules/spec-driven.md +3 -1
  55. package/assets/rules/status-report.md +6 -0
  56. package/assets/rules/task-flow.md +18 -21
  57. package/assets/rules/testing.md +7 -1
  58. package/assets/rules/turn-conduct.md +27 -26
  59. package/lib/commands.d.ts.map +1 -1
  60. package/lib/commands.js +12 -2
  61. package/lib/commands.js.map +1 -1
  62. package/lib/hooks-map.d.ts +14 -0
  63. package/lib/hooks-map.d.ts.map +1 -1
  64. package/lib/hooks-map.js +55 -8
  65. package/lib/hooks-map.js.map +1 -1
  66. package/lib/proposals.d.ts.map +1 -1
  67. package/lib/proposals.js +9 -1
  68. package/lib/proposals.js.map +1 -1
  69. package/lib/ship.d.ts +9 -0
  70. package/lib/ship.d.ts.map +1 -1
  71. package/lib/ship.js +16 -0
  72. package/lib/ship.js.map +1 -1
  73. package/lib/shipment.d.ts.map +1 -1
  74. package/lib/shipment.js +30 -29
  75. package/lib/shipment.js.map +1 -1
  76. package/lib/sync.d.ts +9 -0
  77. package/lib/sync.d.ts.map +1 -1
  78. package/lib/sync.js +6 -1
  79. package/lib/sync.js.map +1 -1
  80. package/package.json +1 -1
  81. package/rt-tools-agent-kit-0.29.4.tgz +0 -0
@@ -0,0 +1,47 @@
1
+ ---
2
+ name: queue-audit-read
3
+ kind: pattern
4
+ rule: queue-audit
5
+ description: Pattern of rule queue-audit. Load when the work queue audit has printed lines — running it, and the move that answers each kind of line.
6
+ ---
7
+
8
+ # Reading the work queue audit
9
+
10
+ Pattern of the rule `queue-audit`. What must be true — the law `docs/constitution/delivery.md`.
11
+
12
+ ## When to use
13
+
14
+ - The audit printed lines before a push, on taking a task or after a known merge.
15
+ - A line names a PR or a task, and the move for it is not obvious from the line.
16
+
17
+ ## Running it
18
+
19
+ ```bash
20
+ npm run check:board
21
+ ```
22
+
23
+ Exit code 0 and no lines — the queue matches. Exit code 1 — every line is a discrepancy, and each
24
+ names its own move. The summary lines at the end are not discrepancies: they count what was read
25
+ and what was filtered out.
26
+
27
+ ## What answers which line
28
+
29
+ | The line says | The move |
30
+ | ---------------------------------------------------- | ------------------------------------------------------------- |
31
+ | a PR is open and its task is not in review | `npm run task:move -- <номер> in-review` |
32
+ | a task is in review and has no open PR | open the PR, or move the task back to work |
33
+ | the branch lags behind its base by N commits | merge the base into the branch and push |
34
+ | the PR conflicts with the main branch | merge the main branch in, resolve, push |
35
+ | no run on the tip | a new commit, or close and reopen the PR as the line says |
36
+ | a run pushed out of the queue | read that run's output, then rerun it — both commands are in the line |
37
+ | a draft with a green run | `gh pr ready <номер>` |
38
+ | the PR has no reviewer | request the reviewer by a REST call |
39
+ | the last run of the main branch is red | fix the main branch before new work |
40
+ | a task and its epic name each other one way only | link the task as a sub-issue, or name it in the epic plan |
41
+
42
+ ## Common misses
43
+
44
+ - **A rerun instead of the move.** The second run prints the same line: a line is answered by its
45
+ move.
46
+ - **A summary line read as a discrepancy.** The count of PRs with a base other than the main branch
47
+ is not a discrepancy: it names what the host does not do for them.
@@ -38,6 +38,12 @@ has a scenario prefix of its own, and the audit gives no spec a second prefix: t
38
38
  such work part into two numberings — one per spec they will merge into. The plan names both, and
39
39
  they merge apart, each into its own spec.
40
40
 
41
+ The place of an agreement is chosen by the length of the spec it will merge into, at the moment it
42
+ is written. The domain spec plus the agreement's rules is measured against the tree's size limit;
43
+ one that would cross it is written from the start as the agreement of a new subdomain, with its
44
+ own scenario prefix. Measured only at the merge, the overrun moves a finished agreement to a new
45
+ place and a new prefix, together with the test titles that carry its numbers.
46
+
41
47
  ## Mandatory sections
42
48
 
43
49
  `## Зачем` · `## Терминология` with the subsection `### Как это называется в интерфейсе` ·
@@ -155,6 +161,12 @@ command's name is given by the rule's companion.
155
161
  4. `npm run check:specs` — before the push.
156
162
  5. Acceptance goes by the scenarios, not by a retelling of the edit.
157
163
 
164
+ Between steps 2 and 3 `npm run check:specs` is red by design, not by mistake. A scenario without a
165
+ test it only lists, but a rule without a binding and a contract row without a procedure it refuses,
166
+ and their bindings name code that is not written yet. So a stage that edits the spec names as its
167
+ readiness sign the refusal list itself — only the new rules unbound, only the new scenarios under
168
+ "no test" — and not exit 0. Exit 0 is the sign of the stage that writes the bound code.
169
+
158
170
  A rule promising a result a person sees is confirmed on the running application, not by
159
171
  inference from the call graph. Reading confirms headings, the link to bindings and the shape of
160
172
  data; a rule with nothing to confirm it on leaves as an open question and is not written as a
@@ -122,8 +122,10 @@ description: Pattern of rule git-workflow. Load for … Not for … — that is
122
122
  ```
123
123
 
124
124
  Sections: `## When to use` · ready-made code · `## Common misses`. A pattern has no binding:
125
- the check does not audit it, because there is nothing to check ready-made code against but
126
- itself.
125
+ there is nothing to check ready-made code against but itself. Its set of sections is checked all
126
+ the same — the suite of the package that ships the texts refuses a pattern without `## When to
127
+ use` and without the section of misses. A consumer tree does not see that refusal; the tree with
128
+ the package sources sees it in the set before a push.
127
129
 
128
130
  ## How the article itself is written
129
131
 
@@ -246,6 +248,10 @@ reference — it changes how a story is written.
246
248
  unbound, and the spec audit is silent about it, because it looks for the line in the table.
247
249
  The line's place is the same as its statement's in the rule: the order of both sides is kept
248
250
  the same, otherwise the statement and its binding stop being found by one another.
251
+ - A binding line came out as one sentence of sixty words. The statement ends at its full stop
252
+ inside the bold, and everything after it — the dash, the anchor, the dash and the explanation —
253
+ is one more sentence to the wording check. The explanation after the anchor is written in
254
+ sentences of its own: the line stays one, the long sentence goes.
249
255
  - The `description` does not say when **not** to load the pattern — the neighbouring pattern of
250
256
  the same rule becomes indistinguishable.
251
257
  - A block of ready-made code was accepted by its look, not by checking against the declaration.
@@ -117,7 +117,9 @@ the progress and into the PR body. The law file is edited after the answer. The
117
117
  application laws: payments, locales and access are the same agreement, only about this application.
118
118
 
119
119
  What was done at this step is written into the PR body: what was re-read, what was changed, and if
120
- nothing was changed — why. The form of the section — pattern `git-workflow-pr-body`.
120
+ nothing was changed — why. The form of the section — pattern `git-workflow-pr-body`. The body fits
121
+ the host's length limit — Azure DevOps takes 4000 characters — so the report is one line per text,
122
+ not prose: a body over the limit refuses the opening call, and it gets cut in a hurry.
121
123
 
122
124
  **Next move:** the updated texts are committed, and in the same turn the task folder is taken apart
123
125
  — by the last commit of the branch, pattern `task-flow-archive`.
@@ -175,19 +177,19 @@ second form: nothing is left to wait for, and the check standing behind it is th
175
177
  ```
176
178
 
177
179
  The section heading and the words of both samples are written in the language of the PR, not the
178
- language of the pattern. The samples are set in the language of this tree's PRs and are carried over
179
- whole — the order of thoughts, the wording and the heading, the heading last. It looks like part of
180
- the form, not part of the text. The same holds for the messages to the owner below: they are
181
- samples of **what** is said, not of which words.
180
+ language of the pattern. The heading is named by the tree in its profile, `RT_PULL_BODY_SECTION`,
181
+ and is taken from there, not from the samples above. What is carried over whole is the order of
182
+ thoughts, not the words. The same holds for the messages to the owner below: they are samples of
183
+ **what** is said, not of which words.
182
184
 
183
185
  The section is neither left empty nor removed altogether: a missing section and "no steps left" read
184
186
  the same and mean different things. The full sample of a PR body — in the pattern for creating a
185
187
  commit and a PR, if the tree laid it out.
186
188
 
187
- The delivery guard holds this, not the writer's memory: it reads the body straight from the opening
188
- command — passed as an argument or as a file — and refuses the call together with everything else
189
- that does not match. The heading sample is named by the tree, because the heading is written in the
190
- PR's language, and the package knows no foreign words; unnamed, the section is not judged at all.
189
+ Where the tree laid out the delivery guard, it reads the body straight from the opening command —
190
+ passed as an argument or as a file — and refuses the call together with everything else that does
191
+ not match. It judges the section by the heading the profile names; unnamed, the section is not
192
+ judged at all. Without the guard the section is held only by whoever writes the body.
191
193
  The work queue audit still does not read the body: the miss is caught at the minute of opening, that
192
194
  is, where one call still fixes it.
193
195
 
@@ -39,25 +39,22 @@ lives only in that session's record: a search over them by the theme's word cost
39
39
  is found is written into the tree in the same turn — into the epic plan if it links tasks, into the
40
40
  progress if it concerns one.
41
41
 
42
- Exploration that found nothing is no permission to ask: the places not yet searched — the epic plan,
43
- the archive, the records of past sessions — are reached first. "Not found in such a place" speaks of
44
- the place, not of the tree, and the question names where the search went.
45
-
46
- Exploration ends with command output, not with a feeling. Before the first question the executor
47
- knows how the repository is arranged (the root memo), what lies in the directory at hand (`ls`), and
48
- whether something is written on the theme (a search over the documentation and the rules).
49
-
50
- Exploration over a created task ends with a reproduced symptom, not a found file. The task body
51
- describes the tree on the day of creation, and exploration by the names from the body confirms only
52
- that the files are in place: a task that has lapsed cannot be told from a live one. Before the first
53
- edit the exploration repeats what the task complains about — calls the procedure, reads the reply,
54
- runs the check that stayed silent. The symptom did not reproduce — the task is closed as lapsed, and
55
- that is a lawful outcome.
56
-
57
- A tree named as a sample is read as a layout whole — by walking the directories two levels deep —
58
- and only then come the questions about techniques. The answer to "how is this done here" gives one
59
- folder, and generalised into a map of the tree it lies: the neighbouring family of directories is
60
- left out, and the owner finds the loss.
42
+ Exploration that found nothing is no permission to ask: the epic plan, the archive and past sessions
43
+ are reached first, and the question names where the search went.
44
+
45
+ Exploration ends with command output, not with a feeling: the root memo, `ls` of the directory at
46
+ hand, a search over the documentation and the rules.
47
+
48
+ A member added beside a list, not into it, is named at every reader of that list: each place that
49
+ walks the list knows only its members. The readers are found by a search of the list's symbol and go
50
+ into the agreement as places to touch; one the search did not return is found after the code.
51
+
52
+ Exploration over a created task ends with a reproduced symptom, not a found file: the body describes
53
+ the tree on the day of creation. Before the first edit the exploration repeats what the task
54
+ complains about; a symptom that did not reproduce closes the task as lapsed, and that is lawful.
55
+
56
+ A tree named as a sample is read as a layout whole — walking the directories two levels deep —
57
+ before questions about techniques: one folder generalised into a map leaves out its neighbours.
61
58
 
62
59
  What was inferred is marked right in the list, together with what confirms it.
63
60
 
@@ -65,9 +62,8 @@ What was inferred is marked right in the list, together with what confirms it.
65
62
  in the trees recorded as samples of its layout. The one found is read whole: it closes the questions
66
63
  about the structure — the source of the numbers, the rows, the screen, the storage.
67
64
 
68
- The six questions are asked minus those the exploration answered: instead of a question with a ready
69
- answer, the grill gets the line "taking such-and-such answer, here is where from". The sign is one —
70
- whether the answer is in the tree; "the task seems clear" is no sign in either direction.
65
+ The six questions are asked minus those the exploration answered; the grill gets the line "taking
66
+ such-and-such answer, here is where from". The sign is whether the answer is in the tree.
71
67
 
72
68
  **Next move:** the findings land in the grill, and in the same turn the first of the six questions
73
69
  goes to the owner. The exploration ended — the state stayed the same, so did the turn.
@@ -285,6 +281,9 @@ Work that does not touch `apps/**` and `libs/**` needs no agreement:
285
281
 
286
282
  An empty reason is not accepted.
287
283
 
284
+ The Specs line of the footprint is filled by the command that names the spec of a resource, run on
285
+ the files of the Code line, not from memory.
286
+
288
287
  **Next move:** under the header the task footprint and the stages are written, the plan is
289
288
  committed, and in the same turn the first stage begins.
290
289
 
@@ -2,7 +2,7 @@
2
2
  name: testing-e2e
3
3
  kind: pattern
4
4
  rule: testing
5
- description: Pattern of rule testing. Load when editing and running end-to-end tests in apps/site-e2e and apps/admin-e2e — what an end-to-end test closes, ready-made run commands, a stand from the production build behind real nginx, test switches. Not for unit tests — that is pattern testing-unit.
5
+ description: Pattern of rule testing. Load when editing and running end-to-end tests in any end-to-end suite of the tree (apps/*-e2e) — what an end-to-end test closes, ready-made run commands, a stand from the production build behind real nginx, test switches. Not for unit tests — that is pattern testing-unit.
6
6
  ---
7
7
 
8
8
  # End-to-end tests
@@ -31,7 +31,8 @@ An action that adds a node to the page — sending a message, adding a row, atta
31
31
  done at least twice in one test. The first time the page holds only the node the action needs; the
32
32
  second time it also holds the one the first action added, and a query that matched by a shared mark
33
33
  now finds the wrong node. One send per test passes against a handler that breaks on every second
34
- send.
34
+ send. A toast is such a node too: the one from the previous action is still on screen, so the toast
35
+ is matched by the text only its own action puts out, not by a broad pattern.
35
36
 
36
37
  Elements are found by `qa-dataid`: classes change together with the layout, and a search by role
37
38
  and text breaks on translations.
@@ -128,8 +129,17 @@ The same holds for a popup that stays open after its item is chosen. It covers t
128
129
  click aimed at a button under it goes to the popup: the screen answers as if the button had not
129
130
  been pressed at all. The popup is closed and its absence awaited by the same pair of lines.
130
131
 
132
+ A screen is ready when its data is, not when its heading is. A heading, a month title or a toolbar
133
+ comes from the template and is drawn before the request answers. A check or a frame that waits for
134
+ it reads an empty grid. The wait names a node that exists only with data: a row, a booking, a
135
+ selected record.
136
+
131
137
  ## Common misses
132
138
 
139
+ - **A search on the stand matches by substring, and older seeds stay.** `editor@example.com` also
140
+ found `stand-editor@…` and `e2e-editor@…` left by earlier runs, and four old tests failed at
141
+ once. People a suite creates carry the suite prefix in the whole value (`e2e-<suite>-…`), and the
142
+ test searches by that whole value, not by a common part.
133
143
  - **A service limit per client address counts the whole suite as one client.** Every test goes from
134
144
  one machine, so a limit on requests per minute is reached by the sum of the tests, not by any one
135
145
  of them. Adding tests pushes old ones into refusal (429): a run of one spec stays green, and only
@@ -164,3 +174,7 @@ been pressed at all. The popup is closed and its absence awaited by the same pai
164
174
  - **A build directory removed under a mounted volume leaves the container with an empty root:** the
165
175
  stand answers 403 to everything, and all tests fail at once. After
166
176
  `rm -rf dist/apps/<application>` the container is recreated.
177
+ - **The service name of a direct call is copied from the contract.** A service is often named by
178
+ its audience, not by its record. A guessed name gets "not found" for the whole path, and that
179
+ reads as a broken procedure or a missing right. The name is found in the contract declarations
180
+ before the first call.
@@ -129,6 +129,10 @@ nothing.
129
129
 
130
130
  - A lib without its own `vitest.config.mts`: `nx test <project>` passes green without running a
131
131
  single file. Before writing the first test in a lib, check that the config is next to it.
132
+ - **The compiler import goes into the harness file, not into the spec.** A lib that renders nothing
133
+ still pulls the framework when its test imports a barrel with a framework service, and the first
134
+ import fails on JIT. The import goes into the file named in `setupFiles` of the lib's run config:
135
+ in the spec the linter moves it below its neighbours, and the test turns red only in the full set.
132
136
  - Substituting a module (`vi.mock`) would hide what the test is created for — which call went to
133
137
  the database and in what order. The double is written by hand.
134
138
  - Do not create your own helpers for assertions: `expect(...).toBe(...)` and `.toEqual(...)`
@@ -92,6 +92,14 @@ The rule is `doc-style`; the articles that hold the law stand there.
92
92
  shows it, usually later, by the headings of the assembled text. Text is edited with the edit
93
93
  tool; and if a replacement is called anyway, the place it promised to change is reread right
94
94
  after.
95
+ - **A one-liner in the shell is one sentence to the wording check.** The check takes the command
96
+ body whole: the pattern, the replacement and the path stand on one line with no full stop
97
+ between them. Three one-line replacements in a document were refused as sentences of 44, 46
98
+ and 88 words, while the text they wrote was short.
99
+ - **A stream-editor rollback without a line number reaches lines nobody meant.** A test made red
100
+ on purpose was rolled back by a replacement by pattern, the pattern matched neighbouring checks
101
+ too, and they were committed without a run. A rollback goes by the edit tool or by the line
102
+ number, then `git diff` shows what it touched, and any edit of a test is followed by a new run.
95
103
  - **A number obtained from a command is not yet a measurement.** The requirement to recompute a
96
104
  number by a command is met literally — there was a command — and nobody asks whether it
97
105
  measured the number's subject. Output is false in different ways and silently: `grep -E` with
@@ -37,6 +37,10 @@ The rule is `styling-bem`; the articles that hold the law stand there.
37
37
  - **`justify-content: center` in a flex container with `overflow-x` pushes the first items beyond
38
38
  zero scroll** — there is no way to scroll to them. In scrollable strips —
39
39
  `justify-content: safe center`.
40
+ - **A strip with `overflow-x` inside a flex column collapses to a few pixels.** Any `overflow` other
41
+ than `visible` makes the item a scroll container, and its automatic minimum height becomes zero.
42
+ When the column runs out of height, the strip yields first. The strip gets `flex-shrink: 0`. The
43
+ measurement is the strip's height against its button's, at three widths.
40
44
  - **Do not put `scrollbar-gutter: stable` on the root:** the reserve for the scrollbar narrows the
41
45
  containing block for `position: fixed`, and a popup aligned to the right edge lands a reserve's
42
46
  width to the left of its button.
@@ -49,3 +53,10 @@ The rule is `styling-bem`; the articles that hold the law stand there.
49
53
  be reset.
50
54
  - **stylelint disable comments are not placed.** Selectors are combined by nesting.
51
55
  - **Moving styles adds no new declarations** — only existing ones are relocated.
56
+ - **A moved rule keeps the reach it had, not the one its comment names.** Sass `&` repeats the
57
+ whole parent selector, `:host-context(...)` included. `:host-context(.x) .block { &__a &__b {} }`
58
+ compiles to two `:host-context` in one selector. After the encapsulation shim, `__a` no longer
59
+ limits `__b`, and the rule reaches every `__b`. Before a move, the reach is read from the
60
+ compiled selector in the build output. After the move, frames of the affected screens are
61
+ compared byte for byte with frames taken before the edit. Build, lint and the class check stay
62
+ green, and the eye misses a change of one font step.
@@ -132,6 +132,20 @@ The rule is `turn-conduct`; the articles that hold the law stand there.
132
132
  a wait. Now the last tool of the turn is judged: the agent tool or a command sent to the
133
133
  background standing last gives the turn back, and work after the launch releases it.
134
134
 
135
+ - **"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.
138
+ - **"A plan stage is declared closed only after its check command": why from memory is not enough.**
139
+ A session later, a stage marked from memory cannot be told from one checked.
140
+ - **"A statement about the tree's state": why the previous turn does not count.** Yesterday's output
141
+ says nothing of today's tree.
142
+ - **"The actions the executor does not do without the owner's word": how an unnamed list leaks.**
143
+ "Do what the plan needs" became permission to push and edit shared documents along with the
144
+ commit.
145
+ - **"The sign of irreversibility is taken from the list": why an argument on top cancels it.** The
146
+ argument "it goes outside and cannot be rolled back" always comes, the list only when read; from
147
+ outside it looks like caution, not a skipped step.
148
+
135
149
  ## A single read of the run state taken for watching it
136
150
 
137
151
  22 September 2026. An epic was handed over whole: nine tasks merged, the request of the epic opened
@@ -91,6 +91,10 @@ flowchart TD
91
91
  answers it. The sign that closes the screen arrives with the substituted profile. Asking a person
92
92
  to do a step of the check — type a password, open a tab, press a button — means a wrongly chosen
93
93
  path, not a lack of rights on the executor's side.
94
+ - **A move of people into a sign-in system is checked by signing in as a moved person.** The stand
95
+ holds the same profile fields as the real people have after the move: a person moved with only a
96
+ mail and rights lacks what the system requires of a profile, and is sent to a step the form check
97
+ never reaches. Requests to the form, the API and the sign-in settings walk no part of that path.
94
98
  - **Changing the number of elements in a container is a layout edit.** It touches no styles, so it
95
99
  reads as a markup edit, and the check shrinks to response codes. The pages answer in every locale,
96
100
  and the document is already twice the viewport width. It is closed by a measurement — document
@@ -102,6 +106,9 @@ flowchart TD
102
106
  edge and clipping without a sign show only where the content does not fit its place. On a short
103
107
  value all three look fine. The value for measurement is the extreme one — what the node can get
104
108
  from a real consumer, not what stands in the example.
109
+ - **The longest value is set for every node that shares the line, not only for the edited one.** An
110
+ element next to a neighbour takes its place from the neighbour's length. A long neighbour wraps
111
+ the element to a new line, and the element lands at its start. Its own short value hides that.
105
112
  - **A ready-made kit piece taken for values of another size is measured, not looked at.** A
106
113
  component that lived where values are short gets a value four times longer in its new place. It
107
114
  behaves differently while staying the same code. The test does not see this at all: clipping by
@@ -194,11 +201,6 @@ frontend-application law: such access compiles and fails only when the page is s
194
201
  the new stand, and the list of what was left is named to the owner at the end of the session —
195
202
  only they can kill those. Not named so, stands pile up across sessions and hold connections to the
196
203
  storage.
197
- - **A measurement is also taken by an end-to-end test, not only by the browser driver.** Window
198
- width, node position and the document going sideways are read there by the same computed values.
199
- The viewport is set for the test suite, and the result repeats on every run — unlike a manual
200
- measurement, which lives exactly one session. The driver stays where an unfamiliar screen is
201
- looked at, not where a known number is confirmed.
202
204
  - **A statement about the production build is made from the build itself, not from the branch.**
203
205
  Between the branch and what is served to the reader stands the image build. It substitutes
204
206
  environment values, cuts out the unused and renames symbols. "The build holds this" is checked by
@@ -86,7 +86,15 @@ environment either — that is `Q-FA-1` in the law.
86
86
  catalogue.
87
87
  - **`qa-dataid` does not replace `aria-label` and roles:** accessibility separately, the anchor
88
88
  separately. And it is not removed when the layout is edited — the specs hang on it.
89
+ - **Markup is edited by the edit tool, not by a script.** The anchor guard judges a shell command
90
+ by its whole body: the old markup in a find-and-replace pair counts as written, and an edit that
91
+ adds every anchor is refused for the lines it removes. The article in full is in the rule
92
+ `doc-style`.
89
93
  - What the kit has ready is not written anew: own markup with `role="alert"`, `<table>`,
90
94
  `role="dialog"`, `role="tablist"` or `role="tooltip"` means that `<prefix>-message`,
91
95
  `<prefix>-table`, `<prefix>-dialog`, `<prefix>-tabs` or `<prefix>-tooltip` were bypassed. The rule
92
96
  whole — `reuse-first`.
97
+ - **A kit icon name is copied from its file, and an unknown name draws an empty frame.** The kit
98
+ draws the frame of an icon it did not find and says nothing. The build, the lint and the tests
99
+ stay green, and the owner sees an empty square. Before the edit the name is looked up among the
100
+ kit icon files: some names carry the `ico-` prefix and most do not.
@@ -72,7 +72,30 @@ flowchart TD
72
72
  image says only that the build passed: the migrate step, the storage login, the startup order
73
73
  and whether every container has enough put inside are visible from one launch of the stack. On
74
74
  one's own machine that costs one command; on the node it costs a rollout that can no longer be
75
- cancelled — the migrate failure surfaces as a container log on the node.
75
+ cancelled — the migrate failure surfaces as a container log on the node. The same launch is made
76
+ before a merge that lifts packages without a line of code changed: the stack passes an unset
77
+ variable as an empty string, and a new package version may stop accepting what the old one took.
78
+ - **A variable read by several procedures is turned on first on a stand from the production
79
+ build.** On the stand every reader passes; on production one edit says nothing about the
80
+ neighbours, and a variable left empty there turns into addresses built from nothing.
81
+ - **The name production is served under is confirmed by a live answer of that name.** `curl -s -o
82
+ /dev/null -w '%{http_code} %{redirect_url}\n' https://<name>/`: a redirect to a foreign address
83
+ means the name is dead, and the rollout does not go by it. Three files of one epoch agree by
84
+ common origin, not by being right. When a domain moves, the old name is searched across the whole
85
+ tree, not only the paths of one's own part.
86
+ - **Data the screens need that migrations do not create is a step of the rollout.** A seed run once
87
+ by hand heals one storage; a new or restored one stays empty, and a screen that shows an empty
88
+ list for an empty answer looks the same as an unreachable server. The step runs on every rollout
89
+ and is safe to repeat: found records are not overwritten. After the first rollout that depends on
90
+ seeded data the count of records is read on production.
91
+ - **A move of the pipeline to another runner is closed by a search for the labels across all
92
+ workflows.** A flow left on the host is named in the task with its reason. An order worded by a
93
+ set — "all", "every" — is closed against the list of that set, not against the member that got in
94
+ the way first. A rollout with production keys from a developer machine needs a separate word of
95
+ the owner.
96
+ - **The epic plan is checked line by line against the pitfalls of the rollout step before the merge
97
+ of the epic.** Every empty secret in the preparation script becomes a step "before the merge" or
98
+ a decision of the owner, not a line "left to do".
76
99
 
77
100
  - **The image carries every file its own startup steps read.** The storage schema, the client
78
101
  settings, the environment template — everything lying next to it in the repository does not get
@@ -87,7 +110,10 @@ flowchart TD
87
110
  notice that by. They differ in the tail: the server then removes dangling layers and the build
88
111
  cache, the build machine keeps them, otherwise every build goes as the first. Cleanup on the
89
112
  build side does not wait for the merge: a branch image takes as much space, never leaves for the
90
- registry and is never a rollback point.
113
+ registry and is never a rollback point. The build step names its builder explicitly: without the
114
+ name the build goes through the machine's current builder, which may have no cache limit, while
115
+ the declared one stands empty. The build machine keeps the build cache and removes dangling
116
+ images: the builder cache lies in its own volume, and dangling images are not part of it.
91
117
  - **The rollout cleans up old images after itself, keeping the last three sha.** An image tagged
92
118
  with a sha is never dangling, and a dangling cleanup does not touch it: in half a year they eat
93
119
  the server disk whole. Three sha is the rollback depth, and fewer cannot be taken: a breakage
@@ -118,14 +118,25 @@ flowchart TD
118
118
  `Docs-skip: <reason>` in the commit body; an empty reason is not accepted.
119
119
  <!-- rt-when: *.md -->
120
120
 
121
+ - **A file of the tree is edited by the edit tool, not by a shell command.** A guard judges a
122
+ shell command by its whole body as new text: the pattern being replaced, the old markup, a loop
123
+ and the headers next to a heredoc. A one-liner is then one sentence of fifty words, and the
124
+ guard refuses the edit for lines it does not add. A post-edit hook does not see such a write at
125
+ all, and a replacement whose pattern matched nothing exits zero with the file untouched. A
126
+ command that must write a document gets it as a file written by the edit tool beforehand.
127
+
121
128
  - **A document is no longer than the length limit.** A text that does not fit on one screen gets
122
129
  appended to without rereading the beginning — that is how one document ends up with two answers
123
130
  to one question. Text has its own limit, lower than code, counted the same way — all lines; a
124
131
  spec that has outgrown it is split into subdomains, the boundary is not moved. Two numbers
125
132
  instead of one exist because text needs its threshold earlier: code length is also watched by
126
- the linter, prose only by this number. The description of the past is excluded from the count:
127
- by design the archive lists what the tree no longer has, and the task folder dies with the
128
- merge.
133
+ the linter, prose only by this number. The prose of the rules layer has a third number, in
134
+ characters: compressing an article removes characters and leaves the line count, and a split
135
+ that only brings the lines under the limit leaves the characters where they were. The numbers
136
+ stand in the checks settings, not in the text; a rule at the ceiling takes a new article only
137
+ by folding an argument next to it, or by a split. The description of the past is excluded
138
+ from the count: by design the archive lists what the tree no longer has, and the task folder
139
+ dies with the merge.
129
140
  <!-- rt-when: *.md -->
130
141
 
131
142
  - **A file leaving for the description of the past names its former address in its header.**
@@ -245,6 +256,12 @@ freshness of a number in the text. The last two the law leaves with the author e
245
256
  open question is written in the same words as a promise, and a date and an id are numbers like
246
257
  the ones that get recomputed.
247
258
 
259
+ The two columns of the glossary are judged at different minutes. The wording check carries a part
260
+ of the left column and the tree's own bans, and it fires on the edit. The whole section of words
261
+ not written here is read by the glossary check, and that one stands only in the set before a
262
+ push — a word it refuses already lies in a commit by then. A commit body is read by neither: it
263
+ is held by the article about the addressee, the same as a PR description.
264
+
248
265
  No check reads the reply to the owner, and the misses in it are the same as in tree text: an
249
266
  invented fact served alongside a verified one, and an appraisal of someone else's decision
250
267
  instead of carrying it out. Only the owner catches them — that is, having already read. The rule
@@ -89,6 +89,10 @@ flowchart TD
89
89
  - **A branch without a work item number gets no delivery conditions.** A local trial branch is
90
90
  legitimate, and demanding a fresh base of it would refuse work that will not go to main: no PR
91
91
  opens from such a branch.
92
+ - **A commit lands with its final content, and a later commit of the same branch does not correct
93
+ it.** It is made after the check against the mockup, the sample and the measurement; what is not
94
+ checked stays in the working tree. A third commit fixing the first shows the reviewer the miss
95
+ instead of the work, and rewriting history hides the trace, not the cause.
92
96
  - **A code edit is handed to a person by an open PR, not by a pushed branch.** A branch is not shown
93
97
  to them in the branch list, reaches no to-do list of theirs and has no discussion: before the PR
94
98
  opens there is no edit for a person. It opens in the turn in which the executor says the work is
@@ -2,7 +2,7 @@
2
2
  name: git-workflow
3
3
  kind: rule
4
4
  law: delivery
5
- description: Rule under the delivery law for a tree on GitHub. Load for creating a task and a branch, commit, push, opening a PR and merging. Names the one-to-one pair of task and branch, the machine account and the delivery guards. Patterns git-workflow-commit, -pr, -merge, -stack. Rollout — rule deploy-flow.
5
+ description: Rule under the delivery law for a tree on GitHub. Load for a task and a branch, commit, push, opening a PR and merging. Names the pair of task and branch, the machine account and the delivery guards. Patterns git-workflow-commit, -pr, -merge, -stack. Rollout — deploy-flow, audit — queue-audit.
6
6
  ---
7
7
 
8
8
  # Delivery — how it works here
@@ -80,7 +80,8 @@ flowchart TD
80
80
  checkout -b <КЛЮЧ>-<номер задачи>-<slug> <ветка эпика>`; from `main` only the epic branch itself is
81
81
  taken — a task branched from `main` carries into it what the epic has not finished.
82
82
  - **The PR of a task has the epic branch as its base — `gh pr create --base <ветка эпика>`.** Opened
83
- into `main`, it leaves the epic branch a copy nobody merges.
83
+ into `main`, it leaves the epic branch a copy nobody merges. In a chain the base is the previous
84
+ branch, lawful while it carries the epic branch.
84
85
  - **The PR of an epic into the main branch opens after all its tasks are merged and their folders
85
86
  are taken apart.** The merge button there means the whole epic, and there is nothing to press it
86
87
  for while a task of it is still written.
@@ -146,29 +147,11 @@ flowchart TD
146
147
  names its closing columns itself; unnamed — not judged.
147
148
  - **The board holds tasks, not PRs about them.** A PR card has no column and never leaves the queue.
148
149
  The queue audit finds such cards, a line each.
149
- - **A lagging column is found by the queue audit, not by eye.** It judges the column by the PR both
150
- ways: an open PR with the task not in review, and review with no open PR.
151
- - **A branch with an open PR lags behind its base silently.** The guard judges the base once, at
152
- opening, and the run does not see what merged after. The work queue audit counts the lag.
153
- - **The link between a task and an epic is read by the audit both ways.** A one-sided binding looks
154
- as whole as a two-sided one.
155
150
  - **Tasks fixed by one edit are merged before the merge.** The second is erased with its number, and
156
151
  the missing is added to the first: after the merge the branch went in whole.
157
- - **Work that one session cannot close is marked in two places, and they are audited.** The board
158
- label and the sessions line in the epic plan say the same to two readers; only what legitimately
159
- does not split is marked.
160
- - **The tip of an open PR without a run is seen by the work queue audit, unless the pipeline does
161
- not wake for its base.** A page without a run looks the same as with a green one; where no run
162
- comes at all, the audit is silent about that PR.
163
152
  - **What checks a PR whose base is not the main branch is asked before the first PR of an epic
164
153
  opens.** The trigger either wakes for it as for one into main, or does not, and then the push
165
154
  gate is the only check behind the work — pattern `git-workflow-stack`.
166
- - **A run pushed out of the pipeline queue gets a separate audit line.** It looks failed though it
167
- never checked the branch, and the step count tells them apart.
168
- - **The last run of the main branch is judged by the audit too: red and pushed out get lines of
169
- their own.** The merge itself is checked by nobody; a pipeline asleep on a push to main is named.
170
- - **A draft with a green run on its tip is an audit discrepancy.** A green page permits nothing: the
171
- host locks the button.
172
155
  - **One's own drafts are judged all at once, not only the checked-out branch's.** Two signs — a
173
156
  green run on the tip and a folder taken apart; a folder still there means ongoing work.
174
157
  - **Opening a PR is refused while the branch carries its task folder.** Opening is the last point
@@ -180,8 +163,6 @@ flowchart TD
180
163
  that.** Work here means creating a task or a branch, moving the column and opening a PR.
181
164
  - **A conflicting PR of a neighbouring session is not one's own.** One's own branch is the one this
182
165
  working copy led; a neighbour's PR is named to the owner, and work is taken as usual.
183
- - **A conflicting open PR is a work queue audit discrepancy.** The conflict arrives with someone
184
- else's merge, and the host shows the mark only inside the PR.
185
166
  - **A document goes in the same commit as the edit.** The bypass is the line `Docs-skip: <reason>`
186
167
  in the commit body; an empty reason is not accepted.
187
168
  - **The commit subject is checked against the format on the spot.** A subject parsed by type and
@@ -191,7 +172,7 @@ flowchart TD
191
172
  - **The build is in the set on a par with lint and unit tests.** The linter does not read types,
192
173
  and a type error in uncovered code lives until the merge.
193
174
  - **On a machine with several runners, any path from the home directory is shared.** Install
194
- directory, container name and builder name are per project.
175
+ directory, container name, builder name and published port are per project.
195
176
  - **The push gate set is never narrower than the pipeline set.** A pipeline step with neither a
196
177
  line in the set nor a declared exclusion refuses the push: a warning reads as permission.
197
178
  - **The gate set calls the package default instead of listing it line by line.** Rewritten as
@@ -207,6 +188,10 @@ flowchart TD
207
188
  what the author edited means checking half: the branch answers whole.
208
189
  - **The main branch is taken by the remote ref — in words and in actions.** The local one is
209
190
  yesterday's snapshot and silent about it: by it a merged branch counts as unmerged.
191
+ - **A commit lands with its final content, and a later commit of the same branch does not correct
192
+ it.** It is made after the check against the mockup, the sample and the measurement; what is not
193
+ checked stays in the working tree. A third commit fixing the first shows the reviewer the miss
194
+ instead of the work, and rewriting history hides the trace, not the cause.
210
195
  - **A code edit is handed to a person by an open PR, not by a pushed branch.** A branch reaches no
211
196
  inbox; the PR opens in the turn the work is said handed over.
212
197
  - **What is not ready to merge opens as a draft — `gh pr create --draft`.** The host locks a draft's
@@ -264,8 +249,6 @@ flowchart TD
264
249
  checks it.** The guard judges a commit that named itself as it; a person's passes by.
265
250
  - **The PR state is reread from the host right after publishing.** Opening and setting a reviewer
266
251
  answer zero even having done nothing.
267
- - **The author of an open PR and whether it has a reviewer are audited by the work queue.** Before the
268
- merge neither miss shows: a PR opened by a person never gets a reviewer.
269
252
  - **Reviewers are asked by a REST call, not by the client's selection.** Its fields come from GraphQL,
270
253
  where the account has no rights.
271
254
 
@@ -89,6 +89,10 @@ flowchart TD
89
89
  - **A branch without a task number gets no delivery conditions.** A local trial branch is
90
90
  legitimate, and demanding a fresh base of it would refuse work that will not go to main: no MR
91
91
  opens from such a branch.
92
+ - **A commit lands with its final content, and a later commit of the same branch does not correct
93
+ it.** It is made after the check against the mockup, the sample and the measurement; what is not
94
+ checked stays in the working tree. A third commit fixing the first shows the reviewer the miss
95
+ instead of the work, and rewriting history hides the trace, not the cause.
92
96
  - **A code edit is handed to a person by an open MR, not by a pushed branch.** A branch is not shown
93
97
  to them in the branch list, reaches no to-do list and has no discussion: before the MR opens there
94
98
  is no edit for a person. It opens in the turn in which the executor says the work is handed over,
@@ -14,10 +14,10 @@ cut in this tree, what it is called and what we do not have.
14
14
 
15
15
  | In the law | Here |
16
16
  | ------------------------------------ | ------------------------------------------------------------------- |
17
- | lib family | `libs/site`, `libs/admin`, `libs/api` |
17
+ | lib family | the frontend families listed by the `families` key of the checks' settings, and the backend family named by the `apiFamily` key |
18
18
  | layer | `api`, `data-access`, `feature`, `shell`, `ui`, `util` |
19
19
  | the right to see a lib | a tag in `eslint/boundaries/domains/<family>.config.mjs` |
20
- | lib shared by all three applications | `libs/common/util`, tag `scope:common-util` |
20
+ | lib shared by every application | `libs/common/util`, tag `scope:common-util` |
21
21
  | family base | `<family>/core`; its tag is in `ADMIN_UNIVERSAL` |
22
22
  | barrel | `src/index.ts` of the lib and `index.ts` of the component directory |
23
23