@rt-tools/agent-kit 0.24.0 → 0.27.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/cargo-writer.md +54 -0
- 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-epic-link.github.mjs +29 -0
- package/assets/checks/board-epics.github.mjs +286 -49
- 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 +29 -25
- package/assets/checks/board-paths.github.mjs +21 -16
- package/assets/checks/board-pull-state.github.mjs +168 -0
- package/assets/checks/board-runs.github.mjs +45 -43
- package/assets/checks/board-task-dirs.github.mjs +98 -0
- package/assets/checks/board-titles.github.mjs +19 -17
- package/assets/checks/board.github.mjs +133 -194
- package/assets/checks/check-archive-age.mjs +23 -19
- package/assets/checks/check-board.github.mjs +131 -263
- 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 +138 -39
- package/assets/checks/check-push-gate.mjs +53 -50
- package/assets/checks/check-reuse.mjs +50 -40
- package/assets/checks/check-schema-drift.mjs +104 -84
- 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/epic-table.github.mjs +268 -0
- 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 +187 -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/specs-for.mjs +214 -0
- package/assets/checks/task-new.github.mjs +315 -61
- package/assets/commands/feedback.md +65 -59
- package/assets/commands/next-session.md +64 -57
- package/assets/commands/night.md +115 -0
- package/assets/commands/skill-curator.md +83 -79
- package/assets/defaults/gate-map.sh +108 -97
- package/assets/defaults/project.sh +232 -185
- package/assets/defaults/shell.sh +73 -68
- package/assets/defaults/turn-map.md +47 -44
- package/assets/docs/GLOSSARY.md +142 -65
- package/assets/hooks/browser-device-id.sh +16 -12
- package/assets/hooks/browser-guard-device-id.sh +34 -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 +14 -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 +50 -43
- package/assets/hooks/dispatch.sh +60 -46
- package/assets/hooks/docs-guard.sh +100 -91
- package/assets/hooks/epic-over.sh +49 -0
- package/assets/hooks/epic-stop-guard.sh +108 -0
- package/assets/hooks/exam-guard.sh +105 -93
- package/assets/hooks/git-guard-delivery-conflict.sh +41 -36
- package/assets/hooks/git-guard-delivery-draft.sh +48 -38
- package/assets/hooks/git-guard-delivery-epic.sh +167 -0
- package/assets/hooks/git-guard-delivery-folder.sh +50 -43
- package/assets/hooks/git-guard-delivery-signature.sh +119 -53
- package/assets/hooks/git-guard-delivery.sh +223 -183
- 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 +45 -25
- 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 +49 -24
- package/assets/hooks/qa-dataid-guard.sh +83 -58
- 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 +39 -34
- package/assets/hooks/rule-source-guard.sh +47 -42
- package/assets/hooks/skill-gate-layers.sh +63 -57
- package/assets/hooks/skill-gate-rearm.sh +15 -8
- package/assets/hooks/skill-gate.sh +89 -81
- package/assets/hooks/skill-loaded.sh +10 -6
- package/assets/hooks/sql-guard-parse.sh +71 -66
- package/assets/hooks/sql-guard-request.sh +51 -46
- package/assets/hooks/sql-guard-target.sh +60 -51
- package/assets/hooks/sql-guard-write.sh +87 -79
- package/assets/hooks/sql-guard.sh +52 -47
- package/assets/hooks/stand-login-guard.sh +43 -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 +260 -204
- package/assets/hooks/turn-exit-patterns.sh +63 -0
- package/assets/hooks/utf8.sh +14 -11
- package/assets/hooks/waiting-turn-guard.sh +104 -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 +99 -44
- package/assets/laws/autonomous-work.md +29 -27
- package/assets/laws/code-structure.md +31 -30
- package/assets/laws/delivery.md +170 -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 +94 -87
- package/assets/patterns/git-workflow-commit.github.md +160 -142
- package/assets/patterns/git-workflow-commit.gitlab.md +96 -90
- 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 +102 -94
- 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 +127 -122
- package/assets/patterns/git-workflow-pr.github.md +186 -177
- package/assets/patterns/git-workflow-pr.gitlab.md +139 -132
- 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 +136 -107
- 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 +48 -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 +234 -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 +228 -202
- 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 +172 -142
- package/assets/pitfalls/doc-style.md +96 -91
- package/assets/pitfalls/git-workflow.azure.md +49 -46
- package/assets/pitfalls/git-workflow.github.md +270 -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 +87 -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 +201 -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 +268 -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 +279 -260
- package/assets/rules/status-report.md +62 -58
- package/assets/rules/styling-bem.md +81 -77
- package/assets/rules/task-flow.md +303 -270
- package/assets/rules/testing.md +224 -209
- package/assets/rules/turn-conduct.md +262 -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 +259 -233
- 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/bin/agent-kit.d.ts.map +1 -1
- package/bin/agent-kit.js +8 -1
- package/bin/agent-kit.js.map +1 -1
- package/lib/cargo-prose.d.ts +41 -0
- package/lib/cargo-prose.d.ts.map +1 -0
- package/lib/cargo-prose.js +88 -0
- package/lib/cargo-prose.js.map +1 -0
- package/lib/cargo.d.ts +12 -1
- package/lib/cargo.d.ts.map +1 -1
- package/lib/cargo.js +8 -2
- package/lib/cargo.js.map +1 -1
- 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/fate.d.ts +29 -0
- package/lib/fate.d.ts.map +1 -0
- package/lib/fate.js +147 -0
- package/lib/fate.js.map +1 -0
- package/lib/override-marks.d.ts +7 -0
- package/lib/override-marks.d.ts.map +1 -1
- package/lib/override-marks.js +14 -0
- package/lib/override-marks.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 +29 -9
- package/lib/ship.d.ts.map +1 -1
- package/lib/ship.js +44 -2
- package/lib/ship.js.map +1 -1
- package/lib/shipment.d.ts.map +1 -1
- package/lib/shipment.fixture.d.ts +8 -1
- package/lib/shipment.fixture.d.ts.map +1 -1
- package/lib/shipment.fixture.js +9 -0
- package/lib/shipment.fixture.js.map +1 -1
- package/lib/shipment.js +38 -5
- 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.27.0.tgz +0 -0
- package/rt-tools-agent-kit-0.24.0.tgz +0 -0
|
@@ -2,248 +2,244 @@
|
|
|
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 in Azure DevOps. Load for creating a work item and a branch, commit, push, opening a PR and merging. Names the one-to-one match of item and branch, the names, the machine account and the delivery guards. Patterns git-workflow-commit, -pr, -merge.
|
|
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 in Azure DevOps. The organisation, the project, the
|
|
12
|
+
machine account and the commit scopes are this tree's, in `implementation.md` next to it: they
|
|
13
|
+
cannot be 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
|
-
| PR
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
20
|
+
| In the law | Here |
|
|
21
|
+
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
22
|
+
| main branch | `main` |
|
|
23
|
+
| separate branch | `<номер рабочего элемента>-<короткий-slug>`; the form — in `implementation.md`. A name without a number (`feat/…`, `fix/…`) is legitimate locally: no PR opens from it |
|
|
24
|
+
| task | a work item of kind `Task` or `Bug`, title `[<номер>] <Что не так>`, assignee the machine account; the PR attaches at creation by the `--work-items` flag, a commit by the line `AB#<номер>` |
|
|
25
|
+
| work queue | the project's Azure Boards. A work item lands on the board by being created: the board shows the items of its area and iteration |
|
|
26
|
+
| task state in the work queue | the work item's `State` field: `New` when created, `Active` in progress, `Resolved` in review. The state set depends on the project process and is named in `implementation.md`; a closed task leaves the queue by merge |
|
|
27
|
+
| PR about a task | PR title `[<номер>] <Что сделано>` — the work item's number and title turned into the done; commit type and scope stay out |
|
|
28
|
+
| discussion of an edit | PR review: reviewer — the repository owner, assignee — the machine account, labels — the same as on the work item |
|
|
29
|
+
| record of an edit | `type(scope): description`, types `feat`, `fix`, `refactor`, `docs`, `style`, `test`, `chore`, `perf`; scopes: `implementation.md` |
|
|
30
|
+
| author of machine work | a separate account; its name and the token's place — in `implementation.md`. The token lies outside the repository |
|
|
31
31
|
|
|
32
|
-
##
|
|
32
|
+
## Where it lives
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
In this tree — the table in `implementation.md` next to it. Paths live there, not here: the rule
|
|
35
|
+
travels between repositories, the layout does not, and a path named in the rule lies in the first
|
|
36
|
+
tree that keeps its code differently.
|
|
37
37
|
|
|
38
|
-
##
|
|
38
|
+
## Flow
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
The flow from task to merge: where the guard stands, what moves the work queue column and how the
|
|
41
|
+
work ends.
|
|
42
42
|
|
|
43
43
|
```mermaid
|
|
44
44
|
flowchart TD
|
|
45
|
-
A[
|
|
46
|
-
B --> C[
|
|
47
|
-
C --> D{
|
|
48
|
-
D
|
|
49
|
-
D
|
|
50
|
-
E --> F{
|
|
51
|
-
F
|
|
52
|
-
F
|
|
53
|
-
H --> I[
|
|
54
|
-
I --> J{
|
|
55
|
-
J
|
|
45
|
+
A[Work begins] --> B[A command creates the task and it enters the work queue]
|
|
46
|
+
B --> C[The branch is named by the task number; the column moves in the same motion]
|
|
47
|
+
C --> D{The edit is ready}
|
|
48
|
+
D -->|No| C
|
|
49
|
+
D -->|Yes| E[Main is merged in, the gate set is run whole]
|
|
50
|
+
E --> F{The branch carries a task number}
|
|
51
|
+
F -->|No| G[The delivery guard refuses the opening: nothing in the queue stands behind the edit]
|
|
52
|
+
F -->|Yes| H[The PR opens; what is not ready to merge goes as a draft]
|
|
53
|
+
H --> I[The task column moves to review, the executor takes the next task]
|
|
54
|
+
I --> J{The run and the review are over}
|
|
55
|
+
J -->|Run red| K[Fixed in the same branch]
|
|
56
56
|
K --> J
|
|
57
|
-
J
|
|
58
|
-
L --> M[
|
|
57
|
+
J -->|Green| L[The last commit takes the task folder apart, the draft is lifted]
|
|
58
|
+
L --> M[A person presses the merge: the executor asks and names the number]
|
|
59
59
|
G --> B
|
|
60
60
|
```
|
|
61
61
|
|
|
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
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
- `git-workflow-commit` — рабочий элемент, ветка, коммит и пуш от учётной записи машинной работы.
|
|
247
|
-
- `git-workflow-pr` — открытие PR, черновик и его снятие, тело, ревьювер, привязка к элементу.
|
|
248
|
-
работы.
|
|
249
|
-
- `git-workflow-merge` — главная ветка влита в ветку задачи, конфликт разобран.
|
|
62
|
+
## How the law applies here
|
|
63
|
+
|
|
64
|
+
- **A commit into the main branch is refused by the guard.** The guard looks for a commit call
|
|
65
|
+
anywhere in the command and reads the current branch at launch, so a compound "create a branch and
|
|
66
|
+
commit at once" is rejected whole: the branch does not exist yet at review.
|
|
67
|
+
- **A branch without a work item number opens no PR.** The delivery guard refuses `az repos pr
|
|
68
|
+
create` from such a branch: locally it is legitimate, but an edit from it is a rollout with
|
|
69
|
+
nothing behind it in the work queue. A work item is created, and the work moves to a branch with
|
|
70
|
+
its number.
|
|
71
|
+
- **The main branch is merged into the work item branch before the PR opens.** The delivery guard
|
|
72
|
+
refuses the opening until main's tip is an ancestor of the current branch, and names the
|
|
73
|
+
divergence as a commit count. A PR from a diverged branch shows the reviewer the edit mixed with
|
|
74
|
+
someone else's, and everything the author checked before publishing was checked from a base that
|
|
75
|
+
main no longer 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 work item — and every round costs one more call,
|
|
79
|
+
though 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 PR 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 work item 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 PR
|
|
91
|
+
opens from such a branch.
|
|
92
|
+
- **A code edit is handed to a person by an open PR, not by a pushed branch.** A branch is not shown
|
|
93
|
+
to them in the branch list, reaches no to-do list of theirs and has no discussion: before the PR
|
|
94
|
+
opens there is no edit for a person. It opens in the turn in which the executor says the work is
|
|
95
|
+
handed over, and the reply names it by number.
|
|
96
|
+
- **What is not ready to merge opens as a draft — `az repos pr create --draft true`.** The host
|
|
97
|
+
itself locks a draft's complete button, so the state "put up for viewing" and the state "may be
|
|
98
|
+
merged" stop looking alike. Everything waiting for a pipeline run, a rework or an answer goes as a
|
|
99
|
+
draft; the question is asked in the PR itself. The check pipeline does not run on a draft by
|
|
100
|
+
default — until the draft is lifted it stays silent, and that silence is not taken for a green
|
|
101
|
+
run.
|
|
102
|
+
- **The draft is lifted by a separate call — `az repos pr update --id <номер> --draft false`.** With
|
|
103
|
+
it the executor answers for readiness: checks passed, no rework left, the work matches the work
|
|
104
|
+
item. Lifting the draft and asking to merge are one turn, not two days.
|
|
105
|
+
- **A created work item is confirmed by the work queue's answer, not by the creation command's
|
|
106
|
+
output.** The command answers for its calls: it can create an item and not bring it to the board,
|
|
107
|
+
and its own error handling names that case. A printed number means "the call went through", not
|
|
108
|
+
"the work is visible to whoever comes by it". The queue is asked — by number, in one call — and
|
|
109
|
+
the answer is read from the item's presence on the board, its state and its assignee.
|
|
110
|
+
- **The branch number and the PR title number are checked on the spot, the state — by the board.**
|
|
111
|
+
The format is read from the command text and works offline; the work item's existence, its state,
|
|
112
|
+
assignee and that it is still open — only with something to ask with. No network or no token — the
|
|
113
|
+
second tier is skipped silently: a check that fails on a plane stops meaning anything.
|
|
114
|
+
- **The work item's state moves in the same motion as the work.** Branch created — the item is moved
|
|
115
|
+
to `Active`, PR opened — to `Resolved`; the move command does it, not a set of calls from memory.
|
|
116
|
+
The move follows the step that caused it at once: the work queue is read between steps, not after.
|
|
117
|
+
- **A work item left in the initial state opens no PR.** The delivery guard names that state and the
|
|
118
|
+
move command: by the work queue such an item reads as not taken, though the work on it is done and
|
|
119
|
+
published. At branch creation the state is not asked — nothing has moved it yet, and the
|
|
120
|
+
requirement would refuse the first command of the work together with the one that lifts it. The
|
|
121
|
+
tree names the initial state itself; unnamed — the state is not judged at all.
|
|
122
|
+
- **The board holds work items, not PRs about them.** The board shows what is done and what is left;
|
|
123
|
+
a PR answers another question — how exactly it was done — and opens from the item, where the link
|
|
124
|
+
to it stands by itself. Here that link is set at PR creation, so a separate card is not needed at
|
|
125
|
+
all, and one created lives its own life: there is no state for it, it never leaves the queue and
|
|
126
|
+
stays in it after the merge forever. The queue audit finds such cards, a line each.
|
|
127
|
+
- **A lagging state is found by the queue audit, not by eye.** The audit judges the state by the PR
|
|
128
|
+
both ways: an open PR with the item not in review, and review with no open PR — both
|
|
129
|
+
discrepancies. The moment a task is taken into work it cannot see: the branch is not on the board.
|
|
130
|
+
- **A branch with an open PR lags behind main silently.** The guard judges the base once — at
|
|
131
|
+
opening; what merged into main during the run a green run never sees, and a PR merged from there
|
|
132
|
+
brings main a combination nobody checked. The lag is found by the work queue audit: it asks the
|
|
133
|
+
repository how many commits each open PR's branch is behind main, and names the number.
|
|
134
|
+
- **Tasks fixed by one edit are merged before the branch merge.** The second is closed as a
|
|
135
|
+
duplicate, and the missing from it is added to the first. The law orders the second erased, and
|
|
136
|
+
this is the second declared deviation: a work item here has a native "duplicate" link, deletion
|
|
137
|
+
takes the edit history and attachments with it, and the number is not reused after it — a link to
|
|
138
|
+
an erased item from someone else's commit leads into a void. After the merge there is no merging
|
|
139
|
+
them: the branch went in, and it rolls back whole.
|
|
140
|
+
- **Work that one session cannot close is marked in two places, and they are audited.** The label on
|
|
141
|
+
the board and the line about sessions with a handover in the epic plan say the same to two
|
|
142
|
+
readers: the executor opens the card before the epic plan, and plans by the plan. One mark without
|
|
143
|
+
the other lies silently, so the queue audit judges the pair both ways. Only what legitimately does
|
|
144
|
+
not split is marked: a mark of volume grants no right to split.
|
|
145
|
+
- **A document goes in the same commit as the edit.** The bypass is the line `Docs-skip: <reason>`
|
|
146
|
+
in the commit body; an empty reason is not accepted.
|
|
147
|
+
- **The commit subject is checked against the format on the spot.** A subject parsed by type and
|
|
148
|
+
scope is read as a list, free text — only whole.
|
|
149
|
+
- **Before a push all linters are run, not one.** The code linter usually does not read style files
|
|
150
|
+
at all; without a second run nothing checks the styling rules.
|
|
151
|
+
- **The build is in the set on a par with lint and unit tests.** The linter does not read types, and
|
|
152
|
+
unit tests read only what a test imports: a type error in uncovered code lives until the image
|
|
153
|
+
build — that is, the merge. Four merges in a row went into main that way, breaking the rollout.
|
|
154
|
+
- **On a machine with several runners, any path from the home directory is shared.** A ready-made
|
|
155
|
+
step's default is dangerous precisely because it is shared: a neighbouring run rewrites it to its
|
|
156
|
+
own version while ours stands between steps. Install directory, container name and builder name
|
|
157
|
+
are therefore per project and fixed, and a temporary directory is never the answer — the package
|
|
158
|
+
store lives there.
|
|
159
|
+
- **The push gate set is never narrower than the pipeline set.** The gate is a promise that the push
|
|
160
|
+
will not arrive red; a set with the build and the snapshots thrown out promises what it does not
|
|
161
|
+
check. A pipeline step with neither a line in the gate set nor a declared exclusion with a reason
|
|
162
|
+
refuses the push instead of printing next to it: a printed warning the executor reads as
|
|
163
|
+
permission. Twice in a row an edit that passed the gate whole was refused by the pipeline — and
|
|
164
|
+
both times the green gate was read as "all green locally".
|
|
165
|
+
- **The final set before a push is read from the state review, not assembled in the head.** It is
|
|
166
|
+
assembled from the package default and the tree's override, and there was nothing to read the
|
|
167
|
+
assembly with: the "set before push" section prints it whole, one command per line, and names
|
|
168
|
+
beside it what the default printed and the set did not take. A tree writing its override blind
|
|
169
|
+
added a repeat to it.
|
|
170
|
+
- **An exclusion reason naming a task is judged on whether that task is alive.** A deferral with a
|
|
171
|
+
term and one without look the same until someone asks the number; a dead number in the reason
|
|
172
|
+
makes the exclusion perpetual without saying a line about it. Asked by the same tier as the task
|
|
173
|
+
state at the delivery guard: something to ask with — it asks, no network or access — it skips
|
|
174
|
+
silently.
|
|
175
|
+
- **The layout audit stands in the push gate set on a par with lint and the build.** An edit put
|
|
176
|
+
into the laid-out copy past the source breaks nothing on the day it is made: the tree works, the
|
|
177
|
+
checks are green, and the discrepancy is visible only to whoever calls the audit themselves. It
|
|
178
|
+
piles up silently and surfaces on someone else's work — the layout refuses the edited file whole
|
|
179
|
+
and lays out no other, so the price is paid by whoever edited a neighbouring resource. The article
|
|
180
|
+
above does not cover this line: the audit is not in the pipeline, so there is no step it would
|
|
181
|
+
close — it is put into the set directly, not derived from the set's completeness.
|
|
182
|
+
- **After merging main in, the check set is revised by what the branch now carries.** The merge
|
|
183
|
+
changes the makeup of the edit: checking by what the author edited means checking half, and the
|
|
184
|
+
branch answers whole. A branch that touched no line of the showcase runs showcase snapshots from
|
|
185
|
+
the moment the merge brought someone else's styling edit.
|
|
186
|
+
- **A statement about the main branch is made by the remote ref, not the local one.** The local one
|
|
187
|
+
goes stale the minute it was last pulled, and says nothing about it: it is not empty and not
|
|
188
|
+
broken, it describes yesterday. A branch comparison is written from `origin/main` whole — mixing
|
|
189
|
+
the remote ref for one side and the local one for the other in one command, the miss looks right
|
|
190
|
+
from inside.
|
|
191
|
+
- **The remote ref is taken not only by words but by actions.** A new branch's base, the count of
|
|
192
|
+
the merged and pulling main are judged by it too: the local one is a snapshot of the last pull,
|
|
193
|
+
and work started from it starts from a base main no longer has. A merged branch counts as unmerged
|
|
194
|
+
by it, and cleanup ends with a list of unmerged that is not there.
|
|
195
|
+
- **A work item is bound to the PR at creation, not after.** `az repos pr create` takes
|
|
196
|
+
`--work-items`; binding by a second command is bypassed silently when the token has no right to
|
|
197
|
+
edit someone else's item, and the PR stays bound to nothing.
|
|
198
|
+
- **A merge with auto-complete does not replace the checks before a push.** Auto-complete sees only
|
|
199
|
+
the pipeline, and the pipeline sees only what is pushed: a red branch occupies the work queue and
|
|
200
|
+
looks ready for review.
|
|
201
|
+
- **The state set is taken from the project process, not assigned by the rule.** Agile, Scrum and
|
|
202
|
+
Basic name the same three steps differently, and a move to a state the process lacks answers with
|
|
203
|
+
a refusal on every task in a row.
|
|
204
|
+
- **Guard scenarios set the git settings themselves, not take them from the machine.** A commit in
|
|
205
|
+
the scenario's temporary repository inherits the shared config: with signing on, git goes to the
|
|
206
|
+
key agent, and a locked agent brings the whole set down — from outside it looks like a broken
|
|
207
|
+
guard. Author, email and signature are passed as `-c` flags straight into the command.
|
|
208
|
+
|
|
209
|
+
## What of the law is not here
|
|
210
|
+
|
|
211
|
+
This host has no task key, and the name form is built from the number alone. The law demands the
|
|
212
|
+
number be written the same everywhere — "key, hyphen, number" — and this is a deviation from it,
|
|
213
|
+
declared here: a work item number is unique across the whole project, and the host's native link
|
|
214
|
+
form — `AB#<номер>` — carries no key at all, and one attached to it breaks the linking of a commit
|
|
215
|
+
to the item. The `board.taskKey` setting a tree on this host does not set; the checks that look for
|
|
216
|
+
a key in the title judge the bare number here.
|
|
217
|
+
|
|
218
|
+
The delivery guard stands on the agent's commands, so it does not see a branch created by hand in
|
|
219
|
+
the editor: its name is held by memory. The requirement is no weaker for that — only no separate
|
|
220
|
+
check is made for it: work is recognised by the work item title and the PR, and that is audited for
|
|
221
|
+
everyone. The queue audit never judges the branch name: an open PR's branch cannot be renamed.
|
|
222
|
+
|
|
223
|
+
The guard does not move a work item to in progress: it does not edit the board — a board edit during
|
|
224
|
+
command review would fall with the connection and refuse the work instead of the miss. The move is
|
|
225
|
+
held by memory and by the hint the creation command prints. An item left in the initial state the
|
|
226
|
+
guard names at PR opening — that is, after it should have been moved; other state discrepancies the
|
|
227
|
+
queue audit finds.
|
|
228
|
+
|
|
229
|
+
The guard does not ask for a reviewer here: lifting the draft is an edit of the PR itself — the same
|
|
230
|
+
call as its other fields — and to a machine it cannot be told from other edits. This is held by the
|
|
231
|
+
vocabulary above, where the PR review is led by the reviewer, and by the memory of whoever lifts the
|
|
232
|
+
draft.
|
|
233
|
+
|
|
234
|
+
The freshness of main's tip itself the guard asks by the second tier — the same technique as the
|
|
235
|
+
task state: something to ask with — it asks; no network or access — it skips silently. The first
|
|
236
|
+
tier stays and works offline: the local ref answers the question "has the base lagged what already
|
|
237
|
+
lies in the tree", the remote one — "has the ref itself gone stale". Without the second tier the
|
|
238
|
+
guard's silence meant only the first and was read as the second.
|
|
239
|
+
|
|
240
|
+
## Patterns
|
|
241
|
+
|
|
242
|
+
- `git-workflow-commit` — work item, branch, commit and push as the machine account.
|
|
243
|
+
- `git-workflow-pr` — opening a PR, the draft and lifting it, the body, reviewer, binding to the
|
|
244
|
+
item.
|
|
245
|
+
- `git-workflow-merge` — main merged into the task branch, the conflict resolved.
|