@rt-tools/agent-kit 0.29.0 → 0.29.2

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 (53) hide show
  1. package/assets/checks/board-epic-plan.github.mjs +128 -9
  2. package/assets/checks/board-epics.github.mjs +6 -10
  3. package/assets/checks/board-folders.mjs +50 -0
  4. package/assets/checks/check-lib-layers.mjs +4 -2
  5. package/assets/checks/check-spec-coverage.mjs +65 -0
  6. package/assets/checks/check-work-steps.mjs +238 -0
  7. package/assets/checks/epic-table.github.mjs +15 -6
  8. package/assets/checks/lib-common.mjs +9 -4
  9. package/assets/checks/lib-domains.mjs +7 -4
  10. package/assets/checks/rt-kit-checks.config.mjs +1 -1
  11. package/assets/checks/task-new.github.mjs +6 -6
  12. package/assets/defaults/project.sh +15 -1
  13. package/assets/hooks/git-guard-delivery-epic.sh +8 -1
  14. package/assets/hooks/git-guard-delivery-tree.sh +63 -16
  15. package/assets/hooks/git-guard-delivery.sh +12 -11
  16. package/assets/hooks/git-guard-no-verify.sh +142 -0
  17. package/assets/hooks/git-guard-push-tests.sh +39 -8
  18. package/assets/hooks/grill-gate.sh +63 -2
  19. package/assets/hooks/prose-style-guard.sh +49 -3
  20. package/assets/hooks/turn-exit-epic.sh +39 -0
  21. package/assets/hooks/turn-exit-guard.sh +6 -4
  22. package/assets/hooks/turn-exit-patterns.sh +51 -0
  23. package/assets/hooks/turn-exit-verdict.sh +20 -1
  24. package/assets/hooks/waiting-turn-guard.sh +56 -1
  25. package/assets/hooks/write-targets.sh +23 -1
  26. package/assets/laws/work-conduct.md +22 -0
  27. package/assets/patterns/doc-style-human.md +6 -0
  28. package/assets/patterns/git-workflow-commit.github.md +4 -0
  29. package/assets/patterns/git-workflow-merge.md +1 -0
  30. package/assets/patterns/git-workflow-pr-body.github.md +10 -5
  31. package/assets/patterns/spec-driven-domain.md +4 -0
  32. package/assets/patterns/status-report-table.github.md +6 -0
  33. package/assets/patterns/task-flow-start.md +27 -23
  34. package/assets/patterns/testing-e2e.md +25 -0
  35. package/assets/pitfalls/turn-conduct.md +28 -0
  36. package/assets/rules/doc-style.md +1 -1
  37. package/assets/rules/git-workflow.github.md +2 -1
  38. package/assets/rules/observability.needs-app.md +5 -0
  39. package/assets/rules/reuse-first.md +33 -11
  40. package/assets/rules/spec-driven.md +3 -1
  41. package/assets/rules/task-flow.md +30 -29
  42. package/assets/rules/testing.md +15 -0
  43. package/assets/rules/turn-conduct.md +44 -46
  44. package/assets/rules/typescript-conventions.md +8 -0
  45. package/assets/samples/tasks/_template/plan.md +7 -1
  46. package/assets/samples/tasks/_template/progress.md +13 -0
  47. package/lib/observations-cargo.d.ts +12 -0
  48. package/lib/observations-cargo.d.ts.map +1 -1
  49. package/lib/observations-cargo.js +18 -1
  50. package/lib/observations-cargo.js.map +1 -1
  51. package/package.json +1 -1
  52. package/rt-tools-agent-kit-0.29.2.tgz +0 -0
  53. package/rt-tools-agent-kit-0.29.0.tgz +0 -0
@@ -39,16 +39,13 @@ 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. First, where the search went is named; then
43
- the places missing from the list are reached — the epic plan, the archive, the records of past
44
- sessions. "Not found in such a place" speaks of the place, not of the tree, and the question names
45
- both ways in which the search went.
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.
46
45
 
