@rt-tools/agent-kit 0.24.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/agents/business-analyst.md +51 -50
- package/assets/agents/conscience.md +37 -35
- package/assets/agents/project-manager.md +49 -48
- package/assets/agents/prose-editor.md +31 -29
- package/assets/agents/qa-engineer.md +50 -48
- package/assets/agents/rules-reviewer.md +63 -58
- package/assets/agents/skill-curator.md +83 -78
- package/assets/agents/spec-critic.md +34 -29
- package/assets/agents/spec-writer.md +35 -32
- package/assets/agents/strict-teacher.md +39 -37
- package/assets/checks/archive-age.mjs +48 -28
- package/assets/checks/archive-prune.mjs +16 -14
- package/assets/checks/board-epics.github.mjs +75 -41
- package/assets/checks/board-folders.mjs +61 -0
- package/assets/checks/board-gh.github.mjs +35 -26
- package/assets/checks/board-long-work.github.mjs +24 -24
- package/assets/checks/board-paths.github.mjs +21 -16
- package/assets/checks/board-runs.github.mjs +45 -43
- package/assets/checks/board-titles.github.mjs +19 -17
- package/assets/checks/board.github.mjs +149 -127
- package/assets/checks/check-archive-age.mjs +23 -19
- package/assets/checks/check-board.github.mjs +172 -164
- package/assets/checks/check-descriptions.mjs +30 -29
- package/assets/checks/check-doc-paths.mjs +91 -88
- package/assets/checks/check-dupes.mjs +84 -80
- package/assets/checks/check-file-size.mjs +74 -71
- package/assets/checks/check-glossary.mjs +47 -37
- package/assets/checks/check-hook-scope.mjs +30 -27
- package/assets/checks/check-lib-layers.mjs +22 -21
- package/assets/checks/check-profile-drift.mjs +48 -43
- package/assets/checks/check-prose-style.mjs +120 -37
- package/assets/checks/check-push-gate.mjs +53 -50
- package/assets/checks/check-reuse.mjs +50 -40
- package/assets/checks/check-schema-drift.mjs +87 -83
- package/assets/checks/check-specs.mjs +155 -134
- package/assets/checks/check-state-next.mjs +66 -52
- package/assets/checks/check-states.mjs +32 -30
- package/assets/checks/check-styles.mjs +52 -51
- package/assets/checks/check-turn-map.mjs +54 -46
- package/assets/checks/lib-boundaries.mjs +32 -30
- package/assets/checks/lib-common.mjs +30 -29
- package/assets/checks/lib-domains.mjs +34 -34
- package/assets/checks/lib-manifests.mjs +17 -15
- package/assets/checks/lib-reexports.mjs +18 -18
- package/assets/checks/rt-kit-checks.config.mjs +174 -142
- package/assets/checks/signals.mjs +43 -39
- package/assets/checks/spec-anchors.mjs +114 -87
- package/assets/checks/spec-common.mjs +128 -84
- package/assets/checks/spec-contract.mjs +30 -30
- package/assets/checks/spec-proposed.mjs +27 -24
- package/assets/checks/spec-scenarios.mjs +51 -28
- package/assets/checks/task-new.github.mjs +85 -56
- package/assets/commands/feedback.md +65 -59
- package/assets/commands/next-session.md +64 -57
- package/assets/commands/skill-curator.md +83 -79
- package/assets/defaults/gate-map.sh +108 -97
- package/assets/defaults/project.sh +225 -185
- package/assets/defaults/shell.sh +73 -68
- package/assets/defaults/turn-map.md +45 -44
- package/assets/docs/GLOSSARY.md +142 -65
- package/assets/hooks/browser-device-id.sh +12 -12
- package/assets/hooks/browser-guard-device-id.sh +30 -28
- package/assets/hooks/browser-guard-no-asking.sh +5 -4
- package/assets/hooks/browser-guard-no-listing.sh +12 -11
- package/assets/hooks/browser-guard-no-other-drivers.sh +48 -42
- package/assets/hooks/browser-guard-require-select.sh +34 -23
- package/assets/hooks/claim-guard.sh +62 -56
- package/assets/hooks/commit-msg.sh +11 -10
- package/assets/hooks/conscience-guard.sh +91 -45
- package/assets/hooks/constitution-index.sh +16 -16
- package/assets/hooks/deny-tail.sh +28 -26
- package/assets/hooks/dev-server-guard.sh +46 -43
- package/assets/hooks/dispatch.sh +60 -46
- package/assets/hooks/docs-guard.sh +100 -91
- package/assets/hooks/exam-guard.sh +105 -93
- package/assets/hooks/git-guard-delivery-conflict.sh +38 -36
- package/assets/hooks/git-guard-delivery-draft.sh +45 -38
- package/assets/hooks/git-guard-delivery-folder.sh +50 -43
- package/assets/hooks/git-guard-delivery-signature.sh +88 -52
- package/assets/hooks/git-guard-delivery.sh +196 -180
- package/assets/hooks/git-guard-main.sh +38 -34
- package/assets/hooks/git-guard-push-tests.sh +99 -87
- package/assets/hooks/glossary-load.sh +23 -22
- package/assets/hooks/grill-gate-ask.sh +12 -11
- package/assets/hooks/grill-gate.sh +94 -87
- package/assets/hooks/guard-note.sh +20 -19
- package/assets/hooks/handoff-entry-guard.sh +26 -24
- package/assets/hooks/handoff-write.sh +74 -67
- package/assets/hooks/hook-input.sh +67 -58
- package/assets/hooks/lint-after-edit.sh +95 -61
- package/assets/hooks/observe.sh +28 -26
- package/assets/hooks/override-write-guard.sh +23 -21
- package/assets/hooks/postmortem-guard.sh +42 -39
- package/assets/hooks/profile-check.sh +22 -20
- package/assets/hooks/proposal-guard.sh +57 -49
- package/assets/hooks/prose-style-guard.sh +19 -17
- package/assets/hooks/qa-dataid-guard.sh +52 -49
- package/assets/hooks/rerun-guard.sh +31 -30
- package/assets/hooks/reuse-first-guard.sh +108 -87
- package/assets/hooks/roles.sh +14 -14
- package/assets/hooks/rule-article.sh +36 -34
- package/assets/hooks/rule-source-guard.sh +47 -42
- package/assets/hooks/skill-gate-layers.sh +59 -57
- package/assets/hooks/skill-gate-rearm.sh +15 -8
- package/assets/hooks/skill-gate.sh +89 -81
- package/assets/hooks/skill-loaded.sh +6 -6
- package/assets/hooks/sql-guard-parse.sh +68 -66
- package/assets/hooks/sql-guard-request.sh +48 -46
- package/assets/hooks/sql-guard-target.sh +57 -51
- package/assets/hooks/sql-guard-write.sh +84 -79
- package/assets/hooks/sql-guard.sh +52 -47
- package/assets/hooks/stand-login-guard.sh +40 -37
- package/assets/hooks/task-context-load.sh +60 -55
- package/assets/hooks/task-flow-context.sh +87 -69
- package/assets/hooks/task-flow-draft-guard.sh +55 -48
- package/assets/hooks/task-flow-guard.sh +67 -64
- package/assets/hooks/turn-entry-load.sh +39 -32
- package/assets/hooks/turn-exit-guard.sh +256 -204
- package/assets/hooks/turn-exit-patterns.sh +53 -0
- package/assets/hooks/utf8.sh +11 -11
- package/assets/hooks/waiting-turn-guard.sh +94 -94
- package/assets/hooks/window-fill-guard.sh +70 -62
- package/assets/hooks/work-start-guard.sh +52 -49
- package/assets/hooks/write-targets.sh +96 -44
- package/assets/laws/autonomous-work.md +29 -27
- package/assets/laws/code-structure.md +31 -30
- package/assets/laws/delivery.md +148 -137
- package/assets/laws/entity-editing.md +52 -50
- package/assets/laws/entity-models.md +14 -13
- package/assets/laws/frontend-application.md +39 -38
- package/assets/laws/lib-imports.md +27 -27
- package/assets/laws/lists.md +31 -29
- package/assets/laws/navigation.md +37 -37
- package/assets/laws/observability.md +41 -40
- package/assets/laws/project-documentation.md +106 -99
- package/assets/laws/reuse-first.md +31 -29
- package/assets/laws/shared-code.md +27 -27
- package/assets/laws/verifiability.md +131 -124
- package/assets/laws/work-conduct.md +250 -244
- package/assets/patterns/admin-lists-screen.md +72 -69
- package/assets/patterns/admin-nav-item.md +51 -46
- package/assets/patterns/angular-patterns-state.md +32 -31
- package/assets/patterns/api-layer-pair.md +33 -31
- package/assets/patterns/autonomous-work-run.md +50 -49
- package/assets/patterns/browser-verification-measure.md +124 -88
- package/assets/patterns/browser-verification-stand.md +169 -157
- package/assets/patterns/component-structure-new.md +51 -42
- package/assets/patterns/dependencies-upgrade.md +55 -39
- package/assets/patterns/doc-style-human.md +55 -37
- package/assets/patterns/doc-style-sweep.md +82 -79
- package/assets/patterns/doc-style-trace.md +87 -81
- package/assets/patterns/doc-style-write.md +130 -122
- package/assets/patterns/entity-aside.md +77 -63
- package/assets/patterns/entity-models-new.md +37 -37
- package/assets/patterns/entity-store.md +33 -33
- package/assets/patterns/git-workflow-commit.azure.md +93 -86
- package/assets/patterns/git-workflow-commit.github.md +152 -141
- package/assets/patterns/git-workflow-commit.gitlab.md +95 -89
- package/assets/patterns/git-workflow-docker.md +165 -147
- package/assets/patterns/git-workflow-freshness.md +45 -45
- package/assets/patterns/git-workflow-merge.md +98 -93
- package/assets/patterns/git-workflow-migration.md +54 -52
- package/assets/patterns/git-workflow-pr-ready.md +57 -56
- package/assets/patterns/git-workflow-pr.azure.md +126 -121
- package/assets/patterns/git-workflow-pr.github.md +179 -175
- package/assets/patterns/git-workflow-pr.gitlab.md +138 -131
- package/assets/patterns/git-workflow-restart.md +35 -31
- package/assets/patterns/git-workflow-secrets.md +80 -73
- package/assets/patterns/git-workflow-stack.md +131 -106
- package/assets/patterns/lib-layers-move.md +62 -53
- package/assets/patterns/lib-layers-new.md +59 -45
- package/assets/patterns/observability-record.md +72 -67
- package/assets/patterns/platform-access-di.md +31 -29
- package/assets/patterns/reuse-first-extend.md +66 -61
- package/assets/patterns/shared-code-new.md +39 -38
- package/assets/patterns/spec-driven-domain.md +161 -151
- package/assets/patterns/spec-driven-rule.md +179 -168
- package/assets/patterns/spec-driven-sweep.md +41 -39
- package/assets/patterns/status-report-table.github.md +37 -36
- package/assets/patterns/styling-bem-component.md +42 -42
- package/assets/patterns/styling-bem-layout.md +39 -34
- package/assets/patterns/styling-bem-sheet.md +59 -58
- package/assets/patterns/task-flow-archive.md +222 -215
- package/assets/patterns/task-flow-close.md +215 -203
- package/assets/patterns/task-flow-handoff.md +154 -145
- package/assets/patterns/task-flow-resume.md +138 -133
- package/assets/patterns/task-flow-start.md +204 -192
- package/assets/patterns/testing-e2e.md +102 -101
- package/assets/patterns/testing-unit.md +77 -70
- package/assets/patterns/ts-procedure.md +32 -29
- package/assets/patterns/turn-entry-map.md +50 -48
- package/assets/pitfalls/agent-kit.md +152 -141
- package/assets/pitfalls/doc-style.md +96 -91
- package/assets/pitfalls/git-workflow.azure.md +49 -46
- package/assets/pitfalls/git-workflow.github.md +264 -234
- package/assets/pitfalls/git-workflow.gitlab.md +49 -45
- package/assets/pitfalls/spec-driven.md +73 -71
- package/assets/pitfalls/styling-bem.md +46 -40
- package/assets/pitfalls/task-flow.md +262 -246
- package/assets/pitfalls/testing.md +99 -92
- package/assets/pitfalls/turn-conduct.md +96 -81
- package/assets/rules/angular-patterns.md +81 -80
- package/assets/rules/api-layer.md +77 -74
- package/assets/rules/autonomous-work.md +75 -74
- package/assets/rules/browser-verification.md +223 -214
- package/assets/rules/component-structure.md +72 -69
- package/assets/rules/dependencies.md +74 -67
- package/assets/rules/deploy-flow.azure.md +118 -108
- package/assets/rules/deploy-flow.github.md +145 -135
- package/assets/rules/deploy-flow.gitlab.md +120 -110
- package/assets/rules/doc-style.md +198 -173
- package/assets/rules/entity-conventions.needs-admin.md +81 -79
- package/assets/rules/entity-models.md +73 -70
- package/assets/rules/git-workflow.azure.md +224 -228
- package/assets/rules/git-workflow.github.md +250 -239
- package/assets/rules/git-workflow.gitlab.md +218 -217
- package/assets/rules/lib-layers.md +85 -86
- package/assets/rules/lists.md +101 -97
- package/assets/rules/navigation.md +78 -78
- package/assets/rules/observability.needs-app.md +165 -153
- package/assets/rules/platform-access.md +76 -75
- package/assets/rules/reuse-first.md +153 -143
- package/assets/rules/shared-code.md +82 -79
- package/assets/rules/spec-driven.md +272 -260
- package/assets/rules/status-report.md +55 -58
- package/assets/rules/styling-bem.md +81 -77
- package/assets/rules/task-flow.md +282 -270
- package/assets/rules/testing.md +224 -209
- package/assets/rules/turn-conduct.md +255 -258
- package/assets/rules/turn-entry.md +92 -87
- package/assets/rules/typescript-conventions.md +94 -88
- package/assets/samples/specs/_template/spec.md +47 -47
- package/assets/samples/tasks/_template/grill.md +20 -20
- package/assets/samples/tasks/_template/plan.md +32 -30
- package/assets/samples/tasks/_template/progress.md +16 -16
- package/assets/skills/agent-kit-extend.md +129 -113
- package/assets/skills/agent-kit.md +235 -211
- package/assets/skills/write-a-skill.md +76 -71
- package/assets/templates/findings.md +19 -19
- package/assets/templates/gate-map.sh +16 -14
- package/assets/templates/implementation.md +28 -27
- package/assets/templates/pattern.md +17 -17
- package/assets/templates/pitfalls.md +6 -6
- package/assets/templates/postmortem.md +24 -23
- package/assets/templates/project.sh +24 -24
- package/assets/templates/proposal.md +62 -60
- package/assets/templates/rule.md +38 -38
- package/assets/workflows/feature.js +46 -46
- package/assets/workflows/plan.js +54 -54
- package/lib/catalog.d.ts +2 -0
- package/lib/catalog.d.ts.map +1 -1
- package/lib/catalog.js +4 -3
- package/lib/catalog.js.map +1 -1
- package/lib/commands.d.ts.map +1 -1
- package/lib/commands.js +5 -2
- package/lib/commands.js.map +1 -1
- package/lib/companion.js +3 -2
- package/lib/companion.js.map +1 -1
- package/lib/enroll.d.ts +7 -1
- package/lib/enroll.d.ts.map +1 -1
- package/lib/enroll.js +12 -3
- package/lib/enroll.js.map +1 -1
- package/lib/plan.d.ts +11 -0
- package/lib/plan.d.ts.map +1 -1
- package/lib/plan.js +10 -1
- package/lib/plan.js.map +1 -1
- package/lib/ship.d.ts +0 -7
- package/lib/ship.d.ts.map +1 -1
- package/lib/ship.js +10 -2
- package/lib/ship.js.map +1 -1
- package/lib/shipment.d.ts.map +1 -1
- package/lib/shipment.js +6 -2
- package/lib/shipment.js.map +1 -1
- package/lib/sync.d.ts.map +1 -1
- package/lib/sync.js +45 -11
- package/lib/sync.js.map +1 -1
- package/package.json +1 -1
- package/rt-tools-agent-kit-0.26.0.tgz +0 -0
- package/rt-tools-agent-kit-0.24.0.tgz +0 -0
|
@@ -2,237 +2,238 @@
|
|
|
2
2
|
name: git-workflow
|
|
3
3
|
kind: rule
|
|
4
4
|
law: delivery
|
|
5
|
-
description:
|
|
5
|
+
description: Rule under the delivery law for a tree on GitLab. Load for creating a task and a branch, commit, push, opening an MR and merging. Names the one-to-one match of task and branch, the machine account and the delivery guards. Patterns git-workflow-commit, -pr, -merge. Rollout — rule deploy-flow.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
-
#
|
|
8
|
+
# Delivery — how it works here
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
Rule under the law `docs/constitution/delivery.md`. The law says what must be true; here — by which
|
|
11
|
+
technique it is held in a tree that lives on GitLab. The task key, the board address, the machine
|
|
12
|
+
account and the commit scopes are this tree's, in `implementation.md` next to it: they cannot be
|
|
13
|
+
guessed and are never shared.
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
**Cold part:** `pitfalls.md` next to it — traps already stepped on. Loaded on demand, not together
|
|
16
|
+
with the rule.
|
|
17
17
|
|
|
18
|
-
##
|
|
18
|
+
## What it is called here
|
|
19
19
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
22
|
-
|
|
|
23
|
-
|
|
|
24
|
-
|
|
|
25
|
-
|
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
| PR
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
20
|
+
| In the law | Here |
|
|
21
|
+
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
22
|
+
| main branch | `main` |
|
|
23
|
+
| separate branch | `<КЛЮЧ>-<номер задачи>-<короткий-slug>`. A name without a number (`feat/…`, `fix/…`) is legitimate locally: no MR opens from it |
|
|
24
|
+
| task key | the tree's word for its tasks: `board.taskKey` in `.claude/rt-kit/checks.json`, named in `implementation.md` for the reader |
|
|
25
|
+
| task | a project issue `[<КЛЮЧ>-<номер>] <Что не так>`, assignee the machine account; attached MR: `Closes #<номер>` in its description |
|
|
26
|
+
| work queue | the project's Issue Board. A task lands on it by a list label, not by being created: the board shows what carries a label it knows |
|
|
27
|
+
| task state in the work queue | a board list backed by a label: created, in progress, in review. Label names in `implementation.md`; a closed task leaves by merge, not by the last list |
|
|
28
|
+
| PR about a task | MR title `[<КЛЮЧ>-<номер>] <Что сделано>` — the task's number and title turned into the done; commit type and scope stay out |
|
|
29
|
+
| discussion of an edit | MR review: reviewer — the project owner, assignee — the machine account, labels — the same as on the task |
|
|
30
|
+
| record of an edit | `type(scope): description`, types `feat`, `fix`, `refactor`, `docs`, `style`, `test`, `chore`, `perf`; scopes: `implementation.md` |
|
|
31
|
+
| author of machine work | a separate account; its name and the token's place — in `implementation.md`. The token lies outside the repository |
|
|
32
32
|
|
|
33
|
-
##
|
|
33
|
+
## Where it lives
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
In this tree — the table in `implementation.md` next to it. Paths live there, not here: the rule
|
|
36
|
+
travels between repositories, the layout does not, and a path named in the rule lies in the first
|
|
37
|
+
tree that keeps its code differently.
|
|
38
38
|
|
|
39
|
-
##
|
|
39
|
+
## Flow
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
The flow from task to merge: where the guard stands, what moves the work queue column and how the
|
|
42
|
+
work ends.
|
|
43
43
|
|
|
44
44
|
```mermaid
|
|
45
45
|
flowchart TD
|
|
46
|
-
A[
|
|
47
|
-
B --> C[
|
|
48
|
-
C --> D{
|
|
49
|
-
D
|
|
50
|
-
D
|
|
51
|
-
E --> F{
|
|
52
|
-
F
|
|
53
|
-
F
|
|
54
|
-
H --> I[
|
|
55
|
-
I --> J{
|
|
56
|
-
J
|
|
46
|
+
A[Work begins] --> B[A command creates the task and it enters the work queue]
|
|
47
|
+
B --> C[The branch is named by the task number; the column moves in the same motion]
|
|
48
|
+
C --> D{The edit is ready}
|
|
49
|
+
D -->|No| C
|
|
50
|
+
D -->|Yes| E[Main is merged in, the gate set is run whole]
|
|
51
|
+
E --> F{The branch carries a task number}
|
|
52
|
+
F -->|No| G[The delivery guard refuses the opening: nothing in the queue stands behind the edit]
|
|
53
|
+
F -->|Yes| H[The PR opens; what is not ready to merge goes as a draft]
|
|
54
|
+
H --> I[The task column moves to review, the executor takes the next task]
|
|
55
|
+
I --> J{The run and the review are over}
|
|
56
|
+
J -->|Run red| K[Fixed in the same branch]
|
|
57
57
|
K --> J
|
|
58
|
-
J
|
|
59
|
-
L --> M[
|
|
58
|
+
J -->|Green| L[The last commit takes the task folder apart, the draft is lifted]
|
|
59
|
+
L --> M[A person presses the merge: the executor asks and names the number]
|
|
60
60
|
G --> B
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
##
|
|
64
|
-
|
|
65
|
-
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
-
|
|
153
|
-
|
|
154
|
-
-
|
|
155
|
-
|
|
156
|
-
-
|
|
157
|
-
|
|
158
|
-
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
-
|
|
209
|
-
|
|
210
|
-
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
##
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
##
|
|
235
|
-
|
|
236
|
-
- `git-workflow-commit` —
|
|
237
|
-
- `git-workflow-pr` —
|
|
238
|
-
|
|
63
|
+
## How the law applies here
|
|
64
|
+
|
|
65
|
+
- **A commit into the main branch is refused by the guard.** The guard looks for a commit call
|
|
66
|
+
anywhere in the command and reads the current branch at launch, so a compound "create a branch and
|
|
67
|
+
commit at once" is rejected whole: the branch does not exist yet at review.
|
|
68
|
+
- **A branch without a task number opens no MR.** The delivery guard refuses `glab mr create` from
|
|
69
|
+
such a branch: locally it is legitimate, but an edit from it is a rollout with nothing behind it
|
|
70
|
+
in the work queue. A task is created, and the work moves to a branch with its number.
|
|
71
|
+
- **The main branch is merged into the task branch before the MR opens.** The delivery guard refuses
|
|
72
|
+
the opening until main's tip is an ancestor of the current branch, and names the divergence as a
|
|
73
|
+
commit count. An MR from a diverged branch shows the reviewer the edit mixed with someone else's,
|
|
74
|
+
and everything the author checked before publishing was checked from a base that main no longer
|
|
75
|
+
has.
|
|
76
|
+
- **Unmet delivery conditions are named in one refusal, not one by one.** The guard collects them
|
|
77
|
+
all and prints them at once. An executor refused on the first miss fixes the base, repeats the
|
|
78
|
+
call, hits the title, fixes the title, hits the task — and every round costs one more call, though
|
|
79
|
+
everything unmet was known on the first.
|
|
80
|
+
- **A condition known at the start of work is asked at the start.** Creating a branch refuses a base
|
|
81
|
+
without main's tip, and a working copy that signs commits with an email other than the one the
|
|
82
|
+
tree declared. At push and at MR opening the same checks stay as a second line, but there they
|
|
83
|
+
cost more: the base is fixed by a merge with conflict resolution, the signature by rewriting the
|
|
84
|
+
whole branch.
|
|
85
|
+
- **The base judged is the one named by the command, not the tip of the working copy.** A branch is
|
|
86
|
+
also created straight from main's tip — that very command takes the base fresh — and a guard
|
|
87
|
+
reading only the current tip would refuse it like a branch off yesterday's tree. A base the tree
|
|
88
|
+
knows nothing of is not judged at all.
|
|
89
|
+
- **A branch without a task number gets no delivery conditions.** A local trial branch is
|
|
90
|
+
legitimate, and demanding a fresh base of it would refuse work that will not go to main: no MR
|
|
91
|
+
opens from such a branch.
|
|
92
|
+
- **A code edit is handed to a person by an open MR, not by a pushed branch.** A branch is not shown
|
|
93
|
+
to them in the branch list, reaches no to-do list and has no discussion: before the MR opens there
|
|
94
|
+
is no edit for a person. It opens in the turn in which the executor says the work is handed over,
|
|
95
|
+
and the reply names it by number.
|
|
96
|
+
- **What is not ready to merge opens as a draft — `glab mr create --draft`.** The host itself locks
|
|
97
|
+
a draft's merge button, so the state "put up for viewing" and the state "may be merged" stop
|
|
98
|
+
looking alike. Everything waiting for a pipeline run, a rework or an answer goes as a draft; the
|
|
99
|
+
question is asked in the MR itself. The draft sign here is the `Draft:` prefix in the title, and
|
|
100
|
+
it is edited together with it.
|
|
101
|
+
- **The draft is lifted by a separate call — `glab mr update <номер> --ready`.** With it the
|
|
102
|
+
executor answers for readiness: checks passed, no rework left, the work matches the task. Lifting
|
|
103
|
+
the draft and asking to merge are one turn, not two days.
|
|
104
|
+
- **The draft is not lifted while the MR has no review.** The delivery guard reads the requested
|
|
105
|
+
reviewer and the review left: a lifted draft reads as "may be merged", and there is nobody to
|
|
106
|
+
merge. Earlier than this turn there is nowhere to ask — before the MR opens there is no reviewer
|
|
107
|
+
at all. Only a request and a review not from the author count as review: a review of oneself is no
|
|
108
|
+
review. A call without a number is judged too — the client then takes the MR of the current
|
|
109
|
+
branch, and one space would lift the requirement; returning an MR to draft gets no requirement.
|
|
110
|
+
- **A created task is confirmed by the work queue's answer, not by the creation command's output.**
|
|
111
|
+
The command answers for its calls: it can create a task and not bring it to the board, and its own
|
|
112
|
+
error handling names that case. A printed number means "the call went through", not "the task is
|
|
113
|
+
visible to whoever works by it". The queue is asked — by number, in one call — and the answer is
|
|
114
|
+
read from the task's presence on the board, its list and its assignee.
|
|
115
|
+
- **The branch number and the MR title number are checked on the spot, the task state — by the
|
|
116
|
+
board.** The format is read from the command text and works offline; the task's existence, its
|
|
117
|
+
list label, assignee, that it is still open, and the MR review — only with something to ask with.
|
|
118
|
+
No network or no token — the second tier is skipped silently: a check that fails on a plane stops
|
|
119
|
+
meaning anything.
|
|
120
|
+
- **The task's list moves in the same motion as the work.** Branch created — the task is moved to in
|
|
121
|
+
progress, MR opened — to in review; the move command does it, not a set of calls from memory. The
|
|
122
|
+
move follows the step that caused it at once: the work queue is read between steps, not after.
|
|
123
|
+
- **A task left in the first list opens no MR.** The delivery guard names its list and the move
|
|
124
|
+
command: by the work queue such a task reads as not taken, though the work on it is done and
|
|
125
|
+
published. At branch creation the list is not asked — nothing has moved it yet, and the
|
|
126
|
+
requirement would refuse the first command of the work together with the one that lifts it. The
|
|
127
|
+
tree names the first list itself; unnamed — the list is not judged at all.
|
|
128
|
+
- **The board holds tasks, not MRs about them.** The board shows what is done and what is left; an
|
|
129
|
+
MR answers another question — how exactly it was done — and opens from the task, where the link to
|
|
130
|
+
it stands by itself. An MR card lives its own life: it has no list label, never leaves the queue
|
|
131
|
+
and stays in it after the merge forever. Here it is created more easily than anywhere: the board
|
|
132
|
+
is assembled by labels, and a list label put on an MR makes it a card at once. The queue audit
|
|
133
|
+
finds such cards, a line each.
|
|
134
|
+
- **A lagging list is found by the queue audit, not by eye.** The audit judges the list by the PR
|
|
135
|
+
both ways: an open MR with the task not in review, and review with no open MR — both
|
|
136
|
+
discrepancies. The moment a task is taken into work it cannot see: the branch is not on the board.
|
|
137
|
+
- **A branch with an open PR lags behind main silently.** The guard judges the base once — at
|
|
138
|
+
opening; what merged into main during the run a green run never sees, and a PR merged from there
|
|
139
|
+
brings main a combination nobody checked. The lag is found by the work queue audit: it asks the
|
|
140
|
+
repository how many commits each open PR's branch is behind main, and names the number.
|
|
141
|
+
- **Tasks fixed by one edit are merged before the branch merge.** The second is closed as a
|
|
142
|
+
duplicate with a link to the one that absorbed it, and the missing from it is added to the first.
|
|
143
|
+
The law orders the second erased — here that is a declared deviation: the host does not let a task
|
|
144
|
+
be erased at all, and its number stays in history, so a link from someone else's commit leads to a
|
|
145
|
+
closed task, not into a void. After the merge there is no merging them: the branch went in, and it
|
|
146
|
+
rolls back whole.
|
|
147
|
+
- **Work that one session cannot close is marked in two places, and they are audited.** The label on
|
|
148
|
+
the board and the line about sessions with a handover in the epic plan say the same to two
|
|
149
|
+
readers: the executor opens the card before the epic plan, and plans by the plan. One mark without
|
|
150
|
+
the other lies silently, so the queue audit judges the pair both ways. Only what legitimately does
|
|
151
|
+
not split is marked: a mark of volume grants no right to split.
|
|
152
|
+
- **A document goes in the same commit as the edit.** The bypass is the line `Docs-skip: <reason>`
|
|
153
|
+
in the commit body; an empty reason is not accepted.
|
|
154
|
+
- **The commit subject is checked against the format on the spot.** A subject parsed by type and
|
|
155
|
+
scope is read as a list, free text — only whole.
|
|
156
|
+
- **Before a push all linters are run, not one.** The code linter usually does not read style files
|
|
157
|
+
at all; without a second run nothing checks the styling rules.
|
|
158
|
+
- **The build is in the set on a par with lint and unit tests.** The linter does not read types, and
|
|
159
|
+
unit tests read only what a test imports: a type error in uncovered code lives until the image
|
|
160
|
+
build — that is, the merge. Four merges in a row went into main that way, breaking the rollout.
|
|
161
|
+
- **On a machine with several runners, any path from the home directory is shared.** A ready-made
|
|
162
|
+
step's default is dangerous precisely because it is shared: a neighbouring run rewrites it to its
|
|
163
|
+
own version while ours stands between steps. Install directory, container name and builder name
|
|
164
|
+
are therefore per project and fixed, and a temporary directory is never the answer — the package
|
|
165
|
+
store lives there.
|
|
166
|
+
- **The push gate set is never narrower than the pipeline set.** The gate is a promise that the push
|
|
167
|
+
will not arrive red; a set with the build and the snapshots thrown out promises what it does not
|
|
168
|
+
check. A pipeline step with neither a line in the gate set nor a declared exclusion with a reason
|
|
169
|
+
refuses the push instead of printing next to it: a printed warning the executor reads as
|
|
170
|
+
permission. Twice in a row an edit that passed the gate whole was refused by the pipeline — and
|
|
171
|
+
both times the green gate was read as "all green locally".
|
|
172
|
+
- **The final set before a push is read from the state review, not assembled in the head.** It is
|
|
173
|
+
assembled from the package default and the tree's override, and there was nothing to read the
|
|
174
|
+
assembly with: the "set before push" section prints it whole, one command per line, and names
|
|
175
|
+
beside it what the default printed and the set did not take. A tree writing its override blind
|
|
176
|
+
added a repeat to it.
|
|
177
|
+
- **An exclusion reason naming a task is judged on whether that task is alive.** A deferral with a
|
|
178
|
+
term and one without look the same until someone asks the number; a dead number in the reason
|
|
179
|
+
makes the exclusion perpetual without saying a line about it. Asked by the same tier as the task
|
|
180
|
+
state at the delivery guard: something to ask with — it asks, no network or access — it skips
|
|
181
|
+
silently.
|
|
182
|
+
- **The layout audit stands in the push gate set on a par with lint and the build.** An edit put
|
|
183
|
+
into the laid-out copy past the source breaks nothing on the day it is made: the tree works, the
|
|
184
|
+
checks are green, and the discrepancy is visible only to whoever calls the audit themselves. It
|
|
185
|
+
piles up silently and surfaces on someone else's work — the layout refuses the edited file whole
|
|
186
|
+
and lays out no other, so the price is paid by whoever edited a neighbouring resource. The article
|
|
187
|
+
above does not cover this line: the audit is not in the pipeline, so there is no step it would
|
|
188
|
+
close — it is put into the set directly, not derived from the set's completeness.
|
|
189
|
+
- **After merging main in, the check set is revised by what the branch now carries.** The merge
|
|
190
|
+
changes the makeup of the edit: checking by what the author edited means checking half, and the
|
|
191
|
+
branch answers whole. A branch that touched no line of the showcase runs showcase snapshots from
|
|
192
|
+
the moment the merge brought someone else's styling edit.
|
|
193
|
+
- **A statement about the main branch is made by the remote ref, not the local one.** The local one
|
|
194
|
+
goes stale the minute it was last pulled, and says nothing about it: it is not empty and not
|
|
195
|
+
broken, it describes yesterday. A branch comparison is written from `origin/main` whole — mixing
|
|
196
|
+
the remote ref for one side and the local one for the other in one command, the miss looks right
|
|
197
|
+
from inside.
|
|
198
|
+
- **The remote ref is taken not only by words but by actions.** A new branch's base, the count of
|
|
199
|
+
the merged and pulling main are judged by it too: the local one is a snapshot of the last pull,
|
|
200
|
+
and work started from it starts from a base main no longer has. A merged branch counts as unmerged
|
|
201
|
+
by it, and cleanup ends with a list of unmerged that is not there.
|
|
202
|
+
- **A merge by the "Merge when pipeline succeeds" button does not replace the checks before a
|
|
203
|
+
push.** The pipeline sees only what is already pushed, and a pushed red branch occupies the work
|
|
204
|
+
queue and looks ready for review.
|
|
205
|
+
- **MR labels and assignee are set at creation, not by an edit after.** `glab mr create` takes them
|
|
206
|
+
as flags; editing an open MR with a second command is bypassed silently when the machine account's
|
|
207
|
+
token does not see the project whole.
|
|
208
|
+
- **A task is moved across lists by editing its labels.** The board's lists are labels: a move that
|
|
209
|
+
did not remove the previous label leaves the task in two lists at once, and the queue reads wrong.
|
|
210
|
+
- **Guard scenarios set the git settings themselves, not take them from the machine.** A commit in
|
|
211
|
+
the scenario's temporary repository inherits the shared config: with signing on, git goes to the
|
|
212
|
+
key agent, and a locked agent brings the whole set down — from outside it looks like a broken
|
|
213
|
+
guard. Author, email and signature are passed as `-c` flags straight into the command.
|
|
214
|
+
|
|
215
|
+
## What of the law is not here
|
|
216
|
+
|
|
217
|
+
The delivery guard stands on the agent's commands, so it does not see a branch created by hand in
|
|
218
|
+
the editor: its name is held by memory. The requirement is no weaker for that — only no separate
|
|
219
|
+
check is made for it: work is recognised by the task title and the PR, and that is audited for
|
|
220
|
+
everyone. The queue audit never judges the branch name: an open MR's branch cannot be renamed.
|
|
221
|
+
|
|
222
|
+
The guard does not move a task to in progress: it does not edit the board — a board edit during
|
|
223
|
+
command review would fall with the connection and refuse the work instead of the miss. The move is
|
|
224
|
+
held by memory and by the hint the task creation command prints. A task left in the first list the
|
|
225
|
+
guard names at MR opening — that is, after it should have been moved; other list discrepancies the
|
|
226
|
+
queue audit finds.
|
|
227
|
+
|
|
228
|
+
The freshness of main's tip itself the guard asks by the second tier — the same technique as the
|
|
229
|
+
task state: something to ask with — it asks; no network or access — it skips silently. The first
|
|
230
|
+
tier stays and works offline: the local ref answers the question "has the base lagged what already
|
|
231
|
+
lies in the tree", the remote one — "has the ref itself gone stale". Without the second tier the
|
|
232
|
+
guard's silence meant only the first and was read as the second.
|
|
233
|
+
|
|
234
|
+
## Patterns
|
|
235
|
+
|
|
236
|
+
- `git-workflow-commit` — task, branch, commit and push as the machine account.
|
|
237
|
+
- `git-workflow-pr` — opening an MR, the draft and lifting it, the description, reviewer, labels,
|
|
238
|
+
state.
|
|
239
|
+
- `git-workflow-merge` — main merged into the task branch, the conflict resolved.
|