@rt-tools/agent-kit 0.36.0 → 0.37.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.
- package/assets/checks/board-pull-state.github.mjs +82 -13
- package/assets/checks/board.github.mjs +1 -1
- package/assets/checks/check-board.github.mjs +20 -12
- package/assets/checks/check-specs.mjs +2 -2
- package/assets/checks/epic-table.github.mjs +4 -3
- package/assets/checks/lib-common.mjs +10 -2
- package/assets/checks/lib-domains.mjs +1 -1
- package/assets/checks/lib-manifests.mjs +34 -2
- package/assets/checks/push-inputs.mjs +401 -0
- package/assets/checks/push-trace.mjs +108 -0
- package/assets/checks/rt-kit-checks.config.mjs +17 -2
- package/assets/checks/spec-anchors.mjs +4 -4
- package/assets/checks/spec-contract.mjs +5 -5
- package/assets/commands/next-session.md +3 -1
- package/assets/commands/night.md +28 -18
- package/assets/defaults/project.sh +37 -8
- package/assets/defaults/push.sh +23 -0
- package/assets/defaults/turn-map.md +10 -6
- package/assets/docs/GLOSSARY.md +3 -1
- package/assets/hooks/epic-stop-guard.sh +62 -15
- package/assets/hooks/git-guard-push-ahead.sh +31 -1
- package/assets/hooks/git-guard-push-marks.sh +173 -29
- package/assets/hooks/git-guard-push-tests.sh +22 -3
- package/assets/hooks/handoff-entry-guard.sh +2 -2
- package/assets/hooks/pre-push.sh +6 -0
- package/assets/hooks/push-set.sh +29 -4
- package/assets/hooks/task-flow-context.sh +15 -4
- package/assets/hooks/task-flow-guard.sh +4 -3
- package/assets/hooks/turn-exit-epic.sh +1 -1
- package/assets/hooks/turn-exit-guard.sh +8 -8
- package/assets/hooks/turn-exit-role.sh +45 -0
- package/assets/laws/work-conduct.md +9 -8
- package/assets/patterns/autonomous-work-run.md +35 -10
- package/assets/patterns/browser-verification-measure.md +10 -20
- package/assets/patterns/browser-verification-stand.md +30 -42
- package/assets/patterns/doc-style-human.md +0 -6
- package/assets/patterns/doc-style-sweep.md +7 -7
- package/assets/patterns/doc-style-trace.md +5 -4
- package/assets/patterns/doc-style-write.md +7 -7
- package/assets/patterns/epic-flow-declare.md +15 -8
- package/assets/patterns/git-workflow-commit.github.md +1 -1
- package/assets/patterns/git-workflow-freshness.md +12 -11
- package/assets/patterns/git-workflow-merge.md +14 -11
- package/assets/patterns/git-workflow-migration.md +4 -2
- package/assets/patterns/git-workflow-pr-body.github.md +1 -1
- package/assets/patterns/git-workflow-pr-ready.md +5 -4
- package/assets/patterns/git-workflow-pr.azure.md +91 -25
- package/assets/patterns/git-workflow-pr.github.md +17 -19
- package/assets/patterns/git-workflow-pr.gitlab.md +75 -29
- package/assets/patterns/git-workflow-restart.md +3 -2
- package/assets/patterns/git-workflow-stack.md +25 -21
- package/assets/patterns/lib-layers-new.md +7 -3
- package/assets/patterns/queue-audit-read.github.md +9 -3
- package/assets/patterns/spec-driven-domain.md +50 -48
- package/assets/patterns/spec-driven-rule.md +18 -19
- package/assets/patterns/status-report-table.github.md +1 -1
- package/assets/patterns/task-flow-archive.md +14 -34
- package/assets/patterns/task-flow-close.md +3 -2
- package/assets/patterns/task-flow-graph.needs-graph.md +98 -0
- package/assets/patterns/task-flow-handoff.md +4 -4
- package/assets/patterns/task-flow-resume.md +56 -20
- package/assets/patterns/task-flow-start.md +3 -4
- package/assets/patterns/testing-e2e.md +14 -18
- package/assets/patterns/testing-unit.md +9 -13
- package/assets/patterns/turn-entry-map.md +13 -3
- package/assets/pitfalls/autonomous-work.md +15 -0
- package/assets/pitfalls/doc-style.md +3 -3
- package/assets/pitfalls/git-workflow.github.md +5 -9
- package/assets/pitfalls/spec-driven.md +9 -7
- package/assets/pitfalls/task-flow.md +14 -25
- package/assets/pitfalls/testing.md +11 -12
- package/assets/pitfalls/turn-conduct.md +6 -6
- package/assets/rules/autonomous-work.md +37 -29
- package/assets/rules/browser-verification.md +27 -22
- package/assets/rules/dependencies.md +3 -3
- package/assets/rules/deploy-flow.azure.md +35 -12
- package/assets/rules/deploy-flow.github.md +10 -6
- package/assets/rules/deploy-flow.gitlab.md +40 -17
- package/assets/rules/doc-style.md +21 -17
- package/assets/rules/epic-flow.md +5 -3
- package/assets/rules/git-workflow.azure.md +140 -122
- package/assets/rules/git-workflow.github.md +7 -8
- package/assets/rules/git-workflow.gitlab.md +128 -117
- package/assets/rules/queue-audit.github.md +5 -3
- package/assets/rules/spec-driven.md +17 -25
- package/assets/rules/status-report.md +5 -3
- package/assets/rules/task-flow.md +33 -15
- package/assets/rules/testing.md +35 -32
- package/assets/rules/turn-conduct.md +26 -24
- package/assets/templates/rule.md +2 -2
- package/assets/traits.json +3 -0
- package/lib/cargo-prose.d.ts +2 -1
- package/lib/cargo-prose.d.ts.map +1 -1
- package/lib/cargo-prose.js.map +1 -1
- package/lib/companion.d.ts +0 -5
- package/lib/companion.d.ts.map +1 -1
- package/lib/companion.js +1 -1
- package/lib/companion.js.map +1 -1
- package/lib/cost.d.ts +0 -8
- package/lib/cost.d.ts.map +1 -1
- package/lib/cost.js +4 -4
- package/lib/cost.js.map +1 -1
- package/lib/hooks-map.d.ts +0 -12
- package/lib/hooks-map.d.ts.map +1 -1
- package/lib/hooks-map.js +2 -25
- package/lib/hooks-map.js.map +1 -1
- package/lib/observations-cargo.d.ts +1 -5
- package/lib/observations-cargo.d.ts.map +1 -1
- package/lib/observations-cargo.js +2 -2
- package/lib/observations-cargo.js.map +1 -1
- package/lib/observations.d.ts +0 -2
- package/lib/observations.d.ts.map +1 -1
- package/lib/observations.js.map +1 -1
- package/lib/order.d.ts +0 -2
- package/lib/order.d.ts.map +1 -1
- package/lib/order.js +0 -4
- package/lib/order.js.map +1 -1
- package/lib/outcomes.d.ts +2 -7
- package/lib/outcomes.d.ts.map +1 -1
- package/lib/outcomes.js +3 -3
- package/lib/outcomes.js.map +1 -1
- package/lib/proposals.d.ts +0 -1
- package/lib/proposals.d.ts.map +1 -1
- package/lib/proposals.js +1 -1
- package/lib/proposals.js.map +1 -1
- package/lib/shipment.d.ts +2 -11
- package/lib/shipment.d.ts.map +1 -1
- package/lib/shipment.fixture.d.ts +0 -3
- package/lib/shipment.fixture.d.ts.map +1 -1
- package/lib/shipment.fixture.js +3 -3
- package/lib/shipment.fixture.js.map +1 -1
- package/lib/shipment.js +2 -2
- package/lib/shipment.js.map +1 -1
- package/lib/traits.d.ts +0 -3
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +2 -2
- package/lib/traits.js.map +1 -1
- package/lib/variants.d.ts +0 -1
- package/lib/variants.d.ts.map +1 -1
- package/lib/variants.js +1 -1
- package/lib/variants.js.map +1 -1
- package/package.json +1 -1
- package/assets/checks/signals/ui-kit.json +0 -11
|
@@ -22,9 +22,9 @@ The rule is `task-flow`; the articles that hold the law stand there.
|
|
|
22
22
|
forbids the permitted work as many times as branches are created before the merge. The refusal
|
|
23
23
|
names the file and is silent about the record belonging to the branch. While the permission lives
|
|
24
24
|
in the repository, the number is appended in every new branch.
|
|
25
|
-
- **The name of another tree is not written into repository files,
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
- **The name of another tree is not written into repository files, and the full path to a sample
|
|
26
|
+
carries it.** So the full path lives in the directory of records that belong to no branch, where
|
|
27
|
+
it is lawful, and the repository holds only a reference without the name.
|
|
28
28
|
- **The line "Waiting for the owner" in the progress outlives the reason it was written for.** It
|
|
29
29
|
lies on disk, enters the context in the next session and reads as the current state — so it is
|
|
30
30
|
removed in the same turn in which the owner answered. Otherwise the wait confirms itself: three
|
|
@@ -75,12 +75,6 @@ The rule is `task-flow`; the articles that hold the law stand there.
|
|
|
75
75
|
session questions the owner anew. The draft got its name from the words of the request, the branch
|
|
76
76
|
from the terminology of the agreement; the same words, yet not the same.
|
|
77
77
|
|
|
78
|
-
- **Waiting on one part of a stage is never a stop of the stage.** The parts that do not depend on
|
|
79
|
-
what is awaited are done in the same turn: to say "acceptance is pending" and touch nothing else
|
|
80
|
-
is a stop of the whole work for a reason that applies to a tenth of it. The rule speaks of the
|
|
81
|
-
task, and "one part is pending" is read by it as "the work is pending" — of five parts of a stage,
|
|
82
|
-
one was waiting.
|
|
83
|
-
|
|
84
78
|
- **A line with a path is never an assignment.** An address names a file, not an action; read as an
|
|
85
79
|
instruction, it gives the session work the owner did not ask for. The same with any line without a
|
|
86
80
|
verb: asking what to do with it is cheaper than writing fifty files past the request.
|
|
@@ -146,9 +140,9 @@ The rule is `task-flow`; the articles that hold the law stand there.
|
|
|
146
140
|
prescribes it.
|
|
147
141
|
|
|
148
142
|
|
|
149
|
-
- **
|
|
150
|
-
|
|
151
|
-
|
|
143
|
+
- **A task of the epic that is not free is not the end of the epic.** Tasks taken by other executors
|
|
144
|
+
leave the epic going on, and the next free task of the same epic is taken; a finished epic is a
|
|
145
|
+
stop with the table of its tasks, rule `turn-conduct`. Which tasks are left is asked by the
|
|
152
146
|
command, not recalled from the handover: a statement in the handed-over text describes the tree
|
|
153
147
|
and the day it was written in.
|
|
154
148
|
- **A closing step of the work does not count as taking the next task.** Moving the task being
|
|
@@ -161,9 +155,9 @@ The rule is `task-flow`; the articles that hold the law stand there.
|
|
|
161
155
|
passes afterwards.
|
|
162
156
|
- **A stack of branches costs more, and its price is named.** A PR into a neighbouring branch does
|
|
163
157
|
not start the pipeline declared for the main base; merging the base closes the next PR as merged
|
|
164
|
-
although its edits are not in
|
|
165
|
-
Tasks that follow one another in code lawfully live as branches from
|
|
166
|
-
edit does not rest on the code of the previous one.
|
|
158
|
+
although its edits are not in the epic branch; a conflict is resolved anew in every branch of the
|
|
159
|
+
stack. Tasks that follow one another in code lawfully live as branches from the epic branch, as
|
|
160
|
+
long as the next edit does not rest on the code of the previous one.
|
|
167
161
|
|
|
168
162
|
- **A find in the middle of a stage feels like part of the current work when the subject is
|
|
169
163
|
adjacent.** It has no sign of its own: before the first edit the find is not in the tree, and
|
|
@@ -171,10 +165,6 @@ The rule is `task-flow`; the articles that hold the law stand there.
|
|
|
171
165
|
conditions is checked, not the feeling — otherwise the two pieces of work lose their separate
|
|
172
166
|
rollback.
|
|
173
167
|
|
|
174
|
-
## Executor behaviour — from incident analyses
|
|
175
|
-
|
|
176
|
-
Moves out of the rule in the next task of the epic.
|
|
177
|
-
|
|
178
168
|
## What stood in the articles
|
|
179
169
|
|
|
180
170
|
Cases and numbers that used to stand next to the rule's articles. No edit decision rests on them:
|
|
@@ -248,11 +238,11 @@ they are for whoever investigates a miss or argues with a guard.
|
|
|
248
238
|
- **A run placed as the first closing step eats the session window.** It costs more than all the
|
|
249
239
|
other steps together: the one who spent it hit the fill threshold on four binding lines — on work
|
|
250
240
|
that would have taken a minute had it come first.
|
|
251
|
-
- **Permission to work outside the assigned epic
|
|
252
|
-
Written into a
|
|
253
|
-
|
|
254
|
-
the
|
|
255
|
-
|
|
241
|
+
- **Permission to work outside the assigned epic lies in the main branch, not in a task branch.**
|
|
242
|
+
Written into a task branch, it leaves with that branch: from a neighbouring one it is invisible,
|
|
243
|
+
and the epic guard refuses exactly the work the owner permitted. Its place is the table of
|
|
244
|
+
assignments in the main branch. The row repeats the owner's word: a number written in by oneself
|
|
245
|
+
is not a permission.
|
|
256
246
|
- **A task moved to another epic is removed from the previous one's set in the same turn.** The move
|
|
257
247
|
is two motions, and done by half it leaves the task in two sets at once: the epic looks unclosed
|
|
258
248
|
with all its work done. The total is written where the set is edited: postponed, it is written
|
|
@@ -263,6 +253,5 @@ they are for whoever investigates a miss or argues with a guard.
|
|
|
263
253
|
cards, one card at a time.
|
|
264
254
|
- **The task order says nothing about how the branches stand**, and the numbers of the created
|
|
265
255
|
tasks return to the order section by the same edit.
|
|
266
|
-
- **A finished epic is named to the owner by the same turn that takes work outside it.**
|
|
267
256
|
- **A retelling of a sample in the grill and in the epic plan is not the sample.**
|
|
268
257
|
- **The review of closed work ends with an edit of the rules layer or a proposal outward.**
|
|
@@ -14,8 +14,9 @@ The rule is `testing`; the articles that hold the law stand there.
|
|
|
14
14
|
decision was written for never fired once. The input shape is taken from the boundary where
|
|
15
15
|
the decision is called — the procedure, the service, the handler — and checked against it, not
|
|
16
16
|
invented next to the test.
|
|
17
|
-
- **A green `nx test <project>` does not mean a single file was executed.** A lib
|
|
18
|
-
`vitest.config.mts`
|
|
17
|
+
- **A green `nx test <project>` does not mean a single file was executed.** A lib with neither
|
|
18
|
+
its own `vitest.config.mts` nor a `test` target on the Angular builder runs nothing — that is
|
|
19
|
+
how the tests of one domain never ran once.
|
|
19
20
|
A lib with a config but without a single `*.spec.ts` passes green because of
|
|
20
21
|
`passWithNoTests: true`, which usually stands in every config of the tree, and by eye the two
|
|
21
22
|
cases are indistinguishable: in both the run succeeds. The share of libs without a single test
|
|
@@ -23,7 +24,7 @@ The rule is `testing`; the articles that hold the law stand there.
|
|
|
23
24
|
two thirds. Before an edit in an unfamiliar lib, check whether it has at least one
|
|
24
25
|
`*.spec.ts`; if not, the first one is created by that same edit, not postponed: there is
|
|
25
26
|
nothing to postpone from, the debt is already accumulated. The count:
|
|
26
|
-
`for d in $(find libs -name
|
|
27
|
+
`for d in $(find libs -name project.json -exec dirname {} \;); do
|
|
27
28
|
[ -z "$(find "$d" -name '*.spec.ts')" ] && echo "$d"; done | wc -l`.
|
|
28
29
|
- **A green coverage summary does not mean the tests pass.** The audit reads test titles and
|
|
29
30
|
matches them to the spec's scenarios; whether a test executes and how it ends, it does not know
|
|
@@ -37,28 +38,26 @@ The rule is `testing`; the articles that hold the law stand there.
|
|
|
37
38
|
browser is installed for a specific version, and after a bump a repeated
|
|
38
39
|
`npx playwright install chromium` is needed. Nine tests failed this way, and it looked like a
|
|
39
40
|
regression of the upgrade.
|
|
40
|
-
- **
|
|
41
|
+
- **A failure in the first run after installing the browser is not written off to the install.** Two failures of the
|
|
41
42
|
end-to-end set repeated neither in a separate run of the same tests nor in a second full one.
|
|
42
|
-
|
|
43
|
+
The output of the first run is read before anything else: a failure that does not repeat in a
|
|
44
|
+
separate run is still a flaky test, not a green one — the next pitfall.
|
|
43
45
|
- **A rerun through the push gate repeats the whole set, not the failed test.** The gate runs
|
|
44
46
|
what the tree's profile listed, whole and from scratch: for the end-to-end set that is minutes,
|
|
45
|
-
and every push attempt costs them anew.
|
|
46
|
-
|
|
47
|
+
and every push attempt costs them anew. A separate rerun of one test is cheap — through the gate
|
|
48
|
+
it no longer is, and "repeat" turns into "push
|
|
47
49
|
until it passes". So the full set is run by hand before the push call, and the gate only
|
|
48
50
|
confirms what is already known. A test that failed in the full set and passed in a separate
|
|
49
51
|
run does not count as green: it is a flaky test, and it is filed as a task in the same turn.
|
|
50
52
|
Running until green carries the sign away together with the failure, and the next session
|
|
51
53
|
meets the same thing as news — with nothing to tell someone else's flakiness from its own
|
|
52
54
|
regression: both cases look the same.
|
|
53
|
-
- An end-to-end test that needs a login is skipped silently without credentials in the
|
|
54
|
-
environment — in the summary it is listed as `skipped`, and the run looks successful. The
|
|
55
|
-
variable names are with the tree.
|
|
56
55
|
- **The flows reference creates no second scenarios.** `docs/E2E_<DOMAIN>_FLOWS.md` holds what is
|
|
57
56
|
not and must not be in the domain spec: the elements' `qa-dataid`, markup states, stand
|
|
58
57
|
pitfalls. Promised behaviour stays a scenario in `scenarios.md`: copied into a second place,
|
|
59
58
|
the copies diverge silently — `npm run check:specs` will not see it.
|
|
60
|
-
-
|
|
61
|
-
|
|
59
|
+
- A dev server does not count as a check: the rule `browser-verification` checks on the
|
|
60
|
+
production build behind the tree's proxy.
|
|
62
61
|
- **A frame that depends on machine load checks the machine, not the layout.** Waiting by a timer
|
|
63
62
|
ends exactly there: on a free machine the set is green whole, on a busy one it fails, and which
|
|
64
63
|
frame did not make it is a matter of chance. It is cured by waiting for an event, not by
|
|
@@ -74,12 +74,12 @@ The rule is `turn-conduct`; the articles that hold the law stand there.
|
|
|
74
74
|
simple — a lawful question is about what the executor does not know, and this one is about
|
|
75
75
|
what they do not feel like.
|
|
76
76
|
|
|
77
|
-
- **The exit guard judges a change to the tree, not the
|
|
78
|
-
anything at all was done in the turn — and a turn in which half of a stage
|
|
79
|
-
other half dropped on a refused command is indistinguishable to it from full
|
|
80
|
-
commits, the tree changed. It
|
|
81
|
-
still holds an action not depending on what the turn
|
|
82
|
-
whoever leads the turn.
|
|
77
|
+
- **The exit guard judges a change to the tree and the plan steps, not what the stage holds beyond
|
|
78
|
+
them.** It asks whether anything at all was done in the turn — and a turn in which half of a stage
|
|
79
|
+
is closed and the other half dropped on a refused command is indistinguishable to it from full
|
|
80
|
+
work: there are commits, the tree changed. It counts the plan steps not done, not what the stage
|
|
81
|
+
still holds outside them. Whether the state still holds an action not depending on what the turn
|
|
82
|
+
waits for is checked by the attention of whoever leads the turn.
|
|
83
83
|
- **A refused permission is never someone else's step, and it does not stop the work.** The
|
|
84
84
|
article about someone else's step is written about what runs by itself and ends without the
|
|
85
85
|
executor: a run, a review, a merge. A permission refused by the environment does not end by
|
|
@@ -12,15 +12,18 @@ owner is not around; here — what it is called in the tree and what changes in
|
|
|
12
12
|
work. The course of work itself — rule `task-flow`, the end of a turn — `turn-conduct`, delivery —
|
|
13
13
|
`git-workflow`: an autonomous session does not cancel them, it narrows them.
|
|
14
14
|
|
|
15
|
+
**Cold part:** `pitfalls.md` next to it — traps already stepped on. Loaded on demand, not together
|
|
16
|
+
with the rule.
|
|
17
|
+
|
|
15
18
|
## What it is called here
|
|
16
19
|
|
|
17
20
|
| In the law | Here |
|
|
18
21
|
| --- | --- |
|
|
19
22
|
| an autonomous session | the owner's request to work without them, stated in words and with a time boundary; started by the command `/night` |
|
|
20
23
|
| a default instead of a question | a "Decisions" line in the grill: what was taken, the reason and the cost of a mistake |
|
|
21
|
-
| work visible from outside | pushing a branch, opening a PR, merging, publishing the package, sending cargo |
|
|
24
|
+
| work visible from outside | pushing a branch, opening a PR, merging, publishing the package, sending cargo; moving a card on the work queue is not among them: the session moves it back itself, and nobody acts on it before morning |
|
|
22
25
|
| a chain | the branch of each next piece of work is created from the branch of the previous one |
|
|
23
|
-
| the morning list | the
|
|
26
|
+
| the morning list | a file the command `/night` creates and every closed work appends to: the work, the branch, what backs it, what it waits for; the last message gives it whole |
|
|
24
27
|
| postponed work | a task that needs the owner's word: its state on the board does not move |
|
|
25
28
|
|
|
26
29
|
## Where it lives
|
|
@@ -33,16 +36,18 @@ rule travels between repositories, and each tree has its own layout.
|
|
|
33
36
|
|
|
34
37
|
```mermaid
|
|
35
38
|
flowchart TD
|
|
36
|
-
A[The owner declared an autonomous session] --> B[A task is taken from the work queue]
|
|
39
|
+
A[The owner declared an autonomous session] --> B[A task is taken from the epic plan, or from the work queue]
|
|
37
40
|
B --> C{The owner's word is needed}
|
|
38
|
-
C -->|Yes| D[The task is
|
|
39
|
-
C -->|No|
|
|
41
|
+
C -->|Yes| D[The task is not taken, the reason goes into the morning list]
|
|
42
|
+
C -->|No| H{The readiness sign can be named as a command}
|
|
43
|
+
H -->|No| D
|
|
44
|
+
H -->|Yes| E[The branch is created from the previous work, not from the base]
|
|
40
45
|
E --> F[Task folder, grill with defaults, plan]
|
|
41
46
|
F --> G[Work by stages; each stage ends with a commit]
|
|
42
|
-
G -->
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
G --> I{Run green}
|
|
48
|
+
I -->|Red is fixed in the same branch| J[The task folder is taken apart; the work stops before the PR]
|
|
49
|
+
I -->|Red cannot be fixed, or the owner's word is needed| X[The work stops: the card goes back, the list says the branch is not merged]
|
|
50
|
+
X --> K
|
|
46
51
|
J --> K{The night is not over}
|
|
47
52
|
K -->|Yes| B
|
|
48
53
|
K -->|No| L[Morning list: what was done, where it lies, what backs it, what it waits for]
|
|
@@ -64,42 +69,45 @@ flowchart TD
|
|
|
64
69
|
rewritten into the command, the order would become a second source and diverge from the first
|
|
65
70
|
silently.
|
|
66
71
|
- **The branch of the next work is created from the previous one, not from main.** The first — from
|
|
67
|
-
|
|
68
|
-
|
|
72
|
+
the epic branch, or from main where the work has no epic; each next — from the tip of the
|
|
73
|
+
previous: `git checkout -b <КЛЮЧ>-<номер>-<slug> <прошлая-ветка>`. The owner merges them in turn
|
|
74
|
+
from the bottom up, and each PR stands on the previous one. A night work stops in the state
|
|
75
|
+
`папка-разобрана`: the PR is opened in the morning. A base that moved during the night — main or
|
|
76
|
+
the epic branch — is merged into the previous branch locally before the next branch is created:
|
|
77
|
+
a delivery check refuses a base without it, and the fix it names needs a push.
|
|
69
78
|
- **Nothing goes outside during the night.** No push, no PR, no merge, no publishing, no sending
|
|
70
79
|
cargo to the intake: all of it is visible to others, and a person cancels it. Cargo marks that
|
|
71
80
|
need a merge wait too — they assert what is not yet in main.
|
|
72
81
|
- **A task that needs the owner's word is not taken at all.** Its state on the board does not move:
|
|
73
|
-
a task taken and postponed looks
|
|
82
|
+
a task taken and postponed halfway looks done, and the next session does not come back to it. A
|
|
83
|
+
task that runs into the owner's word halfway stops the way unfixable red does.
|
|
74
84
|
- **A default is written where the owner's answer would have been written.** As a line in the grill:
|
|
75
85
|
what was taken, why and what a mistake will cost. A silent default cannot be told from knowledge.
|
|
76
86
|
- **The readiness sign is named as a command before the stage begins.** The executor's look confirms
|
|
77
87
|
nothing in an autonomous session: there is nobody to check it until morning.
|
|
78
88
|
- **A red run is fixed in the same branch, not postponed.** Postponed, it reaches the owner together
|
|
79
|
-
with a branch that cannot be merged.
|
|
89
|
+
with a branch that cannot be merged. Red that cannot be made green stops this work: its card goes
|
|
90
|
+
back to its former column, its line in the list says the branch is not merged, and the next work
|
|
91
|
+
branches from the last green branch of the chain — the stopped one leaves the merge order.
|
|
80
92
|
- **A guard's refusal is a work step, not the end of the session.** It names what was skipped; the
|
|
81
|
-
skipped is done, and the work goes on.
|
|
82
|
-
|
|
93
|
+
skipped is done, and the work goes on. A refusal that demands an action visible from outside is
|
|
94
|
+
not carried out at night: the work stops before that step, and the list names what it waits for.
|
|
95
|
+
Bypassing a guard stays forbidden in an autonomous session too.
|
|
83
96
|
- **The morning list is written along the way, not recalled at the end.** Each closed piece of work
|
|
84
|
-
appends its line: the night is longer than the window
|
|
85
|
-
|
|
97
|
+
appends its line: the night is longer than the window. A broken night is resumed from the list
|
|
98
|
+
file, which the command does not write over.
|
|
86
99
|
|
|
87
100
|
## What of the law is not here
|
|
88
101
|
|
|
89
|
-
Nothing checks the session's time boundary: the command
|
|
90
|
-
|
|
91
|
-
guard
|
|
102
|
+
Nothing checks the session's time boundary: the command writes it into the head of the list, and
|
|
103
|
+
the session ends at it or by the owner's word; a queue emptied earlier ends it with the list. A
|
|
104
|
+
turn-exit guard that holds a working turn under an open epic does not know the boundary either:
|
|
105
|
+
the command names the lawful last turn. The
|
|
106
|
+
ban on what is visible from outside, the chain's base, a written default and a readiness command
|
|
107
|
+
named before the stage are held the same way — by the rule, not by a guard: the push command is no
|
|
108
|
+
different from the one made by day.
|
|
92
109
|
|
|
93
110
|
## Patterns
|
|
94
111
|
|
|
95
112
|
- `autonomous-work-run` — the ready-made night cycle: the chain of branches, writing a default, the
|
|
96
113
|
morning list, handling a guard's refusal.
|
|
97
|
-
|
|
98
|
-
## Pitfalls
|
|
99
|
-
|
|
100
|
-
- **A branch created from main by habit breaks the chain.** This shows only to the owner and only at
|
|
101
|
-
the second merge; it is fixed by re-creating the branch while the work has not gone far.
|
|
102
|
-
- **A task postponed without a line in the list is lost.** In the morning it is seen neither on the
|
|
103
|
-
board nor in the branches: it looks simply not taken.
|
|
104
|
-
- **A default written in the commit body does not reach the owner.** They read the list and the task
|
|
105
|
-
folder, not the branch history.
|
|
@@ -37,10 +37,12 @@ flowchart TD
|
|
|
37
37
|
B -->|Yes| C[What exactly answers is found out]
|
|
38
38
|
B -->|No| D{Who raises the stand}
|
|
39
39
|
C --> E{The very application answers}
|
|
40
|
-
E -->|Yes| F[A second instance is not raised]
|
|
41
|
-
E -->|
|
|
40
|
+
E -->|Yes, built from this branch| F[A second instance is not raised]
|
|
41
|
+
E -->|Yes, built from another branch| Y[It is left alone, and the stand is raised on a free port]
|
|
42
|
+
E -->|No, a leftover of an earlier run| T[What took the port is stopped by process id; a refused stop — the stand goes on a free port]
|
|
42
43
|
T --> D
|
|
43
|
-
|
|
44
|
+
Y --> D
|
|
45
|
+
D -->|Owner| U[They are told at once, and the check waits for their stand: the guard refuses the agent]
|
|
44
46
|
D -->|Agent| V[The stand is raised]
|
|
45
47
|
U --> G[The driver drives the browser on the pinned profile]
|
|
46
48
|
V --> G
|
|
@@ -64,14 +66,16 @@ flowchart TD
|
|
|
64
66
|
it is found out who answers on the port. An instance raised anew answers with its own build, not
|
|
65
67
|
the one under check. Who raises the stand — the owner or the agent — is said in the tree's names.
|
|
66
68
|
A taken port discovered late means the stand already exists: what was started on top of it is
|
|
67
|
-
stopped by process id, not by command name — both instances share the same one.
|
|
68
|
-
|
|
69
|
+
stopped by process id, not by command name — both instances share the same one. The answering
|
|
70
|
+
instance is used only when it is built from the branch of this edit; otherwise the stand is
|
|
71
|
+
raised on a free port.
|
|
72
|
+
- **The browser is driven by one driver on the pinned profile.** The other ways in — a second driver,
|
|
69
73
|
`open`, `osascript`, launching the binary — do not ask the pinned profile at all.
|
|
70
|
-
- **A browser raised by a library from inside a script is the same
|
|
74
|
+
- **A browser raised by a library from inside a script is the same as launching the binary.**
|
|
71
75
|
The command line does not show it at all. There stand the interpreter name and a file path, and
|
|
72
76
|
the driving lies inside the file itself. So what is judged is the content of the file being run,
|
|
73
77
|
and the code passed as an argument instead of a file. A rule that judged one command line promised
|
|
74
|
-
more than it checked, and the profile was bypassed
|
|
78
|
+
more than it checked, and the profile was bypassed this way twice in one session.
|
|
75
79
|
- **The browser choice goes stale and needs a repeated call.** A choice made at the start of the
|
|
76
80
|
session does not hold: after a pause the next call opens a tab in another profile silently.
|
|
77
81
|
- **A refused profile choice ends the work with the browser; it does not start a search for a
|
|
@@ -86,9 +90,9 @@ flowchart TD
|
|
|
86
90
|
does not count as permission to work past the profile. An executor who got empty output from the
|
|
87
91
|
helper names that to the owner and does not drive the browser: the tab would open in the profile
|
|
88
92
|
the extension took for active, and which profile that is nobody knows.
|
|
89
|
-
- **A screen behind sign-in is checked on a stand with a
|
|
90
|
-
|
|
91
|
-
|
|
93
|
+
- **A screen behind sign-in is checked on a stand, not with a live account.** The application gets
|
|
94
|
+
the sign-in as a person gives it, through the form, with the stand's seeded account. A
|
|
95
|
+
substituted sign-in answer is the fallback where no sign-in service runs next to the stand. Asking a person
|
|
92
96
|
to do a step of the check — type a password, open a tab, press a button — means a wrongly chosen
|
|
93
97
|
path, not a lack of rights on the executor's side.
|
|
94
98
|
- **A move of people into a sign-in system is checked by signing in as a moved person.** The stand
|
|
@@ -98,7 +102,8 @@ flowchart TD
|
|
|
98
102
|
- **Changing the number of elements in a container is a layout edit.** It touches no styles, so it
|
|
99
103
|
reads as a markup edit, and the check shrinks to response codes. The pages answer in every locale,
|
|
100
104
|
and the document is already twice the viewport width. It is closed by a measurement — document
|
|
101
|
-
width against viewport width
|
|
105
|
+
width against viewport width at every layout threshold of the tree, both sides of each — not by
|
|
106
|
+
a look at a screenshot: a screenshot
|
|
102
107
|
shows what fit into the frame. A row with no wrapping and no narrow layout, grown from four
|
|
103
108
|
elements to eight, held a horizontal scrollbar on every page of the site for forty-four minutes of
|
|
104
109
|
production.
|
|
@@ -132,7 +137,7 @@ flowchart TD
|
|
|
132
137
|
edited for one page changes the rest under it, and those pages show in no diff. The list of screens
|
|
133
138
|
is read from what the frame shows, not from the page the task named, and the suite that walks them
|
|
134
139
|
runs before the push. The one page checked reads as the whole edit checked.
|
|
135
|
-
- **The work branch keeps the tip of
|
|
140
|
+
- **The work branch keeps the tip of its base merged in the whole time, not only before delivery.** A
|
|
136
141
|
branch that has fallen behind builds into a stand with neither others' edits nor one's own
|
|
137
142
|
neighbouring ones. What is shown on it describes a tree nobody has. The tip is pulled in when its
|
|
138
143
|
movement became known, not when the work ended.
|
|
@@ -171,17 +176,17 @@ flowchart TD
|
|
|
171
176
|
either — it holds what was fixed in that hour; the set is taken from what the work is accepted
|
|
172
177
|
by and is written before the edit.
|
|
173
178
|
|
|
174
|
-
A conclusion about layout is backed by a number: "looks fine" is never a check result.
|
|
175
|
-
|
|
179
|
+
A conclusion about layout is backed by a number: "looks fine" is never a check result. How to
|
|
180
|
+
measure is covered in pattern `browser-verification-measure`.
|
|
176
181
|
|
|
177
182
|
## What of the law is not here
|
|
178
183
|
|
|
179
|
-
|
|
180
|
-
|
|
184
|
+
Nothing guards that a conclusion about layout is backed by a number: a check result written as
|
|
185
|
+
"looks fine" passes every check of the tree.
|
|
181
186
|
|
|
182
187
|
## Patterns
|
|
183
188
|
|
|
184
|
-
- `browser-verification-stand` —
|
|
189
|
+
- `browser-verification-stand` — a stand from the production build, signing in to a closed
|
|
185
190
|
application, sorting out a port.
|
|
186
191
|
- `browser-verification-measure` — measurement instead of a look, pitfalls of the `computer` tool.
|
|
187
192
|
|
|
@@ -215,11 +220,11 @@ frontend-application law: such access compiles and fails only when the page is s
|
|
|
215
220
|
hash (`main.js`). A divergence between `curl` and the page after hydration is a reason to rebuild,
|
|
216
221
|
not to look for a defect in the code. Nor can "there is no such route" be concluded from here:
|
|
217
222
|
check against the route declaration.
|
|
218
|
-
- **A cache explains a divergence but does not confirm it.**
|
|
219
|
-
|
|
223
|
+
- **A cache explains a divergence but does not confirm it.** The build tool's dependency cache holds
|
|
224
|
+
only installed packages, none of the repository code. The conclusion "no defect, it is the
|
|
220
225
|
cache" closes the investigation, so it is accepted only after a check on a clean build. Three
|
|
221
226
|
rounds went on a stuck event feed panel while the defect lay in the outlet teardown.
|
|
222
|
-
- **A caching build step without declared outputs
|
|
227
|
+
- **A caching build step without declared outputs gives the old build silently.** The cache hit happens,
|
|
223
228
|
and there is nothing to restore: the builder does not run, and the build directory keeps what lay
|
|
224
229
|
there from last time. The stand raises that build, and the application behaves like code that is
|
|
225
230
|
not in the tree. The pitfall above is about another cache: that one explains a divergence, this
|
|
@@ -239,8 +244,8 @@ frontend-application law: such access compiles and fails only when the page is s
|
|
|
239
244
|
Tests click by `qa-dataid` and stay green even when a gap shifted, a size vanished and a row got a
|
|
240
245
|
different height. They check transitions, not looks. A pair of screenshots is too little here too
|
|
241
246
|
— every screen this package draws is looked at in turn.
|
|
242
|
-
- **
|
|
243
|
-
image
|
|
247
|
+
- **A server has three launch paths, and they are checked separately:** the local command, the
|
|
248
|
+
image and the production composition; the companion names their files. A variable set in the
|
|
244
249
|
check command says nothing about the image: the production composition has it, while a manual run
|
|
245
250
|
of the same image goes without it. The paths are listed before the check, not after one of them
|
|
246
251
|
matched.
|
|
@@ -71,9 +71,9 @@ flowchart TD
|
|
|
71
71
|
|
|
72
72
|
## What of the law is not here
|
|
73
73
|
|
|
74
|
-
Nobody checks that the declared versions match the snapshot: `--frozen-lockfile`
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
Nobody checks before the push that the declared versions match the snapshot: `--frozen-lockfile`
|
|
75
|
+
stands in the pipeline or in the rollout, and both come after the push. Ranges are not checked
|
|
76
|
+
either: one `^` in `package.json` passes every check of the tree.
|
|
77
77
|
|
|
78
78
|
## Patterns
|
|
79
79
|
|
|
@@ -43,7 +43,7 @@ flowchart TD
|
|
|
43
43
|
G --> H[Old images are removed, the last three sha stay as rollback depth]
|
|
44
44
|
H --> I{Production answers with what was rolled out}
|
|
45
45
|
I -->|No| J[Rollout analysis: the restart goes by sha, not by the latest tag]
|
|
46
|
-
I -->|Yes| K[The work queue audit
|
|
46
|
+
I -->|Yes| K[The work queue audit counts the lag of the main branch from the last successful rollout]
|
|
47
47
|
C --> K
|
|
48
48
|
J --> K
|
|
49
49
|
```
|
|
@@ -69,6 +69,10 @@ flowchart TD
|
|
|
69
69
|
the stack acts only on a container raised by that stack; a manual run of the same image goes
|
|
70
70
|
with an empty value, and empty here means localhost — with all the debugging defaults it allows.
|
|
71
71
|
The image default is set in the image itself.
|
|
72
|
+
- **The image carries every file its own startup steps read.** The storage schema, the client
|
|
73
|
+
settings, the environment template — everything lying next to it in the repository does not get
|
|
74
|
+
inside the image by itself, and the build answers only whether it built. The failure comes on the
|
|
75
|
+
first startup, that is, already on the rolled-out one.
|
|
72
76
|
- **Images are rolled out by commit sha, not by the tag "latest".** The tag in the registry lags
|
|
73
77
|
behind the main branch, and production silently falls back to the previous version while still
|
|
74
78
|
answering.
|
|
@@ -76,6 +80,15 @@ flowchart TD
|
|
|
76
80
|
with a sha is never dangling, and a dangling cleanup does not touch it: in half a year they eat
|
|
77
81
|
the server disk whole. Three sha is the rollback depth, and fewer cannot be taken: a breakage
|
|
78
82
|
noticed two rollouts later has nowhere left to roll back to.
|
|
83
|
+
- **A production breakage that has happened is analysed in a record, not by a fix alone.** The fix
|
|
84
|
+
leaves as a branch, the work item closes — and the reason the application stopped stays the knowledge
|
|
85
|
+
of one executor. The record names what broke, how it became visible and why the fix fixes the
|
|
86
|
+
cause and not the sign; it lies among the records of what has happened, and the directory is named
|
|
87
|
+
by the companion of the wording rule.
|
|
88
|
+
- **An edit to the rollout itself is run before the merge, and "I will check after the merge" is
|
|
89
|
+
never the executor's decision.** There is no other way to run it: it executes only where it rolls
|
|
90
|
+
out. When there is no way to run it by hand either, that is said to the owner in words, together
|
|
91
|
+
with what the check would cost, and the decision to postpone is theirs.
|
|
79
92
|
- **The description of production is edited together with the production stack.** The layout,
|
|
80
93
|
the request path, the gates and the backups are described in texts outside the rules layers, and
|
|
81
94
|
neither linter nor build reads them: the divergence piles up silently, and these texts are read
|
|
@@ -88,6 +101,13 @@ flowchart TD
|
|
|
88
101
|
- **A PR is checked before the merge by the same pipeline as the main branch.** Checks and image
|
|
89
102
|
builds go on the PR check pipeline, the rollout does not: it is held by the main-branch
|
|
90
103
|
condition on its step, and a PR image does not leave for the registry.
|
|
104
|
+
- **Which PRs the pipeline wakes for is named by the tree, and it sets the order of handing in.** A
|
|
105
|
+
filter by the target branch is not a detail of the settings: a PR the pipeline does not wake for
|
|
106
|
+
has nothing to wait for, and a draft on it costs a locked button and an extra turn. A tree with a
|
|
107
|
+
single runner pays a whole run for every PR into an epic branch, and pays it for checks the push
|
|
108
|
+
gate has already run on the same machine; a tree with runners to spare buys the earlier refusal.
|
|
109
|
+
The answer lives in the branch policies — a build validation on the target branch — and what is
|
|
110
|
+
lost by it is written in the companion next to this rule.
|
|
91
111
|
- **A package the tree's own applications install is released from a tip their end-to-end suites
|
|
92
112
|
went green on.** Where the release pipeline runs none of these suites, a PR merged past the
|
|
93
113
|
pipeline reaches them first after the release. When a PR without a green run of its own entered
|
|
@@ -109,7 +129,7 @@ flowchart TD
|
|
|
109
129
|
the owner's word replaces a check only when the owner was told the check did not run.
|
|
110
130
|
- **The divergence of migrations from the schema is measured on a shadow storage, not on the one
|
|
111
131
|
the pusher works with.** That one lawfully carries the trace of any unfinished branch, and a
|
|
112
|
-
check against it would hold up someone else's edit. The gate and the
|
|
132
|
+
check against it would hold up someone else's edit. The gate and the pipeline call one and the
|
|
113
133
|
same check — otherwise "matched" would mean different things in two places.
|
|
114
134
|
- **Skipping the schema audit is lawful while the branch has not touched the storage.** A stopped
|
|
115
135
|
database is a state of the machine, not a reason to refuse a documentation push; but a branch
|
|
@@ -120,19 +140,22 @@ flowchart TD
|
|
|
120
140
|
is not yet a rollout: a failed one leaves the main branch ahead of the server, and merges on top
|
|
121
141
|
go the same way. The lag is counted from the last successful rollout and does not tell "not
|
|
122
142
|
started" from "failed".
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
143
|
+
- **A check standing in the gate set refuses when it could not do its work.** "Nowhere to check" and
|
|
144
|
+
"the check is broken" are different things: the first the tree names itself — no subject, no
|
|
145
|
+
address set, the service not answering — and each such exit returns the skip code with its own
|
|
146
|
+
line. The second — a missing package, an empty name in the settings, an unexpected exception —
|
|
147
|
+
returns a non-zero code and says that the check itself broke, not the subject. A shared zero for
|
|
148
|
+
both makes a broken check indistinguishable from a passed one: the schema-to-migrations audit
|
|
149
|
+
stood like that in the gate set, checking nothing, and hid three causes at once behind its zero.
|
|
150
|
+
- **The merge button and the manual rollout run get their requirement at the host.** Both are
|
|
151
|
+
pressed at the host, where the guards of the session do not stand. The requirement is set at the
|
|
152
|
+
host — a branch policy or an approval on the environment — or is named to the one who presses, in
|
|
153
|
+
the section of the PR description about the remaining step, before the press.
|
|
131
154
|
|
|
132
155
|
## What of the law is not here
|
|
133
156
|
|
|
134
|
-
The state of production is not visible to the machine: the work queue audit
|
|
135
|
-
|
|
157
|
+
The state of production is not visible to the machine: the work queue audit counts how far the
|
|
158
|
+
main branch has gone from the last successful rollout, and nobody asks whether production answers with the
|
|
136
159
|
build it rolled out. That is held by whoever rolled out.
|
|
137
160
|
|
|
138
161
|
Nothing counts the completeness of the registry cleanup: the script keeps the last three sha,
|
|
@@ -43,7 +43,7 @@ flowchart TD
|
|
|
43
43
|
G --> H[Old images are removed, the last three sha stay as rollback depth]
|
|
44
44
|
H --> I{Production answers with what was rolled out}
|
|
45
45
|
I -->|No| J[Rollout analysis: the restart goes by sha, not by the latest tag]
|
|
46
|
-
I -->|Yes| K[The work queue audit
|
|
46
|
+
I -->|Yes| K[The work queue audit counts the lag of the main branch from the last successful rollout]
|
|
47
47
|
C --> K
|
|
48
48
|
J --> K
|
|
49
49
|
```
|
|
@@ -168,7 +168,7 @@ flowchart TD
|
|
|
168
168
|
the owner's word replaces a check only when the owner was told the check did not run.
|
|
169
169
|
- **The divergence of migrations from the schema is measured on a shadow storage, not on the one
|
|
170
170
|
the pusher works with.** That one lawfully carries the trace of any unfinished branch, and a
|
|
171
|
-
check against it would hold up someone else's edit. The gate and the
|
|
171
|
+
check against it would hold up someone else's edit. The gate and the pipeline call one and the
|
|
172
172
|
same check — otherwise "matched" would mean different things in two places.
|
|
173
173
|
- **Skipping the schema audit is lawful while the branch has not touched the storage.** A stopped
|
|
174
174
|
database is a state of the machine, not a reason to refuse a documentation push; but a branch
|
|
@@ -182,17 +182,21 @@ flowchart TD
|
|
|
182
182
|
|
|
183
183
|
- **A check standing in the gate set refuses when it could not do its work.** "Nowhere to check"
|
|
184
184
|
and "the check is broken" are different things: the first the tree names itself — no subject, no
|
|
185
|
-
address set, the service not answering — and each such exit returns
|
|
185
|
+
address set, the service not answering — and each such exit returns the skip code with its own line. The
|
|
186
186
|
second — a missing package, an empty name in the settings, an unexpected exception — returns a
|
|
187
187
|
non-zero code and says that the check itself broke, not the subject. A shared zero for both makes
|
|
188
188
|
a broken check indistinguishable from a passed one: the schema-to-migrations audit stood like that
|
|
189
189
|
in the gate set, checking nothing, and hid three causes at once behind its zero.
|
|
190
|
+
- **The merge button and the manual rollout run get their requirement at the host.** Both are
|
|
191
|
+
pressed at the host, where the guards of the session do not stand. The requirement is set at the
|
|
192
|
+
host — a required status check, a protected branch or a protected environment — or is named to the
|
|
193
|
+
one who presses, in the section of the PR description about the remaining step, before the press.
|
|
190
194
|
|
|
191
195
|
## What of the law is not here
|
|
192
196
|
|
|
193
|
-
The state of production is not visible to the machine: the work queue audit
|
|
194
|
-
|
|
195
|
-
build it rolled out. That is held by whoever rolled out.
|
|
197
|
+
The state of production is not visible to the machine: the work queue audit counts how far the
|
|
198
|
+
main branch has gone from the last successful rollout, and nobody asks whether production answers
|
|
199
|
+
with the build it rolled out. That is held by whoever rolled out.
|
|
196
200
|
|
|
197
201
|
Nothing counts the completeness of the registry cleanup: the script keeps the last three sha,
|
|
198
202
|
and a miss in its selection shows only when the server disk has run out.
|