47
- Exploration ends with command output, not with a feeling. Before the first question to the owner the
48
- executor knows three things. How the repository is arranged (the root memo), what lies in the
49
- directory at hand (`ls`), and whether something is already written on the theme (a search over the
50
- documentation and the rules). Without a list of what counts as done, exploration runs as a mood: a
51
- read handover passes for it, and not one command runs over the tree.
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).
52
49
 
53
50
  Exploration over a created task ends with a reproduced symptom, not a found file. The task body
54
51
  describes the tree on the day of creation, and exploration by the names from the body confirms only
@@ -62,9 +59,11 @@ and only then come the questions about techniques. The answer to "how is this do
62
59
  folder, and generalised into a map of the tree it lies: the neighbouring family of directories is
63
60
  left out, and the owner finds the loss.
64
61
 
65
- What was inferred is marked right in the list, together with what confirms it. A guess by a
66
- neighbouring case stands in one list with what was checked, and the owner reads the whole list as
67
- checked.
62
+ What was inferred is marked right in the list, together with what confirms it.
63
+
64
+ **A ready-made module of the same kind is looked for before the first question** — in this tree and
65
+ in the trees recorded as samples of its layout. The one found is read whole: it closes the questions
66
+ about the structure — the source of the numbers, the rows, the screen, the storage.
68
67
 
69
68
  The six questions are asked minus those the exploration answered: instead of a question with a ready
70
69
  answer, the grill gets the line "taking such-and-such answer, here is where from". The sign is one —
@@ -96,18 +95,24 @@ included. It can be closed by an assumption too, when the answer is obvious —
96
95
  closed by assumption: <what is taken>": a wrong assumption costs an edit, a question about the
97
96
  obvious costs a session.
98
97
 
99
- The size of the work is never a ground for a question about boundaries: "this is big work" is the
100
- executor's judgement, "whether to do it whole" is the owner's, and they decided before the work
101
- began.
98
+ **Two answers «recommended» in a row close the remaining questions by assumption.** An owner who took
99
+ the recommended option twice running has shown that the decisions are not theirs. From the second
100
+ such answer the remaining questions go into the grill as decisions — what is taken and where from —
101
+ and the owner gets the list in one line, not a menu. The guard of the conversation refuses the third
102
+ menu itself; a menu goes out again only for a question no assumption closes, and says so first.
103
+
104
+ **The streak is counted over the session record, not per task.** After two «recommended» answers at
105
+ the end of one task, the next task's questions go into its grill as decisions from the start.
106
+
107
+ The size of the work is never a ground for a question about boundaries: the owner decided it before
108
+ the work began.
102
109
 
103
110
  The form of a question is set by the owner's settings: where a menu is required, a menu is asked,
104
111
  and a free option is added to every question — a closed set has no line "wrong question".
105
112
 
106
- **The framing of a handed-over text is not carried onto the current tree.** A session handover, a
107
- proposals file and a spec describe the tree they were written in. Only the current tree knows about
108
- the current one, and a statement about the layout is checked by a command here. Confirmation finds
109
- itself — the signs of a tree that only installs the package stand on the one that writes and
110
- installs it too.
113
+ **The framing of a handed-over text is not carried onto the current tree.** A handover, a proposals
114
+ file and a spec describe the tree they were written in; a statement about the layout is checked by a
115
+ command here — the signs of a tree that only installs the package stand on the one that writes it too.
111
116
 
112
117
  The message with which the executor stops begins with what they wait for:
113
118
 
@@ -120,9 +125,8 @@ Under the question goes the table of the epic's position — the same as in the
120
125
  above: the stop is named by the first line, and the epic's position is what the owner decides from.
121
126
  Work outside an epic carries no table.
122
127
 
123
- Measurements, role findings and the list of decisions are by then written in the progress, and in
124
- the message to the owner they are superfluous. A report with a question at its end looks diligent
125
- exactly as reliably as the question drowns in it.
128
+ Measurements, role findings and the list of decisions are by then written in the progress and are
129
+ superfluous in the message: a report with a question at its end drowns the question.
126
130
 
127
131
  The answers are written into `docs/tasks/_draft-<slug>/grill.md` — the folder is still a draft,
128
132
  there is no number.
