@rt-tools/agent-kit 0.37.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 +1 -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 +4 -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 +26 -15
- package/assets/rules/testing.md +35 -32
- package/assets/rules/turn-conduct.md +26 -24
- package/assets/templates/rule.md +2 -2
- 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
|
@@ -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.
|
|
@@ -9,7 +9,7 @@ description: Rule under the delivery law for a tree on GitLab — the part about
|
|
|
9
9
|
|
|
10
10
|
Rule under the law `docs/constitution/delivery.md` — the part of it about production. The law
|
|
11
11
|
says what must be true; here — by which technique it is held in a tree that lives on GitLab.
|
|
12
|
-
Working with the queue, the branch, the commit and the
|
|
12
|
+
Working with the queue, the branch, the commit and the MR — the rule `git-workflow` under the
|
|
13
13
|
same law.
|
|
14
14
|
|
|
15
15
|
## What it is called here
|
|
@@ -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
|
```
|
|
@@ -70,6 +70,10 @@ flowchart TD
|
|
|
70
70
|
the stack acts only on a container raised by that stack; a manual run of the same image goes
|
|
71
71
|
with an empty value, and empty here means localhost — with all the debugging defaults it allows.
|
|
72
72
|
The image default is set in the image itself.
|
|
73
|
+
- **The image carries every file its own startup steps read.** The storage schema, the client
|
|
74
|
+
settings, the environment template — everything lying next to it in the repository does not get
|
|
75
|
+
inside the image by itself, and the build answers only whether it built. The failure comes on the
|
|
76
|
+
first startup, that is, already on the rolled-out one.
|
|
73
77
|
- **Images are rolled out by commit sha, not by the tag "latest".** The tag in the registry lags
|
|
74
78
|
behind the main branch, and production silently falls back to the previous version while still
|
|
75
79
|
answering.
|
|
@@ -77,6 +81,15 @@ flowchart TD
|
|
|
77
81
|
with a sha is never dangling, and a dangling cleanup does not touch it: in half a year they eat
|
|
78
82
|
the server disk whole. Three sha is the rollback depth, and fewer cannot be taken: a breakage
|
|
79
83
|
noticed two rollouts later has nowhere left to roll back to.
|
|
84
|
+
- **A production breakage that has happened is analysed in a record, not by a fix alone.** The fix
|
|
85
|
+
leaves as a branch, the task closes — and the reason the application stopped stays the knowledge
|
|
86
|
+
of one executor. The record names what broke, how it became visible and why the fix fixes the
|
|
87
|
+
cause and not the sign; it lies among the records of what has happened, and the directory is named
|
|
88
|
+
by the companion of the wording rule.
|
|
89
|
+
- **An edit to the rollout itself is run before the merge, and "I will check after the merge" is
|
|
90
|
+
never the executor's decision.** There is no other way to run it: it executes only where it rolls
|
|
91
|
+
out. When there is no way to run it by hand either, that is said to the owner in words, together
|
|
92
|
+
with what the check would cost, and the decision to postpone is theirs.
|
|
80
93
|
- **The description of production is edited together with the production stack.** The layout,
|
|
81
94
|
the request path, the gates and the backups are described in texts outside the rules layers, and
|
|
82
95
|
neither linter nor build reads them: the divergence piles up silently, and these texts are read
|
|
@@ -87,9 +100,16 @@ flowchart TD
|
|
|
87
100
|
does not cover it: that checks the commands, not the pipeline file — the correctness of the file
|
|
88
101
|
itself is read only from the list of pipelines after the push, and the syntax is judged
|
|
89
102
|
separately by the `.gitlab-ci.yml` check in the project.
|
|
90
|
-
- **
|
|
103
|
+
- **An MR is checked before the merge by the same pipeline as the main branch.** Checks and image
|
|
91
104
|
builds go on the MR pipeline, the rollout does not: it is held by the main-branch
|
|
92
|
-
rule on its step, and
|
|
105
|
+
rule on its step, and an MR image does not leave for the registry.
|
|
106
|
+
- **Which MRs the pipeline wakes for is named by the tree, and it sets the order of handing in.** A
|
|
107
|
+
filter by the target branch is not a detail of the settings: an MR the pipeline does not wake for
|
|
108
|
+
has nothing to wait for, and a draft on it costs a locked button and an extra turn. A tree with a
|
|
109
|
+
single runner pays a whole run for every MR into an epic branch, and pays it for checks the push
|
|
110
|
+
gate has already run on the same machine; a tree with runners to spare buys the earlier refusal.
|
|
111
|
+
The answer is written in the pipeline file next to the rule that filters by the target branch,
|
|
112
|
+
together with what is lost by it.
|
|
93
113
|
- **A package the tree's own applications install is released from a tip their end-to-end suites
|
|
94
114
|
went green on.** Where the release pipeline runs none of these suites, an MR merged past the
|
|
95
115
|
pipeline reaches them first after the release. When an MR without a green pipeline of its own
|
|
@@ -105,13 +125,12 @@ flowchart TD
|
|
|
105
125
|
- **The migration chain is run from an empty storage before the merge.** The apply order is
|
|
106
126
|
lexicographic by directory name, and the timestamp is set at creation: a migration from a branch
|
|
107
127
|
started earlier lands before the one it depends on.
|
|
108
|
-
- **A migration without a reverse is merged only after a copy of the production storage, and the
|
|
109
|
-
body names the copy.** Rolling back the image does not bring a dropped column or table back. When
|
|
128
|
+
- **A migration without a reverse is merged only after a copy of the production storage, and the MR description names the copy.** Rolling back the image does not bring a dropped column or table back. When
|
|
110
129
|
the executor cannot reach the server, the owner is told which step is blocked and what opens it:
|
|
111
130
|
the owner's word replaces a check only when the owner was told the check did not run.
|
|
112
131
|
- **The divergence of migrations from the schema is measured on a shadow storage, not on the one
|
|
113
132
|
the pusher works with.** That one lawfully carries the trace of any unfinished branch, and a
|
|
114
|
-
check against it would hold up someone else's edit. The gate and the
|
|
133
|
+
check against it would hold up someone else's edit. The gate and the pipeline call one and the
|
|
115
134
|
same check — otherwise "matched" would mean different things in two places.
|
|
116
135
|
- **Skipping the schema audit is lawful while the branch has not touched the storage.** A stopped
|
|
117
136
|
database is a state of the machine, not a reason to refuse a documentation push; but a branch
|
|
@@ -122,19 +141,23 @@ flowchart TD
|
|
|
122
141
|
is not yet a rollout: a failed one leaves the main branch ahead of the server, and merges on top
|
|
123
142
|
go the same way. The lag is counted from the last successful rollout and does not tell "not
|
|
124
143
|
started" from "failed".
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
144
|
+
- **A check standing in the gate set refuses when it could not do its work.** "Nowhere to check" and
|
|
145
|
+
"the check is broken" are different things: the first the tree names itself — no subject, no
|
|
146
|
+
address set, the service not answering — and each such exit returns the skip code with its own
|
|
147
|
+
line. The second — a missing package, an empty name in the settings, an unexpected exception —
|
|
148
|
+
returns a non-zero code and says that the check itself broke, not the subject. A shared zero for
|
|
149
|
+
both makes a broken check indistinguishable from a passed one: the schema-to-migrations audit
|
|
150
|
+
stood like that in the gate set, checking nothing, and hid three causes at once behind its zero.
|
|
151
|
+
- **The merge button and the manual rollout run get their requirement at the host.** Both are
|
|
152
|
+
pressed at the host, where the guards of the session do not stand. The requirement is set at the
|
|
153
|
+
host — a protected branch, the setting "Pipelines must succeed" or a protected environment — or is
|
|
154
|
+
named to the one who presses, in the section of the MR description about the remaining step,
|
|
155
|
+
before the press.
|
|
133
156
|
|
|
134
157
|
## What of the law is not here
|
|
135
158
|
|
|
136
|
-
The state of production is not visible to the machine: the work queue audit
|
|
137
|
-
|
|
159
|
+
The state of production is not visible to the machine: the work queue audit counts how far the
|
|
160
|
+
main branch has gone from the last successful rollout, and nobody asks whether production answers with the
|
|
138
161
|
build it rolled out. That is held by whoever rolled out.
|
|
139
162
|
|
|
140
163
|
Nothing counts the completeness of the registry cleanup: the script keeps the last three sha,
|
|
@@ -18,9 +18,9 @@ together with the rule.
|
|
|
18
18
|
|
|
19
19
|
| In the law | Here |
|
|
20
20
|
| ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
|
21
|
-
| document | any `.md` outside `docs/archive
|
|
21
|
+
| document | any `.md` outside `docs/archive/` and the task folders, plus code comments, commit bodies and PR descriptions |
|
|
22
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
|
-
| the change a document describes | a pair
|
|
23
|
+
| the change a document describes | a pair `docs-guard` demands: a rule and its companion, a lib and its README; the rest is named by the tree profile, such as a `.proto` and a spec |
|
|
24
24
|
| description of the past | `docs/archive/` — excluded from the path check entirely |
|
|
25
25
|
|
|
26
26
|
## Where it lives
|
|
@@ -119,9 +119,9 @@ flowchart TD
|
|
|
119
119
|
<!-- rt-when: *.md -->
|
|
120
120
|
|
|
121
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
|
|
123
|
-
|
|
124
|
-
guard refuses the edit for lines it does not add. A post-edit hook does not see such a write at
|
|
122
|
+
shell command by its body as new text: the heredoc bodies, and with no heredoc the whole command
|
|
123
|
+
— the pattern being replaced, the old markup, a loop. A one-liner is then one sentence of fifty
|
|
124
|
+
words, and the guard refuses the edit for lines it does not add. A post-edit hook does not see such a write at
|
|
125
125
|
all, and a replacement whose pattern matched nothing exits zero with the file untouched. A
|
|
126
126
|
command that must write a document gets it as a file written by the edit tool beforehand.
|
|
127
127
|
|
|
@@ -136,7 +136,7 @@ flowchart TD
|
|
|
136
136
|
stand in the checks settings, not in the text; a rule at the ceiling takes a new article only
|
|
137
137
|
by folding an argument next to it, or by a split. The description of the past is excluded
|
|
138
138
|
from the count: by design the archive lists what the tree no longer has, and the task folder
|
|
139
|
-
|
|
139
|
+
is taken apart before the PR opens.
|
|
140
140
|
<!-- rt-when: *.md -->
|
|
141
141
|
|
|
142
142
|
- **A file leaving for the description of the past names its former address in its header.**
|
|
@@ -185,12 +185,10 @@ flowchart TD
|
|
|
185
185
|
the run turned red for something other than the branch's change.
|
|
186
186
|
<!-- rt-when: *.md -->
|
|
187
187
|
|
|
188
|
-
- **The removal by expiry travels as a commit of its own.** The check stands in the gate of
|
|
189
|
-
branch and counts age by the calendar, so it refuses whatever branch reaches it first
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
and the PR body names it as unrelated to the work. The lasting cure is moving the check out of the
|
|
193
|
-
commit and push gate into the pipeline of the main branch.
|
|
188
|
+
- **The removal by expiry travels as a commit of its own.** The check stands in the push gate of
|
|
189
|
+
every branch and counts age by the calendar, so it refuses whatever branch reaches it first. A
|
|
190
|
+
task per record is no cure: one expires every day. The prune command
|
|
191
|
+
drops the expired records; they go as a commit of their own, and the PR body names it unrelated.
|
|
194
192
|
<!-- rt-when: *.md -->
|
|
195
193
|
|
|
196
194
|
- **A link to a record of the past in a live text lives exactly until the record's expiry.** The
|
|
@@ -198,11 +196,9 @@ flowchart TD
|
|
|
198
196
|
text that referenced it. A live text names the decision in words, not by the record's address.
|
|
199
197
|
<!-- rt-when: *.md -->
|
|
200
198
|
|
|
201
|
-
- **A diagram is edited by the same change as the text it depicts.**
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
entirely. No check sees this — the diagram is set in words and can be told from the text next
|
|
205
|
-
to it only by reading.
|
|
199
|
+
- **A diagram is edited by the same change as the text it depicts.** A diverged diagram is read
|
|
200
|
+
instead of the text, being shorter, and the work goes by the wrong one. No check sees this: the diagram is set
|
|
201
|
+
in words and is told from the text only by reading.
|
|
206
202
|
<!-- rt-when: *.md -->
|
|
207
203
|
|
|
208
204
|
## Texts for a person
|
|
@@ -274,6 +270,14 @@ held by the author's memory — and the cost of that shows: words from the gloss
|
|
|
274
270
|
live in hook comments and `tools/*.mjs` by the dozen, including the refusal text the guard prints
|
|
275
271
|
to the agent.
|
|
276
272
|
|
|
273
|
+
No check tells a "do later" list in a document from any other list: the law's article about the
|
|
274
|
+
work queue is held by the author, and a task plan leaves with the work.
|
|
275
|
+
|
|
276
|
+
A dropped word is purged from files by a search; in PR titles, commit subjects and task cards
|
|
277
|
+
nothing finds it, and whoever drops the word holds it. Completeness of texts from the side of the
|
|
278
|
+
work is asked by the pattern `doc-style-trace` and, where the rule `task-flow` is laid out, by its
|
|
279
|
+
closing step; no check counts it.
|
|
280
|
+
|
|
277
281
|
## Patterns
|
|
278
282
|
|
|
279
283
|
- `doc-style-write` — how to word: "do" and "don't" examples, rules for comments.
|
|
@@ -7,8 +7,10 @@ description: Rule under the work-conduct law — the epic as the unit of deliver
|
|
|
7
7
|
|
|
8
8
|
# Epics — how it works here
|
|
9
9
|
|
|
10
|
-
Rule under the law `docs/constitution/work-conduct.md`. The law says that
|
|
11
|
-
|
|
10
|
+
Rule under the law `docs/constitution/work-conduct.md`. The law says that a series of tasks is
|
|
11
|
+
declared an epic before the first of them and keeps the order assigned at planning; the law
|
|
12
|
+
`docs/constitution/delivery.md` adds that the main branch takes the epic whole. Here — how a series
|
|
13
|
+
of tasks is held together as one epic. The course of
|
|
12
14
|
one task is rule `task-flow`, the end of a turn is `turn-conduct`, both under the same law.
|
|
13
15
|
|
|
14
16
|
**Requires:** `hooks/tree-assignment-guard.sh`, `checks/tree-assignment.mjs`
|
|
@@ -17,7 +19,7 @@ one task is rule `task-flow`, the end of a turn is `turn-conduct`, both under th
|
|
|
17
19
|
|
|
18
20
|
| In the law | Here |
|
|
19
21
|
| --- | --- |
|
|
20
|
-
| an epic — the unit of delivery | a card in the work queue with the epic label, a branch of its own from the main branch and a plan next to it. The plan holds the
|
|
22
|
+
| an epic — the unit of delivery | a card in the work queue with the epic label, a branch of its own from the main branch and a plan next to it. The plan holds the capability, the tasks and their order |
|
|
21
23
|
| the epic branch | `<КЛЮЧ>-<номер эпика>-<короткий-slug>`; the branches of its tasks are taken from it, and their PRs go into it |
|
|
22
24
|
| the epic plan | a record outside the task folder: the folder dies with the merge, the epic outlives it; the directory — in the rule's companion |
|
|
23
25
|
| who leads which epic | the table of assignments: a row for each working copy, written by the owner |
|