@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,269 +2,298 @@
|
|
|
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 GitHub. Load for creating a task and a branch, commit, push, opening a PR and merging. Names the one-to-one pair of task and branch, the machine account and the delivery guards. Patterns git-workflow-commit, -pr, -merge, -stack. 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 GitHub. 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
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
20
|
+
| In the law | Here |
|
|
21
|
+
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
|
|
22
|
+
| main branch | `main` |
|
|
23
|
+
| task key | the tree's word for its tasks: `board.taskKey` in `.claude/rt-kit/checks.json`, named in `implementation.md` for the reader |
|
|
24
|
+
| epic | a repository issue with the epic label, `[<КЛЮЧ>-<номер>] <Возможность>`, and a plan next to it: the order of tasks and how the branches stand |
|
|
25
|
+
| epic branch | `<КЛЮЧ>-<номер эпика>-<короткий-slug>`, taken from `main`. Task branches are taken from it, and their PRs go into it |
|
|
26
|
+
| PR of an epic | PR into `main` from the epic branch; opens after all its tasks are merged and their folders taken apart |
|
|
27
|
+
| separate branch | `<КЛЮЧ>-<номер задачи>-<короткий-slug>`, taken from the epic branch. A name without a number (`feat/…`, `fix/…`) is legitimate locally: no PR opens from it |
|
|
28
|
+
| task | a repository issue `[<КЛЮЧ>-<номер>] <Что не так>`, assignee the machine account; attached PR: `Closes #<номер>` in its body |
|
|
29
|
+
| work queue | a GitHub Projects board, not bound to the repository: its `projectsV2` is empty, and a task lands on it only when added |
|
|
30
|
+
| task state in the work queue | a board column ("Status"): created, in progress, in review; names in `implementation.md`. A closed task leaves by merge, not by column |
|
|
31
|
+
| PR about a task | PR title `[<КЛЮЧ>-<номер>] <Что сделано>` — the task's number and title turned into the done; commit type and scope stay out |
|
|
32
|
+
| discussion of an edit | PR review: reviewer — the repository owner, assignee — the machine account, labels — the same as on the task |
|
|
33
|
+
| record of an edit | `type(scope): description`, types `feat`, `fix`, `refactor`, `docs`, `style`, `test`, `chore`, `perf`; scopes: `implementation.md` |
|
|
34
|
+
| author of machine work | a separate account; its name and the token's place — in `implementation.md`. The token lies outside the repository |
|
|
32
35
|
|
|
33
|
-
##
|
|
36
|
+
## Where it lives
|
|
34
37
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
+
In this tree — the table in `implementation.md` next to it. Paths live there, not here: the rule
|
|
39
|
+
travels between repositories, the layout does not, and a path named in the rule lies in the first
|
|
40
|
+
tree that keeps its code differently.
|
|
38
41
|
|
|
39
|
-
##
|
|
42
|
+
## Flow
|
|
40
43
|
|
|
41
|
-
|
|
42
|
-
|
|
44
|
+
The flow from task to merge: where the guard stands, what moves the work queue column and how the
|
|
45
|
+
work ends.
|
|
43
46
|
|
|
44
47
|
```mermaid
|
|
45
48
|
flowchart TD
|
|
46
|
-
A[
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
A[Work begins] --> Z{The epic of this work is named}
|
|
50
|
+
Z -->|No| Y[The epic is created together with its tasks, and its branch is taken from main]
|
|
51
|
+
Z -->|Yes| B[A command creates the task and it enters the work queue]
|
|
52
|
+
Y --> B
|
|
53
|
+
B --> C[The branch is named by the task number and taken from the epic branch; the column moves in the same motion]
|
|
54
|
+
C --> D{The edit is ready}
|
|
55
|
+
D -->|No| C
|
|
56
|
+
D -->|Yes| E[Main is merged in, the gate set is run whole]
|
|
57
|
+
E --> F{The branch carries a task number}
|
|
58
|
+
F -->|No| G[The delivery guard refuses the opening: nothing in the queue stands behind the edit]
|
|
59
|
+
F -->|Yes| H[The PR opens; what is not ready to merge goes as a draft]
|
|
60
|
+
H --> I[The task column moves to review, the executor takes the next task]
|
|
61
|
+
I --> J{The run and the review are over}
|
|
62
|
+
J -->|Run red| K[Fixed in the same branch]
|
|
57
63
|
K --> J
|
|
58
|
-
J
|
|
59
|
-
L --> M[
|
|
64
|
+
J -->|Green| L[The last commit takes the task folder apart, the draft is lifted]
|
|
65
|
+
L --> M[A person presses the merge into the epic branch: the executor asks and names the number]
|
|
66
|
+
M --> N{Tasks of the epic are left}
|
|
67
|
+
N -->|Yes| B
|
|
68
|
+
N -->|No| O[The PR of the epic into main opens: all the folders are taken apart, and the main branch takes the epic whole]
|
|
60
69
|
G --> B
|
|
61
70
|
```
|
|
62
71
|
|
|
63
|
-
##
|
|
72
|
+
## How the law applies here
|
|
64
73
|
|
|
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
|
-
|
|
74
|
+
- **A commit into the main branch is refused by the guard.** The guard looks for a commit call
|
|
75
|
+
anywhere in the command and reads the current branch at launch: a compound "create a branch and
|
|
76
|
+
commit at once" is rejected whole — the branch does not exist yet at review.
|
|
77
|
+
- **A branch without a task number opens no PR.** Locally it is legitimate, but an edit from it is a
|
|
78
|
+
rollout with nothing behind it in the queue. A task is created, and the work moves to a branch
|
|
79
|
+
with its number.
|
|
80
|
+
- **Work begins with the epic, and the branch of a task is taken from the epic branch.** `git
|
|
81
|
+
checkout -b <КЛЮЧ>-<номер задачи>-<slug> <ветка эпика>`; from `main` only the epic branch itself
|
|
82
|
+
is taken — a task branched from `main` carries into it what the epic has not finished.
|
|
83
|
+
- **The PR of a task has the epic branch as its base — `gh pr create --base <ветка эпика>`.**
|
|
84
|
+
Opened into `main`, it leaves the epic branch a copy nobody merges: half the epic is rolled out
|
|
85
|
+
while the rest is being written.
|
|
86
|
+
- **The PR of an epic into the main branch opens after all its tasks are merged and their folders
|
|
87
|
+
are taken apart.** The merge button on the epic branch means the whole epic, and there is nothing
|
|
88
|
+
to press it for while a task of it is still being written.
|
|
89
|
+
- **The epic branch carries the plan of the epic and the merges of its tasks, and no edits of its
|
|
90
|
+
own.** An edit made in it directly goes into `main` unreviewed: nobody opens a PR about the epic
|
|
91
|
+
branch to the epic branch.
|
|
92
|
+
- **The main branch is merged into the epic branch, and the epic branch into the branches of its
|
|
93
|
+
tasks — while the work runs, not before the hand-over.** Otherwise the reviewer sees the edit
|
|
94
|
+
mixed with someone else's, and everything was checked from a base that is gone.
|
|
95
|
+
- **A wave of branches off one epic branch is checked by a trial merge, not one by one:** each is
|
|
96
|
+
green on its own, and they collide on what one branch cannot show.
|
|
97
|
+
- **The next work's branch is taken from the previous one while the chain is unbroken.** `git
|
|
98
|
+
checkout -b <КЛЮЧ>-<номер>-<slug> <предыдущая ветка>`; from the epic branch — only the chain's
|
|
99
|
+
first work, otherwise the first merge diverges the rest at once. A chain is set up inside one
|
|
100
|
+
epic and only where the next task edits what the previous one wrote.
|
|
101
|
+
- **A PR in a chain has the previous branch as its base, not main.** `gh pr create --base
|
|
102
|
+
<предыдущая ветка>` — otherwise the review shows the edit mixed with all under it. The host
|
|
103
|
+
retargets the base of a merged lower one itself.
|
|
104
|
+
- **A chain is merged bottom-up, and the order stands in every PR body.** Branch kinship is
|
|
105
|
+
invisible in the list: the line "stands on #<number>" is the only place the owner reads it.
|
|
106
|
+
- **The lower branch of a chain does not rewrite history — neither `rebase` nor a force push.** The
|
|
107
|
+
host closes the upper PR as merged once its diff goes empty. A lagging branch is fixed by merging
|
|
108
|
+
main in.
|
|
109
|
+
- **A divergence inside a chain is resolved by the one who branches.** Both edits are theirs; the
|
|
110
|
+
owner resolving the same at merge time owns neither.
|
|
111
|
+
- **Unmet delivery conditions are named in one refusal.** The guard collects and prints them at
|
|
112
|
+
once: everything unmet is known on the first call.
|
|
113
|
+
- **A condition known at the start of work is asked at the start.** Creating a branch — also with a
|
|
114
|
+
flag between the verb and `-b` — refuses a base without main's tip and a foreign email in the
|
|
115
|
+
signature: at push time the fix costs more.
|
|
116
|
+
- **The base judged is the one named by the command, not the tip of the working copy.** A branch is
|
|
117
|
+
also created straight from `origin/main` — that very command takes the base fresh. A base the tree
|
|
118
|
+
knows nothing of is not judged at all.
|
|
119
|
+
- **A branch without a task number gets no delivery conditions.** A local trial branch is
|
|
120
|
+
legitimate, and it will not go to main.
|
|
121
|
+
- **The task key is set once, and all three name forms derive from it.** The task title is assembled
|
|
122
|
+
from it, the branch number is read by it, and so is the PR title by the audit. The tree profile
|
|
123
|
+
writes the branch form with the same pair `<КЛЮЧ>-<номер>`.
|
|
124
|
+
- **An unset key refuses work with the queue on the spot.** No default on purpose: a title from an
|
|
125
|
+
empty value matches nothing, and a real discrepancy drowns among false lines.
|
|
126
|
+
- **A created task is confirmed by the work queue's answer, not by the creation command's output.**
|
|
127
|
+
A printed number means "the call went through": a task can be created and never reach the board.
|
|
128
|
+
- **The visibility of what was created is checked by the side it is meant for.** A PR is read by a
|
|
129
|
+
person, a task by the work queue, and both read with a token other than the creating one. Whose
|
|
130
|
+
eyes took the answer, its `viewer` field says.
|
|
131
|
+
- **A refusal is read before it is bypassed by a second way.** It can be an early sign of a write
|
|
132
|
+
limit, and a bypass by another call carries the sign away: the discrepancy surfaces at the owner.
|
|
133
|
+
A limit is told from exhaustion by the limits answer — there it is zero.
|
|
134
|
+
- **The branch number and the PR title number are checked on the spot, the task state — by the
|
|
135
|
+
board.** The format is read from the command text and works offline; task, column, assignee and
|
|
136
|
+
review — only with something to ask with. No network or token — the second tier is skipped
|
|
137
|
+
silently.
|
|
138
|
+
- **The task column moves in the same motion as the work.** Branch created — the task is in
|
|
139
|
+
progress, PR opened — awaiting review; the move command does it, not GraphQL calls from memory.
|
|
140
|
+
The move follows the step at once: the queue is read between steps, not after.
|
|
141
|
+
- **A task left in the first column opens no PR.** By the work queue it reads as not taken, though
|
|
142
|
+
the work is done and published. At branch creation the column is not asked — nothing has moved it
|
|
143
|
+
yet. The tree names the first column itself; unnamed — not judged.
|
|
144
|
+
- **The board holds tasks, not PRs about them.** A PR card has no column and never leaves the queue.
|
|
145
|
+
The queue audit finds such cards, a line each.
|
|
146
|
+
- **A lagging column is found by the queue audit, not by eye.** It judges the column by the PR both
|
|
147
|
+
ways: an open PR with the task not in review, and review with no open PR.
|
|
148
|
+
- **A branch with an open PR lags behind its base silently.** The guard judges the base once, at
|
|
149
|
+
opening, and the run does not see what merged after either. The work queue audit counts the lag.
|
|
150
|
+
- **The link between a task and an epic is read by the audit both ways.** A one-sided binding looks
|
|
151
|
+
as whole as a two-sided one: the reader comes now from the epic plan, now from the card.
|
|
152
|
+
- **Tasks fixed by one edit are merged before the merge.** The second is erased with its number, and
|
|
153
|
+
the missing is added to the first: after the merge the branch went in whole.
|
|
154
|
+
- **Work that one session cannot close is marked in two places, and they are audited.** The label on
|
|
155
|
+
the board and the sessions line in the epic plan say the same to two readers. Only what
|
|
156
|
+
legitimately does not split is marked.
|
|
157
|
+
- **The tip of an open PR without a run is seen by the work queue audit.** A page without a run
|
|
158
|
+
looks the same as with a green one: no colour in either. The audit asks the tip, counts the fact
|
|
159
|
+
of a run, not the colour, and gives a fresh tip time.
|
|
160
|
+
- **A PR whose base is not the main branch is checked by the same set as a PR into main.** The
|
|
161
|
+
pipeline trigger reads the base, and an empty checks field reads as waiting in the queue. Asked
|
|
162
|
+
before the first PR of an epic opens — pattern `git-workflow-stack`.
|
|
163
|
+
- **A run pushed out of the pipeline queue gets a separate audit line.** It looks failed though it
|
|
164
|
+
never checked the branch; the step count tells them apart — it has zero.
|
|
165
|
+
- **A draft with a green run on its tip is an audit discrepancy.** A green page permits nothing: the
|
|
166
|
+
host locks the button. Within a turn the guard closes this, between turns — the audit.
|
|
167
|
+
- **One's own drafts are judged all at once, not only the checked-out branch's.** Two signs — a
|
|
168
|
+
green run on the tip and a task folder taken apart in the branch; a folder still there means
|
|
169
|
+
ongoing work.
|
|
170
|
+
- **Opening a PR is refused while the branch carries its task folder.** Opening is the last point
|
|
171
|
+
where the executor still sees the refusal.
|
|
172
|
+
- **One's own open PRs are reread in three places: before a push, on taking a task and after every
|
|
173
|
+
known merge.** A PR goes stale with no action by its author: a neighbouring work merged — the rest
|
|
174
|
+
lagged that second. Technique — `git-workflow-freshness`.
|
|
175
|
+
- **One's own conflicting PR is fixed by the turn's first action, and no new work is taken before
|
|
176
|
+
that.** While the handed-over conflicts, a person cannot merge it. Work here means creating a task
|
|
177
|
+
or a branch, moving the column to in progress and opening a PR; what fixes the conflict goes as
|
|
178
|
+
before.
|
|
179
|
+
- **A conflicting open PR is a work queue audit discrepancy.** The conflict arrives with someone
|
|
180
|
+
else's merge and is invisible in the list: the host shows the mark only inside the PR.
|
|
181
|
+
- **A document goes in the same commit as the edit.** The bypass is the line `Docs-skip: <reason>`
|
|
182
|
+
in the commit body; an empty reason is not accepted.
|
|
183
|
+
- **The commit subject is checked against the format on the spot.** A subject parsed by type and
|
|
184
|
+
scope is read as a list, free text — only whole.
|
|
185
|
+
- **Before a push all linters are run, not one.** The code linter usually does not read style files
|
|
186
|
+
at all; without a second run nothing checks the styling rules.
|
|
187
|
+
- **The build is in the set on a par with lint and unit tests.** The linter does not read types, and
|
|
188
|
+
unit tests read only what a test imports: a type error in uncovered code lives until the image
|
|
189
|
+
build — that is, the merge.
|
|
190
|
+
- **On a machine with several runners, any path from the home directory is shared.** A neighbouring
|
|
191
|
+
run rewrites a ready-made step's default to its own version. Install directory, container name and
|
|
192
|
+
builder name are per project and fixed; a temporary directory will not do — the package store
|
|
193
|
+
lives there.
|
|
194
|
+
- **The push gate set is never narrower than the pipeline set.** A pipeline step with neither a line
|
|
195
|
+
in the set nor a declared exclusion with a reason refuses the push instead of printing next to it:
|
|
196
|
+
a warning reads as permission.
|
|
197
|
+
- **The gate set calls the package default instead of listing it line by line.** Rewritten as lines,
|
|
198
|
+
it leaves tomorrow's hole: a check the package adds never reaches the tree. Sifting out of the
|
|
199
|
+
default is legitimate, by name and with a reason.
|
|
200
|
+
- **The final set before a push is read from the state review, not assembled in the head.** The "set
|
|
201
|
+
before push" section prints it whole and names next to it what the default printed and the set did
|
|
202
|
+
not take.
|
|
203
|
+
- **An exclusion reason naming a task is judged on whether that task is alive.** A dead number
|
|
204
|
+
silently makes the exclusion perpetual. Asked by the same tier as the task state at the guard.
|
|
205
|
+
- **The layout audit stands in the push gate set on a par with lint and the build.** An edit past
|
|
206
|
+
the source piles up silently, and the audit is not in the pipeline.
|
|
207
|
+
- **After merging the base in, the check set is revised by what the branch now carries.** Checking by
|
|
208
|
+
what the author edited means checking half: the branch answers whole.
|
|
209
|
+
- **The main branch is taken by the remote ref — in words and in actions.** The local one is
|
|
210
|
+
yesterday's snapshot and silent about it: by it a merged branch counts as unmerged, and cleanup
|
|
211
|
+
ends with a list of unmerged that does not exist.
|
|
212
|
+
- **A code edit is handed to a person by an open PR, not by a pushed branch.** A branch reaches no
|
|
213
|
+
inbox and has no discussion: before the PR opens there is no edit for a person. It opens in the
|
|
214
|
+
turn in which the executor says the work is handed over.
|
|
215
|
+
- **What is not ready to merge opens as a draft — `gh pr create --draft`.** The host locks a draft's
|
|
216
|
+
merge button, so "put up for viewing" and "may be merged" stop looking alike. Everything waiting
|
|
217
|
+
for a run, a rework or an answer goes as a draft.
|
|
218
|
+
- **The PR body is written in the turn the PR opens, and next to the sample.** A blank from the day
|
|
219
|
+
before diverged from it by two sections and the link line: nobody reads a ready-looking text
|
|
220
|
+
twice, and the guards judge the title, the branch number and the task folder.
|
|
221
|
+
- **The draft is lifted by a separate call — `gh pr ready <номер>`.** With it the executor answers
|
|
222
|
+
for readiness: checks passed, no rework left, the work matches the task. Lifting the draft and
|
|
223
|
+
asking to merge are one turn, not two days.
|
|
224
|
+
- **The draft is not lifted from a branch that does not merge.** A green run says "not broken",
|
|
225
|
+
mergeability says "the button can be pressed", and the owner needs the second. Asked from the
|
|
226
|
+
host's `mergeable` field; a local merge does not derive it.
|
|
227
|
+
- **An index that branches only append lines to is declared a union of both sides.** A conflict
|
|
228
|
+
there is no dispute: both additions are needed whole. The declaration does **not** clear the
|
|
229
|
+
mergeability mark — it clears when the branch has absorbed main and that reached the host.
|
|
230
|
+
- **An edit brought to a commit is brought to the host in the same turn.** The owner sees the old
|
|
231
|
+
state and reads it as "nothing done", while the done lies where nobody sees it. What stays in the
|
|
232
|
+
tree is named with a reason — in the owner's words, not a list of leftovers.
|
|
233
|
+
- **The draft is not lifted while the PR has no review.** The guard reads the requested reviewer and
|
|
234
|
+
the review left: a lifted draft reads as "may be merged", and there is nobody to merge. A call
|
|
235
|
+
without a number is judged too — the client then takes the PR of the current branch.
|
|
236
|
+
- **The PR merge is pressed by a person, not by the work's executor.** Button and merge call are
|
|
237
|
+
equal: one ban covers both. The executor merges their own PR only when a person said so directly
|
|
238
|
+
and about this PR; said about one, it does not carry to the next, and silence is never permission.
|
|
239
|
+
- **The identity of the call opening a PR is guarded by the delivery guard, not by the executor's
|
|
240
|
+
memory.** It comes from the environment and shows in the command text only by an explicit token
|
|
241
|
+
substitution. The guard asks the host about the author at draft lifting: a merged PR cannot be
|
|
242
|
+
reopened.
|
|
243
|
+
- **The host client's active account is chosen per machine, not per tree; the machine account is
|
|
244
|
+
substituted per call, never made active.** A login as the machine account hijacks every
|
|
245
|
+
neighbouring session on the machine. Substitution is mandatory even with an active account.
|
|
219
246
|
|
|
220
|
-
-
|
|
221
|
-
|
|
222
|
-
-
|
|
223
|
-
|
|
224
|
-
-
|
|
225
|
-
|
|
226
|
-
-
|
|
227
|
-
-
|
|
228
|
-
`<число>+<логин>@users.noreply.github.com`
|
|
229
|
-
|
|
230
|
-
-
|
|
231
|
-
|
|
232
|
-
-
|
|
233
|
-
git
|
|
234
|
-
`-c`
|
|
247
|
+
- **The PR author cannot be its reviewer.** GitHub accepts a self review request and silently does
|
|
248
|
+
not create it. Only a request and a review not from the author count.
|
|
249
|
+
- **The host client call goes from the tree, and a command chain does not check the outcome.**
|
|
250
|
+
Outside the tree the client refuses, and the next link carries the rest to the host.
|
|
251
|
+
- **PR labels, assignee and reviewer are set by `gh api` calls, not by `gh pr edit`:** that one
|
|
252
|
+
refuses about Projects.
|
|
253
|
+
- **The board is edited by a GraphQL query by the board id, not by the owner's name.**
|
|
254
|
+
- **The machine commit's email is copied from the companion, not typed from memory.** The address
|
|
255
|
+
`<число>+<логин>@users.noreply.github.com` matches by the number: with a foreign one the commit
|
|
256
|
+
leaves signed by a stranger. The tree profile holds the same line, and the guard refuses the push.
|
|
257
|
+
- **The identity of the machine account is confirmed by the host's answer, not by recognising a
|
|
258
|
+
string:** asked with the token, login and number come together.
|
|
259
|
+
- **Guard scenarios set the git settings themselves, not take them from the machine.** A machine
|
|
260
|
+
signature sends git to the key agent, and a locked agent brings the set down; author, email and
|
|
261
|
+
signature go as `-c` flags.
|
|
235
262
|
|
|
236
|
-
-
|
|
237
|
-
|
|
238
|
-
-
|
|
239
|
-
|
|
240
|
-
-
|
|
241
|
-
|
|
242
|
-
-
|
|
243
|
-
|
|
263
|
+
- **Every commit of the branch's contribution is signed by the machine account, and the push set
|
|
264
|
+
checks it.** The guard judges a commit that named itself as it; one signed by a person passes by.
|
|
265
|
+
- **The PR state is reread from the host right after publishing.** Opening and setting a reviewer
|
|
266
|
+
answer zero even having done nothing.
|
|
267
|
+
- **The author of an open PR and whether it has a reviewer are audited by the work queue.** Before
|
|
268
|
+
the merge neither miss shows: a PR opened by a person never gets a reviewer.
|
|
269
|
+
- **Reviewers are asked by a REST call, not by the client's selection.** Its fields come from
|
|
270
|
+
GraphQL, which the account has no rights to: "matched" cannot be told from "nothing to ask with".
|
|
244
271
|
|
|
245
|
-
-
|
|
246
|
-
|
|
272
|
+
- **The working tree is not emptied for a tool run.** The comparison goes on a second copy: stashing
|
|
273
|
+
takes uncommitted work where neither the tree state nor the audit sees it.
|
|
247
274
|
|
|
248
|
-
##
|
|
275
|
+
## What of the law is not here
|
|
249
276
|
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
277
|
+
The delivery guard stands on the agent's commands, so it does not see a branch created by hand in
|
|
278
|
+
the editor: its name is held by memory. No separate check is made for it — work is recognised by the
|
|
279
|
+
task title and the PR. The queue audit never judges the branch name.
|
|
253
280
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
281
|
+
The guard does not move a task to in progress: it does not edit the board — a board edit during
|
|
282
|
+
command review would fall with the connection. The move is held by memory and the task creation
|
|
283
|
+
command's hint; a task left in the first column the guard names at PR opening, other column
|
|
284
|
+
discrepancies the queue audit finds.
|
|
258
285
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
286
|
+
The freshness of main's tip the guard asks by the second tier — the same technique as the task
|
|
287
|
+
state. The first tier works offline: the local ref answers whether the branch lags what lies in the
|
|
288
|
+
tree, the remote one — whether the ref itself went stale.
|
|
262
289
|
|
|
263
|
-
##
|
|
290
|
+
## Patterns
|
|
264
291
|
|
|
265
|
-
- `git-workflow-commit` —
|
|
266
|
-
- `git-workflow-pr` —
|
|
267
|
-
- `git-workflow-merge` —
|
|
268
|
-
- `git-workflow-stack` —
|
|
269
|
-
|
|
270
|
-
- `git-workflow-
|
|
292
|
+
- `git-workflow-commit` — task, branch, commit and push as the machine account.
|
|
293
|
+
- `git-workflow-pr` — opening a PR, the draft and lifting it, the body, reviewer, labels, state.
|
|
294
|
+
- `git-workflow-merge` — the base merged into the branch standing on it, the conflict resolved.
|
|
295
|
+
- `git-workflow-stack` — a chain of branches: branching from the previous, the PR base, the handover
|
|
296
|
+
order.
|
|
297
|
+
- `git-workflow-freshness` — one's own open PRs: reading all at once, lag against a dispute.
|
|
298
|
+
- `git-workflow-pr-ready` — finishing the handed-over: the lifted draft, the red run's analysis, a
|
|
299
|
+
wave over the chain.
|