@@ -27,6 +27,12 @@ between them. Entering by a direct address raises the application anew, it has n
27
27
  and the pass reads as "the defect is not confirmed". That is how a panel that got stuck in the
28
28
  address on leaving for a neighbouring section went out to production.
29
29
 
30
+ An action that adds a node to the page — sending a message, adding a row, attaching a file — is
31
+ done at least twice in one test. The first time the page holds only the node the action needs; the
32
+ second time it also holds the one the first action added, and a query that matched by a shared mark
33
+ now finds the wrong node. One send per test passes against a handler that breaks on every second
34
+ send.
35
+
30
36
  Elements are found by `qa-dataid`: classes change together with the layout, and a search by role
31
37
  and text breaks on translations.
32
38
 
@@ -108,8 +114,27 @@ This knowledge is entered in the rule, not in the shared module of the suite. Wr
108
114
  it is known to whoever wrote it — the next test repeats the miss, because it reads the rule, not the
109
115
  code.
110
116
 
117
+ A click on closing a panel is not its disappearance either. While the panel leaves the screen it
118
+ keeps its fields, its buttons and its anchors: a test that filled a field in a panel already going
119
+ away stood until its time limit, and the trace showed the fill landing in a node nobody was going
120
+ to read. So the absence of the node is awaited before the next action:
121
+
122
+ ```ts
123
+ await qa(page, 'invite-create-close').click();
124
+ await expect(qa(page, 'invite-create-panel')).toHaveCount(0);
125
+ ```
126
+
127
+ The same holds for a popup that stays open after its item is chosen. It covers the screen, and the
128
+ click aimed at a button under it goes to the popup: the screen answers as if the button had not
129
+ been pressed at all. The popup is closed and its absence awaited by the same pair of lines.
130
+
111
131
  ## Common misses
112
132
 
133
+ - **A service limit per client address counts the whole suite as one client.** Every test goes from
134
+ one machine, so a limit on requests per minute is reached by the sum of the tests, not by any one
135
+ of them. Adding tests pushes old ones into refusal (429): a run of one spec stays green, and only
136
+ the full set shows it. Each test that opens a new record gets its own client address; the limit
137
+ itself is not raised for the suite.
113
138
  - **Take the rendering server port with care:** the developer's stand goes by the same name
114
139
  `ssr:<rendering port>` through `host-gateway`, and while a foreign process hangs on it, the stand
115
140
  serves a foreign build.
@@ -121,3 +121,31 @@ The rule is `turn-conduct`; the articles that hold the law stand there.
121
121
  done.
122
122
  - **"A statement about the tree's state is watched by the statement guard": why a word has its own
123
123
  kind of command.** A general sign "there was a command" would confirm one thing by another.
124
+ - **A next step named and not begun.** Four stops of one shape: a stage closed and committed, a
125
+ full report, the next stage named in the progress and untouched. The last, on 17 September, came
126
+ after an epic with seven tasks, an agreement and a whole first stage — the more was done, the more
127
+ the report read as the end. The guard now reads the order of actions after the last edit of the
128
+ progress, and a turn that opened the PR passes that sign by itself.
129
+ - **A launch in the background as the last action.** A grill of five menus ended with the review
130
+ roles sent to the background and the line "the roles are working"; the owner read it as a stop.
131
+ The guard counted the launch as work — there were edits in the turn, and the last action was not
132
+ a wait. Now the last tool of the turn is judged: the agent tool or a command sent to the
133
+ background standing last gives the turn back, and work after the launch releases it.
134
+
135
+ ## A single read of the run state taken for watching it
136
+
137
+ 22 September 2026. An epic was handed over whole: nine tasks merged, the request of the epic opened
138
+ into the main branch as a draft. The pipeline woke by itself, and the turn held no starting command.
139
+
140
+ The executor read the state once — the run was going — and ended the turn with the words "I am not
141
+ waiting for the run". The run finished in 12 minutes 35 seconds, green. The draft stayed, the merge
142
+ button stayed locked, and the owner learned the work was ready forty minutes later, by asking what
143
+ the executor was busy with.
144
+
145
+ What confirmed the wrong decision: the waiting guard let the turn go. It demands that the state of
146
+ the handed-over work be asked, and the state was asked — while the run was still going. The guard
147
+ judged the fact of the question, not the end of the run, and its tier about a run started in the
148
+ turn knew only the commands that start one by hand.
149
+
150
+ What it cost: a ready request stood forty minutes under a green run; the owner checked the work
151
+ instead of the executor; two turns went on the conversation about why the work stood still.
@@ -19,7 +19,7 @@ together with the rule.
19
19
  | In the law | Here |
20
20
  | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
21
21
  | document | any `.md` outside `docs/archive/`, plus code comments, commit bodies and PR descriptions |
22
- | a path named in a document | a string with an extension in backticks — that is what the check looks for |
22
+ | a path named in a document | a string in backticks with a slash or a file extension — that is what the check looks for. A name with a slash that is no address, such as a story title, goes without backticks |
23
23
  | the change a document describes | a pair from `docs-guard`: a rule and its mirror, a `.proto` and a spec, a hook and its scenarios, a moved file and both libs' READMEs |
24
24
  | description of the past | `docs/archive/` — excluded from the path check entirely |
25
25
 
@@ -88,7 +88,8 @@ flowchart TD
88
88
  own.** An edit made in it goes into `main` unreviewed: nobody opens a PR from that branch to it.
89
89
  - **The main branch is merged into the epic branch, and the epic branch into the branches of its
90
90
  tasks — while the work runs, not before the hand-over.** Otherwise the reviewer sees the edit mixed
91
- with someone else's, checked from a base that is gone.
91
+ with someone else's, checked from a base that is gone. A merge not sent yet answers by the base:
92
+ a task branch from the merged local epic branch is let through.
92
93
  - **A wave of branches off one epic branch is checked by a trial merge, not one by one:** each is
93
94
  green on its own, and they collide on what one branch cannot show.
94
95
  - **The next work's branch is taken from the previous one while the chain is unbroken.** `git
@@ -70,6 +70,11 @@ flowchart TD
70
70
  check that fired. On one level with breakages it floods the alarm with guests' typos.
71
71
  - **The cause of a failure is parsed in one place.** Otherwise the same error arrives in the logs
72
72
  in three different shapes.
73
+ - **A field added to the answer of a refusal is added where the answer is assembled, not where the
74
+ refusal is thrown.** The application parses failures in one place and builds the body there out
75
+ of what it knows: every throw may name the field, and the body carries none of them. Neither the
76
+ linter nor the tests next to the throws see it — the loss shows on the screen of whoever reads
77
+ the answer.
73
78
  - **The fields of a log line are always scrubbed, not at the discretion of whoever writes.**
74
79
  Deciding on every call whether the fields hold a secret means being wrong once.
75
80
  - **At startup the application writes what it came up with.** Half of the features are enabled by
@@ -14,7 +14,7 @@ the same; here — what that stands on in this tree and what it is called.
14
14
 
15
15
  | In the law | Here |
16
16
  | ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
17
- | the ready-made | the kit components of `@rt-tools/ui-kit-v2` with the `rt-` prefix — over seventy today — and selectorless base classes inherited in a screen's `@Component` |
17
+ | the ready-made | the kit components of `@rt-tools/ui-kit-v2` with the `rt-` prefix and selectorless base classes inherited in a screen's `@Component` |
18
18
  | the layout of pages, forms and windows | `apps/<app>/src/styles/`, applied with the BEM directives |
19
19
  | styling of a part of the application | the `.scss` file next to the component |
20
20
  | a departure decided by the owner | the `native-ok` marker with an explanation — a comment on the line above or in the line itself |
@@ -112,13 +112,19 @@ flowchart TD
112
112
 
113
113
  ## What of the law is not here
114
114
 
115
- The same response of an input field to an error is held by the kit: nobody in this tree inherits
116
- `RtFormControlBase`, because fields are taken as its ready-made components. There is nothing here
117
- to bind this article of the law to.
115
+ Two articles of the law are counted by no check, and each of them is a number about a tree.
116
+ Whether a field of the application answers an error the way the ready-made one does; how many
117
+ places report a success or a failure by their own markup instead of the shared bus. A template or
118
+ styles inside the decorator is not a third of them: the package set carries a sign for that, and a
119
+ tree that declared the set gets a refusal on such an edit.
118
120
 
119
- An inline template stands on one component, and the same one has the only `styles:` — the admin
120
- header. `role="alert"` is written by hand in sixteen templates, and `rt-message` is called by one
121
- consumer. That is debt, not a permitted departure.
121
+ A number like that is not written into a text at all: it goes stale by itself, with no edit in the
122
+ tree, and a stale number reads as a current one. The companion of the rule writes the way to ask
123
+ it — the command, and what the answer of that command is a measurement of — and the answer stays
124
+ where it is true, in the tree.
125
+
126
+ The law's article about stopping a departure before the file is written is held in part, and the
127
+ part that is missing is named below, where the signs are described.
122
128
 
123
129
  ## Patterns
124
130
 
@@ -152,6 +158,11 @@ A sign names its scope: inheriting a base and a class decorator do not land in a
152
158
  sign judging them by the added text is always silent. A sign also names its cancel — a sample
153
159
  under which it does not fire: the base is already inherited, the ready-made is already called.
154
160
 
161
+ The boundary of a sign is the text by which it is recognised. A whole piece drawn by hand in place
162
+ of a ready-made component is assembled from ordinary markup nodes, and no sign names it: a screen
163
+ that drew its own feed of messages instead of the kit's passes the guard and the full check alike.
164
+ A declared set closes native controls, overlays and layout, and not that.
165
+
155
166
  ## Pitfalls
156
167
 
157
168
  - **A sample is searched for by the kit's names, not by what the kit is written on.** A search by
@@ -165,10 +176,21 @@ under which it does not fire: the base is already inherited, the ready-made is a
165
176
  changes its indent while staying the same code.
166
177
  - An answer given before reading the sample is overruled by the sample: the agreed shape of a list
167
178
  query was replayed together with the contract two questions after it was accepted.
168
- - **A set is declared by what the tree consumes, not by what the package ships.** A tree in which
169
- the kit is written, not called, having declared its set, gets advice to call the kit on the
170
- kit's own files: the sign is right but pointed the wrong way. Such a tree declares only the sets
171
- whose ready-made it takes from outside.
179
+ - **A set is declared by what the tree consumes, and a tree that consumes what it writes declares
180
+ it with an area.** A tree in which the kit is written, not called, having declared its set, gets
181
+ advice to call the kit on the kit's own files: the sign is right but pointed the wrong way. That
182
+ is no reason to leave the set undeclared where the same tree is also its consumer: undeclared, it
183
+ leaves the consumer's screens unjudged, and the silence there is read as order. The area stands
184
+ next to the name — in place of the bare name a pair of the name and the roots it holds over.
185
+
186
+ ```json
187
+ { "reuse": { "bundles": ["angular", { "name": "kit", "roots": ["apps/admin", "libs/admin"] }] } }
188
+ ```
189
+
172
190
  - **A guard that received no sign is indistinguishable from a guard with nothing to refuse.** It
173
191
  says so itself, and the first edit in a tree without declared sets shows it. Silence of the
174
192
  check does not count as a sign of order — first one looks whether it has anything to judge by.
193
+ - **A newly declared set lights up the code written before it, and none of that is new debt.**
194
+ Every place the set names arrives at once and as fresh, so the gate refuses a push for code
195
+ nobody touched. Either those places are closed by the same work, or the snapshot of what
196
+ accumulated is re-taken: the full check takes the key `--baseline` for exactly that.
@@ -121,7 +121,9 @@ flowchart TD
121
121
  not inserted in the middle and does not take a deleted one — the deleted number's place stays
122
122
  empty. The number ties the scenario to its test, and issued a second time it leaves the old
123
123
  reference right on the surface; renumbering in sequence is deceptively cheap — the tests are green
124
- both before and after.
124
+ both before and after. The free number is asked of the tree's command before the scenario heading
125
+ is written, and the companion names that command: the main branch alone does not show numbers
126
+ neighbouring work holds on disk.
125
127
  - **A scenario and the title of its test are edited by one change.** The promise changed — the
126
128
  number stays, and the test title is edited by the same commit; the scenario deleted — the test is
127
129
  deleted too. Having drifted apart, they leave the run green while it checks something else.
@@ -122,8 +122,8 @@ flowchart TD
122
122
  - **Editing application code is refused until the work has reached a state in which code is
123
123
  edited.** The guard demands three things: a task folder by branch name, a plan in it and a
124
124
  declared state. The agreement has a guard of its own on the same events.
125
- - **The guard judges the declared transition, not the presence of files.** An empty plan lies the
126
- same as a written one, so the refusal is lifted by the declared state — `этап-идёт`,
125
+ - **The guard judges the declared transition, not the presence of files.** The refusal is lifted
126
+ by the declared state — `этап-идёт`,
127
127
  `этапы-кончились`, `разбор-кончился`. The fourth road is the branch history: a folder taken apart
128
128
  means handed-in work.
129
129
  - **A state line moved forward is the same declaration of intent, only machine-readable.** It is
@@ -147,15 +147,14 @@ flowchart TD
147
147
  justification under someone else's accepted decision reads as its appraisal. One exception:
148
148
  execution stopped by an obstacle — then the obstacle is named.
149
149
  - **The last run of the main branch is read first thing in a session and after every known
150
- merge.** A merge reads as the end of the work, and a red main branch after it lives until the
151
- owner notices. The start hook prints it; after a merge the command is called by hand, and a red
150
+ merge.** A red main branch after a merge lives until the owner notices. The start hook prints it; after a merge the command is called by hand, and a red
152
151
  or pushed-out run is fixed before new work is taken.
153
- - **A session does not start work by itself.** A start needs the owner's word in the same session:
154
- the handover, the state from the startup hook and an assigned epic say what to do, not whether to
155
- work. An empty message, one word or one path order no work.
156
- - **A refusal by an external limiter removes the way, not the task.** It is not the tree's guard and
157
- names no exit. The way is taken from the guard that already described this fix — a bypass with
158
- the reason in the commit body, a word to the owner — and the task stays the same.
152
+ - **A session does not start work by itself.** The handover, the state from the startup hook and an
153
+ assigned epic say what to do, not whether to work: a start needs the owner's word in the same
154
+ session. An empty message, one word or one path order no work.
155
+ - **A refusal by an external limiter removes the way, not the task.** It names no exit: the way is
156
+ taken from the guard that already described this fix — a bypass with the reason in the commit
157
+ body, a word to the owner — and the task stays the same.
159
158
  - **An instruction to work by the progress covers all its steps, including those that change
160
159
  history.** Questions are asked about what the progress lacks.
161
160
  - **A question written by a past session does not become a question to the owner.** It is addressed
@@ -166,8 +165,8 @@ flowchart TD
166
165
  - **An answer in the owner's message counts the same as an answer in a document.** A question
167
166
  already answered in the conversation is not asked again.
168
167
  - **The owner's word about the design is a task setting, not a decision.** What they named is
169
- usually already in the tree under that word — a name on a screen, a spec section, a model field —
170
- and is checked against them before the edit. Diverged — the owner is asked.
168
+ usually in the tree under that word — a name on a screen, a spec section, a model field — and is
169
+ checked against it before the edit. Diverged — the owner is asked.
171
170
  - **A task folder is created for any work, no exceptions.** An exception with even one lawful form
172
171
  is executed as permission. It goes in before the first edit.
173
172
  - **The task folder goes into the branch by a commit, not lives in one working tree.** Uncommitted,
@@ -182,9 +181,8 @@ flowchart TD
182
181
  base: folder taken apart and pushed → PR as a draft → run green → draft lifted → the request to
183
182
  merge, naming the number. Where it does not wake, the green push gate is the check, and opening
184
183
  the PR and asking to merge are one turn.
185
- - **A PR that waits for a run opens as a draft, and one that waits for nothing opens ready.** Before
186
- it opens the owner sees no edits, and an open PR reads as an invitation to merge. Which of the two
187
- applies is decided by the bases the pipeline wakes for, and that is read from its file.
184
+ - **A PR that waits for a run opens as a draft, and one that waits for nothing opens ready.** An
185
+ open PR reads as an invitation to merge. Which of the two applies is decided by the bases the pipeline wakes for, and that is read from its file.
188
186
  - **The plan guard is the lower bound of the requirement, not its limit.** It demands a folder only
189
187
  for an edit of application code; the article above — for any work.
190
188
  - **An instruction to work by a rule is an instruction to do its steps, including those that change
@@ -192,8 +190,7 @@ flowchart TD
192
190
  - **A taken task does not end a turn.** Creating the task, the branch, the column and the folder is
193
191
  preparation: the work moves to the written-plan state, where the action is different. The
194
192
  turn-exit guard names the first stage in its refusal.
195
- - **The stages of a plan cover its done-sign whole.** A sign written wider than the sum of the
196
- stages means a part of the order is given to no step at all: every stage closes, the run is
193
+ - **The stages of a plan cover its done-sign whole.** Otherwise every stage closes, the run is
197
194
  green, and half the order is not done. Either the stages are written up to the sign, or the sign
198
195
  is narrowed to what the stages give.
199
196
  - **A stage's readiness sign is taken from the output of a command run while the plan is written.**
@@ -208,6 +205,13 @@ flowchart TD
208
205
  filed as a task.
209
206
  - **Done work is marked only in the progress.** "Where we stand" is rewritten by every session, not
210
207
  appended: it is the first thing the next session reads.
208
+ - **The plan names the steps of every stage, and the progress mirrors them with a mark each.** The
209
+ plan is not edited after it is written, the marks change every turn; a line nobody can call done
210
+ is not a step.
211
+ - **The numbers and the names of the steps are copied from the plan, not reworded.** A check matches
212
+ the two lists: a reworded name reads as a different step.
213
+ - **Exactly one step carries the mark of going on right now, while any step is not done.** Marked on
214
+ none, the progress says the work stands; marked on two, it says nothing at all.
211
215
  - **A word for a new notion is looked up in the tree's glossary.** It goes into the context whole
212
216
  at session start, so "did not read it" is never a ground.
213
217
  - **The task folder is created as a draft and gets its number by a command.** Until the grill ends,
@@ -216,14 +220,13 @@ flowchart TD
216
220
  - **Work ordered in words becomes a task in the queue in the same turn.** Even if it will not be
217
221
  done now: a draft folder has no number, and one session knows of it. Postponed work names a
218
222
  date; postponed silently, it reads as done.
219
- - **Work begins with the epic, and a task outside one is not taken.** The epic names what the whole
220
- is, and the main branch takes that whole or does not take it. Work outside an epic exists only by
223
+ - **Work begins with the epic, and a task outside one is not taken.** The main branch takes the
224
+ whole or does not take it. Work outside an epic exists only by
221
225
  the owner's word about that work, said about that work.
222
226
  - **The epic branch is taken before the first task of the epic, not with it.** Taken later, it
223
- leaves the first task standing on the main branch, and the epic starts as half of itself already
224
- merged.
227
+ leaves the first task standing on the main branch.
225
228
  - **The epic card moves to in progress by the same turn that takes its first task.** The owner
226
- follows the epic by one card, and one left where the epic was declared reads as never started.
229
+ follows the epic by one card: left where it was declared, the card reads as never started.
227
230
  Nothing checks this yet: the rule `git-workflow` holds the move command and names the gap.
228
231
  - **The next task is taken from the epic plan, and the queue list is asked only where there is no
229
232
  epic.** By a list of numbers someone else's epic cannot be told from one's own.
@@ -242,9 +245,8 @@ flowchart TD
242
245
  arrangements: each branch from the epic branch, or a stack — each from the previous. The
243
246
  arrangement written in the plan is the epic's decision, not that of whoever creates the branch.
244
247
  - **The PR of the epic opens when its last folder is taken apart, and not a task earlier.** A folder
245
- left in the epic branch reaches the main branch with it: what one branch needed becomes the tree's
246
- for good. Until then the epic branch is not offered to a person at all — the merge button on it
247
- means the whole epic.
248
+ left in the epic branch reaches the main branch with it. Until then the epic branch is not
249
+ offered to a person at all — the merge button on it means the whole epic.
248
250
  - **The epic plan lies where it is found without the network and after the merge.** The card does
249
251
  not hold the task order, and the task folder dies with the merge; the directory — in the rule's
250
252
  companion. What the owner names along the way is appended there by the turn that accepted it.
@@ -259,12 +261,11 @@ flowchart TD
259
261
  - **The review's findings wait for the owner, and only the digest of observations leaves for the
260
262
  package.** A proposal sent unreviewed becomes the work of someone who did not order it. The digest
261
263
  is always sent: it says what was used and is never an opinion.
262
- - **The cheap closing step goes before the costly one, and the run — after the merge.** Merging the
263
- agreement and bringing the texts up to date cost minutes, the run costs the session window; a run
264
+ - **The cheap closing step goes before the costly one, and the run — after the merge.** A run
264
265
  before the merge checks what will not reach main.
265
266
  - **The agreement merges into the domain spec by one of the last commits of the branch, before the
266
- PR opens.** By then the code is written, the bindings are known, and the `proposed/` directory
267
- never appears in main. What is ready to merge is listed by `npm run check:specs`.
267
+ PR opens.** By then the bindings are known, and `proposed/` never appears in main. What is ready
268
+ to merge is listed by `npm run check:specs`.
268
269
  - **The folder of a closed task is taken apart, not moved whole.** What explains a decision goes to
269
270
  `docs/archive/`; the rest is deleted. One not taken apart is caught by the work queue audit.
270
271
  - **Opening the PR and lifting the draft are refused while the branch carries its task folder.** A
@@ -156,6 +156,11 @@ flowchart TD
156
156
  silently allows what the tree does not have, and the next reader takes it for a current
157
157
  explanation. Not every list has a dead-entry check, so it is removed by the same change that
158
158
  removes the place that caused it.
159
+ - **A new check's list is written together with the check for a dead entry in it.** The article
160
+ above leaves the removal to whoever removes the place, and it is kept by memory: an entry whose
161
+ place is gone silently allows what the tree no longer has. A check that reads its own list also
162
+ compares it with what it found and refuses on an entry nothing answers to — then a dead line
163
+ costs the same as a new violation and does not wait for a reader.
159
164
  - **Red has an assigned action, and a second rerun is not part of it.** Red comes in two kinds,
160
165
  and in the list of runs they look the same: a hosting refusal on the preparation step is cured
161
166
  by a rerun, a defect of the branch is not cured by it at all. The assigned action is one: first
@@ -176,11 +181,21 @@ flowchart TD
176
181
  them drifts from the original silently, and both sides stay green: one writes under its value,
177
182
  the other looks under its own. This is checked by a scenario that computes the value both ways
178
183
  and compares them, not by one scenario on each side.
184
+ - **A field of an answer the whole application shares is checked at the place of assembly, not
185
+ beside one operation.** A test next to an operation sees what that operation returned, while the
186
+ answer is built elsewhere: every such test stays green when the field reaches no answer at all.
187
+ The check goes where the body is assembled, or walks the whole set of operations at once.
179
188
  - **A test asserting absence is green even when it looks for the wrong thing.** There is no match
180
189
  for the right text, nor for a typo in the sample, nor for a renamed key — nothing tells them
181
190
  apart by the run's colour. So a negative assertion goes paired with a positive one: first it is
182
191
  checked that the place sought is found at all, and only then that it lacks what must not be
183
192
  there.
193
+ - **A test about a value's absence is built on a value that cannot exist, not on one that is
194
+ merely not filled in yet.** A test that took a real dictionary key as "the untranslated one" is
195
+ green only while nobody translates it: filling the dictionary turns the fallback assertion red,
196
+ and the red points at the fill, not at the test. The value for such a test is made up on the
197
+ spot and by shape cannot enter the set. It is cast into the key type at the call site: a full
198
+ record stays full, and the case keeps its meaning after any fill.
184
199
  - **A count taken over a run's output says nothing until the run is known to have reached the step
185
200
  counted.** A build, an install and a suite refuse at preparation steps of their own —
186
201
  configuration parsing, dependency resolution, path resolution — and such a refusal carries the